OSDN Git Service

be3eb9153c7d6011a6de91121b0fa5318326dce2
[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.98.
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
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
249
250 case X$lt_ECHO in
251 X*--fallback-echo)
252   # Remove one level of quotation (which was required for Make).
253   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254   ;;
255 esac
256
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259   # Discard the --no-reexec flag, and continue.
260   shift
261 elif test "X$1" = X--fallback-echo; then
262   # Avoid inline document here, it may be left over
263   :
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265   # Yippee, $ECHO works!
266   :
267 else
268   # Restart under the correct shell.
269   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 fi
271
272 if test "X$1" = X--fallback-echo; then
273   # used as fallback echo
274   shift
275   cat <<_LT_EOF
276 $*
277 _LT_EOF
278   exit 0
279 fi
280
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285 if test -z "$lt_ECHO"; then
286   if test "X${echo_test_string+set}" != Xset; then
287     # find a string as large as possible, as long as the shell can cope with it
288     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
291          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
292       then
293         break
294       fi
295     done
296   fi
297
298   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300      test "X$echo_testing_string" = "X$echo_test_string"; then
301     :
302   else
303     # The Solaris, AIX, and Digital Unix default echo programs unquote
304     # backslashes.  This makes it impossible to quote backslashes using
305     #   echo "$something" | sed 's/\\/\\\\/g'
306     #
307     # So, first we look for a working echo in the user's PATH.
308
309     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310     for dir in $PATH /usr/ucb; do
311       IFS="$lt_save_ifs"
312       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315          test "X$echo_testing_string" = "X$echo_test_string"; then
316         ECHO="$dir/echo"
317         break
318       fi
319     done
320     IFS="$lt_save_ifs"
321
322     if test "X$ECHO" = Xecho; then
323       # We didn't find a better echo, so look for alternatives.
324       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326          test "X$echo_testing_string" = "X$echo_test_string"; then
327         # This shell has a builtin print -r that does the trick.
328         ECHO='print -r'
329       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
330            test "X$CONFIG_SHELL" != X/bin/ksh; then
331         # If we have ksh, try running configure again with it.
332         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333         export ORIGINAL_CONFIG_SHELL
334         CONFIG_SHELL=/bin/ksh
335         export CONFIG_SHELL
336         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337       else
338         # Try using printf.
339         ECHO='printf %s\n'
340         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342            test "X$echo_testing_string" = "X$echo_test_string"; then
343           # Cool, printf works
344           :
345         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346              test "X$echo_testing_string" = 'X\t' &&
347              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348              test "X$echo_testing_string" = "X$echo_test_string"; then
349           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350           export CONFIG_SHELL
351           SHELL="$CONFIG_SHELL"
352           export SHELL
353           ECHO="$CONFIG_SHELL $0 --fallback-echo"
354         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355              test "X$echo_testing_string" = 'X\t' &&
356              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357              test "X$echo_testing_string" = "X$echo_test_string"; then
358           ECHO="$CONFIG_SHELL $0 --fallback-echo"
359         else
360           # maybe with a smaller string...
361           prev=:
362
363           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
365             then
366               break
367             fi
368             prev="$cmd"
369           done
370
371           if test "$prev" != 'sed 50q "$0"'; then
372             echo_test_string=`eval $prev`
373             export echo_test_string
374             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375           else
376             # Oops.  We lost completely, so just stick with echo.
377             ECHO=echo
378           fi
379         fi
380       fi
381     fi
382   fi
383 fi
384
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390 fi
391
392
393
394
395 # Name of the host.
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
399
400 exec 6>&1
401
402 #
403 # Initializations.
404 #
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
411 SHELL=${CONFIG_SHELL-/bin/sh}
412
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete.  It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
417
418 # Identity of this package.
419 PACKAGE_NAME='GNU Classpath'
420 PACKAGE_TARNAME='classpath'
421 PACKAGE_VERSION='0.98'
422 PACKAGE_STRING='GNU Classpath 0.98'
423 PACKAGE_BUGREPORT='classpath@gnu.org'
424
425 ac_unique_file="java/lang/System.java"
426 ac_default_prefix=/usr/local/classpath
427 # Factoring default headers for most tests.
428 ac_includes_default="\
429 #include <stdio.h>
430 #if HAVE_SYS_TYPES_H
431 # include <sys/types.h>
432 #endif
433 #if HAVE_SYS_STAT_H
434 # include <sys/stat.h>
435 #endif
436 #if STDC_HEADERS
437 # include <stdlib.h>
438 # include <stddef.h>
439 #else
440 # if HAVE_STDLIB_H
441 #  include <stdlib.h>
442 # endif
443 #endif
444 #if HAVE_STRING_H
445 # if !STDC_HEADERS && HAVE_MEMORY_H
446 #  include <memory.h>
447 # endif
448 # include <string.h>
449 #endif
450 #if HAVE_STRINGS_H
451 # include <strings.h>
452 #endif
453 #if HAVE_INTTYPES_H
454 # include <inttypes.h>
455 #else
456 # if HAVE_STDINT_H
457 #  include <stdint.h>
458 # endif
459 #endif
460 #if HAVE_UNISTD_H
461 # include <unistd.h>
462 #endif"
463
464 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 GENINSRC_TRUE GENINSRC_FALSE multi_basedir INSTALL_BINARIES_TRUE INSTALL_BINARIES_FALSE LIBVERSION CLASSPATH_MODULE CLASSPATH_CONVENIENCE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CREATE_COLLECTIONS_TRUE CREATE_COLLECTIONS_FALSE CREATE_JNI_LIBRARIES_TRUE CREATE_JNI_LIBRARIES_FALSE CREATE_CORE_JNI_LIBRARIES_TRUE CREATE_CORE_JNI_LIBRARIES_FALSE CREATE_GCONF_PEER_LIBRARIES_TRUE CREATE_GCONF_PEER_LIBRARIES_FALSE CREATE_GSTREAMER_PEER_LIBRARIES_TRUE CREATE_GSTREAMER_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 CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE toolexeclibdir nativeexeclibdir glibjdir CREATE_JNI_HEADERS_TRUE CREATE_JNI_HEADERS_FALSE CREATE_GJDOC_PARSER_TRUE CREATE_GJDOC_PARSER_FALSE CREATE_WRAPPERS_TRUE CREATE_WRAPPERS_FALSE LN_S LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP PERL COLLECTIONS_PREFIX LIBMAGIC LIBICONV LTLIBICONV WARNING_CFLAGS EXTRA_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 CAIRO_CFLAGS CAIRO_LIBS XTEST_LIBS GCONF_CFLAGS GCONF_LIBS GDK_CFLAGS GDK_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GSTREAMER_BASE_CFLAGS GSTREAMER_BASE_LIBS GSTREAMER_PLUGINS_BASE_CFLAGS GSTREAMER_PLUGINS_BASE_LIBS GST_PLUGIN_LDFLAGS GSTREAMER_FILE_READER GSTREAMER_MIXER_PROVIDER QT_CFLAGS QT_LIBS MOC MOZILLA_CFLAGS MOZILLA_LIBS GLIB_CFLAGS GLIB_LIBS PLUGIN_DIR GMP_CFLAGS GMP_LIBS USER_JAVAH CLASSPATH_INCLUDES vm_classes MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBDEBUG INIT_LOAD_LIBRARY ECJ_JAR JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION REMOVE MKDIR CP DATE FIND ZIP JAR WITH_JAR_TRUE WITH_JAR_FALSE 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 TOOLSDIR 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 JAVA uudecode JAVAC JAVAC_IS_GCJ GCJ_JAVAC_TRUE GCJ_JAVAC_FALSE ANTLR_JAR ANTLR ac_ct_ANTLR JAVAC_MEM_OPT USE_ESCHER_TRUE USE_ESCHER_FALSE PATH_TO_ESCHER ENABLE_LOCAL_SOCKETS_TRUE ENABLE_LOCAL_SOCKETS_FALSE DEFAULT_PREFS_PEER WANT_NATIVE_BIG_INTEGER CREATE_GMPBI_LIBRARY_TRUE CREATE_GMPBI_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
465 ac_subst_files=''
466 ac_pwd=`pwd`
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938
939 #
940 # Report the --help message.
941 #
942 if test "$ac_init_help" = "long"; then
943   # Omit some internal or obsolete options to make the list less imposing.
944   # This message is too long to be a string in the A/UX 3.1 sh.
945   cat <<_ACEOF
946 \`configure' configures GNU Classpath 0.98 to adapt to many kinds of systems.
947
948 Usage: $0 [OPTION]... [VAR=VALUE]...
949
950 To assign environment variables (e.g., CC, CFLAGS...), specify them as
951 VAR=VALUE.  See below for descriptions of some of the useful variables.
952
953 Defaults for the options are specified in brackets.
954
955 Configuration:
956   -h, --help              display this help and exit
957       --help=short        display options specific to this package
958       --help=recursive    display the short help of all the included packages
959   -V, --version           display version information and exit
960   -q, --quiet, --silent   do not print \`checking...' messages
961       --cache-file=FILE   cache test results in FILE [disabled]
962   -C, --config-cache      alias for \`--cache-file=config.cache'
963   -n, --no-create         do not create output files
964       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
965
966 _ACEOF
967
968   cat <<_ACEOF
969 Installation directories:
970   --prefix=PREFIX         install architecture-independent files in PREFIX
971                           [$ac_default_prefix]
972   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
973                           [PREFIX]
974
975 By default, \`make install' will install all the files in
976 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
977 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
978 for instance \`--prefix=\$HOME'.
979
980 For better control, use the options below.
981
982 Fine tuning of the installation directories:
983   --bindir=DIR           user executables [EPREFIX/bin]
984   --sbindir=DIR          system admin executables [EPREFIX/sbin]
985   --libexecdir=DIR       program executables [EPREFIX/libexec]
986   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
987   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
988   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
989   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
990   --libdir=DIR           object code libraries [EPREFIX/lib]
991   --includedir=DIR       C header files [PREFIX/include]
992   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
993   --infodir=DIR          info documentation [PREFIX/info]
994   --mandir=DIR           man documentation [PREFIX/man]
995 _ACEOF
996
997   cat <<\_ACEOF
998
999 Program names:
1000   --program-prefix=PREFIX            prepend PREFIX to installed program names
1001   --program-suffix=SUFFIX            append SUFFIX to installed program names
1002   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1003
1004 X features:
1005   --x-includes=DIR    X include files are in DIR
1006   --x-libraries=DIR   X library files are in DIR
1007
1008 System types:
1009   --build=BUILD     configure for building on BUILD [guessed]
1010   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011   --target=TARGET   configure for building compilers for TARGET [HOST]
1012 _ACEOF
1013 fi
1014
1015 if test -n "$ac_init_help"; then
1016   case $ac_init_help in
1017      short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1018    esac
1019   cat <<\_ACEOF
1020
1021 Optional Features:
1022   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1023   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1024   --enable-java-maintainer-mode
1025                           allow rebuilding of .class and .h files
1026   --enable-generated-files-in-srcdir
1027                           put copies of generated files in source dir
1028                           intended for creating source tarballs for users
1029                           without texinfo, perl, bison or flex.
1030   --enable-multilib       build many library versions (default)
1031   --enable-collections    create collections.jar default=no
1032   --enable-jni            compile JNI source default=yes
1033   --enable-core-jni       compile JNI sources for core default=yes
1034   --enable-default-preferences-peer[=peer type or class name]
1035                           specify one of: "gconf" [default] for a GConf based
1036                           backend, "file" for a file based one, "memory" for a
1037                           transient one, or a fully qualified class name
1038                           implementing java.util.prefs.PreferencesFactory
1039   --disable-gconf-peer    compile GConf native peers (disabled by
1040                           --disable-jni) default=yes
1041
1042   --enable-gstreamer-peer compile GStreamer native peers (disabled by
1043                           --disable-jni) default=no
1044   --enable-Werror         whether to compile C code with -Werror which turns
1045                           any compiler warning into a compilation failure
1046                           default=no
1047   --enable-default-toolkit
1048                           fully qualified class name of default AWT toolkit
1049   --enable-xmlj           compile native libxml/xslt library default=no
1050   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
1051                           default=yes
1052   --disable-dependency-tracking  speeds up one-time build
1053   --enable-dependency-tracking   do not reject slow dependency extractors
1054   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
1055                           default=yes
1056   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
1057                           default=yes
1058   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
1059                           default=no
1060   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
1061                           default=yes
1062   --enable-gmp            compile native java.math.BigInteger library
1063                           (disabled by --disable-gmp) default=yes
1064   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1065                           default=yes
1066   --enable-regen-headers  automatically regenerate JNI headers default=yes if
1067                           headers don't exist
1068   --enable-regen-gjdoc-parser
1069                           automatically regenerate the GJDoc parser
1070                           default=yes if generated source doesn't exist
1071   --enable-tool-wrappers  create tool wrapper binaries default=no
1072   --enable-static[=PKGS]
1073                           build static libraries [default=no]
1074   --enable-shared[=PKGS]
1075                           build shared libraries [default=yes]
1076   --enable-fast-install[=PKGS]
1077                           optimize for fast installation [default=yes]
1078   --disable-libtool-lock  avoid locking (might break parallel builds)
1079   --disable-rpath         do not hardcode runtime library paths
1080   --enable-maintainer-mode  enable make rules and dependencies not useful
1081                           (and sometimes confusing) to the casual installer
1082   --enable-debug          enable runtime debugging code
1083   --enable-load-library   enable to use JNI native methods default=yes
1084   --enable-java-lang-system-explicit-initialization
1085                           will the VM explicitly invoke java.lang.System's
1086                           static initialization methods default=no
1087   --enable-examples       enable build of the examples default=yes
1088   --enable-tools          enable build of the tools default=yes
1089   --enable-portable-native-sync
1090                           synchronize VM threads portably
1091   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
1092
1093 Optional Packages:
1094   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1095   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1096   --with-native-libdir    sets the installation directory for native libraries
1097                           default='${libdir}/${PACKAGE}'
1098   --with-glibj-dir        sets the installation directory for glibj.zip
1099                           default='${libdir}/${PACKAGE}'
1100   --with-antlr-jar=file   Use ANTLR from the specified jar file
1101   --with-pic              try to use only PIC/non-PIC objects [default=use
1102                           both]
1103   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1104   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1105   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1106   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1107   --with-x                use the X Window System
1108   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
1109                           systems use pkg-config.
1110   --with-javah            specify path or name of a javah-like program
1111   --with-vm-classes       specify path to VM override source files
1112   --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1113                           Compiler
1114   --with-jar=PATH         define to use a jar style tool
1115   --with-glibj            define what to install (zip|flat|both|none|build)
1116                           [default=zip]
1117   --with-gjdoc            generate documentation using gjdoc (default is NO)
1118   --with-jay=DIR|PATH     Regenerate the parsers with jay
1119   --with-glibj-zip=ABS.PATH
1120                           use prebuilt glibj.zip class library
1121   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1122
1123 Some influential environment variables:
1124   CC          C compiler command
1125   CFLAGS      C compiler flags
1126   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1127               nonstandard directory <lib dir>
1128   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1129               headers in a nonstandard directory <include dir>
1130   CPP         C preprocessor
1131   CXX         C++ compiler command
1132   CXXFLAGS    C++ compiler flags
1133   CXXCPP      C++ preprocessor
1134
1135 Use these variables to override the choices made by `configure' or to help
1136 it to find libraries and programs with nonstandard names/locations.
1137
1138 Report bugs to <classpath@gnu.org>.
1139 _ACEOF
1140 fi
1141
1142 if test "$ac_init_help" = "recursive"; then
1143   # If there are subdirs, report their specific --help.
1144   ac_popdir=`pwd`
1145   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1146     test -d $ac_dir || continue
1147     ac_builddir=.
1148
1149 if test "$ac_dir" != .; then
1150   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1151   # A "../" for each directory in $ac_dir_suffix.
1152   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1153 else
1154   ac_dir_suffix= ac_top_builddir=
1155 fi
1156
1157 case $srcdir in
1158   .)  # No --srcdir option.  We are building in place.
1159     ac_srcdir=.
1160     if test -z "$ac_top_builddir"; then
1161        ac_top_srcdir=.
1162     else
1163        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1164     fi ;;
1165   [\\/]* | ?:[\\/]* )  # Absolute path.
1166     ac_srcdir=$srcdir$ac_dir_suffix;
1167     ac_top_srcdir=$srcdir ;;
1168   *) # Relative path.
1169     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1170     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1171 esac
1172
1173 # Do not use `cd foo && pwd` to compute absolute paths, because
1174 # the directories may not exist.
1175 case `pwd` in
1176 .) ac_abs_builddir="$ac_dir";;
1177 *)
1178   case "$ac_dir" in
1179   .) ac_abs_builddir=`pwd`;;
1180   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1181   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1182   esac;;
1183 esac
1184 case $ac_abs_builddir in
1185 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 *)
1187   case ${ac_top_builddir}. in
1188   .) ac_abs_top_builddir=$ac_abs_builddir;;
1189   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1190   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1191   esac;;
1192 esac
1193 case $ac_abs_builddir in
1194 .) ac_abs_srcdir=$ac_srcdir;;
1195 *)
1196   case $ac_srcdir in
1197   .) ac_abs_srcdir=$ac_abs_builddir;;
1198   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1199   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1200   esac;;
1201 esac
1202 case $ac_abs_builddir in
1203 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 *)
1205   case $ac_top_srcdir in
1206   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1207   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1208   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209   esac;;
1210 esac
1211
1212     cd $ac_dir
1213     # Check for guested configure; otherwise get Cygnus style configure.
1214     if test -f $ac_srcdir/configure.gnu; then
1215       echo
1216       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1217     elif test -f $ac_srcdir/configure; then
1218       echo
1219       $SHELL $ac_srcdir/configure  --help=recursive
1220     elif test -f $ac_srcdir/configure.ac ||
1221            test -f $ac_srcdir/configure.in; then
1222       echo
1223       $ac_configure --help
1224     else
1225       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1226     fi
1227     cd $ac_popdir
1228   done
1229 fi
1230
1231 test -n "$ac_init_help" && exit 0
1232 if $ac_init_version; then
1233   cat <<\_ACEOF
1234 GNU Classpath configure 0.98
1235 generated by GNU Autoconf 2.59
1236
1237 Copyright (C) 2003 Free Software Foundation, Inc.
1238 This configure script is free software; the Free Software Foundation
1239 gives unlimited permission to copy, distribute and modify it.
1240 _ACEOF
1241   exit 0
1242 fi
1243 exec 5>config.log
1244 cat >&5 <<_ACEOF
1245 This file contains any messages produced by compilers while
1246 running configure, to aid debugging if configure makes a mistake.
1247
1248 It was created by GNU Classpath $as_me 0.98, which was
1249 generated by GNU Autoconf 2.59.  Invocation command line was
1250
1251   $ $0 $@
1252
1253 _ACEOF
1254 {
1255 cat <<_ASUNAME
1256 ## --------- ##
1257 ## Platform. ##
1258 ## --------- ##
1259
1260 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1261 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1262 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1263 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1264 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1265
1266 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1267 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1268
1269 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1270 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1271 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1272 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1273 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1274 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1275 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1276
1277 _ASUNAME
1278
1279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1280 for as_dir in $PATH
1281 do
1282   IFS=$as_save_IFS
1283   test -z "$as_dir" && as_dir=.
1284   echo "PATH: $as_dir"
1285 done
1286
1287 } >&5
1288
1289 cat >&5 <<_ACEOF
1290
1291
1292 ## ----------- ##
1293 ## Core tests. ##
1294 ## ----------- ##
1295
1296 _ACEOF
1297
1298
1299 # Keep a trace of the command line.
1300 # Strip out --no-create and --no-recursion so they do not pile up.
1301 # Strip out --silent because we don't want to record it for future runs.
1302 # Also quote any args containing shell meta-characters.
1303 # Make two passes to allow for proper duplicate-argument suppression.
1304 ac_configure_args=
1305 ac_configure_args0=
1306 ac_configure_args1=
1307 ac_sep=
1308 ac_must_keep_next=false
1309 for ac_pass in 1 2
1310 do
1311   for ac_arg
1312   do
1313     case $ac_arg in
1314     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1315     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1316     | -silent | --silent | --silen | --sile | --sil)
1317       continue ;;
1318     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1320     esac
1321     case $ac_pass in
1322     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1323     2)
1324       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1325       if test $ac_must_keep_next = true; then
1326         ac_must_keep_next=false # Got value, back to normal.
1327       else
1328         case $ac_arg in
1329           *=* | --config-cache | -C | -disable-* | --disable-* \
1330           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1331           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1332           | -with-* | --with-* | -without-* | --without-* | --x)
1333             case "$ac_configure_args0 " in
1334               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1335             esac
1336             ;;
1337           -* ) ac_must_keep_next=true ;;
1338         esac
1339       fi
1340       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1341       # Get rid of the leading space.
1342       ac_sep=" "
1343       ;;
1344     esac
1345   done
1346 done
1347 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1348 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1349
1350 # When interrupted or exit'd, cleanup temporary files, and complete
1351 # config.log.  We remove comments because anyway the quotes in there
1352 # would cause problems or look ugly.
1353 # WARNING: Be sure not to use single quotes in there, as some shells,
1354 # such as our DU 5.0 friend, will then `close' the trap.
1355 trap 'exit_status=$?
1356   # Save into config.log some information that might help in debugging.
1357   {
1358     echo
1359
1360     cat <<\_ASBOX
1361 ## ---------------- ##
1362 ## Cache variables. ##
1363 ## ---------------- ##
1364 _ASBOX
1365     echo
1366     # The following way of writing the cache mishandles newlines in values,
1367 {
1368   (set) 2>&1 |
1369     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1370     *ac_space=\ *)
1371       sed -n \
1372         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1373           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1374       ;;
1375     *)
1376       sed -n \
1377         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378       ;;
1379     esac;
1380 }
1381     echo
1382
1383     cat <<\_ASBOX
1384 ## ----------------- ##
1385 ## Output variables. ##
1386 ## ----------------- ##
1387 _ASBOX
1388     echo
1389     for ac_var in $ac_subst_vars
1390     do
1391       eval ac_val=$`echo $ac_var`
1392       echo "$ac_var='"'"'$ac_val'"'"'"
1393     done | sort
1394     echo
1395
1396     if test -n "$ac_subst_files"; then
1397       cat <<\_ASBOX
1398 ## ------------- ##
1399 ## Output files. ##
1400 ## ------------- ##
1401 _ASBOX
1402       echo
1403       for ac_var in $ac_subst_files
1404       do
1405         eval ac_val=$`echo $ac_var`
1406         echo "$ac_var='"'"'$ac_val'"'"'"
1407       done | sort
1408       echo
1409     fi
1410
1411     if test -s confdefs.h; then
1412       cat <<\_ASBOX
1413 ## ----------- ##
1414 ## confdefs.h. ##
1415 ## ----------- ##
1416 _ASBOX
1417       echo
1418       sed "/^$/d" confdefs.h | sort
1419       echo
1420     fi
1421     test "$ac_signal" != 0 &&
1422       echo "$as_me: caught signal $ac_signal"
1423     echo "$as_me: exit $exit_status"
1424   } >&5
1425   rm -f core *.core &&
1426   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1427     exit $exit_status
1428      ' 0
1429 for ac_signal in 1 2 13 15; do
1430   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1431 done
1432 ac_signal=0
1433
1434 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1435 rm -rf conftest* confdefs.h
1436 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1437 echo >confdefs.h
1438
1439 # Predefined preprocessor variables.
1440
1441 cat >>confdefs.h <<_ACEOF
1442 #define PACKAGE_NAME "$PACKAGE_NAME"
1443 _ACEOF
1444
1445
1446 cat >>confdefs.h <<_ACEOF
1447 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1448 _ACEOF
1449
1450
1451 cat >>confdefs.h <<_ACEOF
1452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1453 _ACEOF
1454
1455
1456 cat >>confdefs.h <<_ACEOF
1457 #define PACKAGE_STRING "$PACKAGE_STRING"
1458 _ACEOF
1459
1460
1461 cat >>confdefs.h <<_ACEOF
1462 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1463 _ACEOF
1464
1465
1466 # Let the site file select an alternate cache file if it wants to.
1467 # Prefer explicitly selected file to automatically selected ones.
1468 if test -z "$CONFIG_SITE"; then
1469   if test "x$prefix" != xNONE; then
1470     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1471   else
1472     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1473   fi
1474 fi
1475 for ac_site_file in $CONFIG_SITE; do
1476   if test -r "$ac_site_file"; then
1477     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1478 echo "$as_me: loading site script $ac_site_file" >&6;}
1479     sed 's/^/| /' "$ac_site_file" >&5
1480     . "$ac_site_file"
1481   fi
1482 done
1483
1484 if test -r "$cache_file"; then
1485   # Some versions of bash will fail to source /dev/null (special
1486   # files actually), so we avoid doing that.
1487   if test -f "$cache_file"; then
1488     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1489 echo "$as_me: loading cache $cache_file" >&6;}
1490     case $cache_file in
1491       [\\/]* | ?:[\\/]* ) . $cache_file;;
1492       *)                      . ./$cache_file;;
1493     esac
1494   fi
1495 else
1496   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1497 echo "$as_me: creating cache $cache_file" >&6;}
1498   >$cache_file
1499 fi
1500
1501 # Check that the precious variables saved in the cache have kept the same
1502 # value.
1503 ac_cache_corrupted=false
1504 for ac_var in `(set) 2>&1 |
1505                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1506   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1507   eval ac_new_set=\$ac_env_${ac_var}_set
1508   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1509   eval ac_new_val="\$ac_env_${ac_var}_value"
1510   case $ac_old_set,$ac_new_set in
1511     set,)
1512       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1513 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1514       ac_cache_corrupted=: ;;
1515     ,set)
1516       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1517 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1518       ac_cache_corrupted=: ;;
1519     ,);;
1520     *)
1521       if test "x$ac_old_val" != "x$ac_new_val"; then
1522         # differences in whitespace do not lead to failure.
1523         ac_old_val_w=`echo x $ac_old_val`
1524         ac_new_val_w=`echo x $ac_new_val`
1525         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1526           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1527 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1528           ac_cache_corrupted=:
1529         else
1530           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1531 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1532           eval $ac_var=\$ac_old_val
1533         fi
1534         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1535 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1536         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1537 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1538       fi;;
1539   esac
1540   # Pass precious variables to config.status.
1541   if test "$ac_new_set" = set; then
1542     case $ac_new_val in
1543     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545     *) ac_arg=$ac_var=$ac_new_val ;;
1546     esac
1547     case " $ac_configure_args " in
1548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1549       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550     esac
1551   fi
1552 done
1553 if $ac_cache_corrupted; then
1554   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1555 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1556   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1557 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1558   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1559 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1560    { (exit 1); exit 1; }; }
1561 fi
1562
1563 ac_ext=c
1564 ac_cpp='$CPP $CPPFLAGS'
1565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600 ac_aux_dir=
1601 for ac_dir in ../.. $srcdir/../..; do
1602   if test -f $ac_dir/install-sh; then
1603     ac_aux_dir=$ac_dir
1604     ac_install_sh="$ac_aux_dir/install-sh -c"
1605     break
1606   elif test -f $ac_dir/install.sh; then
1607     ac_aux_dir=$ac_dir
1608     ac_install_sh="$ac_aux_dir/install.sh -c"
1609     break
1610   elif test -f $ac_dir/shtool; then
1611     ac_aux_dir=$ac_dir
1612     ac_install_sh="$ac_aux_dir/shtool install -c"
1613     break
1614   fi
1615 done
1616 if test -z "$ac_aux_dir"; then
1617   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&5
1618 echo "$as_me: error: cannot find install-sh or install.sh in ../.. $srcdir/../.." >&2;}
1619    { (exit 1); exit 1; }; }
1620 fi
1621 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1622 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1623 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1624
1625
1626 # Make sure we can run config.sub.
1627 $ac_config_sub sun4 >/dev/null 2>&1 ||
1628   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1629 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1630    { (exit 1); exit 1; }; }
1631
1632 echo "$as_me:$LINENO: checking build system type" >&5
1633 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1634 if test "${ac_cv_build+set}" = set; then
1635   echo $ECHO_N "(cached) $ECHO_C" >&6
1636 else
1637   ac_cv_build_alias=$build_alias
1638 test -z "$ac_cv_build_alias" &&
1639   ac_cv_build_alias=`$ac_config_guess`
1640 test -z "$ac_cv_build_alias" &&
1641   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1642 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1643    { (exit 1); exit 1; }; }
1644 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1645   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1646 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1647    { (exit 1); exit 1; }; }
1648
1649 fi
1650 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1651 echo "${ECHO_T}$ac_cv_build" >&6
1652 build=$ac_cv_build
1653 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658 echo "$as_me:$LINENO: checking host system type" >&5
1659 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1660 if test "${ac_cv_host+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   ac_cv_host_alias=$host_alias
1664 test -z "$ac_cv_host_alias" &&
1665   ac_cv_host_alias=$ac_cv_build_alias
1666 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1667   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1668 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1669    { (exit 1); exit 1; }; }
1670
1671 fi
1672 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1673 echo "${ECHO_T}$ac_cv_host" >&6
1674 host=$ac_cv_host
1675 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1676 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1677 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1678
1679
1680 echo "$as_me:$LINENO: checking target system type" >&5
1681 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1682 if test "${ac_cv_target+set}" = set; then
1683   echo $ECHO_N "(cached) $ECHO_C" >&6
1684 else
1685   ac_cv_target_alias=$target_alias
1686 test "x$ac_cv_target_alias" = "x" &&
1687   ac_cv_target_alias=$ac_cv_host_alias
1688 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1689   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1690 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1691    { (exit 1); exit 1; }; }
1692
1693 fi
1694 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1695 echo "${ECHO_T}$ac_cv_target" >&6
1696 target=$ac_cv_target
1697 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700
1701
1702 # The aliases save the names the user supplied, while $host etc.
1703 # will get canonicalized.
1704 test -n "$target_alias" &&
1705   test "$program_prefix$program_suffix$program_transform_name" = \
1706     NONENONEs,x,x, &&
1707   program_prefix=${target_alias}-
1708
1709 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1710 if test "${enable_java_maintainer_mode+set}" = set; then
1711   enableval="$enable_java_maintainer_mode"
1712
1713 fi;
1714
1715
1716 if test "$enable_java_maintainer_mode" = yes; then
1717   JAVA_MAINTAINER_MODE_TRUE=
1718   JAVA_MAINTAINER_MODE_FALSE='#'
1719 else
1720   JAVA_MAINTAINER_MODE_TRUE='#'
1721   JAVA_MAINTAINER_MODE_FALSE=
1722 fi
1723
1724
1725 # We would like to our source tree to be readonly.  However when releases or
1726 # pre-releases are generated, the man pages need to be included as they are
1727 # converted from the texi files via perl which we don't require end users to
1728 # have installed.
1729 # Therefore we have --enable-generated-files-in-srcdir to do just that.
1730
1731 echo "$as_me:$LINENO: checking whether to place generated files in the source directory" >&5
1732 echo $ECHO_N "checking whether to place generated files in the source directory... $ECHO_C" >&6
1733     # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given.
1734 if test "${enable_generated_files_in_srcdir+set}" = set; then
1735   enableval="$enable_generated_files_in_srcdir"
1736   generated_files_in_srcdir=$enableval
1737 else
1738   generated_files_in_srcdir=no
1739 fi;
1740
1741 echo "$as_me:$LINENO: result: $generated_files_in_srcdir" >&5
1742 echo "${ECHO_T}$generated_files_in_srcdir" >&6
1743
1744
1745 if test x$generated_files_in_srcdir = xyes; then
1746   GENINSRC_TRUE=
1747   GENINSRC_FALSE='#'
1748 else
1749   GENINSRC_TRUE='#'
1750   GENINSRC_FALSE=
1751 fi
1752
1753
1754 # Find the rest of the source tree framework.
1755 # Default to --enable-multilib
1756 # Check whether --enable-multilib or --disable-multilib was given.
1757 if test "${enable_multilib+set}" = set; then
1758   enableval="$enable_multilib"
1759   case "$enableval" in
1760   yes) multilib=yes ;;
1761   no)  multilib=no ;;
1762   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1763 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1764    { (exit 1); exit 1; }; } ;;
1765  esac
1766 else
1767   multilib=yes
1768 fi;
1769
1770 # We may get other options which we leave undocumented:
1771 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1772 # See config-ml.in if you want the gory details.
1773
1774 if test "$srcdir" = "."; then
1775   if test "$with_target_subdir" != "."; then
1776     multi_basedir="$srcdir/$with_multisrctop../../.."
1777   else
1778     multi_basedir="$srcdir/$with_multisrctop../.."
1779   fi
1780 else
1781   multi_basedir="$srcdir/../.."
1782 fi
1783
1784
1785 # Even if the default multilib is not a cross compilation,
1786 # it may be that some of the other multilibs are.
1787 if test $cross_compiling = no && test $multilib = yes \
1788    && test "x${with_multisubdir}" != x ; then
1789    cross_compiling=maybe
1790 fi
1791
1792           ac_config_commands="$ac_config_commands default-1"
1793
1794
1795
1796
1797 if test -z "${with_multisubdir}"; then
1798   INSTALL_BINARIES_TRUE=
1799   INSTALL_BINARIES_FALSE='#'
1800 else
1801   INSTALL_BINARIES_TRUE='#'
1802   INSTALL_BINARIES_FALSE=
1803 fi
1804
1805
1806 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
1807
1808 LIBVERSION="0:0:0"
1809
1810 case "$host_os" in
1811      darwin*)
1812         cp_module=""
1813         ;;
1814         *)
1815         cp_module="-module"
1816         ;;
1817 esac
1818
1819 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
1820
1821
1822 CLASSPATH_CONVENIENCE="-no-undefined"
1823
1824
1825
1826 am__api_version="1.9"
1827 # Find a good install program.  We prefer a C program (faster),
1828 # so one script is as good as another.  But avoid the broken or
1829 # incompatible versions:
1830 # SysV /etc/install, /usr/sbin/install
1831 # SunOS /usr/etc/install
1832 # IRIX /sbin/install
1833 # AIX /bin/install
1834 # AmigaOS /C/install, which installs bootblocks on floppy discs
1835 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1836 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1837 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1838 # OS/2's system install, which has a completely different semantic
1839 # ./install, which can be erroneously created by make from ./install.sh.
1840 # Reject install programs that cannot install multiple files.
1841 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1842 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1843 if test -z "$INSTALL"; then
1844 if test "${ac_cv_path_install+set}" = set; then
1845   echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850   IFS=$as_save_IFS
1851   test -z "$as_dir" && as_dir=.
1852   # Account for people who put trailing slashes in PATH elements.
1853 case $as_dir/ in
1854   ./ | .// | /cC/* | \
1855   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1856   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1857   /usr/ucb/* ) ;;
1858   *)
1859     # OSF1 and SCO ODT 3.0 have their own names for install.
1860     # Don't use installbsd from OSF since it installs stuff as root
1861     # by default.
1862     for ac_prog in ginstall scoinst install; do
1863       for ac_exec_ext in '' $ac_executable_extensions; do
1864         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1865           if test $ac_prog = install &&
1866             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1867             # AIX install.  It has an incompatible calling convention.
1868             :
1869           elif test $ac_prog = install &&
1870             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1871             # program-specific install script used by HP pwplus--don't use.
1872             :
1873           else
1874             rm -rf conftest.one conftest.two conftest.dir
1875             echo one > conftest.one
1876             echo two > conftest.two
1877             mkdir conftest.dir
1878             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1879               test -s conftest.one && test -s conftest.two &&
1880               test -s conftest.dir/conftest.one &&
1881               test -s conftest.dir/conftest.two
1882             then
1883               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1884               break 3
1885             fi
1886           fi
1887         fi
1888       done
1889     done
1890     ;;
1891 esac
1892 done
1893
1894 rm -rf conftest.one conftest.two conftest.dir
1895
1896 fi
1897   if test "${ac_cv_path_install+set}" = set; then
1898     INSTALL=$ac_cv_path_install
1899   else
1900     # As a last resort, use the slow shell script.  Don't cache a
1901     # value for INSTALL within a source directory, because that will
1902     # break other packages using the cache if that directory is
1903     # removed, or if the value is a relative name.
1904     INSTALL=$ac_install_sh
1905   fi
1906 fi
1907 echo "$as_me:$LINENO: result: $INSTALL" >&5
1908 echo "${ECHO_T}$INSTALL" >&6
1909
1910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1911 # It thinks the first close brace ends the variable substitution.
1912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1913
1914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1915
1916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1917
1918 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1919 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1920 # Just in case
1921 sleep 1
1922 echo timestamp > conftest.file
1923 # Do `set' in a subshell so we don't clobber the current shell's
1924 # arguments.  Must try -L first in case configure is actually a
1925 # symlink; some systems play weird games with the mod time of symlinks
1926 # (eg FreeBSD returns the mod time of the symlink's containing
1927 # directory).
1928 if (
1929    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1930    if test "$*" = "X"; then
1931       # -L didn't work.
1932       set X `ls -t $srcdir/configure conftest.file`
1933    fi
1934    rm -f conftest.file
1935    if test "$*" != "X $srcdir/configure conftest.file" \
1936       && test "$*" != "X conftest.file $srcdir/configure"; then
1937
1938       # If neither matched, then we have a broken ls.  This can happen
1939       # if, for instance, CONFIG_SHELL is bash and it inherits a
1940       # broken ls alias from the environment.  This has actually
1941       # happened.  Such a system could not be considered "sane".
1942       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1943 alias in your environment" >&5
1944 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1945 alias in your environment" >&2;}
1946    { (exit 1); exit 1; }; }
1947    fi
1948
1949    test "$2" = conftest.file
1950    )
1951 then
1952    # Ok.
1953    :
1954 else
1955    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1956 Check your system clock" >&5
1957 echo "$as_me: error: newly created file is older than distributed files!
1958 Check your system clock" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1963 test "$program_prefix" != NONE &&
1964   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1965 # Use a double $ so make ignores it.
1966 test "$program_suffix" != NONE &&
1967   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1968 # Double any \ or $.  echo might interpret backslashes.
1969 # By default was `s,x,x', remove it if useless.
1970 cat <<\_ACEOF >conftest.sed
1971 s/[\\$]/&&/g;s/;s,x,x,$//
1972 _ACEOF
1973 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1974 rm conftest.sed
1975
1976 # expand $ac_aux_dir to an absolute path
1977 am_aux_dir=`cd $ac_aux_dir && pwd`
1978
1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1980 # Use eval to expand $SHELL
1981 if eval "$MISSING --run true"; then
1982   am_missing_run="$MISSING --run "
1983 else
1984   am_missing_run=
1985   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1987 fi
1988
1989 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1990   # We used to keeping the `.' as first argument, in order to
1991   # allow $(mkdir_p) to be used without argument.  As in
1992   #   $(mkdir_p) $(somedir)
1993   # where $(somedir) is conditionally defined.  However this is wrong
1994   # for two reasons:
1995   #  1. if the package is installed by a user who cannot write `.'
1996   #     make install will fail,
1997   #  2. the above comment should most certainly read
1998   #     $(mkdir_p) $(DESTDIR)$(somedir)
1999   #     so it does not work when $(somedir) is undefined and
2000   #     $(DESTDIR) is not.
2001   #  To support the latter case, we have to write
2002   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2003   #  so the `.' trick is pointless.
2004   mkdir_p='mkdir -p --'
2005 else
2006   # On NextStep and OpenStep, the `mkdir' command does not
2007   # recognize any option.  It will interpret all options as
2008   # directories to create, and then abort because `.' already
2009   # exists.
2010   for d in ./-p ./--version;
2011   do
2012     test -d $d && rmdir $d
2013   done
2014   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2015   if test -f "$ac_aux_dir/mkinstalldirs"; then
2016     mkdir_p='$(mkinstalldirs)'
2017   else
2018     mkdir_p='$(install_sh) -d'
2019   fi
2020 fi
2021
2022 for ac_prog in gawk mawk nawk awk
2023 do
2024   # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_AWK+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test -n "$AWK"; then
2032   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041     ac_cv_prog_AWK="$ac_prog"
2042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046 done
2047
2048 fi
2049 fi
2050 AWK=$ac_cv_prog_AWK
2051 if test -n "$AWK"; then
2052   echo "$as_me:$LINENO: result: $AWK" >&5
2053 echo "${ECHO_T}$AWK" >&6
2054 else
2055   echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2057 fi
2058
2059   test -n "$AWK" && break
2060 done
2061
2062 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2063 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2064 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2065 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2066   echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068   cat >conftest.make <<\_ACEOF
2069 all:
2070         @echo 'ac_maketemp="$(MAKE)"'
2071 _ACEOF
2072 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2073 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2074 if test -n "$ac_maketemp"; then
2075   eval ac_cv_prog_make_${ac_make}_set=yes
2076 else
2077   eval ac_cv_prog_make_${ac_make}_set=no
2078 fi
2079 rm -f conftest.make
2080 fi
2081 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2082   echo "$as_me:$LINENO: result: yes" >&5
2083 echo "${ECHO_T}yes" >&6
2084   SET_MAKE=
2085 else
2086   echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6
2088   SET_MAKE="MAKE=${MAKE-make}"
2089 fi
2090
2091 rm -rf .tst 2>/dev/null
2092 mkdir .tst 2>/dev/null
2093 if test -d .tst; then
2094   am__leading_dot=.
2095 else
2096   am__leading_dot=_
2097 fi
2098 rmdir .tst 2>/dev/null
2099
2100 # test to see if srcdir already configured
2101 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2102    test -f $srcdir/config.status; then
2103   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2104 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2105    { (exit 1); exit 1; }; }
2106 fi
2107
2108 # test whether we have cygpath
2109 if test -z "$CYGPATH_W"; then
2110   if (cygpath --version) >/dev/null 2>/dev/null; then
2111     CYGPATH_W='cygpath -w'
2112   else
2113     CYGPATH_W=echo
2114   fi
2115 fi
2116
2117
2118 # Define the identity of the package.
2119  PACKAGE='classpath'
2120  VERSION='0.98'
2121
2122
2123 cat >>confdefs.h <<_ACEOF
2124 #define PACKAGE "$PACKAGE"
2125 _ACEOF
2126
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define VERSION "$VERSION"
2130 _ACEOF
2131
2132 # Some tools Automake needs.
2133
2134 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2135
2136
2137 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2138
2139
2140 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2141
2142
2143 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2144
2145
2146 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2147
2148 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2149
2150 # Installed binaries are usually stripped using `strip' when the user
2151 # run `make install-strip'.  However `strip' might not be the right
2152 # tool to use in cross-compilation environments, therefore Automake
2153 # will honor the `STRIP' environment variable to overrule this program.
2154 if test "$cross_compiling" != no; then
2155   if test -n "$ac_tool_prefix"; then
2156   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2157 set dummy ${ac_tool_prefix}strip; ac_word=$2
2158 echo "$as_me:$LINENO: checking for $ac_word" >&5
2159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160 if test "${ac_cv_prog_STRIP+set}" = set; then
2161   echo $ECHO_N "(cached) $ECHO_C" >&6
2162 else
2163   if test -n "$STRIP"; then
2164   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2165 else
2166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 for as_dir in $PATH
2168 do
2169   IFS=$as_save_IFS
2170   test -z "$as_dir" && as_dir=.
2171   for ac_exec_ext in '' $ac_executable_extensions; do
2172   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179
2180 fi
2181 fi
2182 STRIP=$ac_cv_prog_STRIP
2183 if test -n "$STRIP"; then
2184   echo "$as_me:$LINENO: result: $STRIP" >&5
2185 echo "${ECHO_T}$STRIP" >&6
2186 else
2187   echo "$as_me:$LINENO: result: no" >&5
2188 echo "${ECHO_T}no" >&6
2189 fi
2190
2191 fi
2192 if test -z "$ac_cv_prog_STRIP"; then
2193   ac_ct_STRIP=$STRIP
2194   # Extract the first word of "strip", so it can be a program name with args.
2195 set dummy strip; ac_word=$2
2196 echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$ac_ct_STRIP"; then
2202   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2211     ac_cv_prog_ac_ct_STRIP="strip"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217
2218   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2219 fi
2220 fi
2221 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2222 if test -n "$ac_ct_STRIP"; then
2223   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2224 echo "${ECHO_T}$ac_ct_STRIP" >&6
2225 else
2226   echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2228 fi
2229
2230   STRIP=$ac_ct_STRIP
2231 else
2232   STRIP="$ac_cv_prog_STRIP"
2233 fi
2234
2235 fi
2236 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2237
2238 # We need awk for the "check" target.  The system "awk" is bad on
2239 # some platforms.
2240 # Always define AMTAR for backward compatibility.
2241
2242 AMTAR=${AMTAR-"${am_missing_run}tar"}
2243
2244
2245 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2246 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2247 # Loop over all known methods to create a tar archive until one works.
2248 _am_tools='gnutar plaintar pax cpio none'
2249 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2250 # Do not fold the above two line into one, because Tru64 sh and
2251 # Solaris sh will not grok spaces in the rhs of `-'.
2252 for _am_tool in $_am_tools
2253 do
2254   case $_am_tool in
2255   gnutar)
2256     for _am_tar in tar gnutar gtar;
2257     do
2258       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2259    ($_am_tar --version) >&5 2>&5
2260    ac_status=$?
2261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262    (exit $ac_status); } && break
2263     done
2264     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2265     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2266     am__untar="$_am_tar -xf -"
2267     ;;
2268   plaintar)
2269     # Must skip GNU tar: if it does not support --format= it doesn't create
2270     # ustar tarball either.
2271     (tar --version) >/dev/null 2>&1 && continue
2272     am__tar='tar chf - "$$tardir"'
2273     am__tar_='tar chf - "$tardir"'
2274     am__untar='tar xf -'
2275     ;;
2276   pax)
2277     am__tar='pax -L -x ustar -w "$$tardir"'
2278     am__tar_='pax -L -x ustar -w "$tardir"'
2279     am__untar='pax -r'
2280     ;;
2281   cpio)
2282     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2283     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2284     am__untar='cpio -i -H ustar -d'
2285     ;;
2286   none)
2287     am__tar=false
2288     am__tar_=false
2289     am__untar=false
2290     ;;
2291   esac
2292
2293   # If the value was cached, stop now.  We just wanted to have am__tar
2294   # and am__untar set.
2295   test -n "${am_cv_prog_tar_ustar}" && break
2296
2297   # tar/untar a dummy directory, and stop if the command works
2298   rm -rf conftest.dir
2299   mkdir conftest.dir
2300   echo GrepMe > conftest.dir/file
2301   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2302    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2303    ac_status=$?
2304    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305    (exit $ac_status); }
2306   rm -rf conftest.dir
2307   if test -s conftest.tar; then
2308     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2309    ($am__untar <conftest.tar) >&5 2>&5
2310    ac_status=$?
2311    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312    (exit $ac_status); }
2313     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2314   fi
2315 done
2316 rm -rf conftest.dir
2317
2318 if test "${am_cv_prog_tar_ustar+set}" = set; then
2319   echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321   am_cv_prog_tar_ustar=$_am_tool
2322 fi
2323
2324 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2325 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2326
2327
2328
2329
2330
2331           ac_config_headers="$ac_config_headers include/config.h"
2332
2333
2334
2335
2336
2337 # Check whether --enable-collections or --disable-collections was given.
2338 if test "${enable_collections+set}" = set; then
2339   enableval="$enable_collections"
2340   case x"${enableval}" in
2341                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2342                 xno) COMPILE_COLLECTIONS=no ;;
2343                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
2344                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
2345               esac
2346 else
2347   COMPILE_COLLECTIONS=no
2348 fi;
2349
2350
2351 if test "x${COMPILE_COLLECTIONS}" = xyes; then
2352   CREATE_COLLECTIONS_TRUE=
2353   CREATE_COLLECTIONS_FALSE='#'
2354 else
2355   CREATE_COLLECTIONS_TRUE='#'
2356   CREATE_COLLECTIONS_FALSE=
2357 fi
2358
2359
2360 # Check whether --enable-jni or --disable-jni was given.
2361 if test "${enable_jni+set}" = set; then
2362   enableval="$enable_jni"
2363   case "${enableval}" in
2364                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2365                 no) COMPILE_JNI=no ;;
2366                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2367               esac
2368 else
2369   COMPILE_JNI=yes
2370 fi;
2371
2372
2373 if test "x${COMPILE_JNI}" = xyes; then
2374   CREATE_JNI_LIBRARIES_TRUE=
2375   CREATE_JNI_LIBRARIES_FALSE='#'
2376 else
2377   CREATE_JNI_LIBRARIES_TRUE='#'
2378   CREATE_JNI_LIBRARIES_FALSE=
2379 fi
2380
2381
2382 # Check whether --enable-core-jni or --disable-core-jni was given.
2383 if test "${enable_core_jni+set}" = set; then
2384   enableval="$enable_core_jni"
2385   case "${enableval}" in
2386                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2387                 no) COMPILE_CORE_JNI=no ;;
2388                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2389               esac
2390 else
2391   COMPILE_CORE_JNI=yes
2392 fi;
2393
2394
2395 if test "x${COMPILE_CORE_JNI}" = xyes; then
2396   CREATE_CORE_JNI_LIBRARIES_TRUE=
2397   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2398 else
2399   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2400   CREATE_CORE_JNI_LIBRARIES_FALSE=
2401 fi
2402
2403
2404 # Check whether --enable-default-preferences-peer or --disable-default-preferences-peer was given.
2405 if test "${enable_default_preferences_peer+set}" = set; then
2406   enableval="$enable_default_preferences_peer"
2407   case "${enableval}" in
2408                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
2409                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
2410                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
2411                 no|false) { { echo "$as_me:$LINENO: error: bad value '${enableval}' for --enable-default-preferences-peer" >&5
2412 echo "$as_me: error: bad value '${enableval}' for --enable-default-preferences-peer" >&2;}
2413    { (exit 1); exit 1; }; } ;;
2414                 *) DEFAULT_PREFS_PEER=${enableval} ;;
2415               esac
2416 else
2417   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
2418 fi;
2419
2420 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
2421 if test "${enable_gconf_peer+set}" = set; then
2422   enableval="$enable_gconf_peer"
2423   case "${enableval}" in
2424                 yes) COMPILE_GCONF_PEER=yes ;;
2425                 no) COMPILE_GCONF_PEER=no ;;
2426                 *) COMPILE_GCONF_PEER=yes ;;
2427               esac
2428 else
2429   COMPILE_GCONF_PEER=yes
2430 fi;
2431
2432
2433 if test "x${COMPILE_GCONF_PEER}" = xyes; then
2434   CREATE_GCONF_PEER_LIBRARIES_TRUE=
2435   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
2436 else
2437   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
2438   CREATE_GCONF_PEER_LIBRARIES_FALSE=
2439 fi
2440
2441
2442 # Check whether --enable-gconf-peers or --disable-gconf-peers was given.
2443 if test "${enable_gconf_peers+set}" = set; then
2444   enableval="$enable_gconf_peers"
2445   { { echo "$as_me:$LINENO: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&5
2446 echo "$as_me: error: No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" >&2;}
2447    { (exit 1); exit 1; }; }
2448 fi;
2449
2450 # Check whether --enable-gstreamer-peer or --disable-gstreamer-peer was given.
2451 if test "${enable_gstreamer_peer+set}" = set; then
2452   enableval="$enable_gstreamer_peer"
2453   case "${enableval}" in
2454                 yes) COMPILE_GSTREAMER_PEER=yes ;;
2455                 no) COMPILE_GSTREAMER_PEER=no ;;
2456                 *) COMPILE_GSTREAMER_PEER=default ;;
2457               esac
2458 else
2459   COMPILE_GSTREAMER_PEER=default
2460 fi;
2461
2462
2463 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
2464   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
2465   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
2466 else
2467   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
2468   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
2469 fi
2470
2471
2472 # Check whether --enable-gstreamer-peers or --disable-gstreamer-peers was given.
2473 if test "${enable_gstreamer_peers+set}" = set; then
2474   enableval="$enable_gstreamer_peers"
2475   { { echo "$as_me:$LINENO: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&5
2476 echo "$as_me: error: No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" >&2;}
2477    { (exit 1); exit 1; }; }
2478 fi;
2479
2480 # Check whether --enable-Werror or --disable-Werror was given.
2481 if test "${enable_Werror+set}" = set; then
2482   enableval="$enable_Werror"
2483   case "${enableval}" in
2484                 yes) ENABLE_WERROR=yes ;;
2485                 no) ENABLE_WERROR=no ;;
2486                 *) ENABLE_WERROR=default ;;
2487               esac
2488 else
2489   ENABLE_WERROR=default
2490 fi;
2491
2492 # Check whether --enable-default-toolkit or --disable-default-toolkit was given.
2493 if test "${enable_default_toolkit+set}" = set; then
2494   enableval="$enable_default_toolkit"
2495
2496 fi;
2497 default_toolkit=$enable_default_toolkit
2498 if test "$default_toolkit" = ""; then
2499    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2500 fi
2501
2502
2503 # Check whether --enable-xmlj or --disable-xmlj was given.
2504 if test "${enable_xmlj+set}" = set; then
2505   enableval="$enable_xmlj"
2506   case "${enableval}" in
2507                 yes) COMPILE_XMLJ=yes ;;
2508                 no) COMPILE_XMLJ=no ;;
2509                 *) COMPILE_XMLJ=no ;;
2510               esac
2511 else
2512   COMPILE_XMLJ=no
2513 fi;
2514
2515
2516 if test "x${COMPILE_XMLJ}" = xyes; then
2517   CREATE_XMLJ_LIBRARY_TRUE=
2518   CREATE_XMLJ_LIBRARY_FALSE='#'
2519 else
2520   CREATE_XMLJ_LIBRARY_TRUE='#'
2521   CREATE_XMLJ_LIBRARY_FALSE=
2522 fi
2523
2524
2525 DEPDIR="${am__leading_dot}deps"
2526
2527           ac_config_commands="$ac_config_commands depfiles"
2528
2529
2530 am_make=${MAKE-make}
2531 cat > confinc << 'END'
2532 am__doit:
2533         @echo done
2534 .PHONY: am__doit
2535 END
2536 # If we don't find an include directive, just comment out the code.
2537 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2538 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2539 am__include="#"
2540 am__quote=
2541 _am_result=none
2542 # First try GNU make style include.
2543 echo "include confinc" > confmf
2544 # We grep out `Entering directory' and `Leaving directory'
2545 # messages which can occur if `w' ends up in MAKEFLAGS.
2546 # In particular we don't look at `^make:' because GNU make might
2547 # be invoked under some other name (usually "gmake"), in which
2548 # case it prints its new name instead of `make'.
2549 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2550    am__include=include
2551    am__quote=
2552    _am_result=GNU
2553 fi
2554 # Now try BSD make style include.
2555 if test "$am__include" = "#"; then
2556    echo '.include "confinc"' > confmf
2557    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2558       am__include=.include
2559       am__quote="\""
2560       _am_result=BSD
2561    fi
2562 fi
2563
2564
2565 echo "$as_me:$LINENO: result: $_am_result" >&5
2566 echo "${ECHO_T}$_am_result" >&6
2567 rm -f confinc confmf
2568
2569 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2570 if test "${enable_dependency_tracking+set}" = set; then
2571   enableval="$enable_dependency_tracking"
2572
2573 fi;
2574 if test "x$enable_dependency_tracking" != xno; then
2575   am_depcomp="$ac_aux_dir/depcomp"
2576   AMDEPBACKSLASH='\'
2577 fi
2578
2579
2580 if test "x$enable_dependency_tracking" != xno; then
2581   AMDEP_TRUE=
2582   AMDEP_FALSE='#'
2583 else
2584   AMDEP_TRUE='#'
2585   AMDEP_FALSE=
2586 fi
2587
2588
2589
2590 ac_ext=c
2591 ac_cpp='$CPP $CPPFLAGS'
2592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 if test -n "$ac_tool_prefix"; then
2596   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${ac_cv_prog_CC+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$CC"; then
2604   ac_cv_prog_CC="$CC" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619
2620 fi
2621 fi
2622 CC=$ac_cv_prog_CC
2623 if test -n "$CC"; then
2624   echo "$as_me:$LINENO: result: $CC" >&5
2625 echo "${ECHO_T}$CC" >&6
2626 else
2627   echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2629 fi
2630
2631 fi
2632 if test -z "$ac_cv_prog_CC"; then
2633   ac_ct_CC=$CC
2634   # Extract the first word of "gcc", so it can be a program name with args.
2635 set dummy gcc; ac_word=$2
2636 echo "$as_me:$LINENO: checking for $ac_word" >&5
2637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2639   echo $ECHO_N "(cached) $ECHO_C" >&6
2640 else
2641   if test -n "$ac_ct_CC"; then
2642   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647   IFS=$as_save_IFS
2648   test -z "$as_dir" && as_dir=.
2649   for ac_exec_ext in '' $ac_executable_extensions; do
2650   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651     ac_cv_prog_ac_ct_CC="gcc"
2652     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653     break 2
2654   fi
2655 done
2656 done
2657
2658 fi
2659 fi
2660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6
2664 else
2665   echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6
2667 fi
2668
2669   CC=$ac_ct_CC
2670 else
2671   CC="$ac_cv_prog_CC"
2672 fi
2673
2674 if test -z "$CC"; then
2675   if test -n "$ac_tool_prefix"; then
2676   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}cc; ac_word=$2
2678 echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2680 if test "${ac_cv_prog_CC+set}" = set; then
2681   echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683   if test -n "$CC"; then
2684   ac_cv_prog_CC="$CC" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691   for ac_exec_ext in '' $ac_executable_extensions; do
2692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2693     ac_cv_prog_CC="${ac_tool_prefix}cc"
2694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698 done
2699
2700 fi
2701 fi
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704   echo "$as_me:$LINENO: result: $CC" >&5
2705 echo "${ECHO_T}$CC" >&6
2706 else
2707   echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6
2709 fi
2710
2711 fi
2712 if test -z "$ac_cv_prog_CC"; then
2713   ac_ct_CC=$CC
2714   # Extract the first word of "cc", so it can be a program name with args.
2715 set dummy cc; ac_word=$2
2716 echo "$as_me:$LINENO: checking for $ac_word" >&5
2717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2719   echo $ECHO_N "(cached) $ECHO_C" >&6
2720 else
2721   if test -n "$ac_ct_CC"; then
2722   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729   for ac_exec_ext in '' $ac_executable_extensions; do
2730   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2731     ac_cv_prog_ac_ct_CC="cc"
2732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736 done
2737
2738 fi
2739 fi
2740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2741 if test -n "$ac_ct_CC"; then
2742   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2743 echo "${ECHO_T}$ac_ct_CC" >&6
2744 else
2745   echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6
2747 fi
2748
2749   CC=$ac_ct_CC
2750 else
2751   CC="$ac_cv_prog_CC"
2752 fi
2753
2754 fi
2755 if test -z "$CC"; then
2756   # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766   ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772   for ac_exec_ext in '' $ac_executable_extensions; do
2773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775        ac_prog_rejected=yes
2776        continue
2777      fi
2778     ac_cv_prog_CC="cc"
2779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783 done
2784
2785 if test $ac_prog_rejected = yes; then
2786   # We found a bogon in the path, so make sure we never use it.
2787   set dummy $ac_cv_prog_CC
2788   shift
2789   if test $# != 0; then
2790     # We chose a different compiler from the bogus one.
2791     # However, it has the same basename, so the bogon will be chosen
2792     # first if we set CC to just the basename; use the full file name.
2793     shift
2794     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2795   fi
2796 fi
2797 fi
2798 fi
2799 CC=$ac_cv_prog_CC
2800 if test -n "$CC"; then
2801   echo "$as_me:$LINENO: result: $CC" >&5
2802 echo "${ECHO_T}$CC" >&6
2803 else
2804   echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808 fi
2809 if test -z "$CC"; then
2810   if test -n "$ac_tool_prefix"; then
2811   for ac_prog in cl
2812   do
2813     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2815 echo "$as_me:$LINENO: checking for $ac_word" >&5
2816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817 if test "${ac_cv_prog_CC+set}" = set; then
2818   echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820   if test -n "$CC"; then
2821   ac_cv_prog_CC="$CC" # Let the user override the test.
2822 else
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828   for ac_exec_ext in '' $ac_executable_extensions; do
2829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2832     break 2
2833   fi
2834 done
2835 done
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841   echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6
2843 else
2844   echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6
2846 fi
2847
2848     test -n "$CC" && break
2849   done
2850 fi
2851 if test -z "$CC"; then
2852   ac_ct_CC=$CC
2853   for ac_prog in cl
2854 do
2855   # Extract the first word of "$ac_prog", so it can be a program name with args.
2856 set dummy $ac_prog; ac_word=$2
2857 echo "$as_me:$LINENO: checking for $ac_word" >&5
2858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2860   echo $ECHO_N "(cached) $ECHO_C" >&6
2861 else
2862   if test -n "$ac_ct_CC"; then
2863   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870   for ac_exec_ext in '' $ac_executable_extensions; do
2871   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872     ac_cv_prog_ac_ct_CC="$ac_prog"
2873     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877 done
2878
2879 fi
2880 fi
2881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2882 if test -n "$ac_ct_CC"; then
2883   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2884 echo "${ECHO_T}$ac_ct_CC" >&6
2885 else
2886   echo "$as_me:$LINENO: result: no" >&5
2887 echo "${ECHO_T}no" >&6
2888 fi
2889
2890   test -n "$ac_ct_CC" && break
2891 done
2892
2893   CC=$ac_ct_CC
2894 fi
2895
2896 fi
2897
2898
2899 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2900 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2901 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }; }
2906
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO:" \
2909      "checking for C compiler version" >&5
2910 ac_compiler=`set X $ac_compile; echo $2`
2911 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2912   (eval $ac_compiler --version </dev/null >&5) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }
2916 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2917   (eval $ac_compiler -v </dev/null >&5) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }
2921 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2922   (eval $ac_compiler -V </dev/null >&5) 2>&5
2923   ac_status=$?
2924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925   (exit $ac_status); }
2926
2927 cat >conftest.$ac_ext <<_ACEOF
2928 /* confdefs.h.  */
2929 _ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h.  */
2933
2934 int
2935 main ()
2936 {
2937
2938   ;
2939   return 0;
2940 }
2941 _ACEOF
2942 # FIXME: Cleanup?
2943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2944   (eval $ac_link) 2>&5
2945   ac_status=$?
2946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947   (exit $ac_status); }; then
2948   gcc_no_link=no
2949 else
2950   gcc_no_link=yes
2951 fi
2952
2953 if test x$gcc_no_link = xyes; then
2954   # Setting cross_compile will disable run tests; it will
2955   # also disable AC_CHECK_FILE but that's generally
2956   # correct if we can't link.
2957   cross_compiling=yes
2958   EXEEXT=
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970
2971   ;
2972   return 0;
2973 }
2974 _ACEOF
2975 ac_clean_files_save=$ac_clean_files
2976 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2977 # Try to create an executable without -o first, disregard a.out.
2978 # It will help us diagnose broken compilers, and finding out an intuition
2979 # of exeext.
2980 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2981 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2982 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2983 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2984   (eval $ac_link_default) 2>&5
2985   ac_status=$?
2986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987   (exit $ac_status); }; then
2988   # Find the output, starting from the most likely.  This scheme is
2989 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2990 # resort.
2991
2992 # Be careful to initialize this variable, since it used to be cached.
2993 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2994 ac_cv_exeext=
2995 # b.out is created by i960 compilers.
2996 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2997 do
2998   test -f "$ac_file" || continue
2999   case $ac_file in
3000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
3001         ;;
3002     conftest.$ac_ext )
3003         # This is the source file.
3004         ;;
3005     [ab].out )
3006         # We found the default executable, but exeext='' is most
3007         # certainly right.
3008         break;;
3009     *.* )
3010         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011         # FIXME: I believe we export ac_cv_exeext for Libtool,
3012         # but it would be cool to find out if it's true.  Does anybody
3013         # maintain Libtool? --akim.
3014         export ac_cv_exeext
3015         break;;
3016     * )
3017         break;;
3018   esac
3019 done
3020 else
3021   echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3023
3024 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3025 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3027 See \`config.log' for more details." >&5
3028 echo "$as_me: error: C compiler cannot create executables
3029 See \`config.log' for more details." >&2;}
3030    { (exit 77); exit 77; }; }; }
3031 fi
3032
3033 ac_exeext=$ac_cv_exeext
3034 echo "$as_me:$LINENO: result: $ac_file" >&5
3035 echo "${ECHO_T}$ac_file" >&6
3036
3037 # Check the compiler produces executables we can run.  If not, either
3038 # the compiler is broken, or we cross compile.
3039 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3040 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3041 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3042 # If not cross compiling, check that we can run a simple program.
3043 if test "$cross_compiling" != yes; then
3044   if { ac_try='./$ac_file'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050     cross_compiling=no
3051   else
3052     if test "$cross_compiling" = maybe; then
3053         cross_compiling=yes
3054     else
3055         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3056 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&5
3060 echo "$as_me: error: cannot run C compiled programs.
3061 If you meant to cross compile, use \`--host'.
3062 See \`config.log' for more details." >&2;}
3063    { (exit 1); exit 1; }; }; }
3064     fi
3065   fi
3066 fi
3067 echo "$as_me:$LINENO: result: yes" >&5
3068 echo "${ECHO_T}yes" >&6
3069
3070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3071 ac_clean_files=$ac_clean_files_save
3072 # Check the compiler produces executables we can run.  If not, either
3073 # the compiler is broken, or we cross compile.
3074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3077 echo "${ECHO_T}$cross_compiling" >&6
3078
3079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3082   (eval $ac_link) 2>&5
3083   ac_status=$?
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); }; then
3086   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3089 # `rm'.
3090 for ac_file in conftest.exe conftest conftest.*; do
3091   test -f "$ac_file" || continue
3092   case $ac_file in
3093     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
3094     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095           export ac_cv_exeext
3096           break;;
3097     * ) break;;
3098   esac
3099 done
3100 else
3101   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3102 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3103 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3104 See \`config.log' for more details." >&5
3105 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3106 See \`config.log' for more details." >&2;}
3107    { (exit 1); exit 1; }; }; }
3108 fi
3109
3110 rm -f conftest$ac_cv_exeext
3111 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3112 echo "${ECHO_T}$ac_cv_exeext" >&6
3113
3114 rm -f conftest.$ac_ext
3115 EXEEXT=$ac_cv_exeext
3116 ac_exeext=$EXEEXT
3117 fi
3118 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3119 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3120 if test "${ac_cv_objext+set}" = set; then
3121   echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123   cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h.  */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h.  */
3129
3130 int
3131 main ()
3132 {
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 rm -f conftest.o conftest.obj
3139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3140   (eval $ac_compile) 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; then
3144   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3145   case $ac_file in
3146     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3147     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3148        break;;
3149   esac
3150 done
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3156 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&2;}
3161    { (exit 1); exit 1; }; }; }
3162 fi
3163
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3165 fi
3166 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3167 echo "${ECHO_T}$ac_cv_objext" >&6
3168 OBJEXT=$ac_cv_objext
3169 ac_objext=$OBJEXT
3170 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3173   echo $ECHO_N "(cached) $ECHO_C" >&6
3174 else
3175   cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185 #ifndef __GNUC__
3186        choke me
3187 #endif
3188
3189   ;
3190   return 0;
3191 }
3192 _ACEOF
3193 rm -f conftest.$ac_objext
3194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3195   (eval $ac_compile) 2>conftest.er1
3196   ac_status=$?
3197   grep -v '^ *+' conftest.er1 >conftest.err
3198   rm -f conftest.er1
3199   cat conftest.err >&5
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); } &&
3202          { ac_try='test -z "$ac_c_werror_flag"
3203                          || test ! -s conftest.err'
3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205   (eval $ac_try) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; } &&
3209          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3215   ac_compiler_gnu=yes
3216 else
3217   echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 ac_compiler_gnu=no
3221 fi
3222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3223 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224
3225 fi
3226 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3227 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3228 GCC=`test $ac_compiler_gnu = yes && echo yes`
3229 ac_test_CFLAGS=${CFLAGS+set}
3230 ac_save_CFLAGS=$CFLAGS
3231 CFLAGS="-g"
3232 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3233 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3234 if test "${ac_cv_prog_cc_g+set}" = set; then
3235   echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237   cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h.  */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h.  */
3243
3244 int
3245 main ()
3246 {
3247
3248   ;
3249   return 0;
3250 }
3251 _ACEOF
3252 rm -f conftest.$ac_objext
3253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3254   (eval $ac_compile) 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } &&
3261          { ac_try='test -z "$ac_c_werror_flag"
3262                          || test ! -s conftest.err'
3263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264   (eval $ac_try) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; } &&
3268          { ac_try='test -s conftest.$ac_objext'
3269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270   (eval $ac_try) 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274   ac_cv_prog_cc_g=yes
3275 else
3276   echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 ac_cv_prog_cc_g=no
3280 fi
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 fi
3283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3284 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3285 if test "$ac_test_CFLAGS" = set; then
3286   CFLAGS=$ac_save_CFLAGS
3287 elif test $ac_cv_prog_cc_g = yes; then
3288   if test "$GCC" = yes; then
3289     CFLAGS="-g -O2"
3290   else
3291     CFLAGS="-g"
3292   fi
3293 else
3294   if test "$GCC" = yes; then
3295     CFLAGS="-O2"
3296   else
3297     CFLAGS=
3298   fi
3299 fi
3300 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3301 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3302 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   ac_cv_prog_cc_stdc=no
3306 ac_save_CC=$CC
3307 cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #include <stdarg.h>
3314 #include <stdio.h>
3315 #include <sys/types.h>
3316 #include <sys/stat.h>
3317 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3318 struct buf { int x; };
3319 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3320 static char *e (p, i)
3321      char **p;
3322      int i;
3323 {
3324   return p[i];
3325 }
3326 static char *f (char * (*g) (char **, int), char **p, ...)
3327 {
3328   char *s;
3329   va_list v;
3330   va_start (v,p);
3331   s = g (p, va_arg (v,int));
3332   va_end (v);
3333   return s;
3334 }
3335
3336 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3337    function prototypes and stuff, but not '\xHH' hex character constants.
3338    These don't provoke an error unfortunately, instead are silently treated
3339    as 'x'.  The following induces an error, until -std1 is added to get
3340    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3341    array size at least.  It's necessary to write '\x00'==0 to get something
3342    that's true only with -std1.  */
3343 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3344
3345 int test (int i, double x);
3346 struct s1 {int (*f) (int a);};
3347 struct s2 {int (*f) (double a);};
3348 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3349 int argc;
3350 char **argv;
3351 int
3352 main ()
3353 {
3354 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 # Don't try gcc -ansi; that turns off useful extensions and
3360 # breaks some systems' header files.
3361 # AIX                   -qlanglvl=ansi
3362 # Ultrix and OSF/1      -std1
3363 # HP-UX 10.20 and later -Ae
3364 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3365 # SVR4                  -Xc -D__EXTENSIONS__
3366 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3367 do
3368   CC="$ac_save_CC $ac_arg"
3369   rm -f conftest.$ac_objext
3370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371   (eval $ac_compile) 2>conftest.er1
3372   ac_status=$?
3373   grep -v '^ *+' conftest.er1 >conftest.err
3374   rm -f conftest.er1
3375   cat conftest.err >&5
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); } &&
3378          { ac_try='test -z "$ac_c_werror_flag"
3379                          || test ! -s conftest.err'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; } &&
3385          { ac_try='test -s conftest.$ac_objext'
3386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387   (eval $ac_try) 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); }; }; then
3391   ac_cv_prog_cc_stdc=$ac_arg
3392 break
3393 else
3394   echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3396
3397 fi
3398 rm -f conftest.err conftest.$ac_objext
3399 done
3400 rm -f conftest.$ac_ext conftest.$ac_objext
3401 CC=$ac_save_CC
3402
3403 fi
3404
3405 case "x$ac_cv_prog_cc_stdc" in
3406   x|xno)
3407     echo "$as_me:$LINENO: result: none needed" >&5
3408 echo "${ECHO_T}none needed" >&6 ;;
3409   *)
3410     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3411 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3412     CC="$CC $ac_cv_prog_cc_stdc" ;;
3413 esac
3414
3415 # Some people use a C++ compiler to compile C.  Since we use `exit',
3416 # in C++ we need to declare it.  In case someone uses the same compiler
3417 # for both compiling C and C++ we need to have the C++ compiler decide
3418 # the declaration of exit, since it's the most demanding environment.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 #ifndef __cplusplus
3421   choke me
3422 #endif
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426   (eval $ac_compile) 2>conftest.er1
3427   ac_status=$?
3428   grep -v '^ *+' conftest.er1 >conftest.err
3429   rm -f conftest.er1
3430   cat conftest.err >&5
3431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432   (exit $ac_status); } &&
3433          { ac_try='test -z "$ac_c_werror_flag"
3434                          || test ! -s conftest.err'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; } &&
3440          { ac_try='test -s conftest.$ac_objext'
3441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442   (eval $ac_try) 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }; }; then
3446   for ac_declaration in \
3447    '' \
3448    'extern "C" void std::exit (int) throw (); using std::exit;' \
3449    'extern "C" void std::exit (int); using std::exit;' \
3450    'extern "C" void exit (int) throw ();' \
3451    'extern "C" void exit (int);' \
3452    'void exit (int);'
3453 do
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 $ac_declaration
3461 #include <stdlib.h>
3462 int
3463 main ()
3464 {
3465 exit (42);
3466   ;
3467   return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3472   (eval $ac_compile) 2>conftest.er1
3473   ac_status=$?
3474   grep -v '^ *+' conftest.er1 >conftest.err
3475   rm -f conftest.er1
3476   cat conftest.err >&5
3477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478   (exit $ac_status); } &&
3479          { ac_try='test -z "$ac_c_werror_flag"
3480                          || test ! -s conftest.err'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; } &&
3486          { ac_try='test -s conftest.$ac_objext'
3487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488   (eval $ac_try) 2>&5
3489   ac_status=$?
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); }; }; then
3492   :
3493 else
3494   echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 continue
3498 fi
3499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3500   cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 $ac_declaration
3507 int
3508 main ()
3509 {
3510 exit (42);
3511   ;
3512   return 0;
3513 }
3514 _ACEOF
3515 rm -f conftest.$ac_objext
3516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517   (eval $ac_compile) 2>conftest.er1
3518   ac_status=$?
3519   grep -v '^ *+' conftest.er1 >conftest.err
3520   rm -f conftest.er1
3521   cat conftest.err >&5
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); } &&
3524          { ac_try='test -z "$ac_c_werror_flag"
3525                          || test ! -s conftest.err'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; } &&
3531          { ac_try='test -s conftest.$ac_objext'
3532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533   (eval $ac_try) 2>&5
3534   ac_status=$?
3535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536   (exit $ac_status); }; }; then
3537   break
3538 else
3539   echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 fi
3543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3544 done
3545 rm -f conftest*
3546 if test -n "$ac_declaration"; then
3547   echo '#ifdef __cplusplus' >>confdefs.h
3548   echo $ac_declaration      >>confdefs.h
3549   echo '#endif'             >>confdefs.h
3550 fi
3551
3552 else
3553   echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 fi
3557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_ext=c
3559 ac_cpp='$CPP $CPPFLAGS'
3560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3563
3564 depcc="$CC"   am_compiler_list=
3565
3566 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3569   echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3572   # We make a subdir and do the tests there.  Otherwise we can end up
3573   # making bogus files that we don't know about and never remove.  For
3574   # instance it was reported that on HP-UX the gcc test will end up
3575   # making a dummy file named `D' -- because `-MD' means `put the output
3576   # in D'.
3577   mkdir conftest.dir
3578   # Copy depcomp to subdir because otherwise we won't find it if we're
3579   # using a relative directory.
3580   cp "$am_depcomp" conftest.dir
3581   cd conftest.dir
3582   # We will build objects and dependencies in a subdirectory because
3583   # it helps to detect inapplicable dependency modes.  For instance
3584   # both Tru64's cc and ICC support -MD to output dependencies as a
3585   # side effect of compilation, but ICC will put the dependencies in
3586   # the current directory while Tru64 will put them in the object
3587   # directory.
3588   mkdir sub
3589
3590   am_cv_CC_dependencies_compiler_type=none
3591   if test "$am_compiler_list" = ""; then
3592      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3593   fi
3594   for depmode in $am_compiler_list; do
3595     # Setup a source with many dependencies, because some compilers
3596     # like to wrap large dependency lists on column 80 (with \), and
3597     # we should not choose a depcomp mode which is confused by this.
3598     #
3599     # We need to recreate these files for each test, as the compiler may
3600     # overwrite some of them when testing with obscure command lines.
3601     # This happens at least with the AIX C compiler.
3602     : > sub/conftest.c
3603     for i in 1 2 3 4 5 6; do
3604       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3605       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3606       # Solaris 8's {/usr,}/bin/sh.
3607       touch sub/conftst$i.h
3608     done
3609     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3610
3611     case $depmode in
3612     nosideeffect)
3613       # after this tag, mechanisms are not by side-effect, so they'll
3614       # only be used when explicitly requested
3615       if test "x$enable_dependency_tracking" = xyes; then
3616         continue
3617       else
3618         break
3619       fi
3620       ;;
3621     none) break ;;
3622     esac
3623     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3624     # mode.  It turns out that the SunPro C++ compiler does not properly
3625     # handle `-M -o', and we need to detect this.
3626     if depmode=$depmode \
3627        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3628        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3629        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3630          >/dev/null 2>conftest.err &&
3631        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3632        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3633        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3634       # icc doesn't choke on unknown options, it will just issue warnings
3635       # or remarks (even with -Werror).  So we grep stderr for any message
3636       # that says an option was ignored or not supported.
3637       # When given -MP, icc 7.0 and 7.1 complain thusly:
3638       #   icc: Command line warning: ignoring option '-M'; no argument required
3639       # The diagnosis changed in icc 8.0:
3640       #   icc: Command line remark: option '-MP' not supported
3641       if (grep 'ignoring option' conftest.err ||
3642           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3643         am_cv_CC_dependencies_compiler_type=$depmode
3644         break
3645       fi
3646     fi
3647   done
3648
3649   cd ..
3650   rm -rf conftest.dir
3651 else
3652   am_cv_CC_dependencies_compiler_type=none
3653 fi
3654
3655 fi
3656 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3658 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3659
3660
3661
3662 if
3663   test "x$enable_dependency_tracking" != xno \
3664   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665   am__fastdepCC_TRUE=
3666   am__fastdepCC_FALSE='#'
3667 else
3668   am__fastdepCC_TRUE='#'
3669   am__fastdepCC_FALSE=
3670 fi
3671
3672
3673
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3680 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3681 # On Suns, sometimes $CPP names a directory.
3682 if test -n "$CPP" && test -d "$CPP"; then
3683   CPP=
3684 fi
3685 if test -z "$CPP"; then
3686   if test "${ac_cv_prog_CPP+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689       # Double quotes because CPP needs to be expanded
3690     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3691     do
3692       ac_preproc_ok=false
3693 for ac_c_preproc_warn_flag in '' yes
3694 do
3695   # Use a header file that comes with gcc, so configuring glibc
3696   # with a fresh cross-compiler works.
3697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698   # <limits.h> exists even on freestanding compilers.
3699   # On the NeXT, cc -E runs the code through the compiler's parser,
3700   # not just through cpp. "Syntax error" is here to catch this case.
3701   cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h.  */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h.  */
3707 #ifdef __STDC__
3708 # include <limits.h>
3709 #else
3710 # include <assert.h>
3711 #endif
3712                      Syntax error
3713 _ACEOF
3714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3715   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3716   ac_status=$?
3717   grep -v '^ *+' conftest.er1 >conftest.err
3718   rm -f conftest.er1
3719   cat conftest.err >&5
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); } >/dev/null; then
3722   if test -s conftest.err; then
3723     ac_cpp_err=$ac_c_preproc_warn_flag
3724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3725   else
3726     ac_cpp_err=
3727   fi
3728 else
3729   ac_cpp_err=yes
3730 fi
3731 if test -z "$ac_cpp_err"; then
3732   :
3733 else
3734   echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737   # Broken: fails on valid input.
3738 continue
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741
3742   # OK, works on sane cases.  Now check whether non-existent headers
3743   # can be detected and how.
3744   cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h.  */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h.  */
3750 #include <ac_nonexistent.h>
3751 _ACEOF
3752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3753   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3754   ac_status=$?
3755   grep -v '^ *+' conftest.er1 >conftest.err
3756   rm -f conftest.er1
3757   cat conftest.err >&5
3758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759   (exit $ac_status); } >/dev/null; then
3760   if test -s conftest.err; then
3761     ac_cpp_err=$ac_c_preproc_warn_flag
3762     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3763   else
3764     ac_cpp_err=
3765   fi
3766 else
3767   ac_cpp_err=yes
3768 fi
3769 if test -z "$ac_cpp_err"; then
3770   # Broken: success on invalid input.
3771 continue
3772 else
3773   echo "$as_me: failed program was:" >&5
3774 sed 's/^/| /' conftest.$ac_ext >&5
3775
3776   # Passes both tests.
3777 ac_preproc_ok=:
3778 break
3779 fi
3780 rm -f conftest.err conftest.$ac_ext
3781
3782 done
3783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3784 rm -f conftest.err conftest.$ac_ext
3785 if $ac_preproc_ok; then
3786   break
3787 fi
3788
3789     done
3790     ac_cv_prog_CPP=$CPP
3791
3792 fi
3793   CPP=$ac_cv_prog_CPP
3794 else
3795   ac_cv_prog_CPP=$CPP
3796 fi
3797 echo "$as_me:$LINENO: result: $CPP" >&5
3798 echo "${ECHO_T}$CPP" >&6
3799 ac_preproc_ok=false
3800 for ac_c_preproc_warn_flag in '' yes
3801 do
3802   # Use a header file that comes with gcc, so configuring glibc
3803   # with a fresh cross-compiler works.
3804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3805   # <limits.h> exists even on freestanding compilers.
3806   # On the NeXT, cc -E runs the code through the compiler's parser,
3807   # not just through cpp. "Syntax error" is here to catch this case.
3808   cat >conftest.$ac_ext <<_ACEOF
3809 /* confdefs.h.  */
3810 _ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h.  */
3814 #ifdef __STDC__
3815 # include <limits.h>
3816 #else
3817 # include <assert.h>
3818 #endif
3819                      Syntax error
3820 _ACEOF
3821 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3822   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823   ac_status=$?
3824   grep -v '^ *+' conftest.er1 >conftest.err
3825   rm -f conftest.er1
3826   cat conftest.err >&5
3827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828   (exit $ac_status); } >/dev/null; then
3829   if test -s conftest.err; then
3830     ac_cpp_err=$ac_c_preproc_warn_flag
3831     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3832   else
3833     ac_cpp_err=
3834   fi
3835 else
3836   ac_cpp_err=yes
3837 fi
3838 if test -z "$ac_cpp_err"; then
3839   :
3840 else
3841   echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3843
3844   # Broken: fails on valid input.
3845 continue
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849   # OK, works on sane cases.  Now check whether non-existent headers
3850   # can be detected and how.
3851   cat >conftest.$ac_ext <<_ACEOF
3852 /* confdefs.h.  */
3853 _ACEOF
3854 cat confdefs.h >>conftest.$ac_ext
3855 cat >>conftest.$ac_ext <<_ACEOF
3856 /* end confdefs.h.  */
3857 #include <ac_nonexistent.h>
3858 _ACEOF
3859 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3860   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3861   ac_status=$?
3862   grep -v '^ *+' conftest.er1 >conftest.err
3863   rm -f conftest.er1
3864   cat conftest.err >&5
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); } >/dev/null; then
3867   if test -s conftest.err; then
3868     ac_cpp_err=$ac_c_preproc_warn_flag
3869     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3870   else
3871     ac_cpp_err=
3872   fi
3873 else
3874   ac_cpp_err=yes
3875 fi
3876 if test -z "$ac_cpp_err"; then
3877   # Broken: success on invalid input.
3878 continue
3879 else
3880   echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3882
3883   # Passes both tests.
3884 ac_preproc_ok=:
3885 break
3886 fi
3887 rm -f conftest.err conftest.$ac_ext
3888
3889 done
3890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3891 rm -f conftest.err conftest.$ac_ext
3892 if $ac_preproc_ok; then
3893   :
3894 else
3895   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3896 echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details." >&5
3899 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3900 See \`config.log' for more details." >&2;}
3901    { (exit 1); exit 1; }; }; }
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910
3911 echo "$as_me:$LINENO: checking for egrep" >&5
3912 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3913 if test "${ac_cv_prog_egrep+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3917     then ac_cv_prog_egrep='grep -E'
3918     else ac_cv_prog_egrep='egrep'
3919     fi
3920 fi
3921 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3922 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3923  EGREP=$ac_cv_prog_egrep
3924
3925
3926 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3927 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3928 if test "${ac_cv_header_stdc+set}" = set; then
3929   echo $ECHO_N "(cached) $ECHO_C" >&6
3930 else
3931   cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937 #include <stdlib.h>
3938 #include <stdarg.h>
3939 #include <string.h>
3940 #include <float.h>
3941
3942 int
3943 main ()
3944 {
3945
3946   ;
3947   return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3952   (eval $ac_compile) 2>conftest.er1
3953   ac_status=$?
3954   grep -v '^ *+' conftest.er1 >conftest.err
3955   rm -f conftest.er1
3956   cat conftest.err >&5
3957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958   (exit $ac_status); } &&
3959          { ac_try='test -z "$ac_c_werror_flag"
3960                          || test ! -s conftest.err'
3961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962   (eval $ac_try) 2>&5
3963   ac_status=$?
3964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965   (exit $ac_status); }; } &&
3966          { ac_try='test -s conftest.$ac_objext'
3967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968   (eval $ac_try) 2>&5
3969   ac_status=$?
3970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971   (exit $ac_status); }; }; then
3972   ac_cv_header_stdc=yes
3973 else
3974   echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 ac_cv_header_stdc=no
3978 fi
3979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980
3981 if test $ac_cv_header_stdc = yes; then
3982   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983   cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h.  */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h.  */
3989 #include <string.h>
3990
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993   $EGREP "memchr" >/dev/null 2>&1; then
3994   :
3995 else
3996   ac_cv_header_stdc=no
3997 fi
3998 rm -f conftest*
3999
4000 fi
4001
4002 if test $ac_cv_header_stdc = yes; then
4003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004   cat >conftest.$ac_ext <<_ACEOF
4005 /* confdefs.h.  */
4006 _ACEOF
4007 cat confdefs.h >>conftest.$ac_ext
4008 cat >>conftest.$ac_ext <<_ACEOF
4009 /* end confdefs.h.  */
4010 #include <stdlib.h>
4011
4012 _ACEOF
4013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014   $EGREP "free" >/dev/null 2>&1; then
4015   :
4016 else
4017   ac_cv_header_stdc=no
4018 fi
4019 rm -f conftest*
4020
4021 fi
4022
4023 if test $ac_cv_header_stdc = yes; then
4024   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4025   if test "$cross_compiling" = yes; then
4026   :
4027 else
4028   cat >conftest.$ac_ext <<_ACEOF
4029 /* confdefs.h.  */
4030 _ACEOF
4031 cat confdefs.h >>conftest.$ac_ext
4032 cat >>conftest.$ac_ext <<_ACEOF
4033 /* end confdefs.h.  */
4034 #include <ctype.h>
4035 #if ((' ' & 0x0FF) == 0x020)
4036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4038 #else
4039 # define ISLOWER(c) \
4040                    (('a' <= (c) && (c) <= 'i') \
4041                      || ('j' <= (c) && (c) <= 'r') \
4042                      || ('s' <= (c) && (c) <= 'z'))
4043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044 #endif
4045
4046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4047 int
4048 main ()
4049 {
4050   int i;
4051   for (i = 0; i < 256; i++)
4052     if (XOR (islower (i), ISLOWER (i))
4053         || toupper (i) != TOUPPER (i))
4054       exit(2);
4055   exit (0);
4056 }
4057 _ACEOF
4058 rm -f conftest$ac_exeext
4059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4060   (eval $ac_link) 2>&5
4061   ac_status=$?
4062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; }; then
4069   :
4070 else
4071   echo "$as_me: program exited with status $ac_status" >&5
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075 ( exit $ac_status )
4076 ac_cv_header_stdc=no
4077 fi
4078 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4079 fi
4080 fi
4081 fi
4082 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4083 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4084 if test $ac_cv_header_stdc = yes; then
4085
4086 cat >>confdefs.h <<\_ACEOF
4087 #define STDC_HEADERS 1
4088 _ACEOF
4089
4090 fi
4091
4092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4103                   inttypes.h stdint.h unistd.h
4104 do
4105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4106 echo "$as_me:$LINENO: checking for $ac_header" >&5
4107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   cat >conftest.$ac_ext <<_ACEOF
4112 /* confdefs.h.  */
4113 _ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h.  */
4117 $ac_includes_default
4118
4119 #include <$ac_header>
4120 _ACEOF
4121 rm -f conftest.$ac_objext
4122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4123   (eval $ac_compile) 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } &&
4130          { ac_try='test -z "$ac_c_werror_flag"
4131                          || test ! -s conftest.err'
4132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133   (eval $ac_try) 2>&5
4134   ac_status=$?
4135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136   (exit $ac_status); }; } &&
4137          { ac_try='test -s conftest.$ac_objext'
4138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139   (eval $ac_try) 2>&5
4140   ac_status=$?
4141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142   (exit $ac_status); }; }; then
4143   eval "$as_ac_Header=yes"
4144 else
4145   echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4147
4148 eval "$as_ac_Header=no"
4149 fi
4150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4151 fi
4152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4155   cat >>confdefs.h <<_ACEOF
4156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4157 _ACEOF
4158
4159 fi
4160
4161 done
4162
4163
4164 # Check whether --enable-alsa or --disable-alsa was given.
4165 if test "${enable_alsa+set}" = set; then
4166   enableval="$enable_alsa"
4167   case "${enableval}" in
4168                 yes) COMPILE_ALSA=yes ;;
4169                 no) COMPILE_ALSA=no ;;
4170                 *) COMPILE_ALSA=yes ;;
4171               esac
4172 else
4173
4174 for ac_header in alsa/asoundlib.h
4175 do
4176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4178   echo "$as_me:$LINENO: checking for $ac_header" >&5
4179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4180 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4181   echo $ECHO_N "(cached) $ECHO_C" >&6
4182 fi
4183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4185 else
4186   # Is the header compilable?
4187 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4190 /* confdefs.h.  */
4191 _ACEOF
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h.  */
4195 $ac_includes_default
4196 #include <$ac_header>
4197 _ACEOF
4198 rm -f conftest.$ac_objext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200   (eval $ac_compile) 2>conftest.er1
4201   ac_status=$?
4202   grep -v '^ *+' conftest.er1 >conftest.err
4203   rm -f conftest.er1
4204   cat conftest.err >&5
4205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206   (exit $ac_status); } &&
4207          { ac_try='test -z "$ac_c_werror_flag"
4208                          || test ! -s conftest.err'
4209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210   (eval $ac_try) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; } &&
4214          { ac_try='test -s conftest.$ac_objext'
4215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216   (eval $ac_try) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; }; then
4220   ac_header_compiler=yes
4221 else
4222   echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_header_compiler=no
4226 fi
4227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4229 echo "${ECHO_T}$ac_header_compiler" >&6
4230
4231 # Is the header present?
4232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4234 cat >conftest.$ac_ext <<_ACEOF
4235 /* confdefs.h.  */
4236 _ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h.  */
4240 #include <$ac_header>
4241 _ACEOF
4242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4244   ac_status=$?
4245   grep -v '^ *+' conftest.er1 >conftest.err
4246   rm -f conftest.er1
4247   cat conftest.err >&5
4248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); } >/dev/null; then
4250   if test -s conftest.err; then
4251     ac_cpp_err=$ac_c_preproc_warn_flag
4252     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4253   else
4254     ac_cpp_err=
4255   fi
4256 else
4257   ac_cpp_err=yes
4258 fi
4259 if test -z "$ac_cpp_err"; then
4260   ac_header_preproc=yes
4261 else
4262   echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4264
4265   ac_header_preproc=no
4266 fi
4267 rm -f conftest.err conftest.$ac_ext
4268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4269 echo "${ECHO_T}$ac_header_preproc" >&6
4270
4271 # So?  What about this header?
4272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4273   yes:no: )
4274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4278     ac_header_preproc=yes
4279     ;;
4280   no:yes:* )
4281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4293     (
4294       cat <<\_ASBOX
4295 ## -------------------------------- ##
4296 ## Report this to classpath@gnu.org ##
4297 ## -------------------------------- ##
4298 _ASBOX
4299     ) |
4300       sed "s/^/$as_me: WARNING:     /" >&2
4301     ;;
4302 esac
4303 echo "$as_me:$LINENO: checking for $ac_header" >&5
4304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   eval "$as_ac_Header=\$ac_header_preproc"
4309 fi
4310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4312
4313 fi
4314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4315   cat >>confdefs.h <<_ACEOF
4316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4317 _ACEOF
4318  echo "$as_me:$LINENO: checking for snd_seq_open in -lasound" >&5
4319 echo $ECHO_N "checking for snd_seq_open in -lasound... $ECHO_C" >&6
4320 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   ac_check_lib_save_LIBS=$LIBS
4324 LIBS="-lasound  $LIBS"
4325 if test x$gcc_no_link = xyes; then
4326   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4327 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4328    { (exit 1); exit 1; }; }
4329 fi
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h.  */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h.  */
4336
4337 /* Override any gcc2 internal prototype to avoid an error.  */
4338 #ifdef __cplusplus
4339 extern "C"
4340 #endif
4341 /* We use char because int might match the return type of a gcc2
4342    builtin and then its argument prototype would still apply.  */
4343 char snd_seq_open ();
4344 int
4345 main ()
4346 {
4347 snd_seq_open ();
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4354   (eval $ac_link) 2>conftest.er1
4355   ac_status=$?
4356   grep -v '^ *+' conftest.er1 >conftest.err
4357   rm -f conftest.er1
4358   cat conftest.err >&5
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); } &&
4361          { ac_try='test -z "$ac_c_werror_flag"
4362                          || test ! -s conftest.err'
4363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364   (eval $ac_try) 2>&5
4365   ac_status=$?
4366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367   (exit $ac_status); }; } &&
4368          { ac_try='test -s conftest$ac_exeext'
4369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370   (eval $ac_try) 2>&5
4371   ac_status=$?
4372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373   (exit $ac_status); }; }; then
4374   ac_cv_lib_asound_snd_seq_open=yes
4375 else
4376   echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 ac_cv_lib_asound_snd_seq_open=no
4380 fi
4381 rm -f conftest.err conftest.$ac_objext \
4382       conftest$ac_exeext conftest.$ac_ext
4383 LIBS=$ac_check_lib_save_LIBS
4384 fi
4385 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_seq_open" >&5
4386 echo "${ECHO_T}$ac_cv_lib_asound_snd_seq_open" >&6
4387 if test $ac_cv_lib_asound_snd_seq_open = yes; then
4388   COMPILE_ALSA=yes
4389 else
4390   COMPILE_ALSA=no
4391 fi
4392
4393 else
4394   COMPILE_ALSA=no
4395 fi
4396
4397 done
4398
4399 fi;
4400
4401
4402 if test "x${COMPILE_ALSA}" = xyes; then
4403   CREATE_ALSA_LIBRARIES_TRUE=
4404   CREATE_ALSA_LIBRARIES_FALSE='#'
4405 else
4406   CREATE_ALSA_LIBRARIES_TRUE='#'
4407   CREATE_ALSA_LIBRARIES_FALSE=
4408 fi
4409
4410
4411 # Check whether --enable-dssi or --disable-dssi was given.
4412 if test "${enable_dssi+set}" = set; then
4413   enableval="$enable_dssi"
4414   case "${enableval}" in
4415                 yes) COMPILE_DSSI=yes ;;
4416                 no) COMPILE_DSSI=no ;;
4417                 *) COMPILE_DSSI=yes ;;
4418               esac
4419 else
4420   COMPILE_DSSI=no
4421
4422 for ac_header in dssi.h
4423 do
4424 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4426   echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 fi
4431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4433 else
4434   # Is the header compilable?
4435 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h.  */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h.  */
4443 $ac_includes_default
4444 #include <$ac_header>
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448   (eval $ac_compile) 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag"
4456                          || test ! -s conftest.err'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   ac_header_compiler=yes
4469 else
4470   echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4472
4473 ac_header_compiler=no
4474 fi
4475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4477 echo "${ECHO_T}$ac_header_compiler" >&6
4478
4479 # Is the header present?
4480 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4482 cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h.  */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h.  */
4488 #include <$ac_header>
4489 _ACEOF
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } >/dev/null; then
4498   if test -s conftest.err; then
4499     ac_cpp_err=$ac_c_preproc_warn_flag
4500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4501   else
4502     ac_cpp_err=
4503   fi
4504 else
4505   ac_cpp_err=yes
4506 fi
4507 if test -z "$ac_cpp_err"; then
4508   ac_header_preproc=yes
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513   ac_header_preproc=no
4514 fi
4515 rm -f conftest.err conftest.$ac_ext
4516 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4517 echo "${ECHO_T}$ac_header_preproc" >&6
4518
4519 # So?  What about this header?
4520 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4521   yes:no: )
4522     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4523 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4524     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4525 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4526     ac_header_preproc=yes
4527     ;;
4528   no:yes:* )
4529     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4530 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4531     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4532 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4533     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4534 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4535     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4536 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4537     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4538 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4539     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4540 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4541     (
4542       cat <<\_ASBOX
4543 ## -------------------------------- ##
4544 ## Report this to classpath@gnu.org ##
4545 ## -------------------------------- ##
4546 _ASBOX
4547     ) |
4548       sed "s/^/$as_me: WARNING:     /" >&2
4549     ;;
4550 esac
4551 echo "$as_me:$LINENO: checking for $ac_header" >&5
4552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4554   echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556   eval "$as_ac_Header=\$ac_header_preproc"
4557 fi
4558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560
4561 fi
4562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4563   cat >>confdefs.h <<_ACEOF
4564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565 _ACEOF
4566
4567
4568 for ac_header in jack/jack.h
4569 do
4570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572   echo "$as_me:$LINENO: checking for $ac_header" >&5
4573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 fi
4577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579 else
4580   # Is the header compilable?
4581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 $ac_includes_default
4590 #include <$ac_header>
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594   (eval $ac_compile) 2>conftest.er1
4595   ac_status=$?
4596   grep -v '^ *+' conftest.er1 >conftest.err
4597   rm -f conftest.er1
4598   cat conftest.err >&5
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } &&
4601          { ac_try='test -z "$ac_c_werror_flag"
4602                          || test ! -s conftest.err'
4603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604   (eval $ac_try) 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; } &&
4608          { ac_try='test -s conftest.$ac_objext'
4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610   (eval $ac_try) 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; }; then
4614   ac_header_compiler=yes
4615 else
4616   echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 ac_header_compiler=no
4620 fi
4621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623 echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625 # Is the header present?
4626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <$ac_header>
4635 _ACEOF
4636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638   ac_status=$?
4639   grep -v '^ *+' conftest.er1 >conftest.err
4640   rm -f conftest.er1
4641   cat conftest.err >&5
4642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643   (exit $ac_status); } >/dev/null; then
4644   if test -s conftest.err; then
4645     ac_cpp_err=$ac_c_preproc_warn_flag
4646     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4647   else
4648     ac_cpp_err=
4649   fi
4650 else
4651   ac_cpp_err=yes
4652 fi
4653 if test -z "$ac_cpp_err"; then
4654   ac_header_preproc=yes
4655 else
4656   echo "$as_me: failed program was:" >&5
4657 sed 's/^/| /' conftest.$ac_ext >&5
4658
4659   ac_header_preproc=no
4660 fi
4661 rm -f conftest.err conftest.$ac_ext
4662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663 echo "${ECHO_T}$ac_header_preproc" >&6
4664
4665 # So?  What about this header?
4666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4667   yes:no: )
4668     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672     ac_header_preproc=yes
4673     ;;
4674   no:yes:* )
4675     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4678 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4679     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4682 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4687     (
4688       cat <<\_ASBOX
4689 ## -------------------------------- ##
4690 ## Report this to classpath@gnu.org ##
4691 ## -------------------------------- ##
4692 _ASBOX
4693     ) |
4694       sed "s/^/$as_me: WARNING:     /" >&2
4695     ;;
4696 esac
4697 echo "$as_me:$LINENO: checking for $ac_header" >&5
4698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   eval "$as_ac_Header=\$ac_header_preproc"
4703 fi
4704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706
4707 fi
4708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709   cat >>confdefs.h <<_ACEOF
4710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711 _ACEOF
4712  COMPILE_DSSI=yes
4713 fi
4714
4715 done
4716
4717 fi
4718
4719 done
4720
4721 fi;
4722
4723
4724 if test "x${COMPILE_DSSI}" = xyes; then
4725   CREATE_DSSI_LIBRARIES_TRUE=
4726   CREATE_DSSI_LIBRARIES_FALSE='#'
4727 else
4728   CREATE_DSSI_LIBRARIES_TRUE='#'
4729   CREATE_DSSI_LIBRARIES_FALSE=
4730 fi
4731
4732
4733 # Check whether --enable-gtk-peer or --disable-gtk-peer was given.
4734 if test "${enable_gtk_peer+set}" = set; then
4735   enableval="$enable_gtk_peer"
4736   case "${enableval}" in
4737                 yes) COMPILE_GTK_PEER=yes ;;
4738                 no) COMPILE_GTK_PEER=no ;;
4739                 *) COMPILE_GTK_PEER=yes ;;
4740               esac
4741 else
4742   COMPILE_GTK_PEER=yes
4743 fi;
4744
4745
4746 if test "x${COMPILE_GTK_PEER}" = xyes; then
4747   CREATE_GTK_PEER_LIBRARIES_TRUE=
4748   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
4749 else
4750   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
4751   CREATE_GTK_PEER_LIBRARIES_FALSE=
4752 fi
4753
4754
4755 # Check whether --enable-gtk-peers or --disable-gtk-peers was given.
4756 if test "${enable_gtk_peers+set}" = set; then
4757   enableval="$enable_gtk_peers"
4758   { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
4759 echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
4760    { (exit 1); exit 1; }; }
4761 fi;
4762
4763 # Check whether --enable-qt-peer or --disable-qt-peer was given.
4764 if test "${enable_qt_peer+set}" = set; then
4765   enableval="$enable_qt_peer"
4766   case "${enableval}" in
4767                 yes) COMPILE_QT_PEER=yes ;;
4768                 no) COMPILE_QT_PEER=no ;;
4769                 *) COMPILE_QT_PEER=yes ;;
4770               esac
4771 else
4772   COMPILE_QT_PEER=no
4773 fi;
4774
4775
4776 if test "x${COMPILE_QT_PEER}" = xyes; then
4777   CREATE_QT_PEER_LIBRARIES_TRUE=
4778   CREATE_QT_PEER_LIBRARIES_FALSE='#'
4779 else
4780   CREATE_QT_PEER_LIBRARIES_TRUE='#'
4781   CREATE_QT_PEER_LIBRARIES_FALSE=
4782 fi
4783
4784
4785 # Check whether --enable-plugin or --disable-plugin was given.
4786 if test "${enable_plugin+set}" = set; then
4787   enableval="$enable_plugin"
4788   case "${enableval}" in
4789                 yes) COMPILE_PLUGIN=yes ;;
4790                 no) COMPILE_PLUGIN=no ;;
4791                 *) COMPILE_PLUGIN=yes ;;
4792               esac
4793 else
4794   COMPILE_PLUGIN=yes
4795 fi;
4796
4797
4798 if test "x${COMPILE_PLUGIN}" = xyes; then
4799   CREATE_PLUGIN_TRUE=
4800   CREATE_PLUGIN_FALSE='#'
4801 else
4802   CREATE_PLUGIN_TRUE='#'
4803   CREATE_PLUGIN_FALSE=
4804 fi
4805
4806
4807 # Check whether --enable-gmp or --disable-gmp was given.
4808 if test "${enable_gmp+set}" = set; then
4809   enableval="$enable_gmp"
4810   case "${enableval}" in
4811                 yes|true) COMPILE_GMP=yes ;;
4812                 no|false) COMPILE_GMP=no ;;
4813                 *) COMPILE_GMP=yes ;;
4814               esac
4815 else
4816   COMPILE_GMP=yes
4817 fi;
4818
4819 # Check whether --enable-gjdoc or --disable-gjdoc was given.
4820 if test "${enable_gjdoc+set}" = set; then
4821   enableval="$enable_gjdoc"
4822   case "${enableval}" in
4823                 yes) COMPILE_GJDOC=yes ;;
4824                 no) COMPILE_GJDOC=no ;;
4825                 *) COMPILE_GJDOC=yes ;;
4826               esac
4827 else
4828   COMPILE_GJDOC=yes
4829 fi;
4830
4831
4832 if test "x${COMPILE_GJDOC}" = xyes; then
4833   CREATE_GJDOC_TRUE=
4834   CREATE_GJDOC_FALSE='#'
4835 else
4836   CREATE_GJDOC_TRUE='#'
4837   CREATE_GJDOC_FALSE=
4838 fi
4839
4840
4841
4842   multi_os_directory=`$CC -print-multi-os-directory`
4843   case $multi_os_directory in
4844     .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
4845     *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
4846   esac
4847
4848
4849
4850
4851 # Check whether --with-native-libdir or --without-native-libdir was given.
4852 if test "${with_native_libdir+set}" = set; then
4853   withval="$with_native_libdir"
4854
4855              nativeexeclibdir=${withval}
4856
4857 else
4858
4859              nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
4860
4861 fi;
4862
4863
4864
4865
4866 # Check whether --with-glibj-dir or --without-glibj-dir was given.
4867 if test "${with_glibj_dir+set}" = set; then
4868   withval="$with_glibj_dir"
4869
4870              glibjdir=${withval}
4871
4872 else
4873
4874              glibjdir='${datadir}/${PACKAGE}'
4875
4876 fi;
4877
4878
4879
4880
4881 # Check whether --with-antlr-jar or --without-antlr-jar was given.
4882 if test "${with_antlr_jar+set}" = set; then
4883   withval="$with_antlr_jar"
4884
4885              ANTLR_JAR=$withval
4886
4887 else
4888
4889              ANTLR_JAR="$ANTLR_JAR"
4890
4891 fi;
4892
4893 echo "$as_me:$LINENO: checking whether to regenerate the headers" >&5
4894 echo $ECHO_N "checking whether to regenerate the headers... $ECHO_C" >&6
4895 # Check whether --enable-regen-headers or --disable-regen-headers was given.
4896 if test "${enable_regen_headers+set}" = set; then
4897   enableval="$enable_regen_headers"
4898   case "${enableval}" in
4899                 yes) REGENERATE_JNI_HEADERS=yes ;;
4900                 no) REGENERATE_JNI_HEADERS=no ;;
4901                 *) REGENERATE_JNI_HEADERS=yes ;;
4902               esac
4903 else
4904   if test -e ${srcdir}/include/java_lang_VMSystem.h; then
4905                         REGENERATE_JNI_HEADERS=no ;
4906                    else
4907                         REGENERATE_JNI_HEADERS=yes ;
4908                fi
4909 fi;
4910 echo "$as_me:$LINENO: result: ${REGENERATE_JNI_HEADERS}" >&5
4911 echo "${ECHO_T}${REGENERATE_JNI_HEADERS}" >&6
4912
4913
4914 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
4915   CREATE_JNI_HEADERS_TRUE=
4916   CREATE_JNI_HEADERS_FALSE='#'
4917 else
4918   CREATE_JNI_HEADERS_TRUE='#'
4919   CREATE_JNI_HEADERS_FALSE=
4920 fi
4921
4922
4923 echo "$as_me:$LINENO: checking whether to regenerate the GJDoc parser" >&5
4924 echo $ECHO_N "checking whether to regenerate the GJDoc parser... $ECHO_C" >&6
4925 # Check whether --enable-regen-gjdoc-parser or --disable-regen-gjdoc-parser was given.
4926 if test "${enable_regen_gjdoc_parser+set}" = set; then
4927   enableval="$enable_regen_gjdoc_parser"
4928   case "${enableval}" in
4929                 yes) REGENERATE_GJDOC_PARSER=yes ;;
4930                 no) REGENERATE_GJDOC_PARSER=no ;;
4931                 *) REGENERATE_GJDOC_PARSER=yes ;;
4932               esac
4933 else
4934   if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
4935                         REGENERATE_GJDOC_PARSER=no ;
4936                    else
4937                         REGENERATE_GJDOC_PARSER=yes ;
4938                fi
4939 fi;
4940 echo "$as_me:$LINENO: result: ${REGENERATE_GJDOC_PARSER}" >&5
4941 echo "${ECHO_T}${REGENERATE_GJDOC_PARSER}" >&6
4942
4943
4944 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
4945   CREATE_GJDOC_PARSER_TRUE=
4946   CREATE_GJDOC_PARSER_FALSE='#'
4947 else
4948   CREATE_GJDOC_PARSER_TRUE='#'
4949   CREATE_GJDOC_PARSER_FALSE=
4950 fi
4951
4952
4953 # Check whether --enable-tool-wrappers or --disable-tool-wrappers was given.
4954 if test "${enable_tool_wrappers+set}" = set; then
4955   enableval="$enable_tool_wrappers"
4956   case x"${enableval}" in
4957                 xyes)
4958                   COMPILE_WRAPPERS=yes;
4959
4960 for ac_header in ltdl.h
4961 do
4962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964   echo "$as_me:$LINENO: checking for $ac_header" >&5
4965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4966 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 fi
4969 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4970 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4971 else
4972   # Is the header compilable?
4973 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h.  */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h.  */
4981 $ac_includes_default
4982 #include <$ac_header>
4983 _ACEOF
4984 rm -f conftest.$ac_objext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986   (eval $ac_compile) 2>conftest.er1
4987   ac_status=$?
4988   grep -v '^ *+' conftest.er1 >conftest.err
4989   rm -f conftest.er1
4990   cat conftest.err >&5
4991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992   (exit $ac_status); } &&
4993          { ac_try='test -z "$ac_c_werror_flag"
4994                          || test ! -s conftest.err'
4995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996   (eval $ac_try) 2>&5
4997   ac_status=$?
4998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999   (exit $ac_status); }; } &&
5000          { ac_try='test -s conftest.$ac_objext'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }; then
5006   ac_header_compiler=yes
5007 else
5008   echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 ac_header_compiler=no
5012 fi
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6
5016
5017 # Is the header present?
5018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h.  */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h.  */
5026 #include <$ac_header>
5027 _ACEOF
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030   ac_status=$?
5031   grep -v '^ *+' conftest.er1 >conftest.err
5032   rm -f conftest.er1
5033   cat conftest.err >&5
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } >/dev/null; then
5036   if test -s conftest.err; then
5037     ac_cpp_err=$ac_c_preproc_warn_flag
5038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039   else
5040     ac_cpp_err=
5041   fi
5042 else
5043   ac_cpp_err=yes
5044 fi
5045 if test -z "$ac_cpp_err"; then
5046   ac_header_preproc=yes
5047 else
5048   echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051   ac_header_preproc=no
5052 fi
5053 rm -f conftest.err conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055 echo "${ECHO_T}$ac_header_preproc" >&6
5056
5057 # So?  What about this header?
5058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059   yes:no: )
5060     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064     ac_header_preproc=yes
5065     ;;
5066   no:yes:* )
5067     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5070 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5071     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5074 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5075     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5079     (
5080       cat <<\_ASBOX
5081 ## -------------------------------- ##
5082 ## Report this to classpath@gnu.org ##
5083 ## -------------------------------- ##
5084 _ASBOX
5085     ) |
5086       sed "s/^/$as_me: WARNING:     /" >&2
5087     ;;
5088 esac
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092   echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094   eval "$as_ac_Header=\$ac_header_preproc"
5095 fi
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098
5099 fi
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101   cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103 _ACEOF
5104
5105 else
5106   { { echo "$as_me:$LINENO: error: cannot find ltdl.h" >&5
5107 echo "$as_me: error: cannot find ltdl.h" >&2;}
5108    { (exit 1); exit 1; }; }
5109 fi
5110
5111 done
5112
5113
5114 echo "$as_me:$LINENO: checking for lt_dlopen in -lltdl" >&5
5115 echo $ECHO_N "checking for lt_dlopen in -lltdl... $ECHO_C" >&6
5116 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   ac_check_lib_save_LIBS=$LIBS
5120 LIBS="-lltdl  $LIBS"
5121 if test x$gcc_no_link = xyes; then
5122   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5124    { (exit 1); exit 1; }; }
5125 fi
5126 cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132
5133 /* Override any gcc2 internal prototype to avoid an error.  */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 /* We use char because int might match the return type of a gcc2
5138    builtin and then its argument prototype would still apply.  */
5139 char lt_dlopen ();
5140 int
5141 main ()
5142 {
5143 lt_dlopen ();
5144   ;
5145   return 0;
5146 }
5147 _ACEOF
5148 rm -f conftest.$ac_objext conftest$ac_exeext
5149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150   (eval $ac_link) 2>conftest.er1
5151   ac_status=$?
5152   grep -v '^ *+' conftest.er1 >conftest.err
5153   rm -f conftest.er1
5154   cat conftest.err >&5
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); } &&
5157          { ac_try='test -z "$ac_c_werror_flag"
5158                          || test ! -s conftest.err'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; } &&
5164          { ac_try='test -s conftest$ac_exeext'
5165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166   (eval $ac_try) 2>&5
5167   ac_status=$?
5168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169   (exit $ac_status); }; }; then
5170   ac_cv_lib_ltdl_lt_dlopen=yes
5171 else
5172   echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175 ac_cv_lib_ltdl_lt_dlopen=no
5176 fi
5177 rm -f conftest.err conftest.$ac_objext \
5178       conftest$ac_exeext conftest.$ac_ext
5179 LIBS=$ac_check_lib_save_LIBS
5180 fi
5181 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5182 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlopen" >&6
5183 if test $ac_cv_lib_ltdl_lt_dlopen = yes; then
5184   cat >>confdefs.h <<_ACEOF
5185 #define HAVE_LIBLTDL 1
5186 _ACEOF
5187
5188   LIBS="-lltdl $LIBS"
5189
5190 else
5191   { { echo "$as_me:$LINENO: error: cannot find libltdl" >&5
5192 echo "$as_me: error: cannot find libltdl" >&2;}
5193    { (exit 1); exit 1; }; }
5194 fi
5195
5196                   ;;
5197                 xno) COMPILE_WRAPPERS=no ;;
5198                 x) COMPILE_WRAPPERS=yes ;;
5199                 *) COMPILE_WRAPPERS=yes ;;
5200               esac
5201 else
5202   COMPILE_WRAPPERS=no
5203 fi;
5204
5205
5206 if test "x${COMPILE_WRAPPERS}" = xyes; then
5207   CREATE_WRAPPERS_TRUE=
5208   CREATE_WRAPPERS_FALSE='#'
5209 else
5210   CREATE_WRAPPERS_TRUE='#'
5211   CREATE_WRAPPERS_FALSE=
5212 fi
5213
5214
5215 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5216 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5217 LN_S=$as_ln_s
5218 if test "$LN_S" = "ln -s"; then
5219   echo "$as_me:$LINENO: result: yes" >&5
5220 echo "${ECHO_T}yes" >&6
5221 else
5222   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5223 echo "${ECHO_T}no, using $LN_S" >&6
5224 fi
5225
5226 # Find a good install program.  We prefer a C program (faster),
5227 # so one script is as good as another.  But avoid the broken or
5228 # incompatible versions:
5229 # SysV /etc/install, /usr/sbin/install
5230 # SunOS /usr/etc/install
5231 # IRIX /sbin/install
5232 # AIX /bin/install
5233 # AmigaOS /C/install, which installs bootblocks on floppy discs
5234 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5235 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5236 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5237 # OS/2's system install, which has a completely different semantic
5238 # ./install, which can be erroneously created by make from ./install.sh.
5239 # Reject install programs that cannot install multiple files.
5240 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5241 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5242 if test -z "$INSTALL"; then
5243 if test "${ac_cv_path_install+set}" = set; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251   # Account for people who put trailing slashes in PATH elements.
5252 case $as_dir/ in
5253   ./ | .// | /cC/* | \
5254   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5255   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5256   /usr/ucb/* ) ;;
5257   *)
5258     # OSF1 and SCO ODT 3.0 have their own names for install.
5259     # Don't use installbsd from OSF since it installs stuff as root
5260     # by default.
5261     for ac_prog in ginstall scoinst install; do
5262       for ac_exec_ext in '' $ac_executable_extensions; do
5263         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5264           if test $ac_prog = install &&
5265             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5266             # AIX install.  It has an incompatible calling convention.
5267             :
5268           elif test $ac_prog = install &&
5269             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5270             # program-specific install script used by HP pwplus--don't use.
5271             :
5272           else
5273             rm -rf conftest.one conftest.two conftest.dir
5274             echo one > conftest.one
5275             echo two > conftest.two
5276             mkdir conftest.dir
5277             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5278               test -s conftest.one && test -s conftest.two &&
5279               test -s conftest.dir/conftest.one &&
5280               test -s conftest.dir/conftest.two
5281             then
5282               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5283               break 3
5284             fi
5285           fi
5286         fi
5287       done
5288     done
5289     ;;
5290 esac
5291 done
5292
5293 rm -rf conftest.one conftest.two conftest.dir
5294
5295 fi
5296   if test "${ac_cv_path_install+set}" = set; then
5297     INSTALL=$ac_cv_path_install
5298   else
5299     # As a last resort, use the slow shell script.  Don't cache a
5300     # value for INSTALL within a source directory, because that will
5301     # break other packages using the cache if that directory is
5302     # removed, or if the value is a relative name.
5303     INSTALL=$ac_install_sh
5304   fi
5305 fi
5306 echo "$as_me:$LINENO: result: $INSTALL" >&5
5307 echo "${ECHO_T}$INSTALL" >&6
5308
5309 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5310 # It thinks the first close brace ends the variable substitution.
5311 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5312
5313 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5314
5315 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5316
5317
5318
5319 # Check whether --enable-static or --disable-static was given.
5320 if test "${enable_static+set}" = set; then
5321   enableval="$enable_static"
5322   p=${PACKAGE-default}
5323     case $enableval in
5324     yes) enable_static=yes ;;
5325     no) enable_static=no ;;
5326     *)
5327      enable_static=no
5328       # Look at the argument we got.  We use all the common list separators.
5329       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5330       for pkg in $enableval; do
5331         IFS="$lt_save_ifs"
5332         if test "X$pkg" = "X$p"; then
5333           enable_static=yes
5334         fi
5335       done
5336       IFS="$lt_save_ifs"
5337       ;;
5338     esac
5339 else
5340   enable_static=no
5341 fi;
5342
5343
5344
5345
5346
5347
5348
5349
5350 case `pwd` in
5351   *\ * | *\     *)
5352     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5353 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5354 esac
5355
5356
5357
5358 macro_version='2.2.6'
5359 macro_revision='1.3012'
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 ltmain="$ac_aux_dir/ltmain.sh"
5374
5375 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5376 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5377 if test "${lt_cv_path_SED+set}" = set; then
5378   echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380   # Loop through the user's path and test for sed and gsed.
5381 # Then use that list of sed's as ones to test for truncation.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385   IFS=$as_save_IFS
5386   test -z "$as_dir" && as_dir=.
5387   for lt_ac_prog in sed gsed; do
5388     for ac_exec_ext in '' $ac_executable_extensions; do
5389       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5390         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5391       fi
5392     done
5393   done
5394 done
5395 IFS=$as_save_IFS
5396 lt_ac_max=0
5397 lt_ac_count=0
5398 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5399 # along with /bin/sed that truncates output.
5400 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5401   test ! -f $lt_ac_sed && continue
5402   cat /dev/null > conftest.in
5403   lt_ac_count=0
5404   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5405   # Check for GNU sed and select it if it is found.
5406   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5407     lt_cv_path_SED=$lt_ac_sed
5408     break
5409   fi
5410   while true; do
5411     cat conftest.in conftest.in >conftest.tmp
5412     mv conftest.tmp conftest.in
5413     cp conftest.in conftest.nl
5414     echo >>conftest.nl
5415     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5416     cmp -s conftest.out conftest.nl || break
5417     # 10000 chars as input seems more than enough
5418     test $lt_ac_count -gt 10 && break
5419     lt_ac_count=`expr $lt_ac_count + 1`
5420     if test $lt_ac_count -gt $lt_ac_max; then
5421       lt_ac_max=$lt_ac_count
5422       lt_cv_path_SED=$lt_ac_sed
5423     fi
5424   done
5425 done
5426
5427 fi
5428
5429 SED=$lt_cv_path_SED
5430
5431 echo "$as_me:$LINENO: result: $SED" >&5
5432 echo "${ECHO_T}$SED" >&6
5433
5434 test -z "$SED" && SED=sed
5435 Xsed="$SED -e 1s/^X//"
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447 echo "$as_me:$LINENO: checking for fgrep" >&5
5448 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5449 if test "${ac_cv_prog_fgrep+set}" = set; then
5450   echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5453     then ac_cv_prog_fgrep='grep -F'
5454     else ac_cv_prog_fgrep='fgrep'
5455     fi
5456 fi
5457 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5458 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5459  FGREP=$ac_cv_prog_fgrep
5460
5461
5462 test -z "$GREP" && GREP=grep
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5483 if test "${with_gnu_ld+set}" = set; then
5484   withval="$with_gnu_ld"
5485   test "$withval" = no || with_gnu_ld=yes
5486 else
5487   with_gnu_ld=no
5488 fi;
5489 ac_prog=ld
5490 if test "$GCC" = yes; then
5491   # Check if gcc -print-prog-name=ld gives a path.
5492   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5493 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5494   case $host in
5495   *-*-mingw*)
5496     # gcc leaves a trailing carriage return which upsets mingw
5497     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5498   *)
5499     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5500   esac
5501   case $ac_prog in
5502     # Accept absolute paths.
5503     [\\/]* | ?:[\\/]*)
5504       re_direlt='/[^/][^/]*/\.\./'
5505       # Canonicalize the pathname of ld
5506       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5507       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5508         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5509       done
5510       test -z "$LD" && LD="$ac_prog"
5511       ;;
5512   "")
5513     # If it fails, then pretend we aren't using GCC.
5514     ac_prog=ld
5515     ;;
5516   *)
5517     # If it is relative, then search for the first ld in PATH.
5518     with_gnu_ld=unknown
5519     ;;
5520   esac
5521 elif test "$with_gnu_ld" = yes; then
5522   echo "$as_me:$LINENO: checking for GNU ld" >&5
5523 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5524 else
5525   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5526 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5527 fi
5528 if test "${lt_cv_path_LD+set}" = set; then
5529   echo $ECHO_N "(cached) $ECHO_C" >&6
5530 else
5531   if test -z "$LD"; then
5532   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5533   for ac_dir in $PATH; do
5534     IFS="$lt_save_ifs"
5535     test -z "$ac_dir" && ac_dir=.
5536     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5537       lt_cv_path_LD="$ac_dir/$ac_prog"
5538       # Check to see if the program is GNU ld.  I'd rather use --version,
5539       # but apparently some variants of GNU ld only accept -v.
5540       # Break only if it was the GNU/non-GNU ld that we prefer.
5541       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5542       *GNU* | *'with BFD'*)
5543         test "$with_gnu_ld" != no && break
5544         ;;
5545       *)
5546         test "$with_gnu_ld" != yes && break
5547         ;;
5548       esac
5549     fi
5550   done
5551   IFS="$lt_save_ifs"
5552 else
5553   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5554 fi
5555 fi
5556
5557 LD="$lt_cv_path_LD"
5558 if test -n "$LD"; then
5559   echo "$as_me:$LINENO: result: $LD" >&5
5560 echo "${ECHO_T}$LD" >&6
5561 else
5562   echo "$as_me:$LINENO: result: no" >&5
5563 echo "${ECHO_T}no" >&6
5564 fi
5565 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5566 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5567    { (exit 1); exit 1; }; }
5568 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5569 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5570 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5571   echo $ECHO_N "(cached) $ECHO_C" >&6
5572 else
5573   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5574 case `$LD -v 2>&1 </dev/null` in
5575 *GNU* | *'with BFD'*)
5576   lt_cv_prog_gnu_ld=yes
5577   ;;
5578 *)
5579   lt_cv_prog_gnu_ld=no
5580   ;;
5581 esac
5582 fi
5583 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5584 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5585 with_gnu_ld=$lt_cv_prog_gnu_ld
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5596 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5597 if test "${lt_cv_path_NM+set}" = set; then
5598   echo $ECHO_N "(cached) $ECHO_C" >&6
5599 else
5600   if test -n "$NM"; then
5601   # Let the user override the test.
5602   lt_cv_path_NM="$NM"
5603 else
5604   lt_nm_to_check="${ac_tool_prefix}nm"
5605   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5606     lt_nm_to_check="$lt_nm_to_check nm"
5607   fi
5608   for lt_tmp_nm in $lt_nm_to_check; do
5609     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5610     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5611       IFS="$lt_save_ifs"
5612       test -z "$ac_dir" && ac_dir=.
5613       tmp_nm="$ac_dir/$lt_tmp_nm"
5614       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5615         # Check to see if the nm accepts a BSD-compat flag.
5616         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5617         #   nm: unknown option "B" ignored
5618         # Tru64's nm complains that /dev/null is an invalid object file
5619         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5620         */dev/null* | *'Invalid file or object type'*)
5621           lt_cv_path_NM="$tmp_nm -B"
5622           break
5623           ;;
5624         *)
5625           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5626           */dev/null*)
5627             lt_cv_path_NM="$tmp_nm -p"
5628             break
5629             ;;
5630           *)
5631             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5632             continue # so that we can try to find one that supports BSD flags
5633             ;;
5634           esac
5635           ;;
5636         esac
5637       fi
5638     done
5639     IFS="$lt_save_ifs"
5640   done
5641   : ${lt_cv_path_NM=no}
5642 fi
5643 fi
5644 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5645 echo "${ECHO_T}$lt_cv_path_NM" >&6
5646 if test "$lt_cv_path_NM" != "no"; then
5647   NM="$lt_cv_path_NM"
5648 else
5649   # Didn't find any BSD compatible name lister, look for dumpbin.
5650   if test -n "$ac_tool_prefix"; then
5651   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5652   do
5653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5655 echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5657 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   if test -n "$DUMPBIN"; then
5661   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668   for ac_exec_ext in '' $ac_executable_extensions; do
5669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5670     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675 done
5676
5677 fi
5678 fi
5679 DUMPBIN=$ac_cv_prog_DUMPBIN
5680 if test -n "$DUMPBIN"; then
5681   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5682 echo "${ECHO_T}$DUMPBIN" >&6
5683 else
5684   echo "$as_me:$LINENO: result: no" >&5
5685 echo "${ECHO_T}no" >&6
5686 fi
5687
5688     test -n "$DUMPBIN" && break
5689   done
5690 fi
5691 if test -z "$DUMPBIN"; then
5692   ac_ct_DUMPBIN=$DUMPBIN
5693   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5694 do
5695   # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5699 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5700   echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702   if test -n "$ac_ct_DUMPBIN"; then
5703   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708   IFS=$as_save_IFS
5709   test -z "$as_dir" && as_dir=.
5710   for ac_exec_ext in '' $ac_executable_extensions; do
5711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714     break 2
5715   fi
5716 done
5717 done
5718
5719 fi
5720 fi
5721 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5722 if test -n "$ac_ct_DUMPBIN"; then
5723   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5724 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5725 else
5726   echo "$as_me:$LINENO: result: no" >&5
5727 echo "${ECHO_T}no" >&6
5728 fi
5729
5730   test -n "$ac_ct_DUMPBIN" && break
5731 done
5732 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5733
5734   DUMPBIN=$ac_ct_DUMPBIN
5735 fi
5736
5737
5738   if test "$DUMPBIN" != ":"; then
5739     NM="$DUMPBIN"
5740   fi
5741 fi
5742 test -z "$NM" && NM=nm
5743
5744
5745
5746
5747
5748
5749 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5750 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5751 if test "${lt_cv_nm_interface+set}" = set; then
5752   echo $ECHO_N "(cached) $ECHO_C" >&6
5753 else
5754   lt_cv_nm_interface="BSD nm"
5755   echo "int some_variable = 0;" > conftest.$ac_ext
5756   (eval echo "\"\$as_me:5756: $ac_compile\"" >&5)
5757   (eval "$ac_compile" 2>conftest.err)
5758   cat conftest.err >&5
5759   (eval echo "\"\$as_me:5759: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5760   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5761   cat conftest.err >&5
5762   (eval echo "\"\$as_me:5762: output\"" >&5)
5763   cat conftest.out >&5
5764   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5765     lt_cv_nm_interface="MS dumpbin"
5766   fi
5767   rm -f conftest*
5768 fi
5769 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5770 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5771
5772 # find the maximum length of command line arguments
5773 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5774 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5775 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778     i=0
5779   teststring="ABCD"
5780
5781   case $build_os in
5782   msdosdjgpp*)
5783     # On DJGPP, this test can blow up pretty badly due to problems in libc
5784     # (any single argument exceeding 2000 bytes causes a buffer overrun
5785     # during glob expansion).  Even if it were fixed, the result of this
5786     # check would be larger than it should be.
5787     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5788     ;;
5789
5790   gnu*)
5791     # Under GNU Hurd, this test is not required because there is
5792     # no limit to the length of command line arguments.
5793     # Libtool will interpret -1 as no limit whatsoever
5794     lt_cv_sys_max_cmd_len=-1;
5795     ;;
5796
5797   cygwin* | mingw* | cegcc*)
5798     # On Win9x/ME, this test blows up -- it succeeds, but takes
5799     # about 5 minutes as the teststring grows exponentially.
5800     # Worse, since 9x/ME are not pre-emptively multitasking,
5801     # you end up with a "frozen" computer, even though with patience
5802     # the test eventually succeeds (with a max line length of 256k).
5803     # Instead, let's just punt: use the minimum linelength reported by
5804     # all of the supported platforms: 8192 (on NT/2K/XP).
5805     lt_cv_sys_max_cmd_len=8192;
5806     ;;
5807
5808   amigaos*)
5809     # On AmigaOS with pdksh, this test takes hours, literally.
5810     # So we just punt and use a minimum line length of 8192.
5811     lt_cv_sys_max_cmd_len=8192;
5812     ;;
5813
5814   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5815     # This has been around since 386BSD, at least.  Likely further.
5816     if test -x /sbin/sysctl; then
5817       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5818     elif test -x /usr/sbin/sysctl; then
5819       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5820     else
5821       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5822     fi
5823     # And add a safety zone
5824     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5825     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5826     ;;
5827
5828   interix*)
5829     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5830     lt_cv_sys_max_cmd_len=196608
5831     ;;
5832
5833   osf*)
5834     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5835     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5836     # nice to cause kernel panics so lets avoid the loop below.
5837     # First set a reasonable default.
5838     lt_cv_sys_max_cmd_len=16384
5839     #
5840     if test -x /sbin/sysconfig; then
5841       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5842         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5843       esac
5844     fi
5845     ;;
5846   sco3.2v5*)
5847     lt_cv_sys_max_cmd_len=102400
5848     ;;
5849   sysv5* | sco5v6* | sysv4.2uw2*)
5850     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5851     if test -n "$kargmax"; then
5852       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5853     else
5854       lt_cv_sys_max_cmd_len=32768
5855     fi
5856     ;;
5857   *)
5858     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5859     if test -n "$lt_cv_sys_max_cmd_len"; then
5860       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5862     else
5863       # Make teststring a little bigger before we do anything with it.
5864       # a 1K string should be a reasonable start.
5865       for i in 1 2 3 4 5 6 7 8 ; do
5866         teststring=$teststring$teststring
5867       done
5868       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5869       # If test is not a shell built-in, we'll probably end up computing a
5870       # maximum length that is only half of the actual maximum length, but
5871       # we can't tell.
5872       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5873                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5874               test $i != 17 # 1/2 MB should be enough
5875       do
5876         i=`expr $i + 1`
5877         teststring=$teststring$teststring
5878       done
5879       # Only check the string length outside the loop.
5880       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5881       teststring=
5882       # Add a significant safety factor because C++ compilers can tack on
5883       # massive amounts of additional arguments before passing them to the
5884       # linker.  It appears as though 1/2 is a usable value.
5885       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5886     fi
5887     ;;
5888   esac
5889
5890 fi
5891
5892 if test -n $lt_cv_sys_max_cmd_len ; then
5893   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5894 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5895 else
5896   echo "$as_me:$LINENO: result: none" >&5
5897 echo "${ECHO_T}none" >&6
5898 fi
5899 max_cmd_len=$lt_cv_sys_max_cmd_len
5900
5901
5902
5903
5904
5905
5906 : ${CP="cp -f"}
5907 : ${MV="mv -f"}
5908 : ${RM="rm -f"}
5909
5910 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5911 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
5912 # Try some XSI features
5913 xsi_shell=no
5914 ( _lt_dummy="a/b/c"
5915   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5916       = c,a/b,, \
5917     && eval 'test $(( 1 + 1 )) -eq 2 \
5918     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5919   && xsi_shell=yes
5920 echo "$as_me:$LINENO: result: $xsi_shell" >&5
5921 echo "${ECHO_T}$xsi_shell" >&6
5922
5923
5924 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5925 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
5926 lt_shell_append=no
5927 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5928     >/dev/null 2>&1 \
5929   && lt_shell_append=yes
5930 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5931 echo "${ECHO_T}$lt_shell_append" >&6
5932
5933
5934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5935   lt_unset=unset
5936 else
5937   lt_unset=false
5938 fi
5939
5940
5941
5942
5943
5944 # test EBCDIC or ASCII
5945 case `echo X|tr X '\101'` in
5946  A) # ASCII based system
5947     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5948   lt_SP2NL='tr \040 \012'
5949   lt_NL2SP='tr \015\012 \040\040'
5950   ;;
5951  *) # EBCDIC based system
5952   lt_SP2NL='tr \100 \n'
5953   lt_NL2SP='tr \r\n \100\100'
5954   ;;
5955 esac
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5966 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5967 if test "${lt_cv_ld_reload_flag+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   lt_cv_ld_reload_flag='-r'
5971 fi
5972 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5973 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5974 reload_flag=$lt_cv_ld_reload_flag
5975 case $reload_flag in
5976 "" | " "*) ;;
5977 *) reload_flag=" $reload_flag" ;;
5978 esac
5979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5980 case $host_os in
5981   darwin*)
5982     if test "$GCC" = yes; then
5983       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5984     else
5985       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5986     fi
5987     ;;
5988 esac
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998 if test -n "$ac_tool_prefix"; then
5999   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6001 echo "$as_me:$LINENO: checking for $ac_word" >&5
6002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6003 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6004   echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006   if test -n "$OBJDUMP"; then
6007   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6011 do
6012   IFS=$as_save_IFS
6013   test -z "$as_dir" && as_dir=.
6014   for ac_exec_ext in '' $ac_executable_extensions; do
6015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6018     break 2
6019   fi
6020 done
6021 done
6022
6023 fi
6024 fi
6025 OBJDUMP=$ac_cv_prog_OBJDUMP
6026 if test -n "$OBJDUMP"; then
6027   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6028 echo "${ECHO_T}$OBJDUMP" >&6
6029 else
6030   echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6
6032 fi
6033
6034 fi
6035 if test -z "$ac_cv_prog_OBJDUMP"; then
6036   ac_ct_OBJDUMP=$OBJDUMP
6037   # Extract the first word of "objdump", so it can be a program name with args.
6038 set dummy objdump; ac_word=$2
6039 echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6041 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6042   echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044   if test -n "$ac_ct_OBJDUMP"; then
6045   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050   IFS=$as_save_IFS
6051   test -z "$as_dir" && as_dir=.
6052   for ac_exec_ext in '' $ac_executable_extensions; do
6053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056     break 2
6057   fi
6058 done
6059 done
6060
6061   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6062 fi
6063 fi
6064 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6065 if test -n "$ac_ct_OBJDUMP"; then
6066   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6067 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6068 else
6069   echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071 fi
6072
6073   OBJDUMP=$ac_ct_OBJDUMP
6074 else
6075   OBJDUMP="$ac_cv_prog_OBJDUMP"
6076 fi
6077
6078 test -z "$OBJDUMP" && OBJDUMP=objdump
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6089 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6090 if test "${lt_cv_deplibs_check_method+set}" = set; then
6091   echo $ECHO_N "(cached) $ECHO_C" >&6
6092 else
6093   lt_cv_file_magic_cmd='$MAGIC_CMD'
6094 lt_cv_file_magic_test_file=
6095 lt_cv_deplibs_check_method='unknown'
6096 # Need to set the preceding variable on all platforms that support
6097 # interlibrary dependencies.
6098 # 'none' -- dependencies not supported.
6099 # `unknown' -- same as none, but documents that we really don't know.
6100 # 'pass_all' -- all dependencies passed with no checks.
6101 # 'test_compile' -- check by making test program.
6102 # 'file_magic [[regex]]' -- check by looking for files in library path
6103 # which responds to the $file_magic_cmd with a given extended regex.
6104 # If you have `file' or equivalent on your system and you're not sure
6105 # whether `pass_all' will *always* work, you probably want this one.
6106
6107 case $host_os in
6108 aix[4-9]*)
6109   lt_cv_deplibs_check_method=pass_all
6110   ;;
6111
6112 beos*)
6113   lt_cv_deplibs_check_method=pass_all
6114   ;;
6115
6116 bsdi[45]*)
6117   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6118   lt_cv_file_magic_cmd='/usr/bin/file -L'
6119   lt_cv_file_magic_test_file=/shlib/libc.so
6120   ;;
6121
6122 cygwin*)
6123   # func_win32_libid is a shell function defined in ltmain.sh
6124   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6125   lt_cv_file_magic_cmd='func_win32_libid'
6126   ;;
6127
6128 mingw* | pw32*)
6129   # Base MSYS/MinGW do not provide the 'file' command needed by
6130   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6131   # unless we find 'file', for example because we are cross-compiling.
6132   if ( file / ) >/dev/null 2>&1; then
6133     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6134     lt_cv_file_magic_cmd='func_win32_libid'
6135   else
6136     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6137     lt_cv_file_magic_cmd='$OBJDUMP -f'
6138   fi
6139   ;;
6140
6141 cegcc)
6142   # use the weaker test based on 'objdump'. See mingw*.
6143   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6144   lt_cv_file_magic_cmd='$OBJDUMP -f'
6145   ;;
6146
6147 darwin* | rhapsody*)
6148   lt_cv_deplibs_check_method=pass_all
6149   ;;
6150
6151 freebsd* | dragonfly*)
6152   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6153     case $host_cpu in
6154     i*86 )
6155       # Not sure whether the presence of OpenBSD here was a mistake.
6156       # Let's accept both of them until this is cleared up.
6157       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6158       lt_cv_file_magic_cmd=/usr/bin/file
6159       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6160       ;;
6161     esac
6162   else
6163     lt_cv_deplibs_check_method=pass_all
6164   fi
6165   ;;
6166
6167 gnu*)
6168   lt_cv_deplibs_check_method=pass_all
6169   ;;
6170
6171 hpux10.20* | hpux11*)
6172   lt_cv_file_magic_cmd=/usr/bin/file
6173   case $host_cpu in
6174   ia64*)
6175     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6176     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6177     ;;
6178   hppa*64*)
6179     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6180     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6181     ;;
6182   *)
6183     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6184     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6185     ;;
6186   esac
6187   ;;
6188
6189 interix[3-9]*)
6190   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6191   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6192   ;;
6193
6194 irix5* | irix6* | nonstopux*)
6195   case $LD in
6196   *-32|*"-32 ") libmagic=32-bit;;
6197   *-n32|*"-n32 ") libmagic=N32;;
6198   *-64|*"-64 ") libmagic=64-bit;;
6199   *) libmagic=never-match;;
6200   esac
6201   lt_cv_deplibs_check_method=pass_all
6202   ;;
6203
6204 # This must be Linux ELF.
6205 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6206   lt_cv_deplibs_check_method=pass_all
6207   ;;
6208
6209 netbsd*)
6210   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6211     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6212   else
6213     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6214   fi
6215   ;;
6216
6217 newos6*)
6218   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6219   lt_cv_file_magic_cmd=/usr/bin/file
6220   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6221   ;;
6222
6223 *nto* | *qnx*)
6224   lt_cv_deplibs_check_method=pass_all
6225   ;;
6226
6227 openbsd*)
6228   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6229     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6230   else
6231     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6232   fi
6233   ;;
6234
6235 osf3* | osf4* | osf5*)
6236   lt_cv_deplibs_check_method=pass_all
6237   ;;
6238
6239 rdos*)
6240   lt_cv_deplibs_check_method=pass_all
6241   ;;
6242
6243 solaris*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6248   lt_cv_deplibs_check_method=pass_all
6249   ;;
6250
6251 sysv4 | sysv4.3*)
6252   case $host_vendor in
6253   motorola)
6254     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]'
6255     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6256     ;;
6257   ncr)
6258     lt_cv_deplibs_check_method=pass_all
6259     ;;
6260   sequent)
6261     lt_cv_file_magic_cmd='/bin/file'
6262     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6263     ;;
6264   sni)
6265     lt_cv_file_magic_cmd='/bin/file'
6266     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6267     lt_cv_file_magic_test_file=/lib/libc.so
6268     ;;
6269   siemens)
6270     lt_cv_deplibs_check_method=pass_all
6271     ;;
6272   pc)
6273     lt_cv_deplibs_check_method=pass_all
6274     ;;
6275   esac
6276   ;;
6277
6278 tpf*)
6279   lt_cv_deplibs_check_method=pass_all
6280   ;;
6281 esac
6282
6283 fi
6284 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6285 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6286 file_magic_cmd=$lt_cv_file_magic_cmd
6287 deplibs_check_method=$lt_cv_deplibs_check_method
6288 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301 if test -n "$ac_tool_prefix"; then
6302   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6303 set dummy ${ac_tool_prefix}ar; ac_word=$2
6304 echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6306 if test "${ac_cv_prog_AR+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   if test -n "$AR"; then
6310   ac_cv_prog_AR="$AR" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315   IFS=$as_save_IFS
6316   test -z "$as_dir" && as_dir=.
6317   for ac_exec_ext in '' $ac_executable_extensions; do
6318   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319     ac_cv_prog_AR="${ac_tool_prefix}ar"
6320     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6321     break 2
6322   fi
6323 done
6324 done
6325
6326 fi
6327 fi
6328 AR=$ac_cv_prog_AR
6329 if test -n "$AR"; then
6330   echo "$as_me:$LINENO: result: $AR" >&5
6331 echo "${ECHO_T}$AR" >&6
6332 else
6333   echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6
6335 fi
6336
6337 fi
6338 if test -z "$ac_cv_prog_AR"; then
6339   ac_ct_AR=$AR
6340   # Extract the first word of "ar", so it can be a program name with args.
6341 set dummy ar; ac_word=$2
6342 echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6344 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   if test -n "$ac_ct_AR"; then
6348   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_ac_ct_AR="ar"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363
6364   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6365 fi
6366 fi
6367 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6368 if test -n "$ac_ct_AR"; then
6369   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6370 echo "${ECHO_T}$ac_ct_AR" >&6
6371 else
6372   echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6
6374 fi
6375
6376   AR=$ac_ct_AR
6377 else
6378   AR="$ac_cv_prog_AR"
6379 fi
6380
6381 test -z "$AR" && AR=ar
6382 test -z "$AR_FLAGS" && AR_FLAGS=cru
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394 if test -n "$ac_tool_prefix"; then
6395   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}strip; ac_word=$2
6397 echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6399 if test "${ac_cv_prog_STRIP+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   if test -n "$STRIP"; then
6403   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410   for ac_exec_ext in '' $ac_executable_extensions; do
6411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417 done
6418
6419 fi
6420 fi
6421 STRIP=$ac_cv_prog_STRIP
6422 if test -n "$STRIP"; then
6423   echo "$as_me:$LINENO: result: $STRIP" >&5
6424 echo "${ECHO_T}$STRIP" >&6
6425 else
6426   echo "$as_me:$LINENO: result: no" >&5
6427 echo "${ECHO_T}no" >&6
6428 fi
6429
6430 fi
6431 if test -z "$ac_cv_prog_STRIP"; then
6432   ac_ct_STRIP=$STRIP
6433   # Extract the first word of "strip", so it can be a program name with args.
6434 set dummy strip; ac_word=$2
6435 echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6437 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   if test -n "$ac_ct_STRIP"; then
6441   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448   for ac_exec_ext in '' $ac_executable_extensions; do
6449   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450     ac_cv_prog_ac_ct_STRIP="strip"
6451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455 done
6456
6457   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6458 fi
6459 fi
6460 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6461 if test -n "$ac_ct_STRIP"; then
6462   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6463 echo "${ECHO_T}$ac_ct_STRIP" >&6
6464 else
6465   echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6467 fi
6468
6469   STRIP=$ac_ct_STRIP
6470 else
6471   STRIP="$ac_cv_prog_STRIP"
6472 fi
6473
6474 test -z "$STRIP" && STRIP=:
6475
6476
6477
6478
6479
6480
6481 if test -n "$ac_tool_prefix"; then
6482   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6484 echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6486 if test "${ac_cv_prog_RANLIB+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   if test -n "$RANLIB"; then
6490   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497   for ac_exec_ext in '' $ac_executable_extensions; do
6498   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504 done
6505
6506 fi
6507 fi
6508 RANLIB=$ac_cv_prog_RANLIB
6509 if test -n "$RANLIB"; then
6510   echo "$as_me:$LINENO: result: $RANLIB" >&5
6511 echo "${ECHO_T}$RANLIB" >&6
6512 else
6513   echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6515 fi
6516
6517 fi
6518 if test -z "$ac_cv_prog_RANLIB"; then
6519   ac_ct_RANLIB=$RANLIB
6520   # Extract the first word of "ranlib", so it can be a program name with args.
6521 set dummy ranlib; ac_word=$2
6522 echo "$as_me:$LINENO: checking for $ac_word" >&5
6523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6524 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6525   echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527   if test -n "$ac_ct_RANLIB"; then
6528   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6529 else
6530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 for as_dir in $PATH
6532 do
6533   IFS=$as_save_IFS
6534   test -z "$as_dir" && as_dir=.
6535   for ac_exec_ext in '' $ac_executable_extensions; do
6536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6537     ac_cv_prog_ac_ct_RANLIB="ranlib"
6538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6539     break 2
6540   fi
6541 done
6542 done
6543
6544   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6545 fi
6546 fi
6547 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6548 if test -n "$ac_ct_RANLIB"; then
6549   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6550 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6551 else
6552   echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6
6554 fi
6555
6556   RANLIB=$ac_ct_RANLIB
6557 else
6558   RANLIB="$ac_cv_prog_RANLIB"
6559 fi
6560
6561 test -z "$RANLIB" && RANLIB=:
6562
6563
6564
6565
6566
6567
6568 # Determine commands to create old-style static archives.
6569 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6570 old_postinstall_cmds='chmod 644 $oldlib'
6571 old_postuninstall_cmds=
6572
6573 if test -n "$RANLIB"; then
6574   case $host_os in
6575   openbsd*)
6576     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6577     ;;
6578   *)
6579     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6580     ;;
6581   esac
6582   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6583 fi
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618 # If no C compiler was specified, use CC.
6619 LTCC=${LTCC-"$CC"}
6620
6621 # If no C compiler flags were specified, use CFLAGS.
6622 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6623
6624 # Allow CC to be a program name with arguments.
6625 compiler=$CC
6626
6627
6628 # Check for command to grab the raw symbol name followed by C symbol from nm.
6629 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6630 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6631 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6632   echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634
6635 # These are sane defaults that work on at least a few old systems.
6636 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6637
6638 # Character class describing NM global symbol codes.
6639 symcode='[BCDEGRST]'
6640
6641 # Regexp to match symbols that can be accessed directly from C.
6642 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6643
6644 # Define system-specific variables.
6645 case $host_os in
6646 aix*)
6647   symcode='[BCDT]'
6648   ;;
6649 cygwin* | mingw* | pw32* | cegcc*)
6650   symcode='[ABCDGISTW]'
6651   ;;
6652 hpux*)
6653   if test "$host_cpu" = ia64; then
6654     symcode='[ABCDEGRST]'
6655   fi
6656   ;;
6657 irix* | nonstopux*)
6658   symcode='[BCDEGRST]'
6659   ;;
6660 osf*)
6661   symcode='[BCDEGQRST]'
6662   ;;
6663 solaris*)
6664   symcode='[BDRT]'
6665   ;;
6666 sco3.2v5*)
6667   symcode='[DT]'
6668   ;;
6669 sysv4.2uw2*)
6670   symcode='[DT]'
6671   ;;
6672 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6673   symcode='[ABDT]'
6674   ;;
6675 sysv4)
6676   symcode='[DFNSTU]'
6677   ;;
6678 esac
6679
6680 # If we're using GNU nm, then use its standard symbol codes.
6681 case `$NM -V 2>&1` in
6682 *GNU* | *'with BFD'*)
6683   symcode='[ABCDGIRSTW]' ;;
6684 esac
6685
6686 # Transform an extracted symbol line into a proper C declaration.
6687 # Some systems (esp. on ia64) link data and code symbols differently,
6688 # so use this general approach.
6689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6690
6691 # Transform an extracted symbol line into symbol name and symbol address
6692 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6693 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6694
6695 # Handle CRLF in mingw tool chain
6696 opt_cr=
6697 case $build_os in
6698 mingw*)
6699   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6700   ;;
6701 esac
6702
6703 # Try without a prefix underscore, then with it.
6704 for ac_symprfx in "" "_"; do
6705
6706   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6707   symxfrm="\\1 $ac_symprfx\\2 \\2"
6708
6709   # Write the raw and C identifiers.
6710   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6711     # Fake it for dumpbin and say T for any non-static function
6712     # and D for any global variable.
6713     # Also find C++ and __fastcall symbols from MSVC++,
6714     # which start with @ or ?.
6715     lt_cv_sys_global_symbol_pipe="$AWK '"\
6716 "     {last_section=section; section=\$ 3};"\
6717 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6718 "     \$ 0!~/External *\|/{next};"\
6719 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6720 "     {if(hide[section]) next};"\
6721 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6722 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6723 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6724 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6725 "     ' prfx=^$ac_symprfx"
6726   else
6727     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6728   fi
6729
6730   # Check to see that the pipe works correctly.
6731   pipe_works=no
6732
6733   rm -f conftest*
6734   cat > conftest.$ac_ext <<_LT_EOF
6735 #ifdef __cplusplus
6736 extern "C" {
6737 #endif
6738 char nm_test_var;
6739 void nm_test_func(void);
6740 void nm_test_func(void){}
6741 #ifdef __cplusplus
6742 }
6743 #endif
6744 int main(){nm_test_var='a';nm_test_func();return(0);}
6745 _LT_EOF
6746
6747   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6748   (eval $ac_compile) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); }; then
6752     # Now try to grab the symbols.
6753     nlist=conftest.nm
6754     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6755   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6756   ac_status=$?
6757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758   (exit $ac_status); } && test -s "$nlist"; then
6759       # Try sorting and uniquifying the output.
6760       if sort "$nlist" | uniq > "$nlist"T; then
6761         mv -f "$nlist"T "$nlist"
6762       else
6763         rm -f "$nlist"T
6764       fi
6765
6766       # Make sure that we snagged all the symbols we need.
6767       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6768         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6769           cat <<_LT_EOF > conftest.$ac_ext
6770 #ifdef __cplusplus
6771 extern "C" {
6772 #endif
6773
6774 _LT_EOF
6775           # Now generate the symbol file.
6776           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6777
6778           cat <<_LT_EOF >> conftest.$ac_ext
6779
6780 /* The mapping between symbol names and symbols.  */
6781 const struct {
6782   const char *name;
6783   void       *address;
6784 }
6785 lt__PROGRAM__LTX_preloaded_symbols[] =
6786 {
6787   { "@PROGRAM@", (void *) 0 },
6788 _LT_EOF
6789           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6790           cat <<\_LT_EOF >> conftest.$ac_ext
6791   {0, (void *) 0}
6792 };
6793
6794 /* This works around a problem in FreeBSD linker */
6795 #ifdef FREEBSD_WORKAROUND
6796 static const void *lt_preloaded_setup() {
6797   return lt__PROGRAM__LTX_preloaded_symbols;
6798 }
6799 #endif
6800
6801 #ifdef __cplusplus
6802 }
6803 #endif
6804 _LT_EOF
6805           # Now try linking the two files.
6806           mv conftest.$ac_objext conftstm.$ac_objext
6807           lt_save_LIBS="$LIBS"
6808           lt_save_CFLAGS="$CFLAGS"
6809           LIBS="conftstm.$ac_objext"
6810           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6811           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6812   (eval $ac_link) 2>&5
6813   ac_status=$?
6814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6816             pipe_works=yes
6817           fi
6818           LIBS="$lt_save_LIBS"
6819           CFLAGS="$lt_save_CFLAGS"
6820         else
6821           echo "cannot find nm_test_func in $nlist" >&5
6822         fi
6823       else
6824         echo "cannot find nm_test_var in $nlist" >&5
6825       fi
6826     else
6827       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6828     fi
6829   else
6830     echo "$progname: failed program was:" >&5
6831     cat conftest.$ac_ext >&5
6832   fi
6833   rm -rf conftest* conftst*
6834
6835   # Do not use the global_symbol_pipe unless it works.
6836   if test "$pipe_works" = yes; then
6837     break
6838   else
6839     lt_cv_sys_global_symbol_pipe=
6840   fi
6841 done
6842
6843 fi
6844
6845 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6846   lt_cv_sys_global_symbol_to_cdecl=
6847 fi
6848 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6849   echo "$as_me:$LINENO: result: failed" >&5
6850 echo "${ECHO_T}failed" >&6
6851 else
6852   echo "$as_me:$LINENO: result: ok" >&5
6853 echo "${ECHO_T}ok" >&6
6854 fi
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6878 if test "${enable_libtool_lock+set}" = set; then
6879   enableval="$enable_libtool_lock"
6880
6881 fi;
6882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6883
6884 # Some flags need to be propagated to the compiler or linker for good
6885 # libtool support.
6886 case $host in
6887 ia64-*-hpux*)
6888   # Find out which ABI we are using.
6889   echo 'int i;' > conftest.$ac_ext
6890   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6891   (eval $ac_compile) 2>&5
6892   ac_status=$?
6893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); }; then
6895     case `/usr/bin/file conftest.$ac_objext` in
6896       *ELF-32*)
6897         HPUX_IA64_MODE="32"
6898         ;;
6899       *ELF-64*)
6900         HPUX_IA64_MODE="64"
6901         ;;
6902     esac
6903   fi
6904   rm -rf conftest*
6905   ;;
6906 *-*-irix6*)
6907   # Find out which ABI we are using.
6908   echo '#line 6908 "configure"' > conftest.$ac_ext
6909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6910   (eval $ac_compile) 2>&5
6911   ac_status=$?
6912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913   (exit $ac_status); }; then
6914     if test "$lt_cv_prog_gnu_ld" = yes; then
6915       case `/usr/bin/file conftest.$ac_objext` in
6916         *32-bit*)
6917           LD="${LD-ld} -melf32bsmip"
6918           ;;
6919         *N32*)
6920           LD="${LD-ld} -melf32bmipn32"
6921           ;;
6922         *64-bit*)
6923           LD="${LD-ld} -melf64bmip"
6924         ;;
6925       esac
6926     else
6927       case `/usr/bin/file conftest.$ac_objext` in
6928         *32-bit*)
6929           LD="${LD-ld} -32"
6930           ;;
6931         *N32*)
6932           LD="${LD-ld} -n32"
6933           ;;
6934         *64-bit*)
6935           LD="${LD-ld} -64"
6936           ;;
6937       esac
6938     fi
6939   fi
6940   rm -rf conftest*
6941   ;;
6942
6943 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6944 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6945   # Find out which ABI we are using.
6946   echo 'int i;' > conftest.$ac_ext
6947   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948   (eval $ac_compile) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); }; then
6952     case `/usr/bin/file conftest.o` in
6953       *32-bit*)
6954         case $host in
6955           x86_64-*kfreebsd*-gnu)
6956             LD="${LD-ld} -m elf_i386_fbsd"
6957             ;;
6958           x86_64-*linux*)
6959             LD="${LD-ld} -m elf_i386"
6960             ;;
6961           ppc64-*linux*|powerpc64-*linux*)
6962             LD="${LD-ld} -m elf32ppclinux"
6963             ;;
6964           s390x-*linux*)
6965             LD="${LD-ld} -m elf_s390"
6966             ;;
6967           sparc64-*linux*)
6968             LD="${LD-ld} -m elf32_sparc"
6969             ;;
6970         esac
6971         ;;
6972       *64-bit*)
6973         case $host in
6974           x86_64-*kfreebsd*-gnu)
6975             LD="${LD-ld} -m elf_x86_64_fbsd"
6976             ;;
6977           x86_64-*linux*)
6978             LD="${LD-ld} -m elf_x86_64"
6979             ;;
6980           ppc*-*linux*|powerpc*-*linux*)
6981             LD="${LD-ld} -m elf64ppc"
6982             ;;
6983           s390*-*linux*|s390*-*tpf*)
6984             LD="${LD-ld} -m elf64_s390"
6985             ;;
6986           sparc*-*linux*)
6987             LD="${LD-ld} -m elf64_sparc"
6988             ;;
6989         esac
6990         ;;
6991     esac
6992   fi
6993   rm -rf conftest*
6994   ;;
6995
6996 *-*-sco3.2v5*)
6997   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6998   SAVE_CFLAGS="$CFLAGS"
6999   CFLAGS="$CFLAGS -belf"
7000   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7001 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7002 if test "${lt_cv_cc_needs_belf+set}" = set; then
7003   echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005   ac_ext=c
7006 ac_cpp='$CPP $CPPFLAGS'
7007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011      if test x$gcc_no_link = xyes; then
7012   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7013 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7014    { (exit 1); exit 1; }; }
7015 fi
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h.  */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h.  */
7022
7023 int
7024 main ()
7025 {
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext conftest$ac_exeext
7032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7033   (eval $ac_link) 2>conftest.er1
7034   ac_status=$?
7035   grep -v '^ *+' conftest.er1 >conftest.err
7036   rm -f conftest.er1
7037   cat conftest.err >&5
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); } &&
7040          { ac_try='test -z "$ac_c_werror_flag"
7041                          || test ! -s conftest.err'
7042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043   (eval $ac_try) 2>&5
7044   ac_status=$?
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); }; } &&
7047          { ac_try='test -s conftest$ac_exeext'
7048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049   (eval $ac_try) 2>&5
7050   ac_status=$?
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); }; }; then
7053   lt_cv_cc_needs_belf=yes
7054 else
7055   echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7057
7058 lt_cv_cc_needs_belf=no
7059 fi
7060 rm -f conftest.err conftest.$ac_objext \
7061       conftest$ac_exeext conftest.$ac_ext
7062      ac_ext=c
7063 ac_cpp='$CPP $CPPFLAGS'
7064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7067
7068 fi
7069 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7070 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7071   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7072     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7073     CFLAGS="$SAVE_CFLAGS"
7074   fi
7075   ;;
7076 sparc*-*solaris*)
7077   # Find out which ABI we are using.
7078   echo 'int i;' > conftest.$ac_ext
7079   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080   (eval $ac_compile) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; then
7084     case `/usr/bin/file conftest.o` in
7085     *64-bit*)
7086       case $lt_cv_prog_gnu_ld in
7087       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7088       *)
7089         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7090           LD="${LD-ld} -64"
7091         fi
7092         ;;
7093       esac
7094       ;;
7095     esac
7096   fi
7097   rm -rf conftest*
7098   ;;
7099 esac
7100
7101 need_locks="$enable_libtool_lock"
7102
7103
7104   case $host_os in
7105     rhapsody* | darwin*)
7106     if test -n "$ac_tool_prefix"; then
7107   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7112   echo $ECHO_N "(cached) $ECHO_C" >&6
7113 else
7114   if test -n "$DSYMUTIL"; then
7115   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130
7131 fi
7132 fi
7133 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7134 if test -n "$DSYMUTIL"; then
7135   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7136 echo "${ECHO_T}$DSYMUTIL" >&6
7137 else
7138   echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7140 fi
7141
7142 fi
7143 if test -z "$ac_cv_prog_DSYMUTIL"; then
7144   ac_ct_DSYMUTIL=$DSYMUTIL
7145   # Extract the first word of "dsymutil", so it can be a program name with args.
7146 set dummy dsymutil; ac_word=$2
7147 echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7149 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   if test -n "$ac_ct_DSYMUTIL"; then
7153   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168
7169   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7170 fi
7171 fi
7172 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7173 if test -n "$ac_ct_DSYMUTIL"; then
7174   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7175 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7176 else
7177   echo "$as_me:$LINENO: result: no" >&5
7178 echo "${ECHO_T}no" >&6
7179 fi
7180
7181   DSYMUTIL=$ac_ct_DSYMUTIL
7182 else
7183   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7184 fi
7185
7186     if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7189 echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7191 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7192   echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194   if test -n "$NMEDIT"; then
7195   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   for ac_exec_ext in '' $ac_executable_extensions; do
7203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209 done
7210
7211 fi
7212 fi
7213 NMEDIT=$ac_cv_prog_NMEDIT
7214 if test -n "$NMEDIT"; then
7215   echo "$as_me:$LINENO: result: $NMEDIT" >&5
7216 echo "${ECHO_T}$NMEDIT" >&6
7217 else
7218   echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6
7220 fi
7221
7222 fi
7223 if test -z "$ac_cv_prog_NMEDIT"; then
7224   ac_ct_NMEDIT=$NMEDIT
7225   # Extract the first word of "nmedit", so it can be a program name with args.
7226 set dummy nmedit; ac_word=$2
7227 echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7229 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   if test -n "$ac_ct_NMEDIT"; then
7233   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   for ac_exec_ext in '' $ac_executable_extensions; do
7241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247 done
7248
7249   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7250 fi
7251 fi
7252 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7253 if test -n "$ac_ct_NMEDIT"; then
7254   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7255 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7256 else
7257   echo "$as_me:$LINENO: result: no" >&5
7258 echo "${ECHO_T}no" >&6
7259 fi
7260
7261   NMEDIT=$ac_ct_NMEDIT
7262 else
7263   NMEDIT="$ac_cv_prog_NMEDIT"
7264 fi
7265
7266     if test -n "$ac_tool_prefix"; then
7267   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7268 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7269 echo "$as_me:$LINENO: checking for $ac_word" >&5
7270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7271 if test "${ac_cv_prog_LIPO+set}" = set; then
7272   echo $ECHO_N "(cached) $ECHO_C" >&6
7273 else
7274   if test -n "$LIPO"; then
7275   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7284     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290
7291 fi
7292 fi
7293 LIPO=$ac_cv_prog_LIPO
7294 if test -n "$LIPO"; then
7295   echo "$as_me:$LINENO: result: $LIPO" >&5
7296 echo "${ECHO_T}$LIPO" >&6
7297 else
7298   echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6
7300 fi
7301
7302 fi
7303 if test -z "$ac_cv_prog_LIPO"; then
7304   ac_ct_LIPO=$LIPO
7305   # Extract the first word of "lipo", so it can be a program name with args.
7306 set dummy lipo; ac_word=$2
7307 echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7309 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   if test -n "$ac_ct_LIPO"; then
7313   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_prog_ac_ct_LIPO="lipo"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328
7329   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7330 fi
7331 fi
7332 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7333 if test -n "$ac_ct_LIPO"; then
7334   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7335 echo "${ECHO_T}$ac_ct_LIPO" >&6
7336 else
7337   echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6
7339 fi
7340
7341   LIPO=$ac_ct_LIPO
7342 else
7343   LIPO="$ac_cv_prog_LIPO"
7344 fi
7345
7346     if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}otool; ac_word=$2
7349 echo "$as_me:$LINENO: checking for $ac_word" >&5
7350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7351 if test "${ac_cv_prog_OTOOL+set}" = set; then
7352   echo $ECHO_N "(cached) $ECHO_C" >&6
7353 else
7354   if test -n "$OTOOL"; then
7355   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370
7371 fi
7372 fi
7373 OTOOL=$ac_cv_prog_OTOOL
7374 if test -n "$OTOOL"; then
7375   echo "$as_me:$LINENO: result: $OTOOL" >&5
7376 echo "${ECHO_T}$OTOOL" >&6
7377 else
7378   echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6
7380 fi
7381
7382 fi
7383 if test -z "$ac_cv_prog_OTOOL"; then
7384   ac_ct_OTOOL=$OTOOL
7385   # Extract the first word of "otool", so it can be a program name with args.
7386 set dummy otool; ac_word=$2
7387 echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7389 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   if test -n "$ac_ct_OTOOL"; then
7393   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7394 else
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 for as_dir in $PATH
7397 do
7398   IFS=$as_save_IFS
7399   test -z "$as_dir" && as_dir=.
7400   for ac_exec_ext in '' $ac_executable_extensions; do
7401   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7402     ac_cv_prog_ac_ct_OTOOL="otool"
7403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404     break 2
7405   fi
7406 done
7407 done
7408
7409   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7410 fi
7411 fi
7412 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7413 if test -n "$ac_ct_OTOOL"; then
7414   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7415 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7416 else
7417   echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7419 fi
7420
7421   OTOOL=$ac_ct_OTOOL
7422 else
7423   OTOOL="$ac_cv_prog_OTOOL"
7424 fi
7425
7426     if test -n "$ac_tool_prefix"; then
7427   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7428 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7429 echo "$as_me:$LINENO: checking for $ac_word" >&5
7430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7431 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7432   echo $ECHO_N "(cached) $ECHO_C" >&6
7433 else
7434   if test -n "$OTOOL64"; then
7435   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7436 else
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   for ac_exec_ext in '' $ac_executable_extensions; do
7443   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7444     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446     break 2
7447   fi
7448 done
7449 done
7450
7451 fi
7452 fi
7453 OTOOL64=$ac_cv_prog_OTOOL64
7454 if test -n "$OTOOL64"; then
7455   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7456 echo "${ECHO_T}$OTOOL64" >&6
7457 else
7458   echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6
7460 fi
7461
7462 fi
7463 if test -z "$ac_cv_prog_OTOOL64"; then
7464   ac_ct_OTOOL64=$OTOOL64
7465   # Extract the first word of "otool64", so it can be a program name with args.
7466 set dummy otool64; ac_word=$2
7467 echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7469 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7470   echo $ECHO_N "(cached) $ECHO_C" >&6
7471 else
7472   if test -n "$ac_ct_OTOOL64"; then
7473   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478   IFS=$as_save_IFS
7479   test -z "$as_dir" && as_dir=.
7480   for ac_exec_ext in '' $ac_executable_extensions; do
7481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482     ac_cv_prog_ac_ct_OTOOL64="otool64"
7483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484     break 2
7485   fi
7486 done
7487 done
7488
7489   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7490 fi
7491 fi
7492 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7493 if test -n "$ac_ct_OTOOL64"; then
7494   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7495 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7496 else
7497   echo "$as_me:$LINENO: result: no" >&5
7498 echo "${ECHO_T}no" >&6
7499 fi
7500
7501   OTOOL64=$ac_ct_OTOOL64
7502 else
7503   OTOOL64="$ac_cv_prog_OTOOL64"
7504 fi
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7533 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7534 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   lt_cv_apple_cc_single_mod=no
7538       if test -z "${LT_MULTI_MODULE}"; then
7539         # By default we will add the -single_module flag. You can override
7540         # by either setting the environment variable LT_MULTI_MODULE
7541         # non-empty at configure time, or by adding -multi_module to the
7542         # link flags.
7543         rm -rf libconftest.dylib*
7544         echo "int foo(void){return 1;}" > conftest.c
7545         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546 -dynamiclib -Wl,-single_module conftest.c" >&5
7547         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7549         _lt_result=$?
7550         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7551           lt_cv_apple_cc_single_mod=yes
7552         else
7553           cat conftest.err >&5
7554         fi
7555         rm -rf libconftest.dylib*
7556         rm -f conftest.*
7557       fi
7558 fi
7559 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7560 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7561     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7562 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7563 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7564   echo $ECHO_N "(cached) $ECHO_C" >&6
7565 else
7566   lt_cv_ld_exported_symbols_list=no
7567       save_LDFLAGS=$LDFLAGS
7568       echo "_main" > conftest.sym
7569       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7570       if test x$gcc_no_link = xyes; then
7571   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7572 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7573    { (exit 1); exit 1; }; }
7574 fi
7575 cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581
7582 int
7583 main ()
7584 {
7585
7586   ;
7587   return 0;
7588 }
7589 _ACEOF
7590 rm -f conftest.$ac_objext conftest$ac_exeext
7591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7592   (eval $ac_link) 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } &&
7599          { ac_try='test -z "$ac_c_werror_flag"
7600                          || test ! -s conftest.err'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; } &&
7606          { ac_try='test -s conftest$ac_exeext'
7607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608   (eval $ac_try) 2>&5
7609   ac_status=$?
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); }; }; then
7612   lt_cv_ld_exported_symbols_list=yes
7613 else
7614   echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 lt_cv_ld_exported_symbols_list=no
7618 fi
7619 rm -f conftest.err conftest.$ac_objext \
7620       conftest$ac_exeext conftest.$ac_ext
7621         LDFLAGS="$save_LDFLAGS"
7622
7623 fi
7624 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7625 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7626     case $host_os in
7627     rhapsody* | darwin1.[012])
7628       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7629     darwin1.*)
7630       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7631     darwin*) # darwin 5.x on
7632       # if running on 10.5 or later, the deployment target defaults
7633       # to the OS version, if on x86, and 10.4, the deployment
7634       # target defaults to 10.4. Don't you love it?
7635       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7636         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7637           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7638         10.[012]*)
7639           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7640         10.*)
7641           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7642       esac
7643     ;;
7644   esac
7645     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7646       _lt_dar_single_mod='$single_module'
7647     fi
7648     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7649       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7650     else
7651       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7652     fi
7653     if test "$DSYMUTIL" != ":"; then
7654       _lt_dsymutil='~$DSYMUTIL $lib || :'
7655     else
7656       _lt_dsymutil=
7657     fi
7658     ;;
7659   esac
7660
7661
7662 for ac_header in dlfcn.h
7663 do
7664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7665 echo "$as_me:$LINENO: checking for $ac_header" >&5
7666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7668   echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670   cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h.  */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h.  */
7676 $ac_includes_default
7677
7678 #include <$ac_header>
7679 _ACEOF
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682   (eval $ac_compile) 2>conftest.er1
7683   ac_status=$?
7684   grep -v '^ *+' conftest.er1 >conftest.err
7685   rm -f conftest.er1
7686   cat conftest.err >&5
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); } &&
7689          { ac_try='test -z "$ac_c_werror_flag"
7690                          || test ! -s conftest.err'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; } &&
7696          { ac_try='test -s conftest.$ac_objext'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; }; then
7702   eval "$as_ac_Header=yes"
7703 else
7704   echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 eval "$as_ac_Header=no"
7708 fi
7709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7714   cat >>confdefs.h <<_ACEOF
7715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7716 _ACEOF
7717
7718 fi
7719
7720 done
7721
7722
7723
7724 # Set options
7725
7726
7727
7728         enable_dlopen=no
7729
7730
7731   enable_win32_dll=no
7732
7733
7734             # Check whether --enable-shared or --disable-shared was given.
7735 if test "${enable_shared+set}" = set; then
7736   enableval="$enable_shared"
7737   p=${PACKAGE-default}
7738     case $enableval in
7739     yes) enable_shared=yes ;;
7740     no) enable_shared=no ;;
7741     *)
7742       enable_shared=no
7743       # Look at the argument we got.  We use all the common list separators.
7744       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745       for pkg in $enableval; do
7746         IFS="$lt_save_ifs"
7747         if test "X$pkg" = "X$p"; then
7748           enable_shared=yes
7749         fi
7750       done
7751       IFS="$lt_save_ifs"
7752       ;;
7753     esac
7754 else
7755   enable_shared=yes
7756 fi;
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 # Check whether --with-pic or --without-pic was given.
7768 if test "${with_pic+set}" = set; then
7769   withval="$with_pic"
7770   pic_mode="$withval"
7771 else
7772   pic_mode=default
7773 fi;
7774
7775 test -z "$pic_mode" && pic_mode=default
7776
7777
7778
7779
7780
7781
7782
7783   # Check whether --enable-fast-install or --disable-fast-install was given.
7784 if test "${enable_fast_install+set}" = set; then
7785   enableval="$enable_fast_install"
7786   p=${PACKAGE-default}
7787     case $enableval in
7788     yes) enable_fast_install=yes ;;
7789     no) enable_fast_install=no ;;
7790     *)
7791       enable_fast_install=no
7792       # Look at the argument we got.  We use all the common list separators.
7793       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7794       for pkg in $enableval; do
7795         IFS="$lt_save_ifs"
7796         if test "X$pkg" = "X$p"; then
7797           enable_fast_install=yes
7798         fi
7799       done
7800       IFS="$lt_save_ifs"
7801       ;;
7802     esac
7803 else
7804   enable_fast_install=yes
7805 fi;
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816 # This can be used to rebuild libtool when needed
7817 LIBTOOL_DEPS="$ltmain"
7818
7819 # Always use our own libtool.
7820 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 test -z "$LN_S" && LN_S="ln -s"
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861 if test -n "${ZSH_VERSION+set}" ; then
7862    setopt NO_GLOB_SUBST
7863 fi
7864
7865 echo "$as_me:$LINENO: checking for objdir" >&5
7866 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7867 if test "${lt_cv_objdir+set}" = set; then
7868   echo $ECHO_N "(cached) $ECHO_C" >&6
7869 else
7870   rm -f .libs 2>/dev/null
7871 mkdir .libs 2>/dev/null
7872 if test -d .libs; then
7873   lt_cv_objdir=.libs
7874 else
7875   # MS-DOS does not allow filenames that begin with a dot.
7876   lt_cv_objdir=_libs
7877 fi
7878 rmdir .libs 2>/dev/null
7879 fi
7880 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7881 echo "${ECHO_T}$lt_cv_objdir" >&6
7882 objdir=$lt_cv_objdir
7883
7884
7885
7886
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define LT_OBJDIR "$lt_cv_objdir/"
7890 _ACEOF
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 case $host_os in
7909 aix3*)
7910   # AIX sometimes has problems with the GCC collect2 program.  For some
7911   # reason, if we set the COLLECT_NAMES environment variable, the problems
7912   # vanish in a puff of smoke.
7913   if test "X${COLLECT_NAMES+set}" != Xset; then
7914     COLLECT_NAMES=
7915     export COLLECT_NAMES
7916   fi
7917   ;;
7918 esac
7919
7920 # Sed substitution that helps us do robust quoting.  It backslashifies
7921 # metacharacters that are still active within double-quoted strings.
7922 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7923
7924 # Same as above, but do not quote variable references.
7925 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7926
7927 # Sed substitution to delay expansion of an escaped shell variable in a
7928 # double_quote_subst'ed string.
7929 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7930
7931 # Sed substitution to delay expansion of an escaped single quote.
7932 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7933
7934 # Sed substitution to avoid accidental globbing in evaled expressions
7935 no_glob_subst='s/\*/\\\*/g'
7936
7937 # Global variables:
7938 ofile=libtool
7939 can_build_shared=yes
7940
7941 # All known linkers require a `.a' archive for static linking (except MSVC,
7942 # which needs '.lib').
7943 libext=a
7944
7945 with_gnu_ld="$lt_cv_prog_gnu_ld"
7946
7947 old_CC="$CC"
7948 old_CFLAGS="$CFLAGS"
7949
7950 # Set sane defaults for various variables
7951 test -z "$CC" && CC=cc
7952 test -z "$LTCC" && LTCC=$CC
7953 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7954 test -z "$LD" && LD=ld
7955 test -z "$ac_objext" && ac_objext=o
7956
7957 for cc_temp in $compiler""; do
7958   case $cc_temp in
7959     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7960     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7961     \-*) ;;
7962     *) break;;
7963   esac
7964 done
7965 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7966
7967
7968 # Only perform the check for file, if the check method requires it
7969 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7970 case $deplibs_check_method in
7971 file_magic*)
7972   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7973     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7974 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7975 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7976   echo $ECHO_N "(cached) $ECHO_C" >&6
7977 else
7978   case $MAGIC_CMD in
7979 [\\/*] |  ?:[\\/]*)
7980   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7981   ;;
7982 *)
7983   lt_save_MAGIC_CMD="$MAGIC_CMD"
7984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7985   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7986   for ac_dir in $ac_dummy; do
7987     IFS="$lt_save_ifs"
7988     test -z "$ac_dir" && ac_dir=.
7989     if test -f $ac_dir/${ac_tool_prefix}file; then
7990       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7991       if test -n "$file_magic_test_file"; then
7992         case $deplibs_check_method in
7993         "file_magic "*)
7994           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7995           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7996           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7997             $EGREP "$file_magic_regex" > /dev/null; then
7998             :
7999           else
8000             cat <<_LT_EOF 1>&2
8001
8002 *** Warning: the command libtool uses to detect shared libraries,
8003 *** $file_magic_cmd, produces output that libtool cannot recognize.
8004 *** The result is that libtool may fail to recognize shared libraries
8005 *** as such.  This will affect the creation of libtool libraries that
8006 *** depend on shared libraries, but programs linked with such libtool
8007 *** libraries will work regardless of this problem.  Nevertheless, you
8008 *** may want to report the problem to your system manager and/or to
8009 *** bug-libtool@gnu.org
8010
8011 _LT_EOF
8012           fi ;;
8013         esac
8014       fi
8015       break
8016     fi
8017   done
8018   IFS="$lt_save_ifs"
8019   MAGIC_CMD="$lt_save_MAGIC_CMD"
8020   ;;
8021 esac
8022 fi
8023
8024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8025 if test -n "$MAGIC_CMD"; then
8026   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8027 echo "${ECHO_T}$MAGIC_CMD" >&6
8028 else
8029   echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034
8035
8036
8037 if test -z "$lt_cv_path_MAGIC_CMD"; then
8038   if test -n "$ac_tool_prefix"; then
8039     echo "$as_me:$LINENO: checking for file" >&5
8040 echo $ECHO_N "checking for file... $ECHO_C" >&6
8041 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8042   echo $ECHO_N "(cached) $ECHO_C" >&6
8043 else
8044   case $MAGIC_CMD in
8045 [\\/*] |  ?:[\\/]*)
8046   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8047   ;;
8048 *)
8049   lt_save_MAGIC_CMD="$MAGIC_CMD"
8050   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8051   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8052   for ac_dir in $ac_dummy; do
8053     IFS="$lt_save_ifs"
8054     test -z "$ac_dir" && ac_dir=.
8055     if test -f $ac_dir/file; then
8056       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8057       if test -n "$file_magic_test_file"; then
8058         case $deplibs_check_method in
8059         "file_magic "*)
8060           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8061           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8062           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8063             $EGREP "$file_magic_regex" > /dev/null; then
8064             :
8065           else
8066             cat <<_LT_EOF 1>&2
8067
8068 *** Warning: the command libtool uses to detect shared libraries,
8069 *** $file_magic_cmd, produces output that libtool cannot recognize.
8070 *** The result is that libtool may fail to recognize shared libraries
8071 *** as such.  This will affect the creation of libtool libraries that
8072 *** depend on shared libraries, but programs linked with such libtool
8073 *** libraries will work regardless of this problem.  Nevertheless, you
8074 *** may want to report the problem to your system manager and/or to
8075 *** bug-libtool@gnu.org
8076
8077 _LT_EOF
8078           fi ;;
8079         esac
8080       fi
8081       break
8082     fi
8083   done
8084   IFS="$lt_save_ifs"
8085   MAGIC_CMD="$lt_save_MAGIC_CMD"
8086   ;;
8087 esac
8088 fi
8089
8090 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8091 if test -n "$MAGIC_CMD"; then
8092   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8093 echo "${ECHO_T}$MAGIC_CMD" >&6
8094 else
8095   echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6
8097 fi
8098
8099
8100   else
8101     MAGIC_CMD=:
8102   fi
8103 fi
8104
8105   fi
8106   ;;
8107 esac
8108
8109 # Use C for the default configuration in the libtool script
8110
8111 lt_save_CC="$CC"
8112 ac_ext=c
8113 ac_cpp='$CPP $CPPFLAGS'
8114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8117
8118
8119 # Source file extension for C test sources.
8120 ac_ext=c
8121
8122 # Object file extension for compiled C test sources.
8123 objext=o
8124 objext=$objext
8125
8126 # Code to be used in simple compile tests
8127 lt_simple_compile_test_code="int some_variable = 0;"
8128
8129 # Code to be used in simple link tests
8130 lt_simple_link_test_code='int main(){return(0);}'
8131
8132
8133
8134
8135
8136
8137
8138 # If no C compiler was specified, use CC.
8139 LTCC=${LTCC-"$CC"}
8140
8141 # If no C compiler flags were specified, use CFLAGS.
8142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8143
8144 # Allow CC to be a program name with arguments.
8145 compiler=$CC
8146
8147 # Save the default compiler, since it gets overwritten when the other
8148 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8149 compiler_DEFAULT=$CC
8150
8151 # save warnings/boilerplate of simple test code
8152 ac_outfile=conftest.$ac_objext
8153 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8155 _lt_compiler_boilerplate=`cat conftest.err`
8156 $RM conftest*
8157
8158 ac_outfile=conftest.$ac_objext
8159 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8161 _lt_linker_boilerplate=`cat conftest.err`
8162 $RM -r conftest*
8163
8164
8165 ## CAVEAT EMPTOR:
8166 ## There is no encapsulation within the following macros, do not change
8167 ## the running order or otherwise move them around unless you know exactly
8168 ## what you are doing...
8169 if test -n "$compiler"; then
8170
8171 lt_prog_compiler_no_builtin_flag=
8172
8173 if test "$GCC" = yes; then
8174   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8175
8176   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8178 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8179   echo $ECHO_N "(cached) $ECHO_C" >&6
8180 else
8181   lt_cv_prog_compiler_rtti_exceptions=no
8182    ac_outfile=conftest.$ac_objext
8183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8184    lt_compiler_flag="-fno-rtti -fno-exceptions"
8185    # Insert the option either (1) after the last *FLAGS variable, or
8186    # (2) before a word containing "conftest.", or (3) at the end.
8187    # Note that $ac_compile itself does not contain backslashes and begins
8188    # with a dollar sign (not a hyphen), so the echo should work correctly.
8189    # The option is referenced via a variable to avoid confusing sed.
8190    lt_compile=`echo "$ac_compile" | $SED \
8191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8193    -e 's:$: $lt_compiler_flag:'`
8194    (eval echo "\"\$as_me:8194: $lt_compile\"" >&5)
8195    (eval "$lt_compile" 2>conftest.err)
8196    ac_status=$?
8197    cat conftest.err >&5
8198    echo "$as_me:8198: \$? = $ac_status" >&5
8199    if (exit $ac_status) && test -s "$ac_outfile"; then
8200      # The compiler can only warn and ignore the option if not recognized
8201      # So say no if there are warnings other than the usual output.
8202      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8205        lt_cv_prog_compiler_rtti_exceptions=yes
8206      fi
8207    fi
8208    $RM conftest*
8209
8210 fi
8211 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8212 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8213
8214 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8215     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8216 else
8217     :
8218 fi
8219
8220 fi
8221
8222
8223
8224
8225
8226
8227   lt_prog_compiler_wl=
8228 lt_prog_compiler_pic=
8229 lt_prog_compiler_static=
8230
8231 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8232 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8233
8234   if test "$GCC" = yes; then
8235     lt_prog_compiler_wl='-Wl,'
8236     lt_prog_compiler_static='-static'
8237
8238     case $host_os in
8239       aix*)
8240       # All AIX code is PIC.
8241       if test "$host_cpu" = ia64; then
8242         # AIX 5 now supports IA64 processor
8243         lt_prog_compiler_static='-Bstatic'
8244       fi
8245       ;;
8246
8247     amigaos*)
8248       case $host_cpu in
8249       powerpc)
8250             # see comment about AmigaOS4 .so support
8251             lt_prog_compiler_pic='-fPIC'
8252         ;;
8253       m68k)
8254             # FIXME: we need at least 68020 code to build shared libraries, but
8255             # adding the `-m68020' flag to GCC prevents building anything better,
8256             # like `-m68040'.
8257             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8258         ;;
8259       esac
8260       ;;
8261
8262     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8263       # PIC is the default for these OSes.
8264       ;;
8265
8266     mingw* | cygwin* | pw32* | os2* | cegcc*)
8267       # This hack is so that the source file can tell whether it is being
8268       # built for inclusion in a dll (and should export symbols for example).
8269       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8270       # (--disable-auto-import) libraries
8271       lt_prog_compiler_pic='-DDLL_EXPORT'
8272       ;;
8273
8274     darwin* | rhapsody*)
8275       # PIC is the default on this platform
8276       # Common symbols not allowed in MH_DYLIB files
8277       lt_prog_compiler_pic='-fno-common'
8278       ;;
8279
8280     hpux*)
8281       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8282       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8283       # sets the default TLS model and affects inlining.
8284       case $host_cpu in
8285       hppa*64*)
8286         # +Z the default
8287         ;;
8288       *)
8289         lt_prog_compiler_pic='-fPIC'
8290         ;;
8291       esac
8292       ;;
8293
8294     interix[3-9]*)
8295       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8296       # Instead, we relocate shared libraries at runtime.
8297       ;;
8298
8299     msdosdjgpp*)
8300       # Just because we use GCC doesn't mean we suddenly get shared libraries
8301       # on systems that don't support them.
8302       lt_prog_compiler_can_build_shared=no
8303       enable_shared=no
8304       ;;
8305
8306     *nto* | *qnx*)
8307       # QNX uses GNU C++, but need to define -shared option too, otherwise
8308       # it will coredump.
8309       lt_prog_compiler_pic='-fPIC -shared'
8310       ;;
8311
8312     sysv4*MP*)
8313       if test -d /usr/nec; then
8314         lt_prog_compiler_pic=-Kconform_pic
8315       fi
8316       ;;
8317
8318     *)
8319       lt_prog_compiler_pic='-fPIC'
8320       ;;
8321     esac
8322   else
8323     # PORTME Check for flag to pass linker flags through the system compiler.
8324     case $host_os in
8325     aix*)
8326       lt_prog_compiler_wl='-Wl,'
8327       if test "$host_cpu" = ia64; then
8328         # AIX 5 now supports IA64 processor
8329         lt_prog_compiler_static='-Bstatic'
8330       else
8331         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8332       fi
8333       ;;
8334
8335     mingw* | cygwin* | pw32* | os2* | cegcc*)
8336       # This hack is so that the source file can tell whether it is being
8337       # built for inclusion in a dll (and should export symbols for example).
8338       lt_prog_compiler_pic='-DDLL_EXPORT'
8339       ;;
8340
8341     hpux9* | hpux10* | hpux11*)
8342       lt_prog_compiler_wl='-Wl,'
8343       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8344       # not for PA HP-UX.
8345       case $host_cpu in
8346       hppa*64*|ia64*)
8347         # +Z the default
8348         ;;
8349       *)
8350         lt_prog_compiler_pic='+Z'
8351         ;;
8352       esac
8353       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8354       lt_prog_compiler_static='${wl}-a ${wl}archive'
8355       ;;
8356
8357     irix5* | irix6* | nonstopux*)
8358       lt_prog_compiler_wl='-Wl,'
8359       # PIC (with -KPIC) is the default.
8360       lt_prog_compiler_static='-non_shared'
8361       ;;
8362
8363     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8364       case $cc_basename in
8365       # old Intel for x86_64 which still supported -KPIC.
8366       ecc*)
8367         lt_prog_compiler_wl='-Wl,'
8368         lt_prog_compiler_pic='-KPIC'
8369         lt_prog_compiler_static='-static'
8370         ;;
8371       # icc used to be incompatible with GCC.
8372       # ICC 10 doesn't accept -KPIC any more.
8373       icc* | ifort*)
8374         lt_prog_compiler_wl='-Wl,'
8375         lt_prog_compiler_pic='-fPIC'
8376         lt_prog_compiler_static='-static'
8377         ;;
8378       # Lahey Fortran 8.1.
8379       lf95*)
8380         lt_prog_compiler_wl='-Wl,'
8381         lt_prog_compiler_pic='--shared'
8382         lt_prog_compiler_static='--static'
8383         ;;
8384       pgcc* | pgf77* | pgf90* | pgf95*)
8385         # Portland Group compilers (*not* the Pentium gcc compiler,
8386         # which looks to be a dead project)
8387         lt_prog_compiler_wl='-Wl,'
8388         lt_prog_compiler_pic='-fpic'
8389         lt_prog_compiler_static='-Bstatic'
8390         ;;
8391       ccc*)
8392         lt_prog_compiler_wl='-Wl,'
8393         # All Alpha code is PIC.
8394         lt_prog_compiler_static='-non_shared'
8395         ;;
8396       xl*)
8397         # IBM XL C 8.0/Fortran 10.1 on PPC
8398         lt_prog_compiler_wl='-Wl,'
8399         lt_prog_compiler_pic='-qpic'
8400         lt_prog_compiler_static='-qstaticlink'
8401         ;;
8402       *)
8403         case `$CC -V 2>&1 | sed 5q` in
8404         *Sun\ C*)
8405           # Sun C 5.9
8406           lt_prog_compiler_pic='-KPIC'
8407           lt_prog_compiler_static='-Bstatic'
8408           lt_prog_compiler_wl='-Wl,'
8409           ;;
8410         *Sun\ F*)
8411           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8412           lt_prog_compiler_pic='-KPIC'
8413           lt_prog_compiler_static='-Bstatic'
8414           lt_prog_compiler_wl=''
8415           ;;
8416         esac
8417         ;;
8418       esac
8419       ;;
8420
8421     newsos6)
8422       lt_prog_compiler_pic='-KPIC'
8423       lt_prog_compiler_static='-Bstatic'
8424       ;;
8425
8426     *nto* | *qnx*)
8427       # QNX uses GNU C++, but need to define -shared option too, otherwise
8428       # it will coredump.
8429       lt_prog_compiler_pic='-fPIC -shared'
8430       ;;
8431
8432     osf3* | osf4* | osf5*)
8433       lt_prog_compiler_wl='-Wl,'
8434       # All OSF/1 code is PIC.
8435       lt_prog_compiler_static='-non_shared'
8436       ;;
8437
8438     rdos*)
8439       lt_prog_compiler_static='-non_shared'
8440       ;;
8441
8442     solaris*)
8443       lt_prog_compiler_pic='-KPIC'
8444       lt_prog_compiler_static='-Bstatic'
8445       case $cc_basename in
8446       f77* | f90* | f95*)
8447         lt_prog_compiler_wl='-Qoption ld ';;
8448       *)
8449         lt_prog_compiler_wl='-Wl,';;
8450       esac
8451       ;;
8452
8453     sunos4*)
8454       lt_prog_compiler_wl='-Qoption ld '
8455       lt_prog_compiler_pic='-PIC'
8456       lt_prog_compiler_static='-Bstatic'
8457       ;;
8458
8459     sysv4 | sysv4.2uw2* | sysv4.3*)
8460       lt_prog_compiler_wl='-Wl,'
8461       lt_prog_compiler_pic='-KPIC'
8462       lt_prog_compiler_static='-Bstatic'
8463       ;;
8464
8465     sysv4*MP*)
8466       if test -d /usr/nec ;then
8467         lt_prog_compiler_pic='-Kconform_pic'
8468         lt_prog_compiler_static='-Bstatic'
8469       fi
8470       ;;
8471
8472     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8473       lt_prog_compiler_wl='-Wl,'
8474       lt_prog_compiler_pic='-KPIC'
8475       lt_prog_compiler_static='-Bstatic'
8476       ;;
8477
8478     unicos*)
8479       lt_prog_compiler_wl='-Wl,'
8480       lt_prog_compiler_can_build_shared=no
8481       ;;
8482
8483     uts4*)
8484       lt_prog_compiler_pic='-pic'
8485       lt_prog_compiler_static='-Bstatic'
8486       ;;
8487
8488     *)
8489       lt_prog_compiler_can_build_shared=no
8490       ;;
8491     esac
8492   fi
8493
8494 case $host_os in
8495   # For platforms which do not support PIC, -DPIC is meaningless:
8496   *djgpp*)
8497     lt_prog_compiler_pic=
8498     ;;
8499   *)
8500     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8501     ;;
8502 esac
8503 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8504 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8505
8506
8507
8508
8509
8510
8511 #
8512 # Check to make sure the PIC flag actually works.
8513 #
8514 if test -n "$lt_prog_compiler_pic"; then
8515   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8516 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8517 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   lt_cv_prog_compiler_pic_works=no
8521    ac_outfile=conftest.$ac_objext
8522    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8523    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8524    # Insert the option either (1) after the last *FLAGS variable, or
8525    # (2) before a word containing "conftest.", or (3) at the end.
8526    # Note that $ac_compile itself does not contain backslashes and begins
8527    # with a dollar sign (not a hyphen), so the echo should work correctly.
8528    # The option is referenced via a variable to avoid confusing sed.
8529    lt_compile=`echo "$ac_compile" | $SED \
8530    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8531    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8532    -e 's:$: $lt_compiler_flag:'`
8533    (eval echo "\"\$as_me:8533: $lt_compile\"" >&5)
8534    (eval "$lt_compile" 2>conftest.err)
8535    ac_status=$?
8536    cat conftest.err >&5
8537    echo "$as_me:8537: \$? = $ac_status" >&5
8538    if (exit $ac_status) && test -s "$ac_outfile"; then
8539      # The compiler can only warn and ignore the option if not recognized
8540      # So say no if there are warnings other than the usual output.
8541      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8542      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8543      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8544        lt_cv_prog_compiler_pic_works=yes
8545      fi
8546    fi
8547    $RM conftest*
8548
8549 fi
8550 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8551 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
8552
8553 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8554     case $lt_prog_compiler_pic in
8555      "" | " "*) ;;
8556      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8557      esac
8558 else
8559     lt_prog_compiler_pic=
8560      lt_prog_compiler_can_build_shared=no
8561 fi
8562
8563 fi
8564
8565
8566
8567
8568
8569
8570 #
8571 # Check to make sure the static flag actually works.
8572 #
8573 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8574 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8575 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8576 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8577   echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579   lt_cv_prog_compiler_static_works=no
8580    save_LDFLAGS="$LDFLAGS"
8581    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8582    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8583    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8584      # The linker can only warn and ignore the option if not recognized
8585      # So say no if there are warnings
8586      if test -s conftest.err; then
8587        # Append any errors to the config.log.
8588        cat conftest.err 1>&5
8589        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8590        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8591        if diff conftest.exp conftest.er2 >/dev/null; then
8592          lt_cv_prog_compiler_static_works=yes
8593        fi
8594      else
8595        lt_cv_prog_compiler_static_works=yes
8596      fi
8597    fi
8598    $RM -r conftest*
8599    LDFLAGS="$save_LDFLAGS"
8600
8601 fi
8602 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8603 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
8604
8605 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8606     :
8607 else
8608     lt_prog_compiler_static=
8609 fi
8610
8611
8612
8613
8614
8615
8616
8617   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8618 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8619 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8620   echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622   lt_cv_prog_compiler_c_o=no
8623    $RM -r conftest 2>/dev/null
8624    mkdir conftest
8625    cd conftest
8626    mkdir out
8627    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8628
8629    lt_compiler_flag="-o out/conftest2.$ac_objext"
8630    # Insert the option either (1) after the last *FLAGS variable, or
8631    # (2) before a word containing "conftest.", or (3) at the end.
8632    # Note that $ac_compile itself does not contain backslashes and begins
8633    # with a dollar sign (not a hyphen), so the echo should work correctly.
8634    lt_compile=`echo "$ac_compile" | $SED \
8635    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8636    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8637    -e 's:$: $lt_compiler_flag:'`
8638    (eval echo "\"\$as_me:8638: $lt_compile\"" >&5)
8639    (eval "$lt_compile" 2>out/conftest.err)
8640    ac_status=$?
8641    cat out/conftest.err >&5
8642    echo "$as_me:8642: \$? = $ac_status" >&5
8643    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8644    then
8645      # The compiler can only warn and ignore the option if not recognized
8646      # So say no if there are warnings
8647      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8648      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8649      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8650        lt_cv_prog_compiler_c_o=yes
8651      fi
8652    fi
8653    chmod u+w . 2>&5
8654    $RM conftest*
8655    # SGI C++ compiler will create directory out/ii_files/ for
8656    # template instantiation
8657    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8658    $RM out/* && rmdir out
8659    cd ..
8660    $RM -r conftest
8661    $RM conftest*
8662
8663 fi
8664 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8665 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8666
8667
8668
8669
8670
8671
8672   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8673 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8674 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8675   echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677   lt_cv_prog_compiler_c_o=no
8678    $RM -r conftest 2>/dev/null
8679    mkdir conftest
8680    cd conftest
8681    mkdir out
8682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8683
8684    lt_compiler_flag="-o out/conftest2.$ac_objext"
8685    # Insert the option either (1) after the last *FLAGS variable, or
8686    # (2) before a word containing "conftest.", or (3) at the end.
8687    # Note that $ac_compile itself does not contain backslashes and begins
8688    # with a dollar sign (not a hyphen), so the echo should work correctly.
8689    lt_compile=`echo "$ac_compile" | $SED \
8690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8692    -e 's:$: $lt_compiler_flag:'`
8693    (eval echo "\"\$as_me:8693: $lt_compile\"" >&5)
8694    (eval "$lt_compile" 2>out/conftest.err)
8695    ac_status=$?
8696    cat out/conftest.err >&5
8697    echo "$as_me:8697: \$? = $ac_status" >&5
8698    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8699    then
8700      # The compiler can only warn and ignore the option if not recognized
8701      # So say no if there are warnings
8702      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8703      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8704      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8705        lt_cv_prog_compiler_c_o=yes
8706      fi
8707    fi
8708    chmod u+w . 2>&5
8709    $RM conftest*
8710    # SGI C++ compiler will create directory out/ii_files/ for
8711    # template instantiation
8712    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8713    $RM out/* && rmdir out
8714    cd ..
8715    $RM -r conftest
8716    $RM conftest*
8717
8718 fi
8719 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8720 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8721
8722
8723
8724
8725 hard_links="nottested"
8726 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8727   # do not overwrite the value of need_locks provided by the user
8728   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8729 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8730   hard_links=yes
8731   $RM conftest*
8732   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8733   touch conftest.a
8734   ln conftest.a conftest.b 2>&5 || hard_links=no
8735   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8736   echo "$as_me:$LINENO: result: $hard_links" >&5
8737 echo "${ECHO_T}$hard_links" >&6
8738   if test "$hard_links" = no; then
8739     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8740 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8741     need_locks=warn
8742   fi
8743 else
8744   need_locks=no
8745 fi
8746
8747
8748
8749
8750
8751
8752   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8753 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8754
8755   runpath_var=
8756   allow_undefined_flag=
8757   always_export_symbols=no
8758   archive_cmds=
8759   archive_expsym_cmds=
8760   compiler_needs_object=no
8761   enable_shared_with_static_runtimes=no
8762   export_dynamic_flag_spec=
8763   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8764   hardcode_automatic=no
8765   hardcode_direct=no
8766   hardcode_direct_absolute=no
8767   hardcode_libdir_flag_spec=
8768   hardcode_libdir_flag_spec_ld=
8769   hardcode_libdir_separator=
8770   hardcode_minus_L=no
8771   hardcode_shlibpath_var=unsupported
8772   inherit_rpath=no
8773   link_all_deplibs=unknown
8774   module_cmds=
8775   module_expsym_cmds=
8776   old_archive_from_new_cmds=
8777   old_archive_from_expsyms_cmds=
8778   thread_safe_flag_spec=
8779   whole_archive_flag_spec=
8780   # include_expsyms should be a list of space-separated symbols to be *always*
8781   # included in the symbol list
8782   include_expsyms=
8783   # exclude_expsyms can be an extended regexp of symbols to exclude
8784   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8785   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8786   # as well as any symbol that contains `d'.
8787   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8788   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8789   # platforms (ab)use it in PIC code, but their linkers get confused if
8790   # the symbol is explicitly referenced.  Since portable code cannot
8791   # rely on this symbol name, it's probably fine to never include it in
8792   # preloaded symbol tables.
8793   # Exclude shared library initialization/finalization symbols.
8794   extract_expsyms_cmds=
8795
8796   case $host_os in
8797   cygwin* | mingw* | pw32* | cegcc*)
8798     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8799     # When not using gcc, we currently assume that we are using
8800     # Microsoft Visual C++.
8801     if test "$GCC" != yes; then
8802       with_gnu_ld=no
8803     fi
8804     ;;
8805   interix*)
8806     # we just hope/assume this is gcc and not c89 (= MSVC++)
8807     with_gnu_ld=yes
8808     ;;
8809   openbsd*)
8810     with_gnu_ld=no
8811     ;;
8812   esac
8813
8814   ld_shlibs=yes
8815   if test "$with_gnu_ld" = yes; then
8816     # If archive_cmds runs LD, not CC, wlarc should be empty
8817     wlarc='${wl}'
8818
8819     # Set some defaults for GNU ld with shared library support. These
8820     # are reset later if shared libraries are not supported. Putting them
8821     # here allows them to be overridden if necessary.
8822     runpath_var=LD_RUN_PATH
8823     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824     export_dynamic_flag_spec='${wl}--export-dynamic'
8825     # ancient GNU ld didn't support --whole-archive et. al.
8826     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8827       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8828     else
8829       whole_archive_flag_spec=
8830     fi
8831     supports_anon_versioning=no
8832     case `$LD -v 2>&1` in
8833       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8834       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8835       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8836       *\ 2.11.*) ;; # other 2.11 versions
8837       *) supports_anon_versioning=yes ;;
8838     esac
8839
8840     # See if GNU ld supports shared libraries.
8841     case $host_os in
8842     aix[3-9]*)
8843       # On AIX/PPC, the GNU linker is very broken
8844       if test "$host_cpu" != ia64; then
8845         ld_shlibs=no
8846         cat <<_LT_EOF 1>&2
8847
8848 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8849 *** to be unable to reliably create shared libraries on AIX.
8850 *** Therefore, libtool is disabling shared libraries support.  If you
8851 *** really care for shared libraries, you may want to modify your PATH
8852 *** so that a non-GNU linker is found, and then restart.
8853
8854 _LT_EOF
8855       fi
8856       ;;
8857
8858     amigaos*)
8859       case $host_cpu in
8860       powerpc)
8861             # see comment about AmigaOS4 .so support
8862             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863             archive_expsym_cmds=''
8864         ;;
8865       m68k)
8866             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8867             hardcode_libdir_flag_spec='-L$libdir'
8868             hardcode_minus_L=yes
8869         ;;
8870       esac
8871       ;;
8872
8873     beos*)
8874       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8875         allow_undefined_flag=unsupported
8876         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877         # support --undefined.  This deserves some investigation.  FIXME
8878         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     cygwin* | mingw* | pw32* | cegcc*)
8885       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886       # as there is no search path for DLLs.
8887       hardcode_libdir_flag_spec='-L$libdir'
8888       allow_undefined_flag=unsupported
8889       always_export_symbols=no
8890       enable_shared_with_static_runtimes=yes
8891       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8892
8893       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8894         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895         # If the export-symbols file already is a .def file (1st line
8896         # is EXPORTS), use it as is; otherwise, prepend...
8897         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898           cp $export_symbols $output_objdir/$soname.def;
8899         else
8900           echo EXPORTS > $output_objdir/$soname.def;
8901           cat $export_symbols >> $output_objdir/$soname.def;
8902         fi~
8903         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904       else
8905         ld_shlibs=no
8906       fi
8907       ;;
8908
8909     interix[3-9]*)
8910       hardcode_direct=no
8911       hardcode_shlibpath_var=no
8912       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913       export_dynamic_flag_spec='${wl}-E'
8914       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915       # Instead, shared libraries are loaded at an image base (0x10000000 by
8916       # default) and relocated if they conflict, which is a slow very memory
8917       # consuming and fragmenting process.  To avoid this, we pick a random,
8918       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8920       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8922       ;;
8923
8924     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8925       tmp_diet=no
8926       if test "$host_os" = linux-dietlibc; then
8927         case $cc_basename in
8928           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8929         esac
8930       fi
8931       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8932          && test "$tmp_diet" = no
8933       then
8934         tmp_addflag=
8935         tmp_sharedflag='-shared'
8936         case $cc_basename,$host_cpu in
8937         pgcc*)                          # Portland Group C compiler
8938           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8939           tmp_addflag=' $pic_flag'
8940           ;;
8941         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8942           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8943           tmp_addflag=' $pic_flag -Mnomain' ;;
8944         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8945           tmp_addflag=' -i_dynamic' ;;
8946         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8947           tmp_addflag=' -i_dynamic -nofor_main' ;;
8948         ifc* | ifort*)                  # Intel Fortran compiler
8949           tmp_addflag=' -nofor_main' ;;
8950         lf95*)                          # Lahey Fortran 8.1
8951           whole_archive_flag_spec=
8952           tmp_sharedflag='--shared' ;;
8953         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8954           tmp_sharedflag='-qmkshrobj'
8955           tmp_addflag= ;;
8956         esac
8957         case `$CC -V 2>&1 | sed 5q` in
8958         *Sun\ C*)                       # Sun C 5.9
8959           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8960           compiler_needs_object=yes
8961           tmp_sharedflag='-G' ;;
8962         *Sun\ F*)                       # Sun Fortran 8.3
8963           tmp_sharedflag='-G' ;;
8964         esac
8965         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8966
8967         if test "x$supports_anon_versioning" = xyes; then
8968           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970             echo "local: *; };" >> $output_objdir/$libname.ver~
8971             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8972         fi
8973
8974         case $cc_basename in
8975         xlf*)
8976           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978           hardcode_libdir_flag_spec=
8979           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8981           if test "x$supports_anon_versioning" = xyes; then
8982             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984               echo "local: *; };" >> $output_objdir/$libname.ver~
8985               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8986           fi
8987           ;;
8988         esac
8989       else
8990         ld_shlibs=no
8991       fi
8992       ;;
8993
8994     netbsd*)
8995       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997         wlarc=
8998       else
8999         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001       fi
9002       ;;
9003
9004     solaris*)
9005       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006         ld_shlibs=no
9007         cat <<_LT_EOF 1>&2
9008
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems.  Therefore, libtool
9011 *** is disabling shared libraries support.  We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer.  Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9015
9016 _LT_EOF
9017       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020       else
9021         ld_shlibs=no
9022       fi
9023       ;;
9024
9025     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026       case `$LD -v 2>&1` in
9027         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028         ld_shlibs=no
9029         cat <<_LT_EOF 1>&2
9030
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9033 *** is disabling shared libraries support.  We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9037
9038 _LT_EOF
9039         ;;
9040         *)
9041           # For security reasons, it is highly recommended that you always
9042           # use absolute paths for naming shared libraries, and exclude the
9043           # DT_RUNPATH tag from executables and libraries.  But doing so
9044           # requires that you compile everything twice, which is a pain.
9045           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049           else
9050             ld_shlibs=no
9051           fi
9052         ;;
9053       esac
9054       ;;
9055
9056     sunos4*)
9057       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058       wlarc=
9059       hardcode_direct=yes
9060       hardcode_shlibpath_var=no
9061       ;;
9062
9063     *)
9064       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067       else
9068         ld_shlibs=no
9069       fi
9070       ;;
9071     esac
9072
9073     if test "$ld_shlibs" = no; then
9074       runpath_var=
9075       hardcode_libdir_flag_spec=
9076       export_dynamic_flag_spec=
9077       whole_archive_flag_spec=
9078     fi
9079   else
9080     # PORTME fill in a description of your system's linker (not GNU ld)
9081     case $host_os in
9082     aix3*)
9083       allow_undefined_flag=unsupported
9084       always_export_symbols=yes
9085       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9086       # Note: this linker hardcodes the directories in LIBPATH if there
9087       # are no directories specified by -L.
9088       hardcode_minus_L=yes
9089       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090         # Neither direct hardcoding nor static linking is supported with a
9091         # broken collect2.
9092         hardcode_direct=unsupported
9093       fi
9094       ;;
9095
9096     aix[4-9]*)
9097       if test "$host_cpu" = ia64; then
9098         # On IA64, the linker does run time linking by default, so we don't
9099         # have to do anything special.
9100         aix_use_runtimelinking=no
9101         exp_sym_flag='-Bexport'
9102         no_entry_flag=""
9103       else
9104         # If we're using GNU nm, then we don't want the "-C" option.
9105         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9107           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9108         else
9109           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9110         fi
9111         aix_use_runtimelinking=no
9112
9113         # Test if we are trying to use run time linking or normal
9114         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9115         # need to do runtime linking.
9116         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9117           for ld_flag in $LDFLAGS; do
9118           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9119             aix_use_runtimelinking=yes
9120             break
9121           fi
9122           done
9123           ;;
9124         esac
9125
9126         exp_sym_flag='-bexport'
9127         no_entry_flag='-bnoentry'
9128       fi
9129
9130       # When large executables or shared objects are built, AIX ld can
9131       # have problems creating the table of contents.  If linking a library
9132       # or program results in "error TOC overflow" add -mminimal-toc to
9133       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9134       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9135
9136       archive_cmds=''
9137       hardcode_direct=yes
9138       hardcode_direct_absolute=yes
9139       hardcode_libdir_separator=':'
9140       link_all_deplibs=yes
9141       file_list_spec='${wl}-f,'
9142
9143       if test "$GCC" = yes; then
9144         case $host_os in aix4.[012]|aix4.[012].*)
9145         # We only want to do this on AIX 4.2 and lower, the check
9146         # below for broken collect2 doesn't work under 4.3+
9147           collect2name=`${CC} -print-prog-name=collect2`
9148           if test -f "$collect2name" &&
9149            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9150           then
9151           # We have reworked collect2
9152           :
9153           else
9154           # We have old collect2
9155           hardcode_direct=unsupported
9156           # It fails to find uninstalled libraries when the uninstalled
9157           # path is not listed in the libpath.  Setting hardcode_minus_L
9158           # to unsupported forces relinking
9159           hardcode_minus_L=yes
9160           hardcode_libdir_flag_spec='-L$libdir'
9161           hardcode_libdir_separator=
9162           fi
9163           ;;
9164         esac
9165         shared_flag='-shared'
9166         if test "$aix_use_runtimelinking" = yes; then
9167           shared_flag="$shared_flag "'${wl}-G'
9168         fi
9169       else
9170         # not using gcc
9171         if test "$host_cpu" = ia64; then
9172         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9173         # chokes on -Wl,-G. The following line is correct:
9174           shared_flag='-G'
9175         else
9176           if test "$aix_use_runtimelinking" = yes; then
9177             shared_flag='${wl}-G'
9178           else
9179             shared_flag='${wl}-bM:SRE'
9180           fi
9181         fi
9182       fi
9183
9184       export_dynamic_flag_spec='${wl}-bexpall'
9185       # It seems that -bexpall does not export symbols beginning with
9186       # underscore (_), so it is better to generate a list of symbols to export.
9187       always_export_symbols=yes
9188       if test "$aix_use_runtimelinking" = yes; then
9189         # Warning - without using the other runtime loading flags (-brtl),
9190         # -berok will link without error, but may produce a broken library.
9191         allow_undefined_flag='-berok'
9192         # Determine the default libpath from the value encoded in an
9193         # empty executable.
9194         if test x$gcc_no_link = xyes; then
9195   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9196 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9197    { (exit 1); exit 1; }; }
9198 fi
9199 cat >conftest.$ac_ext <<_ACEOF
9200 /* confdefs.h.  */
9201 _ACEOF
9202 cat confdefs.h >>conftest.$ac_ext
9203 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h.  */
9205
9206 int
9207 main ()
9208 {
9209
9210   ;
9211   return 0;
9212 }
9213 _ACEOF
9214 rm -f conftest.$ac_objext conftest$ac_exeext
9215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9216   (eval $ac_link) 2>conftest.er1
9217   ac_status=$?
9218   grep -v '^ *+' conftest.er1 >conftest.err
9219   rm -f conftest.er1
9220   cat conftest.err >&5
9221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222   (exit $ac_status); } &&
9223          { ac_try='test -z "$ac_c_werror_flag"
9224                          || test ! -s conftest.err'
9225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226   (eval $ac_try) 2>&5
9227   ac_status=$?
9228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229   (exit $ac_status); }; } &&
9230          { ac_try='test -s conftest$ac_exeext'
9231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232   (eval $ac_try) 2>&5
9233   ac_status=$?
9234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); }; }; then
9236
9237 lt_aix_libpath_sed='
9238     /Import File Strings/,/^$/ {
9239         /^0/ {
9240             s/^0  *\(.*\)$/\1/
9241             p
9242         }
9243     }'
9244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245 # Check for a 64-bit object if we didn't find anything.
9246 if test -z "$aix_libpath"; then
9247   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9248 fi
9249 else
9250   echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9252
9253 fi
9254 rm -f conftest.err conftest.$ac_objext \
9255       conftest$ac_exeext conftest.$ac_ext
9256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9257
9258         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9259         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9260       else
9261         if test "$host_cpu" = ia64; then
9262           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9263           allow_undefined_flag="-z nodefs"
9264           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9265         else
9266          # Determine the default libpath from the value encoded in an
9267          # empty executable.
9268          if test x$gcc_no_link = xyes; then
9269   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9270 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9271    { (exit 1); exit 1; }; }
9272 fi
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279
9280 int
9281 main ()
9282 {
9283
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 rm -f conftest.$ac_objext conftest$ac_exeext
9289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9290   (eval $ac_link) 2>conftest.er1
9291   ac_status=$?
9292   grep -v '^ *+' conftest.er1 >conftest.err
9293   rm -f conftest.er1
9294   cat conftest.err >&5
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); } &&
9297          { ac_try='test -z "$ac_c_werror_flag"
9298                          || test ! -s conftest.err'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; } &&
9304          { ac_try='test -s conftest$ac_exeext'
9305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306   (eval $ac_try) 2>&5
9307   ac_status=$?
9308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309   (exit $ac_status); }; }; then
9310
9311 lt_aix_libpath_sed='
9312     /Import File Strings/,/^$/ {
9313         /^0/ {
9314             s/^0  *\(.*\)$/\1/
9315             p
9316         }
9317     }'
9318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9319 # Check for a 64-bit object if we didn't find anything.
9320 if test -z "$aix_libpath"; then
9321   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9322 fi
9323 else
9324   echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329       conftest$ac_exeext conftest.$ac_ext
9330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9331
9332          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333           # Warning - without using the other run time loading flags,
9334           # -berok will link without error, but may produce a broken library.
9335           no_undefined_flag=' ${wl}-bernotok'
9336           allow_undefined_flag=' ${wl}-berok'
9337           # Exported symbols can be pulled into shared objects from archives
9338           whole_archive_flag_spec='$convenience'
9339           archive_cmds_need_lc=yes
9340           # This is similar to how AIX traditionally builds its shared libraries.
9341           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9342         fi
9343       fi
9344       ;;
9345
9346     amigaos*)
9347       case $host_cpu in
9348       powerpc)
9349             # see comment about AmigaOS4 .so support
9350             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351             archive_expsym_cmds=''
9352         ;;
9353       m68k)
9354             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9355             hardcode_libdir_flag_spec='-L$libdir'
9356             hardcode_minus_L=yes
9357         ;;
9358       esac
9359       ;;
9360
9361     bsdi[45]*)
9362       export_dynamic_flag_spec=-rdynamic
9363       ;;
9364
9365     cygwin* | mingw* | pw32* | cegcc*)
9366       # When not using gcc, we currently assume that we are using
9367       # Microsoft Visual C++.
9368       # hardcode_libdir_flag_spec is actually meaningless, as there is
9369       # no search path for DLLs.
9370       hardcode_libdir_flag_spec=' '
9371       allow_undefined_flag=unsupported
9372       # Tell ltmain to make .lib files, not .a files.
9373       libext=lib
9374       # Tell ltmain to make .dll files, not .so files.
9375       shrext_cmds=".dll"
9376       # FIXME: Setting linknames here is a bad hack.
9377       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9378       # The linker will automatically build a .lib file if we build a DLL.
9379       old_archive_from_new_cmds='true'
9380       # FIXME: Should let the user specify the lib program.
9381       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9382       fix_srcfile_path='`cygpath -w "$srcfile"`'
9383       enable_shared_with_static_runtimes=yes
9384       ;;
9385
9386     darwin* | rhapsody*)
9387
9388
9389   archive_cmds_need_lc=no
9390   hardcode_direct=no
9391   hardcode_automatic=yes
9392   hardcode_shlibpath_var=unsupported
9393   whole_archive_flag_spec=''
9394   link_all_deplibs=yes
9395   allow_undefined_flag="$_lt_dar_allow_undefined"
9396   case $cc_basename in
9397      ifort*) _lt_dar_can_shared=yes ;;
9398      *) _lt_dar_can_shared=$GCC ;;
9399   esac
9400   if test "$_lt_dar_can_shared" = "yes"; then
9401     output_verbose_link_cmd=echo
9402     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9403     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9404     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9405     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9406
9407   else
9408   ld_shlibs=no
9409   fi
9410
9411       ;;
9412
9413     dgux*)
9414       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415       hardcode_libdir_flag_spec='-L$libdir'
9416       hardcode_shlibpath_var=no
9417       ;;
9418
9419     freebsd1*)
9420       ld_shlibs=no
9421       ;;
9422
9423     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9424     # support.  Future versions do this automatically, but an explicit c++rt0.o
9425     # does not break anything, and helps significantly (at the cost of a little
9426     # extra space).
9427     freebsd2.2*)
9428       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9429       hardcode_libdir_flag_spec='-R$libdir'
9430       hardcode_direct=yes
9431       hardcode_shlibpath_var=no
9432       ;;
9433
9434     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9435     freebsd2*)
9436       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9437       hardcode_direct=yes
9438       hardcode_minus_L=yes
9439       hardcode_shlibpath_var=no
9440       ;;
9441
9442     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9443     freebsd* | dragonfly*)
9444       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9445       hardcode_libdir_flag_spec='-R$libdir'
9446       hardcode_direct=yes
9447       hardcode_shlibpath_var=no
9448       ;;
9449
9450     hpux9*)
9451       if test "$GCC" = yes; then
9452         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9453       else
9454         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9455       fi
9456       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457       hardcode_libdir_separator=:
9458       hardcode_direct=yes
9459
9460       # hardcode_minus_L: Not really in the search PATH,
9461       # but as the default location of the library.
9462       hardcode_minus_L=yes
9463       export_dynamic_flag_spec='${wl}-E'
9464       ;;
9465
9466     hpux10*)
9467       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9468         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469       else
9470         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471       fi
9472       if test "$with_gnu_ld" = no; then
9473         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9474         hardcode_libdir_flag_spec_ld='+b $libdir'
9475         hardcode_libdir_separator=:
9476         hardcode_direct=yes
9477         hardcode_direct_absolute=yes
9478         export_dynamic_flag_spec='${wl}-E'
9479         # hardcode_minus_L: Not really in the search PATH,
9480         # but as the default location of the library.
9481         hardcode_minus_L=yes
9482       fi
9483       ;;
9484
9485     hpux11*)
9486       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9487         case $host_cpu in
9488         hppa*64*)
9489           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9490           ;;
9491         ia64*)
9492           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9493           ;;
9494         *)
9495           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9496           ;;
9497         esac
9498       else
9499         case $host_cpu in
9500         hppa*64*)
9501           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9502           ;;
9503         ia64*)
9504           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9505           ;;
9506         *)
9507           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9508           ;;
9509         esac
9510       fi
9511       if test "$with_gnu_ld" = no; then
9512         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9513         hardcode_libdir_separator=:
9514
9515         case $host_cpu in
9516         hppa*64*|ia64*)
9517           hardcode_direct=no
9518           hardcode_shlibpath_var=no
9519           ;;
9520         *)
9521           hardcode_direct=yes
9522           hardcode_direct_absolute=yes
9523           export_dynamic_flag_spec='${wl}-E'
9524
9525           # hardcode_minus_L: Not really in the search PATH,
9526           # but as the default location of the library.
9527           hardcode_minus_L=yes
9528           ;;
9529         esac
9530       fi
9531       ;;
9532
9533     irix5* | irix6* | nonstopux*)
9534       if test "$GCC" = yes; then
9535         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9536         # Try to use the -exported_symbol ld option, if it does not
9537         # work, assume that -exports_file does not work either and
9538         # implicitly export all symbols.
9539         save_LDFLAGS="$LDFLAGS"
9540         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9541         if test x$gcc_no_link = xyes; then
9542   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9544    { (exit 1); exit 1; }; }
9545 fi
9546 cat >conftest.$ac_ext <<_ACEOF
9547 int foo(void) {}
9548 _ACEOF
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9551   (eval $ac_link) 2>conftest.er1
9552   ac_status=$?
9553   grep -v '^ *+' conftest.er1 >conftest.err
9554   rm -f conftest.er1
9555   cat conftest.err >&5
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); } &&
9558          { ac_try='test -z "$ac_c_werror_flag"
9559                          || test ! -s conftest.err'
9560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561   (eval $ac_try) 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; } &&
9565          { ac_try='test -s conftest$ac_exeext'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; }; then
9571   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9572
9573 else
9574   echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9576
9577 fi
9578 rm -f conftest.err conftest.$ac_objext \
9579       conftest$ac_exeext conftest.$ac_ext
9580         LDFLAGS="$save_LDFLAGS"
9581       else
9582         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9583         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9584       fi
9585       archive_cmds_need_lc='no'
9586       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587       hardcode_libdir_separator=:
9588       inherit_rpath=yes
9589       link_all_deplibs=yes
9590       ;;
9591
9592     netbsd*)
9593       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9594         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9595       else
9596         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9597       fi
9598       hardcode_libdir_flag_spec='-R$libdir'
9599       hardcode_direct=yes
9600       hardcode_shlibpath_var=no
9601       ;;
9602
9603     newsos6)
9604       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605       hardcode_direct=yes
9606       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9607       hardcode_libdir_separator=:
9608       hardcode_shlibpath_var=no
9609       ;;
9610
9611     *nto* | *qnx*)
9612       ;;
9613
9614     openbsd*)
9615       if test -f /usr/libexec/ld.so; then
9616         hardcode_direct=yes
9617         hardcode_shlibpath_var=no
9618         hardcode_direct_absolute=yes
9619         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9620           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9621           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9622           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623           export_dynamic_flag_spec='${wl}-E'
9624         else
9625           case $host_os in
9626            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9627              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9628              hardcode_libdir_flag_spec='-R$libdir'
9629              ;;
9630            *)
9631              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9632              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633              ;;
9634           esac
9635         fi
9636       else
9637         ld_shlibs=no
9638       fi
9639       ;;
9640
9641     os2*)
9642       hardcode_libdir_flag_spec='-L$libdir'
9643       hardcode_minus_L=yes
9644       allow_undefined_flag=unsupported
9645       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9646       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9647       ;;
9648
9649     osf3*)
9650       if test "$GCC" = yes; then
9651         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9652         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9653       else
9654         allow_undefined_flag=' -expect_unresolved \*'
9655         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9656       fi
9657       archive_cmds_need_lc='no'
9658       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9659       hardcode_libdir_separator=:
9660       ;;
9661
9662     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9663       if test "$GCC" = yes; then
9664         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9665         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9666         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9667       else
9668         allow_undefined_flag=' -expect_unresolved \*'
9669         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9670         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9671         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9672
9673         # Both c and cxx compiler support -rpath directly
9674         hardcode_libdir_flag_spec='-rpath $libdir'
9675       fi
9676       archive_cmds_need_lc='no'
9677       hardcode_libdir_separator=:
9678       ;;
9679
9680     solaris*)
9681       no_undefined_flag=' -z defs'
9682       if test "$GCC" = yes; then
9683         wlarc='${wl}'
9684         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9685         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9686           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9687       else
9688         case `$CC -V 2>&1` in
9689         *"Compilers 5.0"*)
9690           wlarc=''
9691           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9692           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9693           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9694           ;;
9695         *)
9696           wlarc='${wl}'
9697           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9698           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9699           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9700           ;;
9701         esac
9702       fi
9703       hardcode_libdir_flag_spec='-R$libdir'
9704       hardcode_shlibpath_var=no
9705       case $host_os in
9706       solaris2.[0-5] | solaris2.[0-5].*) ;;
9707       *)
9708         # The compiler driver will combine and reorder linker options,
9709         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9710         # but is careful enough not to reorder.
9711         # Supported since Solaris 2.6 (maybe 2.5.1?)
9712         if test "$GCC" = yes; then
9713           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9714         else
9715           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9716         fi
9717         ;;
9718       esac
9719       link_all_deplibs=yes
9720       ;;
9721
9722     sunos4*)
9723       if test "x$host_vendor" = xsequent; then
9724         # Use $CC to link under sequent, because it throws in some extra .o
9725         # files that make .init and .fini sections work.
9726         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9727       else
9728         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9729       fi
9730       hardcode_libdir_flag_spec='-L$libdir'
9731       hardcode_direct=yes
9732       hardcode_minus_L=yes
9733       hardcode_shlibpath_var=no
9734       ;;
9735
9736     sysv4)
9737       case $host_vendor in
9738         sni)
9739           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740           hardcode_direct=yes # is this really true???
9741         ;;
9742         siemens)
9743           ## LD is ld it makes a PLAMLIB
9744           ## CC just makes a GrossModule.
9745           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9746           reload_cmds='$CC -r -o $output$reload_objs'
9747           hardcode_direct=no
9748         ;;
9749         motorola)
9750           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9752         ;;
9753       esac
9754       runpath_var='LD_RUN_PATH'
9755       hardcode_shlibpath_var=no
9756       ;;
9757
9758     sysv4.3*)
9759       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_shlibpath_var=no
9761       export_dynamic_flag_spec='-Bexport'
9762       ;;
9763
9764     sysv4*MP*)
9765       if test -d /usr/nec; then
9766         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767         hardcode_shlibpath_var=no
9768         runpath_var=LD_RUN_PATH
9769         hardcode_runpath_var=yes
9770         ld_shlibs=yes
9771       fi
9772       ;;
9773
9774     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9775       no_undefined_flag='${wl}-z,text'
9776       archive_cmds_need_lc=no
9777       hardcode_shlibpath_var=no
9778       runpath_var='LD_RUN_PATH'
9779
9780       if test "$GCC" = yes; then
9781         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783       else
9784         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786       fi
9787       ;;
9788
9789     sysv5* | sco3.2v5* | sco5v6*)
9790       # Note: We can NOT use -z defs as we might desire, because we do not
9791       # link with -lc, and that would cause any symbols used from libc to
9792       # always be unresolved, which means just about no library would
9793       # ever link correctly.  If we're not using GNU ld we use -z text
9794       # though, which does catch some bad symbols but isn't as heavy-handed
9795       # as -z defs.
9796       no_undefined_flag='${wl}-z,text'
9797       allow_undefined_flag='${wl}-z,nodefs'
9798       archive_cmds_need_lc=no
9799       hardcode_shlibpath_var=no
9800       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9801       hardcode_libdir_separator=':'
9802       link_all_deplibs=yes
9803       export_dynamic_flag_spec='${wl}-Bexport'
9804       runpath_var='LD_RUN_PATH'
9805
9806       if test "$GCC" = yes; then
9807         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9808         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809       else
9810         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9811         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9812       fi
9813       ;;
9814
9815     uts4*)
9816       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817       hardcode_libdir_flag_spec='-L$libdir'
9818       hardcode_shlibpath_var=no
9819       ;;
9820
9821     *)
9822       ld_shlibs=no
9823       ;;
9824     esac
9825
9826     if test x$host_vendor = xsni; then
9827       case $host in
9828       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9829         export_dynamic_flag_spec='${wl}-Blargedynsym'
9830         ;;
9831       esac
9832     fi
9833   fi
9834
9835 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9836 echo "${ECHO_T}$ld_shlibs" >&6
9837 test "$ld_shlibs" = no && can_build_shared=no
9838
9839 with_gnu_ld=$with_gnu_ld
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855 #
9856 # Do we need to explicitly link libc?
9857 #
9858 case "x$archive_cmds_need_lc" in
9859 x|xyes)
9860   # Assume -lc should be added
9861   archive_cmds_need_lc=yes
9862
9863   if test "$enable_shared" = yes && test "$GCC" = yes; then
9864     case $archive_cmds in
9865     *'~'*)
9866       # FIXME: we may have to deal with multi-command sequences.
9867       ;;
9868     '$CC '*)
9869       # Test whether the compiler implicitly links with -lc since on some
9870       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9871       # to ld, don't add -lc before -lgcc.
9872       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9873 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9874 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
9875   echo $ECHO_N "(cached) $ECHO_C" >&6
9876 else
9877   $RM conftest*
9878         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9879
9880         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9881   (eval $ac_compile) 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); } 2>conftest.err; then
9885           soname=conftest
9886           lib=conftest
9887           libobjs=conftest.$ac_objext
9888           deplibs=
9889           wl=$lt_prog_compiler_wl
9890           pic_flag=$lt_prog_compiler_pic
9891           compiler_flags=-v
9892           linker_flags=-v
9893           verstring=
9894           output_objdir=.
9895           libname=conftest
9896           lt_save_allow_undefined_flag=$allow_undefined_flag
9897           allow_undefined_flag=
9898           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9899   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }
9903           then
9904             lt_cv_archive_cmds_need_lc=no
9905           else
9906             lt_cv_archive_cmds_need_lc=yes
9907           fi
9908           allow_undefined_flag=$lt_save_allow_undefined_flag
9909         else
9910           cat conftest.err 1>&5
9911         fi
9912         $RM conftest*
9913
9914 fi
9915 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
9916 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
9917       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9918       ;;
9919     esac
9920   fi
9921   ;;
9922 esac
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10081 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10082
10083 if test "$GCC" = yes; then
10084   case $host_os in
10085     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10086     *) lt_awk_arg="/^libraries:/" ;;
10087   esac
10088   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10089   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10090     # if the path contains ";" then we assume it to be the separator
10091     # otherwise default to the standard path separator (i.e. ":") - it is
10092     # assumed that no part of a normal pathname contains ";" but that should
10093     # okay in the real world where ";" in dirpaths is itself problematic.
10094     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10095   else
10096     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10097   fi
10098   # Ok, now we have the path, separated by spaces, we can step through it
10099   # and add multilib dir if necessary.
10100   lt_tmp_lt_search_path_spec=
10101   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10102   for lt_sys_path in $lt_search_path_spec; do
10103     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10104       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10105     else
10106       test -d "$lt_sys_path" && \
10107         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10108     fi
10109   done
10110   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10111 BEGIN {RS=" "; FS="/|\n";} {
10112   lt_foo="";
10113   lt_count=0;
10114   for (lt_i = NF; lt_i > 0; lt_i--) {
10115     if ($lt_i != "" && $lt_i != ".") {
10116       if ($lt_i == "..") {
10117         lt_count++;
10118       } else {
10119         if (lt_count == 0) {
10120           lt_foo="/" $lt_i lt_foo;
10121         } else {
10122           lt_count--;
10123         }
10124       }
10125     }
10126   }
10127   if (lt_foo != "") { lt_freq[lt_foo]++; }
10128   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10129 }'`
10130   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10131 else
10132   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10133 fi
10134 library_names_spec=
10135 libname_spec='lib$name'
10136 soname_spec=
10137 shrext_cmds=".so"
10138 postinstall_cmds=
10139 postuninstall_cmds=
10140 finish_cmds=
10141 finish_eval=
10142 shlibpath_var=
10143 shlibpath_overrides_runpath=unknown
10144 version_type=none
10145 dynamic_linker="$host_os ld.so"
10146 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10147 need_lib_prefix=unknown
10148 hardcode_into_libs=no
10149
10150 # when you set need_version to no, make sure it does not cause -set_version
10151 # flags to be left without arguments
10152 need_version=unknown
10153
10154 case $host_os in
10155 aix3*)
10156   version_type=linux
10157   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10158   shlibpath_var=LIBPATH
10159
10160   # AIX 3 has no versioning support, so we append a major version to the name.
10161   soname_spec='${libname}${release}${shared_ext}$major'
10162   ;;
10163
10164 aix[4-9]*)
10165   version_type=linux
10166   need_lib_prefix=no
10167   need_version=no
10168   hardcode_into_libs=yes
10169   if test "$host_cpu" = ia64; then
10170     # AIX 5 supports IA64
10171     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10172     shlibpath_var=LD_LIBRARY_PATH
10173   else
10174     # With GCC up to 2.95.x, collect2 would create an import file
10175     # for dependence libraries.  The import file would start with
10176     # the line `#! .'.  This would cause the generated library to
10177     # depend on `.', always an invalid library.  This was fixed in
10178     # development snapshots of GCC prior to 3.0.
10179     case $host_os in
10180       aix4 | aix4.[01] | aix4.[01].*)
10181       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10182            echo ' yes '
10183            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10184         :
10185       else
10186         can_build_shared=no
10187       fi
10188       ;;
10189     esac
10190     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10191     # soname into executable. Probably we can add versioning support to
10192     # collect2, so additional links can be useful in future.
10193     if test "$aix_use_runtimelinking" = yes; then
10194       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10195       # instead of lib<name>.a to let people know that these are not
10196       # typical AIX shared libraries.
10197       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198     else
10199       # We preserve .a as extension for shared libraries through AIX4.2
10200       # and later when we are not doing run time linking.
10201       library_names_spec='${libname}${release}.a $libname.a'
10202       soname_spec='${libname}${release}${shared_ext}$major'
10203     fi
10204     shlibpath_var=LIBPATH
10205   fi
10206   ;;
10207
10208 amigaos*)
10209   case $host_cpu in
10210   powerpc)
10211     # Since July 2007 AmigaOS4 officially supports .so libraries.
10212     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214     ;;
10215   m68k)
10216     library_names_spec='$libname.ixlibrary $libname.a'
10217     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10218     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10219     ;;
10220   esac
10221   ;;
10222
10223 beos*)
10224   library_names_spec='${libname}${shared_ext}'
10225   dynamic_linker="$host_os ld.so"
10226   shlibpath_var=LIBRARY_PATH
10227   ;;
10228
10229 bsdi[45]*)
10230   version_type=linux
10231   need_version=no
10232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10233   soname_spec='${libname}${release}${shared_ext}$major'
10234   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10235   shlibpath_var=LD_LIBRARY_PATH
10236   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10237   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10238   # the default ld.so.conf also contains /usr/contrib/lib and
10239   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10240   # libtool to hard-code these into programs
10241   ;;
10242
10243 cygwin* | mingw* | pw32* | cegcc*)
10244   version_type=windows
10245   shrext_cmds=".dll"
10246   need_version=no
10247   need_lib_prefix=no
10248
10249   case $GCC,$host_os in
10250   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10251     library_names_spec='$libname.dll.a'
10252     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10253     postinstall_cmds='base_file=`basename \${file}`~
10254       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10255       dldir=$destdir/`dirname \$dlpath`~
10256       test -d \$dldir || mkdir -p \$dldir~
10257       $install_prog $dir/$dlname \$dldir/$dlname~
10258       chmod a+x \$dldir/$dlname~
10259       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10260         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10261       fi'
10262     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10263       dlpath=$dir/\$dldll~
10264        $RM \$dlpath'
10265     shlibpath_overrides_runpath=yes
10266
10267     case $host_os in
10268     cygwin*)
10269       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10270       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10271       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10272       ;;
10273     mingw* | cegcc*)
10274       # MinGW DLLs use traditional 'lib' prefix
10275       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10276       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10277       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10278         # It is most probably a Windows format PATH printed by
10279         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10280         # path with ; separators, and with drive letters. We can handle the
10281         # drive letters (cygwin fileutils understands them), so leave them,
10282         # especially as we might pass files found there to a mingw objdump,
10283         # which wouldn't understand a cygwinified path. Ahh.
10284         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10285       else
10286         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10287       fi
10288       ;;
10289     pw32*)
10290       # pw32 DLLs use 'pw' prefix rather than 'lib'
10291       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10292       ;;
10293     esac
10294     ;;
10295
10296   *)
10297     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10298     ;;
10299   esac
10300   dynamic_linker='Win32 ld.exe'
10301   # FIXME: first we should search . and the directory the executable is in
10302   shlibpath_var=PATH
10303   ;;
10304
10305 darwin* | rhapsody*)
10306   dynamic_linker="$host_os dyld"
10307   version_type=darwin
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10311   soname_spec='${libname}${release}${major}$shared_ext'
10312   shlibpath_overrides_runpath=yes
10313   shlibpath_var=DYLD_LIBRARY_PATH
10314   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10315
10316   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10317   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10318   ;;
10319
10320 dgux*)
10321   version_type=linux
10322   need_lib_prefix=no
10323   need_version=no
10324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10325   soname_spec='${libname}${release}${shared_ext}$major'
10326   shlibpath_var=LD_LIBRARY_PATH
10327   ;;
10328
10329 freebsd1*)
10330   dynamic_linker=no
10331   ;;
10332
10333 freebsd* | dragonfly*)
10334   # DragonFly does not have aout.  When/if they implement a new
10335   # versioning mechanism, adjust this.
10336   if test -x /usr/bin/objformat; then
10337     objformat=`/usr/bin/objformat`
10338   else
10339     case $host_os in
10340     freebsd[123]*) objformat=aout ;;
10341     *) objformat=elf ;;
10342     esac
10343   fi
10344   version_type=freebsd-$objformat
10345   case $version_type in
10346     freebsd-elf*)
10347       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10348       need_version=no
10349       need_lib_prefix=no
10350       ;;
10351     freebsd-*)
10352       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10353       need_version=yes
10354       ;;
10355   esac
10356   shlibpath_var=LD_LIBRARY_PATH
10357   case $host_os in
10358   freebsd2*)
10359     shlibpath_overrides_runpath=yes
10360     ;;
10361   freebsd3.[01]* | freebsdelf3.[01]*)
10362     shlibpath_overrides_runpath=yes
10363     hardcode_into_libs=yes
10364     ;;
10365   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10366   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10367     shlibpath_overrides_runpath=no
10368     hardcode_into_libs=yes
10369     ;;
10370   *) # from 4.6 on, and DragonFly
10371     shlibpath_overrides_runpath=yes
10372     hardcode_into_libs=yes
10373     ;;
10374   esac
10375   ;;
10376
10377 gnu*)
10378   version_type=linux
10379   need_lib_prefix=no
10380   need_version=no
10381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10382   soname_spec='${libname}${release}${shared_ext}$major'
10383   shlibpath_var=LD_LIBRARY_PATH
10384   hardcode_into_libs=yes
10385   ;;
10386
10387 hpux9* | hpux10* | hpux11*)
10388   # Give a soname corresponding to the major version so that dld.sl refuses to
10389   # link against other versions.
10390   version_type=sunos
10391   need_lib_prefix=no
10392   need_version=no
10393   case $host_cpu in
10394   ia64*)
10395     shrext_cmds='.so'
10396     hardcode_into_libs=yes
10397     dynamic_linker="$host_os dld.so"
10398     shlibpath_var=LD_LIBRARY_PATH
10399     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10400     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401     soname_spec='${libname}${release}${shared_ext}$major'
10402     if test "X$HPUX_IA64_MODE" = X32; then
10403       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10404     else
10405       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10406     fi
10407     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10408     ;;
10409   hppa*64*)
10410     shrext_cmds='.sl'
10411     hardcode_into_libs=yes
10412     dynamic_linker="$host_os dld.sl"
10413     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10414     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10415     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416     soname_spec='${libname}${release}${shared_ext}$major'
10417     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10418     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10419     ;;
10420   *)
10421     shrext_cmds='.sl'
10422     dynamic_linker="$host_os dld.sl"
10423     shlibpath_var=SHLIB_PATH
10424     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10425     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426     soname_spec='${libname}${release}${shared_ext}$major'
10427     ;;
10428   esac
10429   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10430   postinstall_cmds='chmod 555 $lib'
10431   ;;
10432
10433 interix[3-9]*)
10434   version_type=linux
10435   need_lib_prefix=no
10436   need_version=no
10437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10438   soname_spec='${libname}${release}${shared_ext}$major'
10439   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10440   shlibpath_var=LD_LIBRARY_PATH
10441   shlibpath_overrides_runpath=no
10442   hardcode_into_libs=yes
10443   ;;
10444
10445 irix5* | irix6* | nonstopux*)
10446   case $host_os in
10447     nonstopux*) version_type=nonstopux ;;
10448     *)
10449         if test "$lt_cv_prog_gnu_ld" = yes; then
10450                 version_type=linux
10451         else
10452                 version_type=irix
10453         fi ;;
10454   esac
10455   need_lib_prefix=no
10456   need_version=no
10457   soname_spec='${libname}${release}${shared_ext}$major'
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10459   case $host_os in
10460   irix5* | nonstopux*)
10461     libsuff= shlibsuff=
10462     ;;
10463   *)
10464     case $LD in # libtool.m4 will add one of these switches to LD
10465     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10466       libsuff= shlibsuff= libmagic=32-bit;;
10467     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10468       libsuff=32 shlibsuff=N32 libmagic=N32;;
10469     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10470       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10471     *) libsuff= shlibsuff= libmagic=never-match;;
10472     esac
10473     ;;
10474   esac
10475   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10476   shlibpath_overrides_runpath=no
10477   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10478   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10479   hardcode_into_libs=yes
10480   ;;
10481
10482 # No shared lib support for Linux oldld, aout, or coff.
10483 linux*oldld* | linux*aout* | linux*coff*)
10484   dynamic_linker=no
10485   ;;
10486
10487 # This must be Linux ELF.
10488 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10489   version_type=linux
10490   need_lib_prefix=no
10491   need_version=no
10492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10493   soname_spec='${libname}${release}${shared_ext}$major'
10494   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10495   shlibpath_var=LD_LIBRARY_PATH
10496   shlibpath_overrides_runpath=no
10497
10498   # Some binutils ld are patched to set DT_RUNPATH
10499   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
10500   echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502   lt_cv_shlibpath_overrides_runpath=no
10503     save_LDFLAGS=$LDFLAGS
10504     save_libdir=$libdir
10505     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10506          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10507     if test x$gcc_no_link = xyes; then
10508   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10509 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10510    { (exit 1); exit 1; }; }
10511 fi
10512 cat >conftest.$ac_ext <<_ACEOF
10513 /* confdefs.h.  */
10514 _ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h.  */
10518
10519 int
10520 main ()
10521 {
10522
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529   (eval $ac_link) 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -z "$ac_c_werror_flag"
10537                          || test ! -s conftest.err'
10538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10539   (eval $ac_try) 2>&5
10540   ac_status=$?
10541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542   (exit $ac_status); }; } &&
10543          { ac_try='test -s conftest$ac_exeext'
10544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545   (eval $ac_try) 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10550   lt_cv_shlibpath_overrides_runpath=yes
10551 fi
10552
10553 else
10554   echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 fi
10558 rm -f conftest.err conftest.$ac_objext \
10559       conftest$ac_exeext conftest.$ac_ext
10560     LDFLAGS=$save_LDFLAGS
10561     libdir=$save_libdir
10562
10563 fi
10564
10565   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10566
10567   # This implies no fast_install, which is unacceptable.
10568   # Some rework will be needed to allow for fast_install
10569   # before this can be enabled.
10570   hardcode_into_libs=yes
10571
10572   # Append ld.so.conf contents to the search path
10573   if test -f /etc/ld.so.conf; then
10574     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10575     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10576   fi
10577
10578   # We used to test for /lib/ld.so.1 and disable shared libraries on
10579   # powerpc, because MkLinux only supported shared libraries with the
10580   # GNU dynamic linker.  Since this was broken with cross compilers,
10581   # most powerpc-linux boxes support dynamic linking these days and
10582   # people can always --disable-shared, the test was removed, and we
10583   # assume the GNU/Linux dynamic linker is in use.
10584   dynamic_linker='GNU/Linux ld.so'
10585   ;;
10586
10587 netbsd*)
10588   version_type=sunos
10589   need_lib_prefix=no
10590   need_version=no
10591   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10593     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10594     dynamic_linker='NetBSD (a.out) ld.so'
10595   else
10596     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10597     soname_spec='${libname}${release}${shared_ext}$major'
10598     dynamic_linker='NetBSD ld.elf_so'
10599   fi
10600   shlibpath_var=LD_LIBRARY_PATH
10601   shlibpath_overrides_runpath=yes
10602   hardcode_into_libs=yes
10603   ;;
10604
10605 newsos6)
10606   version_type=linux
10607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608   shlibpath_var=LD_LIBRARY_PATH
10609   shlibpath_overrides_runpath=yes
10610   ;;
10611
10612 *nto* | *qnx*)
10613   version_type=qnx
10614   need_lib_prefix=no
10615   need_version=no
10616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617   soname_spec='${libname}${release}${shared_ext}$major'
10618   shlibpath_var=LD_LIBRARY_PATH
10619   shlibpath_overrides_runpath=no
10620   hardcode_into_libs=yes
10621   dynamic_linker='ldqnx.so'
10622   ;;
10623
10624 openbsd*)
10625   version_type=sunos
10626   sys_lib_dlsearch_path_spec="/usr/lib"
10627   need_lib_prefix=no
10628   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10629   case $host_os in
10630     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10631     *)                          need_version=no  ;;
10632   esac
10633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10634   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10635   shlibpath_var=LD_LIBRARY_PATH
10636   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10637     case $host_os in
10638       openbsd2.[89] | openbsd2.[89].*)
10639         shlibpath_overrides_runpath=no
10640         ;;
10641       *)
10642         shlibpath_overrides_runpath=yes
10643         ;;
10644       esac
10645   else
10646     shlibpath_overrides_runpath=yes
10647   fi
10648   ;;
10649
10650 os2*)
10651   libname_spec='$name'
10652   shrext_cmds=".dll"
10653   need_lib_prefix=no
10654   library_names_spec='$libname${shared_ext} $libname.a'
10655   dynamic_linker='OS/2 ld.exe'
10656   shlibpath_var=LIBPATH
10657   ;;
10658
10659 osf3* | osf4* | osf5*)
10660   version_type=osf
10661   need_lib_prefix=no
10662   need_version=no
10663   soname_spec='${libname}${release}${shared_ext}$major'
10664   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665   shlibpath_var=LD_LIBRARY_PATH
10666   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10667   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10668   ;;
10669
10670 rdos*)
10671   dynamic_linker=no
10672   ;;
10673
10674 solaris*)
10675   version_type=linux
10676   need_lib_prefix=no
10677   need_version=no
10678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679   soname_spec='${libname}${release}${shared_ext}$major'
10680   shlibpath_var=LD_LIBRARY_PATH
10681   shlibpath_overrides_runpath=yes
10682   hardcode_into_libs=yes
10683   # ldd complains unless libraries are executable
10684   postinstall_cmds='chmod +x $lib'
10685   ;;
10686
10687 sunos4*)
10688   version_type=sunos
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10690   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10691   shlibpath_var=LD_LIBRARY_PATH
10692   shlibpath_overrides_runpath=yes
10693   if test "$with_gnu_ld" = yes; then
10694     need_lib_prefix=no
10695   fi
10696   need_version=yes
10697   ;;
10698
10699 sysv4 | sysv4.3*)
10700   version_type=linux
10701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702   soname_spec='${libname}${release}${shared_ext}$major'
10703   shlibpath_var=LD_LIBRARY_PATH
10704   case $host_vendor in
10705     sni)
10706       shlibpath_overrides_runpath=no
10707       need_lib_prefix=no
10708       runpath_var=LD_RUN_PATH
10709       ;;
10710     siemens)
10711       need_lib_prefix=no
10712       ;;
10713     motorola)
10714       need_lib_prefix=no
10715       need_version=no
10716       shlibpath_overrides_runpath=no
10717       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10718       ;;
10719   esac
10720   ;;
10721
10722 sysv4*MP*)
10723   if test -d /usr/nec ;then
10724     version_type=linux
10725     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10726     soname_spec='$libname${shared_ext}.$major'
10727     shlibpath_var=LD_LIBRARY_PATH
10728   fi
10729   ;;
10730
10731 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10732   version_type=freebsd-elf
10733   need_lib_prefix=no
10734   need_version=no
10735   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10736   soname_spec='${libname}${release}${shared_ext}$major'
10737   shlibpath_var=LD_LIBRARY_PATH
10738   shlibpath_overrides_runpath=yes
10739   hardcode_into_libs=yes
10740   if test "$with_gnu_ld" = yes; then
10741     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10742   else
10743     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10744     case $host_os in
10745       sco3.2v5*)
10746         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10747         ;;
10748     esac
10749   fi
10750   sys_lib_dlsearch_path_spec='/usr/lib'
10751   ;;
10752
10753 tpf*)
10754   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10755   version_type=linux
10756   need_lib_prefix=no
10757   need_version=no
10758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759   shlibpath_var=LD_LIBRARY_PATH
10760   shlibpath_overrides_runpath=no
10761   hardcode_into_libs=yes
10762   ;;
10763
10764 uts4*)
10765   version_type=linux
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767   soname_spec='${libname}${release}${shared_ext}$major'
10768   shlibpath_var=LD_LIBRARY_PATH
10769   ;;
10770
10771 *)
10772   dynamic_linker=no
10773   ;;
10774 esac
10775 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10776 echo "${ECHO_T}$dynamic_linker" >&6
10777 test "$dynamic_linker" = no && can_build_shared=no
10778
10779 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10780 if test "$GCC" = yes; then
10781   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10782 fi
10783
10784 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10785   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10786 fi
10787 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10788   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10789 fi
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10878 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10879 hardcode_action=
10880 if test -n "$hardcode_libdir_flag_spec" ||
10881    test -n "$runpath_var" ||
10882    test "X$hardcode_automatic" = "Xyes" ; then
10883
10884   # We can hardcode non-existent directories.
10885   if test "$hardcode_direct" != no &&
10886      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10887      # have to relink, otherwise we might link with an installed library
10888      # when we should be linking with a yet-to-be-installed one
10889      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10890      test "$hardcode_minus_L" != no; then
10891     # Linking always hardcodes the temporary library directory.
10892     hardcode_action=relink
10893   else
10894     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10895     hardcode_action=immediate
10896   fi
10897 else
10898   # We cannot hardcode anything, or else we can only hardcode existing
10899   # directories.
10900   hardcode_action=unsupported
10901 fi
10902 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10903 echo "${ECHO_T}$hardcode_action" >&6
10904
10905 if test "$hardcode_action" = relink ||
10906    test "$inherit_rpath" = yes; then
10907   # Fast installation is not supported
10908   enable_fast_install=no
10909 elif test "$shlibpath_overrides_runpath" = yes ||
10910      test "$enable_shared" = no; then
10911   # Fast installation is not necessary
10912   enable_fast_install=needless
10913 fi
10914
10915
10916
10917
10918
10919
10920   if test "x$enable_dlopen" != xyes; then
10921   enable_dlopen=unknown
10922   enable_dlopen_self=unknown
10923   enable_dlopen_self_static=unknown
10924 else
10925   lt_cv_dlopen=no
10926   lt_cv_dlopen_libs=
10927
10928   case $host_os in
10929   beos*)
10930     lt_cv_dlopen="load_add_on"
10931     lt_cv_dlopen_libs=
10932     lt_cv_dlopen_self=yes
10933     ;;
10934
10935   mingw* | pw32* | cegcc*)
10936     lt_cv_dlopen="LoadLibrary"
10937     lt_cv_dlopen_libs=
10938     ;;
10939
10940   cygwin*)
10941     lt_cv_dlopen="dlopen"
10942     lt_cv_dlopen_libs=
10943     ;;
10944
10945   darwin*)
10946   # if libdl is installed we need to link against it
10947     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10948 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10949 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10950   echo $ECHO_N "(cached) $ECHO_C" >&6
10951 else
10952   ac_check_lib_save_LIBS=$LIBS
10953 LIBS="-ldl  $LIBS"
10954 if test x$gcc_no_link = xyes; then
10955   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957    { (exit 1); exit 1; }; }
10958 fi
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h.  */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h.  */
10965
10966 /* Override any gcc2 internal prototype to avoid an error.  */
10967 #ifdef __cplusplus
10968 extern "C"
10969 #endif
10970 /* We use char because int might match the return type of a gcc2
10971    builtin and then its argument prototype would still apply.  */
10972 char dlopen ();
10973 int
10974 main ()
10975 {
10976 dlopen ();
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 rm -f conftest.$ac_objext conftest$ac_exeext
10982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10983   (eval $ac_link) 2>conftest.er1
10984   ac_status=$?
10985   grep -v '^ *+' conftest.er1 >conftest.err
10986   rm -f conftest.er1
10987   cat conftest.err >&5
10988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989   (exit $ac_status); } &&
10990          { ac_try='test -z "$ac_c_werror_flag"
10991                          || test ! -s conftest.err'
10992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993   (eval $ac_try) 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; } &&
10997          { ac_try='test -s conftest$ac_exeext'
10998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999   (eval $ac_try) 2>&5
11000   ac_status=$?
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); }; }; then
11003   ac_cv_lib_dl_dlopen=yes
11004 else
11005   echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_cv_lib_dl_dlopen=no
11009 fi
11010 rm -f conftest.err conftest.$ac_objext \
11011       conftest$ac_exeext conftest.$ac_ext
11012 LIBS=$ac_check_lib_save_LIBS
11013 fi
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11016 if test $ac_cv_lib_dl_dlopen = yes; then
11017   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11018 else
11019
11020     lt_cv_dlopen="dyld"
11021     lt_cv_dlopen_libs=
11022     lt_cv_dlopen_self=yes
11023
11024 fi
11025
11026     ;;
11027
11028   *)
11029     echo "$as_me:$LINENO: checking for shl_load" >&5
11030 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11031 if test "${ac_cv_func_shl_load+set}" = set; then
11032   echo $ECHO_N "(cached) $ECHO_C" >&6
11033 else
11034   if test x$gcc_no_link = xyes; then
11035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11037    { (exit 1); exit 1; }; }
11038 fi
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h.  */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h.  */
11045 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11046    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11047 #define shl_load innocuous_shl_load
11048
11049 /* System header to define __stub macros and hopefully few prototypes,
11050     which can conflict with char shl_load (); below.
11051     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052     <limits.h> exists even on freestanding compilers.  */
11053
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11059
11060 #undef shl_load
11061
11062 /* Override any gcc2 internal prototype to avoid an error.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 {
11066 #endif
11067 /* We use char because int might match the return type of a gcc2
11068    builtin and then its argument prototype would still apply.  */
11069 char shl_load ();
11070 /* The GNU C library defines this for functions which it implements
11071     to always fail with ENOSYS.  Some functions are actually named
11072     something starting with __ and the normal name is an alias.  */
11073 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11074 choke me
11075 #else
11076 char (*f) () = shl_load;
11077 #endif
11078 #ifdef __cplusplus
11079 }
11080 #endif
11081
11082 int
11083 main ()
11084 {
11085 return f != shl_load;
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11092   (eval $ac_link) 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag"
11100                          || test ! -s conftest.err'
11101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11102   (eval $ac_try) 2>&5
11103   ac_status=$?
11104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105   (exit $ac_status); }; } &&
11106          { ac_try='test -s conftest$ac_exeext'
11107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11108   (eval $ac_try) 2>&5
11109   ac_status=$?
11110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111   (exit $ac_status); }; }; then
11112   ac_cv_func_shl_load=yes
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 ac_cv_func_shl_load=no
11118 fi
11119 rm -f conftest.err conftest.$ac_objext \
11120       conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11123 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11124 if test $ac_cv_func_shl_load = yes; then
11125   lt_cv_dlopen="shl_load"
11126 else
11127   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11128 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11129 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   ac_check_lib_save_LIBS=$LIBS
11133 LIBS="-ldld  $LIBS"
11134 if test x$gcc_no_link = xyes; then
11135   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11137    { (exit 1); exit 1; }; }
11138 fi
11139 cat >conftest.$ac_ext <<_ACEOF
11140 /* confdefs.h.  */
11141 _ACEOF
11142 cat confdefs.h >>conftest.$ac_ext
11143 cat >>conftest.$ac_ext <<_ACEOF
11144 /* end confdefs.h.  */
11145
11146 /* Override any gcc2 internal prototype to avoid an error.  */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 /* We use char because int might match the return type of a gcc2
11151    builtin and then its argument prototype would still apply.  */
11152 char shl_load ();
11153 int
11154 main ()
11155 {
11156 shl_load ();
11157   ;
11158   return 0;
11159 }
11160 _ACEOF
11161 rm -f conftest.$ac_objext conftest$ac_exeext
11162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11163   (eval $ac_link) 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag"
11171                          || test ! -s conftest.err'
11172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173   (eval $ac_try) 2>&5
11174   ac_status=$?
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); }; } &&
11177          { ac_try='test -s conftest$ac_exeext'
11178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11179   (eval $ac_try) 2>&5
11180   ac_status=$?
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); }; }; then
11183   ac_cv_lib_dld_shl_load=yes
11184 else
11185   echo "$as_me: failed program was:" >&5
11186 sed 's/^/| /' conftest.$ac_ext >&5
11187
11188 ac_cv_lib_dld_shl_load=no
11189 fi
11190 rm -f conftest.err conftest.$ac_objext \
11191       conftest$ac_exeext conftest.$ac_ext
11192 LIBS=$ac_check_lib_save_LIBS
11193 fi
11194 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11195 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11196 if test $ac_cv_lib_dld_shl_load = yes; then
11197   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11198 else
11199   echo "$as_me:$LINENO: checking for dlopen" >&5
11200 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11201 if test "${ac_cv_func_dlopen+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   if test x$gcc_no_link = xyes; then
11205   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11206 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11207    { (exit 1); exit 1; }; }
11208 fi
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h.  */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h.  */
11215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11217 #define dlopen innocuous_dlopen
11218
11219 /* System header to define __stub macros and hopefully few prototypes,
11220     which can conflict with char dlopen (); below.
11221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11222     <limits.h> exists even on freestanding compilers.  */
11223
11224 #ifdef __STDC__
11225 # include <limits.h>
11226 #else
11227 # include <assert.h>
11228 #endif
11229
11230 #undef dlopen
11231
11232 /* Override any gcc2 internal prototype to avoid an error.  */
11233 #ifdef __cplusplus
11234 extern "C"
11235 {
11236 #endif
11237 /* We use char because int might match the return type of a gcc2
11238    builtin and then its argument prototype would still apply.  */
11239 char dlopen ();
11240 /* The GNU C library defines this for functions which it implements
11241     to always fail with ENOSYS.  Some functions are actually named
11242     something starting with __ and the normal name is an alias.  */
11243 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11244 choke me
11245 #else
11246 char (*f) () = dlopen;
11247 #endif
11248 #ifdef __cplusplus
11249 }
11250 #endif
11251
11252 int
11253 main ()
11254 {
11255 return f != dlopen;
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262   (eval $ac_link) 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } &&
11269          { ac_try='test -z "$ac_c_werror_flag"
11270                          || test ! -s conftest.err'
11271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272   (eval $ac_try) 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest$ac_exeext'
11277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278   (eval $ac_try) 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; }; then
11282   ac_cv_func_dlopen=yes
11283 else
11284   echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11286
11287 ac_cv_func_dlopen=no
11288 fi
11289 rm -f conftest.err conftest.$ac_objext \
11290       conftest$ac_exeext conftest.$ac_ext
11291 fi
11292 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11293 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11294 if test $ac_cv_func_dlopen = yes; then
11295   lt_cv_dlopen="dlopen"
11296 else
11297   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11298 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11299 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11300   echo $ECHO_N "(cached) $ECHO_C" >&6
11301 else
11302   ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-ldl  $LIBS"
11304 if test x$gcc_no_link = xyes; then
11305   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11306 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11307    { (exit 1); exit 1; }; }
11308 fi
11309 cat >conftest.$ac_ext <<_ACEOF
11310 /* confdefs.h.  */
11311 _ACEOF
11312 cat confdefs.h >>conftest.$ac_ext
11313 cat >>conftest.$ac_ext <<_ACEOF
11314 /* end confdefs.h.  */
11315
11316 /* Override any gcc2 internal prototype to avoid an error.  */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 /* We use char because int might match the return type of a gcc2
11321    builtin and then its argument prototype would still apply.  */
11322 char dlopen ();
11323 int
11324 main ()
11325 {
11326 dlopen ();
11327   ;
11328   return 0;
11329 }
11330 _ACEOF
11331 rm -f conftest.$ac_objext conftest$ac_exeext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11333   (eval $ac_link) 2>conftest.er1
11334   ac_status=$?
11335   grep -v '^ *+' conftest.er1 >conftest.err
11336   rm -f conftest.er1
11337   cat conftest.err >&5
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); } &&
11340          { ac_try='test -z "$ac_c_werror_flag"
11341                          || test ! -s conftest.err'
11342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343   (eval $ac_try) 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; } &&
11347          { ac_try='test -s conftest$ac_exeext'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   ac_cv_lib_dl_dlopen=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358 ac_cv_lib_dl_dlopen=no
11359 fi
11360 rm -f conftest.err conftest.$ac_objext \
11361       conftest$ac_exeext conftest.$ac_ext
11362 LIBS=$ac_check_lib_save_LIBS
11363 fi
11364 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11365 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11366 if test $ac_cv_lib_dl_dlopen = yes; then
11367   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11368 else
11369   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11370 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11371 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   ac_check_lib_save_LIBS=$LIBS
11375 LIBS="-lsvld  $LIBS"
11376 if test x$gcc_no_link = xyes; then
11377   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11379    { (exit 1); exit 1; }; }
11380 fi
11381 cat >conftest.$ac_ext <<_ACEOF
11382 /* confdefs.h.  */
11383 _ACEOF
11384 cat confdefs.h >>conftest.$ac_ext
11385 cat >>conftest.$ac_ext <<_ACEOF
11386 /* end confdefs.h.  */
11387
11388 /* Override any gcc2 internal prototype to avoid an error.  */
11389 #ifdef __cplusplus
11390 extern "C"
11391 #endif
11392 /* We use char because int might match the return type of a gcc2
11393    builtin and then its argument prototype would still apply.  */
11394 char dlopen ();
11395 int
11396 main ()
11397 {
11398 dlopen ();
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 rm -f conftest.$ac_objext conftest$ac_exeext
11404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11405   (eval $ac_link) 2>conftest.er1
11406   ac_status=$?
11407   grep -v '^ *+' conftest.er1 >conftest.err
11408   rm -f conftest.er1
11409   cat conftest.err >&5
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } &&
11412          { ac_try='test -z "$ac_c_werror_flag"
11413                          || test ! -s conftest.err'
11414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415   (eval $ac_try) 2>&5
11416   ac_status=$?
11417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418   (exit $ac_status); }; } &&
11419          { ac_try='test -s conftest$ac_exeext'
11420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421   (eval $ac_try) 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_cv_lib_svld_dlopen=yes
11426 else
11427   echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11429
11430 ac_cv_lib_svld_dlopen=no
11431 fi
11432 rm -f conftest.err conftest.$ac_objext \
11433       conftest$ac_exeext conftest.$ac_ext
11434 LIBS=$ac_check_lib_save_LIBS
11435 fi
11436 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11437 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11438 if test $ac_cv_lib_svld_dlopen = yes; then
11439   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11440 else
11441   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11442 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11443 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   ac_check_lib_save_LIBS=$LIBS
11447 LIBS="-ldld  $LIBS"
11448 if test x$gcc_no_link = xyes; then
11449   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11451    { (exit 1); exit 1; }; }
11452 fi
11453 cat >conftest.$ac_ext <<_ACEOF
11454 /* confdefs.h.  */
11455 _ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h.  */
11459
11460 /* Override any gcc2 internal prototype to avoid an error.  */
11461 #ifdef __cplusplus
11462 extern "C"
11463 #endif
11464 /* We use char because int might match the return type of a gcc2
11465    builtin and then its argument prototype would still apply.  */
11466 char dld_link ();
11467 int
11468 main ()
11469 {
11470 dld_link ();
11471   ;
11472   return 0;
11473 }
11474 _ACEOF
11475 rm -f conftest.$ac_objext conftest$ac_exeext
11476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477   (eval $ac_link) 2>conftest.er1
11478   ac_status=$?
11479   grep -v '^ *+' conftest.er1 >conftest.err
11480   rm -f conftest.er1
11481   cat conftest.err >&5
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); } &&
11484          { ac_try='test -z "$ac_c_werror_flag"
11485                          || test ! -s conftest.err'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; } &&
11491          { ac_try='test -s conftest$ac_exeext'
11492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493   (eval $ac_try) 2>&5
11494   ac_status=$?
11495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496   (exit $ac_status); }; }; then
11497   ac_cv_lib_dld_dld_link=yes
11498 else
11499   echo "$as_me: failed program was:" >&5
11500 sed 's/^/| /' conftest.$ac_ext >&5
11501
11502 ac_cv_lib_dld_dld_link=no
11503 fi
11504 rm -f conftest.err conftest.$ac_objext \
11505       conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11507 fi
11508 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11509 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11510 if test $ac_cv_lib_dld_dld_link = yes; then
11511   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526
11527 fi
11528
11529     ;;
11530   esac
11531
11532   if test "x$lt_cv_dlopen" != xno; then
11533     enable_dlopen=yes
11534   else
11535     enable_dlopen=no
11536   fi
11537
11538   case $lt_cv_dlopen in
11539   dlopen)
11540     save_CPPFLAGS="$CPPFLAGS"
11541     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11542
11543     save_LDFLAGS="$LDFLAGS"
11544     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11545
11546     save_LIBS="$LIBS"
11547     LIBS="$lt_cv_dlopen_libs $LIBS"
11548
11549     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11550 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11551 if test "${lt_cv_dlopen_self+set}" = set; then
11552   echo $ECHO_N "(cached) $ECHO_C" >&6
11553 else
11554           if test "$cross_compiling" = yes; then :
11555   lt_cv_dlopen_self=cross
11556 else
11557   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11558   lt_status=$lt_dlunknown
11559   cat > conftest.$ac_ext <<_LT_EOF
11560 #line 11560 "configure"
11561 #include "confdefs.h"
11562
11563 #if HAVE_DLFCN_H
11564 #include <dlfcn.h>
11565 #endif
11566
11567 #include <stdio.h>
11568
11569 #ifdef RTLD_GLOBAL
11570 #  define LT_DLGLOBAL           RTLD_GLOBAL
11571 #else
11572 #  ifdef DL_GLOBAL
11573 #    define LT_DLGLOBAL         DL_GLOBAL
11574 #  else
11575 #    define LT_DLGLOBAL         0
11576 #  endif
11577 #endif
11578
11579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11580    find out it does not work in some platform. */
11581 #ifndef LT_DLLAZY_OR_NOW
11582 #  ifdef RTLD_LAZY
11583 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11584 #  else
11585 #    ifdef DL_LAZY
11586 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11587 #    else
11588 #      ifdef RTLD_NOW
11589 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11590 #      else
11591 #        ifdef DL_NOW
11592 #          define LT_DLLAZY_OR_NOW      DL_NOW
11593 #        else
11594 #          define LT_DLLAZY_OR_NOW      0
11595 #        endif
11596 #      endif
11597 #    endif
11598 #  endif
11599 #endif
11600
11601 void fnord() { int i=42;}
11602 int main ()
11603 {
11604   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11605   int status = $lt_dlunknown;
11606
11607   if (self)
11608     {
11609       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11610       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11611       /* dlclose (self); */
11612     }
11613   else
11614     puts (dlerror ());
11615
11616   return status;
11617 }
11618 _LT_EOF
11619   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11620   (eval $ac_link) 2>&5
11621   ac_status=$?
11622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11624     (./conftest; exit; ) >&5 2>/dev/null
11625     lt_status=$?
11626     case x$lt_status in
11627       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11628       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11629       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11630     esac
11631   else :
11632     # compilation failed
11633     lt_cv_dlopen_self=no
11634   fi
11635 fi
11636 rm -fr conftest*
11637
11638
11639 fi
11640 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11641 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11642
11643     if test "x$lt_cv_dlopen_self" = xyes; then
11644       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11645       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11646 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11647 if test "${lt_cv_dlopen_self_static+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650           if test "$cross_compiling" = yes; then :
11651   lt_cv_dlopen_self_static=cross
11652 else
11653   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11654   lt_status=$lt_dlunknown
11655   cat > conftest.$ac_ext <<_LT_EOF
11656 #line 11656 "configure"
11657 #include "confdefs.h"
11658
11659 #if HAVE_DLFCN_H
11660 #include <dlfcn.h>
11661 #endif
11662
11663 #include <stdio.h>
11664
11665 #ifdef RTLD_GLOBAL
11666 #  define LT_DLGLOBAL           RTLD_GLOBAL
11667 #else
11668 #  ifdef DL_GLOBAL
11669 #    define LT_DLGLOBAL         DL_GLOBAL
11670 #  else
11671 #    define LT_DLGLOBAL         0
11672 #  endif
11673 #endif
11674
11675 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11676    find out it does not work in some platform. */
11677 #ifndef LT_DLLAZY_OR_NOW
11678 #  ifdef RTLD_LAZY
11679 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11680 #  else
11681 #    ifdef DL_LAZY
11682 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11683 #    else
11684 #      ifdef RTLD_NOW
11685 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11686 #      else
11687 #        ifdef DL_NOW
11688 #          define LT_DLLAZY_OR_NOW      DL_NOW
11689 #        else
11690 #          define LT_DLLAZY_OR_NOW      0
11691 #        endif
11692 #      endif
11693 #    endif
11694 #  endif
11695 #endif
11696
11697 void fnord() { int i=42;}
11698 int main ()
11699 {
11700   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11701   int status = $lt_dlunknown;
11702
11703   if (self)
11704     {
11705       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11706       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11707       /* dlclose (self); */
11708     }
11709   else
11710     puts (dlerror ());
11711
11712   return status;
11713 }
11714 _LT_EOF
11715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11716   (eval $ac_link) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11720     (./conftest; exit; ) >&5 2>/dev/null
11721     lt_status=$?
11722     case x$lt_status in
11723       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11724       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11725       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11726     esac
11727   else :
11728     # compilation failed
11729     lt_cv_dlopen_self_static=no
11730   fi
11731 fi
11732 rm -fr conftest*
11733
11734
11735 fi
11736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11737 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11738     fi
11739
11740     CPPFLAGS="$save_CPPFLAGS"
11741     LDFLAGS="$save_LDFLAGS"
11742     LIBS="$save_LIBS"
11743     ;;
11744   esac
11745
11746   case $lt_cv_dlopen_self in
11747   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11748   *) enable_dlopen_self=unknown ;;
11749   esac
11750
11751   case $lt_cv_dlopen_self_static in
11752   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11753   *) enable_dlopen_self_static=unknown ;;
11754   esac
11755 fi
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773 striplib=
11774 old_striplib=
11775 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11776 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11777 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11778   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11779   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11780   echo "$as_me:$LINENO: result: yes" >&5
11781 echo "${ECHO_T}yes" >&6
11782 else
11783 # FIXME - insert some real tests, host_os isn't really good enough
11784   case $host_os in
11785   darwin*)
11786     if test -n "$STRIP" ; then
11787       striplib="$STRIP -x"
11788       old_striplib="$STRIP -S"
11789       echo "$as_me:$LINENO: result: yes" >&5
11790 echo "${ECHO_T}yes" >&6
11791     else
11792       echo "$as_me:$LINENO: result: no" >&5
11793 echo "${ECHO_T}no" >&6
11794     fi
11795     ;;
11796   *)
11797     echo "$as_me:$LINENO: result: no" >&5
11798 echo "${ECHO_T}no" >&6
11799     ;;
11800   esac
11801 fi
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814   # Report which library types will actually be built
11815   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11816 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11817   echo "$as_me:$LINENO: result: $can_build_shared" >&5
11818 echo "${ECHO_T}$can_build_shared" >&6
11819
11820   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11821 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11822   test "$can_build_shared" = "no" && enable_shared=no
11823
11824   # On AIX, shared libraries and static libraries use the same namespace, and
11825   # are all built from PIC.
11826   case $host_os in
11827   aix3*)
11828     test "$enable_shared" = yes && enable_static=no
11829     if test -n "$RANLIB"; then
11830       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11831       postinstall_cmds='$RANLIB $lib'
11832     fi
11833     ;;
11834
11835   aix[4-9]*)
11836     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11837       test "$enable_shared" = yes && enable_static=no
11838     fi
11839     ;;
11840   esac
11841   echo "$as_me:$LINENO: result: $enable_shared" >&5
11842 echo "${ECHO_T}$enable_shared" >&6
11843
11844   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11845 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11846   # Make sure either enable_shared or enable_static is yes.
11847   test "$enable_shared" = yes || enable_static=yes
11848   echo "$as_me:$LINENO: result: $enable_static" >&5
11849 echo "${ECHO_T}$enable_static" >&6
11850
11851
11852
11853
11854 fi
11855 ac_ext=c
11856 ac_cpp='$CPP $CPPFLAGS'
11857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860
11861 CC="$lt_save_CC"
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875                   ac_config_commands="$ac_config_commands libtool"
11876
11877
11878
11879
11880 # Only expand once:
11881
11882
11883 for ac_prog in gawk mawk nawk awk
11884 do
11885   # Extract the first word of "$ac_prog", so it can be a program name with args.
11886 set dummy $ac_prog; ac_word=$2
11887 echo "$as_me:$LINENO: checking for $ac_word" >&5
11888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11889 if test "${ac_cv_prog_AWK+set}" = set; then
11890   echo $ECHO_N "(cached) $ECHO_C" >&6
11891 else
11892   if test -n "$AWK"; then
11893   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900   for ac_exec_ext in '' $ac_executable_extensions; do
11901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902     ac_cv_prog_AWK="$ac_prog"
11903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907 done
11908
11909 fi
11910 fi
11911 AWK=$ac_cv_prog_AWK
11912 if test -n "$AWK"; then
11913   echo "$as_me:$LINENO: result: $AWK" >&5
11914 echo "${ECHO_T}$AWK" >&6
11915 else
11916   echo "$as_me:$LINENO: result: no" >&5
11917 echo "${ECHO_T}no" >&6
11918 fi
11919
11920   test -n "$AWK" && break
11921 done
11922
11923 ac_ext=c
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928 if test -n "$ac_tool_prefix"; then
11929   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11930 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11931 echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11933 if test "${ac_cv_prog_CC+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   if test -n "$CC"; then
11937   ac_cv_prog_CC="$CC" # Let the user override the test.
11938 else
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11941 do
11942   IFS=$as_save_IFS
11943   test -z "$as_dir" && as_dir=.
11944   for ac_exec_ext in '' $ac_executable_extensions; do
11945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11948     break 2
11949   fi
11950 done
11951 done
11952
11953 fi
11954 fi
11955 CC=$ac_cv_prog_CC
11956 if test -n "$CC"; then
11957   echo "$as_me:$LINENO: result: $CC" >&5
11958 echo "${ECHO_T}$CC" >&6
11959 else
11960   echo "$as_me:$LINENO: result: no" >&5
11961 echo "${ECHO_T}no" >&6
11962 fi
11963
11964 fi
11965 if test -z "$ac_cv_prog_CC"; then
11966   ac_ct_CC=$CC
11967   # Extract the first word of "gcc", so it can be a program name with args.
11968 set dummy gcc; ac_word=$2
11969 echo "$as_me:$LINENO: checking for $ac_word" >&5
11970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11971 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11972   echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974   if test -n "$ac_ct_CC"; then
11975   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11976 else
11977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11978 for as_dir in $PATH
11979 do
11980   IFS=$as_save_IFS
11981   test -z "$as_dir" && as_dir=.
11982   for ac_exec_ext in '' $ac_executable_extensions; do
11983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11984     ac_cv_prog_ac_ct_CC="gcc"
11985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11986     break 2
11987   fi
11988 done
11989 done
11990
11991 fi
11992 fi
11993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11994 if test -n "$ac_ct_CC"; then
11995   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11996 echo "${ECHO_T}$ac_ct_CC" >&6
11997 else
11998   echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6
12000 fi
12001
12002   CC=$ac_ct_CC
12003 else
12004   CC="$ac_cv_prog_CC"
12005 fi
12006
12007 if test -z "$CC"; then
12008   if test -n "$ac_tool_prefix"; then
12009   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12010 set dummy ${ac_tool_prefix}cc; ac_word=$2
12011 echo "$as_me:$LINENO: checking for $ac_word" >&5
12012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12013 if test "${ac_cv_prog_CC+set}" = set; then
12014   echo $ECHO_N "(cached) $ECHO_C" >&6
12015 else
12016   if test -n "$CC"; then
12017   ac_cv_prog_CC="$CC" # Let the user override the test.
12018 else
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022   IFS=$as_save_IFS
12023   test -z "$as_dir" && as_dir=.
12024   for ac_exec_ext in '' $ac_executable_extensions; do
12025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026     ac_cv_prog_CC="${ac_tool_prefix}cc"
12027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12028     break 2
12029   fi
12030 done
12031 done
12032
12033 fi
12034 fi
12035 CC=$ac_cv_prog_CC
12036 if test -n "$CC"; then
12037   echo "$as_me:$LINENO: result: $CC" >&5
12038 echo "${ECHO_T}$CC" >&6
12039 else
12040   echo "$as_me:$LINENO: result: no" >&5
12041 echo "${ECHO_T}no" >&6
12042 fi
12043
12044 fi
12045 if test -z "$ac_cv_prog_CC"; then
12046   ac_ct_CC=$CC
12047   # Extract the first word of "cc", so it can be a program name with args.
12048 set dummy cc; ac_word=$2
12049 echo "$as_me:$LINENO: checking for $ac_word" >&5
12050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   if test -n "$ac_ct_CC"; then
12055   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12056 else
12057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12058 for as_dir in $PATH
12059 do
12060   IFS=$as_save_IFS
12061   test -z "$as_dir" && as_dir=.
12062   for ac_exec_ext in '' $ac_executable_extensions; do
12063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12064     ac_cv_prog_ac_ct_CC="cc"
12065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12066     break 2
12067   fi
12068 done
12069 done
12070
12071 fi
12072 fi
12073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12074 if test -n "$ac_ct_CC"; then
12075   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12076 echo "${ECHO_T}$ac_ct_CC" >&6
12077 else
12078   echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6
12080 fi
12081
12082   CC=$ac_ct_CC
12083 else
12084   CC="$ac_cv_prog_CC"
12085 fi
12086
12087 fi
12088 if test -z "$CC"; then
12089   # Extract the first word of "cc", so it can be a program name with args.
12090 set dummy cc; ac_word=$2
12091 echo "$as_me:$LINENO: checking for $ac_word" >&5
12092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12093 if test "${ac_cv_prog_CC+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 else
12096   if test -n "$CC"; then
12097   ac_cv_prog_CC="$CC" # Let the user override the test.
12098 else
12099   ac_prog_rejected=no
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12102 do
12103   IFS=$as_save_IFS
12104   test -z "$as_dir" && as_dir=.
12105   for ac_exec_ext in '' $ac_executable_extensions; do
12106   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12108        ac_prog_rejected=yes
12109        continue
12110      fi
12111     ac_cv_prog_CC="cc"
12112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12113     break 2
12114   fi
12115 done
12116 done
12117
12118 if test $ac_prog_rejected = yes; then
12119   # We found a bogon in the path, so make sure we never use it.
12120   set dummy $ac_cv_prog_CC
12121   shift
12122   if test $# != 0; then
12123     # We chose a different compiler from the bogus one.
12124     # However, it has the same basename, so the bogon will be chosen
12125     # first if we set CC to just the basename; use the full file name.
12126     shift
12127     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12128   fi
12129 fi
12130 fi
12131 fi
12132 CC=$ac_cv_prog_CC
12133 if test -n "$CC"; then
12134   echo "$as_me:$LINENO: result: $CC" >&5
12135 echo "${ECHO_T}$CC" >&6
12136 else
12137   echo "$as_me:$LINENO: result: no" >&5
12138 echo "${ECHO_T}no" >&6
12139 fi
12140
12141 fi
12142 if test -z "$CC"; then
12143   if test -n "$ac_tool_prefix"; then
12144   for ac_prog in cl
12145   do
12146     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12147 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12148 echo "$as_me:$LINENO: checking for $ac_word" >&5
12149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12150 if test "${ac_cv_prog_CC+set}" = set; then
12151   echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153   if test -n "$CC"; then
12154   ac_cv_prog_CC="$CC" # Let the user override the test.
12155 else
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159   IFS=$as_save_IFS
12160   test -z "$as_dir" && as_dir=.
12161   for ac_exec_ext in '' $ac_executable_extensions; do
12162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12163     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12165     break 2
12166   fi
12167 done
12168 done
12169
12170 fi
12171 fi
12172 CC=$ac_cv_prog_CC
12173 if test -n "$CC"; then
12174   echo "$as_me:$LINENO: result: $CC" >&5
12175 echo "${ECHO_T}$CC" >&6
12176 else
12177   echo "$as_me:$LINENO: result: no" >&5
12178 echo "${ECHO_T}no" >&6
12179 fi
12180
12181     test -n "$CC" && break
12182   done
12183 fi
12184 if test -z "$CC"; then
12185   ac_ct_CC=$CC
12186   for ac_prog in cl
12187 do
12188   # Extract the first word of "$ac_prog", so it can be a program name with args.
12189 set dummy $ac_prog; ac_word=$2
12190 echo "$as_me:$LINENO: checking for $ac_word" >&5
12191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12192 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12193   echo $ECHO_N "(cached) $ECHO_C" >&6
12194 else
12195   if test -n "$ac_ct_CC"; then
12196   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12197 else
12198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12199 for as_dir in $PATH
12200 do
12201   IFS=$as_save_IFS
12202   test -z "$as_dir" && as_dir=.
12203   for ac_exec_ext in '' $ac_executable_extensions; do
12204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12205     ac_cv_prog_ac_ct_CC="$ac_prog"
12206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12207     break 2
12208   fi
12209 done
12210 done
12211
12212 fi
12213 fi
12214 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12215 if test -n "$ac_ct_CC"; then
12216   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12217 echo "${ECHO_T}$ac_ct_CC" >&6
12218 else
12219   echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6
12221 fi
12222
12223   test -n "$ac_ct_CC" && break
12224 done
12225
12226   CC=$ac_ct_CC
12227 fi
12228
12229 fi
12230
12231
12232 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12233 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12234 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12235 See \`config.log' for more details." >&5
12236 echo "$as_me: error: no acceptable C compiler found in \$PATH
12237 See \`config.log' for more details." >&2;}
12238    { (exit 1); exit 1; }; }; }
12239
12240 # Provide some information about the compiler.
12241 echo "$as_me:$LINENO:" \
12242      "checking for C compiler version" >&5
12243 ac_compiler=`set X $ac_compile; echo $2`
12244 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12245   (eval $ac_compiler --version </dev/null >&5) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }
12249 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12250   (eval $ac_compiler -v </dev/null >&5) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }
12254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12255   (eval $ac_compiler -V </dev/null >&5) 2>&5
12256   ac_status=$?
12257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); }
12259
12260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12263   echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265   cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h.  */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h.  */
12271
12272 int
12273 main ()
12274 {
12275 #ifndef __GNUC__
12276        choke me
12277 #endif
12278
12279   ;
12280   return 0;
12281 }
12282 _ACEOF
12283 rm -f conftest.$ac_objext
12284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12285   (eval $ac_compile) 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } &&
12292          { ac_try='test -z "$ac_c_werror_flag"
12293                          || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299          { ac_try='test -s conftest.$ac_objext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_compiler_gnu=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_compiler_gnu=no
12311 fi
12312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12314
12315 fi
12316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12318 GCC=`test $ac_compiler_gnu = yes && echo yes`
12319 ac_test_CFLAGS=${CFLAGS+set}
12320 ac_save_CFLAGS=$CFLAGS
12321 CFLAGS="-g"
12322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12324 if test "${ac_cv_prog_cc_g+set}" = set; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 else
12327   cat >conftest.$ac_ext <<_ACEOF
12328 /* confdefs.h.  */
12329 _ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h.  */
12333
12334 int
12335 main ()
12336 {
12337
12338   ;
12339   return 0;
12340 }
12341 _ACEOF
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344   (eval $ac_compile) 2>conftest.er1
12345   ac_status=$?
12346   grep -v '^ *+' conftest.er1 >conftest.err
12347   rm -f conftest.er1
12348   cat conftest.err >&5
12349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350   (exit $ac_status); } &&
12351          { ac_try='test -z "$ac_c_werror_flag"
12352                          || test ! -s conftest.err'
12353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354   (eval $ac_try) 2>&5
12355   ac_status=$?
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); }; } &&
12358          { ac_try='test -s conftest.$ac_objext'
12359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360   (eval $ac_try) 2>&5
12361   ac_status=$?
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); }; }; then
12364   ac_cv_prog_cc_g=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369 ac_cv_prog_cc_g=no
12370 fi
12371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 fi
12373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12375 if test "$ac_test_CFLAGS" = set; then
12376   CFLAGS=$ac_save_CFLAGS
12377 elif test $ac_cv_prog_cc_g = yes; then
12378   if test "$GCC" = yes; then
12379     CFLAGS="-g -O2"
12380   else
12381     CFLAGS="-g"
12382   fi
12383 else
12384   if test "$GCC" = yes; then
12385     CFLAGS="-O2"
12386   else
12387     CFLAGS=
12388   fi
12389 fi
12390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 else
12395   ac_cv_prog_cc_stdc=no
12396 ac_save_CC=$CC
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403 #include <stdarg.h>
12404 #include <stdio.h>
12405 #include <sys/types.h>
12406 #include <sys/stat.h>
12407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12408 struct buf { int x; };
12409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12410 static char *e (p, i)
12411      char **p;
12412      int i;
12413 {
12414   return p[i];
12415 }
12416 static char *f (char * (*g) (char **, int), char **p, ...)
12417 {
12418   char *s;
12419   va_list v;
12420   va_start (v,p);
12421   s = g (p, va_arg (v,int));
12422   va_end (v);
12423   return s;
12424 }
12425
12426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12427    function prototypes and stuff, but not '\xHH' hex character constants.
12428    These don't provoke an error unfortunately, instead are silently treated
12429    as 'x'.  The following induces an error, until -std1 is added to get
12430    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12431    array size at least.  It's necessary to write '\x00'==0 to get something
12432    that's true only with -std1.  */
12433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12434
12435 int test (int i, double x);
12436 struct s1 {int (*f) (int a);};
12437 struct s2 {int (*f) (double a);};
12438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12439 int argc;
12440 char **argv;
12441 int
12442 main ()
12443 {
12444 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 # Don't try gcc -ansi; that turns off useful extensions and
12450 # breaks some systems' header files.
12451 # AIX                   -qlanglvl=ansi
12452 # Ultrix and OSF/1      -std1
12453 # HP-UX 10.20 and later -Ae
12454 # HP-UX older versions  -Aa -D_HPUX_SOURCE
12455 # SVR4                  -Xc -D__EXTENSIONS__
12456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12457 do
12458   CC="$ac_save_CC $ac_arg"
12459   rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461   (eval $ac_compile) 2>conftest.er1
12462   ac_status=$?
12463   grep -v '^ *+' conftest.er1 >conftest.err
12464   rm -f conftest.er1
12465   cat conftest.err >&5
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); } &&
12468          { ac_try='test -z "$ac_c_werror_flag"
12469                          || test ! -s conftest.err'
12470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12471   (eval $ac_try) 2>&5
12472   ac_status=$?
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); }; } &&
12475          { ac_try='test -s conftest.$ac_objext'
12476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12477   (eval $ac_try) 2>&5
12478   ac_status=$?
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); }; }; then
12481   ac_cv_prog_cc_stdc=$ac_arg
12482 break
12483 else
12484   echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 fi
12488 rm -f conftest.err conftest.$ac_objext
12489 done
12490 rm -f conftest.$ac_ext conftest.$ac_objext
12491 CC=$ac_save_CC
12492
12493 fi
12494
12495 case "x$ac_cv_prog_cc_stdc" in
12496   x|xno)
12497     echo "$as_me:$LINENO: result: none needed" >&5
12498 echo "${ECHO_T}none needed" >&6 ;;
12499   *)
12500     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12501 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12502     CC="$CC $ac_cv_prog_cc_stdc" ;;
12503 esac
12504
12505 # Some people use a C++ compiler to compile C.  Since we use `exit',
12506 # in C++ we need to declare it.  In case someone uses the same compiler
12507 # for both compiling C and C++ we need to have the C++ compiler decide
12508 # the declaration of exit, since it's the most demanding environment.
12509 cat >conftest.$ac_ext <<_ACEOF
12510 #ifndef __cplusplus
12511   choke me
12512 #endif
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516   (eval $ac_compile) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest.$ac_objext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   for ac_declaration in \
12537    '' \
12538    'extern "C" void std::exit (int) throw (); using std::exit;' \
12539    'extern "C" void std::exit (int); using std::exit;' \
12540    'extern "C" void exit (int) throw ();' \
12541    'extern "C" void exit (int);' \
12542    'void exit (int);'
12543 do
12544   cat >conftest.$ac_ext <<_ACEOF
12545 /* confdefs.h.  */
12546 _ACEOF
12547 cat confdefs.h >>conftest.$ac_ext
12548 cat >>conftest.$ac_ext <<_ACEOF
12549 /* end confdefs.h.  */
12550 $ac_declaration
12551 #include <stdlib.h>
12552 int
12553 main ()
12554 {
12555 exit (42);
12556   ;
12557   return 0;
12558 }
12559 _ACEOF
12560 rm -f conftest.$ac_objext
12561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562   (eval $ac_compile) 2>conftest.er1
12563   ac_status=$?
12564   grep -v '^ *+' conftest.er1 >conftest.err
12565   rm -f conftest.er1
12566   cat conftest.err >&5
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -z "$ac_c_werror_flag"
12570                          || test ! -s conftest.err'
12571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572   (eval $ac_try) 2>&5
12573   ac_status=$?
12574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575   (exit $ac_status); }; } &&
12576          { ac_try='test -s conftest.$ac_objext'
12577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578   (eval $ac_try) 2>&5
12579   ac_status=$?
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); }; }; then
12582   :
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587 continue
12588 fi
12589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590   cat >conftest.$ac_ext <<_ACEOF
12591 /* confdefs.h.  */
12592 _ACEOF
12593 cat confdefs.h >>conftest.$ac_ext
12594 cat >>conftest.$ac_ext <<_ACEOF
12595 /* end confdefs.h.  */
12596 $ac_declaration
12597 int
12598 main ()
12599 {
12600 exit (42);
12601   ;
12602   return 0;
12603 }
12604 _ACEOF
12605 rm -f conftest.$ac_objext
12606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12607   (eval $ac_compile) 2>conftest.er1
12608   ac_status=$?
12609   grep -v '^ *+' conftest.er1 >conftest.err
12610   rm -f conftest.er1
12611   cat conftest.err >&5
12612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613   (exit $ac_status); } &&
12614          { ac_try='test -z "$ac_c_werror_flag"
12615                          || test ! -s conftest.err'
12616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617   (eval $ac_try) 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest.$ac_objext'
12622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623   (eval $ac_try) 2>&5
12624   ac_status=$?
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); }; }; then
12627   break
12628 else
12629   echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 fi
12633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12634 done
12635 rm -f conftest*
12636 if test -n "$ac_declaration"; then
12637   echo '#ifdef __cplusplus' >>confdefs.h
12638   echo $ac_declaration      >>confdefs.h
12639   echo '#endif'             >>confdefs.h
12640 fi
12641
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646 fi
12647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12648 ac_ext=c
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653
12654 depcc="$CC"   am_compiler_list=
12655
12656 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12659   echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12662   # We make a subdir and do the tests there.  Otherwise we can end up
12663   # making bogus files that we don't know about and never remove.  For
12664   # instance it was reported that on HP-UX the gcc test will end up
12665   # making a dummy file named `D' -- because `-MD' means `put the output
12666   # in D'.
12667   mkdir conftest.dir
12668   # Copy depcomp to subdir because otherwise we won't find it if we're
12669   # using a relative directory.
12670   cp "$am_depcomp" conftest.dir
12671   cd conftest.dir
12672   # We will build objects and dependencies in a subdirectory because
12673   # it helps to detect inapplicable dependency modes.  For instance
12674   # both Tru64's cc and ICC support -MD to output dependencies as a
12675   # side effect of compilation, but ICC will put the dependencies in
12676   # the current directory while Tru64 will put them in the object
12677   # directory.
12678   mkdir sub
12679
12680   am_cv_CC_dependencies_compiler_type=none
12681   if test "$am_compiler_list" = ""; then
12682      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12683   fi
12684   for depmode in $am_compiler_list; do
12685     # Setup a source with many dependencies, because some compilers
12686     # like to wrap large dependency lists on column 80 (with \), and
12687     # we should not choose a depcomp mode which is confused by this.
12688     #
12689     # We need to recreate these files for each test, as the compiler may
12690     # overwrite some of them when testing with obscure command lines.
12691     # This happens at least with the AIX C compiler.
12692     : > sub/conftest.c
12693     for i in 1 2 3 4 5 6; do
12694       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12695       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12696       # Solaris 8's {/usr,}/bin/sh.
12697       touch sub/conftst$i.h
12698     done
12699     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12700
12701     case $depmode in
12702     nosideeffect)
12703       # after this tag, mechanisms are not by side-effect, so they'll
12704       # only be used when explicitly requested
12705       if test "x$enable_dependency_tracking" = xyes; then
12706         continue
12707       else
12708         break
12709       fi
12710       ;;
12711     none) break ;;
12712     esac
12713     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12714     # mode.  It turns out that the SunPro C++ compiler does not properly
12715     # handle `-M -o', and we need to detect this.
12716     if depmode=$depmode \
12717        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12718        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12719        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12720          >/dev/null 2>conftest.err &&
12721        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12722        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12723        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12724       # icc doesn't choke on unknown options, it will just issue warnings
12725       # or remarks (even with -Werror).  So we grep stderr for any message
12726       # that says an option was ignored or not supported.
12727       # When given -MP, icc 7.0 and 7.1 complain thusly:
12728       #   icc: Command line warning: ignoring option '-M'; no argument required
12729       # The diagnosis changed in icc 8.0:
12730       #   icc: Command line remark: option '-MP' not supported
12731       if (grep 'ignoring option' conftest.err ||
12732           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12733         am_cv_CC_dependencies_compiler_type=$depmode
12734         break
12735       fi
12736     fi
12737   done
12738
12739   cd ..
12740   rm -rf conftest.dir
12741 else
12742   am_cv_CC_dependencies_compiler_type=none
12743 fi
12744
12745 fi
12746 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12747 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12749
12750
12751
12752 if
12753   test "x$enable_dependency_tracking" != xno \
12754   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12755   am__fastdepCC_TRUE=
12756   am__fastdepCC_FALSE='#'
12757 else
12758   am__fastdepCC_TRUE='#'
12759   am__fastdepCC_FALSE=
12760 fi
12761
12762
12763 if test "x$CC" != xcc; then
12764   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12765 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
12766 else
12767   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12768 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
12769 fi
12770 set dummy $CC; ac_cc=`echo $2 |
12771                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12772 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
12773   echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775   cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h.  */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h.  */
12781
12782 int
12783 main ()
12784 {
12785
12786   ;
12787   return 0;
12788 }
12789 _ACEOF
12790 # Make sure it works both with $CC and with simple cc.
12791 # We do the test twice because some compilers refuse to overwrite an
12792 # existing .o file with -o, though they will create one.
12793 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
12794 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); } &&
12799    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800   (eval $ac_try) 2>&5
12801   ac_status=$?
12802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803   (exit $ac_status); };
12804 then
12805   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12806   if test "x$CC" != xcc; then
12807     # Test first that cc exists at all.
12808     if { ac_try='cc -c conftest.$ac_ext >&5'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
12815       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816   (eval $ac_try) 2>&5
12817   ac_status=$?
12818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819   (exit $ac_status); } &&
12820          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821   (eval $ac_try) 2>&5
12822   ac_status=$?
12823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824   (exit $ac_status); };
12825       then
12826         # cc works too.
12827         :
12828       else
12829         # cc exists but doesn't like -o.
12830         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12831       fi
12832     fi
12833   fi
12834 else
12835   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12836 fi
12837 rm -f conftest*
12838
12839 fi
12840 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
12841   echo "$as_me:$LINENO: result: yes" >&5
12842 echo "${ECHO_T}yes" >&6
12843 else
12844   echo "$as_me:$LINENO: result: no" >&5
12845 echo "${ECHO_T}no" >&6
12846
12847 cat >>confdefs.h <<\_ACEOF
12848 #define NO_MINUS_C_MINUS_O 1
12849 _ACEOF
12850
12851 fi
12852
12853 # FIXME: we rely on the cache variable name because
12854 # there is no other way.
12855 set dummy $CC
12856 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12857 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
12858    # Losing compiler, so override with the script.
12859    # FIXME: It is wrong to rewrite CC.
12860    # But if we don't then we get into trouble of one sort or another.
12861    # A longer-term fix would be to have automake use am__CC in this case,
12862    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12863    CC="$am_aux_dir/compile $CC"
12864 fi
12865
12866 ac_ext=c
12867 ac_cpp='$CPP $CPPFLAGS'
12868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12871 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12872 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12873 # On Suns, sometimes $CPP names a directory.
12874 if test -n "$CPP" && test -d "$CPP"; then
12875   CPP=
12876 fi
12877 if test -z "$CPP"; then
12878   if test "${ac_cv_prog_CPP+set}" = set; then
12879   echo $ECHO_N "(cached) $ECHO_C" >&6
12880 else
12881       # Double quotes because CPP needs to be expanded
12882     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12883     do
12884       ac_preproc_ok=false
12885 for ac_c_preproc_warn_flag in '' yes
12886 do
12887   # Use a header file that comes with gcc, so configuring glibc
12888   # with a fresh cross-compiler works.
12889   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12890   # <limits.h> exists even on freestanding compilers.
12891   # On the NeXT, cc -E runs the code through the compiler's parser,
12892   # not just through cpp. "Syntax error" is here to catch this case.
12893   cat >conftest.$ac_ext <<_ACEOF
12894 /* confdefs.h.  */
12895 _ACEOF
12896 cat confdefs.h >>conftest.$ac_ext
12897 cat >>conftest.$ac_ext <<_ACEOF
12898 /* end confdefs.h.  */
12899 #ifdef __STDC__
12900 # include <limits.h>
12901 #else
12902 # include <assert.h>
12903 #endif
12904                      Syntax error
12905 _ACEOF
12906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12908   ac_status=$?
12909   grep -v '^ *+' conftest.er1 >conftest.err
12910   rm -f conftest.er1
12911   cat conftest.err >&5
12912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913   (exit $ac_status); } >/dev/null; then
12914   if test -s conftest.err; then
12915     ac_cpp_err=$ac_c_preproc_warn_flag
12916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12917   else
12918     ac_cpp_err=
12919   fi
12920 else
12921   ac_cpp_err=yes
12922 fi
12923 if test -z "$ac_cpp_err"; then
12924   :
12925 else
12926   echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929   # Broken: fails on valid input.
12930 continue
12931 fi
12932 rm -f conftest.err conftest.$ac_ext
12933
12934   # OK, works on sane cases.  Now check whether non-existent headers
12935   # can be detected and how.
12936   cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h.  */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h.  */
12942 #include <ac_nonexistent.h>
12943 _ACEOF
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } >/dev/null; then
12952   if test -s conftest.err; then
12953     ac_cpp_err=$ac_c_preproc_warn_flag
12954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12955   else
12956     ac_cpp_err=
12957   fi
12958 else
12959   ac_cpp_err=yes
12960 fi
12961 if test -z "$ac_cpp_err"; then
12962   # Broken: success on invalid input.
12963 continue
12964 else
12965   echo "$as_me: failed program was:" >&5
12966 sed 's/^/| /' conftest.$ac_ext >&5
12967
12968   # Passes both tests.
12969 ac_preproc_ok=:
12970 break
12971 fi
12972 rm -f conftest.err conftest.$ac_ext
12973
12974 done
12975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12976 rm -f conftest.err conftest.$ac_ext
12977 if $ac_preproc_ok; then
12978   break
12979 fi
12980
12981     done
12982     ac_cv_prog_CPP=$CPP
12983
12984 fi
12985   CPP=$ac_cv_prog_CPP
12986 else
12987   ac_cv_prog_CPP=$CPP
12988 fi
12989 echo "$as_me:$LINENO: result: $CPP" >&5
12990 echo "${ECHO_T}$CPP" >&6
12991 ac_preproc_ok=false
12992 for ac_c_preproc_warn_flag in '' yes
12993 do
12994   # Use a header file that comes with gcc, so configuring glibc
12995   # with a fresh cross-compiler works.
12996   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997   # <limits.h> exists even on freestanding compilers.
12998   # On the NeXT, cc -E runs the code through the compiler's parser,
12999   # not just through cpp. "Syntax error" is here to catch this case.
13000   cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 #ifdef __STDC__
13007 # include <limits.h>
13008 #else
13009 # include <assert.h>
13010 #endif
13011                      Syntax error
13012 _ACEOF
13013 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13014   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13015   ac_status=$?
13016   grep -v '^ *+' conftest.er1 >conftest.err
13017   rm -f conftest.er1
13018   cat conftest.err >&5
13019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020   (exit $ac_status); } >/dev/null; then
13021   if test -s conftest.err; then
13022     ac_cpp_err=$ac_c_preproc_warn_flag
13023     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13024   else
13025     ac_cpp_err=
13026   fi
13027 else
13028   ac_cpp_err=yes
13029 fi
13030 if test -z "$ac_cpp_err"; then
13031   :
13032 else
13033   echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13035
13036   # Broken: fails on valid input.
13037 continue
13038 fi
13039 rm -f conftest.err conftest.$ac_ext
13040
13041   # OK, works on sane cases.  Now check whether non-existent headers
13042   # can be detected and how.
13043   cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h.  */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h.  */
13049 #include <ac_nonexistent.h>
13050 _ACEOF
13051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13053   ac_status=$?
13054   grep -v '^ *+' conftest.er1 >conftest.err
13055   rm -f conftest.er1
13056   cat conftest.err >&5
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); } >/dev/null; then
13059   if test -s conftest.err; then
13060     ac_cpp_err=$ac_c_preproc_warn_flag
13061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13062   else
13063     ac_cpp_err=
13064   fi
13065 else
13066   ac_cpp_err=yes
13067 fi
13068 if test -z "$ac_cpp_err"; then
13069   # Broken: success on invalid input.
13070 continue
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075   # Passes both tests.
13076 ac_preproc_ok=:
13077 break
13078 fi
13079 rm -f conftest.err conftest.$ac_ext
13080
13081 done
13082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083 rm -f conftest.err conftest.$ac_ext
13084 if $ac_preproc_ok; then
13085   :
13086 else
13087   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13088 echo "$as_me: error: in \`$ac_pwd':" >&2;}
13089 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13090 See \`config.log' for more details." >&5
13091 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13092 See \`config.log' for more details." >&2;}
13093    { (exit 1); exit 1; }; }; }
13094 fi
13095
13096 ac_ext=c
13097 ac_cpp='$CPP $CPPFLAGS'
13098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101
13102 ac_ext=cc
13103 ac_cpp='$CXXCPP $CPPFLAGS'
13104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13107 if test -n "$ac_tool_prefix"; then
13108   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13109   do
13110     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13112 echo "$as_me:$LINENO: checking for $ac_word" >&5
13113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13114 if test "${ac_cv_prog_CXX+set}" = set; then
13115   echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117   if test -n "$CXX"; then
13118   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13119 else
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in $PATH
13122 do
13123   IFS=$as_save_IFS
13124   test -z "$as_dir" && as_dir=.
13125   for ac_exec_ext in '' $ac_executable_extensions; do
13126   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13127     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13128     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13129     break 2
13130   fi
13131 done
13132 done
13133
13134 fi
13135 fi
13136 CXX=$ac_cv_prog_CXX
13137 if test -n "$CXX"; then
13138   echo "$as_me:$LINENO: result: $CXX" >&5
13139 echo "${ECHO_T}$CXX" >&6
13140 else
13141   echo "$as_me:$LINENO: result: no" >&5
13142 echo "${ECHO_T}no" >&6
13143 fi
13144
13145     test -n "$CXX" && break
13146   done
13147 fi
13148 if test -z "$CXX"; then
13149   ac_ct_CXX=$CXX
13150   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13151 do
13152   # Extract the first word of "$ac_prog", so it can be a program name with args.
13153 set dummy $ac_prog; ac_word=$2
13154 echo "$as_me:$LINENO: checking for $ac_word" >&5
13155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   if test -n "$ac_ct_CXX"; then
13160   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13161 else
13162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165   IFS=$as_save_IFS
13166   test -z "$as_dir" && as_dir=.
13167   for ac_exec_ext in '' $ac_executable_extensions; do
13168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169     ac_cv_prog_ac_ct_CXX="$ac_prog"
13170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13171     break 2
13172   fi
13173 done
13174 done
13175
13176 fi
13177 fi
13178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13179 if test -n "$ac_ct_CXX"; then
13180   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13181 echo "${ECHO_T}$ac_ct_CXX" >&6
13182 else
13183   echo "$as_me:$LINENO: result: no" >&5
13184 echo "${ECHO_T}no" >&6
13185 fi
13186
13187   test -n "$ac_ct_CXX" && break
13188 done
13189 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13190
13191   CXX=$ac_ct_CXX
13192 fi
13193
13194
13195 # Provide some information about the compiler.
13196 echo "$as_me:$LINENO:" \
13197      "checking for C++ compiler version" >&5
13198 ac_compiler=`set X $ac_compile; echo $2`
13199 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13200   (eval $ac_compiler --version </dev/null >&5) 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }
13204 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13205   (eval $ac_compiler -v </dev/null >&5) 2>&5
13206   ac_status=$?
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); }
13209 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13210   (eval $ac_compiler -V </dev/null >&5) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }
13214
13215 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13218   echo $ECHO_N "(cached) $ECHO_C" >&6
13219 else
13220   cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226
13227 int
13228 main ()
13229 {
13230 #ifndef __GNUC__
13231        choke me
13232 #endif
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13240   (eval $ac_compile) 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_cxx_werror_flag"
13248                          || test ! -s conftest.err'
13249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250   (eval $ac_try) 2>&5
13251   ac_status=$?
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); }; } &&
13254          { ac_try='test -s conftest.$ac_objext'
13255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13256   (eval $ac_try) 2>&5
13257   ac_status=$?
13258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13259   (exit $ac_status); }; }; then
13260   ac_compiler_gnu=yes
13261 else
13262   echo "$as_me: failed program was:" >&5
13263 sed 's/^/| /' conftest.$ac_ext >&5
13264
13265 ac_compiler_gnu=no
13266 fi
13267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13268 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13269
13270 fi
13271 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13272 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13273 GXX=`test $ac_compiler_gnu = yes && echo yes`
13274 ac_test_CXXFLAGS=${CXXFLAGS+set}
13275 ac_save_CXXFLAGS=$CXXFLAGS
13276 CXXFLAGS="-g"
13277 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13278 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13279 if test "${ac_cv_prog_cxx_g+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288
13289 int
13290 main ()
13291 {
13292
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299   (eval $ac_compile) 2>conftest.er1
13300   ac_status=$?
13301   grep -v '^ *+' conftest.er1 >conftest.err
13302   rm -f conftest.er1
13303   cat conftest.err >&5
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); } &&
13306          { ac_try='test -z "$ac_cxx_werror_flag"
13307                          || test ! -s conftest.err'
13308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309   (eval $ac_try) 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315   (eval $ac_try) 2>&5
13316   ac_status=$?
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); }; }; then
13319   ac_cv_prog_cxx_g=yes
13320 else
13321   echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_cv_prog_cxx_g=no
13325 fi
13326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13327 fi
13328 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13329 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13330 if test "$ac_test_CXXFLAGS" = set; then
13331   CXXFLAGS=$ac_save_CXXFLAGS
13332 elif test $ac_cv_prog_cxx_g = yes; then
13333   if test "$GXX" = yes; then
13334     CXXFLAGS="-g -O2"
13335   else
13336     CXXFLAGS="-g"
13337   fi
13338 else
13339   if test "$GXX" = yes; then
13340     CXXFLAGS="-O2"
13341   else
13342     CXXFLAGS=
13343   fi
13344 fi
13345 for ac_declaration in \
13346    '' \
13347    'extern "C" void std::exit (int) throw (); using std::exit;' \
13348    'extern "C" void std::exit (int); using std::exit;' \
13349    'extern "C" void exit (int) throw ();' \
13350    'extern "C" void exit (int);' \
13351    'void exit (int);'
13352 do
13353   cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 $ac_declaration
13360 #include <stdlib.h>
13361 int
13362 main ()
13363 {
13364 exit (42);
13365   ;
13366   return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371   (eval $ac_compile) 2>conftest.er1
13372   ac_status=$?
13373   grep -v '^ *+' conftest.er1 >conftest.err
13374   rm -f conftest.er1
13375   cat conftest.err >&5
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); } &&
13378          { ac_try='test -z "$ac_cxx_werror_flag"
13379                          || test ! -s conftest.err'
13380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381   (eval $ac_try) 2>&5
13382   ac_status=$?
13383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384   (exit $ac_status); }; } &&
13385          { ac_try='test -s conftest.$ac_objext'
13386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387   (eval $ac_try) 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; }; then
13391   :
13392 else
13393   echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 continue
13397 fi
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399   cat >conftest.$ac_ext <<_ACEOF
13400 /* confdefs.h.  */
13401 _ACEOF
13402 cat confdefs.h >>conftest.$ac_ext
13403 cat >>conftest.$ac_ext <<_ACEOF
13404 /* end confdefs.h.  */
13405 $ac_declaration
13406 int
13407 main ()
13408 {
13409 exit (42);
13410   ;
13411   return 0;
13412 }
13413 _ACEOF
13414 rm -f conftest.$ac_objext
13415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13416   (eval $ac_compile) 2>conftest.er1
13417   ac_status=$?
13418   grep -v '^ *+' conftest.er1 >conftest.err
13419   rm -f conftest.er1
13420   cat conftest.err >&5
13421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422   (exit $ac_status); } &&
13423          { ac_try='test -z "$ac_cxx_werror_flag"
13424                          || test ! -s conftest.err'
13425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13426   (eval $ac_try) 2>&5
13427   ac_status=$?
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); }; } &&
13430          { ac_try='test -s conftest.$ac_objext'
13431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432   (eval $ac_try) 2>&5
13433   ac_status=$?
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); }; }; then
13436   break
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441 fi
13442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13443 done
13444 rm -f conftest*
13445 if test -n "$ac_declaration"; then
13446   echo '#ifdef __cplusplus' >>confdefs.h
13447   echo $ac_declaration      >>confdefs.h
13448   echo '#endif'             >>confdefs.h
13449 fi
13450
13451 ac_ext=c
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13456
13457 depcc="$CXX"  am_compiler_list=
13458
13459 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13460 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13461 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13465   # We make a subdir and do the tests there.  Otherwise we can end up
13466   # making bogus files that we don't know about and never remove.  For
13467   # instance it was reported that on HP-UX the gcc test will end up
13468   # making a dummy file named `D' -- because `-MD' means `put the output
13469   # in D'.
13470   mkdir conftest.dir
13471   # Copy depcomp to subdir because otherwise we won't find it if we're
13472   # using a relative directory.
13473   cp "$am_depcomp" conftest.dir
13474   cd conftest.dir
13475   # We will build objects and dependencies in a subdirectory because
13476   # it helps to detect inapplicable dependency modes.  For instance
13477   # both Tru64's cc and ICC support -MD to output dependencies as a
13478   # side effect of compilation, but ICC will put the dependencies in
13479   # the current directory while Tru64 will put them in the object
13480   # directory.
13481   mkdir sub
13482
13483   am_cv_CXX_dependencies_compiler_type=none
13484   if test "$am_compiler_list" = ""; then
13485      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13486   fi
13487   for depmode in $am_compiler_list; do
13488     # Setup a source with many dependencies, because some compilers
13489     # like to wrap large dependency lists on column 80 (with \), and
13490     # we should not choose a depcomp mode which is confused by this.
13491     #
13492     # We need to recreate these files for each test, as the compiler may
13493     # overwrite some of them when testing with obscure command lines.
13494     # This happens at least with the AIX C compiler.
13495     : > sub/conftest.c
13496     for i in 1 2 3 4 5 6; do
13497       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13498       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13499       # Solaris 8's {/usr,}/bin/sh.
13500       touch sub/conftst$i.h
13501     done
13502     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13503
13504     case $depmode in
13505     nosideeffect)
13506       # after this tag, mechanisms are not by side-effect, so they'll
13507       # only be used when explicitly requested
13508       if test "x$enable_dependency_tracking" = xyes; then
13509         continue
13510       else
13511         break
13512       fi
13513       ;;
13514     none) break ;;
13515     esac
13516     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13517     # mode.  It turns out that the SunPro C++ compiler does not properly
13518     # handle `-M -o', and we need to detect this.
13519     if depmode=$depmode \
13520        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13521        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13522        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13523          >/dev/null 2>conftest.err &&
13524        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13525        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13526        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13527       # icc doesn't choke on unknown options, it will just issue warnings
13528       # or remarks (even with -Werror).  So we grep stderr for any message
13529       # that says an option was ignored or not supported.
13530       # When given -MP, icc 7.0 and 7.1 complain thusly:
13531       #   icc: Command line warning: ignoring option '-M'; no argument required
13532       # The diagnosis changed in icc 8.0:
13533       #   icc: Command line remark: option '-MP' not supported
13534       if (grep 'ignoring option' conftest.err ||
13535           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13536         am_cv_CXX_dependencies_compiler_type=$depmode
13537         break
13538       fi
13539     fi
13540   done
13541
13542   cd ..
13543   rm -rf conftest.dir
13544 else
13545   am_cv_CXX_dependencies_compiler_type=none
13546 fi
13547
13548 fi
13549 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13550 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13551 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13552
13553
13554
13555 if
13556   test "x$enable_dependency_tracking" != xno \
13557   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13558   am__fastdepCXX_TRUE=
13559   am__fastdepCXX_FALSE='#'
13560 else
13561   am__fastdepCXX_TRUE='#'
13562   am__fastdepCXX_FALSE=
13563 fi
13564
13565
13566
13567 ac_ext=cc
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13572 if test -n "$ac_tool_prefix"; then
13573   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13574   do
13575     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13576 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13577 echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13579 if test "${ac_cv_prog_CXX+set}" = set; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   if test -n "$CXX"; then
13583   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13584 else
13585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13586 for as_dir in $PATH
13587 do
13588   IFS=$as_save_IFS
13589   test -z "$as_dir" && as_dir=.
13590   for ac_exec_ext in '' $ac_executable_extensions; do
13591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13592     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13594     break 2
13595   fi
13596 done
13597 done
13598
13599 fi
13600 fi
13601 CXX=$ac_cv_prog_CXX
13602 if test -n "$CXX"; then
13603   echo "$as_me:$LINENO: result: $CXX" >&5
13604 echo "${ECHO_T}$CXX" >&6
13605 else
13606   echo "$as_me:$LINENO: result: no" >&5
13607 echo "${ECHO_T}no" >&6
13608 fi
13609
13610     test -n "$CXX" && break
13611   done
13612 fi
13613 if test -z "$CXX"; then
13614   ac_ct_CXX=$CXX
13615   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13616 do
13617   # Extract the first word of "$ac_prog", so it can be a program name with args.
13618 set dummy $ac_prog; ac_word=$2
13619 echo "$as_me:$LINENO: checking for $ac_word" >&5
13620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13621 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13622   echo $ECHO_N "(cached) $ECHO_C" >&6
13623 else
13624   if test -n "$ac_ct_CXX"; then
13625   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13626 else
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13629 do
13630   IFS=$as_save_IFS
13631   test -z "$as_dir" && as_dir=.
13632   for ac_exec_ext in '' $ac_executable_extensions; do
13633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634     ac_cv_prog_ac_ct_CXX="$ac_prog"
13635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13636     break 2
13637   fi
13638 done
13639 done
13640
13641 fi
13642 fi
13643 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13644 if test -n "$ac_ct_CXX"; then
13645   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13646 echo "${ECHO_T}$ac_ct_CXX" >&6
13647 else
13648   echo "$as_me:$LINENO: result: no" >&5
13649 echo "${ECHO_T}no" >&6
13650 fi
13651
13652   test -n "$ac_ct_CXX" && break
13653 done
13654 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13655
13656   CXX=$ac_ct_CXX
13657 fi
13658
13659
13660 # Provide some information about the compiler.
13661 echo "$as_me:$LINENO:" \
13662      "checking for C++ compiler version" >&5
13663 ac_compiler=`set X $ac_compile; echo $2`
13664 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13665   (eval $ac_compiler --version </dev/null >&5) 2>&5
13666   ac_status=$?
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); }
13669 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13670   (eval $ac_compiler -v </dev/null >&5) 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }
13674 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13675   (eval $ac_compiler -V </dev/null >&5) 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }
13679
13680 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13681 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13682 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13683   echo $ECHO_N "(cached) $ECHO_C" >&6
13684 else
13685   cat >conftest.$ac_ext <<_ACEOF
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691
13692 int
13693 main ()
13694 {
13695 #ifndef __GNUC__
13696        choke me
13697 #endif
13698
13699   ;
13700   return 0;
13701 }
13702 _ACEOF
13703 rm -f conftest.$ac_objext
13704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13705   (eval $ac_compile) 2>conftest.er1
13706   ac_status=$?
13707   grep -v '^ *+' conftest.er1 >conftest.err
13708   rm -f conftest.er1
13709   cat conftest.err >&5
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -z "$ac_cxx_werror_flag"
13713                          || test ! -s conftest.err'
13714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715   (eval $ac_try) 2>&5
13716   ac_status=$?
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); }; } &&
13719          { ac_try='test -s conftest.$ac_objext'
13720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721   (eval $ac_try) 2>&5
13722   ac_status=$?
13723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724   (exit $ac_status); }; }; then
13725   ac_compiler_gnu=yes
13726 else
13727   echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13729
13730 ac_compiler_gnu=no
13731 fi
13732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13733 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13734
13735 fi
13736 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13737 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13738 GXX=`test $ac_compiler_gnu = yes && echo yes`
13739 ac_test_CXXFLAGS=${CXXFLAGS+set}
13740 ac_save_CXXFLAGS=$CXXFLAGS
13741 CXXFLAGS="-g"
13742 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13743 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13744 if test "${ac_cv_prog_cxx_g+set}" = set; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   cat >conftest.$ac_ext <<_ACEOF
13748 /* confdefs.h.  */
13749 _ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h.  */
13753
13754 int
13755 main ()
13756 {
13757
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764   (eval $ac_compile) 2>conftest.er1
13765   ac_status=$?
13766   grep -v '^ *+' conftest.er1 >conftest.err
13767   rm -f conftest.er1
13768   cat conftest.err >&5
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); } &&
13771          { ac_try='test -z "$ac_cxx_werror_flag"
13772                          || test ! -s conftest.err'
13773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13774   (eval $ac_try) 2>&5
13775   ac_status=$?
13776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777   (exit $ac_status); }; } &&
13778          { ac_try='test -s conftest.$ac_objext'
13779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780   (eval $ac_try) 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   ac_cv_prog_cxx_g=yes
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789 ac_cv_prog_cxx_g=no
13790 fi
13791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 fi
13793 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13794 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13795 if test "$ac_test_CXXFLAGS" = set; then
13796   CXXFLAGS=$ac_save_CXXFLAGS
13797 elif test $ac_cv_prog_cxx_g = yes; then
13798   if test "$GXX" = yes; then
13799     CXXFLAGS="-g -O2"
13800   else
13801     CXXFLAGS="-g"
13802   fi
13803 else
13804   if test "$GXX" = yes; then
13805     CXXFLAGS="-O2"
13806   else
13807     CXXFLAGS=
13808   fi
13809 fi
13810 for ac_declaration in \
13811    '' \
13812    'extern "C" void std::exit (int) throw (); using std::exit;' \
13813    'extern "C" void std::exit (int); using std::exit;' \
13814    'extern "C" void exit (int) throw ();' \
13815    'extern "C" void exit (int);' \
13816    'void exit (int);'
13817 do
13818   cat >conftest.$ac_ext <<_ACEOF
13819 /* confdefs.h.  */
13820 _ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h.  */
13824 $ac_declaration
13825 #include <stdlib.h>
13826 int
13827 main ()
13828 {
13829 exit (42);
13830   ;
13831   return 0;
13832 }
13833 _ACEOF
13834 rm -f conftest.$ac_objext
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836   (eval $ac_compile) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } &&
13843          { ac_try='test -z "$ac_cxx_werror_flag"
13844                          || test ! -s conftest.err'
13845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13846   (eval $ac_try) 2>&5
13847   ac_status=$?
13848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849   (exit $ac_status); }; } &&
13850          { ac_try='test -s conftest.$ac_objext'
13851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13852   (eval $ac_try) 2>&5
13853   ac_status=$?
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); }; }; then
13856   :
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 continue
13862 fi
13863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13864   cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_declaration
13871 int
13872 main ()
13873 {
13874 exit (42);
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881   (eval $ac_compile) 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_cxx_werror_flag"
13889                          || test ! -s conftest.err'
13890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891   (eval $ac_try) 2>&5
13892   ac_status=$?
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); }; } &&
13895          { ac_try='test -s conftest.$ac_objext'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   break
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906 fi
13907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908 done
13909 rm -f conftest*
13910 if test -n "$ac_declaration"; then
13911   echo '#ifdef __cplusplus' >>confdefs.h
13912   echo $ac_declaration      >>confdefs.h
13913   echo '#endif'             >>confdefs.h
13914 fi
13915
13916 ac_ext=c
13917 ac_cpp='$CPP $CPPFLAGS'
13918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13921
13922 depcc="$CXX"  am_compiler_list=
13923
13924 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13925 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13926 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13927   echo $ECHO_N "(cached) $ECHO_C" >&6
13928 else
13929   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13930   # We make a subdir and do the tests there.  Otherwise we can end up
13931   # making bogus files that we don't know about and never remove.  For
13932   # instance it was reported that on HP-UX the gcc test will end up
13933   # making a dummy file named `D' -- because `-MD' means `put the output
13934   # in D'.
13935   mkdir conftest.dir
13936   # Copy depcomp to subdir because otherwise we won't find it if we're
13937   # using a relative directory.
13938   cp "$am_depcomp" conftest.dir
13939   cd conftest.dir
13940   # We will build objects and dependencies in a subdirectory because
13941   # it helps to detect inapplicable dependency modes.  For instance
13942   # both Tru64's cc and ICC support -MD to output dependencies as a
13943   # side effect of compilation, but ICC will put the dependencies in
13944   # the current directory while Tru64 will put them in the object
13945   # directory.
13946   mkdir sub
13947
13948   am_cv_CXX_dependencies_compiler_type=none
13949   if test "$am_compiler_list" = ""; then
13950      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13951   fi
13952   for depmode in $am_compiler_list; do
13953     # Setup a source with many dependencies, because some compilers
13954     # like to wrap large dependency lists on column 80 (with \), and
13955     # we should not choose a depcomp mode which is confused by this.
13956     #
13957     # We need to recreate these files for each test, as the compiler may
13958     # overwrite some of them when testing with obscure command lines.
13959     # This happens at least with the AIX C compiler.
13960     : > sub/conftest.c
13961     for i in 1 2 3 4 5 6; do
13962       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13963       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13964       # Solaris 8's {/usr,}/bin/sh.
13965       touch sub/conftst$i.h
13966     done
13967     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13968
13969     case $depmode in
13970     nosideeffect)
13971       # after this tag, mechanisms are not by side-effect, so they'll
13972       # only be used when explicitly requested
13973       if test "x$enable_dependency_tracking" = xyes; then
13974         continue
13975       else
13976         break
13977       fi
13978       ;;
13979     none) break ;;
13980     esac
13981     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13982     # mode.  It turns out that the SunPro C++ compiler does not properly
13983     # handle `-M -o', and we need to detect this.
13984     if depmode=$depmode \
13985        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13986        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13987        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13988          >/dev/null 2>conftest.err &&
13989        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13990        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13991        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13992       # icc doesn't choke on unknown options, it will just issue warnings
13993       # or remarks (even with -Werror).  So we grep stderr for any message
13994       # that says an option was ignored or not supported.
13995       # When given -MP, icc 7.0 and 7.1 complain thusly:
13996       #   icc: Command line warning: ignoring option '-M'; no argument required
13997       # The diagnosis changed in icc 8.0:
13998       #   icc: Command line remark: option '-MP' not supported
13999       if (grep 'ignoring option' conftest.err ||
14000           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14001         am_cv_CXX_dependencies_compiler_type=$depmode
14002         break
14003       fi
14004     fi
14005   done
14006
14007   cd ..
14008   rm -rf conftest.dir
14009 else
14010   am_cv_CXX_dependencies_compiler_type=none
14011 fi
14012
14013 fi
14014 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
14015 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
14016 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14017
14018
14019
14020 if
14021   test "x$enable_dependency_tracking" != xno \
14022   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14023   am__fastdepCXX_TRUE=
14024   am__fastdepCXX_FALSE='#'
14025 else
14026   am__fastdepCXX_TRUE='#'
14027   am__fastdepCXX_FALSE=
14028 fi
14029
14030
14031 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14032     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14033     (test "X$CXX" != "Xg++"))) ; then
14034   ac_ext=cc
14035 ac_cpp='$CXXCPP $CPPFLAGS'
14036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14039 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14040 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
14041 if test -z "$CXXCPP"; then
14042   if test "${ac_cv_prog_CXXCPP+set}" = set; then
14043   echo $ECHO_N "(cached) $ECHO_C" >&6
14044 else
14045       # Double quotes because CXXCPP needs to be expanded
14046     for CXXCPP in "$CXX -E" "/lib/cpp"
14047     do
14048       ac_preproc_ok=false
14049 for ac_cxx_preproc_warn_flag in '' yes
14050 do
14051   # Use a header file that comes with gcc, so configuring glibc
14052   # with a fresh cross-compiler works.
14053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14054   # <limits.h> exists even on freestanding compilers.
14055   # On the NeXT, cc -E runs the code through the compiler's parser,
14056   # not just through cpp. "Syntax error" is here to catch this case.
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #ifdef __STDC__
14064 # include <limits.h>
14065 #else
14066 # include <assert.h>
14067 #endif
14068                      Syntax error
14069 _ACEOF
14070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14072   ac_status=$?
14073   grep -v '^ *+' conftest.er1 >conftest.err
14074   rm -f conftest.er1
14075   cat conftest.err >&5
14076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077   (exit $ac_status); } >/dev/null; then
14078   if test -s conftest.err; then
14079     ac_cpp_err=$ac_cxx_preproc_warn_flag
14080     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14081   else
14082     ac_cpp_err=
14083   fi
14084 else
14085   ac_cpp_err=yes
14086 fi
14087 if test -z "$ac_cpp_err"; then
14088   :
14089 else
14090   echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14092
14093   # Broken: fails on valid input.
14094 continue
14095 fi
14096 rm -f conftest.err conftest.$ac_ext
14097
14098   # OK, works on sane cases.  Now check whether non-existent headers
14099   # can be detected and how.
14100   cat >conftest.$ac_ext <<_ACEOF
14101 /* confdefs.h.  */
14102 _ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h.  */
14106 #include <ac_nonexistent.h>
14107 _ACEOF
14108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14109   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14110   ac_status=$?
14111   grep -v '^ *+' conftest.er1 >conftest.err
14112   rm -f conftest.er1
14113   cat conftest.err >&5
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } >/dev/null; then
14116   if test -s conftest.err; then
14117     ac_cpp_err=$ac_cxx_preproc_warn_flag
14118     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14119   else
14120     ac_cpp_err=
14121   fi
14122 else
14123   ac_cpp_err=yes
14124 fi
14125 if test -z "$ac_cpp_err"; then
14126   # Broken: success on invalid input.
14127 continue
14128 else
14129   echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14131
14132   # Passes both tests.
14133 ac_preproc_ok=:
14134 break
14135 fi
14136 rm -f conftest.err conftest.$ac_ext
14137
14138 done
14139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14140 rm -f conftest.err conftest.$ac_ext
14141 if $ac_preproc_ok; then
14142   break
14143 fi
14144
14145     done
14146     ac_cv_prog_CXXCPP=$CXXCPP
14147
14148 fi
14149   CXXCPP=$ac_cv_prog_CXXCPP
14150 else
14151   ac_cv_prog_CXXCPP=$CXXCPP
14152 fi
14153 echo "$as_me:$LINENO: result: $CXXCPP" >&5
14154 echo "${ECHO_T}$CXXCPP" >&6
14155 ac_preproc_ok=false
14156 for ac_cxx_preproc_warn_flag in '' yes
14157 do
14158   # Use a header file that comes with gcc, so configuring glibc
14159   # with a fresh cross-compiler works.
14160   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14161   # <limits.h> exists even on freestanding compilers.
14162   # On the NeXT, cc -E runs the code through the compiler's parser,
14163   # not just through cpp. "Syntax error" is here to catch this case.
14164   cat >conftest.$ac_ext <<_ACEOF
14165 /* confdefs.h.  */
14166 _ACEOF
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h.  */
14170 #ifdef __STDC__
14171 # include <limits.h>
14172 #else
14173 # include <assert.h>
14174 #endif
14175                      Syntax error
14176 _ACEOF
14177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } >/dev/null; then
14185   if test -s conftest.err; then
14186     ac_cpp_err=$ac_cxx_preproc_warn_flag
14187     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14188   else
14189     ac_cpp_err=
14190   fi
14191 else
14192   ac_cpp_err=yes
14193 fi
14194 if test -z "$ac_cpp_err"; then
14195   :
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200   # Broken: fails on valid input.
14201 continue
14202 fi
14203 rm -f conftest.err conftest.$ac_ext
14204
14205   # OK, works on sane cases.  Now check whether non-existent headers
14206   # can be detected and how.
14207   cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h.  */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h.  */
14213 #include <ac_nonexistent.h>
14214 _ACEOF
14215 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14216   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14217   ac_status=$?
14218   grep -v '^ *+' conftest.er1 >conftest.err
14219   rm -f conftest.er1
14220   cat conftest.err >&5
14221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222   (exit $ac_status); } >/dev/null; then
14223   if test -s conftest.err; then
14224     ac_cpp_err=$ac_cxx_preproc_warn_flag
14225     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14226   else
14227     ac_cpp_err=
14228   fi
14229 else
14230   ac_cpp_err=yes
14231 fi
14232 if test -z "$ac_cpp_err"; then
14233   # Broken: success on invalid input.
14234 continue
14235 else
14236   echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239   # Passes both tests.
14240 ac_preproc_ok=:
14241 break
14242 fi
14243 rm -f conftest.err conftest.$ac_ext
14244
14245 done
14246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14247 rm -f conftest.err conftest.$ac_ext
14248 if $ac_preproc_ok; then
14249   :
14250 else
14251   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14252 echo "$as_me: error: in \`$ac_pwd':" >&2;}
14253 _lt_caught_CXX_error=yes; }
14254 fi
14255
14256 ac_ext=c
14257 ac_cpp='$CPP $CPPFLAGS'
14258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14261
14262 else
14263   _lt_caught_CXX_error=yes
14264 fi
14265
14266
14267
14268
14269 ac_ext=cc
14270 ac_cpp='$CXXCPP $CPPFLAGS'
14271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14274
14275 archive_cmds_need_lc_CXX=no
14276 allow_undefined_flag_CXX=
14277 always_export_symbols_CXX=no
14278 archive_expsym_cmds_CXX=
14279 compiler_needs_object_CXX=no
14280 export_dynamic_flag_spec_CXX=
14281 hardcode_direct_CXX=no
14282 hardcode_direct_absolute_CXX=no
14283 hardcode_libdir_flag_spec_CXX=
14284 hardcode_libdir_flag_spec_ld_CXX=
14285 hardcode_libdir_separator_CXX=
14286 hardcode_minus_L_CXX=no
14287 hardcode_shlibpath_var_CXX=unsupported
14288 hardcode_automatic_CXX=no
14289 inherit_rpath_CXX=no
14290 module_cmds_CXX=
14291 module_expsym_cmds_CXX=
14292 link_all_deplibs_CXX=unknown
14293 old_archive_cmds_CXX=$old_archive_cmds
14294 no_undefined_flag_CXX=
14295 whole_archive_flag_spec_CXX=
14296 enable_shared_with_static_runtimes_CXX=no
14297
14298 # Source file extension for C++ test sources.
14299 ac_ext=cpp
14300
14301 # Object file extension for compiled C++ test sources.
14302 objext=o
14303 objext_CXX=$objext
14304
14305 # No sense in running all these tests if we already determined that
14306 # the CXX compiler isn't working.  Some variables (like enable_shared)
14307 # are currently assumed to apply to all compilers on this platform,
14308 # and will be corrupted by setting them based on a non-working compiler.
14309 if test "$_lt_caught_CXX_error" != yes; then
14310   # Code to be used in simple compile tests
14311   lt_simple_compile_test_code="int some_variable = 0;"
14312
14313   # Code to be used in simple link tests
14314   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14315
14316   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14317
14318
14319
14320
14321
14322
14323 # If no C compiler was specified, use CC.
14324 LTCC=${LTCC-"$CC"}
14325
14326 # If no C compiler flags were specified, use CFLAGS.
14327 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14328
14329 # Allow CC to be a program name with arguments.
14330 compiler=$CC
14331
14332
14333   # save warnings/boilerplate of simple test code
14334   ac_outfile=conftest.$ac_objext
14335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14337 _lt_compiler_boilerplate=`cat conftest.err`
14338 $RM conftest*
14339
14340   ac_outfile=conftest.$ac_objext
14341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14343 _lt_linker_boilerplate=`cat conftest.err`
14344 $RM -r conftest*
14345
14346
14347   # Allow CC to be a program name with arguments.
14348   lt_save_CC=$CC
14349   lt_save_LD=$LD
14350   lt_save_GCC=$GCC
14351   GCC=$GXX
14352   lt_save_with_gnu_ld=$with_gnu_ld
14353   lt_save_path_LD=$lt_cv_path_LD
14354   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14355     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14356   else
14357     $as_unset lt_cv_prog_gnu_ld
14358   fi
14359   if test -n "${lt_cv_path_LDCXX+set}"; then
14360     lt_cv_path_LD=$lt_cv_path_LDCXX
14361   else
14362     $as_unset lt_cv_path_LD
14363   fi
14364   test -z "${LDCXX+set}" || LD=$LDCXX
14365   CC=${CXX-"c++"}
14366   compiler=$CC
14367   compiler_CXX=$CC
14368   for cc_temp in $compiler""; do
14369   case $cc_temp in
14370     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14371     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14372     \-*) ;;
14373     *) break;;
14374   esac
14375 done
14376 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14377
14378
14379   if test -n "$compiler"; then
14380     # We don't want -fno-exception when compiling C++ code, so set the
14381     # no_builtin_flag separately
14382     if test "$GXX" = yes; then
14383       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14384     else
14385       lt_prog_compiler_no_builtin_flag_CXX=
14386     fi
14387
14388     if test "$GXX" = yes; then
14389       # Set up default GNU C++ configuration
14390
14391
14392
14393 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14394 if test "${with_gnu_ld+set}" = set; then
14395   withval="$with_gnu_ld"
14396   test "$withval" = no || with_gnu_ld=yes
14397 else
14398   with_gnu_ld=no
14399 fi;
14400 ac_prog=ld
14401 if test "$GCC" = yes; then
14402   # Check if gcc -print-prog-name=ld gives a path.
14403   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14404 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14405   case $host in
14406   *-*-mingw*)
14407     # gcc leaves a trailing carriage return which upsets mingw
14408     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14409   *)
14410     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14411   esac
14412   case $ac_prog in
14413     # Accept absolute paths.
14414     [\\/]* | ?:[\\/]*)
14415       re_direlt='/[^/][^/]*/\.\./'
14416       # Canonicalize the pathname of ld
14417       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14418       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14419         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14420       done
14421       test -z "$LD" && LD="$ac_prog"
14422       ;;
14423   "")
14424     # If it fails, then pretend we aren't using GCC.
14425     ac_prog=ld
14426     ;;
14427   *)
14428     # If it is relative, then search for the first ld in PATH.
14429     with_gnu_ld=unknown
14430     ;;
14431   esac
14432 elif test "$with_gnu_ld" = yes; then
14433   echo "$as_me:$LINENO: checking for GNU ld" >&5
14434 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14435 else
14436   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14437 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14438 fi
14439 if test "${lt_cv_path_LD+set}" = set; then
14440   echo $ECHO_N "(cached) $ECHO_C" >&6
14441 else
14442   if test -z "$LD"; then
14443   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14444   for ac_dir in $PATH; do
14445     IFS="$lt_save_ifs"
14446     test -z "$ac_dir" && ac_dir=.
14447     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14448       lt_cv_path_LD="$ac_dir/$ac_prog"
14449       # Check to see if the program is GNU ld.  I'd rather use --version,
14450       # but apparently some variants of GNU ld only accept -v.
14451       # Break only if it was the GNU/non-GNU ld that we prefer.
14452       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14453       *GNU* | *'with BFD'*)
14454         test "$with_gnu_ld" != no && break
14455         ;;
14456       *)
14457         test "$with_gnu_ld" != yes && break
14458         ;;
14459       esac
14460     fi
14461   done
14462   IFS="$lt_save_ifs"
14463 else
14464   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14465 fi
14466 fi
14467
14468 LD="$lt_cv_path_LD"
14469 if test -n "$LD"; then
14470   echo "$as_me:$LINENO: result: $LD" >&5
14471 echo "${ECHO_T}$LD" >&6
14472 else
14473   echo "$as_me:$LINENO: result: no" >&5
14474 echo "${ECHO_T}no" >&6
14475 fi
14476 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14477 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14478    { (exit 1); exit 1; }; }
14479 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14480 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14481 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14482   echo $ECHO_N "(cached) $ECHO_C" >&6
14483 else
14484   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14485 case `$LD -v 2>&1 </dev/null` in
14486 *GNU* | *'with BFD'*)
14487   lt_cv_prog_gnu_ld=yes
14488   ;;
14489 *)
14490   lt_cv_prog_gnu_ld=no
14491   ;;
14492 esac
14493 fi
14494 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14495 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14496 with_gnu_ld=$lt_cv_prog_gnu_ld
14497
14498
14499
14500
14501
14502
14503
14504       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14505       # archiving commands below assume that GNU ld is being used.
14506       if test "$with_gnu_ld" = yes; then
14507         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14508         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14509
14510         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14511         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14512
14513         # If archive_cmds runs LD, not CC, wlarc should be empty
14514         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14515         #     investigate it a little bit more. (MM)
14516         wlarc='${wl}'
14517
14518         # ancient GNU ld didn't support --whole-archive et. al.
14519         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14520           $GREP 'no-whole-archive' > /dev/null; then
14521           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14522         else
14523           whole_archive_flag_spec_CXX=
14524         fi
14525       else
14526         with_gnu_ld=no
14527         wlarc=
14528
14529         # A generic and very simple default shared library creation
14530         # command for GNU C++ for the case where it uses the native
14531         # linker, instead of GNU ld.  If possible, this setting should
14532         # overridden to take advantage of the native linker features on
14533         # the platform it is being used on.
14534         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14535       fi
14536
14537       # Commands to make compiler produce verbose output that lists
14538       # what "hidden" libraries, object files and flags are used when
14539       # linking a shared library.
14540       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14541
14542     else
14543       GXX=no
14544       with_gnu_ld=no
14545       wlarc=
14546     fi
14547
14548     # PORTME: fill in a description of your system's C++ link characteristics
14549     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14550 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14551     ld_shlibs_CXX=yes
14552     case $host_os in
14553       aix3*)
14554         # FIXME: insert proper C++ library support
14555         ld_shlibs_CXX=no
14556         ;;
14557       aix[4-9]*)
14558         if test "$host_cpu" = ia64; then
14559           # On IA64, the linker does run time linking by default, so we don't
14560           # have to do anything special.
14561           aix_use_runtimelinking=no
14562           exp_sym_flag='-Bexport'
14563           no_entry_flag=""
14564         else
14565           aix_use_runtimelinking=no
14566
14567           # Test if we are trying to use run time linking or normal
14568           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14569           # need to do runtime linking.
14570           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14571             for ld_flag in $LDFLAGS; do
14572               case $ld_flag in
14573               *-brtl*)
14574                 aix_use_runtimelinking=yes
14575                 break
14576                 ;;
14577               esac
14578             done
14579             ;;
14580           esac
14581
14582           exp_sym_flag='-bexport'
14583           no_entry_flag='-bnoentry'
14584         fi
14585
14586         # When large executables or shared objects are built, AIX ld can
14587         # have problems creating the table of contents.  If linking a library
14588         # or program results in "error TOC overflow" add -mminimal-toc to
14589         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14590         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14591
14592         archive_cmds_CXX=''
14593         hardcode_direct_CXX=yes
14594         hardcode_direct_absolute_CXX=yes
14595         hardcode_libdir_separator_CXX=':'
14596         link_all_deplibs_CXX=yes
14597         file_list_spec_CXX='${wl}-f,'
14598
14599         if test "$GXX" = yes; then
14600           case $host_os in aix4.[012]|aix4.[012].*)
14601           # We only want to do this on AIX 4.2 and lower, the check
14602           # below for broken collect2 doesn't work under 4.3+
14603           collect2name=`${CC} -print-prog-name=collect2`
14604           if test -f "$collect2name" &&
14605              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14606           then
14607             # We have reworked collect2
14608             :
14609           else
14610             # We have old collect2
14611             hardcode_direct_CXX=unsupported
14612             # It fails to find uninstalled libraries when the uninstalled
14613             # path is not listed in the libpath.  Setting hardcode_minus_L
14614             # to unsupported forces relinking
14615             hardcode_minus_L_CXX=yes
14616             hardcode_libdir_flag_spec_CXX='-L$libdir'
14617             hardcode_libdir_separator_CXX=
14618           fi
14619           esac
14620           shared_flag='-shared'
14621           if test "$aix_use_runtimelinking" = yes; then
14622             shared_flag="$shared_flag "'${wl}-G'
14623           fi
14624         else
14625           # not using gcc
14626           if test "$host_cpu" = ia64; then
14627           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14628           # chokes on -Wl,-G. The following line is correct:
14629           shared_flag='-G'
14630           else
14631             if test "$aix_use_runtimelinking" = yes; then
14632               shared_flag='${wl}-G'
14633             else
14634               shared_flag='${wl}-bM:SRE'
14635             fi
14636           fi
14637         fi
14638
14639         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14640         # It seems that -bexpall does not export symbols beginning with
14641         # underscore (_), so it is better to generate a list of symbols to
14642         # export.
14643         always_export_symbols_CXX=yes
14644         if test "$aix_use_runtimelinking" = yes; then
14645           # Warning - without using the other runtime loading flags (-brtl),
14646           # -berok will link without error, but may produce a broken library.
14647           allow_undefined_flag_CXX='-berok'
14648           # Determine the default libpath from the value encoded in an empty
14649           # executable.
14650           if test x$gcc_no_link = xyes; then
14651   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14653    { (exit 1); exit 1; }; }
14654 fi
14655 cat >conftest.$ac_ext <<_ACEOF
14656 /* confdefs.h.  */
14657 _ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h.  */
14661
14662 int
14663 main ()
14664 {
14665
14666   ;
14667   return 0;
14668 }
14669 _ACEOF
14670 rm -f conftest.$ac_objext conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672   (eval $ac_link) 2>conftest.er1
14673   ac_status=$?
14674   grep -v '^ *+' conftest.er1 >conftest.err
14675   rm -f conftest.er1
14676   cat conftest.err >&5
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } &&
14679          { ac_try='test -z "$ac_cxx_werror_flag"
14680                          || test ! -s conftest.err'
14681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14682   (eval $ac_try) 2>&5
14683   ac_status=$?
14684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685   (exit $ac_status); }; } &&
14686          { ac_try='test -s conftest$ac_exeext'
14687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688   (eval $ac_try) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); }; }; then
14692
14693 lt_aix_libpath_sed='
14694     /Import File Strings/,/^$/ {
14695         /^0/ {
14696             s/^0  *\(.*\)$/\1/
14697             p
14698         }
14699     }'
14700 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14701 # Check for a 64-bit object if we didn't find anything.
14702 if test -z "$aix_libpath"; then
14703   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14704 fi
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 fi
14710 rm -f conftest.err conftest.$ac_objext \
14711       conftest$ac_exeext conftest.$ac_ext
14712 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14713
14714           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14715
14716           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14717         else
14718           if test "$host_cpu" = ia64; then
14719             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14720             allow_undefined_flag_CXX="-z nodefs"
14721             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14722           else
14723             # Determine the default libpath from the value encoded in an
14724             # empty executable.
14725             if test x$gcc_no_link = xyes; then
14726   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14727 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14728    { (exit 1); exit 1; }; }
14729 fi
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736
14737 int
14738 main ()
14739 {
14740
14741   ;
14742   return 0;
14743 }
14744 _ACEOF
14745 rm -f conftest.$ac_objext conftest$ac_exeext
14746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14747   (eval $ac_link) 2>conftest.er1
14748   ac_status=$?
14749   grep -v '^ *+' conftest.er1 >conftest.err
14750   rm -f conftest.er1
14751   cat conftest.err >&5
14752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753   (exit $ac_status); } &&
14754          { ac_try='test -z "$ac_cxx_werror_flag"
14755                          || test ! -s conftest.err'
14756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757   (eval $ac_try) 2>&5
14758   ac_status=$?
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); }; } &&
14761          { ac_try='test -s conftest$ac_exeext'
14762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; }; then
14767
14768 lt_aix_libpath_sed='
14769     /Import File Strings/,/^$/ {
14770         /^0/ {
14771             s/^0  *\(.*\)$/\1/
14772             p
14773         }
14774     }'
14775 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14776 # Check for a 64-bit object if we didn't find anything.
14777 if test -z "$aix_libpath"; then
14778   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14779 fi
14780 else
14781   echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 fi
14785 rm -f conftest.err conftest.$ac_objext \
14786       conftest$ac_exeext conftest.$ac_ext
14787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14788
14789             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14790             # Warning - without using the other run time loading flags,
14791             # -berok will link without error, but may produce a broken library.
14792             no_undefined_flag_CXX=' ${wl}-bernotok'
14793             allow_undefined_flag_CXX=' ${wl}-berok'
14794             # Exported symbols can be pulled into shared objects from archives
14795             whole_archive_flag_spec_CXX='$convenience'
14796             archive_cmds_need_lc_CXX=yes
14797             # This is similar to how AIX traditionally builds its shared
14798             # libraries.
14799             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14800           fi
14801         fi
14802         ;;
14803
14804       beos*)
14805         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14806           allow_undefined_flag_CXX=unsupported
14807           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14808           # support --undefined.  This deserves some investigation.  FIXME
14809           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14810         else
14811           ld_shlibs_CXX=no
14812         fi
14813         ;;
14814
14815       chorus*)
14816         case $cc_basename in
14817           *)
14818           # FIXME: insert proper C++ library support
14819           ld_shlibs_CXX=no
14820           ;;
14821         esac
14822         ;;
14823
14824       cygwin* | mingw* | pw32* | cegcc*)
14825         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14826         # as there is no search path for DLLs.
14827         hardcode_libdir_flag_spec_CXX='-L$libdir'
14828         allow_undefined_flag_CXX=unsupported
14829         always_export_symbols_CXX=no
14830         enable_shared_with_static_runtimes_CXX=yes
14831
14832         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14833           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14834           # If the export-symbols file already is a .def file (1st line
14835           # is EXPORTS), use it as is; otherwise, prepend...
14836           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14837             cp $export_symbols $output_objdir/$soname.def;
14838           else
14839             echo EXPORTS > $output_objdir/$soname.def;
14840             cat $export_symbols >> $output_objdir/$soname.def;
14841           fi~
14842           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14843         else
14844           ld_shlibs_CXX=no
14845         fi
14846         ;;
14847       darwin* | rhapsody*)
14848
14849
14850   archive_cmds_need_lc_CXX=no
14851   hardcode_direct_CXX=no
14852   hardcode_automatic_CXX=yes
14853   hardcode_shlibpath_var_CXX=unsupported
14854   whole_archive_flag_spec_CXX=''
14855   link_all_deplibs_CXX=yes
14856   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14857   case $cc_basename in
14858      ifort*) _lt_dar_can_shared=yes ;;
14859      *) _lt_dar_can_shared=$GCC ;;
14860   esac
14861   if test "$_lt_dar_can_shared" = "yes"; then
14862     output_verbose_link_cmd=echo
14863     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14864     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14865     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14866     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14867        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14868       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14869       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14870     fi
14871
14872   else
14873   ld_shlibs_CXX=no
14874   fi
14875
14876         ;;
14877
14878       dgux*)
14879         case $cc_basename in
14880           ec++*)
14881             # FIXME: insert proper C++ library support
14882             ld_shlibs_CXX=no
14883             ;;
14884           ghcx*)
14885             # Green Hills C++ Compiler
14886             # FIXME: insert proper C++ library support
14887             ld_shlibs_CXX=no
14888             ;;
14889           *)
14890             # FIXME: insert proper C++ library support
14891             ld_shlibs_CXX=no
14892             ;;
14893         esac
14894         ;;
14895
14896       freebsd[12]*)
14897         # C++ shared libraries reported to be fairly broken before
14898         # switch to ELF
14899         ld_shlibs_CXX=no
14900         ;;
14901
14902       freebsd-elf*)
14903         archive_cmds_need_lc_CXX=no
14904         ;;
14905
14906       freebsd* | dragonfly*)
14907         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14908         # conventions
14909         ld_shlibs_CXX=yes
14910         ;;
14911
14912       gnu*)
14913         ;;
14914
14915       hpux9*)
14916         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14917         hardcode_libdir_separator_CXX=:
14918         export_dynamic_flag_spec_CXX='${wl}-E'
14919         hardcode_direct_CXX=yes
14920         hardcode_minus_L_CXX=yes # Not in the search PATH,
14921                                              # but as the default
14922                                              # location of the library.
14923
14924         case $cc_basename in
14925           CC*)
14926             # FIXME: insert proper C++ library support
14927             ld_shlibs_CXX=no
14928             ;;
14929           aCC*)
14930             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14931             # Commands to make compiler produce verbose output that lists
14932             # what "hidden" libraries, object files and flags are used when
14933             # linking a shared library.
14934             #
14935             # There doesn't appear to be a way to prevent this compiler from
14936             # explicitly linking system object files so we need to strip them
14937             # from the output so that they don't get included in the library
14938             # dependencies.
14939             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14940             ;;
14941           *)
14942             if test "$GXX" = yes; then
14943               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14944             else
14945               # FIXME: insert proper C++ library support
14946               ld_shlibs_CXX=no
14947             fi
14948             ;;
14949         esac
14950         ;;
14951
14952       hpux10*|hpux11*)
14953         if test $with_gnu_ld = no; then
14954           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14955           hardcode_libdir_separator_CXX=:
14956
14957           case $host_cpu in
14958             hppa*64*|ia64*)
14959               ;;
14960             *)
14961               export_dynamic_flag_spec_CXX='${wl}-E'
14962               ;;
14963           esac
14964         fi
14965         case $host_cpu in
14966           hppa*64*|ia64*)
14967             hardcode_direct_CXX=no
14968             hardcode_shlibpath_var_CXX=no
14969             ;;
14970           *)
14971             hardcode_direct_CXX=yes
14972             hardcode_direct_absolute_CXX=yes
14973             hardcode_minus_L_CXX=yes # Not in the search PATH,
14974                                                  # but as the default
14975                                                  # location of the library.
14976             ;;
14977         esac
14978
14979         case $cc_basename in
14980           CC*)
14981             # FIXME: insert proper C++ library support
14982             ld_shlibs_CXX=no
14983             ;;
14984           aCC*)
14985             case $host_cpu in
14986               hppa*64*)
14987                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14988                 ;;
14989               ia64*)
14990                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14991                 ;;
14992               *)
14993                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14994                 ;;
14995             esac
14996             # Commands to make compiler produce verbose output that lists
14997             # what "hidden" libraries, object files and flags are used when
14998             # linking a shared library.
14999             #
15000             # There doesn't appear to be a way to prevent this compiler from
15001             # explicitly linking system object files so we need to strip them
15002             # from the output so that they don't get included in the library
15003             # dependencies.
15004             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15005             ;;
15006           *)
15007             if test "$GXX" = yes; then
15008               if test $with_gnu_ld = no; then
15009                 case $host_cpu in
15010                   hppa*64*)
15011                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15012                     ;;
15013                   ia64*)
15014                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15015                     ;;
15016                   *)
15017                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15018                     ;;
15019                 esac
15020               fi
15021             else
15022               # FIXME: insert proper C++ library support
15023               ld_shlibs_CXX=no
15024             fi
15025             ;;
15026         esac
15027         ;;
15028
15029       interix[3-9]*)
15030         hardcode_direct_CXX=no
15031         hardcode_shlibpath_var_CXX=no
15032         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15033         export_dynamic_flag_spec_CXX='${wl}-E'
15034         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15035         # Instead, shared libraries are loaded at an image base (0x10000000 by
15036         # default) and relocated if they conflict, which is a slow very memory
15037         # consuming and fragmenting process.  To avoid this, we pick a random,
15038         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15039         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15040         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15041         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15042         ;;
15043       irix5* | irix6*)
15044         case $cc_basename in
15045           CC*)
15046             # SGI C++
15047             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15048
15049             # Archives containing C++ object files must be created using
15050             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
15051             # necessary to make sure instantiated templates are included
15052             # in the archive.
15053             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15054             ;;
15055           *)
15056             if test "$GXX" = yes; then
15057               if test "$with_gnu_ld" = no; then
15058                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15059               else
15060                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15061               fi
15062             fi
15063             link_all_deplibs_CXX=yes
15064             ;;
15065         esac
15066         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15067         hardcode_libdir_separator_CXX=:
15068         inherit_rpath_CXX=yes
15069         ;;
15070
15071       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15072         case $cc_basename in
15073           KCC*)
15074             # Kuck and Associates, Inc. (KAI) C++ Compiler
15075
15076             # KCC will only create a shared library if the output file
15077             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15078             # to its proper name (with version) after linking.
15079             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15080             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15081             # Commands to make compiler produce verbose output that lists
15082             # what "hidden" libraries, object files and flags are used when
15083             # linking a shared library.
15084             #
15085             # There doesn't appear to be a way to prevent this compiler from
15086             # explicitly linking system object files so we need to strip them
15087             # from the output so that they don't get included in the library
15088             # dependencies.
15089             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15090
15091             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15092             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15093
15094             # Archives containing C++ object files must be created using
15095             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15096             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15097             ;;
15098           icpc* | ecpc* )
15099             # Intel C++
15100             with_gnu_ld=yes
15101             # version 8.0 and above of icpc choke on multiply defined symbols
15102             # if we add $predep_objects and $postdep_objects, however 7.1 and
15103             # earlier do not add the objects themselves.
15104             case `$CC -V 2>&1` in
15105               *"Version 7."*)
15106                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15107                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15108                 ;;
15109               *)  # Version 8.0 or newer
15110                 tmp_idyn=
15111                 case $host_cpu in
15112                   ia64*) tmp_idyn=' -i_dynamic';;
15113                 esac
15114                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15116                 ;;
15117             esac
15118             archive_cmds_need_lc_CXX=no
15119             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15120             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15121             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15122             ;;
15123           pgCC* | pgcpp*)
15124             # Portland Group C++ compiler
15125             case `$CC -V` in
15126             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15127               prelink_cmds_CXX='tpldir=Template.dir~
15128                 rm -rf $tpldir~
15129                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15130                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15131               old_archive_cmds_CXX='tpldir=Template.dir~
15132                 rm -rf $tpldir~
15133                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15134                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15135                 $RANLIB $oldlib'
15136               archive_cmds_CXX='tpldir=Template.dir~
15137                 rm -rf $tpldir~
15138                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15139                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15140               archive_expsym_cmds_CXX='tpldir=Template.dir~
15141                 rm -rf $tpldir~
15142                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15143                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15144               ;;
15145             *) # Version 6 will use weak symbols
15146               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15147               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15148               ;;
15149             esac
15150
15151             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15152             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15153             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15154             ;;
15155           cxx*)
15156             # Compaq C++
15157             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15158             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15159
15160             runpath_var=LD_RUN_PATH
15161             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15162             hardcode_libdir_separator_CXX=:
15163
15164             # Commands to make compiler produce verbose output that lists
15165             # what "hidden" libraries, object files and flags are used when
15166             # linking a shared library.
15167             #
15168             # There doesn't appear to be a way to prevent this compiler from
15169             # explicitly linking system object files so we need to strip them
15170             # from the output so that they don't get included in the library
15171             # dependencies.
15172             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15173             ;;
15174           xl*)
15175             # IBM XL 8.0 on PPC, with GNU ld
15176             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15177             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15178             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15179             if test "x$supports_anon_versioning" = xyes; then
15180               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15181                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15182                 echo "local: *; };" >> $output_objdir/$libname.ver~
15183                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15184             fi
15185             ;;
15186           *)
15187             case `$CC -V 2>&1 | sed 5q` in
15188             *Sun\ C*)
15189               # Sun C++ 5.9
15190               no_undefined_flag_CXX=' -zdefs'
15191               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15192               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15193               hardcode_libdir_flag_spec_CXX='-R$libdir'
15194               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15195               compiler_needs_object_CXX=yes
15196
15197               # Not sure whether something based on
15198               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15199               # would be better.
15200               output_verbose_link_cmd='echo'
15201
15202               # Archives containing C++ object files must be created using
15203               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15204               # necessary to make sure instantiated templates are included
15205               # in the archive.
15206               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15207               ;;
15208             esac
15209             ;;
15210         esac
15211         ;;
15212
15213       lynxos*)
15214         # FIXME: insert proper C++ library support
15215         ld_shlibs_CXX=no
15216         ;;
15217
15218       m88k*)
15219         # FIXME: insert proper C++ library support
15220         ld_shlibs_CXX=no
15221         ;;
15222
15223       mvs*)
15224         case $cc_basename in
15225           cxx*)
15226             # FIXME: insert proper C++ library support
15227             ld_shlibs_CXX=no
15228             ;;
15229           *)
15230             # FIXME: insert proper C++ library support
15231             ld_shlibs_CXX=no
15232             ;;
15233         esac
15234         ;;
15235
15236       netbsd*)
15237         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15238           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15239           wlarc=
15240           hardcode_libdir_flag_spec_CXX='-R$libdir'
15241           hardcode_direct_CXX=yes
15242           hardcode_shlibpath_var_CXX=no
15243         fi
15244         # Workaround some broken pre-1.5 toolchains
15245         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15246         ;;
15247
15248       *nto* | *qnx*)
15249         ld_shlibs_CXX=yes
15250         ;;
15251
15252       openbsd2*)
15253         # C++ shared libraries are fairly broken
15254         ld_shlibs_CXX=no
15255         ;;
15256
15257       openbsd*)
15258         if test -f /usr/libexec/ld.so; then
15259           hardcode_direct_CXX=yes
15260           hardcode_shlibpath_var_CXX=no
15261           hardcode_direct_absolute_CXX=yes
15262           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15263           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15264           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15265             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15266             export_dynamic_flag_spec_CXX='${wl}-E'
15267             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15268           fi
15269           output_verbose_link_cmd=echo
15270         else
15271           ld_shlibs_CXX=no
15272         fi
15273         ;;
15274
15275       osf3* | osf4* | osf5*)
15276         case $cc_basename in
15277           KCC*)
15278             # Kuck and Associates, Inc. (KAI) C++ Compiler
15279
15280             # KCC will only create a shared library if the output file
15281             # ends with ".so" (or ".sl" for HP-UX), so rename the library
15282             # to its proper name (with version) after linking.
15283             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15284
15285             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15286             hardcode_libdir_separator_CXX=:
15287
15288             # Archives containing C++ object files must be created using
15289             # the KAI C++ compiler.
15290             case $host in
15291               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15292               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15293             esac
15294             ;;
15295           RCC*)
15296             # Rational C++ 2.4.1
15297             # FIXME: insert proper C++ library support
15298             ld_shlibs_CXX=no
15299             ;;
15300           cxx*)
15301             case $host in
15302               osf3*)
15303                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15304                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15305                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15306                 ;;
15307               *)
15308                 allow_undefined_flag_CXX=' -expect_unresolved \*'
15309                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15310                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15311                   echo "-hidden">> $lib.exp~
15312                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15313                   $RM $lib.exp'
15314                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15315                 ;;
15316             esac
15317
15318             hardcode_libdir_separator_CXX=:
15319
15320             # Commands to make compiler produce verbose output that lists
15321             # what "hidden" libraries, object files and flags are used when
15322             # linking a shared library.
15323             #
15324             # There doesn't appear to be a way to prevent this compiler from
15325             # explicitly linking system object files so we need to strip them
15326             # from the output so that they don't get included in the library
15327             # dependencies.
15328             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15329             ;;
15330           *)
15331             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15332               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15333               case $host in
15334                 osf3*)
15335                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15336                   ;;
15337                 *)
15338                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15339                   ;;
15340               esac
15341
15342               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15343               hardcode_libdir_separator_CXX=:
15344
15345               # Commands to make compiler produce verbose output that lists
15346               # what "hidden" libraries, object files and flags are used when
15347               # linking a shared library.
15348               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15349
15350             else
15351               # FIXME: insert proper C++ library support
15352               ld_shlibs_CXX=no
15353             fi
15354             ;;
15355         esac
15356         ;;
15357
15358       psos*)
15359         # FIXME: insert proper C++ library support
15360         ld_shlibs_CXX=no
15361         ;;
15362
15363       sunos4*)
15364         case $cc_basename in
15365           CC*)
15366             # Sun C++ 4.x
15367             # FIXME: insert proper C++ library support
15368             ld_shlibs_CXX=no
15369             ;;
15370           lcc*)
15371             # Lucid
15372             # FIXME: insert proper C++ library support
15373             ld_shlibs_CXX=no
15374             ;;
15375           *)
15376             # FIXME: insert proper C++ library support
15377             ld_shlibs_CXX=no
15378             ;;
15379         esac
15380         ;;
15381
15382       solaris*)
15383         case $cc_basename in
15384           CC*)
15385             # Sun C++ 4.2, 5.x and Centerline C++
15386             archive_cmds_need_lc_CXX=yes
15387             no_undefined_flag_CXX=' -zdefs'
15388             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15389             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15390               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15391
15392             hardcode_libdir_flag_spec_CXX='-R$libdir'
15393             hardcode_shlibpath_var_CXX=no
15394             case $host_os in
15395               solaris2.[0-5] | solaris2.[0-5].*) ;;
15396               *)
15397                 # The compiler driver will combine and reorder linker options,
15398                 # but understands `-z linker_flag'.
15399                 # Supported since Solaris 2.6 (maybe 2.5.1?)
15400                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15401                 ;;
15402             esac
15403             link_all_deplibs_CXX=yes
15404
15405             output_verbose_link_cmd='echo'
15406
15407             # Archives containing C++ object files must be created using
15408             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
15409             # necessary to make sure instantiated templates are included
15410             # in the archive.
15411             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15412             ;;
15413           gcx*)
15414             # Green Hills C++ Compiler
15415             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15416
15417             # The C++ compiler must be used to create the archive.
15418             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15419             ;;
15420           *)
15421             # GNU C++ compiler with Solaris linker
15422             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15423               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15424               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15425                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15426                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15427                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15428
15429                 # Commands to make compiler produce verbose output that lists
15430                 # what "hidden" libraries, object files and flags are used when
15431                 # linking a shared library.
15432                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15433               else
15434                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15435                 # platform.
15436                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15437                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15438                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15439
15440                 # Commands to make compiler produce verbose output that lists
15441                 # what "hidden" libraries, object files and flags are used when
15442                 # linking a shared library.
15443                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15444               fi
15445
15446               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15447               case $host_os in
15448                 solaris2.[0-5] | solaris2.[0-5].*) ;;
15449                 *)
15450                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15451                   ;;
15452               esac
15453             fi
15454             ;;
15455         esac
15456         ;;
15457
15458     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15459       no_undefined_flag_CXX='${wl}-z,text'
15460       archive_cmds_need_lc_CXX=no
15461       hardcode_shlibpath_var_CXX=no
15462       runpath_var='LD_RUN_PATH'
15463
15464       case $cc_basename in
15465         CC*)
15466           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15467           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15468           ;;
15469         *)
15470           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15471           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472           ;;
15473       esac
15474       ;;
15475
15476       sysv5* | sco3.2v5* | sco5v6*)
15477         # Note: We can NOT use -z defs as we might desire, because we do not
15478         # link with -lc, and that would cause any symbols used from libc to
15479         # always be unresolved, which means just about no library would
15480         # ever link correctly.  If we're not using GNU ld we use -z text
15481         # though, which does catch some bad symbols but isn't as heavy-handed
15482         # as -z defs.
15483         no_undefined_flag_CXX='${wl}-z,text'
15484         allow_undefined_flag_CXX='${wl}-z,nodefs'
15485         archive_cmds_need_lc_CXX=no
15486         hardcode_shlibpath_var_CXX=no
15487         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15488         hardcode_libdir_separator_CXX=':'
15489         link_all_deplibs_CXX=yes
15490         export_dynamic_flag_spec_CXX='${wl}-Bexport'
15491         runpath_var='LD_RUN_PATH'
15492
15493         case $cc_basename in
15494           CC*)
15495             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15496             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15497             ;;
15498           *)
15499             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15500             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15501             ;;
15502         esac
15503       ;;
15504
15505       tandem*)
15506         case $cc_basename in
15507           NCC*)
15508             # NonStop-UX NCC 3.20
15509             # FIXME: insert proper C++ library support
15510             ld_shlibs_CXX=no
15511             ;;
15512           *)
15513             # FIXME: insert proper C++ library support
15514             ld_shlibs_CXX=no
15515             ;;
15516         esac
15517         ;;
15518
15519       vxworks*)
15520         # FIXME: insert proper C++ library support
15521         ld_shlibs_CXX=no
15522         ;;
15523
15524       *)
15525         # FIXME: insert proper C++ library support
15526         ld_shlibs_CXX=no
15527         ;;
15528     esac
15529
15530     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15531 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15532     test "$ld_shlibs_CXX" = no && can_build_shared=no
15533
15534     GCC_CXX="$GXX"
15535     LD_CXX="$LD"
15536
15537     ## CAVEAT EMPTOR:
15538     ## There is no encapsulation within the following macros, do not change
15539     ## the running order or otherwise move them around unless you know exactly
15540     ## what you are doing...
15541     # Dependencies to place before and after the object being linked:
15542 predep_objects_CXX=
15543 postdep_objects_CXX=
15544 predeps_CXX=
15545 postdeps_CXX=
15546 compiler_lib_search_path_CXX=
15547
15548 cat > conftest.$ac_ext <<_LT_EOF
15549 class Foo
15550 {
15551 public:
15552   Foo (void) { a = 0; }
15553 private:
15554   int a;
15555 };
15556 _LT_EOF
15557
15558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15559   (eval $ac_compile) 2>&5
15560   ac_status=$?
15561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562   (exit $ac_status); }; then
15563   # Parse the compiler output and extract the necessary
15564   # objects, libraries and library flags.
15565
15566   # Sentinel used to keep track of whether or not we are before
15567   # the conftest object file.
15568   pre_test_object_deps_done=no
15569
15570   for p in `eval "$output_verbose_link_cmd"`; do
15571     case $p in
15572
15573     -L* | -R* | -l*)
15574        # Some compilers place space between "-{L,R}" and the path.
15575        # Remove the space.
15576        if test $p = "-L" ||
15577           test $p = "-R"; then
15578          prev=$p
15579          continue
15580        else
15581          prev=
15582        fi
15583
15584        if test "$pre_test_object_deps_done" = no; then
15585          case $p in
15586          -L* | -R*)
15587            # Internal compiler library paths should come after those
15588            # provided the user.  The postdeps already come after the
15589            # user supplied libs so there is no need to process them.
15590            if test -z "$compiler_lib_search_path_CXX"; then
15591              compiler_lib_search_path_CXX="${prev}${p}"
15592            else
15593              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15594            fi
15595            ;;
15596          # The "-l" case would never come before the object being
15597          # linked, so don't bother handling this case.
15598          esac
15599        else
15600          if test -z "$postdeps_CXX"; then
15601            postdeps_CXX="${prev}${p}"
15602          else
15603            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15604          fi
15605        fi
15606        ;;
15607
15608     *.$objext)
15609        # This assumes that the test object file only shows up
15610        # once in the compiler output.
15611        if test "$p" = "conftest.$objext"; then
15612          pre_test_object_deps_done=yes
15613          continue
15614        fi
15615
15616        if test "$pre_test_object_deps_done" = no; then
15617          if test -z "$predep_objects_CXX"; then
15618            predep_objects_CXX="$p"
15619          else
15620            predep_objects_CXX="$predep_objects_CXX $p"
15621          fi
15622        else
15623          if test -z "$postdep_objects_CXX"; then
15624            postdep_objects_CXX="$p"
15625          else
15626            postdep_objects_CXX="$postdep_objects_CXX $p"
15627          fi
15628        fi
15629        ;;
15630
15631     *) ;; # Ignore the rest.
15632
15633     esac
15634   done
15635
15636   # Clean up.
15637   rm -f a.out a.exe
15638 else
15639   echo "libtool.m4: error: problem compiling CXX test program"
15640 fi
15641
15642 $RM -f confest.$objext
15643
15644 # PORTME: override above test on systems where it is broken
15645 case $host_os in
15646 interix[3-9]*)
15647   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15648   # hack all around it, let's just trust "g++" to DTRT.
15649   predep_objects_CXX=
15650   postdep_objects_CXX=
15651   postdeps_CXX=
15652   ;;
15653
15654 linux*)
15655   case `$CC -V 2>&1 | sed 5q` in
15656   *Sun\ C*)
15657     # Sun C++ 5.9
15658
15659     # The more standards-conforming stlport4 library is
15660     # incompatible with the Cstd library. Avoid specifying
15661     # it if it's in CXXFLAGS. Ignore libCrun as
15662     # -library=stlport4 depends on it.
15663     case " $CXX $CXXFLAGS " in
15664     *" -library=stlport4 "*)
15665       solaris_use_stlport4=yes
15666       ;;
15667     esac
15668
15669     if test "$solaris_use_stlport4" != yes; then
15670       postdeps_CXX='-library=Cstd -library=Crun'
15671     fi
15672     ;;
15673   esac
15674   ;;
15675
15676 solaris*)
15677   case $cc_basename in
15678   CC*)
15679     # The more standards-conforming stlport4 library is
15680     # incompatible with the Cstd library. Avoid specifying
15681     # it if it's in CXXFLAGS. Ignore libCrun as
15682     # -library=stlport4 depends on it.
15683     case " $CXX $CXXFLAGS " in
15684     *" -library=stlport4 "*)
15685       solaris_use_stlport4=yes
15686       ;;
15687     esac
15688
15689     # Adding this requires a known-good setup of shared libraries for
15690     # Sun compiler versions before 5.6, else PIC objects from an old
15691     # archive will be linked into the output, leading to subtle bugs.
15692     if test "$solaris_use_stlport4" != yes; then
15693       postdeps_CXX='-library=Cstd -library=Crun'
15694     fi
15695     ;;
15696   esac
15697   ;;
15698 esac
15699
15700
15701 case " $postdeps_CXX " in
15702 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15703 esac
15704  compiler_lib_search_dirs_CXX=
15705 if test -n "${compiler_lib_search_path_CXX}"; then
15706  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15707 fi
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739     lt_prog_compiler_wl_CXX=
15740 lt_prog_compiler_pic_CXX=
15741 lt_prog_compiler_static_CXX=
15742
15743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15745
15746   # C++ specific cases for pic, static, wl, etc.
15747   if test "$GXX" = yes; then
15748     lt_prog_compiler_wl_CXX='-Wl,'
15749     lt_prog_compiler_static_CXX='-static'
15750
15751     case $host_os in
15752     aix*)
15753       # All AIX code is PIC.
15754       if test "$host_cpu" = ia64; then
15755         # AIX 5 now supports IA64 processor
15756         lt_prog_compiler_static_CXX='-Bstatic'
15757       fi
15758       ;;
15759
15760     amigaos*)
15761       case $host_cpu in
15762       powerpc)
15763             # see comment about AmigaOS4 .so support
15764             lt_prog_compiler_pic_CXX='-fPIC'
15765         ;;
15766       m68k)
15767             # FIXME: we need at least 68020 code to build shared libraries, but
15768             # adding the `-m68020' flag to GCC prevents building anything better,
15769             # like `-m68040'.
15770             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15771         ;;
15772       esac
15773       ;;
15774
15775     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15776       # PIC is the default for these OSes.
15777       ;;
15778     mingw* | cygwin* | os2* | pw32* | cegcc*)
15779       # This hack is so that the source file can tell whether it is being
15780       # built for inclusion in a dll (and should export symbols for example).
15781       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15782       # (--disable-auto-import) libraries
15783       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15784       ;;
15785     darwin* | rhapsody*)
15786       # PIC is the default on this platform
15787       # Common symbols not allowed in MH_DYLIB files
15788       lt_prog_compiler_pic_CXX='-fno-common'
15789       ;;
15790     *djgpp*)
15791       # DJGPP does not support shared libraries at all
15792       lt_prog_compiler_pic_CXX=
15793       ;;
15794     interix[3-9]*)
15795       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15796       # Instead, we relocate shared libraries at runtime.
15797       ;;
15798     sysv4*MP*)
15799       if test -d /usr/nec; then
15800         lt_prog_compiler_pic_CXX=-Kconform_pic
15801       fi
15802       ;;
15803     hpux*)
15804       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15805       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15806       # sets the default TLS model and affects inlining.
15807       case $host_cpu in
15808       hppa*64*)
15809         ;;
15810       *)
15811         lt_prog_compiler_pic_CXX='-fPIC'
15812         ;;
15813       esac
15814       ;;
15815     *qnx* | *nto*)
15816       # QNX uses GNU C++, but need to define -shared option too, otherwise
15817       # it will coredump.
15818       lt_prog_compiler_pic_CXX='-fPIC -shared'
15819       ;;
15820     *)
15821       lt_prog_compiler_pic_CXX='-fPIC'
15822       ;;
15823     esac
15824   else
15825     case $host_os in
15826       aix[4-9]*)
15827         # All AIX code is PIC.
15828         if test "$host_cpu" = ia64; then
15829           # AIX 5 now supports IA64 processor
15830           lt_prog_compiler_static_CXX='-Bstatic'
15831         else
15832           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15833         fi
15834         ;;
15835       chorus*)
15836         case $cc_basename in
15837         cxch68*)
15838           # Green Hills C++ Compiler
15839           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15840           ;;
15841         esac
15842         ;;
15843       dgux*)
15844         case $cc_basename in
15845           ec++*)
15846             lt_prog_compiler_pic_CXX='-KPIC'
15847             ;;
15848           ghcx*)
15849             # Green Hills C++ Compiler
15850             lt_prog_compiler_pic_CXX='-pic'
15851             ;;
15852           *)
15853             ;;
15854         esac
15855         ;;
15856       freebsd* | dragonfly*)
15857         # FreeBSD uses GNU C++
15858         ;;
15859       hpux9* | hpux10* | hpux11*)
15860         case $cc_basename in
15861           CC*)
15862             lt_prog_compiler_wl_CXX='-Wl,'
15863             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15864             if test "$host_cpu" != ia64; then
15865               lt_prog_compiler_pic_CXX='+Z'
15866             fi
15867             ;;
15868           aCC*)
15869             lt_prog_compiler_wl_CXX='-Wl,'
15870             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15871             case $host_cpu in
15872             hppa*64*|ia64*)
15873               # +Z the default
15874               ;;
15875             *)
15876               lt_prog_compiler_pic_CXX='+Z'
15877               ;;
15878             esac
15879             ;;
15880           *)
15881             ;;
15882         esac
15883         ;;
15884       interix*)
15885         # This is c89, which is MS Visual C++ (no shared libs)
15886         # Anyone wants to do a port?
15887         ;;
15888       irix5* | irix6* | nonstopux*)
15889         case $cc_basename in
15890           CC*)
15891             lt_prog_compiler_wl_CXX='-Wl,'
15892             lt_prog_compiler_static_CXX='-non_shared'
15893             # CC pic flag -KPIC is the default.
15894             ;;
15895           *)
15896             ;;
15897         esac
15898         ;;
15899       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15900         case $cc_basename in
15901           KCC*)
15902             # KAI C++ Compiler
15903             lt_prog_compiler_wl_CXX='--backend -Wl,'
15904             lt_prog_compiler_pic_CXX='-fPIC'
15905             ;;
15906           ecpc* )
15907             # old Intel C++ for x86_64 which still supported -KPIC.
15908             lt_prog_compiler_wl_CXX='-Wl,'
15909             lt_prog_compiler_pic_CXX='-KPIC'
15910             lt_prog_compiler_static_CXX='-static'
15911             ;;
15912           icpc* )
15913             # Intel C++, used to be incompatible with GCC.
15914             # ICC 10 doesn't accept -KPIC any more.
15915             lt_prog_compiler_wl_CXX='-Wl,'
15916             lt_prog_compiler_pic_CXX='-fPIC'
15917             lt_prog_compiler_static_CXX='-static'
15918             ;;
15919           pgCC* | pgcpp*)
15920             # Portland Group C++ compiler
15921             lt_prog_compiler_wl_CXX='-Wl,'
15922             lt_prog_compiler_pic_CXX='-fpic'
15923             lt_prog_compiler_static_CXX='-Bstatic'
15924             ;;
15925           cxx*)
15926             # Compaq C++
15927             # Make sure the PIC flag is empty.  It appears that all Alpha
15928             # Linux and Compaq Tru64 Unix objects are PIC.
15929             lt_prog_compiler_pic_CXX=
15930             lt_prog_compiler_static_CXX='-non_shared'
15931             ;;
15932           xlc* | xlC*)
15933             # IBM XL 8.0 on PPC
15934             lt_prog_compiler_wl_CXX='-Wl,'
15935             lt_prog_compiler_pic_CXX='-qpic'
15936             lt_prog_compiler_static_CXX='-qstaticlink'
15937             ;;
15938           *)
15939             case `$CC -V 2>&1 | sed 5q` in
15940             *Sun\ C*)
15941               # Sun C++ 5.9
15942               lt_prog_compiler_pic_CXX='-KPIC'
15943               lt_prog_compiler_static_CXX='-Bstatic'
15944               lt_prog_compiler_wl_CXX='-Qoption ld '
15945               ;;
15946             esac
15947             ;;
15948         esac
15949         ;;
15950       lynxos*)
15951         ;;
15952       m88k*)
15953         ;;
15954       mvs*)
15955         case $cc_basename in
15956           cxx*)
15957             lt_prog_compiler_pic_CXX='-W c,exportall'
15958             ;;
15959           *)
15960             ;;
15961         esac
15962         ;;
15963       netbsd*)
15964         ;;
15965       *qnx* | *nto*)
15966         # QNX uses GNU C++, but need to define -shared option too, otherwise
15967         # it will coredump.
15968         lt_prog_compiler_pic_CXX='-fPIC -shared'
15969         ;;
15970       osf3* | osf4* | osf5*)
15971         case $cc_basename in
15972           KCC*)
15973             lt_prog_compiler_wl_CXX='--backend -Wl,'
15974             ;;
15975           RCC*)
15976             # Rational C++ 2.4.1
15977             lt_prog_compiler_pic_CXX='-pic'
15978             ;;
15979           cxx*)
15980             # Digital/Compaq C++
15981             lt_prog_compiler_wl_CXX='-Wl,'
15982             # Make sure the PIC flag is empty.  It appears that all Alpha
15983             # Linux and Compaq Tru64 Unix objects are PIC.
15984             lt_prog_compiler_pic_CXX=
15985             lt_prog_compiler_static_CXX='-non_shared'
15986             ;;
15987           *)
15988             ;;
15989         esac
15990         ;;
15991       psos*)
15992         ;;
15993       solaris*)
15994         case $cc_basename in
15995           CC*)
15996             # Sun C++ 4.2, 5.x and Centerline C++
15997             lt_prog_compiler_pic_CXX='-KPIC'
15998             lt_prog_compiler_static_CXX='-Bstatic'
15999             lt_prog_compiler_wl_CXX='-Qoption ld '
16000             ;;
16001           gcx*)
16002             # Green Hills C++ Compiler
16003             lt_prog_compiler_pic_CXX='-PIC'
16004             ;;
16005           *)
16006             ;;
16007         esac
16008         ;;
16009       sunos4*)
16010         case $cc_basename in
16011           CC*)
16012             # Sun C++ 4.x
16013             lt_prog_compiler_pic_CXX='-pic'
16014             lt_prog_compiler_static_CXX='-Bstatic'
16015             ;;
16016           lcc*)
16017             # Lucid
16018             lt_prog_compiler_pic_CXX='-pic'
16019             ;;
16020           *)
16021             ;;
16022         esac
16023         ;;
16024       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16025         case $cc_basename in
16026           CC*)
16027             lt_prog_compiler_wl_CXX='-Wl,'
16028             lt_prog_compiler_pic_CXX='-KPIC'
16029             lt_prog_compiler_static_CXX='-Bstatic'
16030             ;;
16031         esac
16032         ;;
16033       tandem*)
16034         case $cc_basename in
16035           NCC*)
16036             # NonStop-UX NCC 3.20
16037             lt_prog_compiler_pic_CXX='-KPIC'
16038             ;;
16039           *)
16040             ;;
16041         esac
16042         ;;
16043       vxworks*)
16044         ;;
16045       *)
16046         lt_prog_compiler_can_build_shared_CXX=no
16047         ;;
16048     esac
16049   fi
16050
16051 case $host_os in
16052   # For platforms which do not support PIC, -DPIC is meaningless:
16053   *djgpp*)
16054     lt_prog_compiler_pic_CXX=
16055     ;;
16056   *)
16057     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16058     ;;
16059 esac
16060 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16061 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16062
16063
16064
16065 #
16066 # Check to make sure the PIC flag actually works.
16067 #
16068 if test -n "$lt_prog_compiler_pic_CXX"; then
16069   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16070 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16071 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
16072   echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074   lt_cv_prog_compiler_pic_works_CXX=no
16075    ac_outfile=conftest.$ac_objext
16076    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16077    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16078    # Insert the option either (1) after the last *FLAGS variable, or
16079    # (2) before a word containing "conftest.", or (3) at the end.
16080    # Note that $ac_compile itself does not contain backslashes and begins
16081    # with a dollar sign (not a hyphen), so the echo should work correctly.
16082    # The option is referenced via a variable to avoid confusing sed.
16083    lt_compile=`echo "$ac_compile" | $SED \
16084    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16085    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16086    -e 's:$: $lt_compiler_flag:'`
16087    (eval echo "\"\$as_me:16087: $lt_compile\"" >&5)
16088    (eval "$lt_compile" 2>conftest.err)
16089    ac_status=$?
16090    cat conftest.err >&5
16091    echo "$as_me:16091: \$? = $ac_status" >&5
16092    if (exit $ac_status) && test -s "$ac_outfile"; then
16093      # The compiler can only warn and ignore the option if not recognized
16094      # So say no if there are warnings other than the usual output.
16095      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16096      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16097      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16098        lt_cv_prog_compiler_pic_works_CXX=yes
16099      fi
16100    fi
16101    $RM conftest*
16102
16103 fi
16104 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16105 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
16106
16107 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16108     case $lt_prog_compiler_pic_CXX in
16109      "" | " "*) ;;
16110      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16111      esac
16112 else
16113     lt_prog_compiler_pic_CXX=
16114      lt_prog_compiler_can_build_shared_CXX=no
16115 fi
16116
16117 fi
16118
16119
16120
16121 #
16122 # Check to make sure the static flag actually works.
16123 #
16124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16125 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16126 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16127 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   lt_cv_prog_compiler_static_works_CXX=no
16131    save_LDFLAGS="$LDFLAGS"
16132    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16133    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16134    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16135      # The linker can only warn and ignore the option if not recognized
16136      # So say no if there are warnings
16137      if test -s conftest.err; then
16138        # Append any errors to the config.log.
16139        cat conftest.err 1>&5
16140        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16141        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16142        if diff conftest.exp conftest.er2 >/dev/null; then
16143          lt_cv_prog_compiler_static_works_CXX=yes
16144        fi
16145      else
16146        lt_cv_prog_compiler_static_works_CXX=yes
16147      fi
16148    fi
16149    $RM -r conftest*
16150    LDFLAGS="$save_LDFLAGS"
16151
16152 fi
16153 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16154 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
16155
16156 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16157     :
16158 else
16159     lt_prog_compiler_static_CXX=
16160 fi
16161
16162
16163
16164
16165     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16166 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16167 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   lt_cv_prog_compiler_c_o_CXX=no
16171    $RM -r conftest 2>/dev/null
16172    mkdir conftest
16173    cd conftest
16174    mkdir out
16175    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16176
16177    lt_compiler_flag="-o out/conftest2.$ac_objext"
16178    # Insert the option either (1) after the last *FLAGS variable, or
16179    # (2) before a word containing "conftest.", or (3) at the end.
16180    # Note that $ac_compile itself does not contain backslashes and begins
16181    # with a dollar sign (not a hyphen), so the echo should work correctly.
16182    lt_compile=`echo "$ac_compile" | $SED \
16183    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16184    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16185    -e 's:$: $lt_compiler_flag:'`
16186    (eval echo "\"\$as_me:16186: $lt_compile\"" >&5)
16187    (eval "$lt_compile" 2>out/conftest.err)
16188    ac_status=$?
16189    cat out/conftest.err >&5
16190    echo "$as_me:16190: \$? = $ac_status" >&5
16191    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16192    then
16193      # The compiler can only warn and ignore the option if not recognized
16194      # So say no if there are warnings
16195      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16196      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16197      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16198        lt_cv_prog_compiler_c_o_CXX=yes
16199      fi
16200    fi
16201    chmod u+w . 2>&5
16202    $RM conftest*
16203    # SGI C++ compiler will create directory out/ii_files/ for
16204    # template instantiation
16205    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16206    $RM out/* && rmdir out
16207    cd ..
16208    $RM -r conftest
16209    $RM conftest*
16210
16211 fi
16212 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16213 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16214
16215
16216
16217     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16218 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16219 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16220   echo $ECHO_N "(cached) $ECHO_C" >&6
16221 else
16222   lt_cv_prog_compiler_c_o_CXX=no
16223    $RM -r conftest 2>/dev/null
16224    mkdir conftest
16225    cd conftest
16226    mkdir out
16227    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16228
16229    lt_compiler_flag="-o out/conftest2.$ac_objext"
16230    # Insert the option either (1) after the last *FLAGS variable, or
16231    # (2) before a word containing "conftest.", or (3) at the end.
16232    # Note that $ac_compile itself does not contain backslashes and begins
16233    # with a dollar sign (not a hyphen), so the echo should work correctly.
16234    lt_compile=`echo "$ac_compile" | $SED \
16235    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16236    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16237    -e 's:$: $lt_compiler_flag:'`
16238    (eval echo "\"\$as_me:16238: $lt_compile\"" >&5)
16239    (eval "$lt_compile" 2>out/conftest.err)
16240    ac_status=$?
16241    cat out/conftest.err >&5
16242    echo "$as_me:16242: \$? = $ac_status" >&5
16243    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16244    then
16245      # The compiler can only warn and ignore the option if not recognized
16246      # So say no if there are warnings
16247      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16248      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16249      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16250        lt_cv_prog_compiler_c_o_CXX=yes
16251      fi
16252    fi
16253    chmod u+w . 2>&5
16254    $RM conftest*
16255    # SGI C++ compiler will create directory out/ii_files/ for
16256    # template instantiation
16257    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16258    $RM out/* && rmdir out
16259    cd ..
16260    $RM -r conftest
16261    $RM conftest*
16262
16263 fi
16264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16265 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16266
16267
16268
16269
16270 hard_links="nottested"
16271 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16272   # do not overwrite the value of need_locks provided by the user
16273   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16274 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16275   hard_links=yes
16276   $RM conftest*
16277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16278   touch conftest.a
16279   ln conftest.a conftest.b 2>&5 || hard_links=no
16280   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281   echo "$as_me:$LINENO: result: $hard_links" >&5
16282 echo "${ECHO_T}$hard_links" >&6
16283   if test "$hard_links" = no; then
16284     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16285 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16286     need_locks=warn
16287   fi
16288 else
16289   need_locks=no
16290 fi
16291
16292
16293
16294     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16295 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16296
16297   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16298   case $host_os in
16299   aix[4-9]*)
16300     # If we're using GNU nm, then we don't want the "-C" option.
16301     # -C means demangle to AIX nm, but means don't demangle with GNU nm
16302     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16303       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16304     else
16305       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16306     fi
16307     ;;
16308   pw32*)
16309     export_symbols_cmds_CXX="$ltdll_cmds"
16310   ;;
16311   cygwin* | mingw* | cegcc*)
16312     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16313   ;;
16314   *)
16315     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16316   ;;
16317   esac
16318   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16319
16320 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16321 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16322 test "$ld_shlibs_CXX" = no && can_build_shared=no
16323
16324 with_gnu_ld_CXX=$with_gnu_ld
16325
16326
16327
16328
16329
16330
16331 #
16332 # Do we need to explicitly link libc?
16333 #
16334 case "x$archive_cmds_need_lc_CXX" in
16335 x|xyes)
16336   # Assume -lc should be added
16337   archive_cmds_need_lc_CXX=yes
16338
16339   if test "$enable_shared" = yes && test "$GCC" = yes; then
16340     case $archive_cmds_CXX in
16341     *'~'*)
16342       # FIXME: we may have to deal with multi-command sequences.
16343       ;;
16344     '$CC '*)
16345       # Test whether the compiler implicitly links with -lc since on some
16346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16347       # to ld, don't add -lc before -lgcc.
16348       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16349 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16350 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
16351   echo $ECHO_N "(cached) $ECHO_C" >&6
16352 else
16353   $RM conftest*
16354         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16355
16356         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16357   (eval $ac_compile) 2>&5
16358   ac_status=$?
16359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360   (exit $ac_status); } 2>conftest.err; then
16361           soname=conftest
16362           lib=conftest
16363           libobjs=conftest.$ac_objext
16364           deplibs=
16365           wl=$lt_prog_compiler_wl_CXX
16366           pic_flag=$lt_prog_compiler_pic_CXX
16367           compiler_flags=-v
16368           linker_flags=-v
16369           verstring=
16370           output_objdir=.
16371           libname=conftest
16372           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16373           allow_undefined_flag_CXX=
16374           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
16375   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16376   ac_status=$?
16377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16378   (exit $ac_status); }
16379           then
16380             lt_cv_archive_cmds_need_lc_CXX=no
16381           else
16382             lt_cv_archive_cmds_need_lc_CXX=yes
16383           fi
16384           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16385         else
16386           cat conftest.err 1>&5
16387         fi
16388         $RM conftest*
16389
16390 fi
16391 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16392 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
16393       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16394       ;;
16395     esac
16396   fi
16397   ;;
16398 esac
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16464 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16465
16466 library_names_spec=
16467 libname_spec='lib$name'
16468 soname_spec=
16469 shrext_cmds=".so"
16470 postinstall_cmds=
16471 postuninstall_cmds=
16472 finish_cmds=
16473 finish_eval=
16474 shlibpath_var=
16475 shlibpath_overrides_runpath=unknown
16476 version_type=none
16477 dynamic_linker="$host_os ld.so"
16478 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16479 need_lib_prefix=unknown
16480 hardcode_into_libs=no
16481
16482 # when you set need_version to no, make sure it does not cause -set_version
16483 # flags to be left without arguments
16484 need_version=unknown
16485
16486 case $host_os in
16487 aix3*)
16488   version_type=linux
16489   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16490   shlibpath_var=LIBPATH
16491
16492   # AIX 3 has no versioning support, so we append a major version to the name.
16493   soname_spec='${libname}${release}${shared_ext}$major'
16494   ;;
16495
16496 aix[4-9]*)
16497   version_type=linux
16498   need_lib_prefix=no
16499   need_version=no
16500   hardcode_into_libs=yes
16501   if test "$host_cpu" = ia64; then
16502     # AIX 5 supports IA64
16503     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16504     shlibpath_var=LD_LIBRARY_PATH
16505   else
16506     # With GCC up to 2.95.x, collect2 would create an import file
16507     # for dependence libraries.  The import file would start with
16508     # the line `#! .'.  This would cause the generated library to
16509     # depend on `.', always an invalid library.  This was fixed in
16510     # development snapshots of GCC prior to 3.0.
16511     case $host_os in
16512       aix4 | aix4.[01] | aix4.[01].*)
16513       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16514            echo ' yes '
16515            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16516         :
16517       else
16518         can_build_shared=no
16519       fi
16520       ;;
16521     esac
16522     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16523     # soname into executable. Probably we can add versioning support to
16524     # collect2, so additional links can be useful in future.
16525     if test "$aix_use_runtimelinking" = yes; then
16526       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16527       # instead of lib<name>.a to let people know that these are not
16528       # typical AIX shared libraries.
16529       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16530     else
16531       # We preserve .a as extension for shared libraries through AIX4.2
16532       # and later when we are not doing run time linking.
16533       library_names_spec='${libname}${release}.a $libname.a'
16534       soname_spec='${libname}${release}${shared_ext}$major'
16535     fi
16536     shlibpath_var=LIBPATH
16537   fi
16538   ;;
16539
16540 amigaos*)
16541   case $host_cpu in
16542   powerpc)
16543     # Since July 2007 AmigaOS4 officially supports .so libraries.
16544     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16545     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16546     ;;
16547   m68k)
16548     library_names_spec='$libname.ixlibrary $libname.a'
16549     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16550     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16551     ;;
16552   esac
16553   ;;
16554
16555 beos*)
16556   library_names_spec='${libname}${shared_ext}'
16557   dynamic_linker="$host_os ld.so"
16558   shlibpath_var=LIBRARY_PATH
16559   ;;
16560
16561 bsdi[45]*)
16562   version_type=linux
16563   need_version=no
16564   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565   soname_spec='${libname}${release}${shared_ext}$major'
16566   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16567   shlibpath_var=LD_LIBRARY_PATH
16568   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16569   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16570   # the default ld.so.conf also contains /usr/contrib/lib and
16571   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16572   # libtool to hard-code these into programs
16573   ;;
16574
16575 cygwin* | mingw* | pw32* | cegcc*)
16576   version_type=windows
16577   shrext_cmds=".dll"
16578   need_version=no
16579   need_lib_prefix=no
16580
16581   case $GCC,$host_os in
16582   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16583     library_names_spec='$libname.dll.a'
16584     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16585     postinstall_cmds='base_file=`basename \${file}`~
16586       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16587       dldir=$destdir/`dirname \$dlpath`~
16588       test -d \$dldir || mkdir -p \$dldir~
16589       $install_prog $dir/$dlname \$dldir/$dlname~
16590       chmod a+x \$dldir/$dlname~
16591       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16592         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16593       fi'
16594     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16595       dlpath=$dir/\$dldll~
16596        $RM \$dlpath'
16597     shlibpath_overrides_runpath=yes
16598
16599     case $host_os in
16600     cygwin*)
16601       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16602       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16603       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16604       ;;
16605     mingw* | cegcc*)
16606       # MinGW DLLs use traditional 'lib' prefix
16607       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16608       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16609       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16610         # It is most probably a Windows format PATH printed by
16611         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16612         # path with ; separators, and with drive letters. We can handle the
16613         # drive letters (cygwin fileutils understands them), so leave them,
16614         # especially as we might pass files found there to a mingw objdump,
16615         # which wouldn't understand a cygwinified path. Ahh.
16616         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16617       else
16618         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16619       fi
16620       ;;
16621     pw32*)
16622       # pw32 DLLs use 'pw' prefix rather than 'lib'
16623       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16624       ;;
16625     esac
16626     ;;
16627
16628   *)
16629     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16630     ;;
16631   esac
16632   dynamic_linker='Win32 ld.exe'
16633   # FIXME: first we should search . and the directory the executable is in
16634   shlibpath_var=PATH
16635   ;;
16636
16637 darwin* | rhapsody*)
16638   dynamic_linker="$host_os dyld"
16639   version_type=darwin
16640   need_lib_prefix=no
16641   need_version=no
16642   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16643   soname_spec='${libname}${release}${major}$shared_ext'
16644   shlibpath_overrides_runpath=yes
16645   shlibpath_var=DYLD_LIBRARY_PATH
16646   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16647
16648   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16649   ;;
16650
16651 dgux*)
16652   version_type=linux
16653   need_lib_prefix=no
16654   need_version=no
16655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16656   soname_spec='${libname}${release}${shared_ext}$major'
16657   shlibpath_var=LD_LIBRARY_PATH
16658   ;;
16659
16660 freebsd1*)
16661   dynamic_linker=no
16662   ;;
16663
16664 freebsd* | dragonfly*)
16665   # DragonFly does not have aout.  When/if they implement a new
16666   # versioning mechanism, adjust this.
16667   if test -x /usr/bin/objformat; then
16668     objformat=`/usr/bin/objformat`
16669   else
16670     case $host_os in
16671     freebsd[123]*) objformat=aout ;;
16672     *) objformat=elf ;;
16673     esac
16674   fi
16675   version_type=freebsd-$objformat
16676   case $version_type in
16677     freebsd-elf*)
16678       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16679       need_version=no
16680       need_lib_prefix=no
16681       ;;
16682     freebsd-*)
16683       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16684       need_version=yes
16685       ;;
16686   esac
16687   shlibpath_var=LD_LIBRARY_PATH
16688   case $host_os in
16689   freebsd2*)
16690     shlibpath_overrides_runpath=yes
16691     ;;
16692   freebsd3.[01]* | freebsdelf3.[01]*)
16693     shlibpath_overrides_runpath=yes
16694     hardcode_into_libs=yes
16695     ;;
16696   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16697   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16698     shlibpath_overrides_runpath=no
16699     hardcode_into_libs=yes
16700     ;;
16701   *) # from 4.6 on, and DragonFly
16702     shlibpath_overrides_runpath=yes
16703     hardcode_into_libs=yes
16704     ;;
16705   esac
16706   ;;
16707
16708 gnu*)
16709   version_type=linux
16710   need_lib_prefix=no
16711   need_version=no
16712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16713   soname_spec='${libname}${release}${shared_ext}$major'
16714   shlibpath_var=LD_LIBRARY_PATH
16715   hardcode_into_libs=yes
16716   ;;
16717
16718 hpux9* | hpux10* | hpux11*)
16719   # Give a soname corresponding to the major version so that dld.sl refuses to
16720   # link against other versions.
16721   version_type=sunos
16722   need_lib_prefix=no
16723   need_version=no
16724   case $host_cpu in
16725   ia64*)
16726     shrext_cmds='.so'
16727     hardcode_into_libs=yes
16728     dynamic_linker="$host_os dld.so"
16729     shlibpath_var=LD_LIBRARY_PATH
16730     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16731     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16732     soname_spec='${libname}${release}${shared_ext}$major'
16733     if test "X$HPUX_IA64_MODE" = X32; then
16734       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16735     else
16736       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16737     fi
16738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16739     ;;
16740   hppa*64*)
16741     shrext_cmds='.sl'
16742     hardcode_into_libs=yes
16743     dynamic_linker="$host_os dld.sl"
16744     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16745     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16746     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16747     soname_spec='${libname}${release}${shared_ext}$major'
16748     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16749     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16750     ;;
16751   *)
16752     shrext_cmds='.sl'
16753     dynamic_linker="$host_os dld.sl"
16754     shlibpath_var=SHLIB_PATH
16755     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16756     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16757     soname_spec='${libname}${release}${shared_ext}$major'
16758     ;;
16759   esac
16760   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16761   postinstall_cmds='chmod 555 $lib'
16762   ;;
16763
16764 interix[3-9]*)
16765   version_type=linux
16766   need_lib_prefix=no
16767   need_version=no
16768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16769   soname_spec='${libname}${release}${shared_ext}$major'
16770   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16771   shlibpath_var=LD_LIBRARY_PATH
16772   shlibpath_overrides_runpath=no
16773   hardcode_into_libs=yes
16774   ;;
16775
16776 irix5* | irix6* | nonstopux*)
16777   case $host_os in
16778     nonstopux*) version_type=nonstopux ;;
16779     *)
16780         if test "$lt_cv_prog_gnu_ld" = yes; then
16781                 version_type=linux
16782         else
16783                 version_type=irix
16784         fi ;;
16785   esac
16786   need_lib_prefix=no
16787   need_version=no
16788   soname_spec='${libname}${release}${shared_ext}$major'
16789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16790   case $host_os in
16791   irix5* | nonstopux*)
16792     libsuff= shlibsuff=
16793     ;;
16794   *)
16795     case $LD in # libtool.m4 will add one of these switches to LD
16796     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16797       libsuff= shlibsuff= libmagic=32-bit;;
16798     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16799       libsuff=32 shlibsuff=N32 libmagic=N32;;
16800     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16801       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16802     *) libsuff= shlibsuff= libmagic=never-match;;
16803     esac
16804     ;;
16805   esac
16806   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16807   shlibpath_overrides_runpath=no
16808   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16809   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16810   hardcode_into_libs=yes
16811   ;;
16812
16813 # No shared lib support for Linux oldld, aout, or coff.
16814 linux*oldld* | linux*aout* | linux*coff*)
16815   dynamic_linker=no
16816   ;;
16817
16818 # This must be Linux ELF.
16819 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16820   version_type=linux
16821   need_lib_prefix=no
16822   need_version=no
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824   soname_spec='${libname}${release}${shared_ext}$major'
16825   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16826   shlibpath_var=LD_LIBRARY_PATH
16827   shlibpath_overrides_runpath=no
16828
16829   # Some binutils ld are patched to set DT_RUNPATH
16830   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   lt_cv_shlibpath_overrides_runpath=no
16834     save_LDFLAGS=$LDFLAGS
16835     save_libdir=$libdir
16836     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16837          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16838     if test x$gcc_no_link = xyes; then
16839   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16841    { (exit 1); exit 1; }; }
16842 fi
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 int
16851 main ()
16852 {
16853
16854   ;
16855   return 0;
16856 }
16857 _ACEOF
16858 rm -f conftest.$ac_objext conftest$ac_exeext
16859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16860   (eval $ac_link) 2>conftest.er1
16861   ac_status=$?
16862   grep -v '^ *+' conftest.er1 >conftest.err
16863   rm -f conftest.er1
16864   cat conftest.err >&5
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } &&
16867          { ac_try='test -z "$ac_cxx_werror_flag"
16868                          || test ! -s conftest.err'
16869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870   (eval $ac_try) 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; } &&
16874          { ac_try='test -s conftest$ac_exeext'
16875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876   (eval $ac_try) 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); }; }; then
16880   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
16881   lt_cv_shlibpath_overrides_runpath=yes
16882 fi
16883
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 fi
16889 rm -f conftest.err conftest.$ac_objext \
16890       conftest$ac_exeext conftest.$ac_ext
16891     LDFLAGS=$save_LDFLAGS
16892     libdir=$save_libdir
16893
16894 fi
16895
16896   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16897
16898   # This implies no fast_install, which is unacceptable.
16899   # Some rework will be needed to allow for fast_install
16900   # before this can be enabled.
16901   hardcode_into_libs=yes
16902
16903   # Append ld.so.conf contents to the search path
16904   if test -f /etc/ld.so.conf; then
16905     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16906     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16907   fi
16908
16909   # We used to test for /lib/ld.so.1 and disable shared libraries on
16910   # powerpc, because MkLinux only supported shared libraries with the
16911   # GNU dynamic linker.  Since this was broken with cross compilers,
16912   # most powerpc-linux boxes support dynamic linking these days and
16913   # people can always --disable-shared, the test was removed, and we
16914   # assume the GNU/Linux dynamic linker is in use.
16915   dynamic_linker='GNU/Linux ld.so'
16916   ;;
16917
16918 netbsd*)
16919   version_type=sunos
16920   need_lib_prefix=no
16921   need_version=no
16922   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16924     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16925     dynamic_linker='NetBSD (a.out) ld.so'
16926   else
16927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16928     soname_spec='${libname}${release}${shared_ext}$major'
16929     dynamic_linker='NetBSD ld.elf_so'
16930   fi
16931   shlibpath_var=LD_LIBRARY_PATH
16932   shlibpath_overrides_runpath=yes
16933   hardcode_into_libs=yes
16934   ;;
16935
16936 newsos6)
16937   version_type=linux
16938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939   shlibpath_var=LD_LIBRARY_PATH
16940   shlibpath_overrides_runpath=yes
16941   ;;
16942
16943 *nto* | *qnx*)
16944   version_type=qnx
16945   need_lib_prefix=no
16946   need_version=no
16947   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948   soname_spec='${libname}${release}${shared_ext}$major'
16949   shlibpath_var=LD_LIBRARY_PATH
16950   shlibpath_overrides_runpath=no
16951   hardcode_into_libs=yes
16952   dynamic_linker='ldqnx.so'
16953   ;;
16954
16955 openbsd*)
16956   version_type=sunos
16957   sys_lib_dlsearch_path_spec="/usr/lib"
16958   need_lib_prefix=no
16959   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16960   case $host_os in
16961     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16962     *)                          need_version=no  ;;
16963   esac
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16965   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16966   shlibpath_var=LD_LIBRARY_PATH
16967   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16968     case $host_os in
16969       openbsd2.[89] | openbsd2.[89].*)
16970         shlibpath_overrides_runpath=no
16971         ;;
16972       *)
16973         shlibpath_overrides_runpath=yes
16974         ;;
16975       esac
16976   else
16977     shlibpath_overrides_runpath=yes
16978   fi
16979   ;;
16980
16981 os2*)
16982   libname_spec='$name'
16983   shrext_cmds=".dll"
16984   need_lib_prefix=no
16985   library_names_spec='$libname${shared_ext} $libname.a'
16986   dynamic_linker='OS/2 ld.exe'
16987   shlibpath_var=LIBPATH
16988   ;;
16989
16990 osf3* | osf4* | osf5*)
16991   version_type=osf
16992   need_lib_prefix=no
16993   need_version=no
16994   soname_spec='${libname}${release}${shared_ext}$major'
16995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996   shlibpath_var=LD_LIBRARY_PATH
16997   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16998   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16999   ;;
17000
17001 rdos*)
17002   dynamic_linker=no
17003   ;;
17004
17005 solaris*)
17006   version_type=linux
17007   need_lib_prefix=no
17008   need_version=no
17009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17010   soname_spec='${libname}${release}${shared_ext}$major'
17011   shlibpath_var=LD_LIBRARY_PATH
17012   shlibpath_overrides_runpath=yes
17013   hardcode_into_libs=yes
17014   # ldd complains unless libraries are executable
17015   postinstall_cmds='chmod +x $lib'
17016   ;;
17017
17018 sunos4*)
17019   version_type=sunos
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   shlibpath_overrides_runpath=yes
17024   if test "$with_gnu_ld" = yes; then
17025     need_lib_prefix=no
17026   fi
17027   need_version=yes
17028   ;;
17029
17030 sysv4 | sysv4.3*)
17031   version_type=linux
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033   soname_spec='${libname}${release}${shared_ext}$major'
17034   shlibpath_var=LD_LIBRARY_PATH
17035   case $host_vendor in
17036     sni)
17037       shlibpath_overrides_runpath=no
17038       need_lib_prefix=no
17039       runpath_var=LD_RUN_PATH
17040       ;;
17041     siemens)
17042       need_lib_prefix=no
17043       ;;
17044     motorola)
17045       need_lib_prefix=no
17046       need_version=no
17047       shlibpath_overrides_runpath=no
17048       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17049       ;;
17050   esac
17051   ;;
17052
17053 sysv4*MP*)
17054   if test -d /usr/nec ;then
17055     version_type=linux
17056     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17057     soname_spec='$libname${shared_ext}.$major'
17058     shlibpath_var=LD_LIBRARY_PATH
17059   fi
17060   ;;
17061
17062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17063   version_type=freebsd-elf
17064   need_lib_prefix=no
17065   need_version=no
17066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17067   soname_spec='${libname}${release}${shared_ext}$major'
17068   shlibpath_var=LD_LIBRARY_PATH
17069   shlibpath_overrides_runpath=yes
17070   hardcode_into_libs=yes
17071   if test "$with_gnu_ld" = yes; then
17072     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17073   else
17074     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17075     case $host_os in
17076       sco3.2v5*)
17077         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17078         ;;
17079     esac
17080   fi
17081   sys_lib_dlsearch_path_spec='/usr/lib'
17082   ;;
17083
17084 tpf*)
17085   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17086   version_type=linux
17087   need_lib_prefix=no
17088   need_version=no
17089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090   shlibpath_var=LD_LIBRARY_PATH
17091   shlibpath_overrides_runpath=no
17092   hardcode_into_libs=yes
17093   ;;
17094
17095 uts4*)
17096   version_type=linux
17097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098   soname_spec='${libname}${release}${shared_ext}$major'
17099   shlibpath_var=LD_LIBRARY_PATH
17100   ;;
17101
17102 *)
17103   dynamic_linker=no
17104   ;;
17105 esac
17106 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17107 echo "${ECHO_T}$dynamic_linker" >&6
17108 test "$dynamic_linker" = no && can_build_shared=no
17109
17110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17111 if test "$GCC" = yes; then
17112   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17113 fi
17114
17115 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17116   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17117 fi
17118 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17119   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17120 fi
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17158 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17159 hardcode_action_CXX=
17160 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17161    test -n "$runpath_var_CXX" ||
17162    test "X$hardcode_automatic_CXX" = "Xyes" ; then
17163
17164   # We can hardcode non-existent directories.
17165   if test "$hardcode_direct_CXX" != no &&
17166      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17167      # have to relink, otherwise we might link with an installed library
17168      # when we should be linking with a yet-to-be-installed one
17169      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17170      test "$hardcode_minus_L_CXX" != no; then
17171     # Linking always hardcodes the temporary library directory.
17172     hardcode_action_CXX=relink
17173   else
17174     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17175     hardcode_action_CXX=immediate
17176   fi
17177 else
17178   # We cannot hardcode anything, or else we can only hardcode existing
17179   # directories.
17180   hardcode_action_CXX=unsupported
17181 fi
17182 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17183 echo "${ECHO_T}$hardcode_action_CXX" >&6
17184
17185 if test "$hardcode_action_CXX" = relink ||
17186    test "$inherit_rpath_CXX" = yes; then
17187   # Fast installation is not supported
17188   enable_fast_install=no
17189 elif test "$shlibpath_overrides_runpath" = yes ||
17190      test "$enable_shared" = no; then
17191   # Fast installation is not necessary
17192   enable_fast_install=needless
17193 fi
17194
17195
17196
17197
17198
17199
17200
17201   fi # test -n "$compiler"
17202
17203   CC=$lt_save_CC
17204   LDCXX=$LD
17205   LD=$lt_save_LD
17206   GCC=$lt_save_GCC
17207   with_gnu_ld=$lt_save_with_gnu_ld
17208   lt_cv_path_LDCXX=$lt_cv_path_LD
17209   lt_cv_path_LD=$lt_save_path_LD
17210   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17211   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17212 fi # test "$_lt_caught_CXX_error" != yes
17213
17214 ac_ext=c
17215 ac_cpp='$CPP $CPPFLAGS'
17216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17219
17220
17221
17222 # Handle -Werror default case.
17223 if test "$ENABLE_WERROR" = default; then
17224   case "$host_os" in
17225     *linux*)
17226       if test "$GCC" = yes; then
17227         ENABLE_WERROR=yes
17228       fi
17229       ;;
17230   esac
17231 fi
17232
17233 if test "x${COMPILE_COLLECTIONS}" = xyes; then
17234   # Extract the first word of "perl", so it can be a program name with args.
17235 set dummy perl; ac_word=$2
17236 echo "$as_me:$LINENO: checking for $ac_word" >&5
17237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17238 if test "${ac_cv_path_PERL+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241   case $PERL in
17242   [\\/]* | ?:[\\/]*)
17243   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
17244   ;;
17245   *)
17246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17247 for as_dir in $PATH
17248 do
17249   IFS=$as_save_IFS
17250   test -z "$as_dir" && as_dir=.
17251   for ac_exec_ext in '' $ac_executable_extensions; do
17252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17253     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
17254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17255     break 2
17256   fi
17257 done
17258 done
17259
17260   ;;
17261 esac
17262 fi
17263 PERL=$ac_cv_path_PERL
17264
17265 if test -n "$PERL"; then
17266   echo "$as_me:$LINENO: result: $PERL" >&5
17267 echo "${ECHO_T}$PERL" >&6
17268 else
17269   echo "$as_me:$LINENO: result: no" >&5
17270 echo "${ECHO_T}no" >&6
17271 fi
17272
17273
17274
17275             ac_config_files="$ac_config_files lib/mkcollections.pl"
17276
17277             ac_config_commands="$ac_config_commands mkcollections.pl"
17278
17279 fi
17280
17281 if test "x${COMPILE_JNI}" = xyes; then
17282
17283
17284
17285  echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
17286 echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6
17287  if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then
17288   echo $ECHO_N "(cached) $ECHO_C" >&6
17289 else
17290
17291   cat >conftest.$ac_ext <<_ACEOF
17292 /* confdefs.h.  */
17293 _ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h.  */
17297
17298 int
17299 main ()
17300 {
17301 extern int testfunction(int x) __attribute__((,,))
17302   ;
17303   return 0;
17304 }
17305 _ACEOF
17306 rm -f conftest.$ac_objext
17307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17308   (eval $ac_compile) 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_c_werror_flag"
17316                          || test ! -s conftest.err'
17317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318   (eval $ac_try) 2>&5
17319   ac_status=$?
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); }; } &&
17322          { ac_try='test -s conftest.$ac_objext'
17323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324   (eval $ac_try) 2>&5
17325   ac_status=$?
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); }; }; then
17328   gcc_cv_c_gcc_attribute_supported=yes
17329 else
17330   echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17332
17333 gcc_cv_c_gcc_attribute_supported=no
17334 fi
17335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17336
17337 fi
17338
17339  if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
17340   true
17341   echo "$as_me:$LINENO: result: yes" >&5
17342 echo "${ECHO_T}yes" >&6
17343
17344 cat >>confdefs.h <<\_ACEOF
17345 #define HAVE_GNUC25_ATTRIB
17346 _ACEOF
17347
17348
17349  else
17350   true
17351   echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17353
17354  fi
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365  echo "$as_me:$LINENO: checking __attribute__((unused))" >&5
17366 echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6
17367  if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370
17371   cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377
17378 int
17379 main ()
17380 {
17381 extern int testfunction(int x) __attribute__((unused))
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17388   (eval $ac_compile) 2>conftest.er1
17389   ac_status=$?
17390   grep -v '^ *+' conftest.er1 >conftest.err
17391   rm -f conftest.er1
17392   cat conftest.err >&5
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); } &&
17395          { ac_try='test -z "$ac_c_werror_flag"
17396                          || test ! -s conftest.err'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest.$ac_objext'
17403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404   (eval $ac_try) 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; }; then
17408   gcc_cv_c_gcc_attribute_unused=yes
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 gcc_cv_c_gcc_attribute_unused=no
17414 fi
17415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17416
17417 fi
17418
17419  if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
17420   true
17421   echo "$as_me:$LINENO: result: yes" >&5
17422 echo "${ECHO_T}yes" >&6
17423
17424 cat >>confdefs.h <<\_ACEOF
17425 #define HAVE_GNUC25_UNUSED
17426 _ACEOF
17427
17428
17429  else
17430   true
17431   echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6
17433
17434  fi
17435
17436
17437
17438
17439
17440
17441   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
17442 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17443 if test "${ac_cv_header_stdc+set}" = set; then
17444   echo $ECHO_N "(cached) $ECHO_C" >&6
17445 else
17446   cat >conftest.$ac_ext <<_ACEOF
17447 /* confdefs.h.  */
17448 _ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h.  */
17452 #include <stdlib.h>
17453 #include <stdarg.h>
17454 #include <string.h>
17455 #include <float.h>
17456
17457 int
17458 main ()
17459 {
17460
17461   ;
17462   return 0;
17463 }
17464 _ACEOF
17465 rm -f conftest.$ac_objext
17466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17467   (eval $ac_compile) 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } &&
17474          { ac_try='test -z "$ac_c_werror_flag"
17475                          || test ! -s conftest.err'
17476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477   (eval $ac_try) 2>&5
17478   ac_status=$?
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); }; } &&
17481          { ac_try='test -s conftest.$ac_objext'
17482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483   (eval $ac_try) 2>&5
17484   ac_status=$?
17485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486   (exit $ac_status); }; }; then
17487   ac_cv_header_stdc=yes
17488 else
17489   echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492 ac_cv_header_stdc=no
17493 fi
17494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17495
17496 if test $ac_cv_header_stdc = yes; then
17497   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17498   cat >conftest.$ac_ext <<_ACEOF
17499 /* confdefs.h.  */
17500 _ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h.  */
17504 #include <string.h>
17505
17506 _ACEOF
17507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17508   $EGREP "memchr" >/dev/null 2>&1; then
17509   :
17510 else
17511   ac_cv_header_stdc=no
17512 fi
17513 rm -f conftest*
17514
17515 fi
17516
17517 if test $ac_cv_header_stdc = yes; then
17518   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17519   cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525 #include <stdlib.h>
17526
17527 _ACEOF
17528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17529   $EGREP "free" >/dev/null 2>&1; then
17530   :
17531 else
17532   ac_cv_header_stdc=no
17533 fi
17534 rm -f conftest*
17535
17536 fi
17537
17538 if test $ac_cv_header_stdc = yes; then
17539   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17540   if test "$cross_compiling" = yes; then
17541   :
17542 else
17543   cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 #include <ctype.h>
17550 #if ((' ' & 0x0FF) == 0x020)
17551 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17552 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17553 #else
17554 # define ISLOWER(c) \
17555                    (('a' <= (c) && (c) <= 'i') \
17556                      || ('j' <= (c) && (c) <= 'r') \
17557                      || ('s' <= (c) && (c) <= 'z'))
17558 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17559 #endif
17560
17561 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17562 int
17563 main ()
17564 {
17565   int i;
17566   for (i = 0; i < 256; i++)
17567     if (XOR (islower (i), ISLOWER (i))
17568         || toupper (i) != TOUPPER (i))
17569       exit(2);
17570   exit (0);
17571 }
17572 _ACEOF
17573 rm -f conftest$ac_exeext
17574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17575   (eval $ac_link) 2>&5
17576   ac_status=$?
17577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580   (eval $ac_try) 2>&5
17581   ac_status=$?
17582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583   (exit $ac_status); }; }; then
17584   :
17585 else
17586   echo "$as_me: program exited with status $ac_status" >&5
17587 echo "$as_me: failed program was:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17589
17590 ( exit $ac_status )
17591 ac_cv_header_stdc=no
17592 fi
17593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17594 fi
17595 fi
17596 fi
17597 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17598 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17599 if test $ac_cv_header_stdc = yes; then
17600
17601 cat >>confdefs.h <<\_ACEOF
17602 #define STDC_HEADERS 1
17603 _ACEOF
17604
17605 fi
17606
17607
17608       echo "$as_me:$LINENO: checking size of void *" >&5
17609 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17610 if test "${ac_cv_sizeof_void_p+set}" = set; then
17611   echo $ECHO_N "(cached) $ECHO_C" >&6
17612 else
17613   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
17614   cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h.  */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h.  */
17620 #include "confdefs.h"
17621 #include <sys/types.h>
17622
17623
17624 int
17625 main ()
17626 {
17627 switch (0) case 0: case (sizeof (void *) == $ac_size):;
17628   ;
17629   return 0;
17630 }
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17634   (eval $ac_compile) 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -z "$ac_c_werror_flag"
17642                          || test ! -s conftest.err'
17643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644   (eval $ac_try) 2>&5
17645   ac_status=$?
17646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647   (exit $ac_status); }; } &&
17648          { ac_try='test -s conftest.$ac_objext'
17649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650   (eval $ac_try) 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; }; then
17654   ac_cv_sizeof_void_p=$ac_size
17655 else
17656   echo "$as_me: failed program was:" >&5
17657 sed 's/^/| /' conftest.$ac_ext >&5
17658
17659 fi
17660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17661   if test x$ac_cv_sizeof_void_p != x ; then break; fi
17662 done
17663
17664 fi
17665
17666 if test x$ac_cv_sizeof_void_p = x ; then
17667   { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
17668 echo "$as_me: error: cannot determine a size for void *" >&2;}
17669    { (exit 1); exit 1; }; }
17670 fi
17671 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17672 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17673
17674 cat >>confdefs.h <<_ACEOF
17675 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17676 _ACEOF
17677
17678
17679
17680     echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17681 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17682 if test "${ac_cv_c_bigendian+set}" = set; then
17683   echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685   ac_cv_c_bigendian=unknown
17686 # See if sys/param.h defines the BYTE_ORDER macro.
17687 cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693 #include <sys/types.h>
17694 #include <sys/param.h>
17695 int
17696 main ()
17697 {
17698
17699 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17700  bogus endian macros
17701 #endif
17702   ;
17703   return 0;
17704 }
17705 _ACEOF
17706 rm -f conftest.$ac_objext
17707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17708   (eval $ac_compile) 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag"
17716                          || test ! -s conftest.err'
17717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17718   (eval $ac_try) 2>&5
17719   ac_status=$?
17720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721   (exit $ac_status); }; } &&
17722          { ac_try='test -s conftest.$ac_objext'
17723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724   (eval $ac_try) 2>&5
17725   ac_status=$?
17726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727   (exit $ac_status); }; }; then
17728   # It does; now see whether it defined to BIG_ENDIAN or not.
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 #include <sys/types.h>
17736 #include <sys/param.h>
17737 int
17738 main ()
17739 {
17740
17741 #if BYTE_ORDER != BIG_ENDIAN
17742  not big endian
17743 #endif
17744   ;
17745   return 0;
17746 }
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17750   (eval $ac_compile) 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } &&
17757          { ac_try='test -z "$ac_c_werror_flag"
17758                          || test ! -s conftest.err'
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); }; } &&
17764          { ac_try='test -s conftest.$ac_objext'
17765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766   (eval $ac_try) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); }; }; then
17770   ac_cv_c_bigendian=yes
17771 else
17772   echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775 ac_cv_c_bigendian=no
17776 fi
17777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17778 else
17779   echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782 fi
17783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17784 if test $ac_cv_c_bigendian = unknown; then
17785 if test "$cross_compiling" = yes; then
17786    echo $ac_n "cross-compiling... " 2>&6
17787 else
17788   cat >conftest.$ac_ext <<_ACEOF
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 main () {
17795   /* Are we little or big endian?  From Harbison&Steele.  */
17796   union
17797   {
17798     long l;
17799     char c[sizeof (long)];
17800   } u;
17801   u.l = 1;
17802   exit (u.c[sizeof (long) - 1] == 1);
17803 }
17804 _ACEOF
17805 rm -f conftest$ac_exeext
17806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17807   (eval $ac_link) 2>&5
17808   ac_status=$?
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   ac_cv_c_bigendian=no
17817 else
17818   echo "$as_me: program exited with status $ac_status" >&5
17819 echo "$as_me: failed program was:" >&5
17820 sed 's/^/| /' conftest.$ac_ext >&5
17821
17822 ( exit $ac_status )
17823 ac_cv_c_bigendian=yes
17824 fi
17825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17826 fi
17827 fi
17828 fi
17829 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17830 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17831 if test $ac_cv_c_bigendian = unknown; then
17832 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
17833 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
17834
17835 cat >conftest.c <<EOF
17836 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17837 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17838 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17839 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17840 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17841 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17842 int main() { _ascii (); _ebcdic (); return 0; }
17843 EOF
17844  if test -f conftest.c ; then
17845      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17846         if test `grep -l BIGenDianSyS conftest.o` ; then
17847            echo $ac_n ' big endian probe OK, ' 1>&6
17848            ac_cv_c_bigendian=yes
17849         fi
17850         if test `grep -l LiTTleEnDian conftest.o` ; then
17851            echo $ac_n ' little endian probe OK, ' 1>&6
17852            if test $ac_cv_c_bigendian = yes ; then
17853             ac_cv_c_bigendian=unknown;
17854            else
17855             ac_cv_c_bigendian=no
17856            fi
17857         fi
17858         echo $ac_n 'guessing bigendian ...  ' >&6
17859      fi
17860   fi
17861 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17862 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17863 fi
17864 if test $ac_cv_c_bigendian = yes; then
17865
17866 cat >>confdefs.h <<\_ACEOF
17867 #define WORDS_BIGENDIAN 1
17868 _ACEOF
17869
17870
17871 cat >>confdefs.h <<\_ACEOF
17872 #define HOST_WORDS_BIG_ENDIAN 1
17873 _ACEOF
17874
17875   BYTEORDER=4321
17876 else
17877   BYTEORDER=1234
17878 fi
17879
17880 cat >>confdefs.h <<_ACEOF
17881 #define BYTEORDER $BYTEORDER
17882 _ACEOF
17883
17884 if test $ac_cv_c_bigendian = unknown; then
17885   { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
17886 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
17887    { (exit 1); exit 1; }; }
17888 fi
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
17916                     asm/ioctls.h \
17917                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17918                     sys/time.h \
17919                     sys/select.h \
17920                     crt_externs.h \
17921                     fcntl.h \
17922                     sys/mman.h \
17923                     magic.h \
17924                     sys/event.h sys/epoll.h \
17925                     ifaddrs.h \
17926                     netinet/in_systm.h netinet/ip.h net/if.h \
17927                     sys/loadavg.h sys/sockio.h
17928 do
17929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17930 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17931   echo "$as_me:$LINENO: checking for $ac_header" >&5
17932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17934   echo $ECHO_N "(cached) $ECHO_C" >&6
17935 fi
17936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17938 else
17939   # Is the header compilable?
17940 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17942 cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948 $ac_includes_default
17949 #include <$ac_header>
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17953   (eval $ac_compile) 2>conftest.er1
17954   ac_status=$?
17955   grep -v '^ *+' conftest.er1 >conftest.err
17956   rm -f conftest.er1
17957   cat conftest.err >&5
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); } &&
17960          { ac_try='test -z "$ac_c_werror_flag"
17961                          || test ! -s conftest.err'
17962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963   (eval $ac_try) 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; } &&
17967          { ac_try='test -s conftest.$ac_objext'
17968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17969   (eval $ac_try) 2>&5
17970   ac_status=$?
17971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972   (exit $ac_status); }; }; then
17973   ac_header_compiler=yes
17974 else
17975   echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 ac_header_compiler=no
17979 fi
17980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17981 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17982 echo "${ECHO_T}$ac_header_compiler" >&6
17983
17984 # Is the header present?
17985 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17986 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17987 cat >conftest.$ac_ext <<_ACEOF
17988 /* confdefs.h.  */
17989 _ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h.  */
17993 #include <$ac_header>
17994 _ACEOF
17995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17996   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17997   ac_status=$?
17998   grep -v '^ *+' conftest.er1 >conftest.err
17999   rm -f conftest.er1
18000   cat conftest.err >&5
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } >/dev/null; then
18003   if test -s conftest.err; then
18004     ac_cpp_err=$ac_c_preproc_warn_flag
18005     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18006   else
18007     ac_cpp_err=
18008   fi
18009 else
18010   ac_cpp_err=yes
18011 fi
18012 if test -z "$ac_cpp_err"; then
18013   ac_header_preproc=yes
18014 else
18015   echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18017
18018   ac_header_preproc=no
18019 fi
18020 rm -f conftest.err conftest.$ac_ext
18021 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18022 echo "${ECHO_T}$ac_header_preproc" >&6
18023
18024 # So?  What about this header?
18025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18026   yes:no: )
18027     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18028 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18029     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18030 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18031     ac_header_preproc=yes
18032     ;;
18033   no:yes:* )
18034     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18035 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18036     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18037 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18038     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18039 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18040     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18041 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18042     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18043 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18044     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18045 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18046     (
18047       cat <<\_ASBOX
18048 ## -------------------------------- ##
18049 ## Report this to classpath@gnu.org ##
18050 ## -------------------------------- ##
18051 _ASBOX
18052     ) |
18053       sed "s/^/$as_me: WARNING:     /" >&2
18054     ;;
18055 esac
18056 echo "$as_me:$LINENO: checking for $ac_header" >&5
18057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18059   echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061   eval "$as_ac_Header=\$ac_header_preproc"
18062 fi
18063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18065
18066 fi
18067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18068   cat >>confdefs.h <<_ACEOF
18069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18070 _ACEOF
18071
18072 fi
18073
18074 done
18075
18076
18077   cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083 #include <stdint.h>
18084
18085 _ACEOF
18086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18087   $EGREP "uint32_t" >/dev/null 2>&1; then
18088
18089 cat >>confdefs.h <<\_ACEOF
18090 #define HAVE_INT32_DEFINED 1
18091 _ACEOF
18092
18093 fi
18094 rm -f conftest*
18095
18096   cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h.  */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h.  */
18102 #include <inttypes.h>
18103
18104 _ACEOF
18105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18106   $EGREP "uint32_t" >/dev/null 2>&1; then
18107
18108 cat >>confdefs.h <<\_ACEOF
18109 #define HAVE_INT32_DEFINED 1
18110 _ACEOF
18111
18112 fi
18113 rm -f conftest*
18114
18115   cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h.  */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h.  */
18121 #include <sys/types.h>
18122
18123 _ACEOF
18124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18125   $EGREP "u_int32_t" >/dev/null 2>&1; then
18126
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_BSD_INT32_DEFINED 1
18129 _ACEOF
18130
18131 fi
18132 rm -f conftest*
18133
18134   cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h.  */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h.  */
18140 #include <sys/config.h>
18141
18142 _ACEOF
18143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18144   $EGREP "u_int32_t" >/dev/null 2>&1; then
18145
18146 cat >>confdefs.h <<\_ACEOF
18147 #define HAVE_BSD_INT32_DEFINED 1
18148 _ACEOF
18149
18150 fi
18151 rm -f conftest*
18152
18153
18154   echo "$as_me:$LINENO: checking for library containing inet_pton" >&5
18155 echo $ECHO_N "checking for library containing inet_pton... $ECHO_C" >&6
18156 if test "${ac_cv_search_inet_pton+set}" = set; then
18157   echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159   ac_func_search_save_LIBS=$LIBS
18160 ac_cv_search_inet_pton=no
18161 if test x$gcc_no_link = xyes; then
18162   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18163 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18164    { (exit 1); exit 1; }; }
18165 fi
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172
18173 /* Override any gcc2 internal prototype to avoid an error.  */
18174 #ifdef __cplusplus
18175 extern "C"
18176 #endif
18177 /* We use char because int might match the return type of a gcc2
18178    builtin and then its argument prototype would still apply.  */
18179 char inet_pton ();
18180 int
18181 main ()
18182 {
18183 inet_pton ();
18184   ;
18185   return 0;
18186 }
18187 _ACEOF
18188 rm -f conftest.$ac_objext conftest$ac_exeext
18189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18190   (eval $ac_link) 2>conftest.er1
18191   ac_status=$?
18192   grep -v '^ *+' conftest.er1 >conftest.err
18193   rm -f conftest.er1
18194   cat conftest.err >&5
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); } &&
18197          { ac_try='test -z "$ac_c_werror_flag"
18198                          || test ! -s conftest.err'
18199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18200   (eval $ac_try) 2>&5
18201   ac_status=$?
18202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203   (exit $ac_status); }; } &&
18204          { ac_try='test -s conftest$ac_exeext'
18205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206   (eval $ac_try) 2>&5
18207   ac_status=$?
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); }; }; then
18210   ac_cv_search_inet_pton="none required"
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 fi
18216 rm -f conftest.err conftest.$ac_objext \
18217       conftest$ac_exeext conftest.$ac_ext
18218 if test "$ac_cv_search_inet_pton" = no; then
18219   for ac_lib in nsl; do
18220     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18221     if test x$gcc_no_link = xyes; then
18222   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18224    { (exit 1); exit 1; }; }
18225 fi
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h.  */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h.  */
18232
18233 /* Override any gcc2 internal prototype to avoid an error.  */
18234 #ifdef __cplusplus
18235 extern "C"
18236 #endif
18237 /* We use char because int might match the return type of a gcc2
18238    builtin and then its argument prototype would still apply.  */
18239 char inet_pton ();
18240 int
18241 main ()
18242 {
18243 inet_pton ();
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 rm -f conftest.$ac_objext conftest$ac_exeext
18249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18250   (eval $ac_link) 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } &&
18257          { ac_try='test -z "$ac_c_werror_flag"
18258                          || test ! -s conftest.err'
18259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260   (eval $ac_try) 2>&5
18261   ac_status=$?
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); }; } &&
18264          { ac_try='test -s conftest$ac_exeext'
18265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266   (eval $ac_try) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; }; then
18270   ac_cv_search_inet_pton="-l$ac_lib"
18271 break
18272 else
18273   echo "$as_me: failed program was:" >&5
18274 sed 's/^/| /' conftest.$ac_ext >&5
18275
18276 fi
18277 rm -f conftest.err conftest.$ac_objext \
18278       conftest$ac_exeext conftest.$ac_ext
18279   done
18280 fi
18281 LIBS=$ac_func_search_save_LIBS
18282 fi
18283 echo "$as_me:$LINENO: result: $ac_cv_search_inet_pton" >&5
18284 echo "${ECHO_T}$ac_cv_search_inet_pton" >&6
18285 if test "$ac_cv_search_inet_pton" != no; then
18286   test "$ac_cv_search_inet_pton" = "none required" || LIBS="$ac_cv_search_inet_pton $LIBS"
18287
18288 fi
18289
18290
18291 echo "$as_me:$LINENO: checking for gethostname in -lsocket" >&5
18292 echo $ECHO_N "checking for gethostname in -lsocket... $ECHO_C" >&6
18293 if test "${ac_cv_lib_socket_gethostname+set}" = set; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296   ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lsocket  $LIBS"
18298 if test x$gcc_no_link = xyes; then
18299   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18300 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18301    { (exit 1); exit 1; }; }
18302 fi
18303 cat >conftest.$ac_ext <<_ACEOF
18304 /* confdefs.h.  */
18305 _ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h.  */
18309
18310 /* Override any gcc2 internal prototype to avoid an error.  */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 /* We use char because int might match the return type of a gcc2
18315    builtin and then its argument prototype would still apply.  */
18316 char gethostname ();
18317 int
18318 main ()
18319 {
18320 gethostname ();
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 rm -f conftest.$ac_objext conftest$ac_exeext
18326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18327   (eval $ac_link) 2>conftest.er1
18328   ac_status=$?
18329   grep -v '^ *+' conftest.er1 >conftest.err
18330   rm -f conftest.er1
18331   cat conftest.err >&5
18332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333   (exit $ac_status); } &&
18334          { ac_try='test -z "$ac_c_werror_flag"
18335                          || test ! -s conftest.err'
18336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18337   (eval $ac_try) 2>&5
18338   ac_status=$?
18339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340   (exit $ac_status); }; } &&
18341          { ac_try='test -s conftest$ac_exeext'
18342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343   (eval $ac_try) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; }; then
18347   ac_cv_lib_socket_gethostname=yes
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352 ac_cv_lib_socket_gethostname=no
18353 fi
18354 rm -f conftest.err conftest.$ac_objext \
18355       conftest$ac_exeext conftest.$ac_ext
18356 LIBS=$ac_check_lib_save_LIBS
18357 fi
18358 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostname" >&5
18359 echo "${ECHO_T}$ac_cv_lib_socket_gethostname" >&6
18360 if test $ac_cv_lib_socket_gethostname = yes; then
18361   cat >>confdefs.h <<_ACEOF
18362 #define HAVE_LIBSOCKET 1
18363 _ACEOF
18364
18365   LIBS="-lsocket $LIBS"
18366
18367 fi
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425 for ac_func in ftruncate fsync select \
18426                   gethostname socket strerror fork pipe execve open close \
18427                   lseek fstat read readv write writev htonl memset htons connect \
18428                   getsockname getpeername bind listen accept \
18429                   recvfrom send sendto setsockopt getsockopt time mktime \
18430                   gethostbyname_r localtime_r \
18431                   strerror_r \
18432                   fcntl \
18433                   statvfs \
18434                   mmap munmap mincore msync madvise getpagesize sysconf \
18435                   lstat readlink \
18436                   inet_aton inet_addr inet_pton \
18437                   getifaddrs kqueue kevent epoll_create \
18438                   getloadavg
18439 do
18440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18441 echo "$as_me:$LINENO: checking for $ac_func" >&5
18442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18443 if eval "test \"\${$as_ac_var+set}\" = set"; then
18444   echo $ECHO_N "(cached) $ECHO_C" >&6
18445 else
18446   if test x$gcc_no_link = xyes; then
18447   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18449    { (exit 1); exit 1; }; }
18450 fi
18451 cat >conftest.$ac_ext <<_ACEOF
18452 /* confdefs.h.  */
18453 _ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h.  */
18457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18458    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18459 #define $ac_func innocuous_$ac_func
18460
18461 /* System header to define __stub macros and hopefully few prototypes,
18462     which can conflict with char $ac_func (); below.
18463     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18464     <limits.h> exists even on freestanding compilers.  */
18465
18466 #ifdef __STDC__
18467 # include <limits.h>
18468 #else
18469 # include <assert.h>
18470 #endif
18471
18472 #undef $ac_func
18473
18474 /* Override any gcc2 internal prototype to avoid an error.  */
18475 #ifdef __cplusplus
18476 extern "C"
18477 {
18478 #endif
18479 /* We use char because int might match the return type of a gcc2
18480    builtin and then its argument prototype would still apply.  */
18481 char $ac_func ();
18482 /* The GNU C library defines this for functions which it implements
18483     to always fail with ENOSYS.  Some functions are actually named
18484     something starting with __ and the normal name is an alias.  */
18485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18486 choke me
18487 #else
18488 char (*f) () = $ac_func;
18489 #endif
18490 #ifdef __cplusplus
18491 }
18492 #endif
18493
18494 int
18495 main ()
18496 {
18497 return f != $ac_func;
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18504   (eval $ac_link) 2>conftest.er1
18505   ac_status=$?
18506   grep -v '^ *+' conftest.er1 >conftest.err
18507   rm -f conftest.er1
18508   cat conftest.err >&5
18509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18510   (exit $ac_status); } &&
18511          { ac_try='test -z "$ac_c_werror_flag"
18512                          || test ! -s conftest.err'
18513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18514   (eval $ac_try) 2>&5
18515   ac_status=$?
18516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517   (exit $ac_status); }; } &&
18518          { ac_try='test -s conftest$ac_exeext'
18519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18520   (eval $ac_try) 2>&5
18521   ac_status=$?
18522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523   (exit $ac_status); }; }; then
18524   eval "$as_ac_var=yes"
18525 else
18526   echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529 eval "$as_ac_var=no"
18530 fi
18531 rm -f conftest.err conftest.$ac_objext \
18532       conftest$ac_exeext conftest.$ac_ext
18533 fi
18534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18535 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18536 if test `eval echo '${'$as_ac_var'}'` = yes; then
18537   cat >>confdefs.h <<_ACEOF
18538 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18539 _ACEOF
18540
18541 fi
18542 done
18543
18544
18545   LIBMAGIC=
18546   echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5
18547 echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6
18548 if test "${ac_cv_lib_magic_magic_open+set}" = set; then
18549   echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551   ac_check_lib_save_LIBS=$LIBS
18552 LIBS="-lmagic  $LIBS"
18553 if test x$gcc_no_link = xyes; then
18554   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18555 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18556    { (exit 1); exit 1; }; }
18557 fi
18558 cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564
18565 /* Override any gcc2 internal prototype to avoid an error.  */
18566 #ifdef __cplusplus
18567 extern "C"
18568 #endif
18569 /* We use char because int might match the return type of a gcc2
18570    builtin and then its argument prototype would still apply.  */
18571 char magic_open ();
18572 int
18573 main ()
18574 {
18575 magic_open ();
18576   ;
18577   return 0;
18578 }
18579 _ACEOF
18580 rm -f conftest.$ac_objext conftest$ac_exeext
18581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18582   (eval $ac_link) 2>conftest.er1
18583   ac_status=$?
18584   grep -v '^ *+' conftest.er1 >conftest.err
18585   rm -f conftest.er1
18586   cat conftest.err >&5
18587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18588   (exit $ac_status); } &&
18589          { ac_try='test -z "$ac_c_werror_flag"
18590                          || test ! -s conftest.err'
18591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592   (eval $ac_try) 2>&5
18593   ac_status=$?
18594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595   (exit $ac_status); }; } &&
18596          { ac_try='test -s conftest$ac_exeext'
18597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18598   (eval $ac_try) 2>&5
18599   ac_status=$?
18600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601   (exit $ac_status); }; }; then
18602   ac_cv_lib_magic_magic_open=yes
18603 else
18604   echo "$as_me: failed program was:" >&5
18605 sed 's/^/| /' conftest.$ac_ext >&5
18606
18607 ac_cv_lib_magic_magic_open=no
18608 fi
18609 rm -f conftest.err conftest.$ac_objext \
18610       conftest$ac_exeext conftest.$ac_ext
18611 LIBS=$ac_check_lib_save_LIBS
18612 fi
18613 echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5
18614 echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6
18615 if test $ac_cv_lib_magic_magic_open = yes; then
18616   LIBMAGIC=-lmagic
18617 fi
18618
18619
18620
18621   echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
18622 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
18623   cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629 #include <netinet/in.h>
18630 int
18631 main ()
18632 {
18633 struct sockaddr_in6 addr6;
18634   ;
18635   return 0;
18636 }
18637 _ACEOF
18638 rm -f conftest.$ac_objext
18639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18640   (eval $ac_compile) 2>conftest.er1
18641   ac_status=$?
18642   grep -v '^ *+' conftest.er1 >conftest.err
18643   rm -f conftest.er1
18644   cat conftest.err >&5
18645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646   (exit $ac_status); } &&
18647          { ac_try='test -z "$ac_c_werror_flag"
18648                          || test ! -s conftest.err'
18649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650   (eval $ac_try) 2>&5
18651   ac_status=$?
18652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653   (exit $ac_status); }; } &&
18654          { ac_try='test -s conftest.$ac_objext'
18655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18656   (eval $ac_try) 2>&5
18657   ac_status=$?
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); }; }; then
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_INET6 1
18663 _ACEOF
18664
18665                      echo "$as_me:$LINENO: result: yes" >&5
18666 echo "${ECHO_T}yes" >&6
18667 else
18668   echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 echo "$as_me:$LINENO: result: no" >&5
18672 echo "${ECHO_T}no" >&6
18673 fi
18674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18675
18676   echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18677 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18678 if test "${ac_cv_header_time+set}" = set; then
18679   echo $ECHO_N "(cached) $ECHO_C" >&6
18680 else
18681   cat >conftest.$ac_ext <<_ACEOF
18682 /* confdefs.h.  */
18683 _ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h.  */
18687 #include <sys/types.h>
18688 #include <sys/time.h>
18689 #include <time.h>
18690
18691 int
18692 main ()
18693 {
18694 if ((struct tm *) 0)
18695 return 0;
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18702   (eval $ac_compile) 2>conftest.er1
18703   ac_status=$?
18704   grep -v '^ *+' conftest.er1 >conftest.err
18705   rm -f conftest.er1
18706   cat conftest.err >&5
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); } &&
18709          { ac_try='test -z "$ac_c_werror_flag"
18710                          || test ! -s conftest.err'
18711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18712   (eval $ac_try) 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; } &&
18716          { ac_try='test -s conftest.$ac_objext'
18717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718   (eval $ac_try) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; }; then
18722   ac_cv_header_time=yes
18723 else
18724   echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18726
18727 ac_cv_header_time=no
18728 fi
18729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18730 fi
18731 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18732 echo "${ECHO_T}$ac_cv_header_time" >&6
18733 if test $ac_cv_header_time = yes; then
18734
18735 cat >>confdefs.h <<\_ACEOF
18736 #define TIME_WITH_SYS_TIME 1
18737 _ACEOF
18738
18739 fi
18740
18741   echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18742 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
18743 if test "${ac_cv_struct_tm+set}" = set; then
18744   echo $ECHO_N "(cached) $ECHO_C" >&6
18745 else
18746   cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752 #include <sys/types.h>
18753 #include <time.h>
18754
18755 int
18756 main ()
18757 {
18758 struct tm *tp; tp->tm_sec;
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18765   (eval $ac_compile) 2>conftest.er1
18766   ac_status=$?
18767   grep -v '^ *+' conftest.er1 >conftest.err
18768   rm -f conftest.er1
18769   cat conftest.err >&5
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } &&
18772          { ac_try='test -z "$ac_c_werror_flag"
18773                          || test ! -s conftest.err'
18774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775   (eval $ac_try) 2>&5
18776   ac_status=$?
18777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778   (exit $ac_status); }; } &&
18779          { ac_try='test -s conftest.$ac_objext'
18780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781   (eval $ac_try) 2>&5
18782   ac_status=$?
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); }; }; then
18785   ac_cv_struct_tm=time.h
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_struct_tm=sys/time.h
18791 fi
18792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18793 fi
18794 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18795 echo "${ECHO_T}$ac_cv_struct_tm" >&6
18796 if test $ac_cv_struct_tm = sys/time.h; then
18797
18798 cat >>confdefs.h <<\_ACEOF
18799 #define TM_IN_SYS_TIME 1
18800 _ACEOF
18801
18802 fi
18803
18804   echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
18805 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
18806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
18807   echo $ECHO_N "(cached) $ECHO_C" >&6
18808 else
18809   cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h.  */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h.  */
18815 #include <sys/types.h>
18816 #include <$ac_cv_struct_tm>
18817
18818
18819 int
18820 main ()
18821 {
18822 static struct tm ac_aggr;
18823 if (ac_aggr.tm_zone)
18824 return 0;
18825   ;
18826   return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18831   (eval $ac_compile) 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } &&
18838          { ac_try='test -z "$ac_c_werror_flag"
18839                          || test ! -s conftest.err'
18840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841   (eval $ac_try) 2>&5
18842   ac_status=$?
18843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844   (exit $ac_status); }; } &&
18845          { ac_try='test -s conftest.$ac_objext'
18846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847   (eval $ac_try) 2>&5
18848   ac_status=$?
18849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850   (exit $ac_status); }; }; then
18851   ac_cv_member_struct_tm_tm_zone=yes
18852 else
18853   echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862 #include <sys/types.h>
18863 #include <$ac_cv_struct_tm>
18864
18865
18866 int
18867 main ()
18868 {
18869 static struct tm ac_aggr;
18870 if (sizeof ac_aggr.tm_zone)
18871 return 0;
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878   (eval $ac_compile) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"
18886                          || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest.$ac_objext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_member_struct_tm_tm_zone=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_member_struct_tm_tm_zone=no
18904 fi
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18906 fi
18907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18908 fi
18909 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
18910 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
18911 if test $ac_cv_member_struct_tm_tm_zone = yes; then
18912
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_STRUCT_TM_TM_ZONE 1
18915 _ACEOF
18916
18917
18918 fi
18919
18920 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
18921
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_TM_ZONE 1
18924 _ACEOF
18925
18926 else
18927   echo "$as_me:$LINENO: checking for tzname" >&5
18928 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
18929 if test "${ac_cv_var_tzname+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   if test x$gcc_no_link = xyes; then
18933   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
18934 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
18935    { (exit 1); exit 1; }; }
18936 fi
18937 cat >conftest.$ac_ext <<_ACEOF
18938 /* confdefs.h.  */
18939 _ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h.  */
18943 #include <time.h>
18944 #ifndef tzname /* For SGI.  */
18945 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
18946 #endif
18947
18948 int
18949 main ()
18950 {
18951 atoi(*tzname);
18952   ;
18953   return 0;
18954 }
18955 _ACEOF
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18958   (eval $ac_link) 2>conftest.er1
18959   ac_status=$?
18960   grep -v '^ *+' conftest.er1 >conftest.err
18961   rm -f conftest.er1
18962   cat conftest.err >&5
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); } &&
18965          { ac_try='test -z "$ac_c_werror_flag"
18966                          || test ! -s conftest.err'
18967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18968   (eval $ac_try) 2>&5
18969   ac_status=$?
18970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971   (exit $ac_status); }; } &&
18972          { ac_try='test -s conftest$ac_exeext'
18973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18974   (eval $ac_try) 2>&5
18975   ac_status=$?
18976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18977   (exit $ac_status); }; }; then
18978   ac_cv_var_tzname=yes
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983 ac_cv_var_tzname=no
18984 fi
18985 rm -f conftest.err conftest.$ac_objext \
18986       conftest$ac_exeext conftest.$ac_ext
18987 fi
18988 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
18989 echo "${ECHO_T}$ac_cv_var_tzname" >&6
18990   if test $ac_cv_var_tzname = yes; then
18991
18992 cat >>confdefs.h <<\_ACEOF
18993 #define HAVE_TZNAME 1
18994 _ACEOF
18995
18996   fi
18997 fi
18998
18999
19000   echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
19001 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
19002   cat >conftest.$ac_ext <<_ACEOF
19003 /* confdefs.h.  */
19004 _ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h.  */
19008 #include <time.h>
19009 int
19010 main ()
19011 {
19012 struct tm tim; tim.tm_gmtoff = 0;
19013   ;
19014   return 0;
19015 }
19016 _ACEOF
19017 rm -f conftest.$ac_objext
19018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19019   (eval $ac_compile) 2>conftest.er1
19020   ac_status=$?
19021   grep -v '^ *+' conftest.er1 >conftest.err
19022   rm -f conftest.er1
19023   cat conftest.err >&5
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); } &&
19026          { ac_try='test -z "$ac_c_werror_flag"
19027                          || test ! -s conftest.err'
19028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029   (eval $ac_try) 2>&5
19030   ac_status=$?
19031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032   (exit $ac_status); }; } &&
19033          { ac_try='test -s conftest.$ac_objext'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; }; then
19039
19040 cat >>confdefs.h <<\_ACEOF
19041 #define STRUCT_TM_HAS_GMTOFF 1
19042 _ACEOF
19043
19044    echo "$as_me:$LINENO: result: yes" >&5
19045 echo "${ECHO_T}yes" >&6
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 echo "$as_me:$LINENO: result: no" >&5
19051 echo "${ECHO_T}no" >&6
19052    echo "$as_me:$LINENO: checking for global timezone variable" >&5
19053 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
19054                cat >conftest.$ac_ext <<_ACEOF
19055 /* confdefs.h.  */
19056 _ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h.  */
19060 #include <time.h>
19061 int
19062 main ()
19063 {
19064 void i(){long z2 = 2*timezone;}
19065   ;
19066   return 0;
19067 }
19068 _ACEOF
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071   (eval $ac_compile) 2>conftest.er1
19072   ac_status=$?
19073   grep -v '^ *+' conftest.er1 >conftest.err
19074   rm -f conftest.er1
19075   cat conftest.err >&5
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); } &&
19078          { ac_try='test -z "$ac_c_werror_flag"
19079                          || test ! -s conftest.err'
19080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081   (eval $ac_try) 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; }; then
19091
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE_TIMEZONE 1
19094 _ACEOF
19095
19096       echo "$as_me:$LINENO: result: yes" >&5
19097 echo "${ECHO_T}yes" >&6
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 echo "$as_me:$LINENO: result: no" >&5
19103 echo "${ECHO_T}no" >&6
19104        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
19105 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
19106               cat >conftest.$ac_ext <<_ACEOF
19107 /* confdefs.h.  */
19108 _ACEOF
19109 cat confdefs.h >>conftest.$ac_ext
19110 cat >>conftest.$ac_ext <<_ACEOF
19111 /* end confdefs.h.  */
19112 #include <time.h>
19113 int
19114 main ()
19115 {
19116 long z2 = _timezone;
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19123   (eval $ac_compile) 2>conftest.er1
19124   ac_status=$?
19125   grep -v '^ *+' conftest.er1 >conftest.err
19126   rm -f conftest.er1
19127   cat conftest.err >&5
19128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129   (exit $ac_status); } &&
19130          { ac_try='test -z "$ac_c_werror_flag"
19131                          || test ! -s conftest.err'
19132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133   (eval $ac_try) 2>&5
19134   ac_status=$?
19135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136   (exit $ac_status); }; } &&
19137          { ac_try='test -s conftest.$ac_objext'
19138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139   (eval $ac_try) 2>&5
19140   ac_status=$?
19141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142   (exit $ac_status); }; }; then
19143
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE_UNDERSCORE_TIMEZONE 1
19146 _ACEOF
19147
19148           echo "$as_me:$LINENO: result: yes" >&5
19149 echo "${ECHO_T}yes" >&6
19150 else
19151   echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 echo "$as_me:$LINENO: result: no" >&5
19155 echo "${ECHO_T}no" >&6
19156 fi
19157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19158 fi
19159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19160 fi
19161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19162
19163   echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19164 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19165 if test "${ac_cv_c_const+set}" = set; then
19166   echo $ECHO_N "(cached) $ECHO_C" >&6
19167 else
19168   cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174
19175 int
19176 main ()
19177 {
19178 /* FIXME: Include the comments suggested by Paul. */
19179 #ifndef __cplusplus
19180   /* Ultrix mips cc rejects this.  */
19181   typedef int charset[2];
19182   const charset x;
19183   /* SunOS 4.1.1 cc rejects this.  */
19184   char const *const *ccp;
19185   char **p;
19186   /* NEC SVR4.0.2 mips cc rejects this.  */
19187   struct point {int x, y;};
19188   static struct point const zero = {0,0};
19189   /* AIX XL C 1.02.0.0 rejects this.
19190      It does not let you subtract one const X* pointer from another in
19191      an arm of an if-expression whose if-part is not a constant
19192      expression */
19193   const char *g = "string";
19194   ccp = &g + (g ? g-g : 0);
19195   /* HPUX 7.0 cc rejects these. */
19196   ++ccp;
19197   p = (char**) ccp;
19198   ccp = (char const *const *) p;
19199   { /* SCO 3.2v4 cc rejects this.  */
19200     char *t;
19201     char const *s = 0 ? (char *) 0 : (char const *) 0;
19202
19203     *t++ = 0;
19204   }
19205   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19206     int x[] = {25, 17};
19207     const int *foo = &x[0];
19208     ++foo;
19209   }
19210   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19211     typedef const int *iptr;
19212     iptr p = 0;
19213     ++p;
19214   }
19215   { /* AIX XL C 1.02.0.0 rejects this saying
19216        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19217     struct s { int j; const int *ap[3]; };
19218     struct s *b; b->j = 5;
19219   }
19220   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19221     const int foo = 10;
19222   }
19223 #endif
19224
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231   (eval $ac_compile) 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } &&
19238          { ac_try='test -z "$ac_c_werror_flag"
19239                          || test ! -s conftest.err'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; } &&
19245          { ac_try='test -s conftest.$ac_objext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251   ac_cv_c_const=yes
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256 ac_cv_c_const=no
19257 fi
19258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19259 fi
19260 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19261 echo "${ECHO_T}$ac_cv_c_const" >&6
19262 if test $ac_cv_c_const = no; then
19263
19264 cat >>confdefs.h <<\_ACEOF
19265 #define const
19266 _ACEOF
19267
19268 fi
19269
19270   echo "$as_me:$LINENO: checking for inline" >&5
19271 echo $ECHO_N "checking for inline... $ECHO_C" >&6
19272 if test "${ac_cv_c_inline+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   ac_cv_c_inline=no
19276 for ac_kw in inline __inline__ __inline; do
19277   cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283 #ifndef __cplusplus
19284 typedef int foo_t;
19285 static $ac_kw foo_t static_foo () {return 0; }
19286 $ac_kw foo_t foo () {return 0; }
19287 #endif
19288
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292   (eval $ac_compile) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_c_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest.$ac_objext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   ac_cv_c_inline=$ac_kw; break
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317 fi
19318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319 done
19320
19321 fi
19322 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19323 echo "${ECHO_T}$ac_cv_c_inline" >&6
19324
19325
19326 case $ac_cv_c_inline in
19327   inline | yes) ;;
19328   *)
19329     case $ac_cv_c_inline in
19330       no) ac_val=;;
19331       *) ac_val=$ac_cv_c_inline;;
19332     esac
19333     cat >>confdefs.h <<_ACEOF
19334 #ifndef __cplusplus
19335 #define inline $ac_val
19336 #endif
19337 _ACEOF
19338     ;;
19339 esac
19340
19341   echo "$as_me:$LINENO: checking for __attribute__" >&5
19342 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
19343 if test "${ac_cv_c_attribute+set}" = set; then
19344   echo $ECHO_N "(cached) $ECHO_C" >&6
19345 else
19346
19347 cat >conftest.$ac_ext <<_ACEOF
19348 /* confdefs.h.  */
19349 _ACEOF
19350 cat confdefs.h >>conftest.$ac_ext
19351 cat >>conftest.$ac_ext <<_ACEOF
19352 /* end confdefs.h.  */
19353 void foo(void) __attribute__ ((__noreturn__));
19354
19355 _ACEOF
19356 rm -f conftest.$ac_objext
19357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19358   (eval $ac_compile) 2>conftest.er1
19359   ac_status=$?
19360   grep -v '^ *+' conftest.er1 >conftest.err
19361   rm -f conftest.er1
19362   cat conftest.err >&5
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); } &&
19365          { ac_try='test -z "$ac_c_werror_flag"
19366                          || test ! -s conftest.err'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; } &&
19372          { ac_try='test -s conftest.$ac_objext'
19373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374   (eval $ac_try) 2>&5
19375   ac_status=$?
19376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377   (exit $ac_status); }; }; then
19378   ac_cv_c_attribute=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383 ac_cv_c_attribute=no
19384
19385 fi
19386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19387
19388 fi
19389 echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
19390 echo "${ECHO_T}$ac_cv_c_attribute" >&6
19391
19392
19393 case $ac_cv_c_attribute in
19394   yes) ;;
19395   no)
19396     cat >>confdefs.h <<_ACEOF
19397 #define __attribute__(x)    /* nothing */
19398 _ACEOF
19399     ;;
19400 esac
19401
19402
19403
19404     ac_ext=c
19405 ac_cpp='$CPP $CPPFLAGS'
19406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19409
19410     echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
19411 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
19412
19413     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
19414   echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416
19417
19418 ################################################################
19419
19420 ac_cv_func_which_gethostbyname_r=unknown
19421
19422 #
19423 # ONE ARGUMENT (sanity check)
19424 #
19425
19426 # This should fail, as there is no variant of gethostbyname_r() that takes
19427 # a single argument. If it actually compiles, then we can assume that
19428 # netdb.h is not declaring the function, and the compiler is thereby
19429 # assuming an implicit prototype. In which case, we're out of luck.
19430 #
19431 cat >conftest.$ac_ext <<_ACEOF
19432 /* confdefs.h.  */
19433 _ACEOF
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h.  */
19437 #include <netdb.h>
19438 int
19439 main ()
19440 {
19441
19442             char *name = "www.gnu.org";
19443             (void)gethostbyname_r(name) /* ; */
19444
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19451   (eval $ac_compile) 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag"
19459                          || test ! -s conftest.err'
19460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461   (eval $ac_try) 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; } &&
19465          { ac_try='test -s conftest.$ac_objext'
19466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467   (eval $ac_try) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; }; then
19471   ac_cv_func_which_gethostbyname_r=no
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 fi
19477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19478
19479 #
19480 # SIX ARGUMENTS
19481 # (e.g. Linux)
19482 #
19483
19484 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19485
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h.  */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h.  */
19492 #include <netdb.h>
19493 int
19494 main ()
19495 {
19496
19497             char *name = "www.gnu.org";
19498             struct hostent ret, *retp;
19499             char buf[1024];
19500             int buflen = 1024;
19501             int my_h_errno;
19502             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
19503
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510   (eval $ac_compile) 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } &&
19517          { ac_try='test -z "$ac_c_werror_flag"
19518                          || test ! -s conftest.err'
19519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520   (eval $ac_try) 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; } &&
19524          { ac_try='test -s conftest.$ac_objext'
19525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526   (eval $ac_try) 2>&5
19527   ac_status=$?
19528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529   (exit $ac_status); }; }; then
19530   ac_cv_func_which_gethostbyname_r=six
19531 else
19532   echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535 fi
19536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19537
19538 fi
19539
19540 #
19541 # FIVE ARGUMENTS
19542 # (e.g. Solaris)
19543 #
19544
19545 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19546
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <netdb.h>
19554 int
19555 main ()
19556 {
19557
19558             char *name = "www.gnu.org";
19559             struct hostent ret;
19560             char buf[1024];
19561             int buflen = 1024;
19562             int my_h_errno;
19563             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
19564
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19571   (eval $ac_compile) 2>conftest.er1
19572   ac_status=$?
19573   grep -v '^ *+' conftest.er1 >conftest.err
19574   rm -f conftest.er1
19575   cat conftest.err >&5
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); } &&
19578          { ac_try='test -z "$ac_c_werror_flag"
19579                          || test ! -s conftest.err'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; } &&
19585          { ac_try='test -s conftest.$ac_objext'
19586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587   (eval $ac_try) 2>&5
19588   ac_status=$?
19589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590   (exit $ac_status); }; }; then
19591   ac_cv_func_which_gethostbyname_r=five
19592 else
19593   echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19595
19596 fi
19597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19598
19599 fi
19600
19601 #
19602 # THREE ARGUMENTS
19603 # (e.g. AIX, HP-UX, Tru64)
19604 #
19605
19606 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
19607
19608 cat >conftest.$ac_ext <<_ACEOF
19609 /* confdefs.h.  */
19610 _ACEOF
19611 cat confdefs.h >>conftest.$ac_ext
19612 cat >>conftest.$ac_ext <<_ACEOF
19613 /* end confdefs.h.  */
19614 #include <netdb.h>
19615 int
19616 main ()
19617 {
19618
19619             char *name = "www.gnu.org";
19620             struct hostent ret;
19621             struct hostent_data data;
19622             (void)gethostbyname_r(name, &ret, &data) /* ; */
19623
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19630   (eval $ac_compile) 2>conftest.er1
19631   ac_status=$?
19632   grep -v '^ *+' conftest.er1 >conftest.err
19633   rm -f conftest.er1
19634   cat conftest.err >&5
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); } &&
19637          { ac_try='test -z "$ac_c_werror_flag"
19638                          || test ! -s conftest.err'
19639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640   (eval $ac_try) 2>&5
19641   ac_status=$?
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); }; } &&
19644          { ac_try='test -s conftest.$ac_objext'
19645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646   (eval $ac_try) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); }; }; then
19650   ac_cv_func_which_gethostbyname_r=three
19651 else
19652   echo "$as_me: failed program was:" >&5
19653 sed 's/^/| /' conftest.$ac_ext >&5
19654
19655 fi
19656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19657
19658 fi
19659
19660 ################################################################
19661
19662
19663 fi
19664
19665 case "$ac_cv_func_which_gethostbyname_r" in
19666     three)
19667     echo "$as_me:$LINENO: result: three" >&5
19668 echo "${ECHO_T}three" >&6
19669
19670 cat >>confdefs.h <<\_ACEOF
19671 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
19672 _ACEOF
19673
19674     ;;
19675
19676     five)
19677     echo "$as_me:$LINENO: result: five" >&5
19678 echo "${ECHO_T}five" >&6
19679
19680 cat >>confdefs.h <<\_ACEOF
19681 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
19682 _ACEOF
19683
19684     ;;
19685
19686     six)
19687     echo "$as_me:$LINENO: result: six" >&5
19688 echo "${ECHO_T}six" >&6
19689
19690 cat >>confdefs.h <<\_ACEOF
19691 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
19692 _ACEOF
19693
19694     ;;
19695
19696     no)
19697     echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
19698 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
19699     ;;
19700
19701     unknown)
19702     echo "$as_me:$LINENO: result: can't tell" >&5
19703 echo "${ECHO_T}can't tell" >&6
19704     ;;
19705
19706     *)
19707     { { echo "$as_me:$LINENO: error: internal error" >&5
19708 echo "$as_me: error: internal error" >&2;}
19709    { (exit 1); exit 1; }; }
19710     ;;
19711 esac
19712
19713 ac_ext=c
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19718
19719
19720
19721
19722
19723       if test "X$prefix" = "XNONE"; then
19724     acl_final_prefix="$ac_default_prefix"
19725   else
19726     acl_final_prefix="$prefix"
19727   fi
19728   if test "X$exec_prefix" = "XNONE"; then
19729     acl_final_exec_prefix='${prefix}'
19730   else
19731     acl_final_exec_prefix="$exec_prefix"
19732   fi
19733   acl_save_prefix="$prefix"
19734   prefix="$acl_final_prefix"
19735   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
19736   prefix="$acl_save_prefix"
19737
19738
19739 # Check whether --with-gnu-ld or --without-gnu-ld was given.
19740 if test "${with_gnu_ld+set}" = set; then
19741   withval="$with_gnu_ld"
19742   test "$withval" = no || with_gnu_ld=yes
19743 else
19744   with_gnu_ld=no
19745 fi;
19746 # Prepare PATH_SEPARATOR.
19747 # The user is always right.
19748 if test "${PATH_SEPARATOR+set}" != set; then
19749   echo "#! /bin/sh" >conf$$.sh
19750   echo  "exit 0"   >>conf$$.sh
19751   chmod +x conf$$.sh
19752   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19753     PATH_SEPARATOR=';'
19754   else
19755     PATH_SEPARATOR=:
19756   fi
19757   rm -f conf$$.sh
19758 fi
19759 ac_prog=ld
19760 if test "$GCC" = yes; then
19761   # Check if gcc -print-prog-name=ld gives a path.
19762   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19763 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
19764   case $host in
19765   *-*-mingw*)
19766     # gcc leaves a trailing carriage return which upsets mingw
19767     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19768   *)
19769     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19770   esac
19771   case $ac_prog in
19772     # Accept absolute paths.
19773     [\\/]* | [A-Za-z]:[\\/]*)
19774       re_direlt='/[^/][^/]*/\.\./'
19775       # Canonicalize the path of ld
19776       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19777       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19778         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19779       done
19780       test -z "$LD" && LD="$ac_prog"
19781       ;;
19782   "")
19783     # If it fails, then pretend we aren't using GCC.
19784     ac_prog=ld
19785     ;;
19786   *)
19787     # If it is relative, then search for the first ld in PATH.
19788     with_gnu_ld=unknown
19789     ;;
19790   esac
19791 elif test "$with_gnu_ld" = yes; then
19792   echo "$as_me:$LINENO: checking for GNU ld" >&5
19793 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
19794 else
19795   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
19796 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
19797 fi
19798 if test "${acl_cv_path_LD+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   if test -z "$LD"; then
19802   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
19803   for ac_dir in $PATH; do
19804     test -z "$ac_dir" && ac_dir=.
19805     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19806       acl_cv_path_LD="$ac_dir/$ac_prog"
19807       # Check to see if the program is GNU ld.  I'd rather use --version,
19808       # but apparently some GNU ld's only accept -v.
19809       # Break only if it was the GNU/non-GNU ld that we prefer.
19810       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
19811         test "$with_gnu_ld" != no && break
19812       else
19813         test "$with_gnu_ld" != yes && break
19814       fi
19815     fi
19816   done
19817   IFS="$ac_save_ifs"
19818 else
19819   acl_cv_path_LD="$LD" # Let the user override the test with a path.
19820 fi
19821 fi
19822
19823 LD="$acl_cv_path_LD"
19824 if test -n "$LD"; then
19825   echo "$as_me:$LINENO: result: $LD" >&5
19826 echo "${ECHO_T}$LD" >&6
19827 else
19828   echo "$as_me:$LINENO: result: no" >&5
19829 echo "${ECHO_T}no" >&6
19830 fi
19831 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
19832 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
19833    { (exit 1); exit 1; }; }
19834 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
19835 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
19836 if test "${acl_cv_prog_gnu_ld+set}" = set; then
19837   echo $ECHO_N "(cached) $ECHO_C" >&6
19838 else
19839   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
19840 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
19841   acl_cv_prog_gnu_ld=yes
19842 else
19843   acl_cv_prog_gnu_ld=no
19844 fi
19845 fi
19846 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
19847 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
19848 with_gnu_ld=$acl_cv_prog_gnu_ld
19849
19850
19851
19852                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
19853 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
19854 if test "${acl_cv_rpath+set}" = set; then
19855   echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857
19858     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
19859     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
19860     . ./conftest.sh
19861     rm -f ./conftest.sh
19862     acl_cv_rpath=done
19863
19864 fi
19865 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
19866 echo "${ECHO_T}$acl_cv_rpath" >&6
19867   wl="$acl_cv_wl"
19868   libext="$acl_cv_libext"
19869   shlibext="$acl_cv_shlibext"
19870   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
19871   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
19872   hardcode_direct="$acl_cv_hardcode_direct"
19873   hardcode_minus_L="$acl_cv_hardcode_minus_L"
19874     # Check whether --enable-rpath or --disable-rpath was given.
19875 if test "${enable_rpath+set}" = set; then
19876   enableval="$enable_rpath"
19877   :
19878 else
19879   enable_rpath=yes
19880 fi;
19881
19882
19883
19884
19885
19886
19887
19888     use_additional=yes
19889
19890   acl_save_prefix="$prefix"
19891   prefix="$acl_final_prefix"
19892   acl_save_exec_prefix="$exec_prefix"
19893   exec_prefix="$acl_final_exec_prefix"
19894
19895     eval additional_includedir=\"$includedir\"
19896     eval additional_libdir=\"$libdir\"
19897
19898   exec_prefix="$acl_save_exec_prefix"
19899   prefix="$acl_save_prefix"
19900
19901
19902 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
19903 if test "${with_libiconv_prefix+set}" = set; then
19904   withval="$with_libiconv_prefix"
19905
19906     if test "X$withval" = "Xno"; then
19907       use_additional=no
19908     else
19909       if test "X$withval" = "X"; then
19910
19911   acl_save_prefix="$prefix"
19912   prefix="$acl_final_prefix"
19913   acl_save_exec_prefix="$exec_prefix"
19914   exec_prefix="$acl_final_exec_prefix"
19915
19916           eval additional_includedir=\"$includedir\"
19917           eval additional_libdir=\"$libdir\"
19918
19919   exec_prefix="$acl_save_exec_prefix"
19920   prefix="$acl_save_prefix"
19921
19922       else
19923         additional_includedir="$withval/include"
19924         additional_libdir="$withval/lib"
19925       fi
19926     fi
19927
19928 fi;
19929       LIBICONV=
19930   LTLIBICONV=
19931   INCICONV=
19932   rpathdirs=
19933   ltrpathdirs=
19934   names_already_handled=
19935   names_next_round='iconv '
19936   while test -n "$names_next_round"; do
19937     names_this_round="$names_next_round"
19938     names_next_round=
19939     for name in $names_this_round; do
19940       already_handled=
19941       for n in $names_already_handled; do
19942         if test "$n" = "$name"; then
19943           already_handled=yes
19944           break
19945         fi
19946       done
19947       if test -z "$already_handled"; then
19948         names_already_handled="$names_already_handled $name"
19949                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
19950         eval value=\"\$HAVE_LIB$uppername\"
19951         if test -n "$value"; then
19952           if test "$value" = yes; then
19953             eval value=\"\$LIB$uppername\"
19954             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
19955             eval value=\"\$LTLIB$uppername\"
19956             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
19957           else
19958                                     :
19959           fi
19960         else
19961                               found_dir=
19962           found_la=
19963           found_so=
19964           found_a=
19965           if test $use_additional = yes; then
19966             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
19967               found_dir="$additional_libdir"
19968               found_so="$additional_libdir/lib$name.$shlibext"
19969               if test -f "$additional_libdir/lib$name.la"; then
19970                 found_la="$additional_libdir/lib$name.la"
19971               fi
19972             else
19973               if test -f "$additional_libdir/lib$name.$libext"; then
19974                 found_dir="$additional_libdir"
19975                 found_a="$additional_libdir/lib$name.$libext"
19976                 if test -f "$additional_libdir/lib$name.la"; then
19977                   found_la="$additional_libdir/lib$name.la"
19978                 fi
19979               fi
19980             fi
19981           fi
19982           if test "X$found_dir" = "X"; then
19983             for x in $LDFLAGS $LTLIBICONV; do
19984
19985   acl_save_prefix="$prefix"
19986   prefix="$acl_final_prefix"
19987   acl_save_exec_prefix="$exec_prefix"
19988   exec_prefix="$acl_final_exec_prefix"
19989   eval x=\"$x\"
19990   exec_prefix="$acl_save_exec_prefix"
19991   prefix="$acl_save_prefix"
19992
19993               case "$x" in
19994                 -L*)
19995                   dir=`echo "X$x" | sed -e 's/^X-L//'`
19996                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
19997                     found_dir="$dir"
19998                     found_so="$dir/lib$name.$shlibext"
19999                     if test -f "$dir/lib$name.la"; then
20000                       found_la="$dir/lib$name.la"
20001                     fi
20002                   else
20003                     if test -f "$dir/lib$name.$libext"; then
20004                       found_dir="$dir"
20005                       found_a="$dir/lib$name.$libext"
20006                       if test -f "$dir/lib$name.la"; then
20007                         found_la="$dir/lib$name.la"
20008                       fi
20009                     fi
20010                   fi
20011                   ;;
20012               esac
20013               if test "X$found_dir" != "X"; then
20014                 break
20015               fi
20016             done
20017           fi
20018           if test "X$found_dir" != "X"; then
20019                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20020             if test "X$found_so" != "X"; then
20021                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20022                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20023               else
20024                                                                                 haveit=
20025                 for x in $ltrpathdirs; do
20026                   if test "X$x" = "X$found_dir"; then
20027                     haveit=yes
20028                     break
20029                   fi
20030                 done
20031                 if test -z "$haveit"; then
20032                   ltrpathdirs="$ltrpathdirs $found_dir"
20033                 fi
20034                                 if test "$hardcode_direct" = yes; then
20035                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20036                 else
20037                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20038                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20039                                                             haveit=
20040                     for x in $rpathdirs; do
20041                       if test "X$x" = "X$found_dir"; then
20042                         haveit=yes
20043                         break
20044                       fi
20045                     done
20046                     if test -z "$haveit"; then
20047                       rpathdirs="$rpathdirs $found_dir"
20048                     fi
20049                   else
20050                                                                                 haveit=
20051                     for x in $LDFLAGS $LIBICONV; do
20052
20053   acl_save_prefix="$prefix"
20054   prefix="$acl_final_prefix"
20055   acl_save_exec_prefix="$exec_prefix"
20056   exec_prefix="$acl_final_exec_prefix"
20057   eval x=\"$x\"
20058   exec_prefix="$acl_save_exec_prefix"
20059   prefix="$acl_save_prefix"
20060
20061                       if test "X$x" = "X-L$found_dir"; then
20062                         haveit=yes
20063                         break
20064                       fi
20065                     done
20066                     if test -z "$haveit"; then
20067                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20068                     fi
20069                     if test "$hardcode_minus_L" != no; then
20070                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20071                     else
20072                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20073                     fi
20074                   fi
20075                 fi
20076               fi
20077             else
20078               if test "X$found_a" != "X"; then
20079                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20080               else
20081                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20082               fi
20083             fi
20084                         additional_includedir=
20085             case "$found_dir" in
20086               */lib | */lib/)
20087                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20088                 additional_includedir="$basedir/include"
20089                 ;;
20090             esac
20091             if test "X$additional_includedir" != "X"; then
20092                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20093                 haveit=
20094                 if test "X$additional_includedir" = "X/usr/local/include"; then
20095                   if test -n "$GCC"; then
20096                     case $host_os in
20097                       linux*) haveit=yes;;
20098                     esac
20099                   fi
20100                 fi
20101                 if test -z "$haveit"; then
20102                   for x in $CPPFLAGS $INCICONV; do
20103
20104   acl_save_prefix="$prefix"
20105   prefix="$acl_final_prefix"
20106   acl_save_exec_prefix="$exec_prefix"
20107   exec_prefix="$acl_final_exec_prefix"
20108   eval x=\"$x\"
20109   exec_prefix="$acl_save_exec_prefix"
20110   prefix="$acl_save_prefix"
20111
20112                     if test "X$x" = "X-I$additional_includedir"; then
20113                       haveit=yes
20114                       break
20115                     fi
20116                   done
20117                   if test -z "$haveit"; then
20118                     if test -d "$additional_includedir"; then
20119                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20120                     fi
20121                   fi
20122                 fi
20123               fi
20124             fi
20125                         if test -n "$found_la"; then
20126                                                         save_libdir="$libdir"
20127               case "$found_la" in
20128                 */* | *\\*) . "$found_la" ;;
20129                 *) . "./$found_la" ;;
20130               esac
20131               libdir="$save_libdir"
20132                             for dep in $dependency_libs; do
20133                 case "$dep" in
20134                   -L*)
20135                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20136                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20137                       haveit=
20138                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20139                         if test -n "$GCC"; then
20140                           case $host_os in
20141                             linux*) haveit=yes;;
20142                           esac
20143                         fi
20144                       fi
20145                       if test -z "$haveit"; then
20146                         haveit=
20147                         for x in $LDFLAGS $LIBICONV; do
20148
20149   acl_save_prefix="$prefix"
20150   prefix="$acl_final_prefix"
20151   acl_save_exec_prefix="$exec_prefix"
20152   exec_prefix="$acl_final_exec_prefix"
20153   eval x=\"$x\"
20154   exec_prefix="$acl_save_exec_prefix"
20155   prefix="$acl_save_prefix"
20156
20157                           if test "X$x" = "X-L$additional_libdir"; then
20158                             haveit=yes
20159                             break
20160                           fi
20161                         done
20162                         if test -z "$haveit"; then
20163                           if test -d "$additional_libdir"; then
20164                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20165                           fi
20166                         fi
20167                         haveit=
20168                         for x in $LDFLAGS $LTLIBICONV; do
20169
20170   acl_save_prefix="$prefix"
20171   prefix="$acl_final_prefix"
20172   acl_save_exec_prefix="$exec_prefix"
20173   exec_prefix="$acl_final_exec_prefix"
20174   eval x=\"$x\"
20175   exec_prefix="$acl_save_exec_prefix"
20176   prefix="$acl_save_prefix"
20177
20178                           if test "X$x" = "X-L$additional_libdir"; then
20179                             haveit=yes
20180                             break
20181                           fi
20182                         done
20183                         if test -z "$haveit"; then
20184                           if test -d "$additional_libdir"; then
20185                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20186                           fi
20187                         fi
20188                       fi
20189                     fi
20190                     ;;
20191                   -R*)
20192                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20193                     if test "$enable_rpath" != no; then
20194                                                                   haveit=
20195                       for x in $rpathdirs; do
20196                         if test "X$x" = "X$dir"; then
20197                           haveit=yes
20198                           break
20199                         fi
20200                       done
20201                       if test -z "$haveit"; then
20202                         rpathdirs="$rpathdirs $dir"
20203                       fi
20204                                                                   haveit=
20205                       for x in $ltrpathdirs; do
20206                         if test "X$x" = "X$dir"; then
20207                           haveit=yes
20208                           break
20209                         fi
20210                       done
20211                       if test -z "$haveit"; then
20212                         ltrpathdirs="$ltrpathdirs $dir"
20213                       fi
20214                     fi
20215                     ;;
20216                   -l*)
20217                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20218                     ;;
20219                   *.la)
20220                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20221                     ;;
20222                   *)
20223                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20224                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20225                     ;;
20226                 esac
20227               done
20228             fi
20229           else
20230                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20231             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20232           fi
20233         fi
20234       fi
20235     done
20236   done
20237   if test "X$rpathdirs" != "X"; then
20238     if test -n "$hardcode_libdir_separator"; then
20239                         alldirs=
20240       for found_dir in $rpathdirs; do
20241         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20242       done
20243             acl_save_libdir="$libdir"
20244       libdir="$alldirs"
20245       eval flag=\"$hardcode_libdir_flag_spec\"
20246       libdir="$acl_save_libdir"
20247       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20248     else
20249             for found_dir in $rpathdirs; do
20250         acl_save_libdir="$libdir"
20251         libdir="$found_dir"
20252         eval flag=\"$hardcode_libdir_flag_spec\"
20253         libdir="$acl_save_libdir"
20254         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20255       done
20256     fi
20257   fi
20258   if test "X$ltrpathdirs" != "X"; then
20259             for found_dir in $ltrpathdirs; do
20260       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20261     done
20262   fi
20263
20264
20265
20266
20267
20268
20269
20270           am_save_CPPFLAGS="$CPPFLAGS"
20271
20272   for element in $INCICONV; do
20273     haveit=
20274     for x in $CPPFLAGS; do
20275
20276   acl_save_prefix="$prefix"
20277   prefix="$acl_final_prefix"
20278   acl_save_exec_prefix="$exec_prefix"
20279   exec_prefix="$acl_final_exec_prefix"
20280   eval x=\"$x\"
20281   exec_prefix="$acl_save_exec_prefix"
20282   prefix="$acl_save_prefix"
20283
20284       if test "X$x" = "X$element"; then
20285         haveit=yes
20286         break
20287       fi
20288     done
20289     if test -z "$haveit"; then
20290       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20291     fi
20292   done
20293
20294
20295   echo "$as_me:$LINENO: checking for iconv" >&5
20296 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20297 if test "${am_cv_func_iconv+set}" = set; then
20298   echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300
20301     am_cv_func_iconv="no, consider installing GNU libiconv"
20302     am_cv_lib_iconv=no
20303     if test x$gcc_no_link = xyes; then
20304   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20305 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20306    { (exit 1); exit 1; }; }
20307 fi
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 #include <stdlib.h>
20315 #include <iconv.h>
20316 int
20317 main ()
20318 {
20319 iconv_t cd = iconv_open("","");
20320        iconv(cd,NULL,NULL,NULL,NULL);
20321        iconv_close(cd);
20322   ;
20323   return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20328   (eval $ac_link) 2>conftest.er1
20329   ac_status=$?
20330   grep -v '^ *+' conftest.er1 >conftest.err
20331   rm -f conftest.er1
20332   cat conftest.err >&5
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); } &&
20335          { ac_try='test -z "$ac_c_werror_flag"
20336                          || test ! -s conftest.err'
20337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338   (eval $ac_try) 2>&5
20339   ac_status=$?
20340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341   (exit $ac_status); }; } &&
20342          { ac_try='test -s conftest$ac_exeext'
20343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344   (eval $ac_try) 2>&5
20345   ac_status=$?
20346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347   (exit $ac_status); }; }; then
20348   am_cv_func_iconv=yes
20349 else
20350   echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 fi
20354 rm -f conftest.err conftest.$ac_objext \
20355       conftest$ac_exeext conftest.$ac_ext
20356     if test "$am_cv_func_iconv" != yes; then
20357       am_save_LIBS="$LIBS"
20358       LIBS="$LIBS $LIBICONV"
20359       if test x$gcc_no_link = xyes; then
20360   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20361 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20362    { (exit 1); exit 1; }; }
20363 fi
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h.  */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h.  */
20370 #include <stdlib.h>
20371 #include <iconv.h>
20372 int
20373 main ()
20374 {
20375 iconv_t cd = iconv_open("","");
20376          iconv(cd,NULL,NULL,NULL,NULL);
20377          iconv_close(cd);
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384   (eval $ac_link) 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } &&
20391          { ac_try='test -z "$ac_c_werror_flag"
20392                          || test ! -s conftest.err'
20393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394   (eval $ac_try) 2>&5
20395   ac_status=$?
20396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397   (exit $ac_status); }; } &&
20398          { ac_try='test -s conftest$ac_exeext'
20399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400   (eval $ac_try) 2>&5
20401   ac_status=$?
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); }; }; then
20404   am_cv_lib_iconv=yes
20405         am_cv_func_iconv=yes
20406 else
20407   echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20409
20410 fi
20411 rm -f conftest.err conftest.$ac_objext \
20412       conftest$ac_exeext conftest.$ac_ext
20413       LIBS="$am_save_LIBS"
20414     fi
20415
20416 fi
20417 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20418 echo "${ECHO_T}$am_cv_func_iconv" >&6
20419   if test "$am_cv_func_iconv" = yes; then
20420
20421 cat >>confdefs.h <<\_ACEOF
20422 #define HAVE_ICONV 1
20423 _ACEOF
20424
20425   fi
20426   if test "$am_cv_lib_iconv" = yes; then
20427     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
20428 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
20429     echo "$as_me:$LINENO: result: $LIBICONV" >&5
20430 echo "${ECHO_T}$LIBICONV" >&6
20431   else
20432             CPPFLAGS="$am_save_CPPFLAGS"
20433     LIBICONV=
20434     LTLIBICONV=
20435   fi
20436
20437
20438
20439   if test "$am_cv_func_iconv" = yes; then
20440     echo "$as_me:$LINENO: checking for iconv declaration" >&5
20441 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20442     if test "${am_cv_proto_iconv+set}" = set; then
20443   echo $ECHO_N "(cached) $ECHO_C" >&6
20444 else
20445
20446       cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452
20453 #include <stdlib.h>
20454 #include <iconv.h>
20455 extern
20456 #ifdef __cplusplus
20457 "C"
20458 #endif
20459 #if defined(__STDC__) || defined(__cplusplus)
20460 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20461 #else
20462 size_t iconv();
20463 #endif
20464
20465 int
20466 main ()
20467 {
20468
20469   ;
20470   return 0;
20471 }
20472 _ACEOF
20473 rm -f conftest.$ac_objext
20474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20475   (eval $ac_compile) 2>conftest.er1
20476   ac_status=$?
20477   grep -v '^ *+' conftest.er1 >conftest.err
20478   rm -f conftest.er1
20479   cat conftest.err >&5
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); } &&
20482          { ac_try='test -z "$ac_c_werror_flag"
20483                          || test ! -s conftest.err'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; } &&
20489          { ac_try='test -s conftest.$ac_objext'
20490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20491   (eval $ac_try) 2>&5
20492   ac_status=$?
20493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20494   (exit $ac_status); }; }; then
20495   am_cv_proto_iconv_arg1=""
20496 else
20497   echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20499
20500 am_cv_proto_iconv_arg1="const"
20501 fi
20502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20503       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);"
20504 fi
20505
20506     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20507     echo "$as_me:$LINENO: result: ${ac_t:-
20508          }$am_cv_proto_iconv" >&5
20509 echo "${ECHO_T}${ac_t:-
20510          }$am_cv_proto_iconv" >&6
20511
20512 cat >>confdefs.h <<_ACEOF
20513 #define ICONV_CONST $am_cv_proto_iconv_arg1
20514 _ACEOF
20515
20516   fi
20517
20518
20519     if test "x${GCC}" = xyes; then
20520
20521             WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
20522
20523
20524                 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
20525
20526
20527             STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
20528
20529
20530             ERROR_CFLAGS=
20531     if test "x${ENABLE_WERROR}" = xyes; then
20532        ERROR_CFLAGS='-Werror'
20533     fi
20534
20535   fi
20536
20537     if test "x${COMPILE_XMLJ}" = xyes; then
20538
20539   succeeded=no
20540
20541   if test -z "$PKG_CONFIG"; then
20542     # Extract the first word of "pkg-config", so it can be a program name with args.
20543 set dummy pkg-config; ac_word=$2
20544 echo "$as_me:$LINENO: checking for $ac_word" >&5
20545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20546 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20547   echo $ECHO_N "(cached) $ECHO_C" >&6
20548 else
20549   case $PKG_CONFIG in
20550   [\\/]* | ?:[\\/]*)
20551   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20552   ;;
20553   *)
20554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20555 for as_dir in $PATH
20556 do
20557   IFS=$as_save_IFS
20558   test -z "$as_dir" && as_dir=.
20559   for ac_exec_ext in '' $ac_executable_extensions; do
20560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20561     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20563     break 2
20564   fi
20565 done
20566 done
20567
20568   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20569   ;;
20570 esac
20571 fi
20572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20573
20574 if test -n "$PKG_CONFIG"; then
20575   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20576 echo "${ECHO_T}$PKG_CONFIG" >&6
20577 else
20578   echo "$as_me:$LINENO: result: no" >&5
20579 echo "${ECHO_T}no" >&6
20580 fi
20581
20582   fi
20583
20584   if test "$PKG_CONFIG" = "no" ; then
20585      echo "*** The pkg-config script could not be found. Make sure it is"
20586      echo "*** in your path, or set the PKG_CONFIG environment variable"
20587      echo "*** to the full path to pkg-config."
20588      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20589   else
20590      PKG_CONFIG_MIN_VERSION=0.9.0
20591      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20592         echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
20593 echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6
20594
20595         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
20596             echo "$as_me:$LINENO: result: yes" >&5
20597 echo "${ECHO_T}yes" >&6
20598             succeeded=yes
20599
20600             echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
20601 echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6
20602             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
20603             echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
20604 echo "${ECHO_T}$XML_CFLAGS" >&6
20605
20606             echo "$as_me:$LINENO: checking XML_LIBS" >&5
20607 echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6
20608             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
20609             echo "$as_me:$LINENO: result: $XML_LIBS" >&5
20610 echo "${ECHO_T}$XML_LIBS" >&6
20611         else
20612             XML_CFLAGS=""
20613             XML_LIBS=""
20614             ## If we have a custom action on failure, don't print errors, but
20615             ## do set a variable so people can do so.
20616             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
20617             echo $XML_PKG_ERRORS
20618         fi
20619
20620
20621
20622      else
20623         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20624         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20625      fi
20626   fi
20627
20628   if test $succeeded = yes; then
20629      :
20630   else
20631      { { 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
20632 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;}
20633    { (exit 1); exit 1; }; }
20634   fi
20635
20636
20637   succeeded=no
20638
20639   if test -z "$PKG_CONFIG"; then
20640     # Extract the first word of "pkg-config", so it can be a program name with args.
20641 set dummy pkg-config; ac_word=$2
20642 echo "$as_me:$LINENO: checking for $ac_word" >&5
20643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20645   echo $ECHO_N "(cached) $ECHO_C" >&6
20646 else
20647   case $PKG_CONFIG in
20648   [\\/]* | ?:[\\/]*)
20649   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20650   ;;
20651   *)
20652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20653 for as_dir in $PATH
20654 do
20655   IFS=$as_save_IFS
20656   test -z "$as_dir" && as_dir=.
20657   for ac_exec_ext in '' $ac_executable_extensions; do
20658   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20659     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20661     break 2
20662   fi
20663 done
20664 done
20665
20666   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20667   ;;
20668 esac
20669 fi
20670 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20671
20672 if test -n "$PKG_CONFIG"; then
20673   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20674 echo "${ECHO_T}$PKG_CONFIG" >&6
20675 else
20676   echo "$as_me:$LINENO: result: no" >&5
20677 echo "${ECHO_T}no" >&6
20678 fi
20679
20680   fi
20681
20682   if test "$PKG_CONFIG" = "no" ; then
20683      echo "*** The pkg-config script could not be found. Make sure it is"
20684      echo "*** in your path, or set the PKG_CONFIG environment variable"
20685      echo "*** to the full path to pkg-config."
20686      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20687   else
20688      PKG_CONFIG_MIN_VERSION=0.9.0
20689      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20690         echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
20691 echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6
20692
20693         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
20694             echo "$as_me:$LINENO: result: yes" >&5
20695 echo "${ECHO_T}yes" >&6
20696             succeeded=yes
20697
20698             echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
20699 echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6
20700             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
20701             echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
20702 echo "${ECHO_T}$XSLT_CFLAGS" >&6
20703
20704             echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
20705 echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6
20706             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
20707             echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
20708 echo "${ECHO_T}$XSLT_LIBS" >&6
20709         else
20710             XSLT_CFLAGS=""
20711             XSLT_LIBS=""
20712             ## If we have a custom action on failure, don't print errors, but
20713             ## do set a variable so people can do so.
20714             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
20715             echo $XSLT_PKG_ERRORS
20716         fi
20717
20718
20719
20720      else
20721         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20722         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20723      fi
20724   fi
20725
20726   if test $succeeded = yes; then
20727      :
20728   else
20729      { { 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
20730 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;}
20731    { (exit 1); exit 1; }; }
20732   fi
20733
20734
20735
20736
20737
20738   fi
20739
20740     if test "x${COMPILE_GTK_PEER}" = xyes; then
20741     echo "$as_me:$LINENO: checking for X" >&5
20742 echo $ECHO_N "checking for X... $ECHO_C" >&6
20743
20744
20745 # Check whether --with-x or --without-x was given.
20746 if test "${with_x+set}" = set; then
20747   withval="$with_x"
20748
20749 fi;
20750 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20751 if test "x$with_x" = xno; then
20752   # The user explicitly disabled X.
20753   have_x=disabled
20754 else
20755   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20756     # Both variables are already set.
20757     have_x=yes
20758   else
20759     if test "${ac_cv_have_x+set}" = set; then
20760   echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762   # One or both of the vars are not set, and there is no cached value.
20763 ac_x_includes=no ac_x_libraries=no
20764 rm -fr conftest.dir
20765 if mkdir conftest.dir; then
20766   cd conftest.dir
20767   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20768   cat >Imakefile <<'_ACEOF'
20769 acfindx:
20770         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20771 _ACEOF
20772   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20773     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20774     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20775     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20776     for ac_extension in a so sl; do
20777       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20778          test -f $ac_im_libdir/libX11.$ac_extension; then
20779         ac_im_usrlibdir=$ac_im_libdir; break
20780       fi
20781     done
20782     # Screen out bogus values from the imake configuration.  They are
20783     # bogus both because they are the default anyway, and because
20784     # using them would break gcc on systems where it needs fixed includes.
20785     case $ac_im_incroot in
20786         /usr/include) ;;
20787         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20788     esac
20789     case $ac_im_usrlibdir in
20790         /usr/lib | /lib) ;;
20791         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20792     esac
20793   fi
20794   cd ..
20795   rm -fr conftest.dir
20796 fi
20797
20798 # Standard set of common directories for X headers.
20799 # Check X11 before X11Rn because it is often a symlink to the current release.
20800 ac_x_header_dirs='
20801 /usr/X11/include
20802 /usr/X11R6/include
20803 /usr/X11R5/include
20804 /usr/X11R4/include
20805
20806 /usr/include/X11
20807 /usr/include/X11R6
20808 /usr/include/X11R5
20809 /usr/include/X11R4
20810
20811 /usr/local/X11/include
20812 /usr/local/X11R6/include
20813 /usr/local/X11R5/include
20814 /usr/local/X11R4/include
20815
20816 /usr/local/include/X11
20817 /usr/local/include/X11R6
20818 /usr/local/include/X11R5
20819 /usr/local/include/X11R4
20820
20821 /usr/X386/include
20822 /usr/x386/include
20823 /usr/XFree86/include/X11
20824
20825 /usr/include
20826 /usr/local/include
20827 /usr/unsupported/include
20828 /usr/athena/include
20829 /usr/local/x11r5/include
20830 /usr/lpp/Xamples/include
20831
20832 /usr/openwin/include
20833 /usr/openwin/share/include'
20834
20835 if test "$ac_x_includes" = no; then
20836   # Guess where to find include files, by looking for Intrinsic.h.
20837   # First, try using that file with no special directory specified.
20838   cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h.  */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h.  */
20844 #include <X11/Intrinsic.h>
20845 _ACEOF
20846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } >/dev/null; then
20854   if test -s conftest.err; then
20855     ac_cpp_err=$ac_c_preproc_warn_flag
20856     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20857   else
20858     ac_cpp_err=
20859   fi
20860 else
20861   ac_cpp_err=yes
20862 fi
20863 if test -z "$ac_cpp_err"; then
20864   # We can compile using X headers with no special include directory.
20865 ac_x_includes=
20866 else
20867   echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870   for ac_dir in $ac_x_header_dirs; do
20871   if test -r "$ac_dir/X11/Intrinsic.h"; then
20872     ac_x_includes=$ac_dir
20873     break
20874   fi
20875 done
20876 fi
20877 rm -f conftest.err conftest.$ac_ext
20878 fi # $ac_x_includes = no
20879
20880 if test "$ac_x_libraries" = no; then
20881   # Check for the libraries.
20882   # See if we find them without any special options.
20883   # Don't add to $LIBS permanently.
20884   ac_save_LIBS=$LIBS
20885   LIBS="-lXt $LIBS"
20886   if test x$gcc_no_link = xyes; then
20887   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20888 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20889    { (exit 1); exit 1; }; }
20890 fi
20891 cat >conftest.$ac_ext <<_ACEOF
20892 /* confdefs.h.  */
20893 _ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h.  */
20897 #include <X11/Intrinsic.h>
20898 int
20899 main ()
20900 {
20901 XtMalloc (0)
20902   ;
20903   return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext conftest$ac_exeext
20907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908   (eval $ac_link) 2>conftest.er1
20909   ac_status=$?
20910   grep -v '^ *+' conftest.er1 >conftest.err
20911   rm -f conftest.er1
20912   cat conftest.err >&5
20913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914   (exit $ac_status); } &&
20915          { ac_try='test -z "$ac_c_werror_flag"
20916                          || test ! -s conftest.err'
20917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918   (eval $ac_try) 2>&5
20919   ac_status=$?
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); }; } &&
20922          { ac_try='test -s conftest$ac_exeext'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; }; then
20928   LIBS=$ac_save_LIBS
20929 # We can link X programs with no special library path.
20930 ac_x_libraries=
20931 else
20932   echo "$as_me: failed program was:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20934
20935 LIBS=$ac_save_LIBS
20936 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20937 do
20938   # Don't even attempt the hair of trying to link an X program!
20939   for ac_extension in a so sl; do
20940     if test -r $ac_dir/libXt.$ac_extension; then
20941       ac_x_libraries=$ac_dir
20942       break 2
20943     fi
20944   done
20945 done
20946 fi
20947 rm -f conftest.err conftest.$ac_objext \
20948       conftest$ac_exeext conftest.$ac_ext
20949 fi # $ac_x_libraries = no
20950
20951 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20952   # Didn't find X anywhere.  Cache the known absence of X.
20953   ac_cv_have_x="have_x=no"
20954 else
20955   # Record where we found X for the cache.
20956   ac_cv_have_x="have_x=yes \
20957                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20958 fi
20959 fi
20960
20961   fi
20962   eval "$ac_cv_have_x"
20963 fi # $with_x != no
20964
20965 if test "$have_x" != yes; then
20966   echo "$as_me:$LINENO: result: $have_x" >&5
20967 echo "${ECHO_T}$have_x" >&6
20968   no_x=yes
20969 else
20970   # If each of the values was on the command line, it overrides each guess.
20971   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20972   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20973   # Update the cache value to reflect the command line values.
20974   ac_cv_have_x="have_x=yes \
20975                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20976   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20977 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20978 fi
20979
20980 if test "$no_x" = yes; then
20981   # Not all programs may use this symbol, but it does not hurt to define it.
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define X_DISPLAY_MISSING 1
20985 _ACEOF
20986
20987   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20988 else
20989   if test -n "$x_includes"; then
20990     X_CFLAGS="$X_CFLAGS -I$x_includes"
20991   fi
20992
20993   # It would also be nice to do this for all -L options, not just this one.
20994   if test -n "$x_libraries"; then
20995     X_LIBS="$X_LIBS -L$x_libraries"
20996     # For Solaris; some versions of Sun CC require a space after -R and
20997     # others require no space.  Words are not sufficient . . . .
20998     case `(uname -sr) 2>/dev/null` in
20999     "SunOS 5"*)
21000       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21001 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21002       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21003       if test x$gcc_no_link = xyes; then
21004   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21005 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21006    { (exit 1); exit 1; }; }
21007 fi
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h.  */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h.  */
21014
21015 int
21016 main ()
21017 {
21018
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025   (eval $ac_link) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_c_werror_flag"
21033                          || test ! -s conftest.err'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_R_nospace=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_R_nospace=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053       conftest$ac_exeext conftest.$ac_ext
21054       if test $ac_R_nospace = yes; then
21055         echo "$as_me:$LINENO: result: no" >&5
21056 echo "${ECHO_T}no" >&6
21057         X_LIBS="$X_LIBS -R$x_libraries"
21058       else
21059         LIBS="$ac_xsave_LIBS -R $x_libraries"
21060         if test x$gcc_no_link = xyes; then
21061   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21062 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21063    { (exit 1); exit 1; }; }
21064 fi
21065 cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071
21072 int
21073 main ()
21074 {
21075
21076   ;
21077   return 0;
21078 }
21079 _ACEOF
21080 rm -f conftest.$ac_objext conftest$ac_exeext
21081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21082   (eval $ac_link) 2>conftest.er1
21083   ac_status=$?
21084   grep -v '^ *+' conftest.er1 >conftest.err
21085   rm -f conftest.er1
21086   cat conftest.err >&5
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); } &&
21089          { ac_try='test -z "$ac_c_werror_flag"
21090                          || test ! -s conftest.err'
21091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092   (eval $ac_try) 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); }; } &&
21096          { ac_try='test -s conftest$ac_exeext'
21097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21098   (eval $ac_try) 2>&5
21099   ac_status=$?
21100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21101   (exit $ac_status); }; }; then
21102   ac_R_space=yes
21103 else
21104   echo "$as_me: failed program was:" >&5
21105 sed 's/^/| /' conftest.$ac_ext >&5
21106
21107 ac_R_space=no
21108 fi
21109 rm -f conftest.err conftest.$ac_objext \
21110       conftest$ac_exeext conftest.$ac_ext
21111         if test $ac_R_space = yes; then
21112           echo "$as_me:$LINENO: result: yes" >&5
21113 echo "${ECHO_T}yes" >&6
21114           X_LIBS="$X_LIBS -R $x_libraries"
21115         else
21116           echo "$as_me:$LINENO: result: neither works" >&5
21117 echo "${ECHO_T}neither works" >&6
21118         fi
21119       fi
21120       LIBS=$ac_xsave_LIBS
21121     esac
21122   fi
21123
21124   # Check for system-dependent libraries X programs must link with.
21125   # Do this before checking for the system-independent R6 libraries
21126   # (-lICE), since we may need -lsocket or whatever for X linking.
21127
21128   if test "$ISC" = yes; then
21129     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21130   else
21131     # Martyn Johnson says this is needed for Ultrix, if the X
21132     # libraries were built with DECnet support.  And Karl Berry says
21133     # the Alpha needs dnet_stub (dnet does not exist).
21134     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21135     if test x$gcc_no_link = xyes; then
21136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21138    { (exit 1); exit 1; }; }
21139 fi
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147 /* Override any gcc2 internal prototype to avoid an error.  */
21148 #ifdef __cplusplus
21149 extern "C"
21150 #endif
21151 /* We use char because int might match the return type of a gcc2
21152    builtin and then its argument prototype would still apply.  */
21153 char XOpenDisplay ();
21154 int
21155 main ()
21156 {
21157 XOpenDisplay ();
21158   ;
21159   return 0;
21160 }
21161 _ACEOF
21162 rm -f conftest.$ac_objext conftest$ac_exeext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21164   (eval $ac_link) 2>conftest.er1
21165   ac_status=$?
21166   grep -v '^ *+' conftest.er1 >conftest.err
21167   rm -f conftest.er1
21168   cat conftest.err >&5
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); } &&
21171          { ac_try='test -z "$ac_c_werror_flag"
21172                          || test ! -s conftest.err'
21173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174   (eval $ac_try) 2>&5
21175   ac_status=$?
21176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177   (exit $ac_status); }; } &&
21178          { ac_try='test -s conftest$ac_exeext'
21179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180   (eval $ac_try) 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; }; then
21184   :
21185 else
21186   echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21190 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21191 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194   ac_check_lib_save_LIBS=$LIBS
21195 LIBS="-ldnet  $LIBS"
21196 if test x$gcc_no_link = xyes; then
21197   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21198 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21199    { (exit 1); exit 1; }; }
21200 fi
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h.  */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h.  */
21207
21208 /* Override any gcc2 internal prototype to avoid an error.  */
21209 #ifdef __cplusplus
21210 extern "C"
21211 #endif
21212 /* We use char because int might match the return type of a gcc2
21213    builtin and then its argument prototype would still apply.  */
21214 char dnet_ntoa ();
21215 int
21216 main ()
21217 {
21218 dnet_ntoa ();
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21225   (eval $ac_link) 2>conftest.er1
21226   ac_status=$?
21227   grep -v '^ *+' conftest.er1 >conftest.err
21228   rm -f conftest.er1
21229   cat conftest.err >&5
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); } &&
21232          { ac_try='test -z "$ac_c_werror_flag"
21233                          || test ! -s conftest.err'
21234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21235   (eval $ac_try) 2>&5
21236   ac_status=$?
21237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238   (exit $ac_status); }; } &&
21239          { ac_try='test -s conftest$ac_exeext'
21240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241   (eval $ac_try) 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); }; }; then
21245   ac_cv_lib_dnet_dnet_ntoa=yes
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 ac_cv_lib_dnet_dnet_ntoa=no
21251 fi
21252 rm -f conftest.err conftest.$ac_objext \
21253       conftest$ac_exeext conftest.$ac_ext
21254 LIBS=$ac_check_lib_save_LIBS
21255 fi
21256 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21257 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21258 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21259   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21260 fi
21261
21262     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21263       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21264 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21265 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 else
21268   ac_check_lib_save_LIBS=$LIBS
21269 LIBS="-ldnet_stub  $LIBS"
21270 if test x$gcc_no_link = xyes; then
21271   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21272 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21273    { (exit 1); exit 1; }; }
21274 fi
21275 cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 /* Override any gcc2 internal prototype to avoid an error.  */
21283 #ifdef __cplusplus
21284 extern "C"
21285 #endif
21286 /* We use char because int might match the return type of a gcc2
21287    builtin and then its argument prototype would still apply.  */
21288 char dnet_ntoa ();
21289 int
21290 main ()
21291 {
21292 dnet_ntoa ();
21293   ;
21294   return 0;
21295 }
21296 _ACEOF
21297 rm -f conftest.$ac_objext conftest$ac_exeext
21298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21299   (eval $ac_link) 2>conftest.er1
21300   ac_status=$?
21301   grep -v '^ *+' conftest.er1 >conftest.err
21302   rm -f conftest.er1
21303   cat conftest.err >&5
21304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305   (exit $ac_status); } &&
21306          { ac_try='test -z "$ac_c_werror_flag"
21307                          || test ! -s conftest.err'
21308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21309   (eval $ac_try) 2>&5
21310   ac_status=$?
21311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312   (exit $ac_status); }; } &&
21313          { ac_try='test -s conftest$ac_exeext'
21314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315   (eval $ac_try) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); }; }; then
21319   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21320 else
21321   echo "$as_me: failed program was:" >&5
21322 sed 's/^/| /' conftest.$ac_ext >&5
21323
21324 ac_cv_lib_dnet_stub_dnet_ntoa=no
21325 fi
21326 rm -f conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21331 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21332 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21333   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21334 fi
21335
21336     fi
21337 fi
21338 rm -f conftest.err conftest.$ac_objext \
21339       conftest$ac_exeext conftest.$ac_ext
21340     LIBS="$ac_xsave_LIBS"
21341
21342     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21343     # to get the SysV transport functions.
21344     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21345     # needs -lnsl.
21346     # The nsl library prevents programs from opening the X display
21347     # on Irix 5.2, according to T.E. Dickey.
21348     # The functions gethostbyname, getservbyname, and inet_addr are
21349     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21350     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21351 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21352 if test "${ac_cv_func_gethostbyname+set}" = set; then
21353   echo $ECHO_N "(cached) $ECHO_C" >&6
21354 else
21355   if test x$gcc_no_link = xyes; then
21356   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21358    { (exit 1); exit 1; }; }
21359 fi
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
21367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21368 #define gethostbyname innocuous_gethostbyname
21369
21370 /* System header to define __stub macros and hopefully few prototypes,
21371     which can conflict with char gethostbyname (); below.
21372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373     <limits.h> exists even on freestanding compilers.  */
21374
21375 #ifdef __STDC__
21376 # include <limits.h>
21377 #else
21378 # include <assert.h>
21379 #endif
21380
21381 #undef gethostbyname
21382
21383 /* Override any gcc2 internal prototype to avoid an error.  */
21384 #ifdef __cplusplus
21385 extern "C"
21386 {
21387 #endif
21388 /* We use char because int might match the return type of a gcc2
21389    builtin and then its argument prototype would still apply.  */
21390 char gethostbyname ();
21391 /* The GNU C library defines this for functions which it implements
21392     to always fail with ENOSYS.  Some functions are actually named
21393     something starting with __ and the normal name is an alias.  */
21394 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21395 choke me
21396 #else
21397 char (*f) () = gethostbyname;
21398 #endif
21399 #ifdef __cplusplus
21400 }
21401 #endif
21402
21403 int
21404 main ()
21405 {
21406 return f != gethostbyname;
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -z "$ac_c_werror_flag"
21421                          || test ! -s conftest.err'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; } &&
21427          { ac_try='test -s conftest$ac_exeext'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   ac_cv_func_gethostbyname=yes
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_cv_func_gethostbyname=no
21439 fi
21440 rm -f conftest.err conftest.$ac_objext \
21441       conftest$ac_exeext conftest.$ac_ext
21442 fi
21443 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21444 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21445
21446     if test $ac_cv_func_gethostbyname = no; then
21447       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21448 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21449 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21450   echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452   ac_check_lib_save_LIBS=$LIBS
21453 LIBS="-lnsl  $LIBS"
21454 if test x$gcc_no_link = xyes; then
21455   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21457    { (exit 1); exit 1; }; }
21458 fi
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465
21466 /* Override any gcc2 internal prototype to avoid an error.  */
21467 #ifdef __cplusplus
21468 extern "C"
21469 #endif
21470 /* We use char because int might match the return type of a gcc2
21471    builtin and then its argument prototype would still apply.  */
21472 char gethostbyname ();
21473 int
21474 main ()
21475 {
21476 gethostbyname ();
21477   ;
21478   return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21483   (eval $ac_link) 2>conftest.er1
21484   ac_status=$?
21485   grep -v '^ *+' conftest.er1 >conftest.err
21486   rm -f conftest.er1
21487   cat conftest.err >&5
21488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489   (exit $ac_status); } &&
21490          { ac_try='test -z "$ac_c_werror_flag"
21491                          || test ! -s conftest.err'
21492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21493   (eval $ac_try) 2>&5
21494   ac_status=$?
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); }; } &&
21497          { ac_try='test -s conftest$ac_exeext'
21498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499   (eval $ac_try) 2>&5
21500   ac_status=$?
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); }; }; then
21503   ac_cv_lib_nsl_gethostbyname=yes
21504 else
21505   echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 ac_cv_lib_nsl_gethostbyname=no
21509 fi
21510 rm -f conftest.err conftest.$ac_objext \
21511       conftest$ac_exeext conftest.$ac_ext
21512 LIBS=$ac_check_lib_save_LIBS
21513 fi
21514 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21515 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21516 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21517   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21518 fi
21519
21520       if test $ac_cv_lib_nsl_gethostbyname = no; then
21521         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21522 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21523 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526   ac_check_lib_save_LIBS=$LIBS
21527 LIBS="-lbsd  $LIBS"
21528 if test x$gcc_no_link = xyes; then
21529   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21531    { (exit 1); exit 1; }; }
21532 fi
21533 cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h.  */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h.  */
21539
21540 /* Override any gcc2 internal prototype to avoid an error.  */
21541 #ifdef __cplusplus
21542 extern "C"
21543 #endif
21544 /* We use char because int might match the return type of a gcc2
21545    builtin and then its argument prototype would still apply.  */
21546 char gethostbyname ();
21547 int
21548 main ()
21549 {
21550 gethostbyname ();
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21557   (eval $ac_link) 2>conftest.er1
21558   ac_status=$?
21559   grep -v '^ *+' conftest.er1 >conftest.err
21560   rm -f conftest.er1
21561   cat conftest.err >&5
21562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); } &&
21564          { ac_try='test -z "$ac_c_werror_flag"
21565                          || test ! -s conftest.err'
21566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567   (eval $ac_try) 2>&5
21568   ac_status=$?
21569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570   (exit $ac_status); }; } &&
21571          { ac_try='test -s conftest$ac_exeext'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; }; then
21577   ac_cv_lib_bsd_gethostbyname=yes
21578 else
21579   echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ac_cv_lib_bsd_gethostbyname=no
21583 fi
21584 rm -f conftest.err conftest.$ac_objext \
21585       conftest$ac_exeext conftest.$ac_ext
21586 LIBS=$ac_check_lib_save_LIBS
21587 fi
21588 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21589 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21590 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21591   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21592 fi
21593
21594       fi
21595     fi
21596
21597     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21598     # socket/setsockopt and other routines are undefined under SCO ODT
21599     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21600     # on later versions), says Simon Leinen: it contains gethostby*
21601     # variants that don't use the name server (or something).  -lsocket
21602     # must be given before -lnsl if both are needed.  We assume that
21603     # if connect needs -lnsl, so does gethostbyname.
21604     echo "$as_me:$LINENO: checking for connect" >&5
21605 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21606 if test "${ac_cv_func_connect+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609   if test x$gcc_no_link = xyes; then
21610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21612    { (exit 1); exit 1; }; }
21613 fi
21614 cat >conftest.$ac_ext <<_ACEOF
21615 /* confdefs.h.  */
21616 _ACEOF
21617 cat confdefs.h >>conftest.$ac_ext
21618 cat >>conftest.$ac_ext <<_ACEOF
21619 /* end confdefs.h.  */
21620 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
21621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21622 #define connect innocuous_connect
21623
21624 /* System header to define __stub macros and hopefully few prototypes,
21625     which can conflict with char connect (); below.
21626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21627     <limits.h> exists even on freestanding compilers.  */
21628
21629 #ifdef __STDC__
21630 # include <limits.h>
21631 #else
21632 # include <assert.h>
21633 #endif
21634
21635 #undef connect
21636
21637 /* Override any gcc2 internal prototype to avoid an error.  */
21638 #ifdef __cplusplus
21639 extern "C"
21640 {
21641 #endif
21642 /* We use char because int might match the return type of a gcc2
21643    builtin and then its argument prototype would still apply.  */
21644 char connect ();
21645 /* The GNU C library defines this for functions which it implements
21646     to always fail with ENOSYS.  Some functions are actually named
21647     something starting with __ and the normal name is an alias.  */
21648 #if defined (__stub_connect) || defined (__stub___connect)
21649 choke me
21650 #else
21651 char (*f) () = connect;
21652 #endif
21653 #ifdef __cplusplus
21654 }
21655 #endif
21656
21657 int
21658 main ()
21659 {
21660 return f != connect;
21661   ;
21662   return 0;
21663 }
21664 _ACEOF
21665 rm -f conftest.$ac_objext conftest$ac_exeext
21666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21667   (eval $ac_link) 2>conftest.er1
21668   ac_status=$?
21669   grep -v '^ *+' conftest.er1 >conftest.err
21670   rm -f conftest.er1
21671   cat conftest.err >&5
21672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673   (exit $ac_status); } &&
21674          { ac_try='test -z "$ac_c_werror_flag"
21675                          || test ! -s conftest.err'
21676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21677   (eval $ac_try) 2>&5
21678   ac_status=$?
21679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680   (exit $ac_status); }; } &&
21681          { ac_try='test -s conftest$ac_exeext'
21682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683   (eval $ac_try) 2>&5
21684   ac_status=$?
21685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686   (exit $ac_status); }; }; then
21687   ac_cv_func_connect=yes
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692 ac_cv_func_connect=no
21693 fi
21694 rm -f conftest.err conftest.$ac_objext \
21695       conftest$ac_exeext conftest.$ac_ext
21696 fi
21697 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21698 echo "${ECHO_T}$ac_cv_func_connect" >&6
21699
21700     if test $ac_cv_func_connect = no; then
21701       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21702 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21703 if test "${ac_cv_lib_socket_connect+set}" = set; then
21704   echo $ECHO_N "(cached) $ECHO_C" >&6
21705 else
21706   ac_check_lib_save_LIBS=$LIBS
21707 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21708 if test x$gcc_no_link = xyes; then
21709   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21711    { (exit 1); exit 1; }; }
21712 fi
21713 cat >conftest.$ac_ext <<_ACEOF
21714 /* confdefs.h.  */
21715 _ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h.  */
21719
21720 /* Override any gcc2 internal prototype to avoid an error.  */
21721 #ifdef __cplusplus
21722 extern "C"
21723 #endif
21724 /* We use char because int might match the return type of a gcc2
21725    builtin and then its argument prototype would still apply.  */
21726 char connect ();
21727 int
21728 main ()
21729 {
21730 connect ();
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21737   (eval $ac_link) 2>conftest.er1
21738   ac_status=$?
21739   grep -v '^ *+' conftest.er1 >conftest.err
21740   rm -f conftest.er1
21741   cat conftest.err >&5
21742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743   (exit $ac_status); } &&
21744          { ac_try='test -z "$ac_c_werror_flag"
21745                          || test ! -s conftest.err'
21746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747   (eval $ac_try) 2>&5
21748   ac_status=$?
21749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750   (exit $ac_status); }; } &&
21751          { ac_try='test -s conftest$ac_exeext'
21752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21753   (eval $ac_try) 2>&5
21754   ac_status=$?
21755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756   (exit $ac_status); }; }; then
21757   ac_cv_lib_socket_connect=yes
21758 else
21759   echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.$ac_ext >&5
21761
21762 ac_cv_lib_socket_connect=no
21763 fi
21764 rm -f conftest.err conftest.$ac_objext \
21765       conftest$ac_exeext conftest.$ac_ext
21766 LIBS=$ac_check_lib_save_LIBS
21767 fi
21768 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21769 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21770 if test $ac_cv_lib_socket_connect = yes; then
21771   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21772 fi
21773
21774     fi
21775
21776     # Guillermo Gomez says -lposix is necessary on A/UX.
21777     echo "$as_me:$LINENO: checking for remove" >&5
21778 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21779 if test "${ac_cv_func_remove+set}" = set; then
21780   echo $ECHO_N "(cached) $ECHO_C" >&6
21781 else
21782   if test x$gcc_no_link = xyes; then
21783   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21785    { (exit 1); exit 1; }; }
21786 fi
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h.  */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h.  */
21793 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21795 #define remove innocuous_remove
21796
21797 /* System header to define __stub macros and hopefully few prototypes,
21798     which can conflict with char remove (); below.
21799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21800     <limits.h> exists even on freestanding compilers.  */
21801
21802 #ifdef __STDC__
21803 # include <limits.h>
21804 #else
21805 # include <assert.h>
21806 #endif
21807
21808 #undef remove
21809
21810 /* Override any gcc2 internal prototype to avoid an error.  */
21811 #ifdef __cplusplus
21812 extern "C"
21813 {
21814 #endif
21815 /* We use char because int might match the return type of a gcc2
21816    builtin and then its argument prototype would still apply.  */
21817 char remove ();
21818 /* The GNU C library defines this for functions which it implements
21819     to always fail with ENOSYS.  Some functions are actually named
21820     something starting with __ and the normal name is an alias.  */
21821 #if defined (__stub_remove) || defined (__stub___remove)
21822 choke me
21823 #else
21824 char (*f) () = remove;
21825 #endif
21826 #ifdef __cplusplus
21827 }
21828 #endif
21829
21830 int
21831 main ()
21832 {
21833 return f != remove;
21834   ;
21835   return 0;
21836 }
21837 _ACEOF
21838 rm -f conftest.$ac_objext conftest$ac_exeext
21839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21840   (eval $ac_link) 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } &&
21847          { ac_try='test -z "$ac_c_werror_flag"
21848                          || test ! -s conftest.err'
21849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850   (eval $ac_try) 2>&5
21851   ac_status=$?
21852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853   (exit $ac_status); }; } &&
21854          { ac_try='test -s conftest$ac_exeext'
21855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856   (eval $ac_try) 2>&5
21857   ac_status=$?
21858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859   (exit $ac_status); }; }; then
21860   ac_cv_func_remove=yes
21861 else
21862   echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.$ac_ext >&5
21864
21865 ac_cv_func_remove=no
21866 fi
21867 rm -f conftest.err conftest.$ac_objext \
21868       conftest$ac_exeext conftest.$ac_ext
21869 fi
21870 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21871 echo "${ECHO_T}$ac_cv_func_remove" >&6
21872
21873     if test $ac_cv_func_remove = no; then
21874       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21875 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21876 if test "${ac_cv_lib_posix_remove+set}" = set; then
21877   echo $ECHO_N "(cached) $ECHO_C" >&6
21878 else
21879   ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lposix  $LIBS"
21881 if test x$gcc_no_link = xyes; then
21882   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21884    { (exit 1); exit 1; }; }
21885 fi
21886 cat >conftest.$ac_ext <<_ACEOF
21887 /* confdefs.h.  */
21888 _ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h.  */
21892
21893 /* Override any gcc2 internal prototype to avoid an error.  */
21894 #ifdef __cplusplus
21895 extern "C"
21896 #endif
21897 /* We use char because int might match the return type of a gcc2
21898    builtin and then its argument prototype would still apply.  */
21899 char remove ();
21900 int
21901 main ()
21902 {
21903 remove ();
21904   ;
21905   return 0;
21906 }
21907 _ACEOF
21908 rm -f conftest.$ac_objext conftest$ac_exeext
21909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21910   (eval $ac_link) 2>conftest.er1
21911   ac_status=$?
21912   grep -v '^ *+' conftest.er1 >conftest.err
21913   rm -f conftest.er1
21914   cat conftest.err >&5
21915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21916   (exit $ac_status); } &&
21917          { ac_try='test -z "$ac_c_werror_flag"
21918                          || test ! -s conftest.err'
21919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21920   (eval $ac_try) 2>&5
21921   ac_status=$?
21922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923   (exit $ac_status); }; } &&
21924          { ac_try='test -s conftest$ac_exeext'
21925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21926   (eval $ac_try) 2>&5
21927   ac_status=$?
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); }; }; then
21930   ac_cv_lib_posix_remove=yes
21931 else
21932   echo "$as_me: failed program was:" >&5
21933 sed 's/^/| /' conftest.$ac_ext >&5
21934
21935 ac_cv_lib_posix_remove=no
21936 fi
21937 rm -f conftest.err conftest.$ac_objext \
21938       conftest$ac_exeext conftest.$ac_ext
21939 LIBS=$ac_check_lib_save_LIBS
21940 fi
21941 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21942 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21943 if test $ac_cv_lib_posix_remove = yes; then
21944   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21945 fi
21946
21947     fi
21948
21949     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21950     echo "$as_me:$LINENO: checking for shmat" >&5
21951 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21952 if test "${ac_cv_func_shmat+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955   if test x$gcc_no_link = xyes; then
21956   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21957 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21958    { (exit 1); exit 1; }; }
21959 fi
21960 cat >conftest.$ac_ext <<_ACEOF
21961 /* confdefs.h.  */
21962 _ACEOF
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h.  */
21966 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21968 #define shmat innocuous_shmat
21969
21970 /* System header to define __stub macros and hopefully few prototypes,
21971     which can conflict with char shmat (); below.
21972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21973     <limits.h> exists even on freestanding compilers.  */
21974
21975 #ifdef __STDC__
21976 # include <limits.h>
21977 #else
21978 # include <assert.h>
21979 #endif
21980
21981 #undef shmat
21982
21983 /* Override any gcc2 internal prototype to avoid an error.  */
21984 #ifdef __cplusplus
21985 extern "C"
21986 {
21987 #endif
21988 /* We use char because int might match the return type of a gcc2
21989    builtin and then its argument prototype would still apply.  */
21990 char shmat ();
21991 /* The GNU C library defines this for functions which it implements
21992     to always fail with ENOSYS.  Some functions are actually named
21993     something starting with __ and the normal name is an alias.  */
21994 #if defined (__stub_shmat) || defined (__stub___shmat)
21995 choke me
21996 #else
21997 char (*f) () = shmat;
21998 #endif
21999 #ifdef __cplusplus
22000 }
22001 #endif
22002
22003 int
22004 main ()
22005 {
22006 return f != shmat;
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 rm -f conftest.$ac_objext conftest$ac_exeext
22012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22013   (eval $ac_link) 2>conftest.er1
22014   ac_status=$?
22015   grep -v '^ *+' conftest.er1 >conftest.err
22016   rm -f conftest.er1
22017   cat conftest.err >&5
22018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019   (exit $ac_status); } &&
22020          { ac_try='test -z "$ac_c_werror_flag"
22021                          || test ! -s conftest.err'
22022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023   (eval $ac_try) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); }; } &&
22027          { ac_try='test -s conftest$ac_exeext'
22028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029   (eval $ac_try) 2>&5
22030   ac_status=$?
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); }; }; then
22033   ac_cv_func_shmat=yes
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ac_cv_func_shmat=no
22039 fi
22040 rm -f conftest.err conftest.$ac_objext \
22041       conftest$ac_exeext conftest.$ac_ext
22042 fi
22043 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22044 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22045
22046     if test $ac_cv_func_shmat = no; then
22047       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22048 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22049 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22050   echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052   ac_check_lib_save_LIBS=$LIBS
22053 LIBS="-lipc  $LIBS"
22054 if test x$gcc_no_link = xyes; then
22055   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22056 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22057    { (exit 1); exit 1; }; }
22058 fi
22059 cat >conftest.$ac_ext <<_ACEOF
22060 /* confdefs.h.  */
22061 _ACEOF
22062 cat confdefs.h >>conftest.$ac_ext
22063 cat >>conftest.$ac_ext <<_ACEOF
22064 /* end confdefs.h.  */
22065
22066 /* Override any gcc2 internal prototype to avoid an error.  */
22067 #ifdef __cplusplus
22068 extern "C"
22069 #endif
22070 /* We use char because int might match the return type of a gcc2
22071    builtin and then its argument prototype would still apply.  */
22072 char shmat ();
22073 int
22074 main ()
22075 {
22076 shmat ();
22077   ;
22078   return 0;
22079 }
22080 _ACEOF
22081 rm -f conftest.$ac_objext conftest$ac_exeext
22082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22083   (eval $ac_link) 2>conftest.er1
22084   ac_status=$?
22085   grep -v '^ *+' conftest.er1 >conftest.err
22086   rm -f conftest.er1
22087   cat conftest.err >&5
22088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); } &&
22090          { ac_try='test -z "$ac_c_werror_flag"
22091                          || test ! -s conftest.err'
22092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093   (eval $ac_try) 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); }; } &&
22097          { ac_try='test -s conftest$ac_exeext'
22098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099   (eval $ac_try) 2>&5
22100   ac_status=$?
22101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102   (exit $ac_status); }; }; then
22103   ac_cv_lib_ipc_shmat=yes
22104 else
22105   echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22107
22108 ac_cv_lib_ipc_shmat=no
22109 fi
22110 rm -f conftest.err conftest.$ac_objext \
22111       conftest$ac_exeext conftest.$ac_ext
22112 LIBS=$ac_check_lib_save_LIBS
22113 fi
22114 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22115 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22116 if test $ac_cv_lib_ipc_shmat = yes; then
22117   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22118 fi
22119
22120     fi
22121   fi
22122
22123   # Check for libraries that X11R6 Xt/Xaw programs need.
22124   ac_save_LDFLAGS=$LDFLAGS
22125   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22126   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22127   # check for ICE first), but we must link in the order -lSM -lICE or
22128   # we get undefined symbols.  So assume we have SM if we have ICE.
22129   # These have to be linked with before -lX11, unlike the other
22130   # libraries we check for below, so use a different variable.
22131   # John Interrante, Karl Berry
22132   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22133 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22134 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22139 if test x$gcc_no_link = xyes; then
22140   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22142    { (exit 1); exit 1; }; }
22143 fi
22144 cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150
22151 /* Override any gcc2 internal prototype to avoid an error.  */
22152 #ifdef __cplusplus
22153 extern "C"
22154 #endif
22155 /* We use char because int might match the return type of a gcc2
22156    builtin and then its argument prototype would still apply.  */
22157 char IceConnectionNumber ();
22158 int
22159 main ()
22160 {
22161 IceConnectionNumber ();
22162   ;
22163   return 0;
22164 }
22165 _ACEOF
22166 rm -f conftest.$ac_objext conftest$ac_exeext
22167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22168   (eval $ac_link) 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } &&
22175          { ac_try='test -z "$ac_c_werror_flag"
22176                          || test ! -s conftest.err'
22177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178   (eval $ac_try) 2>&5
22179   ac_status=$?
22180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181   (exit $ac_status); }; } &&
22182          { ac_try='test -s conftest$ac_exeext'
22183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22184   (eval $ac_try) 2>&5
22185   ac_status=$?
22186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187   (exit $ac_status); }; }; then
22188   ac_cv_lib_ICE_IceConnectionNumber=yes
22189 else
22190   echo "$as_me: failed program was:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22192
22193 ac_cv_lib_ICE_IceConnectionNumber=no
22194 fi
22195 rm -f conftest.err conftest.$ac_objext \
22196       conftest$ac_exeext conftest.$ac_ext
22197 LIBS=$ac_check_lib_save_LIBS
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22200 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22201 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22202   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22203 fi
22204
22205   LDFLAGS=$ac_save_LDFLAGS
22206
22207 fi
22208
22209     if test "$no_x" = yes; then
22210         { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
22211 echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
22212    { (exit 1); exit 1; }; }
22213     fi
22214             echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
22215 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
22216 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
22217   echo $ECHO_N "(cached) $ECHO_C" >&6
22218 else
22219   ac_check_lib_save_LIBS=$LIBS
22220 LIBS="-lXtst ${X_LIBS} $LIBS"
22221 if test x$gcc_no_link = xyes; then
22222   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22223 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22224    { (exit 1); exit 1; }; }
22225 fi
22226 cat >conftest.$ac_ext <<_ACEOF
22227 /* confdefs.h.  */
22228 _ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h.  */
22232
22233 /* Override any gcc2 internal prototype to avoid an error.  */
22234 #ifdef __cplusplus
22235 extern "C"
22236 #endif
22237 /* We use char because int might match the return type of a gcc2
22238    builtin and then its argument prototype would still apply.  */
22239 char XTestQueryExtension ();
22240 int
22241 main ()
22242 {
22243 XTestQueryExtension ();
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22250   (eval $ac_link) 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } &&
22257          { ac_try='test -z "$ac_c_werror_flag"
22258                          || test ! -s conftest.err'
22259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260   (eval $ac_try) 2>&5
22261   ac_status=$?
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); }; } &&
22264          { ac_try='test -s conftest$ac_exeext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ac_cv_lib_Xtst_XTestQueryExtension=yes
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275 ac_cv_lib_Xtst_XTestQueryExtension=no
22276 fi
22277 rm -f conftest.err conftest.$ac_objext \
22278       conftest$ac_exeext conftest.$ac_ext
22279 LIBS=$ac_check_lib_save_LIBS
22280 fi
22281 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22282 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
22283 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
22284
22285 cat >>confdefs.h <<\_ACEOF
22286 #define HAVE_XTEST 1
22287 _ACEOF
22288 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
22289 else
22290   true
22291 fi
22292
22293
22294
22295
22296   succeeded=no
22297
22298   if test -z "$PKG_CONFIG"; then
22299     # Extract the first word of "pkg-config", so it can be a program name with args.
22300 set dummy pkg-config; ac_word=$2
22301 echo "$as_me:$LINENO: checking for $ac_word" >&5
22302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22304   echo $ECHO_N "(cached) $ECHO_C" >&6
22305 else
22306   case $PKG_CONFIG in
22307   [\\/]* | ?:[\\/]*)
22308   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22309   ;;
22310   *)
22311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22312 for as_dir in $PATH
22313 do
22314   IFS=$as_save_IFS
22315   test -z "$as_dir" && as_dir=.
22316   for ac_exec_ext in '' $ac_executable_extensions; do
22317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22318     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22320     break 2
22321   fi
22322 done
22323 done
22324
22325   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22326   ;;
22327 esac
22328 fi
22329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22330
22331 if test -n "$PKG_CONFIG"; then
22332   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22333 echo "${ECHO_T}$PKG_CONFIG" >&6
22334 else
22335   echo "$as_me:$LINENO: result: no" >&5
22336 echo "${ECHO_T}no" >&6
22337 fi
22338
22339   fi
22340
22341   if test "$PKG_CONFIG" = "no" ; then
22342      echo "*** The pkg-config script could not be found. Make sure it is"
22343      echo "*** in your path, or set the PKG_CONFIG environment variable"
22344      echo "*** to the full path to pkg-config."
22345      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22346   else
22347      PKG_CONFIG_MIN_VERSION=0.9.0
22348      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22349         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
22350 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
22351
22352         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
22353             echo "$as_me:$LINENO: result: yes" >&5
22354 echo "${ECHO_T}yes" >&6
22355             succeeded=yes
22356
22357             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
22358 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
22359             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22360             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
22361 echo "${ECHO_T}$GTK_CFLAGS" >&6
22362
22363             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
22364 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
22365             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22366             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
22367 echo "${ECHO_T}$GTK_LIBS" >&6
22368         else
22369             GTK_CFLAGS=""
22370             GTK_LIBS=""
22371             ## If we have a custom action on failure, don't print errors, but
22372             ## do set a variable so people can do so.
22373             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22374             echo $GTK_PKG_ERRORS
22375         fi
22376
22377
22378
22379      else
22380         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22381         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22382      fi
22383   fi
22384
22385   if test $succeeded = yes; then
22386      :
22387   else
22388      { { 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
22389 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;}
22390    { (exit 1); exit 1; }; }
22391   fi
22392
22393
22394   succeeded=no
22395
22396   if test -z "$PKG_CONFIG"; then
22397     # Extract the first word of "pkg-config", so it can be a program name with args.
22398 set dummy pkg-config; ac_word=$2
22399 echo "$as_me:$LINENO: checking for $ac_word" >&5
22400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22401 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22402   echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404   case $PKG_CONFIG in
22405   [\\/]* | ?:[\\/]*)
22406   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22407   ;;
22408   *)
22409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22410 for as_dir in $PATH
22411 do
22412   IFS=$as_save_IFS
22413   test -z "$as_dir" && as_dir=.
22414   for ac_exec_ext in '' $ac_executable_extensions; do
22415   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22416     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22418     break 2
22419   fi
22420 done
22421 done
22422
22423   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22424   ;;
22425 esac
22426 fi
22427 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22428
22429 if test -n "$PKG_CONFIG"; then
22430   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22431 echo "${ECHO_T}$PKG_CONFIG" >&6
22432 else
22433   echo "$as_me:$LINENO: result: no" >&5
22434 echo "${ECHO_T}no" >&6
22435 fi
22436
22437   fi
22438
22439   if test "$PKG_CONFIG" = "no" ; then
22440      echo "*** The pkg-config script could not be found. Make sure it is"
22441      echo "*** in your path, or set the PKG_CONFIG environment variable"
22442      echo "*** to the full path to pkg-config."
22443      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22444   else
22445      PKG_CONFIG_MIN_VERSION=0.9.0
22446      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22447         echo "$as_me:$LINENO: checking for freetype2" >&5
22448 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
22449
22450         if $PKG_CONFIG --exists "freetype2" ; then
22451             echo "$as_me:$LINENO: result: yes" >&5
22452 echo "${ECHO_T}yes" >&6
22453             succeeded=yes
22454
22455             echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
22456 echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6
22457             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
22458             echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
22459 echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6
22460
22461             echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
22462 echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6
22463             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
22464             echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
22465 echo "${ECHO_T}$FREETYPE2_LIBS" >&6
22466         else
22467             FREETYPE2_CFLAGS=""
22468             FREETYPE2_LIBS=""
22469             ## If we have a custom action on failure, don't print errors, but
22470             ## do set a variable so people can do so.
22471             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
22472             echo $FREETYPE2_PKG_ERRORS
22473         fi
22474
22475
22476
22477      else
22478         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22479         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22480      fi
22481   fi
22482
22483   if test $succeeded = yes; then
22484      :
22485   else
22486      { { 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
22487 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;}
22488    { (exit 1); exit 1; }; }
22489   fi
22490
22491
22492   succeeded=no
22493
22494   if test -z "$PKG_CONFIG"; then
22495     # Extract the first word of "pkg-config", so it can be a program name with args.
22496 set dummy pkg-config; ac_word=$2
22497 echo "$as_me:$LINENO: checking for $ac_word" >&5
22498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22499 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22500   echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502   case $PKG_CONFIG in
22503   [\\/]* | ?:[\\/]*)
22504   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22505   ;;
22506   *)
22507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22508 for as_dir in $PATH
22509 do
22510   IFS=$as_save_IFS
22511   test -z "$as_dir" && as_dir=.
22512   for ac_exec_ext in '' $ac_executable_extensions; do
22513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22514     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22516     break 2
22517   fi
22518 done
22519 done
22520
22521   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22522   ;;
22523 esac
22524 fi
22525 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22526
22527 if test -n "$PKG_CONFIG"; then
22528   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22529 echo "${ECHO_T}$PKG_CONFIG" >&6
22530 else
22531   echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6
22533 fi
22534
22535   fi
22536
22537   if test "$PKG_CONFIG" = "no" ; then
22538      echo "*** The pkg-config script could not be found. Make sure it is"
22539      echo "*** in your path, or set the PKG_CONFIG environment variable"
22540      echo "*** to the full path to pkg-config."
22541      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22542   else
22543      PKG_CONFIG_MIN_VERSION=0.9.0
22544      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22545         echo "$as_me:$LINENO: checking for pangoft2" >&5
22546 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22547
22548         if $PKG_CONFIG --exists "pangoft2" ; then
22549             echo "$as_me:$LINENO: result: yes" >&5
22550 echo "${ECHO_T}yes" >&6
22551             succeeded=yes
22552
22553             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22554 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22555             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22556             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22557 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22558
22559             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22560 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22561             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22562             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22563 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22564         else
22565             PANGOFT2_CFLAGS=""
22566             PANGOFT2_LIBS=""
22567             ## If we have a custom action on failure, don't print errors, but
22568             ## do set a variable so people can do so.
22569             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22570             echo $PANGOFT2_PKG_ERRORS
22571         fi
22572
22573
22574
22575      else
22576         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22577         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22578      fi
22579   fi
22580
22581   if test $succeeded = yes; then
22582      :
22583   else
22584      { { 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
22585 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;}
22586    { (exit 1); exit 1; }; }
22587   fi
22588
22589
22590   succeeded=no
22591
22592   if test -z "$PKG_CONFIG"; then
22593     # Extract the first word of "pkg-config", so it can be a program name with args.
22594 set dummy pkg-config; ac_word=$2
22595 echo "$as_me:$LINENO: checking for $ac_word" >&5
22596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22597 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22598   echo $ECHO_N "(cached) $ECHO_C" >&6
22599 else
22600   case $PKG_CONFIG in
22601   [\\/]* | ?:[\\/]*)
22602   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22603   ;;
22604   *)
22605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22606 for as_dir in $PATH
22607 do
22608   IFS=$as_save_IFS
22609   test -z "$as_dir" && as_dir=.
22610   for ac_exec_ext in '' $ac_executable_extensions; do
22611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22612     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22614     break 2
22615   fi
22616 done
22617 done
22618
22619   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22620   ;;
22621 esac
22622 fi
22623 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22624
22625 if test -n "$PKG_CONFIG"; then
22626   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22627 echo "${ECHO_T}$PKG_CONFIG" >&6
22628 else
22629   echo "$as_me:$LINENO: result: no" >&5
22630 echo "${ECHO_T}no" >&6
22631 fi
22632
22633   fi
22634
22635   if test "$PKG_CONFIG" = "no" ; then
22636      echo "*** The pkg-config script could not be found. Make sure it is"
22637      echo "*** in your path, or set the PKG_CONFIG environment variable"
22638      echo "*** to the full path to pkg-config."
22639      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22640   else
22641      PKG_CONFIG_MIN_VERSION=0.9.0
22642      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22643         echo "$as_me:$LINENO: checking for cairo >= 1.1.8" >&5
22644 echo $ECHO_N "checking for cairo >= 1.1.8... $ECHO_C" >&6
22645
22646         if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
22647             echo "$as_me:$LINENO: result: yes" >&5
22648 echo "${ECHO_T}yes" >&6
22649             succeeded=yes
22650
22651             echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
22652 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
22653             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
22654             echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
22655 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
22656
22657             echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
22658 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
22659             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
22660             echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
22661 echo "${ECHO_T}$CAIRO_LIBS" >&6
22662         else
22663             CAIRO_CFLAGS=""
22664             CAIRO_LIBS=""
22665             ## If we have a custom action on failure, don't print errors, but
22666             ## do set a variable so people can do so.
22667             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
22668             echo $CAIRO_PKG_ERRORS
22669         fi
22670
22671
22672
22673      else
22674         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22675         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22676      fi
22677   fi
22678
22679   if test $succeeded = yes; then
22680      :
22681   else
22682      { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 1.1.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
22683 echo "$as_me: error: Library requirements (cairo >= 1.1.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;}
22684    { (exit 1); exit 1; }; }
22685   fi
22686
22687             echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
22688 echo $ECHO_N "checking for XRenderQueryExtension in -lXrender... $ECHO_C" >&6
22689 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
22690   echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692   ac_check_lib_save_LIBS=$LIBS
22693 LIBS="-lXrender ${X_LIBS} $LIBS"
22694 if test x$gcc_no_link = xyes; then
22695   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22696 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22697    { (exit 1); exit 1; }; }
22698 fi
22699 cat >conftest.$ac_ext <<_ACEOF
22700 /* confdefs.h.  */
22701 _ACEOF
22702 cat confdefs.h >>conftest.$ac_ext
22703 cat >>conftest.$ac_ext <<_ACEOF
22704 /* end confdefs.h.  */
22705
22706 /* Override any gcc2 internal prototype to avoid an error.  */
22707 #ifdef __cplusplus
22708 extern "C"
22709 #endif
22710 /* We use char because int might match the return type of a gcc2
22711    builtin and then its argument prototype would still apply.  */
22712 char XRenderQueryExtension ();
22713 int
22714 main ()
22715 {
22716 XRenderQueryExtension ();
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext conftest$ac_exeext
22722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22723   (eval $ac_link) 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } &&
22730          { ac_try='test -z "$ac_c_werror_flag"
22731                          || test ! -s conftest.err'
22732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22733   (eval $ac_try) 2>&5
22734   ac_status=$?
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); }; } &&
22737          { ac_try='test -s conftest$ac_exeext'
22738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739   (eval $ac_try) 2>&5
22740   ac_status=$?
22741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742   (exit $ac_status); }; }; then
22743   ac_cv_lib_Xrender_XRenderQueryExtension=yes
22744 else
22745   echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.$ac_ext >&5
22747
22748 ac_cv_lib_Xrender_XRenderQueryExtension=no
22749 fi
22750 rm -f conftest.err conftest.$ac_objext \
22751       conftest$ac_exeext conftest.$ac_ext
22752 LIBS=$ac_check_lib_save_LIBS
22753 fi
22754 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
22755 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryExtension" >&6
22756 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define HAVE_XRENDER 1
22760 _ACEOF
22761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
22762 else
22763   true
22764 fi
22765
22766
22767             echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
22768 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
22769 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
22770   echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772   ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lXrandr ${X_LIBS} $LIBS"
22774 if test x$gcc_no_link = xyes; then
22775   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22776 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22777    { (exit 1); exit 1; }; }
22778 fi
22779 cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785
22786 /* Override any gcc2 internal prototype to avoid an error.  */
22787 #ifdef __cplusplus
22788 extern "C"
22789 #endif
22790 /* We use char because int might match the return type of a gcc2
22791    builtin and then its argument prototype would still apply.  */
22792 char XRRQueryExtension ();
22793 int
22794 main ()
22795 {
22796 XRRQueryExtension ();
22797   ;
22798   return 0;
22799 }
22800 _ACEOF
22801 rm -f conftest.$ac_objext conftest$ac_exeext
22802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22803   (eval $ac_link) 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } &&
22810          { ac_try='test -z "$ac_c_werror_flag"
22811                          || test ! -s conftest.err'
22812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813   (eval $ac_try) 2>&5
22814   ac_status=$?
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); }; } &&
22817          { ac_try='test -s conftest$ac_exeext'
22818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819   (eval $ac_try) 2>&5
22820   ac_status=$?
22821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822   (exit $ac_status); }; }; then
22823   ac_cv_lib_Xrandr_XRRQueryExtension=yes
22824 else
22825   echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22827
22828 ac_cv_lib_Xrandr_XRRQueryExtension=no
22829 fi
22830 rm -f conftest.err conftest.$ac_objext \
22831       conftest$ac_exeext conftest.$ac_ext
22832 LIBS=$ac_check_lib_save_LIBS
22833 fi
22834 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
22835 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
22836 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
22837
22838 cat >>confdefs.h <<\_ACEOF
22839 #define HAVE_XRANDR 1
22840 _ACEOF
22841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
22842 else
22843   true
22844 fi
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854   fi
22855
22856     if  test "x${COMPILE_GCONF_PEER}" = xyes; then
22857
22858   succeeded=no
22859
22860   if test -z "$PKG_CONFIG"; then
22861     # Extract the first word of "pkg-config", so it can be a program name with args.
22862 set dummy pkg-config; ac_word=$2
22863 echo "$as_me:$LINENO: checking for $ac_word" >&5
22864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22865 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22866   echo $ECHO_N "(cached) $ECHO_C" >&6
22867 else
22868   case $PKG_CONFIG in
22869   [\\/]* | ?:[\\/]*)
22870   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22871   ;;
22872   *)
22873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22874 for as_dir in $PATH
22875 do
22876   IFS=$as_save_IFS
22877   test -z "$as_dir" && as_dir=.
22878   for ac_exec_ext in '' $ac_executable_extensions; do
22879   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22880     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22882     break 2
22883   fi
22884 done
22885 done
22886
22887   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22888   ;;
22889 esac
22890 fi
22891 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22892
22893 if test -n "$PKG_CONFIG"; then
22894   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22895 echo "${ECHO_T}$PKG_CONFIG" >&6
22896 else
22897   echo "$as_me:$LINENO: result: no" >&5
22898 echo "${ECHO_T}no" >&6
22899 fi
22900
22901   fi
22902
22903   if test "$PKG_CONFIG" = "no" ; then
22904      echo "*** The pkg-config script could not be found. Make sure it is"
22905      echo "*** in your path, or set the PKG_CONFIG environment variable"
22906      echo "*** to the full path to pkg-config."
22907      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22908   else
22909      PKG_CONFIG_MIN_VERSION=0.9.0
22910      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22911         echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.6.0" >&5
22912 echo $ECHO_N "checking for gconf-2.0 >= 2.6.0... $ECHO_C" >&6
22913
22914         if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
22915             echo "$as_me:$LINENO: result: yes" >&5
22916 echo "${ECHO_T}yes" >&6
22917             succeeded=yes
22918
22919             echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
22920 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
22921             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
22922             echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
22923 echo "${ECHO_T}$GCONF_CFLAGS" >&6
22924
22925             echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
22926 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
22927             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
22928             echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
22929 echo "${ECHO_T}$GCONF_LIBS" >&6
22930         else
22931             GCONF_CFLAGS=""
22932             GCONF_LIBS=""
22933             ## If we have a custom action on failure, don't print errors, but
22934             ## do set a variable so people can do so.
22935             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
22936             echo $GCONF_PKG_ERRORS
22937         fi
22938
22939
22940
22941      else
22942         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22943         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22944      fi
22945   fi
22946
22947   if test $succeeded = yes; then
22948      :
22949   else
22950      { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 >= 2.6.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
22951 echo "$as_me: error: Library requirements (gconf-2.0 >= 2.6.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;}
22952    { (exit 1); exit 1; }; }
22953   fi
22954
22955
22956
22957
22958   succeeded=no
22959
22960   if test -z "$PKG_CONFIG"; then
22961     # Extract the first word of "pkg-config", so it can be a program name with args.
22962 set dummy pkg-config; ac_word=$2
22963 echo "$as_me:$LINENO: checking for $ac_word" >&5
22964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22966   echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968   case $PKG_CONFIG in
22969   [\\/]* | ?:[\\/]*)
22970   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22971   ;;
22972   *)
22973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22974 for as_dir in $PATH
22975 do
22976   IFS=$as_save_IFS
22977   test -z "$as_dir" && as_dir=.
22978   for ac_exec_ext in '' $ac_executable_extensions; do
22979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22980     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22982     break 2
22983   fi
22984 done
22985 done
22986
22987   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22988   ;;
22989 esac
22990 fi
22991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22992
22993 if test -n "$PKG_CONFIG"; then
22994   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22995 echo "${ECHO_T}$PKG_CONFIG" >&6
22996 else
22997   echo "$as_me:$LINENO: result: no" >&5
22998 echo "${ECHO_T}no" >&6
22999 fi
23000
23001   fi
23002
23003   if test "$PKG_CONFIG" = "no" ; then
23004      echo "*** The pkg-config script could not be found. Make sure it is"
23005      echo "*** in your path, or set the PKG_CONFIG environment variable"
23006      echo "*** to the full path to pkg-config."
23007      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23008   else
23009      PKG_CONFIG_MIN_VERSION=0.9.0
23010      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23011         echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
23012 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
23013
23014         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
23015             echo "$as_me:$LINENO: result: yes" >&5
23016 echo "${ECHO_T}yes" >&6
23017             succeeded=yes
23018
23019             echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
23020 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
23021             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
23022             echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
23023 echo "${ECHO_T}$GDK_CFLAGS" >&6
23024
23025             echo "$as_me:$LINENO: checking GDK_LIBS" >&5
23026 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
23027             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
23028             echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
23029 echo "${ECHO_T}$GDK_LIBS" >&6
23030         else
23031             GDK_CFLAGS=""
23032             GDK_LIBS=""
23033             ## If we have a custom action on failure, don't print errors, but
23034             ## do set a variable so people can do so.
23035             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
23036             echo $GDK_PKG_ERRORS
23037         fi
23038
23039
23040
23041      else
23042         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23043         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23044      fi
23045   fi
23046
23047   if test $succeeded = yes; then
23048      :
23049   else
23050      { { 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
23051 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;}
23052    { (exit 1); exit 1; }; }
23053   fi
23054
23055
23056
23057                 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
23058     if test "$USE_GCONF_PREFS_PEER" = ""; then
23059       DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
23060     fi
23061   fi
23062
23063     if  test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
23064     GST_MAJORMINOR=0.10
23065     GST_REQUIRED=0.10.10
23066
23067
23068   succeeded=no
23069
23070   if test -z "$PKG_CONFIG"; then
23071     # Extract the first word of "pkg-config", so it can be a program name with args.
23072 set dummy pkg-config; ac_word=$2
23073 echo "$as_me:$LINENO: checking for $ac_word" >&5
23074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23075 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23076   echo $ECHO_N "(cached) $ECHO_C" >&6
23077 else
23078   case $PKG_CONFIG in
23079   [\\/]* | ?:[\\/]*)
23080   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23081   ;;
23082   *)
23083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23084 for as_dir in $PATH
23085 do
23086   IFS=$as_save_IFS
23087   test -z "$as_dir" && as_dir=.
23088   for ac_exec_ext in '' $ac_executable_extensions; do
23089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23090     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23092     break 2
23093   fi
23094 done
23095 done
23096
23097   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23098   ;;
23099 esac
23100 fi
23101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23102
23103 if test -n "$PKG_CONFIG"; then
23104   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23105 echo "${ECHO_T}$PKG_CONFIG" >&6
23106 else
23107   echo "$as_me:$LINENO: result: no" >&5
23108 echo "${ECHO_T}no" >&6
23109 fi
23110
23111   fi
23112
23113   if test "$PKG_CONFIG" = "no" ; then
23114      echo "*** The pkg-config script could not be found. Make sure it is"
23115      echo "*** in your path, or set the PKG_CONFIG environment variable"
23116      echo "*** to the full path to pkg-config."
23117      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23118   else
23119      PKG_CONFIG_MIN_VERSION=0.9.0
23120      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23121         echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23122 echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23123
23124         if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23125             echo "$as_me:$LINENO: result: yes" >&5
23126 echo "${ECHO_T}yes" >&6
23127             succeeded=yes
23128
23129             echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
23130 echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
23131             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23132             echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
23133 echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
23134
23135             echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
23136 echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
23137             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23138             echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
23139 echo "${ECHO_T}$GSTREAMER_LIBS" >&6
23140         else
23141             GSTREAMER_CFLAGS=""
23142             GSTREAMER_LIBS=""
23143             ## If we have a custom action on failure, don't print errors, but
23144             ## do set a variable so people can do so.
23145             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
23146             echo $GSTREAMER_PKG_ERRORS
23147         fi
23148
23149
23150
23151      else
23152         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23153         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23154      fi
23155   fi
23156
23157   if test $succeeded = yes; then
23158      :
23159   else
23160      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23161 echo "$as_me: error: Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23162    { (exit 1); exit 1; }; }
23163   fi
23164
23165
23166
23167
23168
23169   succeeded=no
23170
23171   if test -z "$PKG_CONFIG"; then
23172     # Extract the first word of "pkg-config", so it can be a program name with args.
23173 set dummy pkg-config; ac_word=$2
23174 echo "$as_me:$LINENO: checking for $ac_word" >&5
23175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23176 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23177   echo $ECHO_N "(cached) $ECHO_C" >&6
23178 else
23179   case $PKG_CONFIG in
23180   [\\/]* | ?:[\\/]*)
23181   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23182   ;;
23183   *)
23184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23185 for as_dir in $PATH
23186 do
23187   IFS=$as_save_IFS
23188   test -z "$as_dir" && as_dir=.
23189   for ac_exec_ext in '' $ac_executable_extensions; do
23190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23191     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23193     break 2
23194   fi
23195 done
23196 done
23197
23198   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23199   ;;
23200 esac
23201 fi
23202 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23203
23204 if test -n "$PKG_CONFIG"; then
23205   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23206 echo "${ECHO_T}$PKG_CONFIG" >&6
23207 else
23208   echo "$as_me:$LINENO: result: no" >&5
23209 echo "${ECHO_T}no" >&6
23210 fi
23211
23212   fi
23213
23214   if test "$PKG_CONFIG" = "no" ; then
23215      echo "*** The pkg-config script could not be found. Make sure it is"
23216      echo "*** in your path, or set the PKG_CONFIG environment variable"
23217      echo "*** to the full path to pkg-config."
23218      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23219   else
23220      PKG_CONFIG_MIN_VERSION=0.9.0
23221      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23222         echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23223 echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23224
23225         if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23226             echo "$as_me:$LINENO: result: yes" >&5
23227 echo "${ECHO_T}yes" >&6
23228             succeeded=yes
23229
23230             echo "$as_me:$LINENO: checking GSTREAMER_BASE_CFLAGS" >&5
23231 echo $ECHO_N "checking GSTREAMER_BASE_CFLAGS... $ECHO_C" >&6
23232             GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23233             echo "$as_me:$LINENO: result: $GSTREAMER_BASE_CFLAGS" >&5
23234 echo "${ECHO_T}$GSTREAMER_BASE_CFLAGS" >&6
23235
23236             echo "$as_me:$LINENO: checking GSTREAMER_BASE_LIBS" >&5
23237 echo $ECHO_N "checking GSTREAMER_BASE_LIBS... $ECHO_C" >&6
23238             GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23239             echo "$as_me:$LINENO: result: $GSTREAMER_BASE_LIBS" >&5
23240 echo "${ECHO_T}$GSTREAMER_BASE_LIBS" >&6
23241         else
23242             GSTREAMER_BASE_CFLAGS=""
23243             GSTREAMER_BASE_LIBS=""
23244             ## If we have a custom action on failure, don't print errors, but
23245             ## do set a variable so people can do so.
23246             GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23247             echo $GSTREAMER_BASE_PKG_ERRORS
23248         fi
23249
23250
23251
23252      else
23253         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23254         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23255      fi
23256   fi
23257
23258   if test $succeeded = yes; then
23259      :
23260   else
23261      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23262 echo "$as_me: error: Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23263    { (exit 1); exit 1; }; }
23264   fi
23265
23266
23267
23268
23269
23270   succeeded=no
23271
23272   if test -z "$PKG_CONFIG"; then
23273     # Extract the first word of "pkg-config", so it can be a program name with args.
23274 set dummy pkg-config; ac_word=$2
23275 echo "$as_me:$LINENO: checking for $ac_word" >&5
23276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23278   echo $ECHO_N "(cached) $ECHO_C" >&6
23279 else
23280   case $PKG_CONFIG in
23281   [\\/]* | ?:[\\/]*)
23282   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23283   ;;
23284   *)
23285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23286 for as_dir in $PATH
23287 do
23288   IFS=$as_save_IFS
23289   test -z "$as_dir" && as_dir=.
23290   for ac_exec_ext in '' $ac_executable_extensions; do
23291   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23292     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23293     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23294     break 2
23295   fi
23296 done
23297 done
23298
23299   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23300   ;;
23301 esac
23302 fi
23303 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23304
23305 if test -n "$PKG_CONFIG"; then
23306   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23307 echo "${ECHO_T}$PKG_CONFIG" >&6
23308 else
23309   echo "$as_me:$LINENO: result: no" >&5
23310 echo "${ECHO_T}no" >&6
23311 fi
23312
23313   fi
23314
23315   if test "$PKG_CONFIG" = "no" ; then
23316      echo "*** The pkg-config script could not be found. Make sure it is"
23317      echo "*** in your path, or set the PKG_CONFIG environment variable"
23318      echo "*** to the full path to pkg-config."
23319      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23320   else
23321      PKG_CONFIG_MIN_VERSION=0.9.0
23322      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23323         echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
23324 echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
23325
23326         if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
23327             echo "$as_me:$LINENO: result: yes" >&5
23328 echo "${ECHO_T}yes" >&6
23329             succeeded=yes
23330
23331             echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
23332 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
23333             GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23334             echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
23335 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6
23336
23337             echo "$as_me:$LINENO: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
23338 echo $ECHO_N "checking GSTREAMER_PLUGINS_BASE_LIBS... $ECHO_C" >&6
23339             GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23340             echo "$as_me:$LINENO: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
23341 echo "${ECHO_T}$GSTREAMER_PLUGINS_BASE_LIBS" >&6
23342         else
23343             GSTREAMER_PLUGINS_BASE_CFLAGS=""
23344             GSTREAMER_PLUGINS_BASE_LIBS=""
23345             ## If we have a custom action on failure, don't print errors, but
23346             ## do set a variable so people can do so.
23347             GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
23348             echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
23349         fi
23350
23351
23352
23353      else
23354         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23355         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23356      fi
23357   fi
23358
23359   if test $succeeded = yes; then
23360      :
23361   else
23362      { { echo "$as_me:$LINENO: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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
23363 echo "$as_me: error: Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) 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;}
23364    { (exit 1); exit 1; }; }
23365   fi
23366
23367
23368
23369
23370         GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
23371
23372
23373
23374   succeeded=no
23375
23376   if test -z "$PKG_CONFIG"; then
23377     # Extract the first word of "pkg-config", so it can be a program name with args.
23378 set dummy pkg-config; ac_word=$2
23379 echo "$as_me:$LINENO: checking for $ac_word" >&5
23380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23381 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23382   echo $ECHO_N "(cached) $ECHO_C" >&6
23383 else
23384   case $PKG_CONFIG in
23385   [\\/]* | ?:[\\/]*)
23386   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23387   ;;
23388   *)
23389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23390 for as_dir in $PATH
23391 do
23392   IFS=$as_save_IFS
23393   test -z "$as_dir" && as_dir=.
23394   for ac_exec_ext in '' $ac_executable_extensions; do
23395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23396     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23398     break 2
23399   fi
23400 done
23401 done
23402
23403   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23404   ;;
23405 esac
23406 fi
23407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23408
23409 if test -n "$PKG_CONFIG"; then
23410   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23411 echo "${ECHO_T}$PKG_CONFIG" >&6
23412 else
23413   echo "$as_me:$LINENO: result: no" >&5
23414 echo "${ECHO_T}no" >&6
23415 fi
23416
23417   fi
23418
23419   if test "$PKG_CONFIG" = "no" ; then
23420      echo "*** The pkg-config script could not be found. Make sure it is"
23421      echo "*** in your path, or set the PKG_CONFIG environment variable"
23422      echo "*** to the full path to pkg-config."
23423      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23424   else
23425      PKG_CONFIG_MIN_VERSION=0.9.0
23426      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23427         echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.8" >&5
23428 echo $ECHO_N "checking for gdk-2.0 >= 2.8... $ECHO_C" >&6
23429
23430         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
23431             echo "$as_me:$LINENO: result: yes" >&5
23432 echo "${ECHO_T}yes" >&6
23433             succeeded=yes
23434
23435             echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
23436 echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
23437             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
23438             echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
23439 echo "${ECHO_T}$GDK_CFLAGS" >&6
23440
23441             echo "$as_me:$LINENO: checking GDK_LIBS" >&5
23442 echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
23443             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
23444             echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
23445 echo "${ECHO_T}$GDK_LIBS" >&6
23446         else
23447             GDK_CFLAGS=""
23448             GDK_LIBS=""
23449             ## If we have a custom action on failure, don't print errors, but
23450             ## do set a variable so people can do so.
23451             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
23452             echo $GDK_PKG_ERRORS
23453         fi
23454
23455
23456
23457      else
23458         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23459         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23460      fi
23461   fi
23462
23463   if test $succeeded = yes; then
23464      :
23465   else
23466      { { 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
23467 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;}
23468    { (exit 1); exit 1; }; }
23469   fi
23470
23471
23472
23473
23474                 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
23475         GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
23476   fi
23477
23478
23479
23480     if test "x${COMPILE_QT_PEER}" = xyes; then
23481
23482   succeeded=no
23483
23484   if test -z "$PKG_CONFIG"; then
23485     # Extract the first word of "pkg-config", so it can be a program name with args.
23486 set dummy pkg-config; ac_word=$2
23487 echo "$as_me:$LINENO: checking for $ac_word" >&5
23488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23490   echo $ECHO_N "(cached) $ECHO_C" >&6
23491 else
23492   case $PKG_CONFIG in
23493   [\\/]* | ?:[\\/]*)
23494   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23495   ;;
23496   *)
23497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23498 for as_dir in $PATH
23499 do
23500   IFS=$as_save_IFS
23501   test -z "$as_dir" && as_dir=.
23502   for ac_exec_ext in '' $ac_executable_extensions; do
23503   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23504     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23505     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23506     break 2
23507   fi
23508 done
23509 done
23510
23511   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23512   ;;
23513 esac
23514 fi
23515 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23516
23517 if test -n "$PKG_CONFIG"; then
23518   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23519 echo "${ECHO_T}$PKG_CONFIG" >&6
23520 else
23521   echo "$as_me:$LINENO: result: no" >&5
23522 echo "${ECHO_T}no" >&6
23523 fi
23524
23525   fi
23526
23527   if test "$PKG_CONFIG" = "no" ; then
23528      echo "*** The pkg-config script could not be found. Make sure it is"
23529      echo "*** in your path, or set the PKG_CONFIG environment variable"
23530      echo "*** to the full path to pkg-config."
23531      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23532   else
23533      PKG_CONFIG_MIN_VERSION=0.9.0
23534      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23535         echo "$as_me:$LINENO: checking for QtCore QtGui >= 4.1.0" >&5
23536 echo $ECHO_N "checking for QtCore QtGui >= 4.1.0... $ECHO_C" >&6
23537
23538         if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
23539             echo "$as_me:$LINENO: result: yes" >&5
23540 echo "${ECHO_T}yes" >&6
23541             succeeded=yes
23542
23543             echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
23544 echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6
23545             QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
23546             echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
23547 echo "${ECHO_T}$QT_CFLAGS" >&6
23548
23549             echo "$as_me:$LINENO: checking QT_LIBS" >&5
23550 echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6
23551             QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
23552             echo "$as_me:$LINENO: result: $QT_LIBS" >&5
23553 echo "${ECHO_T}$QT_LIBS" >&6
23554         else
23555             QT_CFLAGS=""
23556             QT_LIBS=""
23557             ## If we have a custom action on failure, don't print errors, but
23558             ## do set a variable so people can do so.
23559             QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
23560
23561         fi
23562
23563
23564
23565      else
23566         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23567         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23568      fi
23569   fi
23570
23571   if test $succeeded = yes; then
23572      HAVE_QT4="yes"
23573   else
23574      HAVE_QT4="no"
23575   fi
23576
23577     if test "x$HAVE_QT4" = "xyes"; then
23578                   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
23579       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
23580       as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
23581 echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
23582 echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
23583 if eval "test \"\${$as_ac_File+set}\" = set"; then
23584   echo $ECHO_N "(cached) $ECHO_C" >&6
23585 else
23586   test "$cross_compiling" = yes &&
23587   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23588 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23589    { (exit 1); exit 1; }; }
23590 if test -r "$QT_INCLUDE_DIR/QWidget"; then
23591   eval "$as_ac_File=yes"
23592 else
23593   eval "$as_ac_File=no"
23594 fi
23595 fi
23596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
23597 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
23598 if test `eval echo '${'$as_ac_File'}'` = yes; then
23599   { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
23600 echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
23601 else
23602   as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
23603 echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
23604 echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6
23605 if eval "test \"\${$as_ac_File+set}\" = set"; then
23606   echo $ECHO_N "(cached) $ECHO_C" >&6
23607 else
23608   test "$cross_compiling" = yes &&
23609   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
23610 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
23611    { (exit 1); exit 1; }; }
23612 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
23613   eval "$as_ac_File=yes"
23614 else
23615   eval "$as_ac_File=no"
23616 fi
23617 fi
23618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
23619 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
23620 if test `eval echo '${'$as_ac_File'}'` = yes; then
23621   QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
23622 else
23623   { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
23624 echo "$as_me: WARNING: QWidget not found" >&2;}
23625 fi
23626
23627 fi
23628
23629         # Extract the first word of "moc", so it can be a program name with args.
23630 set dummy moc; ac_word=$2
23631 echo "$as_me:$LINENO: checking for $ac_word" >&5
23632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23633 if test "${ac_cv_prog_MOC+set}" = set; then
23634   echo $ECHO_N "(cached) $ECHO_C" >&6
23635 else
23636   if test -n "$MOC"; then
23637   ac_cv_prog_MOC="$MOC" # Let the user override the test.
23638 else
23639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23640 for as_dir in $PATH
23641 do
23642   IFS=$as_save_IFS
23643   test -z "$as_dir" && as_dir=.
23644   for ac_exec_ext in '' $ac_executable_extensions; do
23645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23646     ac_cv_prog_MOC="moc"
23647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23648     break 2
23649   fi
23650 done
23651 done
23652
23653 fi
23654 fi
23655 MOC=$ac_cv_prog_MOC
23656 if test -n "$MOC"; then
23657   echo "$as_me:$LINENO: result: $MOC" >&5
23658 echo "${ECHO_T}$MOC" >&6
23659 else
23660   echo "$as_me:$LINENO: result: no" >&5
23661 echo "${ECHO_T}no" >&6
23662 fi
23663
23664         # Extract the first word of "moc-qt4", so it can be a program name with args.
23665 set dummy moc-qt4; ac_word=$2
23666 echo "$as_me:$LINENO: checking for $ac_word" >&5
23667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23668 if test "${ac_cv_prog_MOC+set}" = set; then
23669   echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671   if test -n "$MOC"; then
23672   ac_cv_prog_MOC="$MOC" # Let the user override the test.
23673 else
23674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23675 for as_dir in $PATH
23676 do
23677   IFS=$as_save_IFS
23678   test -z "$as_dir" && as_dir=.
23679   for ac_exec_ext in '' $ac_executable_extensions; do
23680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23681     ac_cv_prog_MOC="moc-qt4"
23682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23683     break 2
23684   fi
23685 done
23686 done
23687
23688 fi
23689 fi
23690 MOC=$ac_cv_prog_MOC
23691 if test -n "$MOC"; then
23692   echo "$as_me:$LINENO: result: $MOC" >&5
23693 echo "${ECHO_T}$MOC" >&6
23694 else
23695   echo "$as_me:$LINENO: result: no" >&5
23696 echo "${ECHO_T}no" >&6
23697 fi
23698
23699     fi
23700     if test "x$HAVE_QT4" = "xno"; then
23701       { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
23702 echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
23703       case "$host_os" in
23704         darwin*)
23705
23706 # Check whether --with-qt4dir or --without-qt4dir was given.
23707 if test "${with_qt4dir+set}" = set; then
23708   withval="$with_qt4dir"
23709   QT4DIR=$withval
23710
23711 fi;
23712           if test x"$QT4DIR" = x ; then
23713             { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
23714 echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
23715    { (exit 1); exit 1; }; }
23716           fi
23717           echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
23718 echo "${ECHO_T}QT4DIR... $QT4DIR" >&6
23719           # Extract the first word of "moc", so it can be a program name with args.
23720 set dummy moc; ac_word=$2
23721 echo "$as_me:$LINENO: checking for $ac_word" >&5
23722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23723 if test "${ac_cv_prog_MOC+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726   if test -n "$MOC"; then
23727   ac_cv_prog_MOC="$MOC" # Let the user override the test.
23728 else
23729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23730 for as_dir in $QT4DIR/bin
23731 do
23732   IFS=$as_save_IFS
23733   test -z "$as_dir" && as_dir=.
23734   for ac_exec_ext in '' $ac_executable_extensions; do
23735   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23736     ac_cv_prog_MOC="$QT4DIR/bin/moc"
23737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23738     break 2
23739   fi
23740 done
23741 done
23742
23743 fi
23744 fi
23745 MOC=$ac_cv_prog_MOC
23746 if test -n "$MOC"; then
23747   echo "$as_me:$LINENO: result: $MOC" >&5
23748 echo "${ECHO_T}$MOC" >&6
23749 else
23750   echo "$as_me:$LINENO: result: no" >&5
23751 echo "${ECHO_T}no" >&6
23752 fi
23753
23754           if test x"$MOC" = x; then
23755             { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
23756 echo "$as_me: error: *** This is not the right Qt installation" >&2;}
23757    { (exit 1); exit 1; }; }
23758           fi
23759           QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
23760           QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
23761           QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
23762           QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
23763           ;;
23764         *)
23765           { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
23766           of your installed Qt4 installation." >&5
23767 echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
23768           of your installed Qt4 installation." >&2;}
23769    { (exit 1); exit 1; }; }
23770           ;;
23771       esac
23772     fi
23773     { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
23774 echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
23775
23776
23777   fi
23778         echo "$as_me:$LINENO: checking for MSG_NOSIGNAL" >&5
23779 echo $ECHO_N "checking for MSG_NOSIGNAL... $ECHO_C" >&6
23780   cat >conftest.$ac_ext <<_ACEOF
23781 /* confdefs.h.  */
23782 _ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h.  */
23786 #include <sys/socket.h>
23787 int
23788 main ()
23789 {
23790  int f = MSG_NOSIGNAL;
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 rm -f conftest.$ac_objext
23796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23797   (eval $ac_compile) 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } &&
23804          { ac_try='test -z "$ac_c_werror_flag"
23805                          || test ! -s conftest.err'
23806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807   (eval $ac_try) 2>&5
23808   ac_status=$?
23809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810   (exit $ac_status); }; } &&
23811          { ac_try='test -s conftest.$ac_objext'
23812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23813   (eval $ac_try) 2>&5
23814   ac_status=$?
23815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23816   (exit $ac_status); }; }; then
23817    echo "$as_me:$LINENO: result: yes" >&5
23818 echo "${ECHO_T}yes" >&6
23819
23820 cat >>confdefs.h <<\_ACEOF
23821 #define HAVE_MSG_NOSIGNAL 1
23822 _ACEOF
23823
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828  echo "$as_me:$LINENO: result: no" >&5
23829 echo "${ECHO_T}no" >&6
23830
23831 fi
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833     echo "$as_me:$LINENO: checking for SO_NOSIGPIPE " >&5
23834 echo $ECHO_N "checking for SO_NOSIGPIPE ... $ECHO_C" >&6
23835  cat >conftest.$ac_ext <<_ACEOF
23836 /* confdefs.h.  */
23837 _ACEOF
23838 cat confdefs.h >>conftest.$ac_ext
23839 cat >>conftest.$ac_ext <<_ACEOF
23840 /* end confdefs.h.  */
23841 #include <sys/socket.h>
23842 int
23843 main ()
23844 {
23845  int f = SO_NOSIGPIPE;
23846   ;
23847   return 0;
23848 }
23849 _ACEOF
23850 rm -f conftest.$ac_objext
23851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23852   (eval $ac_compile) 2>conftest.er1
23853   ac_status=$?
23854   grep -v '^ *+' conftest.er1 >conftest.err
23855   rm -f conftest.er1
23856   cat conftest.err >&5
23857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23858   (exit $ac_status); } &&
23859          { ac_try='test -z "$ac_c_werror_flag"
23860                          || test ! -s conftest.err'
23861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862   (eval $ac_try) 2>&5
23863   ac_status=$?
23864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865   (exit $ac_status); }; } &&
23866          { ac_try='test -s conftest.$ac_objext'
23867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23868   (eval $ac_try) 2>&5
23869   ac_status=$?
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); }; }; then
23872    echo "$as_me:$LINENO: result: yes" >&5
23873 echo "${ECHO_T}yes" >&6
23874
23875 cat >>confdefs.h <<\_ACEOF
23876 #define HAVE_SO_NOSIGPIPE 1
23877 _ACEOF
23878
23879 else
23880   echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23882
23883  echo "$as_me:$LINENO: result: no" >&5
23884 echo "${ECHO_T}no" >&6
23885
23886 fi
23887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23888         echo "$as_me:$LINENO: checking for MSG_WAITALL" >&5
23889 echo $ECHO_N "checking for MSG_WAITALL... $ECHO_C" >&6
23890   cat >conftest.$ac_ext <<_ACEOF
23891 /* confdefs.h.  */
23892 _ACEOF
23893 cat confdefs.h >>conftest.$ac_ext
23894 cat >>conftest.$ac_ext <<_ACEOF
23895 /* end confdefs.h.  */
23896 #include <sys/socket.h>
23897 int
23898 main ()
23899 {
23900  int f = MSG_WAITALL;
23901   ;
23902   return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest.$ac_objext
23906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23907   (eval $ac_compile) 2>conftest.er1
23908   ac_status=$?
23909   grep -v '^ *+' conftest.er1 >conftest.err
23910   rm -f conftest.er1
23911   cat conftest.err >&5
23912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23913   (exit $ac_status); } &&
23914          { ac_try='test -z "$ac_c_werror_flag"
23915                          || test ! -s conftest.err'
23916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917   (eval $ac_try) 2>&5
23918   ac_status=$?
23919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920   (exit $ac_status); }; } &&
23921          { ac_try='test -s conftest.$ac_objext'
23922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23923   (eval $ac_try) 2>&5
23924   ac_status=$?
23925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23926   (exit $ac_status); }; }; then
23927    echo "$as_me:$LINENO: result: yes" >&5
23928 echo "${ECHO_T}yes" >&6
23929
23930 cat >>confdefs.h <<\_ACEOF
23931 #define HAVE_MSG_WAITALL 1
23932 _ACEOF
23933
23934 else
23935   echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23937
23938  echo "$as_me:$LINENO: result: no" >&5
23939 echo "${ECHO_T}no" >&6
23940
23941 fi
23942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23943
23944     if test "x${COMPILE_PLUGIN}" = xyes; then
23945
23946   succeeded=no
23947
23948   if test -z "$PKG_CONFIG"; then
23949     # Extract the first word of "pkg-config", so it can be a program name with args.
23950 set dummy pkg-config; ac_word=$2
23951 echo "$as_me:$LINENO: checking for $ac_word" >&5
23952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23954   echo $ECHO_N "(cached) $ECHO_C" >&6
23955 else
23956   case $PKG_CONFIG in
23957   [\\/]* | ?:[\\/]*)
23958   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23959   ;;
23960   *)
23961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23962 for as_dir in $PATH
23963 do
23964   IFS=$as_save_IFS
23965   test -z "$as_dir" && as_dir=.
23966   for ac_exec_ext in '' $ac_executable_extensions; do
23967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23968     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23970     break 2
23971   fi
23972 done
23973 done
23974
23975   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23976   ;;
23977 esac
23978 fi
23979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23980
23981 if test -n "$PKG_CONFIG"; then
23982   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23983 echo "${ECHO_T}$PKG_CONFIG" >&6
23984 else
23985   echo "$as_me:$LINENO: result: no" >&5
23986 echo "${ECHO_T}no" >&6
23987 fi
23988
23989   fi
23990
23991   if test "$PKG_CONFIG" = "no" ; then
23992      echo "*** The pkg-config script could not be found. Make sure it is"
23993      echo "*** in your path, or set the PKG_CONFIG environment variable"
23994      echo "*** to the full path to pkg-config."
23995      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23996   else
23997      PKG_CONFIG_MIN_VERSION=0.9.0
23998      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23999         echo "$as_me:$LINENO: checking for mozilla-plugin" >&5
24000 echo $ECHO_N "checking for mozilla-plugin... $ECHO_C" >&6
24001
24002         if $PKG_CONFIG --exists "mozilla-plugin" ; then
24003             echo "$as_me:$LINENO: result: yes" >&5
24004 echo "${ECHO_T}yes" >&6
24005             succeeded=yes
24006
24007             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24008 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24009             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
24010             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24011 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24012
24013             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24014 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24015             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
24016             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24017 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24018         else
24019             MOZILLA_CFLAGS=""
24020             MOZILLA_LIBS=""
24021             ## If we have a custom action on failure, don't print errors, but
24022             ## do set a variable so people can do so.
24023             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
24024
24025         fi
24026
24027
24028
24029      else
24030         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24031         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24032      fi
24033   fi
24034
24035   if test $succeeded = yes; then
24036      MOZILLA_FOUND=yes
24037   else
24038      MOZILLA_FOUND=no
24039   fi
24040
24041     if test "x${MOZILLA_FOUND}" = xno; then
24042
24043   succeeded=no
24044
24045   if test -z "$PKG_CONFIG"; then
24046     # Extract the first word of "pkg-config", so it can be a program name with args.
24047 set dummy pkg-config; ac_word=$2
24048 echo "$as_me:$LINENO: checking for $ac_word" >&5
24049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24050 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   case $PKG_CONFIG in
24054   [\\/]* | ?:[\\/]*)
24055   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24056   ;;
24057   *)
24058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24059 for as_dir in $PATH
24060 do
24061   IFS=$as_save_IFS
24062   test -z "$as_dir" && as_dir=.
24063   for ac_exec_ext in '' $ac_executable_extensions; do
24064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24065     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24067     break 2
24068   fi
24069 done
24070 done
24071
24072   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24073   ;;
24074 esac
24075 fi
24076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24077
24078 if test -n "$PKG_CONFIG"; then
24079   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24080 echo "${ECHO_T}$PKG_CONFIG" >&6
24081 else
24082   echo "$as_me:$LINENO: result: no" >&5
24083 echo "${ECHO_T}no" >&6
24084 fi
24085
24086   fi
24087
24088   if test "$PKG_CONFIG" = "no" ; then
24089      echo "*** The pkg-config script could not be found. Make sure it is"
24090      echo "*** in your path, or set the PKG_CONFIG environment variable"
24091      echo "*** to the full path to pkg-config."
24092      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24093   else
24094      PKG_CONFIG_MIN_VERSION=0.9.0
24095      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24096         echo "$as_me:$LINENO: checking for firefox-plugin firefox-xpcom" >&5
24097 echo $ECHO_N "checking for firefox-plugin firefox-xpcom... $ECHO_C" >&6
24098
24099         if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
24100             echo "$as_me:$LINENO: result: yes" >&5
24101 echo "${ECHO_T}yes" >&6
24102             succeeded=yes
24103
24104             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24105 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24106             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
24107             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24108 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24109
24110             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24111 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24112             MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
24113             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24114 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24115         else
24116             MOZILLA_CFLAGS=""
24117             MOZILLA_LIBS=""
24118             ## If we have a custom action on failure, don't print errors, but
24119             ## do set a variable so people can do so.
24120             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
24121
24122         fi
24123
24124
24125
24126      else
24127         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24128         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24129      fi
24130   fi
24131
24132   if test $succeeded = yes; then
24133      MOZILLA_FOUND=yes
24134   else
24135      MOZILLA_FOUND=no
24136   fi
24137
24138     fi
24139     if test "x${MOZILLA_FOUND}" = xno; then
24140
24141   succeeded=no
24142
24143   if test -z "$PKG_CONFIG"; then
24144     # Extract the first word of "pkg-config", so it can be a program name with args.
24145 set dummy pkg-config; ac_word=$2
24146 echo "$as_me:$LINENO: checking for $ac_word" >&5
24147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24149   echo $ECHO_N "(cached) $ECHO_C" >&6
24150 else
24151   case $PKG_CONFIG in
24152   [\\/]* | ?:[\\/]*)
24153   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24154   ;;
24155   *)
24156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24157 for as_dir in $PATH
24158 do
24159   IFS=$as_save_IFS
24160   test -z "$as_dir" && as_dir=.
24161   for ac_exec_ext in '' $ac_executable_extensions; do
24162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24163     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24165     break 2
24166   fi
24167 done
24168 done
24169
24170   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24171   ;;
24172 esac
24173 fi
24174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24175
24176 if test -n "$PKG_CONFIG"; then
24177   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24178 echo "${ECHO_T}$PKG_CONFIG" >&6
24179 else
24180   echo "$as_me:$LINENO: result: no" >&5
24181 echo "${ECHO_T}no" >&6
24182 fi
24183
24184   fi
24185
24186   if test "$PKG_CONFIG" = "no" ; then
24187      echo "*** The pkg-config script could not be found. Make sure it is"
24188      echo "*** in your path, or set the PKG_CONFIG environment variable"
24189      echo "*** to the full path to pkg-config."
24190      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24191   else
24192      PKG_CONFIG_MIN_VERSION=0.9.0
24193      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24194         echo "$as_me:$LINENO: checking for xulrunner-plugin xulrunner-xpcom" >&5
24195 echo $ECHO_N "checking for xulrunner-plugin xulrunner-xpcom... $ECHO_C" >&6
24196
24197         if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
24198             echo "$as_me:$LINENO: result: yes" >&5
24199 echo "${ECHO_T}yes" >&6
24200             succeeded=yes
24201
24202             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24203 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24204             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
24205             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24206 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24207
24208             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24209 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24210             MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
24211             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24212 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24213         else
24214             MOZILLA_CFLAGS=""
24215             MOZILLA_LIBS=""
24216             ## If we have a custom action on failure, don't print errors, but
24217             ## do set a variable so people can do so.
24218             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
24219
24220         fi
24221
24222
24223
24224      else
24225         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24226         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24227      fi
24228   fi
24229
24230   if test $succeeded = yes; then
24231      MOZILLA_FOUND=yes
24232   else
24233      MOZILLA_FOUND=no
24234   fi
24235
24236     fi
24237     if test "x${MOZILLA_FOUND}" = xno; then
24238
24239   succeeded=no
24240
24241   if test -z "$PKG_CONFIG"; then
24242     # Extract the first word of "pkg-config", so it can be a program name with args.
24243 set dummy pkg-config; ac_word=$2
24244 echo "$as_me:$LINENO: checking for $ac_word" >&5
24245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24247   echo $ECHO_N "(cached) $ECHO_C" >&6
24248 else
24249   case $PKG_CONFIG in
24250   [\\/]* | ?:[\\/]*)
24251   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24252   ;;
24253   *)
24254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24255 for as_dir in $PATH
24256 do
24257   IFS=$as_save_IFS
24258   test -z "$as_dir" && as_dir=.
24259   for ac_exec_ext in '' $ac_executable_extensions; do
24260   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24261     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24263     break 2
24264   fi
24265 done
24266 done
24267
24268   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24269   ;;
24270 esac
24271 fi
24272 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24273
24274 if test -n "$PKG_CONFIG"; then
24275   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24276 echo "${ECHO_T}$PKG_CONFIG" >&6
24277 else
24278   echo "$as_me:$LINENO: result: no" >&5
24279 echo "${ECHO_T}no" >&6
24280 fi
24281
24282   fi
24283
24284   if test "$PKG_CONFIG" = "no" ; then
24285      echo "*** The pkg-config script could not be found. Make sure it is"
24286      echo "*** in your path, or set the PKG_CONFIG environment variable"
24287      echo "*** to the full path to pkg-config."
24288      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24289   else
24290      PKG_CONFIG_MIN_VERSION=0.9.0
24291      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24292         echo "$as_me:$LINENO: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
24293 echo $ECHO_N "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... $ECHO_C" >&6
24294
24295         if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
24296             echo "$as_me:$LINENO: result: yes" >&5
24297 echo "${ECHO_T}yes" >&6
24298             succeeded=yes
24299
24300             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24301 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24302             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24303             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24304 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24305
24306             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24307 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24308             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24309             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24310 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24311         else
24312             MOZILLA_CFLAGS=""
24313             MOZILLA_LIBS=""
24314             ## If we have a custom action on failure, don't print errors, but
24315             ## do set a variable so people can do so.
24316             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
24317
24318         fi
24319
24320
24321
24322      else
24323         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24324         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24325      fi
24326   fi
24327
24328   if test $succeeded = yes; then
24329      MOZILLA_FOUND=yes
24330   else
24331      MOZILLA_FOUND=no
24332   fi
24333
24334     fi
24335     if test "x${MOZILLA_FOUND}" = xno; then
24336
24337   succeeded=no
24338
24339   if test -z "$PKG_CONFIG"; then
24340     # Extract the first word of "pkg-config", so it can be a program name with args.
24341 set dummy pkg-config; ac_word=$2
24342 echo "$as_me:$LINENO: checking for $ac_word" >&5
24343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24344 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24345   echo $ECHO_N "(cached) $ECHO_C" >&6
24346 else
24347   case $PKG_CONFIG in
24348   [\\/]* | ?:[\\/]*)
24349   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24350   ;;
24351   *)
24352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24353 for as_dir in $PATH
24354 do
24355   IFS=$as_save_IFS
24356   test -z "$as_dir" && as_dir=.
24357   for ac_exec_ext in '' $ac_executable_extensions; do
24358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24359     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24361     break 2
24362   fi
24363 done
24364 done
24365
24366   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24367   ;;
24368 esac
24369 fi
24370 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24371
24372 if test -n "$PKG_CONFIG"; then
24373   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24374 echo "${ECHO_T}$PKG_CONFIG" >&6
24375 else
24376   echo "$as_me:$LINENO: result: no" >&5
24377 echo "${ECHO_T}no" >&6
24378 fi
24379
24380   fi
24381
24382   if test "$PKG_CONFIG" = "no" ; then
24383      echo "*** The pkg-config script could not be found. Make sure it is"
24384      echo "*** in your path, or set the PKG_CONFIG environment variable"
24385      echo "*** to the full path to pkg-config."
24386      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24387   else
24388      PKG_CONFIG_MIN_VERSION=0.9.0
24389      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24390         echo "$as_me:$LINENO: checking for seamonkey-plugin seamonkey-xpcom" >&5
24391 echo $ECHO_N "checking for seamonkey-plugin seamonkey-xpcom... $ECHO_C" >&6
24392
24393         if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
24394             echo "$as_me:$LINENO: result: yes" >&5
24395 echo "${ECHO_T}yes" >&6
24396             succeeded=yes
24397
24398             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24399 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24400             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
24401             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24402 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24403
24404             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24405 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24406             MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
24407             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24408 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24409         else
24410             MOZILLA_CFLAGS=""
24411             MOZILLA_LIBS=""
24412             ## If we have a custom action on failure, don't print errors, but
24413             ## do set a variable so people can do so.
24414             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
24415
24416         fi
24417
24418
24419
24420      else
24421         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24422         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24423      fi
24424   fi
24425
24426   if test $succeeded = yes; then
24427      MOZILLA_FOUND=yes
24428   else
24429      MOZILLA_FOUND=no
24430   fi
24431
24432     fi
24433     if test "x${MOZILLA_FOUND}" = xno; then
24434
24435   succeeded=no
24436
24437   if test -z "$PKG_CONFIG"; then
24438     # Extract the first word of "pkg-config", so it can be a program name with args.
24439 set dummy pkg-config; ac_word=$2
24440 echo "$as_me:$LINENO: checking for $ac_word" >&5
24441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24442 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24443   echo $ECHO_N "(cached) $ECHO_C" >&6
24444 else
24445   case $PKG_CONFIG in
24446   [\\/]* | ?:[\\/]*)
24447   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24448   ;;
24449   *)
24450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24451 for as_dir in $PATH
24452 do
24453   IFS=$as_save_IFS
24454   test -z "$as_dir" && as_dir=.
24455   for ac_exec_ext in '' $ac_executable_extensions; do
24456   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24457     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24458     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24459     break 2
24460   fi
24461 done
24462 done
24463
24464   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24465   ;;
24466 esac
24467 fi
24468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24469
24470 if test -n "$PKG_CONFIG"; then
24471   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24472 echo "${ECHO_T}$PKG_CONFIG" >&6
24473 else
24474   echo "$as_me:$LINENO: result: no" >&5
24475 echo "${ECHO_T}no" >&6
24476 fi
24477
24478   fi
24479
24480   if test "$PKG_CONFIG" = "no" ; then
24481      echo "*** The pkg-config script could not be found. Make sure it is"
24482      echo "*** in your path, or set the PKG_CONFIG environment variable"
24483      echo "*** to the full path to pkg-config."
24484      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24485   else
24486      PKG_CONFIG_MIN_VERSION=0.9.0
24487      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24488         echo "$as_me:$LINENO: checking for iceape-plugin iceape-xpcom" >&5
24489 echo $ECHO_N "checking for iceape-plugin iceape-xpcom... $ECHO_C" >&6
24490
24491         if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
24492             echo "$as_me:$LINENO: result: yes" >&5
24493 echo "${ECHO_T}yes" >&6
24494             succeeded=yes
24495
24496             echo "$as_me:$LINENO: checking MOZILLA_CFLAGS" >&5
24497 echo $ECHO_N "checking MOZILLA_CFLAGS... $ECHO_C" >&6
24498             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
24499             echo "$as_me:$LINENO: result: $MOZILLA_CFLAGS" >&5
24500 echo "${ECHO_T}$MOZILLA_CFLAGS" >&6
24501
24502             echo "$as_me:$LINENO: checking MOZILLA_LIBS" >&5
24503 echo $ECHO_N "checking MOZILLA_LIBS... $ECHO_C" >&6
24504             MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
24505             echo "$as_me:$LINENO: result: $MOZILLA_LIBS" >&5
24506 echo "${ECHO_T}$MOZILLA_LIBS" >&6
24507         else
24508             MOZILLA_CFLAGS=""
24509             MOZILLA_LIBS=""
24510             ## If we have a custom action on failure, don't print errors, but
24511             ## do set a variable so people can do so.
24512             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
24513
24514         fi
24515
24516
24517
24518      else
24519         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24520         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24521      fi
24522   fi
24523
24524   if test $succeeded = yes; then
24525      MOZILLA_FOUND=yes
24526   else
24527      MOZILLA_FOUND=no
24528   fi
24529
24530     fi
24531     if test "x${MOZILLA_FOUND}" = xno; then
24532       { { echo "$as_me:$LINENO: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&5
24533 echo "$as_me: error: Couldn't find plugin support headers and libraries, try --disable-plugin" >&2;}
24534    { (exit 1); exit 1; }; }
24535     fi
24536
24537
24538   succeeded=no
24539
24540   if test -z "$PKG_CONFIG"; then
24541     # Extract the first word of "pkg-config", so it can be a program name with args.
24542 set dummy pkg-config; ac_word=$2
24543 echo "$as_me:$LINENO: checking for $ac_word" >&5
24544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24546   echo $ECHO_N "(cached) $ECHO_C" >&6
24547 else
24548   case $PKG_CONFIG in
24549   [\\/]* | ?:[\\/]*)
24550   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24551   ;;
24552   *)
24553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24554 for as_dir in $PATH
24555 do
24556   IFS=$as_save_IFS
24557   test -z "$as_dir" && as_dir=.
24558   for ac_exec_ext in '' $ac_executable_extensions; do
24559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24560     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24562     break 2
24563   fi
24564 done
24565 done
24566
24567   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24568   ;;
24569 esac
24570 fi
24571 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24572
24573 if test -n "$PKG_CONFIG"; then
24574   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24575 echo "${ECHO_T}$PKG_CONFIG" >&6
24576 else
24577   echo "$as_me:$LINENO: result: no" >&5
24578 echo "${ECHO_T}no" >&6
24579 fi
24580
24581   fi
24582
24583   if test "$PKG_CONFIG" = "no" ; then
24584      echo "*** The pkg-config script could not be found. Make sure it is"
24585      echo "*** in your path, or set the PKG_CONFIG environment variable"
24586      echo "*** to the full path to pkg-config."
24587      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24588   else
24589      PKG_CONFIG_MIN_VERSION=0.9.0
24590      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24591         echo "$as_me:$LINENO: checking for glib-2.0" >&5
24592 echo $ECHO_N "checking for glib-2.0... $ECHO_C" >&6
24593
24594         if $PKG_CONFIG --exists "glib-2.0" ; then
24595             echo "$as_me:$LINENO: result: yes" >&5
24596 echo "${ECHO_T}yes" >&6
24597             succeeded=yes
24598
24599             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
24600 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
24601             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
24602             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
24603 echo "${ECHO_T}$GLIB_CFLAGS" >&6
24604
24605             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
24606 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
24607             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
24608             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
24609 echo "${ECHO_T}$GLIB_LIBS" >&6
24610         else
24611             GLIB_CFLAGS=""
24612             GLIB_LIBS=""
24613             ## If we have a custom action on failure, don't print errors, but
24614             ## do set a variable so people can do so.
24615             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
24616             echo $GLIB_PKG_ERRORS
24617         fi
24618
24619
24620
24621      else
24622         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24623         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24624      fi
24625   fi
24626
24627   if test $succeeded = yes; then
24628      :
24629   else
24630      { { 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
24631 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;}
24632    { (exit 1); exit 1; }; }
24633   fi
24634
24635
24636   succeeded=no
24637
24638   if test -z "$PKG_CONFIG"; then
24639     # Extract the first word of "pkg-config", so it can be a program name with args.
24640 set dummy pkg-config; ac_word=$2
24641 echo "$as_me:$LINENO: checking for $ac_word" >&5
24642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24644   echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646   case $PKG_CONFIG in
24647   [\\/]* | ?:[\\/]*)
24648   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24649   ;;
24650   *)
24651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24652 for as_dir in $PATH
24653 do
24654   IFS=$as_save_IFS
24655   test -z "$as_dir" && as_dir=.
24656   for ac_exec_ext in '' $ac_executable_extensions; do
24657   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24658     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24660     break 2
24661   fi
24662 done
24663 done
24664
24665   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24666   ;;
24667 esac
24668 fi
24669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24670
24671 if test -n "$PKG_CONFIG"; then
24672   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24673 echo "${ECHO_T}$PKG_CONFIG" >&6
24674 else
24675   echo "$as_me:$LINENO: result: no" >&5
24676 echo "${ECHO_T}no" >&6
24677 fi
24678
24679   fi
24680
24681   if test "$PKG_CONFIG" = "no" ; then
24682      echo "*** The pkg-config script could not be found. Make sure it is"
24683      echo "*** in your path, or set the PKG_CONFIG environment variable"
24684      echo "*** to the full path to pkg-config."
24685      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24686   else
24687      PKG_CONFIG_MIN_VERSION=0.9.0
24688      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24689         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
24690 echo $ECHO_N "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6
24691
24692         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
24693             echo "$as_me:$LINENO: result: yes" >&5
24694 echo "${ECHO_T}yes" >&6
24695             succeeded=yes
24696
24697             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24698 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24699             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24700             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24701 echo "${ECHO_T}$GTK_CFLAGS" >&6
24702
24703             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24704 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24705             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24706             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24707 echo "${ECHO_T}$GTK_LIBS" >&6
24708         else
24709             GTK_CFLAGS=""
24710             GTK_LIBS=""
24711             ## If we have a custom action on failure, don't print errors, but
24712             ## do set a variable so people can do so.
24713             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
24714             echo $GTK_PKG_ERRORS
24715         fi
24716
24717
24718
24719      else
24720         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24721         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24722      fi
24723   fi
24724
24725   if test $succeeded = yes; then
24726      :
24727   else
24728      { { 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
24729 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;}
24730    { (exit 1); exit 1; }; }
24731   fi
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741     PLUGIN_DIR=$HOME/.mozilla/plugins/
24742
24743   fi
24744
24745             if test "x${COMPILE_GMP}" = xyes; then
24746     echo "$as_me:$LINENO: checking for __gmpz_mul_si in -lgmp" >&5
24747 echo $ECHO_N "checking for __gmpz_mul_si in -lgmp... $ECHO_C" >&6
24748 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   ac_check_lib_save_LIBS=$LIBS
24752 LIBS="-lgmp  $LIBS"
24753 if test x$gcc_no_link = xyes; then
24754   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24756    { (exit 1); exit 1; }; }
24757 fi
24758 cat >conftest.$ac_ext <<_ACEOF
24759 /* confdefs.h.  */
24760 _ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h.  */
24764
24765 /* Override any gcc2 internal prototype to avoid an error.  */
24766 #ifdef __cplusplus
24767 extern "C"
24768 #endif
24769 /* We use char because int might match the return type of a gcc2
24770    builtin and then its argument prototype would still apply.  */
24771 char __gmpz_mul_si ();
24772 int
24773 main ()
24774 {
24775 __gmpz_mul_si ();
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest.$ac_objext conftest$ac_exeext
24781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782   (eval $ac_link) 2>conftest.er1
24783   ac_status=$?
24784   grep -v '^ *+' conftest.er1 >conftest.err
24785   rm -f conftest.er1
24786   cat conftest.err >&5
24787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788   (exit $ac_status); } &&
24789          { ac_try='test -z "$ac_c_werror_flag"
24790                          || test ! -s conftest.err'
24791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792   (eval $ac_try) 2>&5
24793   ac_status=$?
24794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795   (exit $ac_status); }; } &&
24796          { ac_try='test -s conftest$ac_exeext'
24797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798   (eval $ac_try) 2>&5
24799   ac_status=$?
24800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801   (exit $ac_status); }; }; then
24802   ac_cv_lib_gmp___gmpz_mul_si=yes
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807 ac_cv_lib_gmp___gmpz_mul_si=no
24808 fi
24809 rm -f conftest.err conftest.$ac_objext \
24810       conftest$ac_exeext conftest.$ac_ext
24811 LIBS=$ac_check_lib_save_LIBS
24812 fi
24813 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
24814 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_mul_si" >&6
24815 if test $ac_cv_lib_gmp___gmpz_mul_si = yes; then
24816   GMP_CFLAGS=-I/usr/include
24817        GMP_LIBS=-lgmp
24818 else
24819   GMP_CFLAGS=
24820        GMP_LIBS=
24821 fi
24822
24823
24824
24825
24826
24827 for ac_header in gmp.h
24828 do
24829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24831   echo "$as_me:$LINENO: checking for $ac_header" >&5
24832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24834   echo $ECHO_N "(cached) $ECHO_C" >&6
24835 fi
24836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24838 else
24839   # Is the header compilable?
24840 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24842 cat >conftest.$ac_ext <<_ACEOF
24843 /* confdefs.h.  */
24844 _ACEOF
24845 cat confdefs.h >>conftest.$ac_ext
24846 cat >>conftest.$ac_ext <<_ACEOF
24847 /* end confdefs.h.  */
24848 $ac_includes_default
24849 #include <$ac_header>
24850 _ACEOF
24851 rm -f conftest.$ac_objext
24852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24853   (eval $ac_compile) 2>conftest.er1
24854   ac_status=$?
24855   grep -v '^ *+' conftest.er1 >conftest.err
24856   rm -f conftest.er1
24857   cat conftest.err >&5
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); } &&
24860          { ac_try='test -z "$ac_c_werror_flag"
24861                          || test ! -s conftest.err'
24862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24863   (eval $ac_try) 2>&5
24864   ac_status=$?
24865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866   (exit $ac_status); }; } &&
24867          { ac_try='test -s conftest.$ac_objext'
24868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24869   (eval $ac_try) 2>&5
24870   ac_status=$?
24871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24872   (exit $ac_status); }; }; then
24873   ac_header_compiler=yes
24874 else
24875   echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.$ac_ext >&5
24877
24878 ac_header_compiler=no
24879 fi
24880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24881 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24882 echo "${ECHO_T}$ac_header_compiler" >&6
24883
24884 # Is the header present?
24885 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24886 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24887 cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 #include <$ac_header>
24894 _ACEOF
24895 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24896   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24897   ac_status=$?
24898   grep -v '^ *+' conftest.er1 >conftest.err
24899   rm -f conftest.er1
24900   cat conftest.err >&5
24901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902   (exit $ac_status); } >/dev/null; then
24903   if test -s conftest.err; then
24904     ac_cpp_err=$ac_c_preproc_warn_flag
24905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24906   else
24907     ac_cpp_err=
24908   fi
24909 else
24910   ac_cpp_err=yes
24911 fi
24912 if test -z "$ac_cpp_err"; then
24913   ac_header_preproc=yes
24914 else
24915   echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918   ac_header_preproc=no
24919 fi
24920 rm -f conftest.err conftest.$ac_ext
24921 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24922 echo "${ECHO_T}$ac_header_preproc" >&6
24923
24924 # So?  What about this header?
24925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24926   yes:no: )
24927     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24931     ac_header_preproc=yes
24932     ;;
24933   no:yes:* )
24934     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24936     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24937 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24938     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24940     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24941 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24944     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24946     (
24947       cat <<\_ASBOX
24948 ## -------------------------------- ##
24949 ## Report this to classpath@gnu.org ##
24950 ## -------------------------------- ##
24951 _ASBOX
24952     ) |
24953       sed "s/^/$as_me: WARNING:     /" >&2
24954     ;;
24955 esac
24956 echo "$as_me:$LINENO: checking for $ac_header" >&5
24957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24958 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24959   echo $ECHO_N "(cached) $ECHO_C" >&6
24960 else
24961   eval "$as_ac_Header=\$ac_header_preproc"
24962 fi
24963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24964 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24965
24966 fi
24967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24968   cat >>confdefs.h <<_ACEOF
24969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24970 _ACEOF
24971
24972 fi
24973
24974 done
24975
24976   fi
24977
24978 else
24979   COMPILE_GMP=no
24980 fi
24981
24982 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
24983
24984
24985 # Check whether --with-javah or --without-javah was given.
24986 if test "${with_javah+set}" = set; then
24987   withval="$with_javah"
24988
24989     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
24990
24991   if test "x${withval}" != x; then
24992     if test -f "${withval}"; then
24993       USER_JAVAH="${withval}"
24994     else
24995       # Extract the first word of ""${withval}"", so it can be a program name with args.
24996 set dummy "${withval}"; ac_word=$2
24997 echo "$as_me:$LINENO: checking for $ac_word" >&5
24998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24999 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25000   echo $ECHO_N "(cached) $ECHO_C" >&6
25001 else
25002   case $USER_JAVAH in
25003   [\\/]* | ?:[\\/]*)
25004   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25005   ;;
25006   *)
25007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25008 for as_dir in $PATH
25009 do
25010   IFS=$as_save_IFS
25011   test -z "$as_dir" && as_dir=.
25012   for ac_exec_ext in '' $ac_executable_extensions; do
25013   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25014     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25016     break 2
25017   fi
25018 done
25019 done
25020
25021   ;;
25022 esac
25023 fi
25024 USER_JAVAH=$ac_cv_path_USER_JAVAH
25025
25026 if test -n "$USER_JAVAH"; then
25027   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25028 echo "${ECHO_T}$USER_JAVAH" >&6
25029 else
25030   echo "$as_me:$LINENO: result: no" >&5
25031 echo "${ECHO_T}no" >&6
25032 fi
25033
25034     fi
25035   else
25036     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25037 do
25038   # Extract the first word of "$ac_prog", so it can be a program name with args.
25039 set dummy $ac_prog; ac_word=$2
25040 echo "$as_me:$LINENO: checking for $ac_word" >&5
25041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25042 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25043   echo $ECHO_N "(cached) $ECHO_C" >&6
25044 else
25045   case $USER_JAVAH in
25046   [\\/]* | ?:[\\/]*)
25047   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25048   ;;
25049   *)
25050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25051 for as_dir in $PATH
25052 do
25053   IFS=$as_save_IFS
25054   test -z "$as_dir" && as_dir=.
25055   for ac_exec_ext in '' $ac_executable_extensions; do
25056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25057     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25059     break 2
25060   fi
25061 done
25062 done
25063
25064   ;;
25065 esac
25066 fi
25067 USER_JAVAH=$ac_cv_path_USER_JAVAH
25068
25069 if test -n "$USER_JAVAH"; then
25070   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25071 echo "${ECHO_T}$USER_JAVAH" >&6
25072 else
25073   echo "$as_me:$LINENO: result: no" >&5
25074 echo "${ECHO_T}no" >&6
25075 fi
25076
25077   test -n "$USER_JAVAH" && break
25078 done
25079
25080   fi
25081
25082   if test "x${USER_JAVAH}" = x; then
25083     { { echo "$as_me:$LINENO: error: can not find javah" >&5
25084 echo "$as_me: error: can not find javah" >&2;}
25085    { (exit 1); exit 1; }; }
25086   fi
25087
25088     else
25089
25090   if test "x" != x; then
25091     if test -f ""; then
25092       USER_JAVAH=""
25093     else
25094       # Extract the first word of """", so it can be a program name with args.
25095 set dummy ""; ac_word=$2
25096 echo "$as_me:$LINENO: checking for $ac_word" >&5
25097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25098 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25099   echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101   case $USER_JAVAH in
25102   [\\/]* | ?:[\\/]*)
25103   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25104   ;;
25105   *)
25106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25107 for as_dir in $PATH
25108 do
25109   IFS=$as_save_IFS
25110   test -z "$as_dir" && as_dir=.
25111   for ac_exec_ext in '' $ac_executable_extensions; do
25112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25113     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25115     break 2
25116   fi
25117 done
25118 done
25119
25120   ;;
25121 esac
25122 fi
25123 USER_JAVAH=$ac_cv_path_USER_JAVAH
25124
25125 if test -n "$USER_JAVAH"; then
25126   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25127 echo "${ECHO_T}$USER_JAVAH" >&6
25128 else
25129   echo "$as_me:$LINENO: result: no" >&5
25130 echo "${ECHO_T}no" >&6
25131 fi
25132
25133     fi
25134   else
25135     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25136 do
25137   # Extract the first word of "$ac_prog", so it can be a program name with args.
25138 set dummy $ac_prog; ac_word=$2
25139 echo "$as_me:$LINENO: checking for $ac_word" >&5
25140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25141 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25142   echo $ECHO_N "(cached) $ECHO_C" >&6
25143 else
25144   case $USER_JAVAH in
25145   [\\/]* | ?:[\\/]*)
25146   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25147   ;;
25148   *)
25149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25150 for as_dir in $PATH
25151 do
25152   IFS=$as_save_IFS
25153   test -z "$as_dir" && as_dir=.
25154   for ac_exec_ext in '' $ac_executable_extensions; do
25155   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25156     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25158     break 2
25159   fi
25160 done
25161 done
25162
25163   ;;
25164 esac
25165 fi
25166 USER_JAVAH=$ac_cv_path_USER_JAVAH
25167
25168 if test -n "$USER_JAVAH"; then
25169   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25170 echo "${ECHO_T}$USER_JAVAH" >&6
25171 else
25172   echo "$as_me:$LINENO: result: no" >&5
25173 echo "${ECHO_T}no" >&6
25174 fi
25175
25176   test -n "$USER_JAVAH" && break
25177 done
25178
25179   fi
25180
25181   if test "x${USER_JAVAH}" = x; then
25182     { { echo "$as_me:$LINENO: error: can not find javah" >&5
25183 echo "$as_me: error: can not find javah" >&2;}
25184    { (exit 1); exit 1; }; }
25185   fi
25186
25187     fi
25188
25189 else
25190
25191
25192   if test "x" != x; then
25193     if test -f ""; then
25194       USER_JAVAH=""
25195     else
25196       # Extract the first word of """", so it can be a program name with args.
25197 set dummy ""; ac_word=$2
25198 echo "$as_me:$LINENO: checking for $ac_word" >&5
25199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25200 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25201   echo $ECHO_N "(cached) $ECHO_C" >&6
25202 else
25203   case $USER_JAVAH in
25204   [\\/]* | ?:[\\/]*)
25205   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25206   ;;
25207   *)
25208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25209 for as_dir in $PATH
25210 do
25211   IFS=$as_save_IFS
25212   test -z "$as_dir" && as_dir=.
25213   for ac_exec_ext in '' $ac_executable_extensions; do
25214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25215     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25217     break 2
25218   fi
25219 done
25220 done
25221
25222   ;;
25223 esac
25224 fi
25225 USER_JAVAH=$ac_cv_path_USER_JAVAH
25226
25227 if test -n "$USER_JAVAH"; then
25228   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25229 echo "${ECHO_T}$USER_JAVAH" >&6
25230 else
25231   echo "$as_me:$LINENO: result: no" >&5
25232 echo "${ECHO_T}no" >&6
25233 fi
25234
25235     fi
25236   else
25237     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
25238 do
25239   # Extract the first word of "$ac_prog", so it can be a program name with args.
25240 set dummy $ac_prog; ac_word=$2
25241 echo "$as_me:$LINENO: checking for $ac_word" >&5
25242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25243 if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25244   echo $ECHO_N "(cached) $ECHO_C" >&6
25245 else
25246   case $USER_JAVAH in
25247   [\\/]* | ?:[\\/]*)
25248   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25249   ;;
25250   *)
25251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25252 for as_dir in $PATH
25253 do
25254   IFS=$as_save_IFS
25255   test -z "$as_dir" && as_dir=.
25256   for ac_exec_ext in '' $ac_executable_extensions; do
25257   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25258     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25260     break 2
25261   fi
25262 done
25263 done
25264
25265   ;;
25266 esac
25267 fi
25268 USER_JAVAH=$ac_cv_path_USER_JAVAH
25269
25270 if test -n "$USER_JAVAH"; then
25271   echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
25272 echo "${ECHO_T}$USER_JAVAH" >&6
25273 else
25274   echo "$as_me:$LINENO: result: no" >&5
25275 echo "${ECHO_T}no" >&6
25276 fi
25277
25278   test -n "$USER_JAVAH" && break
25279 done
25280
25281   fi
25282
25283   if test "x${USER_JAVAH}" = x; then
25284     { { echo "$as_me:$LINENO: error: can not find javah" >&5
25285 echo "$as_me: error: can not find javah" >&2;}
25286    { (exit 1); exit 1; }; }
25287   fi
25288
25289
25290 fi;
25291
25292
25293 fi
25294
25295 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
25296
25297
25298 if test "x${COMPILE_JNI}" = xyes; then
25299   echo "$as_me:$LINENO: checking jni_md.h support" >&5
25300 echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6
25301   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
25302     echo "$as_me:$LINENO: result: yes" >&5
25303 echo "${ECHO_T}yes" >&6
25304   else
25305     target_cpu=x86
25306     target_os=linux-gnu
25307     { echo "$as_me:$LINENO: WARNING: no" >&5
25308 echo "$as_me: WARNING: no" >&2;}
25309   fi
25310   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
25311   ac_dests="include/jni_md.h"
25312   while test -n "$ac_sources"; do
25313     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
25314     set $ac_sources; ac_source=$1; shift; ac_sources=$*
25315     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
25316   done
25317             ac_config_links="$ac_config_links $ac_config_links_1"
25318
25319 fi
25320
25321
25322
25323 # Check whether --with-vm-classes or --without-vm-classes was given.
25324 if test "${with_vm_classes+set}" = set; then
25325   withval="$with_vm_classes"
25326   vm_classes="$with_vm_classes"
25327 else
25328   vm_classes='${top_srcdir}/vm/reference'
25329 fi;
25330
25331
25332
25333 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
25334 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
25335     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
25336 if test "${enable_maintainer_mode+set}" = set; then
25337   enableval="$enable_maintainer_mode"
25338   USE_MAINTAINER_MODE=$enableval
25339 else
25340   USE_MAINTAINER_MODE=no
25341 fi;
25342   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
25343 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
25344
25345
25346 if test $USE_MAINTAINER_MODE = yes; then
25347   MAINTAINER_MODE_TRUE=
25348   MAINTAINER_MODE_FALSE='#'
25349 else
25350   MAINTAINER_MODE_TRUE='#'
25351   MAINTAINER_MODE_FALSE=
25352 fi
25353
25354   MAINT=$MAINTAINER_MODE_TRUE
25355
25356
25357
25358 # Check whether --enable-debug or --disable-debug was given.
25359 if test "${enable_debug+set}" = set; then
25360   enableval="$enable_debug"
25361   case "${enableval}" in
25362                 yes)
25363                 LIBDEBUG="true"
25364
25365 cat >>confdefs.h <<\_ACEOF
25366 #define DEBUG 1
25367 _ACEOF
25368
25369                 ;;
25370                 no)   LIBDEBUG="false" ;;
25371                 *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
25372 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
25373    { (exit 1); exit 1; }; } ;;
25374               esac
25375 else
25376   LIBDEBUG="false"
25377 fi;
25378
25379
25380 # Check whether --enable-load-library or --disable-load-library was given.
25381 if test "${enable_load_library+set}" = set; then
25382   enableval="$enable_load_library"
25383   case "${enableval}" in
25384                 yes) INIT_LOAD_LIBRARY="true" ;;
25385                 no) INIT_LOAD_LIBRARY="false" ;;
25386                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
25387 echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
25388    { (exit 1); exit 1; }; } ;;
25389               esac
25390 else
25391   INIT_LOAD_LIBRARY="true"
25392 fi;
25393
25394
25395
25396
25397 # Check whether --with-ecj-jar or --without-ecj-jar was given.
25398 if test "${with_ecj_jar+set}" = set; then
25399   withval="$with_ecj_jar"
25400   ECJ_JAR=$withval
25401 else
25402   if test -f $multi_basedir/ecj.jar; then
25403                ECJ_JAR='$(jardir)/ecj.jar'
25404              fi
25405 fi;
25406
25407
25408 # Check whether --enable-java-lang-system-explicit-initialization or --disable-java-lang-system-explicit-initialization was given.
25409 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
25410   enableval="$enable_java_lang_system_explicit_initialization"
25411   case "${enableval}" in
25412                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
25413                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
25414                 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
25415 echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
25416    { (exit 1); exit 1; }; } ;;
25417               esac
25418 else
25419   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
25420 fi;
25421
25422
25423
25424 REMOVE=""
25425
25426
25427 # Extract the first word of "mkdir", so it can be a program name with args.
25428 set dummy mkdir; ac_word=$2
25429 echo "$as_me:$LINENO: checking for $ac_word" >&5
25430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25431 if test "${ac_cv_path_MKDIR+set}" = set; then
25432   echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434   case $MKDIR in
25435   [\\/]* | ?:[\\/]*)
25436   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
25437   ;;
25438   *)
25439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25440 for as_dir in $PATH
25441 do
25442   IFS=$as_save_IFS
25443   test -z "$as_dir" && as_dir=.
25444   for ac_exec_ext in '' $ac_executable_extensions; do
25445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25446     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
25447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25448     break 2
25449   fi
25450 done
25451 done
25452
25453   ;;
25454 esac
25455 fi
25456 MKDIR=$ac_cv_path_MKDIR
25457
25458 if test -n "$MKDIR"; then
25459   echo "$as_me:$LINENO: result: $MKDIR" >&5
25460 echo "${ECHO_T}$MKDIR" >&6
25461 else
25462   echo "$as_me:$LINENO: result: no" >&5
25463 echo "${ECHO_T}no" >&6
25464 fi
25465
25466 # Extract the first word of "cp", so it can be a program name with args.
25467 set dummy cp; ac_word=$2
25468 echo "$as_me:$LINENO: checking for $ac_word" >&5
25469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25470 if test "${ac_cv_path_CP+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   case $CP in
25474   [\\/]* | ?:[\\/]*)
25475   ac_cv_path_CP="$CP" # Let the user override the test with a path.
25476   ;;
25477   *)
25478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25479 for as_dir in $PATH
25480 do
25481   IFS=$as_save_IFS
25482   test -z "$as_dir" && as_dir=.
25483   for ac_exec_ext in '' $ac_executable_extensions; do
25484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25485     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
25486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25487     break 2
25488   fi
25489 done
25490 done
25491
25492   ;;
25493 esac
25494 fi
25495 CP=$ac_cv_path_CP
25496
25497 if test -n "$CP"; then
25498   echo "$as_me:$LINENO: result: $CP" >&5
25499 echo "${ECHO_T}$CP" >&6
25500 else
25501   echo "$as_me:$LINENO: result: no" >&5
25502 echo "${ECHO_T}no" >&6
25503 fi
25504
25505 # Extract the first word of "date", so it can be a program name with args.
25506 set dummy date; ac_word=$2
25507 echo "$as_me:$LINENO: checking for $ac_word" >&5
25508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25509 if test "${ac_cv_path_DATE+set}" = set; then
25510   echo $ECHO_N "(cached) $ECHO_C" >&6
25511 else
25512   case $DATE in
25513   [\\/]* | ?:[\\/]*)
25514   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
25515   ;;
25516   *)
25517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25518 for as_dir in $PATH
25519 do
25520   IFS=$as_save_IFS
25521   test -z "$as_dir" && as_dir=.
25522   for ac_exec_ext in '' $ac_executable_extensions; do
25523   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25524     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
25525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25526     break 2
25527   fi
25528 done
25529 done
25530
25531   ;;
25532 esac
25533 fi
25534 DATE=$ac_cv_path_DATE
25535
25536 if test -n "$DATE"; then
25537   echo "$as_me:$LINENO: result: $DATE" >&5
25538 echo "${ECHO_T}$DATE" >&6
25539 else
25540   echo "$as_me:$LINENO: result: no" >&5
25541 echo "${ECHO_T}no" >&6
25542 fi
25543
25544
25545 # Extract the first word of "find", so it can be a program name with args.
25546 set dummy find; ac_word=$2
25547 echo "$as_me:$LINENO: checking for $ac_word" >&5
25548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25549 if test "${ac_cv_path_FIND+set}" = set; then
25550   echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552   case $FIND in
25553   [\\/]* | ?:[\\/]*)
25554   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
25555   ;;
25556   *)
25557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25558 for as_dir in $PATH
25559 do
25560   IFS=$as_save_IFS
25561   test -z "$as_dir" && as_dir=.
25562   for ac_exec_ext in '' $ac_executable_extensions; do
25563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25564     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
25565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25566     break 2
25567   fi
25568 done
25569 done
25570
25571   ;;
25572 esac
25573 fi
25574 FIND=$ac_cv_path_FIND
25575
25576 if test -n "$FIND"; then
25577   echo "$as_me:$LINENO: result: $FIND" >&5
25578 echo "${ECHO_T}$FIND" >&6
25579 else
25580   echo "$as_me:$LINENO: result: no" >&5
25581 echo "${ECHO_T}no" >&6
25582 fi
25583
25584
25585
25586   # Extract the first word of "zip", so it can be a program name with args.
25587 set dummy zip; ac_word=$2
25588 echo "$as_me:$LINENO: checking for $ac_word" >&5
25589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25590 if test "${ac_cv_path_ZIP+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593   case $ZIP in
25594   [\\/]* | ?:[\\/]*)
25595   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
25596   ;;
25597   *)
25598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25599 for as_dir in $PATH
25600 do
25601   IFS=$as_save_IFS
25602   test -z "$as_dir" && as_dir=.
25603   for ac_exec_ext in '' $ac_executable_extensions; do
25604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25605     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
25606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25607     break 2
25608   fi
25609 done
25610 done
25611
25612   ;;
25613 esac
25614 fi
25615 ZIP=$ac_cv_path_ZIP
25616
25617 if test -n "$ZIP"; then
25618   echo "$as_me:$LINENO: result: $ZIP" >&5
25619 echo "${ECHO_T}$ZIP" >&6
25620 else
25621   echo "$as_me:$LINENO: result: no" >&5
25622 echo "${ECHO_T}no" >&6
25623 fi
25624
25625
25626   echo "$as_me:$LINENO: checking for a jar-like tool" >&5
25627 echo $ECHO_N "checking for a jar-like tool... $ECHO_C" >&6
25628
25629 # Check whether --with-jar or --without-jar was given.
25630 if test "${with_jar+set}" = set; then
25631   withval="$with_jar"
25632
25633                 case "${withval}" in
25634                   yes)
25635                     JAR=yes
25636                     ;;
25637                   no)
25638                     JAR=no
25639                     echo "$as_me:$LINENO: result: ${JAR}" >&5
25640 echo "${ECHO_T}${JAR}" >&6
25641                     ;;
25642                   *)
25643                     if test -f "${withval}"; then
25644                       JAR="${withval}"
25645                       echo "$as_me:$LINENO: result: ${JAR}" >&5
25646 echo "${ECHO_T}${JAR}" >&6
25647                     else
25648                       echo "$as_me:$LINENO: result: not found" >&5
25649 echo "${ECHO_T}not found" >&6
25650                       { { echo "$as_me:$LINENO: error: The jar tool ${withval} was not found." >&5
25651 echo "$as_me: error: The jar tool ${withval} was not found." >&2;}
25652    { (exit 1); exit 1; }; }
25653                     fi
25654                     ;;
25655                 esac
25656
25657 else
25658
25659                 JAR=yes
25660
25661 fi;
25662   if test x"${JAR}" = "xyes"; then
25663     echo "$as_me:$LINENO: result: trying fastjar, gjar and jar" >&5
25664 echo "${ECHO_T}trying fastjar, gjar and jar" >&6
25665     for ac_prog in fastjar gjar jar
25666 do
25667   # Extract the first word of "$ac_prog", so it can be a program name with args.
25668 set dummy $ac_prog; ac_word=$2
25669 echo "$as_me:$LINENO: checking for $ac_word" >&5
25670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25671 if test "${ac_cv_path_JAR+set}" = set; then
25672   echo $ECHO_N "(cached) $ECHO_C" >&6
25673 else
25674   case $JAR in
25675   [\\/]* | ?:[\\/]*)
25676   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
25677   ;;
25678   *)
25679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25680 for as_dir in $PATH
25681 do
25682   IFS=$as_save_IFS
25683   test -z "$as_dir" && as_dir=.
25684   for ac_exec_ext in '' $ac_executable_extensions; do
25685   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25686     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
25687     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25688     break 2
25689   fi
25690 done
25691 done
25692
25693   ;;
25694 esac
25695 fi
25696 JAR=$ac_cv_path_JAR
25697
25698 if test -n "$JAR"; then
25699   echo "$as_me:$LINENO: result: $JAR" >&5
25700 echo "${ECHO_T}$JAR" >&6
25701 else
25702   echo "$as_me:$LINENO: result: no" >&5
25703 echo "${ECHO_T}no" >&6
25704 fi
25705
25706   test -n "$JAR" && break
25707 done
25708
25709     if test x"${RHINO_JAR}" = "xyes"; then
25710       echo "$as_me:$LINENO: result: not found" >&5
25711 echo "${ECHO_T}not found" >&6
25712     fi
25713   fi
25714   if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
25715     { { echo "$as_me:$LINENO: error: No zip or jar tool found." >&5
25716 echo "$as_me: error: No zip or jar tool found." >&2;}
25717    { (exit 1); exit 1; }; }
25718   fi
25719
25720
25721 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
25722   WITH_JAR_TRUE=
25723   WITH_JAR_FALSE='#'
25724 else
25725   WITH_JAR_TRUE='#'
25726   WITH_JAR_FALSE=
25727 fi
25728
25729
25730
25731
25732 # Check whether --with-glibj or --without-glibj was given.
25733 if test "${with_glibj+set}" = set; then
25734   withval="$with_glibj"
25735
25736                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
25737                   install_class_files=no
25738                   build_class_files=yes
25739                   use_zip=yes
25740                 elif test "x${withval}" = xboth; then
25741                   install_class_files=yes
25742                   build_class_files=yes
25743                   use_zip=yes
25744                 elif test "x${withval}" = xflat; then
25745                   install_class_files=yes
25746                   build_class_files=yes
25747                   use_zip=no
25748                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
25749                   install_class_files=no
25750                   build_class_files=no
25751                   use_zip=no
25752                 elif test "x${withval}" = xbuild; then
25753                   install_class_files=no
25754                   build_class_files=yes
25755                   use_zip=no
25756                 else
25757                   { { echo "$as_me:$LINENO: error: unknown value given to --with-glibj" >&5
25758 echo "$as_me: error: unknown value given to --with-glibj" >&2;}
25759    { (exit 1); exit 1; }; }
25760                 fi
25761
25762 else
25763
25764                 install_class_files=no
25765                 use_zip=yes
25766
25767 fi;
25768
25769
25770 if test "x${use_zip}" = xyes; then
25771   INSTALL_GLIBJ_ZIP_TRUE=
25772   INSTALL_GLIBJ_ZIP_FALSE='#'
25773 else
25774   INSTALL_GLIBJ_ZIP_TRUE='#'
25775   INSTALL_GLIBJ_ZIP_FALSE=
25776 fi
25777
25778
25779
25780 if test "x${install_class_files}" = xyes; then
25781   INSTALL_CLASS_FILES_TRUE=
25782   INSTALL_CLASS_FILES_FALSE='#'
25783 else
25784   INSTALL_CLASS_FILES_TRUE='#'
25785   INSTALL_CLASS_FILES_FALSE=
25786 fi
25787
25788
25789
25790 if test "x${build_class_files}" = xyes; then
25791   BUILD_CLASS_FILES_TRUE=
25792   BUILD_CLASS_FILES_FALSE='#'
25793 else
25794   BUILD_CLASS_FILES_TRUE='#'
25795   BUILD_CLASS_FILES_FALSE=
25796 fi
25797
25798
25799   # Check whether --enable-examples or --disable-examples was given.
25800 if test "${enable_examples+set}" = set; then
25801   enableval="$enable_examples"
25802   case "${enableval}" in
25803                   yes) EXAMPLESDIR="examples" ;;
25804                   no) EXAMPLESDIR="" ;;
25805                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
25806 echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
25807    { (exit 1); exit 1; }; } ;;
25808                 esac
25809 else
25810   EXAMPLESDIR="examples"
25811 fi;
25812   if test "x${build_class_files}" = xno; then
25813     EXAMPLESDIR=""
25814   fi
25815
25816
25817   # Check whether --enable-tools or --disable-tools was given.
25818 if test "${enable_tools+set}" = set; then
25819   enableval="$enable_tools"
25820   case "${enableval}" in
25821                   yes) TOOLSDIR="tools" ;;
25822                   no) TOOLSDIR="" ;;
25823                   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tools" >&5
25824 echo "$as_me: error: bad value ${enableval} for --enable-tools" >&2;}
25825    { (exit 1); exit 1; }; } ;;
25826                 esac
25827 else
25828   TOOLSDIR="tools"
25829 fi;
25830   if test "x${build_class_files}" = xno; then
25831     TOOLSDIR=""
25832   fi
25833
25834
25835
25836
25837
25838 # Check whether --with-gjdoc or --without-gjdoc was given.
25839 if test "${with_gjdoc+set}" = set; then
25840   withval="$with_gjdoc"
25841   if test "x${withval}" = xno; then
25842                  WITH_GJDOC=no;
25843                elif test "x${withval}" = xyes -o "x{withval}" = x; then
25844                  WITH_GJDOC=yes;
25845                  # Extract the first word of "gjdoc", so it can be a program name with args.
25846 set dummy gjdoc; ac_word=$2
25847 echo "$as_me:$LINENO: checking for $ac_word" >&5
25848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25849 if test "${ac_cv_path_GJDOC+set}" = set; then
25850   echo $ECHO_N "(cached) $ECHO_C" >&6
25851 else
25852   case $GJDOC in
25853   [\\/]* | ?:[\\/]*)
25854   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
25855   ;;
25856   *)
25857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25858 for as_dir in $PATH
25859 do
25860   IFS=$as_save_IFS
25861   test -z "$as_dir" && as_dir=.
25862   for ac_exec_ext in '' $ac_executable_extensions; do
25863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25864     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
25865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25866     break 2
25867   fi
25868 done
25869 done
25870
25871   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
25872   ;;
25873 esac
25874 fi
25875 GJDOC=$ac_cv_path_GJDOC
25876
25877 if test -n "$GJDOC"; then
25878   echo "$as_me:$LINENO: result: $GJDOC" >&5
25879 echo "${ECHO_T}$GJDOC" >&6
25880 else
25881   echo "$as_me:$LINENO: result: no" >&5
25882 echo "${ECHO_T}no" >&6
25883 fi
25884
25885                  if test "x${GJDOC}" = xno; then
25886                    { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
25887 echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
25888    { (exit 1); exit 1; }; };
25889                  fi
25890                else
25891                  WITH_GJDOC=yes
25892                  GJDOC="${withval}"
25893                  as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
25894 echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
25895 echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6
25896 if eval "test \"\${$as_ac_File+set}\" = set"; then
25897   echo $ECHO_N "(cached) $ECHO_C" >&6
25898 else
25899   test "$cross_compiling" = yes &&
25900   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25901 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25902    { (exit 1); exit 1; }; }
25903 if test -r "${GJDOC}"; then
25904   eval "$as_ac_File=yes"
25905 else
25906   eval "$as_ac_File=no"
25907 fi
25908 fi
25909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
25910 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
25911 if test `eval echo '${'$as_ac_File'}'` = yes; then
25912   :
25913 else
25914   { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
25915 echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
25916    { (exit 1); exit 1; }; }
25917 fi
25918
25919                fi
25920 else
25921   WITH_GJDOC=no
25922 fi;
25923
25924
25925 if test "x${WITH_GJDOC}" = xyes; then
25926   CREATE_API_DOCS_TRUE=
25927   CREATE_API_DOCS_FALSE='#'
25928 else
25929   CREATE_API_DOCS_TRUE='#'
25930   CREATE_API_DOCS_FALSE=
25931 fi
25932
25933   if test "x${WITH_GJDOC}" = xyes; then
25934     echo "$as_me:$LINENO: checking version of GJDoc" >&5
25935 echo $ECHO_N "checking version of GJDoc... $ECHO_C" >&6
25936     gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
25937     echo "$as_me:$LINENO: result: ${gjdoc_version}" >&5
25938 echo "${ECHO_T}${gjdoc_version}" >&6
25939     case ${gjdoc_version} in
25940       0.7.9) ;;
25941       0.8*) ;;
25942       *) { { echo "$as_me:$LINENO: error: Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." >&5
25943 echo "$as_me: error: Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." >&2;}
25944    { (exit 1); exit 1; }; } ;;
25945     esac
25946   fi
25947
25948
25949
25950
25951 # Check whether --with-jay or --without-jay was given.
25952 if test "${with_jay+set}" = set; then
25953   withval="$with_jay"
25954
25955     echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
25956 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6
25957     JAY_FOUND=no
25958     JAY_DIR_PATH=
25959     if test "x${withval}" = xno; then
25960       echo "$as_me:$LINENO: result: no" >&5
25961 echo "${ECHO_T}no" >&6
25962     elif test "x${withval}" = xyes; then
25963       echo "$as_me:$LINENO: result: yes" >&5
25964 echo "${ECHO_T}yes" >&6
25965       JAY_DIR_PATH="/usr/share/jay"
25966     elif test -d "${withval}"; then
25967       echo "$as_me:$LINENO: result: yes" >&5
25968 echo "${ECHO_T}yes" >&6
25969       JAY_DIR_PATH="${withval}"
25970     elif test -f "${withval}"; then
25971       echo "$as_me:$LINENO: result: yes" >&5
25972 echo "${ECHO_T}yes" >&6
25973       JAY_DIR_PATH=`dirname "${withval}"`
25974       JAY="${withval}"
25975     else
25976         { { echo "$as_me:$LINENO: error: jay not found at ${withval}" >&5
25977 echo "$as_me: error: jay not found at ${withval}" >&2;}
25978    { (exit 1); exit 1; }; }
25979     fi
25980
25981     if test "x${JAY_DIR_PATH}" != x; then
25982       # Extract the first word of "jay", so it can be a program name with args.
25983 set dummy jay; ac_word=$2
25984 echo "$as_me:$LINENO: checking for $ac_word" >&5
25985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25986 if test "${ac_cv_path_JAY+set}" = set; then
25987   echo $ECHO_N "(cached) $ECHO_C" >&6
25988 else
25989   case $JAY in
25990   [\\/]* | ?:[\\/]*)
25991   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
25992   ;;
25993   *)
25994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25995 as_dummy="${JAY_DIR_PATH}:${PATH}"
25996 for as_dir in $as_dummy
25997 do
25998   IFS=$as_save_IFS
25999   test -z "$as_dir" && as_dir=.
26000   for ac_exec_ext in '' $ac_executable_extensions; do
26001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26002     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
26003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26004     break 2
26005   fi
26006 done
26007 done
26008
26009   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
26010   ;;
26011 esac
26012 fi
26013 JAY=$ac_cv_path_JAY
26014
26015 if test -n "$JAY"; then
26016   echo "$as_me:$LINENO: result: $JAY" >&5
26017 echo "${ECHO_T}$JAY" >&6
26018 else
26019   echo "$as_me:$LINENO: result: no" >&5
26020 echo "${ECHO_T}no" >&6
26021 fi
26022
26023       if test "x${JAY}" = xno; then
26024         { { echo "$as_me:$LINENO: error: jay executable not found" >&5
26025 echo "$as_me: error: jay executable not found" >&2;}
26026    { (exit 1); exit 1; }; };
26027       fi
26028       JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
26029       as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
26030 echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
26031 echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6
26032 if eval "test \"\${$as_ac_File+set}\" = set"; then
26033   echo $ECHO_N "(cached) $ECHO_C" >&6
26034 else
26035   test "$cross_compiling" = yes &&
26036   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
26037 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
26038    { (exit 1); exit 1; }; }
26039 if test -r "${JAY_SKELETON}"; then
26040   eval "$as_ac_File=yes"
26041 else
26042   eval "$as_ac_File=no"
26043 fi
26044 fi
26045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
26046 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
26047 if test `eval echo '${'$as_ac_File'}'` = yes; then
26048   :
26049 else
26050   { { echo "$as_me:$LINENO: error: Expected skeleton file in ${JAY_DIR_PATH}" >&5
26051 echo "$as_me: error: Expected skeleton file in ${JAY_DIR_PATH}" >&2;}
26052    { (exit 1); exit 1; }; }
26053 fi
26054
26055       JAY_FOUND=yes
26056     fi
26057
26058 else
26059
26060     echo "$as_me:$LINENO: checking whether to regenerate parsers with jay" >&5
26061 echo $ECHO_N "checking whether to regenerate parsers with jay... $ECHO_C" >&6
26062     echo "$as_me:$LINENO: result: no" >&5
26063 echo "${ECHO_T}no" >&6
26064     JAY_FOUND=no
26065
26066 fi;
26067
26068
26069 if test "x${JAY_FOUND}" = xyes; then
26070   REGEN_PARSERS_TRUE=
26071   REGEN_PARSERS_FALSE='#'
26072 else
26073   REGEN_PARSERS_TRUE='#'
26074   REGEN_PARSERS_FALSE=
26075 fi
26076
26077
26078
26079 # Check whether --enable-portable-native-sync or --disable-portable-native-sync was given.
26080 if test "${enable_portable_native_sync+set}" = set; then
26081   enableval="$enable_portable_native_sync"
26082   case "${enableval}" in
26083                 yes)
26084
26085 cat >>confdefs.h <<\_ACEOF
26086 #define PORTABLE_NATIVE_SYNC 1
26087 _ACEOF
26088
26089                      ;;
26090                 no)  ;;
26091                 *)
26092                      { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
26093 echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
26094    { (exit 1); exit 1; }; }
26095                      ;;
26096               esac
26097 fi;
26098
26099 # ------ AX CREATE STDINT H -------------------------------------
26100 echo "$as_me:$LINENO: checking for stdint types" >&5
26101 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
26102 ac_stdint_h=`echo include/config-int.h`
26103 # try to shortcircuit - if the default include path of the compiler
26104 # can find a "stdint.h" header then we assume that all compilers can.
26105 if test "${ac_cv_header_stdint_t+set}" = set; then
26106   echo $ECHO_N "(cached) $ECHO_C" >&6
26107 else
26108
26109 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
26110 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
26111 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
26112 cat >conftest.$ac_ext <<_ACEOF
26113 /* confdefs.h.  */
26114 _ACEOF
26115 cat confdefs.h >>conftest.$ac_ext
26116 cat >>conftest.$ac_ext <<_ACEOF
26117 /* end confdefs.h.  */
26118 #include <stdint.h>
26119 int
26120 main ()
26121 {
26122 int_least32_t v = 0;
26123   ;
26124   return 0;
26125 }
26126 _ACEOF
26127 rm -f conftest.$ac_objext
26128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26129   (eval $ac_compile) 2>conftest.er1
26130   ac_status=$?
26131   grep -v '^ *+' conftest.er1 >conftest.err
26132   rm -f conftest.er1
26133   cat conftest.err >&5
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } &&
26136          { ac_try='test -z "$ac_c_werror_flag"
26137                          || test ! -s conftest.err'
26138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139   (eval $ac_try) 2>&5
26140   ac_status=$?
26141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142   (exit $ac_status); }; } &&
26143          { ac_try='test -s conftest.$ac_objext'
26144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145   (eval $ac_try) 2>&5
26146   ac_status=$?
26147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148   (exit $ac_status); }; }; then
26149   ac_cv_stdint_result="(assuming C99 compatible system)"
26150  ac_cv_header_stdint_t="stdint.h";
26151 else
26152   echo "$as_me: failed program was:" >&5
26153 sed 's/^/| /' conftest.$ac_ext >&5
26154
26155 ac_cv_header_stdint_t=""
26156 fi
26157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26158 CXXFLAGS="$old_CXXFLAGS"
26159 CPPFLAGS="$old_CPPFLAGS"
26160 CFLAGS="$old_CFLAGS"
26161 fi
26162
26163
26164 v="... $ac_cv_header_stdint_h"
26165 if test "$ac_stdint_h" = "stdint.h" ; then
26166  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
26167 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
26168 elif test "$ac_stdint_h" = "inttypes.h" ; then
26169  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
26170 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
26171 elif test "_$ac_cv_header_stdint_t" = "_" ; then
26172  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
26173 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
26174 else
26175  ac_cv_header_stdint="$ac_cv_header_stdint_t"
26176  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
26177 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
26178 fi
26179
26180 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
26181
26182
26183 inttype_headers=`echo  | sed -e 's/,/ /g'`
26184
26185 ac_cv_stdint_result="(no helpful system typedefs seen)"
26186
26187 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26188 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26189 if test "${ac_cv_header_stdint_x+set}" = set; then
26190   echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192
26193  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
26194   echo "$as_me:$LINENO: result: (..)" >&5
26195 echo "${ECHO_T}(..)" >&6
26196   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
26197    unset ac_cv_type_uintptr_t
26198    unset ac_cv_type_uint64_t
26199    echo "$as_me:$LINENO: checking for uintptr_t" >&5
26200 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
26201 if test "${ac_cv_type_uintptr_t+set}" = set; then
26202   echo $ECHO_N "(cached) $ECHO_C" >&6
26203 else
26204   cat >conftest.$ac_ext <<_ACEOF
26205 /* confdefs.h.  */
26206 _ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h.  */
26210 #include <$i>
26211
26212 int
26213 main ()
26214 {
26215 if ((uintptr_t *) 0)
26216   return 0;
26217 if (sizeof (uintptr_t))
26218   return 0;
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 rm -f conftest.$ac_objext
26224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225   (eval $ac_compile) 2>conftest.er1
26226   ac_status=$?
26227   grep -v '^ *+' conftest.er1 >conftest.err
26228   rm -f conftest.er1
26229   cat conftest.err >&5
26230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231   (exit $ac_status); } &&
26232          { ac_try='test -z "$ac_c_werror_flag"
26233                          || test ! -s conftest.err'
26234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235   (eval $ac_try) 2>&5
26236   ac_status=$?
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); }; } &&
26239          { ac_try='test -s conftest.$ac_objext'
26240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241   (eval $ac_try) 2>&5
26242   ac_status=$?
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); }; }; then
26245   ac_cv_type_uintptr_t=yes
26246 else
26247   echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26249
26250 ac_cv_type_uintptr_t=no
26251 fi
26252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26253 fi
26254 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
26255 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
26256 if test $ac_cv_type_uintptr_t = yes; then
26257   ac_cv_header_stdint_x=$i
26258 else
26259   continue
26260 fi
26261
26262    echo "$as_me:$LINENO: checking for uint64_t" >&5
26263 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26264 if test "${ac_cv_type_uint64_t+set}" = set; then
26265   echo $ECHO_N "(cached) $ECHO_C" >&6
26266 else
26267   cat >conftest.$ac_ext <<_ACEOF
26268 /* confdefs.h.  */
26269 _ACEOF
26270 cat confdefs.h >>conftest.$ac_ext
26271 cat >>conftest.$ac_ext <<_ACEOF
26272 /* end confdefs.h.  */
26273 #include<$i>
26274
26275 int
26276 main ()
26277 {
26278 if ((uint64_t *) 0)
26279   return 0;
26280 if (sizeof (uint64_t))
26281   return 0;
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288   (eval $ac_compile) 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } &&
26295          { ac_try='test -z "$ac_c_werror_flag"
26296                          || test ! -s conftest.err'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; } &&
26302          { ac_try='test -s conftest.$ac_objext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   ac_cv_type_uint64_t=yes
26309 else
26310   echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 ac_cv_type_uint64_t=no
26314 fi
26315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26316 fi
26317 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26318 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26319 if test $ac_cv_type_uint64_t = yes; then
26320   and64="/uint64_t"
26321 else
26322   and64=""
26323 fi
26324
26325       stdint.h inttypes.h sys/inttypes.h $inttype_headers
26326  break
26327   done
26328   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
26329 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
26330
26331 fi
26332 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
26333 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
26334
26335
26336 if test "_$ac_cv_header_stdint_x" = "_" ; then
26337
26338 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26339 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26340 if test "${ac_cv_header_stdint_o+set}" = set; then
26341   echo $ECHO_N "(cached) $ECHO_C" >&6
26342 else
26343
26344  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
26345   echo "$as_me:$LINENO: result: (..)" >&5
26346 echo "${ECHO_T}(..)" >&6
26347   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
26348    unset ac_cv_type_uint32_t
26349    unset ac_cv_type_uint64_t
26350    echo "$as_me:$LINENO: checking for uint32_t" >&5
26351 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
26352 if test "${ac_cv_type_uint32_t+set}" = set; then
26353   echo $ECHO_N "(cached) $ECHO_C" >&6
26354 else
26355   cat >conftest.$ac_ext <<_ACEOF
26356 /* confdefs.h.  */
26357 _ACEOF
26358 cat confdefs.h >>conftest.$ac_ext
26359 cat >>conftest.$ac_ext <<_ACEOF
26360 /* end confdefs.h.  */
26361 #include <$i>
26362
26363 int
26364 main ()
26365 {
26366 if ((uint32_t *) 0)
26367   return 0;
26368 if (sizeof (uint32_t))
26369   return 0;
26370   ;
26371   return 0;
26372 }
26373 _ACEOF
26374 rm -f conftest.$ac_objext
26375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26376   (eval $ac_compile) 2>conftest.er1
26377   ac_status=$?
26378   grep -v '^ *+' conftest.er1 >conftest.err
26379   rm -f conftest.er1
26380   cat conftest.err >&5
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } &&
26383          { ac_try='test -z "$ac_c_werror_flag"
26384                          || test ! -s conftest.err'
26385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386   (eval $ac_try) 2>&5
26387   ac_status=$?
26388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); }; } &&
26390          { ac_try='test -s conftest.$ac_objext'
26391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26392   (eval $ac_try) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; }; then
26396   ac_cv_type_uint32_t=yes
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401 ac_cv_type_uint32_t=no
26402 fi
26403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26404 fi
26405 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
26406 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
26407 if test $ac_cv_type_uint32_t = yes; then
26408   ac_cv_header_stdint_o=$i
26409 else
26410   continue
26411 fi
26412
26413    echo "$as_me:$LINENO: checking for uint64_t" >&5
26414 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26415 if test "${ac_cv_type_uint64_t+set}" = set; then
26416   echo $ECHO_N "(cached) $ECHO_C" >&6
26417 else
26418   cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h.  */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h.  */
26424 #include<$i>
26425
26426 int
26427 main ()
26428 {
26429 if ((uint64_t *) 0)
26430   return 0;
26431 if (sizeof (uint64_t))
26432   return 0;
26433   ;
26434   return 0;
26435 }
26436 _ACEOF
26437 rm -f conftest.$ac_objext
26438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26439   (eval $ac_compile) 2>conftest.er1
26440   ac_status=$?
26441   grep -v '^ *+' conftest.er1 >conftest.err
26442   rm -f conftest.er1
26443   cat conftest.err >&5
26444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445   (exit $ac_status); } &&
26446          { ac_try='test -z "$ac_c_werror_flag"
26447                          || test ! -s conftest.err'
26448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449   (eval $ac_try) 2>&5
26450   ac_status=$?
26451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); }; } &&
26453          { ac_try='test -s conftest.$ac_objext'
26454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455   (eval $ac_try) 2>&5
26456   ac_status=$?
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); }; }; then
26459   ac_cv_type_uint64_t=yes
26460 else
26461   echo "$as_me: failed program was:" >&5
26462 sed 's/^/| /' conftest.$ac_ext >&5
26463
26464 ac_cv_type_uint64_t=no
26465 fi
26466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26467 fi
26468 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26469 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26470 if test $ac_cv_type_uint64_t = yes; then
26471   and64="/uint64_t"
26472 else
26473   and64=""
26474 fi
26475
26476       inttypes.h sys/inttypes.h stdint.h $inttype_headers
26477  break
26478    break;
26479   done
26480   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
26481 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
26482
26483 fi
26484 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
26485 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
26486
26487 fi
26488
26489 if test "_$ac_cv_header_stdint_x" = "_" ; then
26490 if test "_$ac_cv_header_stdint_o" = "_" ; then
26491
26492 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26493 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26494 if test "${ac_cv_header_stdint_u+set}" = set; then
26495   echo $ECHO_N "(cached) $ECHO_C" >&6
26496 else
26497
26498  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
26499   echo "$as_me:$LINENO: result: (..)" >&5
26500 echo "${ECHO_T}(..)" >&6
26501   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
26502    unset ac_cv_type_u_int32_t
26503    unset ac_cv_type_u_int64_t
26504    echo "$as_me:$LINENO: checking for u_int32_t" >&5
26505 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
26506 if test "${ac_cv_type_u_int32_t+set}" = set; then
26507   echo $ECHO_N "(cached) $ECHO_C" >&6
26508 else
26509   cat >conftest.$ac_ext <<_ACEOF
26510 /* confdefs.h.  */
26511 _ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h.  */
26515 #include <$i>
26516
26517 int
26518 main ()
26519 {
26520 if ((u_int32_t *) 0)
26521   return 0;
26522 if (sizeof (u_int32_t))
26523   return 0;
26524   ;
26525   return 0;
26526 }
26527 _ACEOF
26528 rm -f conftest.$ac_objext
26529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26530   (eval $ac_compile) 2>conftest.er1
26531   ac_status=$?
26532   grep -v '^ *+' conftest.er1 >conftest.err
26533   rm -f conftest.er1
26534   cat conftest.err >&5
26535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536   (exit $ac_status); } &&
26537          { ac_try='test -z "$ac_c_werror_flag"
26538                          || test ! -s conftest.err'
26539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540   (eval $ac_try) 2>&5
26541   ac_status=$?
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); }; } &&
26544          { ac_try='test -s conftest.$ac_objext'
26545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26546   (eval $ac_try) 2>&5
26547   ac_status=$?
26548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549   (exit $ac_status); }; }; then
26550   ac_cv_type_u_int32_t=yes
26551 else
26552   echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26554
26555 ac_cv_type_u_int32_t=no
26556 fi
26557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26558 fi
26559 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
26560 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
26561 if test $ac_cv_type_u_int32_t = yes; then
26562   ac_cv_header_stdint_u=$i
26563 else
26564   continue
26565 fi
26566
26567    echo "$as_me:$LINENO: checking for u_int64_t" >&5
26568 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26569 if test "${ac_cv_type_u_int64_t+set}" = set; then
26570   echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572   cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578 #include<$i>
26579
26580 int
26581 main ()
26582 {
26583 if ((u_int64_t *) 0)
26584   return 0;
26585 if (sizeof (u_int64_t))
26586   return 0;
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 rm -f conftest.$ac_objext
26592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26593   (eval $ac_compile) 2>conftest.er1
26594   ac_status=$?
26595   grep -v '^ *+' conftest.er1 >conftest.err
26596   rm -f conftest.er1
26597   cat conftest.err >&5
26598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26599   (exit $ac_status); } &&
26600          { ac_try='test -z "$ac_c_werror_flag"
26601                          || test ! -s conftest.err'
26602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26603   (eval $ac_try) 2>&5
26604   ac_status=$?
26605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606   (exit $ac_status); }; } &&
26607          { ac_try='test -s conftest.$ac_objext'
26608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609   (eval $ac_try) 2>&5
26610   ac_status=$?
26611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612   (exit $ac_status); }; }; then
26613   ac_cv_type_u_int64_t=yes
26614 else
26615   echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618 ac_cv_type_u_int64_t=no
26619 fi
26620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26621 fi
26622 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26623 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26624 if test $ac_cv_type_u_int64_t = yes; then
26625   and64="/u_int64_t"
26626 else
26627   and64=""
26628 fi
26629
26630       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
26631  break
26632    break;
26633   done
26634   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
26635 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
26636
26637 fi
26638 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
26639 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
26640
26641 fi fi
26642
26643 if test "_$ac_cv_header_stdint_x" = "_" ; then
26644    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
26645 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
26646    echo "$as_me:$LINENO: result: (..)" >&5
26647 echo "${ECHO_T}(..)" >&6
26648
26649    echo "$as_me:$LINENO: checking for char" >&5
26650 echo $ECHO_N "checking for char... $ECHO_C" >&6
26651 if test "${ac_cv_type_char+set}" = set; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654   cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660 $ac_includes_default
26661 int
26662 main ()
26663 {
26664 if ((char *) 0)
26665   return 0;
26666 if (sizeof (char))
26667   return 0;
26668   ;
26669   return 0;
26670 }
26671 _ACEOF
26672 rm -f conftest.$ac_objext
26673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26674   (eval $ac_compile) 2>conftest.er1
26675   ac_status=$?
26676   grep -v '^ *+' conftest.er1 >conftest.err
26677   rm -f conftest.er1
26678   cat conftest.err >&5
26679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680   (exit $ac_status); } &&
26681          { ac_try='test -z "$ac_c_werror_flag"
26682                          || test ! -s conftest.err'
26683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26684   (eval $ac_try) 2>&5
26685   ac_status=$?
26686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687   (exit $ac_status); }; } &&
26688          { ac_try='test -s conftest.$ac_objext'
26689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690   (eval $ac_try) 2>&5
26691   ac_status=$?
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); }; }; then
26694   ac_cv_type_char=yes
26695 else
26696   echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26698
26699 ac_cv_type_char=no
26700 fi
26701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26702 fi
26703 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26704 echo "${ECHO_T}$ac_cv_type_char" >&6
26705
26706 echo "$as_me:$LINENO: checking size of char" >&5
26707 echo $ECHO_N "checking size of char... $ECHO_C" >&6
26708 if test "${ac_cv_sizeof_char+set}" = set; then
26709   echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711   if test "$ac_cv_type_char" = yes; then
26712   # The cast to unsigned long works around a bug in the HP C Compiler
26713   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26714   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26715   # This bug is HP SR number 8606223364.
26716   if test "$cross_compiling" = yes; then
26717   # Depending upon the size, compute the lo and hi bounds.
26718 cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h.  */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h.  */
26724 $ac_includes_default
26725 int
26726 main ()
26727 {
26728 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
26729 test_array [0] = 0
26730
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737   (eval $ac_compile) 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } &&
26744          { ac_try='test -z "$ac_c_werror_flag"
26745                          || test ! -s conftest.err'
26746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747   (eval $ac_try) 2>&5
26748   ac_status=$?
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); }; } &&
26751          { ac_try='test -s conftest.$ac_objext'
26752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753   (eval $ac_try) 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; }; then
26757   ac_lo=0 ac_mid=0
26758   while :; do
26759     cat >conftest.$ac_ext <<_ACEOF
26760 /* confdefs.h.  */
26761 _ACEOF
26762 cat confdefs.h >>conftest.$ac_ext
26763 cat >>conftest.$ac_ext <<_ACEOF
26764 /* end confdefs.h.  */
26765 $ac_includes_default
26766 int
26767 main ()
26768 {
26769 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26770 test_array [0] = 0
26771
26772   ;
26773   return 0;
26774 }
26775 _ACEOF
26776 rm -f conftest.$ac_objext
26777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778   (eval $ac_compile) 2>conftest.er1
26779   ac_status=$?
26780   grep -v '^ *+' conftest.er1 >conftest.err
26781   rm -f conftest.er1
26782   cat conftest.err >&5
26783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784   (exit $ac_status); } &&
26785          { ac_try='test -z "$ac_c_werror_flag"
26786                          || test ! -s conftest.err'
26787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788   (eval $ac_try) 2>&5
26789   ac_status=$?
26790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791   (exit $ac_status); }; } &&
26792          { ac_try='test -s conftest.$ac_objext'
26793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794   (eval $ac_try) 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; }; then
26798   ac_hi=$ac_mid; break
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803 ac_lo=`expr $ac_mid + 1`
26804                     if test $ac_lo -le $ac_mid; then
26805                       ac_lo= ac_hi=
26806                       break
26807                     fi
26808                     ac_mid=`expr 2 '*' $ac_mid + 1`
26809 fi
26810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26811   done
26812 else
26813   echo "$as_me: failed program was:" >&5
26814 sed 's/^/| /' conftest.$ac_ext >&5
26815
26816 cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822 $ac_includes_default
26823 int
26824 main ()
26825 {
26826 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
26827 test_array [0] = 0
26828
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26835   (eval $ac_compile) 2>conftest.er1
26836   ac_status=$?
26837   grep -v '^ *+' conftest.er1 >conftest.err
26838   rm -f conftest.er1
26839   cat conftest.err >&5
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); } &&
26842          { ac_try='test -z "$ac_c_werror_flag"
26843                          || test ! -s conftest.err'
26844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845   (eval $ac_try) 2>&5
26846   ac_status=$?
26847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848   (exit $ac_status); }; } &&
26849          { ac_try='test -s conftest.$ac_objext'
26850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851   (eval $ac_try) 2>&5
26852   ac_status=$?
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); }; }; then
26855   ac_hi=-1 ac_mid=-1
26856   while :; do
26857     cat >conftest.$ac_ext <<_ACEOF
26858 /* confdefs.h.  */
26859 _ACEOF
26860 cat confdefs.h >>conftest.$ac_ext
26861 cat >>conftest.$ac_ext <<_ACEOF
26862 /* end confdefs.h.  */
26863 $ac_includes_default
26864 int
26865 main ()
26866 {
26867 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
26868 test_array [0] = 0
26869
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876   (eval $ac_compile) 2>conftest.er1
26877   ac_status=$?
26878   grep -v '^ *+' conftest.er1 >conftest.err
26879   rm -f conftest.er1
26880   cat conftest.err >&5
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); } &&
26883          { ac_try='test -z "$ac_c_werror_flag"
26884                          || test ! -s conftest.err'
26885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886   (eval $ac_try) 2>&5
26887   ac_status=$?
26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889   (exit $ac_status); }; } &&
26890          { ac_try='test -s conftest.$ac_objext'
26891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892   (eval $ac_try) 2>&5
26893   ac_status=$?
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); }; }; then
26896   ac_lo=$ac_mid; break
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 ac_hi=`expr '(' $ac_mid ')' - 1`
26902                        if test $ac_mid -le $ac_hi; then
26903                          ac_lo= ac_hi=
26904                          break
26905                        fi
26906                        ac_mid=`expr 2 '*' $ac_mid`
26907 fi
26908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26909   done
26910 else
26911   echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26913
26914 ac_lo= ac_hi=
26915 fi
26916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26917 fi
26918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26919 # Binary search between lo and hi bounds.
26920 while test "x$ac_lo" != "x$ac_hi"; do
26921   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26922   cat >conftest.$ac_ext <<_ACEOF
26923 /* confdefs.h.  */
26924 _ACEOF
26925 cat confdefs.h >>conftest.$ac_ext
26926 cat >>conftest.$ac_ext <<_ACEOF
26927 /* end confdefs.h.  */
26928 $ac_includes_default
26929 int
26930 main ()
26931 {
26932 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26933 test_array [0] = 0
26934
26935   ;
26936   return 0;
26937 }
26938 _ACEOF
26939 rm -f conftest.$ac_objext
26940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26941   (eval $ac_compile) 2>conftest.er1
26942   ac_status=$?
26943   grep -v '^ *+' conftest.er1 >conftest.err
26944   rm -f conftest.er1
26945   cat conftest.err >&5
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); } &&
26948          { ac_try='test -z "$ac_c_werror_flag"
26949                          || test ! -s conftest.err'
26950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26951   (eval $ac_try) 2>&5
26952   ac_status=$?
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); }; } &&
26955          { ac_try='test -s conftest.$ac_objext'
26956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957   (eval $ac_try) 2>&5
26958   ac_status=$?
26959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960   (exit $ac_status); }; }; then
26961   ac_hi=$ac_mid
26962 else
26963   echo "$as_me: failed program was:" >&5
26964 sed 's/^/| /' conftest.$ac_ext >&5
26965
26966 ac_lo=`expr '(' $ac_mid ')' + 1`
26967 fi
26968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26969 done
26970 case $ac_lo in
26971 ?*) ac_cv_sizeof_char=$ac_lo;;
26972 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26973 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
26975 See \`config.log' for more details." >&5
26976 echo "$as_me: error: cannot compute sizeof (char), 77
26977 See \`config.log' for more details." >&2;}
26978    { (exit 1); exit 1; }; }; } ;;
26979 esac
26980 else
26981   if test "$cross_compiling" = yes; then
26982   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26983 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26984 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26985 See \`config.log' for more details." >&5
26986 echo "$as_me: error: cannot run test program while cross compiling
26987 See \`config.log' for more details." >&2;}
26988    { (exit 1); exit 1; }; }; }
26989 else
26990   cat >conftest.$ac_ext <<_ACEOF
26991 /* confdefs.h.  */
26992 _ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h.  */
26996 $ac_includes_default
26997 long longval () { return (long) (sizeof (char)); }
26998 unsigned long ulongval () { return (long) (sizeof (char)); }
26999 #include <stdio.h>
27000 #include <stdlib.h>
27001 int
27002 main ()
27003 {
27004
27005   FILE *f = fopen ("conftest.val", "w");
27006   if (! f)
27007     exit (1);
27008   if (((long) (sizeof (char))) < 0)
27009     {
27010       long i = longval ();
27011       if (i != ((long) (sizeof (char))))
27012         exit (1);
27013       fprintf (f, "%ld\n", i);
27014     }
27015   else
27016     {
27017       unsigned long i = ulongval ();
27018       if (i != ((long) (sizeof (char))))
27019         exit (1);
27020       fprintf (f, "%lu\n", i);
27021     }
27022   exit (ferror (f) || fclose (f) != 0);
27023
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 rm -f conftest$ac_exeext
27029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27030   (eval $ac_link) 2>&5
27031   ac_status=$?
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27035   (eval $ac_try) 2>&5
27036   ac_status=$?
27037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038   (exit $ac_status); }; }; then
27039   ac_cv_sizeof_char=`cat conftest.val`
27040 else
27041   echo "$as_me: program exited with status $ac_status" >&5
27042 echo "$as_me: failed program was:" >&5
27043 sed 's/^/| /' conftest.$ac_ext >&5
27044
27045 ( exit $ac_status )
27046 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27047 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27048 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27049 See \`config.log' for more details." >&5
27050 echo "$as_me: error: cannot compute sizeof (char), 77
27051 See \`config.log' for more details." >&2;}
27052    { (exit 1); exit 1; }; }; }
27053 fi
27054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27055 fi
27056 fi
27057 rm -f conftest.val
27058 else
27059   ac_cv_sizeof_char=0
27060 fi
27061 fi
27062 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27063 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
27064 cat >>confdefs.h <<_ACEOF
27065 #define SIZEOF_CHAR $ac_cv_sizeof_char
27066 _ACEOF
27067
27068
27069    echo "$as_me:$LINENO: checking for short" >&5
27070 echo $ECHO_N "checking for short... $ECHO_C" >&6
27071 if test "${ac_cv_type_short+set}" = set; then
27072   echo $ECHO_N "(cached) $ECHO_C" >&6
27073 else
27074   cat >conftest.$ac_ext <<_ACEOF
27075 /* confdefs.h.  */
27076 _ACEOF
27077 cat confdefs.h >>conftest.$ac_ext
27078 cat >>conftest.$ac_ext <<_ACEOF
27079 /* end confdefs.h.  */
27080 $ac_includes_default
27081 int
27082 main ()
27083 {
27084 if ((short *) 0)
27085   return 0;
27086 if (sizeof (short))
27087   return 0;
27088   ;
27089   return 0;
27090 }
27091 _ACEOF
27092 rm -f conftest.$ac_objext
27093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27094   (eval $ac_compile) 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } &&
27101          { ac_try='test -z "$ac_c_werror_flag"
27102                          || test ! -s conftest.err'
27103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104   (eval $ac_try) 2>&5
27105   ac_status=$?
27106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107   (exit $ac_status); }; } &&
27108          { ac_try='test -s conftest.$ac_objext'
27109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110   (eval $ac_try) 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; }; then
27114   ac_cv_type_short=yes
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119 ac_cv_type_short=no
27120 fi
27121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27122 fi
27123 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
27124 echo "${ECHO_T}$ac_cv_type_short" >&6
27125
27126 echo "$as_me:$LINENO: checking size of short" >&5
27127 echo $ECHO_N "checking size of short... $ECHO_C" >&6
27128 if test "${ac_cv_sizeof_short+set}" = set; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 else
27131   if test "$ac_cv_type_short" = yes; then
27132   # The cast to unsigned long works around a bug in the HP C Compiler
27133   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27134   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27135   # This bug is HP SR number 8606223364.
27136   if test "$cross_compiling" = yes; then
27137   # Depending upon the size, compute the lo and hi bounds.
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144 $ac_includes_default
27145 int
27146 main ()
27147 {
27148 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
27149 test_array [0] = 0
27150
27151   ;
27152   return 0;
27153 }
27154 _ACEOF
27155 rm -f conftest.$ac_objext
27156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27157   (eval $ac_compile) 2>conftest.er1
27158   ac_status=$?
27159   grep -v '^ *+' conftest.er1 >conftest.err
27160   rm -f conftest.er1
27161   cat conftest.err >&5
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); } &&
27164          { ac_try='test -z "$ac_c_werror_flag"
27165                          || test ! -s conftest.err'
27166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167   (eval $ac_try) 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); }; } &&
27171          { ac_try='test -s conftest.$ac_objext'
27172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173   (eval $ac_try) 2>&5
27174   ac_status=$?
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); }; }; then
27177   ac_lo=0 ac_mid=0
27178   while :; do
27179     cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 $ac_includes_default
27186 int
27187 main ()
27188 {
27189 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27190 test_array [0] = 0
27191
27192   ;
27193   return 0;
27194 }
27195 _ACEOF
27196 rm -f conftest.$ac_objext
27197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27198   (eval $ac_compile) 2>conftest.er1
27199   ac_status=$?
27200   grep -v '^ *+' conftest.er1 >conftest.err
27201   rm -f conftest.er1
27202   cat conftest.err >&5
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); } &&
27205          { ac_try='test -z "$ac_c_werror_flag"
27206                          || test ! -s conftest.err'
27207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27208   (eval $ac_try) 2>&5
27209   ac_status=$?
27210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27211   (exit $ac_status); }; } &&
27212          { ac_try='test -s conftest.$ac_objext'
27213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27214   (eval $ac_try) 2>&5
27215   ac_status=$?
27216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); }; }; then
27218   ac_hi=$ac_mid; break
27219 else
27220   echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223 ac_lo=`expr $ac_mid + 1`
27224                     if test $ac_lo -le $ac_mid; then
27225                       ac_lo= ac_hi=
27226                       break
27227                     fi
27228                     ac_mid=`expr 2 '*' $ac_mid + 1`
27229 fi
27230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27231   done
27232 else
27233   echo "$as_me: failed program was:" >&5
27234 sed 's/^/| /' conftest.$ac_ext >&5
27235
27236 cat >conftest.$ac_ext <<_ACEOF
27237 /* confdefs.h.  */
27238 _ACEOF
27239 cat confdefs.h >>conftest.$ac_ext
27240 cat >>conftest.$ac_ext <<_ACEOF
27241 /* end confdefs.h.  */
27242 $ac_includes_default
27243 int
27244 main ()
27245 {
27246 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
27247 test_array [0] = 0
27248
27249   ;
27250   return 0;
27251 }
27252 _ACEOF
27253 rm -f conftest.$ac_objext
27254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27255   (eval $ac_compile) 2>conftest.er1
27256   ac_status=$?
27257   grep -v '^ *+' conftest.er1 >conftest.err
27258   rm -f conftest.er1
27259   cat conftest.err >&5
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); } &&
27262          { ac_try='test -z "$ac_c_werror_flag"
27263                          || test ! -s conftest.err'
27264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265   (eval $ac_try) 2>&5
27266   ac_status=$?
27267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268   (exit $ac_status); }; } &&
27269          { ac_try='test -s conftest.$ac_objext'
27270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271   (eval $ac_try) 2>&5
27272   ac_status=$?
27273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274   (exit $ac_status); }; }; then
27275   ac_hi=-1 ac_mid=-1
27276   while :; do
27277     cat >conftest.$ac_ext <<_ACEOF
27278 /* confdefs.h.  */
27279 _ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h.  */
27283 $ac_includes_default
27284 int
27285 main ()
27286 {
27287 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
27288 test_array [0] = 0
27289
27290   ;
27291   return 0;
27292 }
27293 _ACEOF
27294 rm -f conftest.$ac_objext
27295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27296   (eval $ac_compile) 2>conftest.er1
27297   ac_status=$?
27298   grep -v '^ *+' conftest.er1 >conftest.err
27299   rm -f conftest.er1
27300   cat conftest.err >&5
27301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302   (exit $ac_status); } &&
27303          { ac_try='test -z "$ac_c_werror_flag"
27304                          || test ! -s conftest.err'
27305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306   (eval $ac_try) 2>&5
27307   ac_status=$?
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); }; } &&
27310          { ac_try='test -s conftest.$ac_objext'
27311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312   (eval $ac_try) 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; }; then
27316   ac_lo=$ac_mid; break
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321 ac_hi=`expr '(' $ac_mid ')' - 1`
27322                        if test $ac_mid -le $ac_hi; then
27323                          ac_lo= ac_hi=
27324                          break
27325                        fi
27326                        ac_mid=`expr 2 '*' $ac_mid`
27327 fi
27328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27329   done
27330 else
27331   echo "$as_me: failed program was:" >&5
27332 sed 's/^/| /' conftest.$ac_ext >&5
27333
27334 ac_lo= ac_hi=
27335 fi
27336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27337 fi
27338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27339 # Binary search between lo and hi bounds.
27340 while test "x$ac_lo" != "x$ac_hi"; do
27341   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27342   cat >conftest.$ac_ext <<_ACEOF
27343 /* confdefs.h.  */
27344 _ACEOF
27345 cat confdefs.h >>conftest.$ac_ext
27346 cat >>conftest.$ac_ext <<_ACEOF
27347 /* end confdefs.h.  */
27348 $ac_includes_default
27349 int
27350 main ()
27351 {
27352 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
27353 test_array [0] = 0
27354
27355   ;
27356   return 0;
27357 }
27358 _ACEOF
27359 rm -f conftest.$ac_objext
27360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27361   (eval $ac_compile) 2>conftest.er1
27362   ac_status=$?
27363   grep -v '^ *+' conftest.er1 >conftest.err
27364   rm -f conftest.er1
27365   cat conftest.err >&5
27366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367   (exit $ac_status); } &&
27368          { ac_try='test -z "$ac_c_werror_flag"
27369                          || test ! -s conftest.err'
27370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371   (eval $ac_try) 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; } &&
27375          { ac_try='test -s conftest.$ac_objext'
27376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377   (eval $ac_try) 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; }; then
27381   ac_hi=$ac_mid
27382 else
27383   echo "$as_me: failed program was:" >&5
27384 sed 's/^/| /' conftest.$ac_ext >&5
27385
27386 ac_lo=`expr '(' $ac_mid ')' + 1`
27387 fi
27388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27389 done
27390 case $ac_lo in
27391 ?*) ac_cv_sizeof_short=$ac_lo;;
27392 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27393 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27394 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27395 See \`config.log' for more details." >&5
27396 echo "$as_me: error: cannot compute sizeof (short), 77
27397 See \`config.log' for more details." >&2;}
27398    { (exit 1); exit 1; }; }; } ;;
27399 esac
27400 else
27401   if test "$cross_compiling" = yes; then
27402   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27403 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27404 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27405 See \`config.log' for more details." >&5
27406 echo "$as_me: error: cannot run test program while cross compiling
27407 See \`config.log' for more details." >&2;}
27408    { (exit 1); exit 1; }; }; }
27409 else
27410   cat >conftest.$ac_ext <<_ACEOF
27411 /* confdefs.h.  */
27412 _ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h.  */
27416 $ac_includes_default
27417 long longval () { return (long) (sizeof (short)); }
27418 unsigned long ulongval () { return (long) (sizeof (short)); }
27419 #include <stdio.h>
27420 #include <stdlib.h>
27421 int
27422 main ()
27423 {
27424
27425   FILE *f = fopen ("conftest.val", "w");
27426   if (! f)
27427     exit (1);
27428   if (((long) (sizeof (short))) < 0)
27429     {
27430       long i = longval ();
27431       if (i != ((long) (sizeof (short))))
27432         exit (1);
27433       fprintf (f, "%ld\n", i);
27434     }
27435   else
27436     {
27437       unsigned long i = ulongval ();
27438       if (i != ((long) (sizeof (short))))
27439         exit (1);
27440       fprintf (f, "%lu\n", i);
27441     }
27442   exit (ferror (f) || fclose (f) != 0);
27443
27444   ;
27445   return 0;
27446 }
27447 _ACEOF
27448 rm -f conftest$ac_exeext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27450   (eval $ac_link) 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27455   (eval $ac_try) 2>&5
27456   ac_status=$?
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); }; }; then
27459   ac_cv_sizeof_short=`cat conftest.val`
27460 else
27461   echo "$as_me: program exited with status $ac_status" >&5
27462 echo "$as_me: failed program was:" >&5
27463 sed 's/^/| /' conftest.$ac_ext >&5
27464
27465 ( exit $ac_status )
27466 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27467 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
27469 See \`config.log' for more details." >&5
27470 echo "$as_me: error: cannot compute sizeof (short), 77
27471 See \`config.log' for more details." >&2;}
27472    { (exit 1); exit 1; }; }; }
27473 fi
27474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27475 fi
27476 fi
27477 rm -f conftest.val
27478 else
27479   ac_cv_sizeof_short=0
27480 fi
27481 fi
27482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
27483 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
27484 cat >>confdefs.h <<_ACEOF
27485 #define SIZEOF_SHORT $ac_cv_sizeof_short
27486 _ACEOF
27487
27488
27489    echo "$as_me:$LINENO: checking for int" >&5
27490 echo $ECHO_N "checking for int... $ECHO_C" >&6
27491 if test "${ac_cv_type_int+set}" = set; then
27492   echo $ECHO_N "(cached) $ECHO_C" >&6
27493 else
27494   cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h.  */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h.  */
27500 $ac_includes_default
27501 int
27502 main ()
27503 {
27504 if ((int *) 0)
27505   return 0;
27506 if (sizeof (int))
27507   return 0;
27508   ;
27509   return 0;
27510 }
27511 _ACEOF
27512 rm -f conftest.$ac_objext
27513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27514   (eval $ac_compile) 2>conftest.er1
27515   ac_status=$?
27516   grep -v '^ *+' conftest.er1 >conftest.err
27517   rm -f conftest.er1
27518   cat conftest.err >&5
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); } &&
27521          { ac_try='test -z "$ac_c_werror_flag"
27522                          || test ! -s conftest.err'
27523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27524   (eval $ac_try) 2>&5
27525   ac_status=$?
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); }; } &&
27528          { ac_try='test -s conftest.$ac_objext'
27529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27530   (eval $ac_try) 2>&5
27531   ac_status=$?
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); }; }; then
27534   ac_cv_type_int=yes
27535 else
27536   echo "$as_me: failed program was:" >&5
27537 sed 's/^/| /' conftest.$ac_ext >&5
27538
27539 ac_cv_type_int=no
27540 fi
27541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27542 fi
27543 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27544 echo "${ECHO_T}$ac_cv_type_int" >&6
27545
27546 echo "$as_me:$LINENO: checking size of int" >&5
27547 echo $ECHO_N "checking size of int... $ECHO_C" >&6
27548 if test "${ac_cv_sizeof_int+set}" = set; then
27549   echo $ECHO_N "(cached) $ECHO_C" >&6
27550 else
27551   if test "$ac_cv_type_int" = yes; then
27552   # The cast to unsigned long works around a bug in the HP C Compiler
27553   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27554   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27555   # This bug is HP SR number 8606223364.
27556   if test "$cross_compiling" = yes; then
27557   # Depending upon the size, compute the lo and hi bounds.
27558 cat >conftest.$ac_ext <<_ACEOF
27559 /* confdefs.h.  */
27560 _ACEOF
27561 cat confdefs.h >>conftest.$ac_ext
27562 cat >>conftest.$ac_ext <<_ACEOF
27563 /* end confdefs.h.  */
27564 $ac_includes_default
27565 int
27566 main ()
27567 {
27568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
27569 test_array [0] = 0
27570
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 rm -f conftest.$ac_objext
27576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27577   (eval $ac_compile) 2>conftest.er1
27578   ac_status=$?
27579   grep -v '^ *+' conftest.er1 >conftest.err
27580   rm -f conftest.er1
27581   cat conftest.err >&5
27582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583   (exit $ac_status); } &&
27584          { ac_try='test -z "$ac_c_werror_flag"
27585                          || test ! -s conftest.err'
27586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587   (eval $ac_try) 2>&5
27588   ac_status=$?
27589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590   (exit $ac_status); }; } &&
27591          { ac_try='test -s conftest.$ac_objext'
27592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27593   (eval $ac_try) 2>&5
27594   ac_status=$?
27595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); }; }; then
27597   ac_lo=0 ac_mid=0
27598   while :; do
27599     cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 $ac_includes_default
27606 int
27607 main ()
27608 {
27609 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27610 test_array [0] = 0
27611
27612   ;
27613   return 0;
27614 }
27615 _ACEOF
27616 rm -f conftest.$ac_objext
27617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27618   (eval $ac_compile) 2>conftest.er1
27619   ac_status=$?
27620   grep -v '^ *+' conftest.er1 >conftest.err
27621   rm -f conftest.er1
27622   cat conftest.err >&5
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); } &&
27625          { ac_try='test -z "$ac_c_werror_flag"
27626                          || test ! -s conftest.err'
27627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628   (eval $ac_try) 2>&5
27629   ac_status=$?
27630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631   (exit $ac_status); }; } &&
27632          { ac_try='test -s conftest.$ac_objext'
27633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27634   (eval $ac_try) 2>&5
27635   ac_status=$?
27636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27637   (exit $ac_status); }; }; then
27638   ac_hi=$ac_mid; break
27639 else
27640   echo "$as_me: failed program was:" >&5
27641 sed 's/^/| /' conftest.$ac_ext >&5
27642
27643 ac_lo=`expr $ac_mid + 1`
27644                     if test $ac_lo -le $ac_mid; then
27645                       ac_lo= ac_hi=
27646                       break
27647                     fi
27648                     ac_mid=`expr 2 '*' $ac_mid + 1`
27649 fi
27650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27651   done
27652 else
27653   echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656 cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 $ac_includes_default
27663 int
27664 main ()
27665 {
27666 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
27667 test_array [0] = 0
27668
27669   ;
27670   return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest.$ac_objext
27674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27675   (eval $ac_compile) 2>conftest.er1
27676   ac_status=$?
27677   grep -v '^ *+' conftest.er1 >conftest.err
27678   rm -f conftest.er1
27679   cat conftest.err >&5
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); } &&
27682          { ac_try='test -z "$ac_c_werror_flag"
27683                          || test ! -s conftest.err'
27684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685   (eval $ac_try) 2>&5
27686   ac_status=$?
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); }; } &&
27689          { ac_try='test -s conftest.$ac_objext'
27690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691   (eval $ac_try) 2>&5
27692   ac_status=$?
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); }; }; then
27695   ac_hi=-1 ac_mid=-1
27696   while :; do
27697     cat >conftest.$ac_ext <<_ACEOF
27698 /* confdefs.h.  */
27699 _ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h.  */
27703 $ac_includes_default
27704 int
27705 main ()
27706 {
27707 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
27708 test_array [0] = 0
27709
27710   ;
27711   return 0;
27712 }
27713 _ACEOF
27714 rm -f conftest.$ac_objext
27715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27716   (eval $ac_compile) 2>conftest.er1
27717   ac_status=$?
27718   grep -v '^ *+' conftest.er1 >conftest.err
27719   rm -f conftest.er1
27720   cat conftest.err >&5
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); } &&
27723          { ac_try='test -z "$ac_c_werror_flag"
27724                          || test ! -s conftest.err'
27725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27726   (eval $ac_try) 2>&5
27727   ac_status=$?
27728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729   (exit $ac_status); }; } &&
27730          { ac_try='test -s conftest.$ac_objext'
27731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732   (eval $ac_try) 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); }; }; then
27736   ac_lo=$ac_mid; break
27737 else
27738   echo "$as_me: failed program was:" >&5
27739 sed 's/^/| /' conftest.$ac_ext >&5
27740
27741 ac_hi=`expr '(' $ac_mid ')' - 1`
27742                        if test $ac_mid -le $ac_hi; then
27743                          ac_lo= ac_hi=
27744                          break
27745                        fi
27746                        ac_mid=`expr 2 '*' $ac_mid`
27747 fi
27748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27749   done
27750 else
27751   echo "$as_me: failed program was:" >&5
27752 sed 's/^/| /' conftest.$ac_ext >&5
27753
27754 ac_lo= ac_hi=
27755 fi
27756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27757 fi
27758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27759 # Binary search between lo and hi bounds.
27760 while test "x$ac_lo" != "x$ac_hi"; do
27761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27762   cat >conftest.$ac_ext <<_ACEOF
27763 /* confdefs.h.  */
27764 _ACEOF
27765 cat confdefs.h >>conftest.$ac_ext
27766 cat >>conftest.$ac_ext <<_ACEOF
27767 /* end confdefs.h.  */
27768 $ac_includes_default
27769 int
27770 main ()
27771 {
27772 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27773 test_array [0] = 0
27774
27775   ;
27776   return 0;
27777 }
27778 _ACEOF
27779 rm -f conftest.$ac_objext
27780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27781   (eval $ac_compile) 2>conftest.er1
27782   ac_status=$?
27783   grep -v '^ *+' conftest.er1 >conftest.err
27784   rm -f conftest.er1
27785   cat conftest.err >&5
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); } &&
27788          { ac_try='test -z "$ac_c_werror_flag"
27789                          || test ! -s conftest.err'
27790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791   (eval $ac_try) 2>&5
27792   ac_status=$?
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); }; } &&
27795          { ac_try='test -s conftest.$ac_objext'
27796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797   (eval $ac_try) 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; }; then
27801   ac_hi=$ac_mid
27802 else
27803   echo "$as_me: failed program was:" >&5
27804 sed 's/^/| /' conftest.$ac_ext >&5
27805
27806 ac_lo=`expr '(' $ac_mid ')' + 1`
27807 fi
27808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27809 done
27810 case $ac_lo in
27811 ?*) ac_cv_sizeof_int=$ac_lo;;
27812 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27813 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27814 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27815 See \`config.log' for more details." >&5
27816 echo "$as_me: error: cannot compute sizeof (int), 77
27817 See \`config.log' for more details." >&2;}
27818    { (exit 1); exit 1; }; }; } ;;
27819 esac
27820 else
27821   if test "$cross_compiling" = yes; then
27822   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27823 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27824 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27825 See \`config.log' for more details." >&5
27826 echo "$as_me: error: cannot run test program while cross compiling
27827 See \`config.log' for more details." >&2;}
27828    { (exit 1); exit 1; }; }; }
27829 else
27830   cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h.  */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h.  */
27836 $ac_includes_default
27837 long longval () { return (long) (sizeof (int)); }
27838 unsigned long ulongval () { return (long) (sizeof (int)); }
27839 #include <stdio.h>
27840 #include <stdlib.h>
27841 int
27842 main ()
27843 {
27844
27845   FILE *f = fopen ("conftest.val", "w");
27846   if (! f)
27847     exit (1);
27848   if (((long) (sizeof (int))) < 0)
27849     {
27850       long i = longval ();
27851       if (i != ((long) (sizeof (int))))
27852         exit (1);
27853       fprintf (f, "%ld\n", i);
27854     }
27855   else
27856     {
27857       unsigned long i = ulongval ();
27858       if (i != ((long) (sizeof (int))))
27859         exit (1);
27860       fprintf (f, "%lu\n", i);
27861     }
27862   exit (ferror (f) || fclose (f) != 0);
27863
27864   ;
27865   return 0;
27866 }
27867 _ACEOF
27868 rm -f conftest$ac_exeext
27869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27870   (eval $ac_link) 2>&5
27871   ac_status=$?
27872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27875   (eval $ac_try) 2>&5
27876   ac_status=$?
27877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27878   (exit $ac_status); }; }; then
27879   ac_cv_sizeof_int=`cat conftest.val`
27880 else
27881   echo "$as_me: program exited with status $ac_status" >&5
27882 echo "$as_me: failed program was:" >&5
27883 sed 's/^/| /' conftest.$ac_ext >&5
27884
27885 ( exit $ac_status )
27886 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27887 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27889 See \`config.log' for more details." >&5
27890 echo "$as_me: error: cannot compute sizeof (int), 77
27891 See \`config.log' for more details." >&2;}
27892    { (exit 1); exit 1; }; }; }
27893 fi
27894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27895 fi
27896 fi
27897 rm -f conftest.val
27898 else
27899   ac_cv_sizeof_int=0
27900 fi
27901 fi
27902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27903 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27904 cat >>confdefs.h <<_ACEOF
27905 #define SIZEOF_INT $ac_cv_sizeof_int
27906 _ACEOF
27907
27908
27909    echo "$as_me:$LINENO: checking for long" >&5
27910 echo $ECHO_N "checking for long... $ECHO_C" >&6
27911 if test "${ac_cv_type_long+set}" = set; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 else
27914   cat >conftest.$ac_ext <<_ACEOF
27915 /* confdefs.h.  */
27916 _ACEOF
27917 cat confdefs.h >>conftest.$ac_ext
27918 cat >>conftest.$ac_ext <<_ACEOF
27919 /* end confdefs.h.  */
27920 $ac_includes_default
27921 int
27922 main ()
27923 {
27924 if ((long *) 0)
27925   return 0;
27926 if (sizeof (long))
27927   return 0;
27928   ;
27929   return 0;
27930 }
27931 _ACEOF
27932 rm -f conftest.$ac_objext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27934   (eval $ac_compile) 2>conftest.er1
27935   ac_status=$?
27936   grep -v '^ *+' conftest.er1 >conftest.err
27937   rm -f conftest.er1
27938   cat conftest.err >&5
27939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940   (exit $ac_status); } &&
27941          { ac_try='test -z "$ac_c_werror_flag"
27942                          || test ! -s conftest.err'
27943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944   (eval $ac_try) 2>&5
27945   ac_status=$?
27946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947   (exit $ac_status); }; } &&
27948          { ac_try='test -s conftest.$ac_objext'
27949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950   (eval $ac_try) 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   ac_cv_type_long=yes
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959 ac_cv_type_long=no
27960 fi
27961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27962 fi
27963 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
27964 echo "${ECHO_T}$ac_cv_type_long" >&6
27965
27966 echo "$as_me:$LINENO: checking size of long" >&5
27967 echo $ECHO_N "checking size of long... $ECHO_C" >&6
27968 if test "${ac_cv_sizeof_long+set}" = set; then
27969   echo $ECHO_N "(cached) $ECHO_C" >&6
27970 else
27971   if test "$ac_cv_type_long" = yes; then
27972   # The cast to unsigned long works around a bug in the HP C Compiler
27973   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27974   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27975   # This bug is HP SR number 8606223364.
27976   if test "$cross_compiling" = yes; then
27977   # Depending upon the size, compute the lo and hi bounds.
27978 cat >conftest.$ac_ext <<_ACEOF
27979 /* confdefs.h.  */
27980 _ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h.  */
27984 $ac_includes_default
27985 int
27986 main ()
27987 {
27988 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
27989 test_array [0] = 0
27990
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 rm -f conftest.$ac_objext
27996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27997   (eval $ac_compile) 2>conftest.er1
27998   ac_status=$?
27999   grep -v '^ *+' conftest.er1 >conftest.err
28000   rm -f conftest.er1
28001   cat conftest.err >&5
28002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003   (exit $ac_status); } &&
28004          { ac_try='test -z "$ac_c_werror_flag"
28005                          || test ! -s conftest.err'
28006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28007   (eval $ac_try) 2>&5
28008   ac_status=$?
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); }; } &&
28011          { ac_try='test -s conftest.$ac_objext'
28012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013   (eval $ac_try) 2>&5
28014   ac_status=$?
28015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016   (exit $ac_status); }; }; then
28017   ac_lo=0 ac_mid=0
28018   while :; do
28019     cat >conftest.$ac_ext <<_ACEOF
28020 /* confdefs.h.  */
28021 _ACEOF
28022 cat confdefs.h >>conftest.$ac_ext
28023 cat >>conftest.$ac_ext <<_ACEOF
28024 /* end confdefs.h.  */
28025 $ac_includes_default
28026 int
28027 main ()
28028 {
28029 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28030 test_array [0] = 0
28031
28032   ;
28033   return 0;
28034 }
28035 _ACEOF
28036 rm -f conftest.$ac_objext
28037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28038   (eval $ac_compile) 2>conftest.er1
28039   ac_status=$?
28040   grep -v '^ *+' conftest.er1 >conftest.err
28041   rm -f conftest.er1
28042   cat conftest.err >&5
28043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044   (exit $ac_status); } &&
28045          { ac_try='test -z "$ac_c_werror_flag"
28046                          || test ! -s conftest.err'
28047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048   (eval $ac_try) 2>&5
28049   ac_status=$?
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); }; } &&
28052          { ac_try='test -s conftest.$ac_objext'
28053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054   (eval $ac_try) 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; }; then
28058   ac_hi=$ac_mid; break
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063 ac_lo=`expr $ac_mid + 1`
28064                     if test $ac_lo -le $ac_mid; then
28065                       ac_lo= ac_hi=
28066                       break
28067                     fi
28068                     ac_mid=`expr 2 '*' $ac_mid + 1`
28069 fi
28070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28071   done
28072 else
28073   echo "$as_me: failed program was:" >&5
28074 sed 's/^/| /' conftest.$ac_ext >&5
28075
28076 cat >conftest.$ac_ext <<_ACEOF
28077 /* confdefs.h.  */
28078 _ACEOF
28079 cat confdefs.h >>conftest.$ac_ext
28080 cat >>conftest.$ac_ext <<_ACEOF
28081 /* end confdefs.h.  */
28082 $ac_includes_default
28083 int
28084 main ()
28085 {
28086 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
28087 test_array [0] = 0
28088
28089   ;
28090   return 0;
28091 }
28092 _ACEOF
28093 rm -f conftest.$ac_objext
28094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28095   (eval $ac_compile) 2>conftest.er1
28096   ac_status=$?
28097   grep -v '^ *+' conftest.er1 >conftest.err
28098   rm -f conftest.er1
28099   cat conftest.err >&5
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); } &&
28102          { ac_try='test -z "$ac_c_werror_flag"
28103                          || test ! -s conftest.err'
28104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105   (eval $ac_try) 2>&5
28106   ac_status=$?
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); }; } &&
28109          { ac_try='test -s conftest.$ac_objext'
28110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111   (eval $ac_try) 2>&5
28112   ac_status=$?
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); }; }; then
28115   ac_hi=-1 ac_mid=-1
28116   while :; do
28117     cat >conftest.$ac_ext <<_ACEOF
28118 /* confdefs.h.  */
28119 _ACEOF
28120 cat confdefs.h >>conftest.$ac_ext
28121 cat >>conftest.$ac_ext <<_ACEOF
28122 /* end confdefs.h.  */
28123 $ac_includes_default
28124 int
28125 main ()
28126 {
28127 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
28128 test_array [0] = 0
28129
28130   ;
28131   return 0;
28132 }
28133 _ACEOF
28134 rm -f conftest.$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136   (eval $ac_compile) 2>conftest.er1
28137   ac_status=$?
28138   grep -v '^ *+' conftest.er1 >conftest.err
28139   rm -f conftest.er1
28140   cat conftest.err >&5
28141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142   (exit $ac_status); } &&
28143          { ac_try='test -z "$ac_c_werror_flag"
28144                          || test ! -s conftest.err'
28145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146   (eval $ac_try) 2>&5
28147   ac_status=$?
28148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149   (exit $ac_status); }; } &&
28150          { ac_try='test -s conftest.$ac_objext'
28151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152   (eval $ac_try) 2>&5
28153   ac_status=$?
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); }; }; then
28156   ac_lo=$ac_mid; break
28157 else
28158   echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28160
28161 ac_hi=`expr '(' $ac_mid ')' - 1`
28162                        if test $ac_mid -le $ac_hi; then
28163                          ac_lo= ac_hi=
28164                          break
28165                        fi
28166                        ac_mid=`expr 2 '*' $ac_mid`
28167 fi
28168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28169   done
28170 else
28171   echo "$as_me: failed program was:" >&5
28172 sed 's/^/| /' conftest.$ac_ext >&5
28173
28174 ac_lo= ac_hi=
28175 fi
28176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28177 fi
28178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28179 # Binary search between lo and hi bounds.
28180 while test "x$ac_lo" != "x$ac_hi"; do
28181   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28182   cat >conftest.$ac_ext <<_ACEOF
28183 /* confdefs.h.  */
28184 _ACEOF
28185 cat confdefs.h >>conftest.$ac_ext
28186 cat >>conftest.$ac_ext <<_ACEOF
28187 /* end confdefs.h.  */
28188 $ac_includes_default
28189 int
28190 main ()
28191 {
28192 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28193 test_array [0] = 0
28194
28195   ;
28196   return 0;
28197 }
28198 _ACEOF
28199 rm -f conftest.$ac_objext
28200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28201   (eval $ac_compile) 2>conftest.er1
28202   ac_status=$?
28203   grep -v '^ *+' conftest.er1 >conftest.err
28204   rm -f conftest.er1
28205   cat conftest.err >&5
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } &&
28208          { ac_try='test -z "$ac_c_werror_flag"
28209                          || test ! -s conftest.err'
28210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28211   (eval $ac_try) 2>&5
28212   ac_status=$?
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); }; } &&
28215          { ac_try='test -s conftest.$ac_objext'
28216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28217   (eval $ac_try) 2>&5
28218   ac_status=$?
28219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220   (exit $ac_status); }; }; then
28221   ac_hi=$ac_mid
28222 else
28223   echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28225
28226 ac_lo=`expr '(' $ac_mid ')' + 1`
28227 fi
28228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28229 done
28230 case $ac_lo in
28231 ?*) ac_cv_sizeof_long=$ac_lo;;
28232 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28233 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28235 See \`config.log' for more details." >&5
28236 echo "$as_me: error: cannot compute sizeof (long), 77
28237 See \`config.log' for more details." >&2;}
28238    { (exit 1); exit 1; }; }; } ;;
28239 esac
28240 else
28241   if test "$cross_compiling" = yes; then
28242   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28243 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28244 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28245 See \`config.log' for more details." >&5
28246 echo "$as_me: error: cannot run test program while cross compiling
28247 See \`config.log' for more details." >&2;}
28248    { (exit 1); exit 1; }; }; }
28249 else
28250   cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h.  */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h.  */
28256 $ac_includes_default
28257 long longval () { return (long) (sizeof (long)); }
28258 unsigned long ulongval () { return (long) (sizeof (long)); }
28259 #include <stdio.h>
28260 #include <stdlib.h>
28261 int
28262 main ()
28263 {
28264
28265   FILE *f = fopen ("conftest.val", "w");
28266   if (! f)
28267     exit (1);
28268   if (((long) (sizeof (long))) < 0)
28269     {
28270       long i = longval ();
28271       if (i != ((long) (sizeof (long))))
28272         exit (1);
28273       fprintf (f, "%ld\n", i);
28274     }
28275   else
28276     {
28277       unsigned long i = ulongval ();
28278       if (i != ((long) (sizeof (long))))
28279         exit (1);
28280       fprintf (f, "%lu\n", i);
28281     }
28282   exit (ferror (f) || fclose (f) != 0);
28283
28284   ;
28285   return 0;
28286 }
28287 _ACEOF
28288 rm -f conftest$ac_exeext
28289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28290   (eval $ac_link) 2>&5
28291   ac_status=$?
28292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295   (eval $ac_try) 2>&5
28296   ac_status=$?
28297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298   (exit $ac_status); }; }; then
28299   ac_cv_sizeof_long=`cat conftest.val`
28300 else
28301   echo "$as_me: program exited with status $ac_status" >&5
28302 echo "$as_me: failed program was:" >&5
28303 sed 's/^/| /' conftest.$ac_ext >&5
28304
28305 ( exit $ac_status )
28306 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28307 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28309 See \`config.log' for more details." >&5
28310 echo "$as_me: error: cannot compute sizeof (long), 77
28311 See \`config.log' for more details." >&2;}
28312    { (exit 1); exit 1; }; }; }
28313 fi
28314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28315 fi
28316 fi
28317 rm -f conftest.val
28318 else
28319   ac_cv_sizeof_long=0
28320 fi
28321 fi
28322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28323 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28324 cat >>confdefs.h <<_ACEOF
28325 #define SIZEOF_LONG $ac_cv_sizeof_long
28326 _ACEOF
28327
28328
28329    echo "$as_me:$LINENO: checking for void*" >&5
28330 echo $ECHO_N "checking for void*... $ECHO_C" >&6
28331 if test "${ac_cv_type_voidp+set}" = set; then
28332   echo $ECHO_N "(cached) $ECHO_C" >&6
28333 else
28334   cat >conftest.$ac_ext <<_ACEOF
28335 /* confdefs.h.  */
28336 _ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h.  */
28340 $ac_includes_default
28341 int
28342 main ()
28343 {
28344 if ((void* *) 0)
28345   return 0;
28346 if (sizeof (void*))
28347   return 0;
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext
28353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28354   (eval $ac_compile) 2>conftest.er1
28355   ac_status=$?
28356   grep -v '^ *+' conftest.er1 >conftest.err
28357   rm -f conftest.er1
28358   cat conftest.err >&5
28359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360   (exit $ac_status); } &&
28361          { ac_try='test -z "$ac_c_werror_flag"
28362                          || test ! -s conftest.err'
28363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364   (eval $ac_try) 2>&5
28365   ac_status=$?
28366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); }; } &&
28368          { ac_try='test -s conftest.$ac_objext'
28369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370   (eval $ac_try) 2>&5
28371   ac_status=$?
28372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373   (exit $ac_status); }; }; then
28374   ac_cv_type_voidp=yes
28375 else
28376   echo "$as_me: failed program was:" >&5
28377 sed 's/^/| /' conftest.$ac_ext >&5
28378
28379 ac_cv_type_voidp=no
28380 fi
28381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28382 fi
28383 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
28384 echo "${ECHO_T}$ac_cv_type_voidp" >&6
28385
28386 echo "$as_me:$LINENO: checking size of void*" >&5
28387 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
28388 if test "${ac_cv_sizeof_voidp+set}" = set; then
28389   echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391   if test "$ac_cv_type_voidp" = yes; then
28392   # The cast to unsigned long works around a bug in the HP C Compiler
28393   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28394   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28395   # This bug is HP SR number 8606223364.
28396   if test "$cross_compiling" = yes; then
28397   # Depending upon the size, compute the lo and hi bounds.
28398 cat >conftest.$ac_ext <<_ACEOF
28399 /* confdefs.h.  */
28400 _ACEOF
28401 cat confdefs.h >>conftest.$ac_ext
28402 cat >>conftest.$ac_ext <<_ACEOF
28403 /* end confdefs.h.  */
28404 $ac_includes_default
28405 int
28406 main ()
28407 {
28408 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
28409 test_array [0] = 0
28410
28411   ;
28412   return 0;
28413 }
28414 _ACEOF
28415 rm -f conftest.$ac_objext
28416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28417   (eval $ac_compile) 2>conftest.er1
28418   ac_status=$?
28419   grep -v '^ *+' conftest.er1 >conftest.err
28420   rm -f conftest.er1
28421   cat conftest.err >&5
28422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28423   (exit $ac_status); } &&
28424          { ac_try='test -z "$ac_c_werror_flag"
28425                          || test ! -s conftest.err'
28426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427   (eval $ac_try) 2>&5
28428   ac_status=$?
28429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430   (exit $ac_status); }; } &&
28431          { ac_try='test -s conftest.$ac_objext'
28432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433   (eval $ac_try) 2>&5
28434   ac_status=$?
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); }; }; then
28437   ac_lo=0 ac_mid=0
28438   while :; do
28439     cat >conftest.$ac_ext <<_ACEOF
28440 /* confdefs.h.  */
28441 _ACEOF
28442 cat confdefs.h >>conftest.$ac_ext
28443 cat >>conftest.$ac_ext <<_ACEOF
28444 /* end confdefs.h.  */
28445 $ac_includes_default
28446 int
28447 main ()
28448 {
28449 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28450 test_array [0] = 0
28451
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28458   (eval $ac_compile) 2>conftest.er1
28459   ac_status=$?
28460   grep -v '^ *+' conftest.er1 >conftest.err
28461   rm -f conftest.er1
28462   cat conftest.err >&5
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); } &&
28465          { ac_try='test -z "$ac_c_werror_flag"
28466                          || test ! -s conftest.err'
28467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28468   (eval $ac_try) 2>&5
28469   ac_status=$?
28470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); }; } &&
28472          { ac_try='test -s conftest.$ac_objext'
28473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28474   (eval $ac_try) 2>&5
28475   ac_status=$?
28476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477   (exit $ac_status); }; }; then
28478   ac_hi=$ac_mid; break
28479 else
28480   echo "$as_me: failed program was:" >&5
28481 sed 's/^/| /' conftest.$ac_ext >&5
28482
28483 ac_lo=`expr $ac_mid + 1`
28484                     if test $ac_lo -le $ac_mid; then
28485                       ac_lo= ac_hi=
28486                       break
28487                     fi
28488                     ac_mid=`expr 2 '*' $ac_mid + 1`
28489 fi
28490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28491   done
28492 else
28493   echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28495
28496 cat >conftest.$ac_ext <<_ACEOF
28497 /* confdefs.h.  */
28498 _ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h.  */
28502 $ac_includes_default
28503 int
28504 main ()
28505 {
28506 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
28507 test_array [0] = 0
28508
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 rm -f conftest.$ac_objext
28514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28515   (eval $ac_compile) 2>conftest.er1
28516   ac_status=$?
28517   grep -v '^ *+' conftest.er1 >conftest.err
28518   rm -f conftest.er1
28519   cat conftest.err >&5
28520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521   (exit $ac_status); } &&
28522          { ac_try='test -z "$ac_c_werror_flag"
28523                          || test ! -s conftest.err'
28524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28525   (eval $ac_try) 2>&5
28526   ac_status=$?
28527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28528   (exit $ac_status); }; } &&
28529          { ac_try='test -s conftest.$ac_objext'
28530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28531   (eval $ac_try) 2>&5
28532   ac_status=$?
28533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28534   (exit $ac_status); }; }; then
28535   ac_hi=-1 ac_mid=-1
28536   while :; do
28537     cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h.  */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h.  */
28543 $ac_includes_default
28544 int
28545 main ()
28546 {
28547 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
28548 test_array [0] = 0
28549
28550   ;
28551   return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext
28555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28556   (eval $ac_compile) 2>conftest.er1
28557   ac_status=$?
28558   grep -v '^ *+' conftest.er1 >conftest.err
28559   rm -f conftest.er1
28560   cat conftest.err >&5
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } &&
28563          { ac_try='test -z "$ac_c_werror_flag"
28564                          || test ! -s conftest.err'
28565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566   (eval $ac_try) 2>&5
28567   ac_status=$?
28568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569   (exit $ac_status); }; } &&
28570          { ac_try='test -s conftest.$ac_objext'
28571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572   (eval $ac_try) 2>&5
28573   ac_status=$?
28574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); }; }; then
28576   ac_lo=$ac_mid; break
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581 ac_hi=`expr '(' $ac_mid ')' - 1`
28582                        if test $ac_mid -le $ac_hi; then
28583                          ac_lo= ac_hi=
28584                          break
28585                        fi
28586                        ac_mid=`expr 2 '*' $ac_mid`
28587 fi
28588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28589   done
28590 else
28591   echo "$as_me: failed program was:" >&5
28592 sed 's/^/| /' conftest.$ac_ext >&5
28593
28594 ac_lo= ac_hi=
28595 fi
28596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28597 fi
28598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28599 # Binary search between lo and hi bounds.
28600 while test "x$ac_lo" != "x$ac_hi"; do
28601   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28602   cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h.  */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h.  */
28608 $ac_includes_default
28609 int
28610 main ()
28611 {
28612 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
28613 test_array [0] = 0
28614
28615   ;
28616   return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest.$ac_objext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28621   (eval $ac_compile) 2>conftest.er1
28622   ac_status=$?
28623   grep -v '^ *+' conftest.er1 >conftest.err
28624   rm -f conftest.er1
28625   cat conftest.err >&5
28626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627   (exit $ac_status); } &&
28628          { ac_try='test -z "$ac_c_werror_flag"
28629                          || test ! -s conftest.err'
28630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631   (eval $ac_try) 2>&5
28632   ac_status=$?
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); }; } &&
28635          { ac_try='test -s conftest.$ac_objext'
28636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637   (eval $ac_try) 2>&5
28638   ac_status=$?
28639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640   (exit $ac_status); }; }; then
28641   ac_hi=$ac_mid
28642 else
28643   echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28645
28646 ac_lo=`expr '(' $ac_mid ')' + 1`
28647 fi
28648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28649 done
28650 case $ac_lo in
28651 ?*) ac_cv_sizeof_voidp=$ac_lo;;
28652 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28653 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28655 See \`config.log' for more details." >&5
28656 echo "$as_me: error: cannot compute sizeof (void*), 77
28657 See \`config.log' for more details." >&2;}
28658    { (exit 1); exit 1; }; }; } ;;
28659 esac
28660 else
28661   if test "$cross_compiling" = yes; then
28662   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28663 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28664 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28665 See \`config.log' for more details." >&5
28666 echo "$as_me: error: cannot run test program while cross compiling
28667 See \`config.log' for more details." >&2;}
28668    { (exit 1); exit 1; }; }; }
28669 else
28670   cat >conftest.$ac_ext <<_ACEOF
28671 /* confdefs.h.  */
28672 _ACEOF
28673 cat confdefs.h >>conftest.$ac_ext
28674 cat >>conftest.$ac_ext <<_ACEOF
28675 /* end confdefs.h.  */
28676 $ac_includes_default
28677 long longval () { return (long) (sizeof (void*)); }
28678 unsigned long ulongval () { return (long) (sizeof (void*)); }
28679 #include <stdio.h>
28680 #include <stdlib.h>
28681 int
28682 main ()
28683 {
28684
28685   FILE *f = fopen ("conftest.val", "w");
28686   if (! f)
28687     exit (1);
28688   if (((long) (sizeof (void*))) < 0)
28689     {
28690       long i = longval ();
28691       if (i != ((long) (sizeof (void*))))
28692         exit (1);
28693       fprintf (f, "%ld\n", i);
28694     }
28695   else
28696     {
28697       unsigned long i = ulongval ();
28698       if (i != ((long) (sizeof (void*))))
28699         exit (1);
28700       fprintf (f, "%lu\n", i);
28701     }
28702   exit (ferror (f) || fclose (f) != 0);
28703
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest$ac_exeext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28710   (eval $ac_link) 2>&5
28711   ac_status=$?
28712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28713   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715   (eval $ac_try) 2>&5
28716   ac_status=$?
28717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718   (exit $ac_status); }; }; then
28719   ac_cv_sizeof_voidp=`cat conftest.val`
28720 else
28721   echo "$as_me: program exited with status $ac_status" >&5
28722 echo "$as_me: failed program was:" >&5
28723 sed 's/^/| /' conftest.$ac_ext >&5
28724
28725 ( exit $ac_status )
28726 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28727 echo "$as_me: error: in \`$ac_pwd':" >&2;}
28728 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
28729 See \`config.log' for more details." >&5
28730 echo "$as_me: error: cannot compute sizeof (void*), 77
28731 See \`config.log' for more details." >&2;}
28732    { (exit 1); exit 1; }; }; }
28733 fi
28734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28735 fi
28736 fi
28737 rm -f conftest.val
28738 else
28739   ac_cv_sizeof_voidp=0
28740 fi
28741 fi
28742 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
28743 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
28744 cat >>confdefs.h <<_ACEOF
28745 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
28746 _ACEOF
28747
28748
28749    ac_cv_char_data_model=""
28750    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
28751    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
28752    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
28753    ac_cv_long_data_model=""
28754    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
28755    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
28756    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
28757    echo "$as_me:$LINENO: checking data model" >&5
28758 echo $ECHO_N "checking data model... $ECHO_C" >&6
28759    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
28760     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
28761     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
28762     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
28763     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
28764     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
28765     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
28766     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
28767     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
28768     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
28769     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
28770     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
28771     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
28772     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
28773     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
28774     222/*|333/*|444/*|666/*|888/*) :
28775                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
28776      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
28777    esac
28778    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
28779 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
28780
28781 fi
28782
28783 if test "_$ac_cv_header_stdint_x" != "_" ; then
28784    ac_cv_header_stdint="$ac_cv_header_stdint_x"
28785 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
28786    ac_cv_header_stdint="$ac_cv_header_stdint_o"
28787 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
28788    ac_cv_header_stdint="$ac_cv_header_stdint_u"
28789 else
28790    ac_cv_header_stdint="stddef.h"
28791 fi
28792
28793 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
28794 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
28795 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
28796 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
28797 unset ac_cv_type_int_least32_t
28798 unset ac_cv_type_int_fast32_t
28799 echo "$as_me:$LINENO: checking for int_least32_t" >&5
28800 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
28801 if test "${ac_cv_type_int_least32_t+set}" = set; then
28802   echo $ECHO_N "(cached) $ECHO_C" >&6
28803 else
28804   cat >conftest.$ac_ext <<_ACEOF
28805 /* confdefs.h.  */
28806 _ACEOF
28807 cat confdefs.h >>conftest.$ac_ext
28808 cat >>conftest.$ac_ext <<_ACEOF
28809 /* end confdefs.h.  */
28810 #include <$ac_cv_header_stdint>
28811
28812 int
28813 main ()
28814 {
28815 if ((int_least32_t *) 0)
28816   return 0;
28817 if (sizeof (int_least32_t))
28818   return 0;
28819   ;
28820   return 0;
28821 }
28822 _ACEOF
28823 rm -f conftest.$ac_objext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28825   (eval $ac_compile) 2>conftest.er1
28826   ac_status=$?
28827   grep -v '^ *+' conftest.er1 >conftest.err
28828   rm -f conftest.er1
28829   cat conftest.err >&5
28830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831   (exit $ac_status); } &&
28832          { ac_try='test -z "$ac_c_werror_flag"
28833                          || test ! -s conftest.err'
28834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835   (eval $ac_try) 2>&5
28836   ac_status=$?
28837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838   (exit $ac_status); }; } &&
28839          { ac_try='test -s conftest.$ac_objext'
28840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841   (eval $ac_try) 2>&5
28842   ac_status=$?
28843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844   (exit $ac_status); }; }; then
28845   ac_cv_type_int_least32_t=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850 ac_cv_type_int_least32_t=no
28851 fi
28852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28853 fi
28854 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
28855 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
28856
28857 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
28858 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
28859 if test "${ac_cv_type_int_fast32_t+set}" = set; then
28860   echo $ECHO_N "(cached) $ECHO_C" >&6
28861 else
28862   cat >conftest.$ac_ext <<_ACEOF
28863 /* confdefs.h.  */
28864 _ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h.  */
28868 #include<$ac_cv_header_stdint>
28869
28870 int
28871 main ()
28872 {
28873 if ((int_fast32_t *) 0)
28874   return 0;
28875 if (sizeof (int_fast32_t))
28876   return 0;
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f conftest.$ac_objext
28882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28883   (eval $ac_compile) 2>conftest.er1
28884   ac_status=$?
28885   grep -v '^ *+' conftest.er1 >conftest.err
28886   rm -f conftest.er1
28887   cat conftest.err >&5
28888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889   (exit $ac_status); } &&
28890          { ac_try='test -z "$ac_c_werror_flag"
28891                          || test ! -s conftest.err'
28892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28893   (eval $ac_try) 2>&5
28894   ac_status=$?
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); }; } &&
28897          { ac_try='test -s conftest.$ac_objext'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; }; then
28903   ac_cv_type_int_fast32_t=yes
28904 else
28905   echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28907
28908 ac_cv_type_int_fast32_t=no
28909 fi
28910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28911 fi
28912 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
28913 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
28914
28915 echo "$as_me:$LINENO: checking for intmax_t" >&5
28916 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
28917 if test "${ac_cv_type_intmax_t+set}" = set; then
28918   echo $ECHO_N "(cached) $ECHO_C" >&6
28919 else
28920   cat >conftest.$ac_ext <<_ACEOF
28921 /* confdefs.h.  */
28922 _ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h.  */
28926 #include <$ac_cv_header_stdint>
28927
28928 int
28929 main ()
28930 {
28931 if ((intmax_t *) 0)
28932   return 0;
28933 if (sizeof (intmax_t))
28934   return 0;
28935   ;
28936   return 0;
28937 }
28938 _ACEOF
28939 rm -f conftest.$ac_objext
28940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28941   (eval $ac_compile) 2>conftest.er1
28942   ac_status=$?
28943   grep -v '^ *+' conftest.er1 >conftest.err
28944   rm -f conftest.er1
28945   cat conftest.err >&5
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); } &&
28948          { ac_try='test -z "$ac_c_werror_flag"
28949                          || test ! -s conftest.err'
28950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28951   (eval $ac_try) 2>&5
28952   ac_status=$?
28953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954   (exit $ac_status); }; } &&
28955          { ac_try='test -s conftest.$ac_objext'
28956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28957   (eval $ac_try) 2>&5
28958   ac_status=$?
28959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28960   (exit $ac_status); }; }; then
28961   ac_cv_type_intmax_t=yes
28962 else
28963   echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28965
28966 ac_cv_type_intmax_t=no
28967 fi
28968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28969 fi
28970 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
28971 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
28972
28973
28974 fi # shortcircut to system "stdint.h"
28975 # ------------------ PREPARE VARIABLES ------------------------------
28976 if test "$GCC" = "yes" ; then
28977 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
28978 else
28979 ac_cv_stdint_message="using $CC"
28980 fi
28981
28982 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
28983 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
28984
28985 # ----------------- DONE inttypes.h checks START header -------------
28986           ac_config_commands="$ac_config_commands $ac_stdint_h"
28987
28988
28989
28990
28991 # Check whether --with-glibj_zip or --without-glibj_zip was given.
28992 if test "${with_glibj_zip+set}" = set; then
28993   withval="$with_glibj_zip"
28994
28995 fi;
28996
28997 case "$with_glibj_zip" in
28998 "")
28999         use_glibj_zip=false
29000         ;;
29001 "no" )
29002         use_glibj_zip=false
29003         ;;
29004 "yes")
29005         { { echo "$as_me:$LINENO: error: Please suply an absolute path to a prebuilt glibj.zip" >&5
29006 echo "$as_me: error: Please suply an absolute path to a prebuilt glibj.zip" >&2;}
29007    { (exit 1); exit 1; }; }
29008         ;;
29009 *)
29010         use_glibj_zip=true
29011         PATH_TO_GLIBJ_ZIP=$with_glibj_zip
29012         ;;
29013 esac;
29014
29015
29016
29017 if test x$use_glibj_zip = xtrue; then
29018   USE_PREBUILT_GLIBJ_ZIP_TRUE=
29019   USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
29020 else
29021   USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
29022   USE_PREBUILT_GLIBJ_ZIP_FALSE=
29023 fi
29024
29025
29026
29027 if test "x${TOOLSDIR}" != x; then
29028     if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
29029
29030
29031 if test "x$JAVAPREFIX" = x; then
29032         test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
29033 do
29034   # Extract the first word of "$ac_prog", so it can be a program name with args.
29035 set dummy $ac_prog; ac_word=$2
29036 echo "$as_me:$LINENO: checking for $ac_word" >&5
29037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29038 if test "${ac_cv_prog_JAVA+set}" = set; then
29039   echo $ECHO_N "(cached) $ECHO_C" >&6
29040 else
29041   if test -n "$JAVA"; then
29042   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
29043 else
29044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29045 for as_dir in $PATH
29046 do
29047   IFS=$as_save_IFS
29048   test -z "$as_dir" && as_dir=.
29049   for ac_exec_ext in '' $ac_executable_extensions; do
29050   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29051     ac_cv_prog_JAVA="$ac_prog"
29052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29053     break 2
29054   fi
29055 done
29056 done
29057
29058 fi
29059 fi
29060 JAVA=$ac_cv_prog_JAVA
29061 if test -n "$JAVA"; then
29062   echo "$as_me:$LINENO: result: $JAVA" >&5
29063 echo "${ECHO_T}$JAVA" >&6
29064 else
29065   echo "$as_me:$LINENO: result: no" >&5
29066 echo "${ECHO_T}no" >&6
29067 fi
29068
29069   test -n "$JAVA" && break
29070 done
29071
29072 else
29073         test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
29074 do
29075   # Extract the first word of "$ac_prog", so it can be a program name with args.
29076 set dummy $ac_prog; ac_word=$2
29077 echo "$as_me:$LINENO: checking for $ac_word" >&5
29078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29079 if test "${ac_cv_prog_JAVA+set}" = set; then
29080   echo $ECHO_N "(cached) $ECHO_C" >&6
29081 else
29082   if test -n "$JAVA"; then
29083   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
29084 else
29085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29086 for as_dir in $PATH
29087 do
29088   IFS=$as_save_IFS
29089   test -z "$as_dir" && as_dir=.
29090   for ac_exec_ext in '' $ac_executable_extensions; do
29091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29092     ac_cv_prog_JAVA="$ac_prog"
29093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29094     break 2
29095   fi
29096 done
29097 done
29098
29099 fi
29100 fi
29101 JAVA=$ac_cv_prog_JAVA
29102 if test -n "$JAVA"; then
29103   echo "$as_me:$LINENO: result: $JAVA" >&5
29104 echo "${ECHO_T}$JAVA" >&6
29105 else
29106   echo "$as_me:$LINENO: result: no" >&5
29107 echo "${ECHO_T}no" >&6
29108 fi
29109
29110   test -n "$JAVA" && break
29111 done
29112 test -n "$JAVA" || JAVA="$JAVAPREFIX"
29113
29114 fi
29115 test "x$JAVA" = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
29116 echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
29117    { (exit 1); exit 1; }; }
29118
29119 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
29120 set dummy uudecode$EXEEXT; ac_word=$2
29121 echo "$as_me:$LINENO: checking for $ac_word" >&5
29122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29123 if test "${ac_cv_prog_uudecode+set}" = set; then
29124   echo $ECHO_N "(cached) $ECHO_C" >&6
29125 else
29126   if test -n "$uudecode"; then
29127   ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
29128 else
29129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29130 for as_dir in $PATH
29131 do
29132   IFS=$as_save_IFS
29133   test -z "$as_dir" && as_dir=.
29134   for ac_exec_ext in '' $ac_executable_extensions; do
29135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29136     ac_cv_prog_uudecode="yes"
29137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29138     break 2
29139   fi
29140 done
29141 done
29142
29143 fi
29144 fi
29145 uudecode=$ac_cv_prog_uudecode
29146 if test -n "$uudecode"; then
29147   echo "$as_me:$LINENO: result: $uudecode" >&5
29148 echo "${ECHO_T}$uudecode" >&6
29149 else
29150   echo "$as_me:$LINENO: result: no" >&5
29151 echo "${ECHO_T}no" >&6
29152 fi
29153
29154 if test x$uudecode = xyes; then
29155 echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
29156 echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
29157 if test "${ac_cv_prog_uudecode_base64+set}" = set; then
29158   echo $ECHO_N "(cached) $ECHO_C" >&6
29159 else
29160
29161 cat << \EOF > Test.uue
29162 begin-base64 644 Test.class
29163 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
29164 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
29165 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
29166 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
29167 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
29168 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
29169 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
29170 ====
29171 EOF
29172 if uudecode$EXEEXT Test.uue; then
29173         ac_cv_prog_uudecode_base64=yes
29174 else
29175         echo "configure: 29175: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
29176         echo "configure: failed file was:" >&5
29177         cat Test.uue >&5
29178         ac_cv_prog_uudecode_base64=no
29179 fi
29180 rm -f Test.uue
29181 fi
29182 echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
29183 echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
29184 fi
29185 if test x$ac_cv_prog_uudecode_base64 != xyes; then
29186         rm -f Test.class
29187         { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
29188 echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
29189         if test x$ac_cv_prog_javac_works = xno; then
29190                 { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
29191 echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
29192    { (exit 1); exit 1; }; }
29193         fi
29194         if test x$ac_cv_prog_javac_works = x; then
29195
29196 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
29197 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
29198 GCJ_OPTS="-g"
29199 if test "x$JAVAPREFIX" = x; then
29200         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29201 do
29202   # Extract the first word of "$ac_prog", so it can be a program name with args.
29203 set dummy $ac_prog; ac_word=$2
29204 echo "$as_me:$LINENO: checking for $ac_word" >&5
29205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29206 if test "${ac_cv_prog_JAVAC+set}" = set; then
29207   echo $ECHO_N "(cached) $ECHO_C" >&6
29208 else
29209   if test -n "$JAVAC"; then
29210   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29211 else
29212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29213 for as_dir in $PATH
29214 do
29215   IFS=$as_save_IFS
29216   test -z "$as_dir" && as_dir=.
29217   for ac_exec_ext in '' $ac_executable_extensions; do
29218   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29219     ac_cv_prog_JAVAC="$ac_prog"
29220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29221     break 2
29222   fi
29223 done
29224 done
29225
29226 fi
29227 fi
29228 JAVAC=$ac_cv_prog_JAVAC
29229 if test -n "$JAVAC"; then
29230   echo "$as_me:$LINENO: result: $JAVAC" >&5
29231 echo "${ECHO_T}$JAVAC" >&6
29232 else
29233   echo "$as_me:$LINENO: result: no" >&5
29234 echo "${ECHO_T}no" >&6
29235 fi
29236
29237   test -n "$JAVAC" && break
29238 done
29239
29240 else
29241         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29242 do
29243   # Extract the first word of "$ac_prog", so it can be a program name with args.
29244 set dummy $ac_prog; ac_word=$2
29245 echo "$as_me:$LINENO: checking for $ac_word" >&5
29246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29247 if test "${ac_cv_prog_JAVAC+set}" = set; then
29248   echo $ECHO_N "(cached) $ECHO_C" >&6
29249 else
29250   if test -n "$JAVAC"; then
29251   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29252 else
29253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29254 for as_dir in $PATH
29255 do
29256   IFS=$as_save_IFS
29257   test -z "$as_dir" && as_dir=.
29258   for ac_exec_ext in '' $ac_executable_extensions; do
29259   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29260     ac_cv_prog_JAVAC="$ac_prog"
29261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29262     break 2
29263   fi
29264 done
29265 done
29266
29267 fi
29268 fi
29269 JAVAC=$ac_cv_prog_JAVAC
29270 if test -n "$JAVAC"; then
29271   echo "$as_me:$LINENO: result: $JAVAC" >&5
29272 echo "${ECHO_T}$JAVAC" >&6
29273 else
29274   echo "$as_me:$LINENO: result: no" >&5
29275 echo "${ECHO_T}no" >&6
29276 fi
29277
29278   test -n "$JAVAC" && break
29279 done
29280 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
29281
29282 fi
29283 test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
29284 echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
29285    { (exit 1); exit 1; }; }
29286 echo "$as_me:$LINENO: checking if $JAVAC is a version of gcj" >&5
29287 echo $ECHO_N "checking if $JAVAC is a version of gcj... $ECHO_C" >&6
29288 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then
29289   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291
29292 if $JAVAC --version | grep gcj > /dev/null; then
29293   ac_cv_prog_javac_is_gcj=yes;
29294   JAVAC="$JAVAC $GCJ_OPTS";
29295 fi
29296 fi
29297 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_is_gcj" >&5
29298 echo "${ECHO_T}$ac_cv_prog_javac_is_gcj" >&6
29299 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
29300
29301
29302
29303 if test x"${JAVAC_IS_GCJ}" = xyes; then
29304   GCJ_JAVAC_TRUE=
29305   GCJ_JAVAC_FALSE='#'
29306 else
29307   GCJ_JAVAC_TRUE='#'
29308   GCJ_JAVAC_FALSE=
29309 fi
29310
29311 if test "$enable_java_maintainer_mode" = yes; then
29312
29313 echo "$as_me:$LINENO: checking if $JAVAC works" >&5
29314 echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
29315 if test "${ac_cv_prog_javac_works+set}" = set; then
29316   echo $ECHO_N "(cached) $ECHO_C" >&6
29317 else
29318
29319 JAVA_TEST=Object.java
29320 CLASS_TEST=Object.class
29321 cat << \EOF > $JAVA_TEST
29322 /* #line 29322 "configure" */
29323 package java.lang;
29324
29325 public class Object
29326 {
29327   static <T> void doStuff()
29328   {
29329   }
29330 }
29331 EOF
29332 if test x$JAVAC_IS_GCJ = xyes; then
29333   CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
29334 else
29335   CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
29336 fi
29337 if { ac_try='$CMD'
29338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339   (eval $ac_try) 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); }; } >/dev/null 2>&1; then
29343   ac_cv_prog_javac_works=yes
29344 else
29345   { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29346 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29347    { (exit 1); exit 1; }; }
29348   echo "configure: failed program was:" >&5
29349   cat $JAVA_TEST >&5
29350 fi
29351 rm -f $JAVA_TEST $CLASS_TEST
29352
29353 fi
29354 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
29355 echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
29356
29357 fi
29358
29359         fi
29360 fi
29361 echo "$as_me:$LINENO: checking if $JAVA works" >&5
29362 echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
29363 if test "${ac_cv_prog_java_works+set}" = set; then
29364   echo $ECHO_N "(cached) $ECHO_C" >&6
29365 else
29366
29367 JAVA_TEST=Test.java
29368 CLASS_TEST=Test.class
29369 TEST=Test
29370 cat << \EOF > $JAVA_TEST
29371 /* [#]line 29371 "configure" */
29372 public class Test {
29373 public static void main (String args[]) {
29374         System.exit (0);
29375 } }
29376 EOF
29377 if test x$ac_cv_prog_uudecode_base64 != xyes; then
29378         if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
29379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29380   (eval $ac_try) 2>&5
29381   ac_status=$?
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); }; } && test -s $CLASS_TEST; then
29384                 :
29385         else
29386           echo "configure: failed program was:" >&5
29387           cat $JAVA_TEST >&5
29388           { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29389 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29390    { (exit 1); exit 1; }; }
29391         fi
29392 fi
29393 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
29394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29395   (eval $ac_try) 2>&5
29396   ac_status=$?
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); }; } >/dev/null 2>&1; then
29399   ac_cv_prog_java_works=yes
29400 else
29401   echo "configure: failed program was:" >&5
29402   cat $JAVA_TEST >&5
29403   { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
29404 echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
29405    { (exit 1); exit 1; }; }
29406 fi
29407 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
29408
29409 fi
29410 echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
29411 echo "${ECHO_T}$ac_cv_prog_java_works" >&6
29412
29413
29414
29415   fi
29416     if test "x${COMPILE_GJDOC}" = xyes; then
29417
29418   echo "$as_me:$LINENO: checking for the ANTLR parser generator JAR file" >&5
29419 echo $ECHO_N "checking for the ANTLR parser generator JAR file... $ECHO_C" >&6
29420   if test -z "$ANTLR_JAR"; then
29421     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
29422         /usr/share/antlr/lib /usr/share/java /usr/lib;
29423         do
29424             if test -f "$antlr_lib_home/antlr.jar"; then
29425               ANTLR_JAR="$antlr_lib_home/antlr.jar"
29426               break
29427             fi
29428      done
29429   fi
29430   test -f $ANTLR_JAR || { { echo "$as_me:$LINENO: error: specified ANTLR jar file $ANTLR_JAR not found." >&5
29431 echo "$as_me: error: specified ANTLR jar file $ANTLR_JAR not found." >&2;}
29432    { (exit 1); exit 1; }; } \
29433         && echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
29434 echo "${ECHO_T}$ANTLR_JAR" >&6
29435
29436
29437         if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
29438
29439     if test -n "$ac_tool_prefix"; then
29440   for ac_prog in cantlr runantlr antlr
29441   do
29442     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29444 echo "$as_me:$LINENO: checking for $ac_word" >&5
29445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29446 if test "${ac_cv_prog_ANTLR+set}" = set; then
29447   echo $ECHO_N "(cached) $ECHO_C" >&6
29448 else
29449   if test -n "$ANTLR"; then
29450   ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
29451 else
29452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29453 for as_dir in $PATH
29454 do
29455   IFS=$as_save_IFS
29456   test -z "$as_dir" && as_dir=.
29457   for ac_exec_ext in '' $ac_executable_extensions; do
29458   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29459     ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
29460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29461     break 2
29462   fi
29463 done
29464 done
29465
29466 fi
29467 fi
29468 ANTLR=$ac_cv_prog_ANTLR
29469 if test -n "$ANTLR"; then
29470   echo "$as_me:$LINENO: result: $ANTLR" >&5
29471 echo "${ECHO_T}$ANTLR" >&6
29472 else
29473   echo "$as_me:$LINENO: result: no" >&5
29474 echo "${ECHO_T}no" >&6
29475 fi
29476
29477     test -n "$ANTLR" && break
29478   done
29479 fi
29480 if test -z "$ANTLR"; then
29481   ac_ct_ANTLR=$ANTLR
29482   for ac_prog in cantlr runantlr antlr
29483 do
29484   # Extract the first word of "$ac_prog", so it can be a program name with args.
29485 set dummy $ac_prog; ac_word=$2
29486 echo "$as_me:$LINENO: checking for $ac_word" >&5
29487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29488 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then
29489   echo $ECHO_N "(cached) $ECHO_C" >&6
29490 else
29491   if test -n "$ac_ct_ANTLR"; then
29492   ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
29493 else
29494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29495 for as_dir in $PATH
29496 do
29497   IFS=$as_save_IFS
29498   test -z "$as_dir" && as_dir=.
29499   for ac_exec_ext in '' $ac_executable_extensions; do
29500   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29501     ac_cv_prog_ac_ct_ANTLR="$ac_prog"
29502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29503     break 2
29504   fi
29505 done
29506 done
29507
29508 fi
29509 fi
29510 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
29511 if test -n "$ac_ct_ANTLR"; then
29512   echo "$as_me:$LINENO: result: $ac_ct_ANTLR" >&5
29513 echo "${ECHO_T}$ac_ct_ANTLR" >&6
29514 else
29515   echo "$as_me:$LINENO: result: no" >&5
29516 echo "${ECHO_T}no" >&6
29517 fi
29518
29519   test -n "$ac_ct_ANTLR" && break
29520 done
29521
29522   ANTLR=$ac_ct_ANTLR
29523 fi
29524
29525   if test "x$ANTLR" = x; then
29526       if test -z "$JAVA"; then
29527         { { echo "$as_me:$LINENO: error: Failed to find either an antlr binary or a suitable Java runtime for ANTLR." >&5
29528 echo "$as_me: error: Failed to find either an antlr binary or a suitable Java runtime for ANTLR." >&2;}
29529    { (exit 1); exit 1; }; }
29530       else
29531         ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
29532       fi
29533   fi
29534
29535   echo "$as_me:$LINENO: checking for antlr 2.7.1 or better" >&5
29536 echo $ECHO_N "checking for antlr 2.7.1 or better... $ECHO_C" >&6
29537   antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
29538   if test "$antlr_version_str"; then
29539     antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
29540     antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
29541     antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
29542     antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
29543     (test $antlr_version_major -gt 2 || \
29544     (test $antlr_version_major -eq 2 && \
29545      test $antlr_version_minor -gt 7) || \
29546     (test $antlr_version_major -eq 2 && \
29547      test $antlr_version_minor -eq 7 && \
29548      test $antlr_version_micro -ge 1))
29549   fi
29550   echo "$as_me:$LINENO: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
29551 echo "${ECHO_T}$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6
29552
29553     fi
29554   fi
29555 fi
29556
29557
29558 # Check for javac if we need to build either the class library,
29559 # the examples or the tools
29560 if test "x${use_glibj_zip}" = xfalse || \
29561    test "x${EXAMPLESDIR}" != x || \
29562    test "x${TOOLSDIR}" != x && \
29563    test "x${build_class_files}" != xno; then
29564
29565 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
29566 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
29567 GCJ_OPTS="-g"
29568 if test "x$JAVAPREFIX" = x; then
29569         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29570 do
29571   # Extract the first word of "$ac_prog", so it can be a program name with args.
29572 set dummy $ac_prog; ac_word=$2
29573 echo "$as_me:$LINENO: checking for $ac_word" >&5
29574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29575 if test "${ac_cv_prog_JAVAC+set}" = set; then
29576   echo $ECHO_N "(cached) $ECHO_C" >&6
29577 else
29578   if test -n "$JAVAC"; then
29579   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29580 else
29581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29582 for as_dir in $PATH
29583 do
29584   IFS=$as_save_IFS
29585   test -z "$as_dir" && as_dir=.
29586   for ac_exec_ext in '' $ac_executable_extensions; do
29587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29588     ac_cv_prog_JAVAC="$ac_prog"
29589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29590     break 2
29591   fi
29592 done
29593 done
29594
29595 fi
29596 fi
29597 JAVAC=$ac_cv_prog_JAVAC
29598 if test -n "$JAVAC"; then
29599   echo "$as_me:$LINENO: result: $JAVAC" >&5
29600 echo "${ECHO_T}$JAVAC" >&6
29601 else
29602   echo "$as_me:$LINENO: result: no" >&5
29603 echo "${ECHO_T}no" >&6
29604 fi
29605
29606   test -n "$JAVAC" && break
29607 done
29608
29609 else
29610         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
29611 do
29612   # Extract the first word of "$ac_prog", so it can be a program name with args.
29613 set dummy $ac_prog; ac_word=$2
29614 echo "$as_me:$LINENO: checking for $ac_word" >&5
29615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29616 if test "${ac_cv_prog_JAVAC+set}" = set; then
29617   echo $ECHO_N "(cached) $ECHO_C" >&6
29618 else
29619   if test -n "$JAVAC"; then
29620   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
29621 else
29622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29623 for as_dir in $PATH
29624 do
29625   IFS=$as_save_IFS
29626   test -z "$as_dir" && as_dir=.
29627   for ac_exec_ext in '' $ac_executable_extensions; do
29628   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29629     ac_cv_prog_JAVAC="$ac_prog"
29630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29631     break 2
29632   fi
29633 done
29634 done
29635
29636 fi
29637 fi
29638 JAVAC=$ac_cv_prog_JAVAC
29639 if test -n "$JAVAC"; then
29640   echo "$as_me:$LINENO: result: $JAVAC" >&5
29641 echo "${ECHO_T}$JAVAC" >&6
29642 else
29643   echo "$as_me:$LINENO: result: no" >&5
29644 echo "${ECHO_T}no" >&6
29645 fi
29646
29647   test -n "$JAVAC" && break
29648 done
29649 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
29650
29651 fi
29652 test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
29653 echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
29654    { (exit 1); exit 1; }; }
29655 echo "$as_me:$LINENO: checking if $JAVAC is a version of gcj" >&5
29656 echo $ECHO_N "checking if $JAVAC is a version of gcj... $ECHO_C" >&6
29657 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then
29658   echo $ECHO_N "(cached) $ECHO_C" >&6
29659 else
29660
29661 if $JAVAC --version | grep gcj > /dev/null; then
29662   ac_cv_prog_javac_is_gcj=yes;
29663   JAVAC="$JAVAC $GCJ_OPTS";
29664 fi
29665 fi
29666 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_is_gcj" >&5
29667 echo "${ECHO_T}$ac_cv_prog_javac_is_gcj" >&6
29668 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
29669
29670
29671
29672 if test x"${JAVAC_IS_GCJ}" = xyes; then
29673   GCJ_JAVAC_TRUE=
29674   GCJ_JAVAC_FALSE='#'
29675 else
29676   GCJ_JAVAC_TRUE='#'
29677   GCJ_JAVAC_FALSE=
29678 fi
29679
29680 if test "$enable_java_maintainer_mode" = yes; then
29681
29682 echo "$as_me:$LINENO: checking if $JAVAC works" >&5
29683 echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
29684 if test "${ac_cv_prog_javac_works+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687
29688 JAVA_TEST=Object.java
29689 CLASS_TEST=Object.class
29690 cat << \EOF > $JAVA_TEST
29691 /* #line 29691 "configure" */
29692 package java.lang;
29693
29694 public class Object
29695 {
29696   static <T> void doStuff()
29697   {
29698   }
29699 }
29700 EOF
29701 if test x$JAVAC_IS_GCJ = xyes; then
29702   CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
29703 else
29704   CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
29705 fi
29706 if { ac_try='$CMD'
29707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29708   (eval $ac_try) 2>&5
29709   ac_status=$?
29710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29711   (exit $ac_status); }; } >/dev/null 2>&1; then
29712   ac_cv_prog_javac_works=yes
29713 else
29714   { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
29715 echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
29716    { (exit 1); exit 1; }; }
29717   echo "configure: failed program was:" >&5
29718   cat $JAVA_TEST >&5
29719 fi
29720 rm -f $JAVA_TEST $CLASS_TEST
29721
29722 fi
29723 echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
29724 echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
29725
29726 fi
29727
29728
29729   JAVA_TEST=Test.java
29730   CLASS_TEST=Test.class
29731   cat << \EOF > $JAVA_TEST
29732   /* #line 29732 "configure" */
29733   public class Test
29734   {
29735     public static void main(String args)
29736     {
29737       System.out.println("Hello World");
29738     }
29739   }
29740 EOF
29741   if test x$JAVAC_IS_GCJ != xyes; then
29742     echo "$as_me:$LINENO: checking whether javac supports -J" >&5
29743 echo $ECHO_N "checking whether javac supports -J... $ECHO_C" >&6
29744     $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
29745     javac_result=$?
29746     if test "x$javac_result" = "x0"; then
29747       echo "$as_me:$LINENO: result: yes" >&5
29748 echo "${ECHO_T}yes" >&6
29749       JAVAC_MEM_OPT="-J-Xmx768M"
29750     else
29751       echo "$as_me:$LINENO: result: no" >&5
29752 echo "${ECHO_T}no" >&6
29753     fi
29754   fi
29755   rm -f $JAVA_TEST $CLASS_TEST
29756
29757
29758 fi
29759
29760
29761 # Check whether --with-escher or --without-escher was given.
29762 if test "${with_escher+set}" = set; then
29763   withval="$with_escher"
29764
29765 fi;
29766 case "$with_escher" in
29767 "")
29768         use_escher=false
29769         ;;
29770 "no")
29771         use_escher=false
29772         ;;
29773 "yes")
29774         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
29775 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
29776    { (exit 1); exit 1; }; }
29777         ;;
29778 *)
29779         use_escher=true
29780         PATH_TO_ESCHER=$with_escher
29781         ;;
29782 esac
29783
29784
29785
29786 if test x$use_escher = xtrue; then
29787   USE_ESCHER_TRUE=
29788   USE_ESCHER_FALSE='#'
29789 else
29790   USE_ESCHER_TRUE='#'
29791   USE_ESCHER_FALSE=
29792 fi
29793
29794
29795
29796 # Check whether --enable-local-sockets or --disable-local-sockets was given.
29797 if test "${enable_local_sockets+set}" = set; then
29798   enableval="$enable_local_sockets"
29799   case "${enableval}" in
29800                 yes)
29801                   ENABLE_LOCAL_SOCKETS=yes
29802                   ;;
29803                 *)
29804                   ENABLE_LOCAL_SOCKETS=no
29805                   ;;
29806                esac
29807 fi;
29808 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
29809 then
29810   if test "${ac_cv_header_sys_un_h+set}" = set; then
29811   echo "$as_me:$LINENO: checking for sys/un.h" >&5
29812 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
29813 if test "${ac_cv_header_sys_un_h+set}" = set; then
29814   echo $ECHO_N "(cached) $ECHO_C" >&6
29815 fi
29816 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
29817 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
29818 else
29819   # Is the header compilable?
29820 echo "$as_me:$LINENO: checking sys/un.h usability" >&5
29821 echo $ECHO_N "checking sys/un.h usability... $ECHO_C" >&6
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828 $ac_includes_default
29829 #include <sys/un.h>
29830 _ACEOF
29831 rm -f conftest.$ac_objext
29832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29833   (eval $ac_compile) 2>conftest.er1
29834   ac_status=$?
29835   grep -v '^ *+' conftest.er1 >conftest.err
29836   rm -f conftest.er1
29837   cat conftest.err >&5
29838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839   (exit $ac_status); } &&
29840          { ac_try='test -z "$ac_c_werror_flag"
29841                          || test ! -s conftest.err'
29842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843   (eval $ac_try) 2>&5
29844   ac_status=$?
29845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846   (exit $ac_status); }; } &&
29847          { ac_try='test -s conftest.$ac_objext'
29848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849   (eval $ac_try) 2>&5
29850   ac_status=$?
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); }; }; then
29853   ac_header_compiler=yes
29854 else
29855   echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29857
29858 ac_header_compiler=no
29859 fi
29860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29862 echo "${ECHO_T}$ac_header_compiler" >&6
29863
29864 # Is the header present?
29865 echo "$as_me:$LINENO: checking sys/un.h presence" >&5
29866 echo $ECHO_N "checking sys/un.h presence... $ECHO_C" >&6
29867 cat >conftest.$ac_ext <<_ACEOF
29868 /* confdefs.h.  */
29869 _ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h.  */
29873 #include <sys/un.h>
29874 _ACEOF
29875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29876   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29877   ac_status=$?
29878   grep -v '^ *+' conftest.er1 >conftest.err
29879   rm -f conftest.er1
29880   cat conftest.err >&5
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); } >/dev/null; then
29883   if test -s conftest.err; then
29884     ac_cpp_err=$ac_c_preproc_warn_flag
29885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29886   else
29887     ac_cpp_err=
29888   fi
29889 else
29890   ac_cpp_err=yes
29891 fi
29892 if test -z "$ac_cpp_err"; then
29893   ac_header_preproc=yes
29894 else
29895   echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29897
29898   ac_header_preproc=no
29899 fi
29900 rm -f conftest.err conftest.$ac_ext
29901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6
29903
29904 # So?  What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29906   yes:no: )
29907     { echo "$as_me:$LINENO: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: sys/un.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: sys/un.h: proceeding with the compiler's result" >&2;}
29911     ac_header_preproc=yes
29912     ;;
29913   no:yes:* )
29914     { echo "$as_me:$LINENO: WARNING: sys/un.h: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: sys/un.h: present but cannot be compiled" >&2;}
29916     { echo "$as_me:$LINENO: WARNING: sys/un.h:     check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: sys/un.h:     check for missing prerequisite headers?" >&2;}
29918     { echo "$as_me:$LINENO: WARNING: sys/un.h: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: sys/un.h: see the Autoconf documentation" >&2;}
29920     { echo "$as_me:$LINENO: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: sys/un.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29922     { echo "$as_me:$LINENO: WARNING: sys/un.h: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: sys/un.h: proceeding with the preprocessor's result" >&2;}
29924     { echo "$as_me:$LINENO: WARNING: sys/un.h: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: sys/un.h: in the future, the compiler will take precedence" >&2;}
29926     (
29927       cat <<\_ASBOX
29928 ## -------------------------------- ##
29929 ## Report this to classpath@gnu.org ##
29930 ## -------------------------------- ##
29931 _ASBOX
29932     ) |
29933       sed "s/^/$as_me: WARNING:     /" >&2
29934     ;;
29935 esac
29936 echo "$as_me:$LINENO: checking for sys/un.h" >&5
29937 echo $ECHO_N "checking for sys/un.h... $ECHO_C" >&6
29938 if test "${ac_cv_header_sys_un_h+set}" = set; then
29939   echo $ECHO_N "(cached) $ECHO_C" >&6
29940 else
29941   ac_cv_header_sys_un_h=$ac_header_preproc
29942 fi
29943 echo "$as_me:$LINENO: result: $ac_cv_header_sys_un_h" >&5
29944 echo "${ECHO_T}$ac_cv_header_sys_un_h" >&6
29945
29946 fi
29947
29948
29949
29950
29951
29952
29953
29954
29955 for ac_func in read write bind listen accept shutdown
29956 do
29957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29958 echo "$as_me:$LINENO: checking for $ac_func" >&5
29959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29960 if eval "test \"\${$as_ac_var+set}\" = set"; then
29961   echo $ECHO_N "(cached) $ECHO_C" >&6
29962 else
29963   if test x$gcc_no_link = xyes; then
29964   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
29965 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
29966    { (exit 1); exit 1; }; }
29967 fi
29968 cat >conftest.$ac_ext <<_ACEOF
29969 /* confdefs.h.  */
29970 _ACEOF
29971 cat confdefs.h >>conftest.$ac_ext
29972 cat >>conftest.$ac_ext <<_ACEOF
29973 /* end confdefs.h.  */
29974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29975    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29976 #define $ac_func innocuous_$ac_func
29977
29978 /* System header to define __stub macros and hopefully few prototypes,
29979     which can conflict with char $ac_func (); below.
29980     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29981     <limits.h> exists even on freestanding compilers.  */
29982
29983 #ifdef __STDC__
29984 # include <limits.h>
29985 #else
29986 # include <assert.h>
29987 #endif
29988
29989 #undef $ac_func
29990
29991 /* Override any gcc2 internal prototype to avoid an error.  */
29992 #ifdef __cplusplus
29993 extern "C"
29994 {
29995 #endif
29996 /* We use char because int might match the return type of a gcc2
29997    builtin and then its argument prototype would still apply.  */
29998 char $ac_func ();
29999 /* The GNU C library defines this for functions which it implements
30000     to always fail with ENOSYS.  Some functions are actually named
30001     something starting with __ and the normal name is an alias.  */
30002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30003 choke me
30004 #else
30005 char (*f) () = $ac_func;
30006 #endif
30007 #ifdef __cplusplus
30008 }
30009 #endif
30010
30011 int
30012 main ()
30013 {
30014 return f != $ac_func;
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30021   (eval $ac_link) 2>conftest.er1
30022   ac_status=$?
30023   grep -v '^ *+' conftest.er1 >conftest.err
30024   rm -f conftest.er1
30025   cat conftest.err >&5
30026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027   (exit $ac_status); } &&
30028          { ac_try='test -z "$ac_c_werror_flag"
30029                          || test ! -s conftest.err'
30030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30031   (eval $ac_try) 2>&5
30032   ac_status=$?
30033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034   (exit $ac_status); }; } &&
30035          { ac_try='test -s conftest$ac_exeext'
30036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30037   (eval $ac_try) 2>&5
30038   ac_status=$?
30039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040   (exit $ac_status); }; }; then
30041   eval "$as_ac_var=yes"
30042 else
30043   echo "$as_me: failed program was:" >&5
30044 sed 's/^/| /' conftest.$ac_ext >&5
30045
30046 eval "$as_ac_var=no"
30047 fi
30048 rm -f conftest.err conftest.$ac_objext \
30049       conftest$ac_exeext conftest.$ac_ext
30050 fi
30051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30053 if test `eval echo '${'$as_ac_var'}'` = yes; then
30054   cat >>confdefs.h <<_ACEOF
30055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30056 _ACEOF
30057
30058 else
30059   { { echo "$as_me:$LINENO: error: networking support not available" >&5
30060 echo "$as_me: error: networking support not available" >&2;}
30061    { (exit 1); exit 1; }; }
30062 fi
30063 done
30064
30065
30066 cat >>confdefs.h <<\_ACEOF
30067 #define ENABLE_LOCAL_SOCKETS 1
30068 _ACEOF
30069
30070 fi
30071
30072
30073 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
30074   ENABLE_LOCAL_SOCKETS_TRUE=
30075   ENABLE_LOCAL_SOCKETS_FALSE='#'
30076 else
30077   ENABLE_LOCAL_SOCKETS_TRUE='#'
30078   ENABLE_LOCAL_SOCKETS_FALSE=
30079 fi
30080
30081
30082
30083
30084 WANT_NATIVE_BIG_INTEGER=false
30085 if test "x${COMPILE_GMP}" = xyes; then
30086   if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
30087     if test "x${ac_cv_header_gmp_h}" = xyes; then
30088       WANT_NATIVE_BIG_INTEGER=true
30089
30090 cat >>confdefs.h <<\_ACEOF
30091 #define WITH_GNU_MP 1
30092 _ACEOF
30093
30094     else
30095       COMPILE_GMP=no
30096     fi
30097   else
30098     COMPILE_GMP=no
30099   fi
30100 fi
30101
30102
30103
30104 if test "x${COMPILE_GMP}" = xyes; then
30105   CREATE_GMPBI_LIBRARY_TRUE=
30106   CREATE_GMPBI_LIBRARY_FALSE='#'
30107 else
30108   CREATE_GMPBI_LIBRARY_TRUE='#'
30109   CREATE_GMPBI_LIBRARY_FALSE=
30110 fi
30111
30112
30113                                                                                                                                                                                                                                                                                                                                                                                                                                                                   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-math/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/gstreamer-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 resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
30114
30115
30116 if test "x${COMPILE_WRAPPERS}" = xyes; then
30117      :
30118    else
30119                                                                                                                              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"
30120
30121
30122           ac_config_commands="$ac_config_commands gappletviewer"
30123
30124           ac_config_commands="$ac_config_commands gjarsigner"
30125
30126           ac_config_commands="$ac_config_commands gkeytool"
30127
30128           ac_config_commands="$ac_config_commands gjar"
30129
30130           ac_config_commands="$ac_config_commands gnative2ascii"
30131
30132           ac_config_commands="$ac_config_commands gserialver"
30133
30134           ac_config_commands="$ac_config_commands grmiregistry"
30135
30136           ac_config_commands="$ac_config_commands gtnameserv"
30137
30138           ac_config_commands="$ac_config_commands gorbd"
30139
30140           ac_config_commands="$ac_config_commands grmid"
30141
30142           ac_config_commands="$ac_config_commands grmic"
30143
30144           ac_config_commands="$ac_config_commands gjavah"
30145
30146
30147    fi
30148
30149
30150 if test "x${COMPILE_GJDOC}" = xyes
30151 then
30152           ac_config_files="$ac_config_files tools/gjdoc"
30153
30154           ac_config_commands="$ac_config_commands gjdoc"
30155
30156 fi
30157
30158           ac_config_commands="$ac_config_commands gen-classlist"
30159
30160           ac_config_commands="$ac_config_commands copy-vmresources"
30161
30162 cat >confcache <<\_ACEOF
30163 # This file is a shell script that caches the results of configure
30164 # tests run on this system so they can be shared between configure
30165 # scripts and configure runs, see configure's option --config-cache.
30166 # It is not useful on other systems.  If it contains results you don't
30167 # want to keep, you may remove or edit it.
30168 #
30169 # config.status only pays attention to the cache file if you give it
30170 # the --recheck option to rerun configure.
30171 #
30172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30174 # following values.
30175
30176 _ACEOF
30177
30178 # The following way of writing the cache mishandles newlines in values,
30179 # but we know of no workaround that is simple, portable, and efficient.
30180 # So, don't put newlines in cache variables' values.
30181 # Ultrix sh set writes to stderr and can't be redirected directly,
30182 # and sets the high bit in the cache file unless we assign to the vars.
30183 {
30184   (set) 2>&1 |
30185     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30186     *ac_space=\ *)
30187       # `set' does not quote correctly, so add quotes (double-quote
30188       # substitution turns \\\\ into \\, and sed turns \\ into \).
30189       sed -n \
30190         "s/'/'\\\\''/g;
30191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30192       ;;
30193     *)
30194       # `set' quotes correctly as required by POSIX, so do not add quotes.
30195       sed -n \
30196         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30197       ;;
30198     esac;
30199 } |
30200   sed '
30201      t clear
30202      : clear
30203      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30204      t end
30205      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30206      : end' >>confcache
30207 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30208   if test -w $cache_file; then
30209     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30210     cat confcache >$cache_file
30211   else
30212     echo "not updating unwritable cache $cache_file"
30213   fi
30214 fi
30215 rm -f confcache
30216
30217 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30218 # Let make expand exec_prefix.
30219 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30220
30221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30223 # trailing colons and then remove the whole line if VPATH becomes empty
30224 # (actually we leave an empty line to preserve line numbers).
30225 if test "x$srcdir" = x.; then
30226   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30227 s/:*\$(srcdir):*/:/;
30228 s/:*\${srcdir}:*/:/;
30229 s/:*@srcdir@:*/:/;
30230 s/^\([^=]*=[     ]*\):*/\1/;
30231 s/:*$//;
30232 s/^[^=]*=[       ]*$//;
30233 }'
30234 fi
30235
30236 DEFS=-DHAVE_CONFIG_H
30237
30238 ac_libobjs=
30239 ac_ltlibobjs=
30240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30241   # 1. Remove the extension, and $U if already installed.
30242   ac_i=`echo "$ac_i" |
30243          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30244   # 2. Add them.
30245   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30246   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30247 done
30248 LIBOBJS=$ac_libobjs
30249
30250 LTLIBOBJS=$ac_ltlibobjs
30251
30252
30253 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
30254   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
30255 Usually this means the macro was only invoked conditionally." >&5
30256 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
30257 Usually this means the macro was only invoked conditionally." >&2;}
30258    { (exit 1); exit 1; }; }
30259 fi
30260 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
30261   { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined.
30262 Usually this means the macro was only invoked conditionally." >&5
30263 echo "$as_me: error: conditional \"GENINSRC\" was never defined.
30264 Usually this means the macro was only invoked conditionally." >&2;}
30265    { (exit 1); exit 1; }; }
30266 fi
30267 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
30268   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
30269 Usually this means the macro was only invoked conditionally." >&5
30270 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
30271 Usually this means the macro was only invoked conditionally." >&2;}
30272    { (exit 1); exit 1; }; }
30273 fi
30274 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
30275   { { echo "$as_me:$LINENO: error: conditional \"CREATE_COLLECTIONS\" was never defined.
30276 Usually this means the macro was only invoked conditionally." >&5
30277 echo "$as_me: error: conditional \"CREATE_COLLECTIONS\" was never defined.
30278 Usually this means the macro was only invoked conditionally." >&2;}
30279    { (exit 1); exit 1; }; }
30280 fi
30281 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
30282   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
30283 Usually this means the macro was only invoked conditionally." >&5
30284 echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
30285 Usually this means the macro was only invoked conditionally." >&2;}
30286    { (exit 1); exit 1; }; }
30287 fi
30288 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
30289   { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
30290 Usually this means the macro was only invoked conditionally." >&5
30291 echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
30292 Usually this means the macro was only invoked conditionally." >&2;}
30293    { (exit 1); exit 1; }; }
30294 fi
30295 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
30296   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
30297 Usually this means the macro was only invoked conditionally." >&5
30298 echo "$as_me: error: conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
30299 Usually this means the macro was only invoked conditionally." >&2;}
30300    { (exit 1); exit 1; }; }
30301 fi
30302 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
30303   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
30304 Usually this means the macro was only invoked conditionally." >&5
30305 echo "$as_me: error: conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
30306 Usually this means the macro was only invoked conditionally." >&2;}
30307    { (exit 1); exit 1; }; }
30308 fi
30309 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
30310   { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
30311 Usually this means the macro was only invoked conditionally." >&5
30312 echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
30313 Usually this means the macro was only invoked conditionally." >&2;}
30314    { (exit 1); exit 1; }; }
30315 fi
30316 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30317   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
30318 Usually this means the macro was only invoked conditionally." >&5
30319 echo "$as_me: error: conditional \"AMDEP\" was never defined.
30320 Usually this means the macro was only invoked conditionally." >&2;}
30321    { (exit 1); exit 1; }; }
30322 fi
30323 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30324   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30325 Usually this means the macro was only invoked conditionally." >&5
30326 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30327 Usually this means the macro was only invoked conditionally." >&2;}
30328    { (exit 1); exit 1; }; }
30329 fi
30330 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
30331   { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
30332 Usually this means the macro was only invoked conditionally." >&5
30333 echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
30334 Usually this means the macro was only invoked conditionally." >&2;}
30335    { (exit 1); exit 1; }; }
30336 fi
30337 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
30338   { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
30339 Usually this means the macro was only invoked conditionally." >&5
30340 echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
30341 Usually this means the macro was only invoked conditionally." >&2;}
30342    { (exit 1); exit 1; }; }
30343 fi
30344 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
30345   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
30346 Usually this means the macro was only invoked conditionally." >&5
30347 echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
30348 Usually this means the macro was only invoked conditionally." >&2;}
30349    { (exit 1); exit 1; }; }
30350 fi
30351 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
30352   { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
30353 Usually this means the macro was only invoked conditionally." >&5
30354 echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
30355 Usually this means the macro was only invoked conditionally." >&2;}
30356    { (exit 1); exit 1; }; }
30357 fi
30358 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
30359   { { echo "$as_me:$LINENO: error: conditional \"CREATE_PLUGIN\" was never defined.
30360 Usually this means the macro was only invoked conditionally." >&5
30361 echo "$as_me: error: conditional \"CREATE_PLUGIN\" was never defined.
30362 Usually this means the macro was only invoked conditionally." >&2;}
30363    { (exit 1); exit 1; }; }
30364 fi
30365 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
30366   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
30367 Usually this means the macro was only invoked conditionally." >&5
30368 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
30369 Usually this means the macro was only invoked conditionally." >&2;}
30370    { (exit 1); exit 1; }; }
30371 fi
30372 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
30373   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
30374 Usually this means the macro was only invoked conditionally." >&5
30375 echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
30376 Usually this means the macro was only invoked conditionally." >&2;}
30377    { (exit 1); exit 1; }; }
30378 fi
30379 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
30380   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC_PARSER\" was never defined.
30381 Usually this means the macro was only invoked conditionally." >&5
30382 echo "$as_me: error: conditional \"CREATE_GJDOC_PARSER\" was never defined.
30383 Usually this means the macro was only invoked conditionally." >&2;}
30384    { (exit 1); exit 1; }; }
30385 fi
30386 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
30387   { { echo "$as_me:$LINENO: error: conditional \"CREATE_WRAPPERS\" was never defined.
30388 Usually this means the macro was only invoked conditionally." >&5
30389 echo "$as_me: error: conditional \"CREATE_WRAPPERS\" was never defined.
30390 Usually this means the macro was only invoked conditionally." >&2;}
30391    { (exit 1); exit 1; }; }
30392 fi
30393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30394   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
30395 Usually this means the macro was only invoked conditionally." >&5
30396 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
30397 Usually this means the macro was only invoked conditionally." >&2;}
30398    { (exit 1); exit 1; }; }
30399 fi
30400 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30401   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30402 Usually this means the macro was only invoked conditionally." >&5
30403 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30404 Usually this means the macro was only invoked conditionally." >&2;}
30405    { (exit 1); exit 1; }; }
30406 fi
30407 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
30408   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
30409 Usually this means the macro was only invoked conditionally." >&5
30410 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
30411 Usually this means the macro was only invoked conditionally." >&2;}
30412    { (exit 1); exit 1; }; }
30413 fi
30414 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
30415   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
30416 Usually this means the macro was only invoked conditionally." >&5
30417 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
30418 Usually this means the macro was only invoked conditionally." >&2;}
30419    { (exit 1); exit 1; }; }
30420 fi
30421 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
30422   { { echo "$as_me:$LINENO: error: conditional \"WITH_JAR\" was never defined.
30423 Usually this means the macro was only invoked conditionally." >&5
30424 echo "$as_me: error: conditional \"WITH_JAR\" was never defined.
30425 Usually this means the macro was only invoked conditionally." >&2;}
30426    { (exit 1); exit 1; }; }
30427 fi
30428 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
30429   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
30430 Usually this means the macro was only invoked conditionally." >&5
30431 echo "$as_me: error: conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
30432 Usually this means the macro was only invoked conditionally." >&2;}
30433    { (exit 1); exit 1; }; }
30434 fi
30435 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
30436   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
30437 Usually this means the macro was only invoked conditionally." >&5
30438 echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
30439 Usually this means the macro was only invoked conditionally." >&2;}
30440    { (exit 1); exit 1; }; }
30441 fi
30442 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
30443   { { echo "$as_me:$LINENO: error: conditional \"BUILD_CLASS_FILES\" was never defined.
30444 Usually this means the macro was only invoked conditionally." >&5
30445 echo "$as_me: error: conditional \"BUILD_CLASS_FILES\" was never defined.
30446 Usually this means the macro was only invoked conditionally." >&2;}
30447    { (exit 1); exit 1; }; }
30448 fi
30449 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
30450   { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
30451 Usually this means the macro was only invoked conditionally." >&5
30452 echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
30453 Usually this means the macro was only invoked conditionally." >&2;}
30454    { (exit 1); exit 1; }; }
30455 fi
30456 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
30457   { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
30458 Usually this means the macro was only invoked conditionally." >&5
30459 echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
30460 Usually this means the macro was only invoked conditionally." >&2;}
30461    { (exit 1); exit 1; }; }
30462 fi
30463 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
30464   { { echo "$as_me:$LINENO: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
30465 Usually this means the macro was only invoked conditionally." >&5
30466 echo "$as_me: error: conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
30467 Usually this means the macro was only invoked conditionally." >&2;}
30468    { (exit 1); exit 1; }; }
30469 fi
30470 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
30471   { { echo "$as_me:$LINENO: error: conditional \"GCJ_JAVAC\" was never defined.
30472 Usually this means the macro was only invoked conditionally." >&5
30473 echo "$as_me: error: conditional \"GCJ_JAVAC\" was never defined.
30474 Usually this means the macro was only invoked conditionally." >&2;}
30475    { (exit 1); exit 1; }; }
30476 fi
30477 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
30478   { { echo "$as_me:$LINENO: error: conditional \"GCJ_JAVAC\" was never defined.
30479 Usually this means the macro was only invoked conditionally." >&5
30480 echo "$as_me: error: conditional \"GCJ_JAVAC\" was never defined.
30481 Usually this means the macro was only invoked conditionally." >&2;}
30482    { (exit 1); exit 1; }; }
30483 fi
30484 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
30485   { { echo "$as_me:$LINENO: error: conditional \"USE_ESCHER\" was never defined.
30486 Usually this means the macro was only invoked conditionally." >&5
30487 echo "$as_me: error: conditional \"USE_ESCHER\" was never defined.
30488 Usually this means the macro was only invoked conditionally." >&2;}
30489    { (exit 1); exit 1; }; }
30490 fi
30491 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
30492   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
30493 Usually this means the macro was only invoked conditionally." >&5
30494 echo "$as_me: error: conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
30495 Usually this means the macro was only invoked conditionally." >&2;}
30496    { (exit 1); exit 1; }; }
30497 fi
30498 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
30499   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
30500 Usually this means the macro was only invoked conditionally." >&5
30501 echo "$as_me: error: conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
30502 Usually this means the macro was only invoked conditionally." >&2;}
30503    { (exit 1); exit 1; }; }
30504 fi
30505
30506 : ${CONFIG_STATUS=./config.status}
30507 ac_clean_files_save=$ac_clean_files
30508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30509 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30510 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30511 cat >$CONFIG_STATUS <<_ACEOF
30512 #! $SHELL
30513 # Generated by $as_me.
30514 # Run this file to recreate the current configuration.
30515 # Compiler output produced by configure, useful for debugging
30516 # configure, is in config.log if it exists.
30517
30518 debug=false
30519 ac_cs_recheck=false
30520 ac_cs_silent=false
30521 SHELL=\${CONFIG_SHELL-$SHELL}
30522 _ACEOF
30523
30524 cat >>$CONFIG_STATUS <<\_ACEOF
30525 ## --------------------- ##
30526 ## M4sh Initialization.  ##
30527 ## --------------------- ##
30528
30529 # Be Bourne compatible
30530 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30531   emulate sh
30532   NULLCMD=:
30533   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30534   # is contrary to our usage.  Disable this feature.
30535   alias -g '${1+"$@"}'='"$@"'
30536 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30537   set -o posix
30538 fi
30539 DUALCASE=1; export DUALCASE # for MKS sh
30540
30541 # Support unset when possible.
30542 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30543   as_unset=unset
30544 else
30545   as_unset=false
30546 fi
30547
30548
30549 # Work around bugs in pre-3.0 UWIN ksh.
30550 $as_unset ENV MAIL MAILPATH
30551 PS1='$ '
30552 PS2='> '
30553 PS4='+ '
30554
30555 # NLS nuisances.
30556 for as_var in \
30557   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30558   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30559   LC_TELEPHONE LC_TIME
30560 do
30561   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30562     eval $as_var=C; export $as_var
30563   else
30564     $as_unset $as_var
30565   fi
30566 done
30567
30568 # Required to use basename.
30569 if expr a : '\(a\)' >/dev/null 2>&1; then
30570   as_expr=expr
30571 else
30572   as_expr=false
30573 fi
30574
30575 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30576   as_basename=basename
30577 else
30578   as_basename=false
30579 fi
30580
30581
30582 # Name of the executable.
30583 as_me=`$as_basename "$0" ||
30584 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30585          X"$0" : 'X\(//\)$' \| \
30586          X"$0" : 'X\(/\)$' \| \
30587          .     : '\(.\)' 2>/dev/null ||
30588 echo X/"$0" |
30589     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30590           /^X\/\(\/\/\)$/{ s//\1/; q; }
30591           /^X\/\(\/\).*/{ s//\1/; q; }
30592           s/.*/./; q'`
30593
30594
30595 # PATH needs CR, and LINENO needs CR and PATH.
30596 # Avoid depending upon Character Ranges.
30597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30600 as_cr_digits='0123456789'
30601 as_cr_alnum=$as_cr_Letters$as_cr_digits
30602
30603 # The user is always right.
30604 if test "${PATH_SEPARATOR+set}" != set; then
30605   echo "#! /bin/sh" >conf$$.sh
30606   echo  "exit 0"   >>conf$$.sh
30607   chmod +x conf$$.sh
30608   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30609     PATH_SEPARATOR=';'
30610   else
30611     PATH_SEPARATOR=:
30612   fi
30613   rm -f conf$$.sh
30614 fi
30615
30616
30617   as_lineno_1=$LINENO
30618   as_lineno_2=$LINENO
30619   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30620   test "x$as_lineno_1" != "x$as_lineno_2" &&
30621   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30622   # Find who we are.  Look in the path if we contain no path at all
30623   # relative or not.
30624   case $0 in
30625     *[\\/]* ) as_myself=$0 ;;
30626     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30627 for as_dir in $PATH
30628 do
30629   IFS=$as_save_IFS
30630   test -z "$as_dir" && as_dir=.
30631   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30632 done
30633
30634        ;;
30635   esac
30636   # We did not find ourselves, most probably we were run as `sh COMMAND'
30637   # in which case we are not to be found in the path.
30638   if test "x$as_myself" = x; then
30639     as_myself=$0
30640   fi
30641   if test ! -f "$as_myself"; then
30642     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30643 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30644    { (exit 1); exit 1; }; }
30645   fi
30646   case $CONFIG_SHELL in
30647   '')
30648     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30649 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30650 do
30651   IFS=$as_save_IFS
30652   test -z "$as_dir" && as_dir=.
30653   for as_base in sh bash ksh sh5; do
30654          case $as_dir in
30655          /*)
30656            if ("$as_dir/$as_base" -c '
30657   as_lineno_1=$LINENO
30658   as_lineno_2=$LINENO
30659   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30660   test "x$as_lineno_1" != "x$as_lineno_2" &&
30661   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30662              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30663              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30664              CONFIG_SHELL=$as_dir/$as_base
30665              export CONFIG_SHELL
30666              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30667            fi;;
30668          esac
30669        done
30670 done
30671 ;;
30672   esac
30673
30674   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30675   # uniformly replaced by the line number.  The first 'sed' inserts a
30676   # line-number line before each line; the second 'sed' does the real
30677   # work.  The second script uses 'N' to pair each line-number line
30678   # with the numbered line, and appends trailing '-' during
30679   # substitution so that $LINENO is not a special case at line end.
30680   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30681   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30682   sed '=' <$as_myself |
30683     sed '
30684       N
30685       s,$,-,
30686       : loop
30687       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30688       t loop
30689       s,-$,,
30690       s,^['$as_cr_digits']*\n,,
30691     ' >$as_me.lineno &&
30692   chmod +x $as_me.lineno ||
30693     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30694 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30695    { (exit 1); exit 1; }; }
30696
30697   # Don't try to exec as it changes $[0], causing all sort of problems
30698   # (the dirname of $[0] is not the place where we might find the
30699   # original and so on.  Autoconf is especially sensible to this).
30700   . ./$as_me.lineno
30701   # Exit status is that of the last command.
30702   exit
30703 }
30704
30705
30706 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30707   *c*,-n*) ECHO_N= ECHO_C='
30708 ' ECHO_T='      ' ;;
30709   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30710   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30711 esac
30712
30713 if expr a : '\(a\)' >/dev/null 2>&1; then
30714   as_expr=expr
30715 else
30716   as_expr=false
30717 fi
30718
30719 rm -f conf$$ conf$$.exe conf$$.file
30720 echo >conf$$.file
30721 if ln -s conf$$.file conf$$ 2>/dev/null; then
30722   # We could just check for DJGPP; but this test a) works b) is more generic
30723   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30724   if test -f conf$$.exe; then
30725     # Don't use ln at all; we don't have any links
30726     as_ln_s='cp -p'
30727   else
30728     as_ln_s='ln -s'
30729   fi
30730 elif ln conf$$.file conf$$ 2>/dev/null; then
30731   as_ln_s=ln
30732 else
30733   as_ln_s='cp -p'
30734 fi
30735 rm -f conf$$ conf$$.exe conf$$.file
30736
30737 if mkdir -p . 2>/dev/null; then
30738   as_mkdir_p=:
30739 else
30740   test -d ./-p && rmdir ./-p
30741   as_mkdir_p=false
30742 fi
30743
30744 as_executable_p="test -f"
30745
30746 # Sed expression to map a string onto a valid CPP name.
30747 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30748
30749 # Sed expression to map a string onto a valid variable name.
30750 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30751
30752
30753 # IFS
30754 # We need space, tab and new line, in precisely that order.
30755 as_nl='
30756 '
30757 IFS="   $as_nl"
30758
30759 # CDPATH.
30760 $as_unset CDPATH
30761
30762 exec 6>&1
30763
30764 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30765 # report actual input values of CONFIG_FILES etc. instead of their
30766 # values after options handling.  Logging --version etc. is OK.
30767 exec 5>>config.log
30768 {
30769   echo
30770   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30771 ## Running $as_me. ##
30772 _ASBOX
30773 } >&5
30774 cat >&5 <<_CSEOF
30775
30776 This file was extended by GNU Classpath $as_me 0.98, which was
30777 generated by GNU Autoconf 2.59.  Invocation command line was
30778
30779   CONFIG_FILES    = $CONFIG_FILES
30780   CONFIG_HEADERS  = $CONFIG_HEADERS
30781   CONFIG_LINKS    = $CONFIG_LINKS
30782   CONFIG_COMMANDS = $CONFIG_COMMANDS
30783   $ $0 $@
30784
30785 _CSEOF
30786 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30787 echo >&5
30788 _ACEOF
30789
30790 # Files that config.status was made for.
30791 if test -n "$ac_config_files"; then
30792   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30793 fi
30794
30795 if test -n "$ac_config_headers"; then
30796   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30797 fi
30798
30799 if test -n "$ac_config_links"; then
30800   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30801 fi
30802
30803 if test -n "$ac_config_commands"; then
30804   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30805 fi
30806
30807 cat >>$CONFIG_STATUS <<\_ACEOF
30808
30809 ac_cs_usage="\
30810 \`$as_me' instantiates files from templates according to the
30811 current configuration.
30812
30813 Usage: $0 [OPTIONS] [FILE]...
30814
30815   -h, --help       print this help, then exit
30816   -V, --version    print version number, then exit
30817   -q, --quiet      do not print progress messages
30818   -d, --debug      don't remove temporary files
30819       --recheck    update $as_me by reconfiguring in the same conditions
30820   --file=FILE[:TEMPLATE]
30821                    instantiate the configuration file FILE
30822   --header=FILE[:TEMPLATE]
30823                    instantiate the configuration header FILE
30824
30825 Configuration files:
30826 $config_files
30827
30828 Configuration headers:
30829 $config_headers
30830
30831 Configuration links:
30832 $config_links
30833
30834 Configuration commands:
30835 $config_commands
30836
30837 Report bugs to <bug-autoconf@gnu.org>."
30838 _ACEOF
30839
30840 cat >>$CONFIG_STATUS <<_ACEOF
30841 ac_cs_version="\\
30842 GNU Classpath config.status 0.98
30843 configured by $0, generated by GNU Autoconf 2.59,
30844   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30845
30846 Copyright (C) 2003 Free Software Foundation, Inc.
30847 This config.status script is free software; the Free Software Foundation
30848 gives unlimited permission to copy, distribute and modify it."
30849 srcdir=$srcdir
30850 INSTALL="$INSTALL"
30851 _ACEOF
30852
30853 cat >>$CONFIG_STATUS <<\_ACEOF
30854 # If no file are specified by the user, then we need to provide default
30855 # value.  By we need to know if files were specified by the user.
30856 ac_need_defaults=:
30857 while test $# != 0
30858 do
30859   case $1 in
30860   --*=*)
30861     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30862     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30863     ac_shift=:
30864     ;;
30865   -*)
30866     ac_option=$1
30867     ac_optarg=$2
30868     ac_shift=shift
30869     ;;
30870   *) # This is not an option, so the user has probably given explicit
30871      # arguments.
30872      ac_option=$1
30873      ac_need_defaults=false;;
30874   esac
30875
30876   case $ac_option in
30877   # Handling of the options.
30878 _ACEOF
30879 cat >>$CONFIG_STATUS <<\_ACEOF
30880   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30881     ac_cs_recheck=: ;;
30882   --version | --vers* | -V )
30883     echo "$ac_cs_version"; exit 0 ;;
30884   --he | --h)
30885     # Conflict between --help and --header
30886     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30887 Try \`$0 --help' for more information." >&5
30888 echo "$as_me: error: ambiguous option: $1
30889 Try \`$0 --help' for more information." >&2;}
30890    { (exit 1); exit 1; }; };;
30891   --help | --hel | -h )
30892     echo "$ac_cs_usage"; exit 0 ;;
30893   --debug | --d* | -d )
30894     debug=: ;;
30895   --file | --fil | --fi | --f )
30896     $ac_shift
30897     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30898     ac_need_defaults=false;;
30899   --header | --heade | --head | --hea )
30900     $ac_shift
30901     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30902     ac_need_defaults=false;;
30903   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30904   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30905     ac_cs_silent=: ;;
30906
30907   # This is an error.
30908   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30909 Try \`$0 --help' for more information." >&5
30910 echo "$as_me: error: unrecognized option: $1
30911 Try \`$0 --help' for more information." >&2;}
30912    { (exit 1); exit 1; }; } ;;
30913
30914   *) ac_config_targets="$ac_config_targets $1" ;;
30915
30916   esac
30917   shift
30918 done
30919
30920 ac_configure_extra_args=
30921
30922 if $ac_cs_silent; then
30923   exec 6>/dev/null
30924   ac_configure_extra_args="$ac_configure_extra_args --silent"
30925 fi
30926
30927 _ACEOF
30928 cat >>$CONFIG_STATUS <<_ACEOF
30929 if \$ac_cs_recheck; then
30930   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30931   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30932 fi
30933
30934 _ACEOF
30935
30936 cat >>$CONFIG_STATUS <<_ACEOF
30937 #
30938 # INIT-COMMANDS section.
30939 #
30940
30941
30942 srcdir="$srcdir"
30943 host="$host"
30944 target="$target"
30945 with_multisubdir="$with_multisubdir"
30946 with_multisrctop="$with_multisrctop"
30947 with_target_subdir="$with_target_subdir"
30948 ac_configure_args="${multilib_arg} ${ac_configure_args}"
30949 multi_basedir="$multi_basedir"
30950 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
30951 CC="$CC"
30952 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30953
30954
30955 # The HP-UX ksh and POSIX shell print the target directory to stdout
30956 # if CDPATH is set.
30957 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30958
30959 sed_quote_subst='$sed_quote_subst'
30960 double_quote_subst='$double_quote_subst'
30961 delay_variable_subst='$delay_variable_subst'
30962 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30963 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30964 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30965 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30966 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30967 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30968 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30969 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30970 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30971 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30972 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30973 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30974 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30975 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30976 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30977 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30978 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30979 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30980 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30981 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30982 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30983 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30984 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30985 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30986 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30987 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30988 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30989 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30990 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30991 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30992 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30993 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30994 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30995 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30996 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30997 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30998 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30999 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31000 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31001 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31002 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31003 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31004 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31005 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31006 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
31007 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31008 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31009 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31010 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31011 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31012 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31013 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31014 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31015 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31016 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31017 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31018 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31019 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31020 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31021 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31022 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31023 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31024 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31025 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31026 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31027 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31028 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31029 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31030 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31031 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31032 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31033 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31034 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31035 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31036 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31037 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31038 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31039 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31040 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31041 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31042 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31043 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31044 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31045 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31046 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31047 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31048 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31049 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31050 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31051 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
31052 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31053 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31054 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
31055 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31056 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
31057 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
31058 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31059 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
31060 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
31061 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31062 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31063 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
31064 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31065 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
31066 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
31067 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31068 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31069 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31070 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
31071 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
31072 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31073 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
31074 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
31075 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
31076 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
31077 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
31078 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
31079 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
31080 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
31081 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31082 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
31083 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
31084 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
31085 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
31086 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31087 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31088 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31089 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31090 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31091 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31092 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31093 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31094 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31095 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31096 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31097 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31098 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31099 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31100 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31101 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31102 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31103 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31104 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31105 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31106 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31107 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31108 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31109 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31110 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31111 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31112 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31113 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31114 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31115 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31116 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31117 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31118 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31119 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31120 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31121 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31122 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31123 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31124 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31125 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31126 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31127 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31128 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31129 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31130 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31131 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31132 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
31133
31134 LTCC='$LTCC'
31135 LTCFLAGS='$LTCFLAGS'
31136 compiler='$compiler_DEFAULT'
31137
31138 # Quote evaled strings.
31139 for var in SED \
31140 GREP \
31141 EGREP \
31142 FGREP \
31143 LD \
31144 NM \
31145 LN_S \
31146 lt_SP2NL \
31147 lt_NL2SP \
31148 reload_flag \
31149 OBJDUMP \
31150 deplibs_check_method \
31151 file_magic_cmd \
31152 AR \
31153 AR_FLAGS \
31154 STRIP \
31155 RANLIB \
31156 CC \
31157 CFLAGS \
31158 compiler \
31159 lt_cv_sys_global_symbol_pipe \
31160 lt_cv_sys_global_symbol_to_cdecl \
31161 lt_cv_sys_global_symbol_to_c_name_address \
31162 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31163 SHELL \
31164 ECHO \
31165 lt_prog_compiler_no_builtin_flag \
31166 lt_prog_compiler_wl \
31167 lt_prog_compiler_pic \
31168 lt_prog_compiler_static \
31169 lt_cv_prog_compiler_c_o \
31170 need_locks \
31171 DSYMUTIL \
31172 NMEDIT \
31173 LIPO \
31174 OTOOL \
31175 OTOOL64 \
31176 shrext_cmds \
31177 export_dynamic_flag_spec \
31178 whole_archive_flag_spec \
31179 compiler_needs_object \
31180 with_gnu_ld \
31181 allow_undefined_flag \
31182 no_undefined_flag \
31183 hardcode_libdir_flag_spec \
31184 hardcode_libdir_flag_spec_ld \
31185 hardcode_libdir_separator \
31186 fix_srcfile_path \
31187 exclude_expsyms \
31188 include_expsyms \
31189 file_list_spec \
31190 variables_saved_for_relink \
31191 libname_spec \
31192 library_names_spec \
31193 soname_spec \
31194 finish_eval \
31195 old_striplib \
31196 striplib \
31197 compiler_lib_search_dirs \
31198 predep_objects \
31199 postdep_objects \
31200 predeps \
31201 postdeps \
31202 compiler_lib_search_path \
31203 LD_CXX \
31204 compiler_CXX \
31205 lt_prog_compiler_no_builtin_flag_CXX \
31206 lt_prog_compiler_wl_CXX \
31207 lt_prog_compiler_pic_CXX \
31208 lt_prog_compiler_static_CXX \
31209 lt_cv_prog_compiler_c_o_CXX \
31210 export_dynamic_flag_spec_CXX \
31211 whole_archive_flag_spec_CXX \
31212 compiler_needs_object_CXX \
31213 with_gnu_ld_CXX \
31214 allow_undefined_flag_CXX \
31215 no_undefined_flag_CXX \
31216 hardcode_libdir_flag_spec_CXX \
31217 hardcode_libdir_flag_spec_ld_CXX \
31218 hardcode_libdir_separator_CXX \
31219 fix_srcfile_path_CXX \
31220 exclude_expsyms_CXX \
31221 include_expsyms_CXX \
31222 file_list_spec_CXX \
31223 compiler_lib_search_dirs_CXX \
31224 predep_objects_CXX \
31225 postdep_objects_CXX \
31226 predeps_CXX \
31227 postdeps_CXX \
31228 compiler_lib_search_path_CXX; do
31229     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31230     *[\\\\\\\`\\"\\\$]*)
31231       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31232       ;;
31233     *)
31234       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31235       ;;
31236     esac
31237 done
31238
31239 # Double-quote double-evaled strings.
31240 for var in reload_cmds \
31241 old_postinstall_cmds \
31242 old_postuninstall_cmds \
31243 old_archive_cmds \
31244 extract_expsyms_cmds \
31245 old_archive_from_new_cmds \
31246 old_archive_from_expsyms_cmds \
31247 archive_cmds \
31248 archive_expsym_cmds \
31249 module_cmds \
31250 module_expsym_cmds \
31251 export_symbols_cmds \
31252 prelink_cmds \
31253 postinstall_cmds \
31254 postuninstall_cmds \
31255 finish_cmds \
31256 sys_lib_search_path_spec \
31257 sys_lib_dlsearch_path_spec \
31258 old_archive_cmds_CXX \
31259 old_archive_from_new_cmds_CXX \
31260 old_archive_from_expsyms_cmds_CXX \
31261 archive_cmds_CXX \
31262 archive_expsym_cmds_CXX \
31263 module_cmds_CXX \
31264 module_expsym_cmds_CXX \
31265 export_symbols_cmds_CXX \
31266 prelink_cmds_CXX; do
31267     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
31268     *[\\\\\\\`\\"\\\$]*)
31269       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31270       ;;
31271     *)
31272       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31273       ;;
31274     esac
31275 done
31276
31277 # Fix-up fallback echo if it was mangled by the above quoting rules.
31278 case \$lt_ECHO in
31279 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
31280   ;;
31281 esac
31282
31283 ac_aux_dir='$ac_aux_dir'
31284 xsi_shell='$xsi_shell'
31285 lt_shell_append='$lt_shell_append'
31286
31287 # See if we are running on zsh, and set the options which allow our
31288 # commands through without removal of \ escapes INIT.
31289 if test -n "\${ZSH_VERSION+set}" ; then
31290    setopt NO_GLOB_SUBST
31291 fi
31292
31293
31294     PACKAGE='$PACKAGE'
31295     VERSION='$VERSION'
31296     TIMESTAMP='$TIMESTAMP'
31297     RM='$RM'
31298     ofile='$ofile'
31299
31300
31301
31302
31303
31304 # variables for create stdint.h replacement
31305 PACKAGE="$PACKAGE"
31306 VERSION="$VERSION"
31307 ac_stdint_h="$ac_stdint_h"
31308 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
31309 ac_cv_stdint_message="$ac_cv_stdint_message"
31310 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
31311 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
31312 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
31313 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
31314 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
31315 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
31316 ac_cv_char_data_model="$ac_cv_char_data_model"
31317 ac_cv_long_data_model="$ac_cv_long_data_model"
31318 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
31319 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
31320 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
31321
31322
31323 _ACEOF
31324
31325
31326
31327 cat >>$CONFIG_STATUS <<\_ACEOF
31328 for ac_config_target in $ac_config_targets
31329 do
31330   case "$ac_config_target" in
31331   # Handling of arguments.
31332   "lib/mkcollections.pl" ) CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
31333   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31334   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31335   "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
31336   "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
31337   "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
31338   "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
31339   "external/relaxngDatatype/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
31340   "external/jsr166/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
31341   "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
31342   "gnu/java/security/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
31343   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
31344   "native/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
31345   "native/fdlibm/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
31346   "native/jawt/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
31347   "native/jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
31348   "native/jni/classpath/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
31349   "native/jni/java-io/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
31350   "native/jni/java-lang/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
31351   "native/jni/java-math/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
31352   "native/jni/java-net/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
31353   "native/jni/java-nio/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
31354   "native/jni/java-util/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
31355   "native/jni/gtk-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
31356   "native/jni/gconf-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
31357   "native/jni/gstreamer-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
31358   "native/jni/qt-peer/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
31359   "native/jni/xmlj/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
31360   "native/jni/midi-alsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
31361   "native/jni/midi-dssi/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
31362   "native/jni/native-lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
31363   "native/plugin/Makefile" ) CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
31364   "resource/Makefile" ) CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
31365   "resource/META-INF/services/java.util.prefs.PreferencesFactory" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
31366   "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
31367   "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ) CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
31368   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31369   "scripts/classpath.spec" ) CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
31370   "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31371   "lib/gen-classlist.sh" ) CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
31372   "lib/copy-vmresources.sh" ) CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
31373   "scripts/check_jni_methods.sh" ) CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
31374   "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
31375   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
31376   "examples/Makefile.jawt" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
31377   "examples/Makefile.java2d" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
31378   "tools/gappletviewer" ) CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
31379   "tools/gjarsigner" ) CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
31380   "tools/gkeytool" ) CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
31381   "tools/gjar" ) CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
31382   "tools/gnative2ascii" ) CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
31383   "tools/gserialver" ) CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
31384   "tools/grmiregistry" ) CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
31385   "tools/gtnameserv" ) CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
31386   "tools/gorbd" ) CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
31387   "tools/grmid" ) CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
31388   "tools/grmic" ) CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
31389   "tools/gjavah" ) CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
31390   "tools/gjdoc" ) CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
31391   "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
31392   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31393   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31394   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31395   "mkcollections.pl" ) CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
31396   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
31397   "gappletviewer" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
31398   "gjarsigner" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
31399   "gkeytool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
31400   "gjar" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
31401   "gnative2ascii" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
31402   "gserialver" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
31403   "grmiregistry" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
31404   "gtnameserv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
31405   "gorbd" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
31406   "grmid" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
31407   "grmic" ) CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
31408   "gjavah" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
31409   "gjdoc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
31410   "gen-classlist" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
31411   "copy-vmresources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
31412   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
31413   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31414 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31415    { (exit 1); exit 1; }; };;
31416   esac
31417 done
31418
31419 # If the user did not use the arguments to specify the items to instantiate,
31420 # then the envvar interface is used.  Set only those that are not.
31421 # We use the long form for the default assignment because of an extremely
31422 # bizarre bug on SunOS 4.1.3.
31423 if $ac_need_defaults; then
31424   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31425   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31426   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31427   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31428 fi
31429
31430 # Have a temporary directory for convenience.  Make it in the build tree
31431 # simply because there is no reason to put it here, and in addition,
31432 # creating and moving files from /tmp can sometimes cause problems.
31433 # Create a temporary directory, and hook for its removal unless debugging.
31434 $debug ||
31435 {
31436   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31437   trap '{ (exit 1); exit 1; }' 1 2 13 15
31438 }
31439
31440 # Create a (secure) tmp directory for tmp files.
31441
31442 {
31443   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31444   test -n "$tmp" && test -d "$tmp"
31445 }  ||
31446 {
31447   tmp=./confstat$$-$RANDOM
31448   (umask 077 && mkdir $tmp)
31449 } ||
31450 {
31451    echo "$me: cannot create a temporary directory in ." >&2
31452    { (exit 1); exit 1; }
31453 }
31454
31455 _ACEOF
31456
31457 cat >>$CONFIG_STATUS <<_ACEOF
31458
31459 #
31460 # CONFIG_FILES section.
31461 #
31462
31463 # No need to generate the scripts if there are no CONFIG_FILES.
31464 # This happens for instance when ./config.status config.h
31465 if test -n "\$CONFIG_FILES"; then
31466   # Protect against being on the right side of a sed subst in config.status.
31467   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31468    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31469 s,@SHELL@,$SHELL,;t t
31470 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31471 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31472 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31473 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31474 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31475 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31476 s,@exec_prefix@,$exec_prefix,;t t
31477 s,@prefix@,$prefix,;t t
31478 s,@program_transform_name@,$program_transform_name,;t t
31479 s,@bindir@,$bindir,;t t
31480 s,@sbindir@,$sbindir,;t t
31481 s,@libexecdir@,$libexecdir,;t t
31482 s,@datadir@,$datadir,;t t
31483 s,@sysconfdir@,$sysconfdir,;t t
31484 s,@sharedstatedir@,$sharedstatedir,;t t
31485 s,@localstatedir@,$localstatedir,;t t
31486 s,@libdir@,$libdir,;t t
31487 s,@includedir@,$includedir,;t t
31488 s,@oldincludedir@,$oldincludedir,;t t
31489 s,@infodir@,$infodir,;t t
31490 s,@mandir@,$mandir,;t t
31491 s,@build_alias@,$build_alias,;t t
31492 s,@host_alias@,$host_alias,;t t
31493 s,@target_alias@,$target_alias,;t t
31494 s,@DEFS@,$DEFS,;t t
31495 s,@ECHO_C@,$ECHO_C,;t t
31496 s,@ECHO_N@,$ECHO_N,;t t
31497 s,@ECHO_T@,$ECHO_T,;t t
31498 s,@LIBS@,$LIBS,;t t
31499 s,@build@,$build,;t t
31500 s,@build_cpu@,$build_cpu,;t t
31501 s,@build_vendor@,$build_vendor,;t t
31502 s,@build_os@,$build_os,;t t
31503 s,@host@,$host,;t t
31504 s,@host_cpu@,$host_cpu,;t t
31505 s,@host_vendor@,$host_vendor,;t t
31506 s,@host_os@,$host_os,;t t
31507 s,@target@,$target,;t t
31508 s,@target_cpu@,$target_cpu,;t t
31509 s,@target_vendor@,$target_vendor,;t t
31510 s,@target_os@,$target_os,;t t
31511 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
31512 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
31513 s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t
31514 s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t
31515 s,@multi_basedir@,$multi_basedir,;t t
31516 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
31517 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
31518 s,@LIBVERSION@,$LIBVERSION,;t t
31519 s,@CLASSPATH_MODULE@,$CLASSPATH_MODULE,;t t
31520 s,@CLASSPATH_CONVENIENCE@,$CLASSPATH_CONVENIENCE,;t t
31521 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31522 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31523 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31524 s,@CYGPATH_W@,$CYGPATH_W,;t t
31525 s,@PACKAGE@,$PACKAGE,;t t
31526 s,@VERSION@,$VERSION,;t t
31527 s,@ACLOCAL@,$ACLOCAL,;t t
31528 s,@AUTOCONF@,$AUTOCONF,;t t
31529 s,@AUTOMAKE@,$AUTOMAKE,;t t
31530 s,@AUTOHEADER@,$AUTOHEADER,;t t
31531 s,@MAKEINFO@,$MAKEINFO,;t t
31532 s,@install_sh@,$install_sh,;t t
31533 s,@STRIP@,$STRIP,;t t
31534 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31535 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31536 s,@mkdir_p@,$mkdir_p,;t t
31537 s,@AWK@,$AWK,;t t
31538 s,@SET_MAKE@,$SET_MAKE,;t t
31539 s,@am__leading_dot@,$am__leading_dot,;t t
31540 s,@AMTAR@,$AMTAR,;t t
31541 s,@am__tar@,$am__tar,;t t
31542 s,@am__untar@,$am__untar,;t t
31543 s,@CREATE_COLLECTIONS_TRUE@,$CREATE_COLLECTIONS_TRUE,;t t
31544 s,@CREATE_COLLECTIONS_FALSE@,$CREATE_COLLECTIONS_FALSE,;t t
31545 s,@CREATE_JNI_LIBRARIES_TRUE@,$CREATE_JNI_LIBRARIES_TRUE,;t t
31546 s,@CREATE_JNI_LIBRARIES_FALSE@,$CREATE_JNI_LIBRARIES_FALSE,;t t
31547 s,@CREATE_CORE_JNI_LIBRARIES_TRUE@,$CREATE_CORE_JNI_LIBRARIES_TRUE,;t t
31548 s,@CREATE_CORE_JNI_LIBRARIES_FALSE@,$CREATE_CORE_JNI_LIBRARIES_FALSE,;t t
31549 s,@CREATE_GCONF_PEER_LIBRARIES_TRUE@,$CREATE_GCONF_PEER_LIBRARIES_TRUE,;t t
31550 s,@CREATE_GCONF_PEER_LIBRARIES_FALSE@,$CREATE_GCONF_PEER_LIBRARIES_FALSE,;t t
31551 s,@CREATE_GSTREAMER_PEER_LIBRARIES_TRUE@,$CREATE_GSTREAMER_PEER_LIBRARIES_TRUE,;t t
31552 s,@CREATE_GSTREAMER_PEER_LIBRARIES_FALSE@,$CREATE_GSTREAMER_PEER_LIBRARIES_FALSE,;t t
31553 s,@default_toolkit@,$default_toolkit,;t t
31554 s,@CREATE_XMLJ_LIBRARY_TRUE@,$CREATE_XMLJ_LIBRARY_TRUE,;t t
31555 s,@CREATE_XMLJ_LIBRARY_FALSE@,$CREATE_XMLJ_LIBRARY_FALSE,;t t
31556 s,@CC@,$CC,;t t
31557 s,@CFLAGS@,$CFLAGS,;t t
31558 s,@LDFLAGS@,$LDFLAGS,;t t
31559 s,@CPPFLAGS@,$CPPFLAGS,;t t
31560 s,@ac_ct_CC@,$ac_ct_CC,;t t
31561 s,@EXEEXT@,$EXEEXT,;t t
31562 s,@OBJEXT@,$OBJEXT,;t t
31563 s,@DEPDIR@,$DEPDIR,;t t
31564 s,@am__include@,$am__include,;t t
31565 s,@am__quote@,$am__quote,;t t
31566 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31567 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31568 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31569 s,@CCDEPMODE@,$CCDEPMODE,;t t
31570 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31571 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
31572 s,@CPP@,$CPP,;t t
31573 s,@EGREP@,$EGREP,;t t
31574 s,@CREATE_ALSA_LIBRARIES_TRUE@,$CREATE_ALSA_LIBRARIES_TRUE,;t t
31575 s,@CREATE_ALSA_LIBRARIES_FALSE@,$CREATE_ALSA_LIBRARIES_FALSE,;t t
31576 s,@CREATE_DSSI_LIBRARIES_TRUE@,$CREATE_DSSI_LIBRARIES_TRUE,;t t
31577 s,@CREATE_DSSI_LIBRARIES_FALSE@,$CREATE_DSSI_LIBRARIES_FALSE,;t t
31578 s,@CREATE_GTK_PEER_LIBRARIES_TRUE@,$CREATE_GTK_PEER_LIBRARIES_TRUE,;t t
31579 s,@CREATE_GTK_PEER_LIBRARIES_FALSE@,$CREATE_GTK_PEER_LIBRARIES_FALSE,;t t
31580 s,@CREATE_QT_PEER_LIBRARIES_TRUE@,$CREATE_QT_PEER_LIBRARIES_TRUE,;t t
31581 s,@CREATE_QT_PEER_LIBRARIES_FALSE@,$CREATE_QT_PEER_LIBRARIES_FALSE,;t t
31582 s,@CREATE_PLUGIN_TRUE@,$CREATE_PLUGIN_TRUE,;t t
31583 s,@CREATE_PLUGIN_FALSE@,$CREATE_PLUGIN_FALSE,;t t
31584 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
31585 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
31586 s,@toolexeclibdir@,$toolexeclibdir,;t t
31587 s,@nativeexeclibdir@,$nativeexeclibdir,;t t
31588 s,@glibjdir@,$glibjdir,;t t
31589 s,@CREATE_JNI_HEADERS_TRUE@,$CREATE_JNI_HEADERS_TRUE,;t t
31590 s,@CREATE_JNI_HEADERS_FALSE@,$CREATE_JNI_HEADERS_FALSE,;t t
31591 s,@CREATE_GJDOC_PARSER_TRUE@,$CREATE_GJDOC_PARSER_TRUE,;t t
31592 s,@CREATE_GJDOC_PARSER_FALSE@,$CREATE_GJDOC_PARSER_FALSE,;t t
31593 s,@CREATE_WRAPPERS_TRUE@,$CREATE_WRAPPERS_TRUE,;t t
31594 s,@CREATE_WRAPPERS_FALSE@,$CREATE_WRAPPERS_FALSE,;t t
31595 s,@LN_S@,$LN_S,;t t
31596 s,@LIBTOOL@,$LIBTOOL,;t t
31597 s,@SED@,$SED,;t t
31598 s,@FGREP@,$FGREP,;t t
31599 s,@GREP@,$GREP,;t t
31600 s,@LD@,$LD,;t t
31601 s,@DUMPBIN@,$DUMPBIN,;t t
31602 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
31603 s,@NM@,$NM,;t t
31604 s,@OBJDUMP@,$OBJDUMP,;t t
31605 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
31606 s,@AR@,$AR,;t t
31607 s,@ac_ct_AR@,$ac_ct_AR,;t t
31608 s,@RANLIB@,$RANLIB,;t t
31609 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31610 s,@lt_ECHO@,$lt_ECHO,;t t
31611 s,@DSYMUTIL@,$DSYMUTIL,;t t
31612 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
31613 s,@NMEDIT@,$NMEDIT,;t t
31614 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
31615 s,@LIPO@,$LIPO,;t t
31616 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
31617 s,@OTOOL@,$OTOOL,;t t
31618 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
31619 s,@OTOOL64@,$OTOOL64,;t t
31620 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
31621 s,@CXX@,$CXX,;t t
31622 s,@CXXFLAGS@,$CXXFLAGS,;t t
31623 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31624 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
31625 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
31626 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
31627 s,@CXXCPP@,$CXXCPP,;t t
31628 s,@PERL@,$PERL,;t t
31629 s,@COLLECTIONS_PREFIX@,$COLLECTIONS_PREFIX,;t t
31630 s,@LIBMAGIC@,$LIBMAGIC,;t t
31631 s,@LIBICONV@,$LIBICONV,;t t
31632 s,@LTLIBICONV@,$LTLIBICONV,;t t
31633 s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t
31634 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
31635 s,@STRICT_WARNING_CFLAGS@,$STRICT_WARNING_CFLAGS,;t t
31636 s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
31637 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
31638 s,@XML_CFLAGS@,$XML_CFLAGS,;t t
31639 s,@XML_LIBS@,$XML_LIBS,;t t
31640 s,@XSLT_CFLAGS@,$XSLT_CFLAGS,;t t
31641 s,@XSLT_LIBS@,$XSLT_LIBS,;t t
31642 s,@X_CFLAGS@,$X_CFLAGS,;t t
31643 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31644 s,@X_LIBS@,$X_LIBS,;t t
31645 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31646 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
31647 s,@GTK_LIBS@,$GTK_LIBS,;t t
31648 s,@FREETYPE2_CFLAGS@,$FREETYPE2_CFLAGS,;t t
31649 s,@FREETYPE2_LIBS@,$FREETYPE2_LIBS,;t t
31650 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
31651 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
31652 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
31653 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
31654 s,@XTEST_LIBS@,$XTEST_LIBS,;t t
31655 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
31656 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
31657 s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
31658 s,@GDK_LIBS@,$GDK_LIBS,;t t
31659 s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
31660 s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
31661 s,@GSTREAMER_BASE_CFLAGS@,$GSTREAMER_BASE_CFLAGS,;t t
31662 s,@GSTREAMER_BASE_LIBS@,$GSTREAMER_BASE_LIBS,;t t
31663 s,@GSTREAMER_PLUGINS_BASE_CFLAGS@,$GSTREAMER_PLUGINS_BASE_CFLAGS,;t t
31664 s,@GSTREAMER_PLUGINS_BASE_LIBS@,$GSTREAMER_PLUGINS_BASE_LIBS,;t t
31665 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
31666 s,@GSTREAMER_FILE_READER@,$GSTREAMER_FILE_READER,;t t
31667 s,@GSTREAMER_MIXER_PROVIDER@,$GSTREAMER_MIXER_PROVIDER,;t t
31668 s,@QT_CFLAGS@,$QT_CFLAGS,;t t
31669 s,@QT_LIBS@,$QT_LIBS,;t t
31670 s,@MOC@,$MOC,;t t
31671 s,@MOZILLA_CFLAGS@,$MOZILLA_CFLAGS,;t t
31672 s,@MOZILLA_LIBS@,$MOZILLA_LIBS,;t t
31673 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
31674 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
31675 s,@PLUGIN_DIR@,$PLUGIN_DIR,;t t
31676 s,@GMP_CFLAGS@,$GMP_CFLAGS,;t t
31677 s,@GMP_LIBS@,$GMP_LIBS,;t t
31678 s,@USER_JAVAH@,$USER_JAVAH,;t t
31679 s,@CLASSPATH_INCLUDES@,$CLASSPATH_INCLUDES,;t t
31680 s,@vm_classes@,$vm_classes,;t t
31681 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
31682 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
31683 s,@MAINT@,$MAINT,;t t
31684 s,@LIBDEBUG@,$LIBDEBUG,;t t
31685 s,@INIT_LOAD_LIBRARY@,$INIT_LOAD_LIBRARY,;t t
31686 s,@ECJ_JAR@,$ECJ_JAR,;t t
31687 s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION,;t t
31688 s,@REMOVE@,$REMOVE,;t t
31689 s,@MKDIR@,$MKDIR,;t t
31690 s,@CP@,$CP,;t t
31691 s,@DATE@,$DATE,;t t
31692 s,@FIND@,$FIND,;t t
31693 s,@ZIP@,$ZIP,;t t
31694 s,@JAR@,$JAR,;t t
31695 s,@WITH_JAR_TRUE@,$WITH_JAR_TRUE,;t t
31696 s,@WITH_JAR_FALSE@,$WITH_JAR_FALSE,;t t
31697 s,@INSTALL_GLIBJ_ZIP_TRUE@,$INSTALL_GLIBJ_ZIP_TRUE,;t t
31698 s,@INSTALL_GLIBJ_ZIP_FALSE@,$INSTALL_GLIBJ_ZIP_FALSE,;t t
31699 s,@INSTALL_CLASS_FILES_TRUE@,$INSTALL_CLASS_FILES_TRUE,;t t
31700 s,@INSTALL_CLASS_FILES_FALSE@,$INSTALL_CLASS_FILES_FALSE,;t t
31701 s,@BUILD_CLASS_FILES_TRUE@,$BUILD_CLASS_FILES_TRUE,;t t
31702 s,@BUILD_CLASS_FILES_FALSE@,$BUILD_CLASS_FILES_FALSE,;t t
31703 s,@EXAMPLESDIR@,$EXAMPLESDIR,;t t
31704 s,@TOOLSDIR@,$TOOLSDIR,;t t
31705 s,@GJDOC@,$GJDOC,;t t
31706 s,@CREATE_API_DOCS_TRUE@,$CREATE_API_DOCS_TRUE,;t t
31707 s,@CREATE_API_DOCS_FALSE@,$CREATE_API_DOCS_FALSE,;t t
31708 s,@JAY@,$JAY,;t t
31709 s,@JAY_SKELETON@,$JAY_SKELETON,;t t
31710 s,@REGEN_PARSERS_TRUE@,$REGEN_PARSERS_TRUE,;t t
31711 s,@REGEN_PARSERS_FALSE@,$REGEN_PARSERS_FALSE,;t t
31712 s,@USE_PREBUILT_GLIBJ_ZIP_TRUE@,$USE_PREBUILT_GLIBJ_ZIP_TRUE,;t t
31713 s,@USE_PREBUILT_GLIBJ_ZIP_FALSE@,$USE_PREBUILT_GLIBJ_ZIP_FALSE,;t t
31714 s,@PATH_TO_GLIBJ_ZIP@,$PATH_TO_GLIBJ_ZIP,;t t
31715 s,@JAVA@,$JAVA,;t t
31716 s,@uudecode@,$uudecode,;t t
31717 s,@JAVAC@,$JAVAC,;t t
31718 s,@JAVAC_IS_GCJ@,$JAVAC_IS_GCJ,;t t
31719 s,@GCJ_JAVAC_TRUE@,$GCJ_JAVAC_TRUE,;t t
31720 s,@GCJ_JAVAC_FALSE@,$GCJ_JAVAC_FALSE,;t t
31721 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
31722 s,@ANTLR@,$ANTLR,;t t
31723 s,@ac_ct_ANTLR@,$ac_ct_ANTLR,;t t
31724 s,@JAVAC_MEM_OPT@,$JAVAC_MEM_OPT,;t t
31725 s,@USE_ESCHER_TRUE@,$USE_ESCHER_TRUE,;t t
31726 s,@USE_ESCHER_FALSE@,$USE_ESCHER_FALSE,;t t
31727 s,@PATH_TO_ESCHER@,$PATH_TO_ESCHER,;t t
31728 s,@ENABLE_LOCAL_SOCKETS_TRUE@,$ENABLE_LOCAL_SOCKETS_TRUE,;t t
31729 s,@ENABLE_LOCAL_SOCKETS_FALSE@,$ENABLE_LOCAL_SOCKETS_FALSE,;t t
31730 s,@DEFAULT_PREFS_PEER@,$DEFAULT_PREFS_PEER,;t t
31731 s,@WANT_NATIVE_BIG_INTEGER@,$WANT_NATIVE_BIG_INTEGER,;t t
31732 s,@CREATE_GMPBI_LIBRARY_TRUE@,$CREATE_GMPBI_LIBRARY_TRUE,;t t
31733 s,@CREATE_GMPBI_LIBRARY_FALSE@,$CREATE_GMPBI_LIBRARY_FALSE,;t t
31734 s,@LIBOBJS@,$LIBOBJS,;t t
31735 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31736 CEOF
31737
31738 _ACEOF
31739
31740   cat >>$CONFIG_STATUS <<\_ACEOF
31741   # Split the substitutions into bite-sized pieces for seds with
31742   # small command number limits, like on Digital OSF/1 and HP-UX.
31743   ac_max_sed_lines=48
31744   ac_sed_frag=1 # Number of current file.
31745   ac_beg=1 # First line for current file.
31746   ac_end=$ac_max_sed_lines # Line after last line for current file.
31747   ac_more_lines=:
31748   ac_sed_cmds=
31749   while $ac_more_lines; do
31750     if test $ac_beg -gt 1; then
31751       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31752     else
31753       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31754     fi
31755     if test ! -s $tmp/subs.frag; then
31756       ac_more_lines=false
31757     else
31758       # The purpose of the label and of the branching condition is to
31759       # speed up the sed processing (if there are no `@' at all, there
31760       # is no need to browse any of the substitutions).
31761       # These are the two extra sed commands mentioned above.
31762       (echo ':t
31763   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31764       if test -z "$ac_sed_cmds"; then
31765         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31766       else
31767         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31768       fi
31769       ac_sed_frag=`expr $ac_sed_frag + 1`
31770       ac_beg=$ac_end
31771       ac_end=`expr $ac_end + $ac_max_sed_lines`
31772     fi
31773   done
31774   if test -z "$ac_sed_cmds"; then
31775     ac_sed_cmds=cat
31776   fi
31777 fi # test -n "$CONFIG_FILES"
31778
31779 _ACEOF
31780 cat >>$CONFIG_STATUS <<\_ACEOF
31781 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31782   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31783   case $ac_file in
31784   - | *:- | *:-:* ) # input from stdin
31785         cat >$tmp/stdin
31786         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31787         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31788   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31789         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31790   * )   ac_file_in=$ac_file.in ;;
31791   esac
31792
31793   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31794   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31796          X"$ac_file" : 'X\(//\)[^/]' \| \
31797          X"$ac_file" : 'X\(//\)$' \| \
31798          X"$ac_file" : 'X\(/\)' \| \
31799          .     : '\(.\)' 2>/dev/null ||
31800 echo X"$ac_file" |
31801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31803           /^X\(\/\/\)$/{ s//\1/; q; }
31804           /^X\(\/\).*/{ s//\1/; q; }
31805           s/.*/./; q'`
31806   { if $as_mkdir_p; then
31807     mkdir -p "$ac_dir"
31808   else
31809     as_dir="$ac_dir"
31810     as_dirs=
31811     while test ! -d "$as_dir"; do
31812       as_dirs="$as_dir $as_dirs"
31813       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31814 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31815          X"$as_dir" : 'X\(//\)[^/]' \| \
31816          X"$as_dir" : 'X\(//\)$' \| \
31817          X"$as_dir" : 'X\(/\)' \| \
31818          .     : '\(.\)' 2>/dev/null ||
31819 echo X"$as_dir" |
31820     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31821           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31822           /^X\(\/\/\)$/{ s//\1/; q; }
31823           /^X\(\/\).*/{ s//\1/; q; }
31824           s/.*/./; q'`
31825     done
31826     test ! -n "$as_dirs" || mkdir $as_dirs
31827   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31828 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31829    { (exit 1); exit 1; }; }; }
31830
31831   ac_builddir=.
31832
31833 if test "$ac_dir" != .; then
31834   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31835   # A "../" for each directory in $ac_dir_suffix.
31836   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31837 else
31838   ac_dir_suffix= ac_top_builddir=
31839 fi
31840
31841 case $srcdir in
31842   .)  # No --srcdir option.  We are building in place.
31843     ac_srcdir=.
31844     if test -z "$ac_top_builddir"; then
31845        ac_top_srcdir=.
31846     else
31847        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31848     fi ;;
31849   [\\/]* | ?:[\\/]* )  # Absolute path.
31850     ac_srcdir=$srcdir$ac_dir_suffix;
31851     ac_top_srcdir=$srcdir ;;
31852   *) # Relative path.
31853     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31854     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31855 esac
31856
31857 # Do not use `cd foo && pwd` to compute absolute paths, because
31858 # the directories may not exist.
31859 case `pwd` in
31860 .) ac_abs_builddir="$ac_dir";;
31861 *)
31862   case "$ac_dir" in
31863   .) ac_abs_builddir=`pwd`;;
31864   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31865   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31866   esac;;
31867 esac
31868 case $ac_abs_builddir in
31869 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31870 *)
31871   case ${ac_top_builddir}. in
31872   .) ac_abs_top_builddir=$ac_abs_builddir;;
31873   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31874   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31875   esac;;
31876 esac
31877 case $ac_abs_builddir in
31878 .) ac_abs_srcdir=$ac_srcdir;;
31879 *)
31880   case $ac_srcdir in
31881   .) ac_abs_srcdir=$ac_abs_builddir;;
31882   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31883   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31884   esac;;
31885 esac
31886 case $ac_abs_builddir in
31887 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31888 *)
31889   case $ac_top_srcdir in
31890   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31891   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31892   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31893   esac;;
31894 esac
31895
31896
31897   case $INSTALL in
31898   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31899   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31900   esac
31901
31902   if test x"$ac_file" != x-; then
31903     { echo "$as_me:$LINENO: creating $ac_file" >&5
31904 echo "$as_me: creating $ac_file" >&6;}
31905     rm -f "$ac_file"
31906   fi
31907   # Let's still pretend it is `configure' which instantiates (i.e., don't
31908   # use $as_me), people would be surprised to read:
31909   #    /* config.h.  Generated by config.status.  */
31910   if test x"$ac_file" = x-; then
31911     configure_input=
31912   else
31913     configure_input="$ac_file.  "
31914   fi
31915   configure_input=$configure_input"Generated from `echo $ac_file_in |
31916                                      sed 's,.*/,,'` by configure."
31917
31918   # First look for the input files in the build tree, otherwise in the
31919   # src tree.
31920   ac_file_inputs=`IFS=:
31921     for f in $ac_file_in; do
31922       case $f in
31923       -) echo $tmp/stdin ;;
31924       [\\/$]*)
31925          # Absolute (can't be DOS-style, as IFS=:)
31926          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31927 echo "$as_me: error: cannot find input file: $f" >&2;}
31928    { (exit 1); exit 1; }; }
31929          echo "$f";;
31930       *) # Relative
31931          if test -f "$f"; then
31932            # Build tree
31933            echo "$f"
31934          elif test -f "$srcdir/$f"; then
31935            # Source tree
31936            echo "$srcdir/$f"
31937          else
31938            # /dev/null tree
31939            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31940 echo "$as_me: error: cannot find input file: $f" >&2;}
31941    { (exit 1); exit 1; }; }
31942          fi;;
31943       esac
31944     done` || { (exit 1); exit 1; }
31945 _ACEOF
31946 cat >>$CONFIG_STATUS <<_ACEOF
31947   sed "$ac_vpsub
31948 $extrasub
31949 _ACEOF
31950 cat >>$CONFIG_STATUS <<\_ACEOF
31951 :t
31952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31953 s,@configure_input@,$configure_input,;t t
31954 s,@srcdir@,$ac_srcdir,;t t
31955 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31956 s,@top_srcdir@,$ac_top_srcdir,;t t
31957 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31958 s,@builddir@,$ac_builddir,;t t
31959 s,@abs_builddir@,$ac_abs_builddir,;t t
31960 s,@top_builddir@,$ac_top_builddir,;t t
31961 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31962 s,@INSTALL@,$ac_INSTALL,;t t
31963 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31964   rm -f $tmp/stdin
31965   if test x"$ac_file" != x-; then
31966     mv $tmp/out $ac_file
31967   else
31968     cat $tmp/out
31969     rm -f $tmp/out
31970   fi
31971
31972 done
31973 _ACEOF
31974 cat >>$CONFIG_STATUS <<\_ACEOF
31975
31976 #
31977 # CONFIG_HEADER section.
31978 #
31979
31980 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31981 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31982 #
31983 # ac_d sets the value in "#define NAME VALUE" lines.
31984 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31985 ac_dB='[         ].*$,\1#\2'
31986 ac_dC=' '
31987 ac_dD=',;t'
31988 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31989 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31990 ac_uB='$,\1#\2define\3'
31991 ac_uC=' '
31992 ac_uD=',;t'
31993
31994 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31995   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31996   case $ac_file in
31997   - | *:- | *:-:* ) # input from stdin
31998         cat >$tmp/stdin
31999         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32000         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32001   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32002         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32003   * )   ac_file_in=$ac_file.in ;;
32004   esac
32005
32006   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32007 echo "$as_me: creating $ac_file" >&6;}
32008
32009   # First look for the input files in the build tree, otherwise in the
32010   # src tree.
32011   ac_file_inputs=`IFS=:
32012     for f in $ac_file_in; do
32013       case $f in
32014       -) echo $tmp/stdin ;;
32015       [\\/$]*)
32016          # Absolute (can't be DOS-style, as IFS=:)
32017          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32018 echo "$as_me: error: cannot find input file: $f" >&2;}
32019    { (exit 1); exit 1; }; }
32020          # Do quote $f, to prevent DOS paths from being IFS'd.
32021          echo "$f";;
32022       *) # Relative
32023          if test -f "$f"; then
32024            # Build tree
32025            echo "$f"
32026          elif test -f "$srcdir/$f"; then
32027            # Source tree
32028            echo "$srcdir/$f"
32029          else
32030            # /dev/null tree
32031            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32032 echo "$as_me: error: cannot find input file: $f" >&2;}
32033    { (exit 1); exit 1; }; }
32034          fi;;
32035       esac
32036     done` || { (exit 1); exit 1; }
32037   # Remove the trailing spaces.
32038   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
32039
32040 _ACEOF
32041
32042 # Transform confdefs.h into two sed scripts, `conftest.defines' and
32043 # `conftest.undefs', that substitutes the proper values into
32044 # config.h.in to produce config.h.  The first handles `#define'
32045 # templates, and the second `#undef' templates.
32046 # And first: Protect against being on the right side of a sed subst in
32047 # config.status.  Protect against being in an unquoted here document
32048 # in config.status.
32049 rm -f conftest.defines conftest.undefs
32050 # Using a here document instead of a string reduces the quoting nightmare.
32051 # Putting comments in sed scripts is not portable.
32052 #
32053 # `end' is used to avoid that the second main sed command (meant for
32054 # 0-ary CPP macros) applies to n-ary macro definitions.
32055 # See the Autoconf documentation for `clear'.
32056 cat >confdef2sed.sed <<\_ACEOF
32057 s/[\\&,]/\\&/g
32058 s,[\\$`],\\&,g
32059 t clear
32060 : clear
32061 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32062 t end
32063 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32064 : end
32065 _ACEOF
32066 # If some macros were called several times there might be several times
32067 # the same #defines, which is useless.  Nevertheless, we may not want to
32068 # sort them, since we want the *last* AC-DEFINE to be honored.
32069 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32070 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32071 rm -f confdef2sed.sed
32072
32073 # This sed command replaces #undef with comments.  This is necessary, for
32074 # example, in the case of _POSIX_SOURCE, which is predefined and required
32075 # on some systems where configure will not decide to define it.
32076 cat >>conftest.undefs <<\_ACEOF
32077 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32078 _ACEOF
32079
32080 # Break up conftest.defines because some shells have a limit on the size
32081 # of here documents, and old seds have small limits too (100 cmds).
32082 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32083 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32084 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32085 echo '  :' >>$CONFIG_STATUS
32086 rm -f conftest.tail
32087 while grep . conftest.defines >/dev/null
32088 do
32089   # Write a limited-size here document to $tmp/defines.sed.
32090   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32091   # Speed up: don't consider the non `#define' lines.
32092   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
32093   # Work around the forget-to-reset-the-flag bug.
32094   echo 't clr' >>$CONFIG_STATUS
32095   echo ': clr' >>$CONFIG_STATUS
32096   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32097   echo 'CEOF
32098   sed -f $tmp/defines.sed $tmp/in >$tmp/out
32099   rm -f $tmp/in
32100   mv $tmp/out $tmp/in
32101 ' >>$CONFIG_STATUS
32102   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32103   rm -f conftest.defines
32104   mv conftest.tail conftest.defines
32105 done
32106 rm -f conftest.defines
32107 echo '  fi # grep' >>$CONFIG_STATUS
32108 echo >>$CONFIG_STATUS
32109
32110 # Break up conftest.undefs because some shells have a limit on the size
32111 # of here documents, and old seds have small limits too (100 cmds).
32112 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32113 rm -f conftest.tail
32114 while grep . conftest.undefs >/dev/null
32115 do
32116   # Write a limited-size here document to $tmp/undefs.sed.
32117   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32118   # Speed up: don't consider the non `#undef'
32119   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
32120   # Work around the forget-to-reset-the-flag bug.
32121   echo 't clr' >>$CONFIG_STATUS
32122   echo ': clr' >>$CONFIG_STATUS
32123   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32124   echo 'CEOF
32125   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32126   rm -f $tmp/in
32127   mv $tmp/out $tmp/in
32128 ' >>$CONFIG_STATUS
32129   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32130   rm -f conftest.undefs
32131   mv conftest.tail conftest.undefs
32132 done
32133 rm -f conftest.undefs
32134
32135 cat >>$CONFIG_STATUS <<\_ACEOF
32136   # Let's still pretend it is `configure' which instantiates (i.e., don't
32137   # use $as_me), people would be surprised to read:
32138   #    /* config.h.  Generated by config.status.  */
32139   if test x"$ac_file" = x-; then
32140     echo "/* Generated by configure.  */" >$tmp/config.h
32141   else
32142     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32143   fi
32144   cat $tmp/in >>$tmp/config.h
32145   rm -f $tmp/in
32146   if test x"$ac_file" != x-; then
32147     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32148       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32149 echo "$as_me: $ac_file is unchanged" >&6;}
32150     else
32151       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32153          X"$ac_file" : 'X\(//\)[^/]' \| \
32154          X"$ac_file" : 'X\(//\)$' \| \
32155          X"$ac_file" : 'X\(/\)' \| \
32156          .     : '\(.\)' 2>/dev/null ||
32157 echo X"$ac_file" |
32158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32159           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32160           /^X\(\/\/\)$/{ s//\1/; q; }
32161           /^X\(\/\).*/{ s//\1/; q; }
32162           s/.*/./; q'`
32163       { if $as_mkdir_p; then
32164     mkdir -p "$ac_dir"
32165   else
32166     as_dir="$ac_dir"
32167     as_dirs=
32168     while test ! -d "$as_dir"; do
32169       as_dirs="$as_dir $as_dirs"
32170       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32172          X"$as_dir" : 'X\(//\)[^/]' \| \
32173          X"$as_dir" : 'X\(//\)$' \| \
32174          X"$as_dir" : 'X\(/\)' \| \
32175          .     : '\(.\)' 2>/dev/null ||
32176 echo X"$as_dir" |
32177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32179           /^X\(\/\/\)$/{ s//\1/; q; }
32180           /^X\(\/\).*/{ s//\1/; q; }
32181           s/.*/./; q'`
32182     done
32183     test ! -n "$as_dirs" || mkdir $as_dirs
32184   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32186    { (exit 1); exit 1; }; }; }
32187
32188       rm -f $ac_file
32189       mv $tmp/config.h $ac_file
32190     fi
32191   else
32192     cat $tmp/config.h
32193     rm -f $tmp/config.h
32194   fi
32195 # Compute $ac_file's index in $config_headers.
32196 _am_stamp_count=1
32197 for _am_header in $config_headers :; do
32198   case $_am_header in
32199     $ac_file | $ac_file:* )
32200       break ;;
32201     * )
32202       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32203   esac
32204 done
32205 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32206 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32207          X$ac_file : 'X\(//\)[^/]' \| \
32208          X$ac_file : 'X\(//\)$' \| \
32209          X$ac_file : 'X\(/\)' \| \
32210          .     : '\(.\)' 2>/dev/null ||
32211 echo X$ac_file |
32212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32213           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32214           /^X\(\/\/\)$/{ s//\1/; q; }
32215           /^X\(\/\).*/{ s//\1/; q; }
32216           s/.*/./; q'`/stamp-h$_am_stamp_count
32217 done
32218 _ACEOF
32219 cat >>$CONFIG_STATUS <<\_ACEOF
32220
32221 #
32222 # CONFIG_LINKS section.
32223 #
32224
32225 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
32226   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32227   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32228
32229   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
32230 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
32231
32232   if test ! -r $srcdir/$ac_source; then
32233     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
32234 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
32235    { (exit 1); exit 1; }; }
32236   fi
32237   rm -f $ac_dest
32238
32239   # Make relative symlinks.
32240   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
32241 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32242          X"$ac_dest" : 'X\(//\)[^/]' \| \
32243          X"$ac_dest" : 'X\(//\)$' \| \
32244          X"$ac_dest" : 'X\(/\)' \| \
32245          .     : '\(.\)' 2>/dev/null ||
32246 echo X"$ac_dest" |
32247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32248           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32249           /^X\(\/\/\)$/{ s//\1/; q; }
32250           /^X\(\/\).*/{ s//\1/; q; }
32251           s/.*/./; q'`
32252   { if $as_mkdir_p; then
32253     mkdir -p "$ac_dest_dir"
32254   else
32255     as_dir="$ac_dest_dir"
32256     as_dirs=
32257     while test ! -d "$as_dir"; do
32258       as_dirs="$as_dir $as_dirs"
32259       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32261          X"$as_dir" : 'X\(//\)[^/]' \| \
32262          X"$as_dir" : 'X\(//\)$' \| \
32263          X"$as_dir" : 'X\(/\)' \| \
32264          .     : '\(.\)' 2>/dev/null ||
32265 echo X"$as_dir" |
32266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32268           /^X\(\/\/\)$/{ s//\1/; q; }
32269           /^X\(\/\).*/{ s//\1/; q; }
32270           s/.*/./; q'`
32271     done
32272     test ! -n "$as_dirs" || mkdir $as_dirs
32273   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
32274 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
32275    { (exit 1); exit 1; }; }; }
32276
32277   ac_builddir=.
32278
32279 if test "$ac_dest_dir" != .; then
32280   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
32281   # A "../" for each directory in $ac_dir_suffix.
32282   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32283 else
32284   ac_dir_suffix= ac_top_builddir=
32285 fi
32286
32287 case $srcdir in
32288   .)  # No --srcdir option.  We are building in place.
32289     ac_srcdir=.
32290     if test -z "$ac_top_builddir"; then
32291        ac_top_srcdir=.
32292     else
32293        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32294     fi ;;
32295   [\\/]* | ?:[\\/]* )  # Absolute path.
32296     ac_srcdir=$srcdir$ac_dir_suffix;
32297     ac_top_srcdir=$srcdir ;;
32298   *) # Relative path.
32299     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32300     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32301 esac
32302
32303 # Do not use `cd foo && pwd` to compute absolute paths, because
32304 # the directories may not exist.
32305 case `pwd` in
32306 .) ac_abs_builddir="$ac_dest_dir";;
32307 *)
32308   case "$ac_dest_dir" in
32309   .) ac_abs_builddir=`pwd`;;
32310   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
32311   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
32312   esac;;
32313 esac
32314 case $ac_abs_builddir in
32315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32316 *)
32317   case ${ac_top_builddir}. in
32318   .) ac_abs_top_builddir=$ac_abs_builddir;;
32319   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32320   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32321   esac;;
32322 esac
32323 case $ac_abs_builddir in
32324 .) ac_abs_srcdir=$ac_srcdir;;
32325 *)
32326   case $ac_srcdir in
32327   .) ac_abs_srcdir=$ac_abs_builddir;;
32328   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32329   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32330   esac;;
32331 esac
32332 case $ac_abs_builddir in
32333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32334 *)
32335   case $ac_top_srcdir in
32336   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32337   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32338   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32339   esac;;
32340 esac
32341
32342
32343   case $srcdir in
32344   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
32345       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
32346   esac
32347
32348   # Try a symlink, then a hard link, then a copy.
32349   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
32350     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
32351     cp -p $srcdir/$ac_source $ac_dest ||
32352     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
32353 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
32354    { (exit 1); exit 1; }; }
32355 done
32356 _ACEOF
32357 cat >>$CONFIG_STATUS <<\_ACEOF
32358
32359 #
32360 # CONFIG_COMMANDS section.
32361 #
32362 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32363   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32364   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32365   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32366 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32367          X"$ac_dest" : 'X\(//\)[^/]' \| \
32368          X"$ac_dest" : 'X\(//\)$' \| \
32369          X"$ac_dest" : 'X\(/\)' \| \
32370          .     : '\(.\)' 2>/dev/null ||
32371 echo X"$ac_dest" |
32372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32373           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32374           /^X\(\/\/\)$/{ s//\1/; q; }
32375           /^X\(\/\).*/{ s//\1/; q; }
32376           s/.*/./; q'`
32377   { if $as_mkdir_p; then
32378     mkdir -p "$ac_dir"
32379   else
32380     as_dir="$ac_dir"
32381     as_dirs=
32382     while test ! -d "$as_dir"; do
32383       as_dirs="$as_dir $as_dirs"
32384       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32386          X"$as_dir" : 'X\(//\)[^/]' \| \
32387          X"$as_dir" : 'X\(//\)$' \| \
32388          X"$as_dir" : 'X\(/\)' \| \
32389          .     : '\(.\)' 2>/dev/null ||
32390 echo X"$as_dir" |
32391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32392           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32393           /^X\(\/\/\)$/{ s//\1/; q; }
32394           /^X\(\/\).*/{ s//\1/; q; }
32395           s/.*/./; q'`
32396     done
32397     test ! -n "$as_dirs" || mkdir $as_dirs
32398   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32399 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32400    { (exit 1); exit 1; }; }; }
32401
32402   ac_builddir=.
32403
32404 if test "$ac_dir" != .; then
32405   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32406   # A "../" for each directory in $ac_dir_suffix.
32407   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32408 else
32409   ac_dir_suffix= ac_top_builddir=
32410 fi
32411
32412 case $srcdir in
32413   .)  # No --srcdir option.  We are building in place.
32414     ac_srcdir=.
32415     if test -z "$ac_top_builddir"; then
32416        ac_top_srcdir=.
32417     else
32418        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32419     fi ;;
32420   [\\/]* | ?:[\\/]* )  # Absolute path.
32421     ac_srcdir=$srcdir$ac_dir_suffix;
32422     ac_top_srcdir=$srcdir ;;
32423   *) # Relative path.
32424     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32425     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32426 esac
32427
32428 # Do not use `cd foo && pwd` to compute absolute paths, because
32429 # the directories may not exist.
32430 case `pwd` in
32431 .) ac_abs_builddir="$ac_dir";;
32432 *)
32433   case "$ac_dir" in
32434   .) ac_abs_builddir=`pwd`;;
32435   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32436   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32437   esac;;
32438 esac
32439 case $ac_abs_builddir in
32440 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32441 *)
32442   case ${ac_top_builddir}. in
32443   .) ac_abs_top_builddir=$ac_abs_builddir;;
32444   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32445   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32446   esac;;
32447 esac
32448 case $ac_abs_builddir in
32449 .) ac_abs_srcdir=$ac_srcdir;;
32450 *)
32451   case $ac_srcdir in
32452   .) ac_abs_srcdir=$ac_abs_builddir;;
32453   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32454   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32455   esac;;
32456 esac
32457 case $ac_abs_builddir in
32458 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32459 *)
32460   case $ac_top_srcdir in
32461   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32462   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32463   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32464   esac;;
32465 esac
32466
32467
32468   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32469 echo "$as_me: executing $ac_dest commands" >&6;}
32470   case $ac_dest in
32471     default-1 )
32472 # Only add multilib support code if we just rebuilt the top-level
32473 # Makefile.
32474 case " $CONFIG_FILES " in
32475  *" Makefile "*)
32476    ac_file=Makefile . ${multi_basedir}/config-ml.in
32477    ;;
32478 esac ;;
32479     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32480   # Strip MF so we end up with the name of the file.
32481   mf=`echo "$mf" | sed -e 's/:.*$//'`
32482   # Check whether this is an Automake generated Makefile or not.
32483   # We used to match only the files named `Makefile.in', but
32484   # some people rename them; so instead we look at the file content.
32485   # Grep'ing the first line is not enough: some people post-process
32486   # each Makefile.in and add a new line on top of each file to say so.
32487   # So let's grep whole file.
32488   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32489     dirpart=`(dirname "$mf") 2>/dev/null ||
32490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32491          X"$mf" : 'X\(//\)[^/]' \| \
32492          X"$mf" : 'X\(//\)$' \| \
32493          X"$mf" : 'X\(/\)' \| \
32494          .     : '\(.\)' 2>/dev/null ||
32495 echo X"$mf" |
32496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32497           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32498           /^X\(\/\/\)$/{ s//\1/; q; }
32499           /^X\(\/\).*/{ s//\1/; q; }
32500           s/.*/./; q'`
32501   else
32502     continue
32503   fi
32504   # Extract the definition of DEPDIR, am__include, and am__quote
32505   # from the Makefile without running `make'.
32506   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32507   test -z "$DEPDIR" && continue
32508   am__include=`sed -n 's/^am__include = //p' < "$mf"`
32509   test -z "am__include" && continue
32510   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32511   # When using ansi2knr, U may be empty or an underscore; expand it
32512   U=`sed -n 's/^U = //p' < "$mf"`
32513   # Find all dependency output files, they are included files with
32514   # $(DEPDIR) in their names.  We invoke sed twice because it is the
32515   # simplest approach to changing $(DEPDIR) to its actual value in the
32516   # expansion.
32517   for file in `sed -n "
32518     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32519        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32520     # Make sure the directory exists.
32521     test -f "$dirpart/$file" && continue
32522     fdir=`(dirname "$file") 2>/dev/null ||
32523 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32524          X"$file" : 'X\(//\)[^/]' \| \
32525          X"$file" : 'X\(//\)$' \| \
32526          X"$file" : 'X\(/\)' \| \
32527          .     : '\(.\)' 2>/dev/null ||
32528 echo X"$file" |
32529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32530           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32531           /^X\(\/\/\)$/{ s//\1/; q; }
32532           /^X\(\/\).*/{ s//\1/; q; }
32533           s/.*/./; q'`
32534     { if $as_mkdir_p; then
32535     mkdir -p $dirpart/$fdir
32536   else
32537     as_dir=$dirpart/$fdir
32538     as_dirs=
32539     while test ! -d "$as_dir"; do
32540       as_dirs="$as_dir $as_dirs"
32541       as_dir=`(dirname "$as_dir") 2>/dev/null ||
32542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32543          X"$as_dir" : 'X\(//\)[^/]' \| \
32544          X"$as_dir" : 'X\(//\)$' \| \
32545          X"$as_dir" : 'X\(/\)' \| \
32546          .     : '\(.\)' 2>/dev/null ||
32547 echo X"$as_dir" |
32548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32550           /^X\(\/\/\)$/{ s//\1/; q; }
32551           /^X\(\/\).*/{ s//\1/; q; }
32552           s/.*/./; q'`
32553     done
32554     test ! -n "$as_dirs" || mkdir $as_dirs
32555   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32556 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32557    { (exit 1); exit 1; }; }; }
32558
32559     # echo "creating $dirpart/$file"
32560     echo '# dummy' > "$dirpart/$file"
32561   done
32562 done
32563  ;;
32564     libtool )
32565
32566     # See if we are running on zsh, and set the options which allow our
32567     # commands through without removal of \ escapes.
32568     if test -n "${ZSH_VERSION+set}" ; then
32569       setopt NO_GLOB_SUBST
32570     fi
32571
32572     cfgfile="${ofile}T"
32573     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32574     $RM "$cfgfile"
32575
32576     cat <<_LT_EOF >> "$cfgfile"
32577 #! $SHELL
32578
32579 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32580 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32581 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32582 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32583 #
32584 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32585 #                 2006, 2007, 2008 Free Software Foundation, Inc.
32586 #   Written by Gordon Matzigkeit, 1996
32587 #
32588 #   This file is part of GNU Libtool.
32589 #
32590 # GNU Libtool is free software; you can redistribute it and/or
32591 # modify it under the terms of the GNU General Public License as
32592 # published by the Free Software Foundation; either version 2 of
32593 # the License, or (at your option) any later version.
32594 #
32595 # As a special exception to the GNU General Public License,
32596 # if you distribute this file as part of a program or library that
32597 # is built using GNU Libtool, you may include this file under the
32598 # same distribution terms that you use for the rest of that program.
32599 #
32600 # GNU Libtool is distributed in the hope that it will be useful,
32601 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32603 # GNU General Public License for more details.
32604 #
32605 # You should have received a copy of the GNU General Public License
32606 # along with GNU Libtool; see the file COPYING.  If not, a copy
32607 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32608 # obtained by writing to the Free Software Foundation, Inc.,
32609 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32610
32611
32612 # The names of the tagged configurations supported by this script.
32613 available_tags="CXX "
32614
32615 # ### BEGIN LIBTOOL CONFIG
32616
32617 # Whether or not to build static libraries.
32618 build_old_libs=$enable_static
32619
32620 # Which release of libtool.m4 was used?
32621 macro_version=$macro_version
32622 macro_revision=$macro_revision
32623
32624 # Whether or not to build shared libraries.
32625 build_libtool_libs=$enable_shared
32626
32627 # What type of objects to build.
32628 pic_mode=$pic_mode
32629
32630 # Whether or not to optimize for fast installation.
32631 fast_install=$enable_fast_install
32632
32633 # The host system.
32634 host_alias=$host_alias
32635 host=$host
32636 host_os=$host_os
32637
32638 # The build system.
32639 build_alias=$build_alias
32640 build=$build
32641 build_os=$build_os
32642
32643 # A sed program that does not truncate output.
32644 SED=$lt_SED
32645
32646 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32647 Xsed="\$SED -e 1s/^X//"
32648
32649 # A grep program that handles long lines.
32650 GREP=$lt_GREP
32651
32652 # An ERE matcher.
32653 EGREP=$lt_EGREP
32654
32655 # A literal string matcher.
32656 FGREP=$lt_FGREP
32657
32658 # A BSD- or MS-compatible name lister.
32659 NM=$lt_NM
32660
32661 # Whether we need soft or hard links.
32662 LN_S=$lt_LN_S
32663
32664 # What is the maximum length of a command?
32665 max_cmd_len=$max_cmd_len
32666
32667 # Object file suffix (normally "o").
32668 objext=$ac_objext
32669
32670 # Executable file suffix (normally "").
32671 exeext=$exeext
32672
32673 # whether the shell understands "unset".
32674 lt_unset=$lt_unset
32675
32676 # turn spaces into newlines.
32677 SP2NL=$lt_lt_SP2NL
32678
32679 # turn newlines into spaces.
32680 NL2SP=$lt_lt_NL2SP
32681
32682 # How to create reloadable object files.
32683 reload_flag=$lt_reload_flag
32684 reload_cmds=$lt_reload_cmds
32685
32686 # An object symbol dumper.
32687 OBJDUMP=$lt_OBJDUMP
32688
32689 # Method to check whether dependent libraries are shared objects.
32690 deplibs_check_method=$lt_deplibs_check_method
32691
32692 # Command to use when deplibs_check_method == "file_magic".
32693 file_magic_cmd=$lt_file_magic_cmd
32694
32695 # The archiver.
32696 AR=$lt_AR
32697 AR_FLAGS=$lt_AR_FLAGS
32698
32699 # A symbol stripping program.
32700 STRIP=$lt_STRIP
32701
32702 # Commands used to install an old-style archive.
32703 RANLIB=$lt_RANLIB
32704 old_postinstall_cmds=$lt_old_postinstall_cmds
32705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32706
32707 # A C compiler.
32708 LTCC=$lt_CC
32709
32710 # LTCC compiler flags.
32711 LTCFLAGS=$lt_CFLAGS
32712
32713 # Take the output of nm and produce a listing of raw symbols and C names.
32714 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32715
32716 # Transform the output of nm in a proper C declaration.
32717 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32718
32719 # Transform the output of nm in a C name address pair.
32720 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32721
32722 # Transform the output of nm in a C name address pair when lib prefix is needed.
32723 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32724
32725 # The name of the directory that contains temporary libtool files.
32726 objdir=$objdir
32727
32728 # Shell to use when invoking shell scripts.
32729 SHELL=$lt_SHELL
32730
32731 # An echo program that does not interpret backslashes.
32732 ECHO=$lt_ECHO
32733
32734 # Used to examine libraries when file_magic_cmd begins with "file".
32735 MAGIC_CMD=$MAGIC_CMD
32736
32737 # Must we lock files when doing compilation?
32738 need_locks=$lt_need_locks
32739
32740 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32741 DSYMUTIL=$lt_DSYMUTIL
32742
32743 # Tool to change global to local symbols on Mac OS X.
32744 NMEDIT=$lt_NMEDIT
32745
32746 # Tool to manipulate fat objects and archives on Mac OS X.
32747 LIPO=$lt_LIPO
32748
32749 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32750 OTOOL=$lt_OTOOL
32751
32752 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32753 OTOOL64=$lt_OTOOL64
32754
32755 # Old archive suffix (normally "a").
32756 libext=$libext
32757
32758 # Shared library suffix (normally ".so").
32759 shrext_cmds=$lt_shrext_cmds
32760
32761 # The commands to extract the exported symbol list from a shared archive.
32762 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32763
32764 # Variables whose values should be saved in libtool wrapper scripts and
32765 # restored at link time.
32766 variables_saved_for_relink=$lt_variables_saved_for_relink
32767
32768 # Do we need the "lib" prefix for modules?
32769 need_lib_prefix=$need_lib_prefix
32770
32771 # Do we need a version for libraries?
32772 need_version=$need_version
32773
32774 # Library versioning type.
32775 version_type=$version_type
32776
32777 # Shared library runtime path variable.
32778 runpath_var=$runpath_var
32779
32780 # Shared library path variable.
32781 shlibpath_var=$shlibpath_var
32782
32783 # Is shlibpath searched before the hard-coded library search path?
32784 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32785
32786 # Format of library name prefix.
32787 libname_spec=$lt_libname_spec
32788
32789 # List of archive names.  First name is the real one, the rest are links.
32790 # The last name is the one that the linker finds with -lNAME
32791 library_names_spec=$lt_library_names_spec
32792
32793 # The coded name of the library, if different from the real name.
32794 soname_spec=$lt_soname_spec
32795
32796 # Command to use after installation of a shared archive.
32797 postinstall_cmds=$lt_postinstall_cmds
32798
32799 # Command to use after uninstallation of a shared archive.
32800 postuninstall_cmds=$lt_postuninstall_cmds
32801
32802 # Commands used to finish a libtool library installation in a directory.
32803 finish_cmds=$lt_finish_cmds
32804
32805 # As "finish_cmds", except a single script fragment to be evaled but
32806 # not shown.
32807 finish_eval=$lt_finish_eval
32808
32809 # Whether we should hardcode library paths into libraries.
32810 hardcode_into_libs=$hardcode_into_libs
32811
32812 # Compile-time system search path for libraries.
32813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32814
32815 # Run-time system search path for libraries.
32816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32817
32818 # Whether dlopen is supported.
32819 dlopen_support=$enable_dlopen
32820
32821 # Whether dlopen of programs is supported.
32822 dlopen_self=$enable_dlopen_self
32823
32824 # Whether dlopen of statically linked programs is supported.
32825 dlopen_self_static=$enable_dlopen_self_static
32826
32827 # Commands to strip libraries.
32828 old_striplib=$lt_old_striplib
32829 striplib=$lt_striplib
32830
32831
32832 # The linker used to build libraries.
32833 LD=$lt_LD
32834
32835 # Commands used to build an old-style archive.
32836 old_archive_cmds=$lt_old_archive_cmds
32837
32838 # A language specific compiler.
32839 CC=$lt_compiler
32840
32841 # Is the compiler the GNU compiler?
32842 with_gcc=$GCC
32843
32844 # Compiler flag to turn off builtin functions.
32845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32846
32847 # How to pass a linker flag through the compiler.
32848 wl=$lt_lt_prog_compiler_wl
32849
32850 # Additional compiler flags for building library objects.
32851 pic_flag=$lt_lt_prog_compiler_pic
32852
32853 # Compiler flag to prevent dynamic linking.
32854 link_static_flag=$lt_lt_prog_compiler_static
32855
32856 # Does compiler simultaneously support -c and -o options?
32857 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32858
32859 # Whether or not to add -lc for building shared libraries.
32860 build_libtool_need_lc=$archive_cmds_need_lc
32861
32862 # Whether or not to disallow shared libs when runtime libs are static.
32863 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32864
32865 # Compiler flag to allow reflexive dlopens.
32866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32867
32868 # Compiler flag to generate shared objects directly from archives.
32869 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32870
32871 # Whether the compiler copes with passing no objects directly.
32872 compiler_needs_object=$lt_compiler_needs_object
32873
32874 # Create an old-style archive from a shared archive.
32875 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32876
32877 # Create a temporary old-style archive to link instead of a shared archive.
32878 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32879
32880 # Commands used to build a shared archive.
32881 archive_cmds=$lt_archive_cmds
32882 archive_expsym_cmds=$lt_archive_expsym_cmds
32883
32884 # Commands used to build a loadable module if different from building
32885 # a shared archive.
32886 module_cmds=$lt_module_cmds
32887 module_expsym_cmds=$lt_module_expsym_cmds
32888
32889 # Whether we are building with GNU ld or not.
32890 with_gnu_ld=$lt_with_gnu_ld
32891
32892 # Flag that allows shared libraries with undefined symbols to be built.
32893 allow_undefined_flag=$lt_allow_undefined_flag
32894
32895 # Flag that enforces no undefined symbols.
32896 no_undefined_flag=$lt_no_undefined_flag
32897
32898 # Flag to hardcode \$libdir into a binary during linking.
32899 # This must work even if \$libdir does not exist
32900 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32901
32902 # If ld is used when linking, flag to hardcode \$libdir into a binary
32903 # during linking.  This must work even if \$libdir does not exist.
32904 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32905
32906 # Whether we need a single "-rpath" flag with a separated argument.
32907 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32908
32909 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32910 # DIR into the resulting binary.
32911 hardcode_direct=$hardcode_direct
32912
32913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32914 # DIR into the resulting binary and the resulting library dependency is
32915 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32916 # library is relocated.
32917 hardcode_direct_absolute=$hardcode_direct_absolute
32918
32919 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32920 # into the resulting binary.
32921 hardcode_minus_L=$hardcode_minus_L
32922
32923 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32924 # into the resulting binary.
32925 hardcode_shlibpath_var=$hardcode_shlibpath_var
32926
32927 # Set to "yes" if building a shared library automatically hardcodes DIR
32928 # into the library and all subsequent libraries and executables linked
32929 # against it.
32930 hardcode_automatic=$hardcode_automatic
32931
32932 # Set to yes if linker adds runtime paths of dependent libraries
32933 # to runtime path list.
32934 inherit_rpath=$inherit_rpath
32935
32936 # Whether libtool must link a program against all its dependency libraries.
32937 link_all_deplibs=$link_all_deplibs
32938
32939 # Fix the shell variable \$srcfile for the compiler.
32940 fix_srcfile_path=$lt_fix_srcfile_path
32941
32942 # Set to "yes" if exported symbols are required.
32943 always_export_symbols=$always_export_symbols
32944
32945 # The commands to list exported symbols.
32946 export_symbols_cmds=$lt_export_symbols_cmds
32947
32948 # Symbols that should not be listed in the preloaded symbols.
32949 exclude_expsyms=$lt_exclude_expsyms
32950
32951 # Symbols that must always be exported.
32952 include_expsyms=$lt_include_expsyms
32953
32954 # Commands necessary for linking programs (against libraries) with templates.
32955 prelink_cmds=$lt_prelink_cmds
32956
32957 # Specify filename containing input files.
32958 file_list_spec=$lt_file_list_spec
32959
32960 # How to hardcode a shared library path into an executable.
32961 hardcode_action=$hardcode_action
32962
32963 # The directories searched by this compiler when creating a shared library.
32964 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32965
32966 # Dependencies to place before and after the objects being linked to
32967 # create a shared library.
32968 predep_objects=$lt_predep_objects
32969 postdep_objects=$lt_postdep_objects
32970 predeps=$lt_predeps
32971 postdeps=$lt_postdeps
32972
32973 # The library search path used internally by the compiler when linking
32974 # a shared library.
32975 compiler_lib_search_path=$lt_compiler_lib_search_path
32976
32977 # ### END LIBTOOL CONFIG
32978
32979 _LT_EOF
32980
32981   case $host_os in
32982   aix3*)
32983     cat <<\_LT_EOF >> "$cfgfile"
32984 # AIX sometimes has problems with the GCC collect2 program.  For some
32985 # reason, if we set the COLLECT_NAMES environment variable, the problems
32986 # vanish in a puff of smoke.
32987 if test "X${COLLECT_NAMES+set}" != Xset; then
32988   COLLECT_NAMES=
32989   export COLLECT_NAMES
32990 fi
32991 _LT_EOF
32992     ;;
32993   esac
32994
32995
32996 ltmain="$ac_aux_dir/ltmain.sh"
32997
32998
32999   # We use sed instead of cat because bash on DJGPP gets confused if
33000   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33001   # text mode, it properly converts lines to CR/LF.  This bash problem
33002   # is reportedly fixed, but why not run on old versions too?
33003   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33004     || (rm -f "$cfgfile"; exit 1)
33005
33006   case $xsi_shell in
33007   yes)
33008     cat << \_LT_EOF >> "$cfgfile"
33009
33010 # func_dirname file append nondir_replacement
33011 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33012 # otherwise set result to NONDIR_REPLACEMENT.
33013 func_dirname ()
33014 {
33015   case ${1} in
33016     */*) func_dirname_result="${1%/*}${2}" ;;
33017     *  ) func_dirname_result="${3}" ;;
33018   esac
33019 }
33020
33021 # func_basename file
33022 func_basename ()
33023 {
33024   func_basename_result="${1##*/}"
33025 }
33026
33027 # func_dirname_and_basename file append nondir_replacement
33028 # perform func_basename and func_dirname in a single function
33029 # call:
33030 #   dirname:  Compute the dirname of FILE.  If nonempty,
33031 #             add APPEND to the result, otherwise set result
33032 #             to NONDIR_REPLACEMENT.
33033 #             value returned in "$func_dirname_result"
33034 #   basename: Compute filename of FILE.
33035 #             value retuned in "$func_basename_result"
33036 # Implementation must be kept synchronized with func_dirname
33037 # and func_basename. For efficiency, we do not delegate to
33038 # those functions but instead duplicate the functionality here.
33039 func_dirname_and_basename ()
33040 {
33041   case ${1} in
33042     */*) func_dirname_result="${1%/*}${2}" ;;
33043     *  ) func_dirname_result="${3}" ;;
33044   esac
33045   func_basename_result="${1##*/}"
33046 }
33047
33048 # func_stripname prefix suffix name
33049 # strip PREFIX and SUFFIX off of NAME.
33050 # PREFIX and SUFFIX must not contain globbing or regex special
33051 # characters, hashes, percent signs, but SUFFIX may contain a leading
33052 # dot (in which case that matches only a dot).
33053 func_stripname ()
33054 {
33055   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33056   # positional parameters, so assign one to ordinary parameter first.
33057   func_stripname_result=${3}
33058   func_stripname_result=${func_stripname_result#"${1}"}
33059   func_stripname_result=${func_stripname_result%"${2}"}
33060 }
33061
33062 # func_opt_split
33063 func_opt_split ()
33064 {
33065   func_opt_split_opt=${1%%=*}
33066   func_opt_split_arg=${1#*=}
33067 }
33068
33069 # func_lo2o object
33070 func_lo2o ()
33071 {
33072   case ${1} in
33073     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33074     *)    func_lo2o_result=${1} ;;
33075   esac
33076 }
33077
33078 # func_xform libobj-or-source
33079 func_xform ()
33080 {
33081   func_xform_result=${1%.*}.lo
33082 }
33083
33084 # func_arith arithmetic-term...
33085 func_arith ()
33086 {
33087   func_arith_result=$(( $* ))
33088 }
33089
33090 # func_len string
33091 # STRING may not start with a hyphen.
33092 func_len ()
33093 {
33094   func_len_result=${#1}
33095 }
33096
33097 _LT_EOF
33098     ;;
33099   *) # Bourne compatible functions.
33100     cat << \_LT_EOF >> "$cfgfile"
33101
33102 # func_dirname file append nondir_replacement
33103 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
33104 # otherwise set result to NONDIR_REPLACEMENT.
33105 func_dirname ()
33106 {
33107   # Extract subdirectory from the argument.
33108   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33109   if test "X$func_dirname_result" = "X${1}"; then
33110     func_dirname_result="${3}"
33111   else
33112     func_dirname_result="$func_dirname_result${2}"
33113   fi
33114 }
33115
33116 # func_basename file
33117 func_basename ()
33118 {
33119   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33120 }
33121
33122
33123 # func_stripname prefix suffix name
33124 # strip PREFIX and SUFFIX off of NAME.
33125 # PREFIX and SUFFIX must not contain globbing or regex special
33126 # characters, hashes, percent signs, but SUFFIX may contain a leading
33127 # dot (in which case that matches only a dot).
33128 # func_strip_suffix prefix name
33129 func_stripname ()
33130 {
33131   case ${2} in
33132     .*) func_stripname_result=`$ECHO "X${3}" \
33133            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33134     *)  func_stripname_result=`$ECHO "X${3}" \
33135            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33136   esac
33137 }
33138
33139 # sed scripts:
33140 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33141 my_sed_long_arg='1s/^-[^=]*=//'
33142
33143 # func_opt_split
33144 func_opt_split ()
33145 {
33146   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33147   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33148 }
33149
33150 # func_lo2o object
33151 func_lo2o ()
33152 {
33153   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33154 }
33155
33156 # func_xform libobj-or-source
33157 func_xform ()
33158 {
33159   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33160 }
33161
33162 # func_arith arithmetic-term...
33163 func_arith ()
33164 {
33165   func_arith_result=`expr "$@"`
33166 }
33167
33168 # func_len string
33169 # STRING may not start with a hyphen.
33170 func_len ()
33171 {
33172   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33173 }
33174
33175 _LT_EOF
33176 esac
33177
33178 case $lt_shell_append in
33179   yes)
33180     cat << \_LT_EOF >> "$cfgfile"
33181
33182 # func_append var value
33183 # Append VALUE to the end of shell variable VAR.
33184 func_append ()
33185 {
33186   eval "$1+=\$2"
33187 }
33188 _LT_EOF
33189     ;;
33190   *)
33191     cat << \_LT_EOF >> "$cfgfile"
33192
33193 # func_append var value
33194 # Append VALUE to the end of shell variable VAR.
33195 func_append ()
33196 {
33197   eval "$1=\$$1\$2"
33198 }
33199
33200 _LT_EOF
33201     ;;
33202   esac
33203
33204
33205   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33206     || (rm -f "$cfgfile"; exit 1)
33207
33208   mv -f "$cfgfile" "$ofile" ||
33209     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33210   chmod +x "$ofile"
33211
33212
33213     cat <<_LT_EOF >> "$ofile"
33214
33215 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33216
33217 # The linker used to build libraries.
33218 LD=$lt_LD_CXX
33219
33220 # Commands used to build an old-style archive.
33221 old_archive_cmds=$lt_old_archive_cmds_CXX
33222
33223 # A language specific compiler.
33224 CC=$lt_compiler_CXX
33225
33226 # Is the compiler the GNU compiler?
33227 with_gcc=$GCC_CXX
33228
33229 # Compiler flag to turn off builtin functions.
33230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33231
33232 # How to pass a linker flag through the compiler.
33233 wl=$lt_lt_prog_compiler_wl_CXX
33234
33235 # Additional compiler flags for building library objects.
33236 pic_flag=$lt_lt_prog_compiler_pic_CXX
33237
33238 # Compiler flag to prevent dynamic linking.
33239 link_static_flag=$lt_lt_prog_compiler_static_CXX
33240
33241 # Does compiler simultaneously support -c and -o options?
33242 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33243
33244 # Whether or not to add -lc for building shared libraries.
33245 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33246
33247 # Whether or not to disallow shared libs when runtime libs are static.
33248 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33249
33250 # Compiler flag to allow reflexive dlopens.
33251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33252
33253 # Compiler flag to generate shared objects directly from archives.
33254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33255
33256 # Whether the compiler copes with passing no objects directly.
33257 compiler_needs_object=$lt_compiler_needs_object_CXX
33258
33259 # Create an old-style archive from a shared archive.
33260 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33261
33262 # Create a temporary old-style archive to link instead of a shared archive.
33263 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33264
33265 # Commands used to build a shared archive.
33266 archive_cmds=$lt_archive_cmds_CXX
33267 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33268
33269 # Commands used to build a loadable module if different from building
33270 # a shared archive.
33271 module_cmds=$lt_module_cmds_CXX
33272 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33273
33274 # Whether we are building with GNU ld or not.
33275 with_gnu_ld=$lt_with_gnu_ld_CXX
33276
33277 # Flag that allows shared libraries with undefined symbols to be built.
33278 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33279
33280 # Flag that enforces no undefined symbols.
33281 no_undefined_flag=$lt_no_undefined_flag_CXX
33282
33283 # Flag to hardcode \$libdir into a binary during linking.
33284 # This must work even if \$libdir does not exist
33285 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33286
33287 # If ld is used when linking, flag to hardcode \$libdir into a binary
33288 # during linking.  This must work even if \$libdir does not exist.
33289 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33290
33291 # Whether we need a single "-rpath" flag with a separated argument.
33292 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33293
33294 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33295 # DIR into the resulting binary.
33296 hardcode_direct=$hardcode_direct_CXX
33297
33298 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33299 # DIR into the resulting binary and the resulting library dependency is
33300 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33301 # library is relocated.
33302 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33303
33304 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33305 # into the resulting binary.
33306 hardcode_minus_L=$hardcode_minus_L_CXX
33307
33308 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33309 # into the resulting binary.
33310 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33311
33312 # Set to "yes" if building a shared library automatically hardcodes DIR
33313 # into the library and all subsequent libraries and executables linked
33314 # against it.
33315 hardcode_automatic=$hardcode_automatic_CXX
33316
33317 # Set to yes if linker adds runtime paths of dependent libraries
33318 # to runtime path list.
33319 inherit_rpath=$inherit_rpath_CXX
33320
33321 # Whether libtool must link a program against all its dependency libraries.
33322 link_all_deplibs=$link_all_deplibs_CXX
33323
33324 # Fix the shell variable \$srcfile for the compiler.
33325 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33326
33327 # Set to "yes" if exported symbols are required.
33328 always_export_symbols=$always_export_symbols_CXX
33329
33330 # The commands to list exported symbols.
33331 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33332
33333 # Symbols that should not be listed in the preloaded symbols.
33334 exclude_expsyms=$lt_exclude_expsyms_CXX
33335
33336 # Symbols that must always be exported.
33337 include_expsyms=$lt_include_expsyms_CXX
33338
33339 # Commands necessary for linking programs (against libraries) with templates.
33340 prelink_cmds=$lt_prelink_cmds_CXX
33341
33342 # Specify filename containing input files.
33343 file_list_spec=$lt_file_list_spec_CXX
33344
33345 # How to hardcode a shared library path into an executable.
33346 hardcode_action=$hardcode_action_CXX
33347
33348 # The directories searched by this compiler when creating a shared library.
33349 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33350
33351 # Dependencies to place before and after the objects being linked to
33352 # create a shared library.
33353 predep_objects=$lt_predep_objects_CXX
33354 postdep_objects=$lt_postdep_objects_CXX
33355 predeps=$lt_predeps_CXX
33356 postdeps=$lt_postdeps_CXX
33357
33358 # The library search path used internally by the compiler when linking
33359 # a shared library.
33360 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33361
33362 # ### END LIBTOOL TAG CONFIG: CXX
33363 _LT_EOF
33364
33365  ;;
33366     mkcollections.pl ) chmod 755 lib/mkcollections.pl ;;
33367     $ac_stdint_h )
33368 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
33369 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
33370 ac_stdint=$tmp/_stdint.h
33371
33372 echo "#ifndef" $_ac_stdint_h >$ac_stdint
33373 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
33374 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
33375 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
33376 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
33377 if test "_$ac_cv_header_stdint_t" != "_" ; then
33378 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
33379 echo "#include <stdint.h>" >>$ac_stdint
33380 echo "#endif" >>$ac_stdint
33381 echo "#endif" >>$ac_stdint
33382 else
33383
33384 cat >>$ac_stdint <<STDINT_EOF
33385
33386 /* ................... shortcircuit part ........................... */
33387
33388 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
33389 #include <stdint.h>
33390 #else
33391 #include <stddef.h>
33392
33393 /* .................... configured part ............................ */
33394
33395 STDINT_EOF
33396
33397 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
33398 if test "_$ac_cv_header_stdint_x" != "_" ; then
33399   ac_header="$ac_cv_header_stdint_x"
33400   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
33401 else
33402   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
33403 fi
33404
33405 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
33406 if  test "_$ac_cv_header_stdint_o" != "_" ; then
33407   ac_header="$ac_cv_header_stdint_o"
33408   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
33409 else
33410   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
33411 fi
33412
33413 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
33414 if  test "_$ac_cv_header_stdint_u" != "_" ; then
33415   ac_header="$ac_cv_header_stdint_u"
33416   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
33417 else
33418   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
33419 fi
33420
33421 echo "" >>$ac_stdint
33422
33423 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
33424   echo "#include <$ac_header>" >>$ac_stdint
33425   echo "" >>$ac_stdint
33426 fi fi
33427
33428 echo "/* which 64bit typedef has been found */" >>$ac_stdint
33429 if test "$ac_cv_type_uint64_t" = "yes" ; then
33430 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
33431 else
33432 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
33433 fi
33434 if test "$ac_cv_type_u_int64_t" = "yes" ; then
33435 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
33436 else
33437 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
33438 fi
33439 echo "" >>$ac_stdint
33440
33441 echo "/* which type model has been detected */" >>$ac_stdint
33442 if test "_$ac_cv_char_data_model" != "_" ; then
33443 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
33444 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
33445 else
33446 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
33447 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
33448 fi
33449 echo "" >>$ac_stdint
33450
33451 echo "/* whether int_least types were detected */" >>$ac_stdint
33452 if test "$ac_cv_type_int_least32_t" = "yes"; then
33453 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
33454 else
33455 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
33456 fi
33457 echo "/* whether int_fast types were detected */" >>$ac_stdint
33458 if test "$ac_cv_type_int_fast32_t" = "yes"; then
33459 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
33460 else
33461 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
33462 fi
33463 echo "/* whether intmax_t type was detected */" >>$ac_stdint
33464 if test "$ac_cv_type_intmax_t" = "yes"; then
33465 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
33466 else
33467 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
33468 fi
33469 echo "" >>$ac_stdint
33470
33471   cat >>$ac_stdint <<STDINT_EOF
33472 /* .................... detections part ............................ */
33473
33474 /* whether we need to define bitspecific types from compiler base types */
33475 #ifndef _STDINT_HEADER_INTPTR
33476 #ifndef _STDINT_HEADER_UINT32
33477 #ifndef _STDINT_HEADER_U_INT32
33478 #define _STDINT_NEED_INT_MODEL_T
33479 #else
33480 #define _STDINT_HAVE_U_INT_TYPES
33481 #endif
33482 #endif
33483 #endif
33484
33485 #ifdef _STDINT_HAVE_U_INT_TYPES
33486 #undef _STDINT_NEED_INT_MODEL_T
33487 #endif
33488
33489 #ifdef  _STDINT_CHAR_MODEL
33490 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
33491 #ifndef _STDINT_BYTE_MODEL
33492 #define _STDINT_BYTE_MODEL 12
33493 #endif
33494 #endif
33495 #endif
33496
33497 #ifndef _STDINT_HAVE_INT_LEAST32_T
33498 #define _STDINT_NEED_INT_LEAST_T
33499 #endif
33500
33501 #ifndef _STDINT_HAVE_INT_FAST32_T
33502 #define _STDINT_NEED_INT_FAST_T
33503 #endif
33504
33505 #ifndef _STDINT_HEADER_INTPTR
33506 #define _STDINT_NEED_INTPTR_T
33507 #ifndef _STDINT_HAVE_INTMAX_T
33508 #define _STDINT_NEED_INTMAX_T
33509 #endif
33510 #endif
33511
33512
33513 /* .................... definition part ............................ */
33514
33515 /* some system headers have good uint64_t */
33516 #ifndef _HAVE_UINT64_T
33517 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
33518 #define _HAVE_UINT64_T
33519 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
33520 #define _HAVE_UINT64_T
33521 typedef u_int64_t uint64_t;
33522 #endif
33523 #endif
33524
33525 #ifndef _HAVE_UINT64_T
33526 /* .. here are some common heuristics using compiler runtime specifics */
33527 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
33528 #define _HAVE_UINT64_T
33529 #define _HAVE_LONGLONG_UINT64_T
33530 typedef long long int64_t;
33531 typedef unsigned long long uint64_t;
33532
33533 #elif !defined __STRICT_ANSI__
33534 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
33535 #define _HAVE_UINT64_T
33536 typedef __int64 int64_t;
33537 typedef unsigned __int64 uint64_t;
33538
33539 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
33540 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
33541 #if !defined _NO_LONGLONG
33542 #define _HAVE_UINT64_T
33543 #define _HAVE_LONGLONG_UINT64_T
33544 typedef long long int64_t;
33545 typedef unsigned long long uint64_t;
33546 #endif
33547
33548 #elif defined __alpha || (defined __mips && defined _ABIN32)
33549 #if !defined _NO_LONGLONG
33550 typedef long int64_t;
33551 typedef unsigned long uint64_t;
33552 #endif
33553   /* compiler/cpu type to define int64_t */
33554 #endif
33555 #endif
33556 #endif
33557
33558 #if defined _STDINT_HAVE_U_INT_TYPES
33559 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
33560 typedef u_int8_t uint8_t;
33561 typedef u_int16_t uint16_t;
33562 typedef u_int32_t uint32_t;
33563
33564 /* glibc compatibility */
33565 #ifndef __int8_t_defined
33566 #define __int8_t_defined
33567 #endif
33568 #endif
33569
33570 #ifdef _STDINT_NEED_INT_MODEL_T
33571 /* we must guess all the basic types. Apart from byte-adressable system, */
33572 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
33573 /* (btw, those nibble-addressable systems are way off, or so we assume) */
33574
33575
33576 #if defined _STDINT_BYTE_MODEL
33577 #if _STDINT_LONG_MODEL+0 == 242
33578 /* 2:4:2 =  IP16 = a normal 16-bit system                */
33579 typedef unsigned char   uint8_t;
33580 typedef unsigned short  uint16_t;
33581 typedef unsigned long   uint32_t;
33582 #ifndef __int8_t_defined
33583 #define __int8_t_defined
33584 typedef          char    int8_t;
33585 typedef          short   int16_t;
33586 typedef          long    int32_t;
33587 #endif
33588 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
33589 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
33590 /* 4:4:4 = ILP32 = a normal 32-bit system                */
33591 typedef unsigned char   uint8_t;
33592 typedef unsigned short  uint16_t;
33593 typedef unsigned int    uint32_t;
33594 #ifndef __int8_t_defined
33595 #define __int8_t_defined
33596 typedef          char    int8_t;
33597 typedef          short   int16_t;
33598 typedef          int     int32_t;
33599 #endif
33600 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
33601 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
33602 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
33603 typedef unsigned char   uint8_t;
33604 typedef unsigned short  uint16_t;
33605 typedef unsigned int    uint32_t;
33606 #ifndef __int8_t_defined
33607 #define __int8_t_defined
33608 typedef          char    int8_t;
33609 typedef          short   int16_t;
33610 typedef          int     int32_t;
33611 #endif
33612 /* this system has a "long" of 64bit */
33613 #ifndef _HAVE_UINT64_T
33614 #define _HAVE_UINT64_T
33615 typedef unsigned long   uint64_t;
33616 typedef          long    int64_t;
33617 #endif
33618 #elif _STDINT_LONG_MODEL+0 == 448
33619 /*      LLP64   a 64-bit system derived from a 32-bit system */
33620 typedef unsigned char   uint8_t;
33621 typedef unsigned short  uint16_t;
33622 typedef unsigned int    uint32_t;
33623 #ifndef __int8_t_defined
33624 #define __int8_t_defined
33625 typedef          char    int8_t;
33626 typedef          short   int16_t;
33627 typedef          int     int32_t;
33628 #endif
33629 /* assuming the system has a "long long" */
33630 #ifndef _HAVE_UINT64_T
33631 #define _HAVE_UINT64_T
33632 #define _HAVE_LONGLONG_UINT64_T
33633 typedef unsigned long long uint64_t;
33634 typedef          long long  int64_t;
33635 #endif
33636 #else
33637 #define _STDINT_NO_INT32_T
33638 #endif
33639 #else
33640 #define _STDINT_NO_INT8_T
33641 #define _STDINT_NO_INT32_T
33642 #endif
33643 #endif
33644
33645 /*
33646  * quote from SunOS-5.8 sys/inttypes.h:
33647  * Use at your own risk.  As of February 1996, the committee is squarely
33648  * behind the fixed sized types; the "least" and "fast" types are still being
33649  * discussed.  The probability that the "fast" types may be removed before
33650  * the standard is finalized is high enough that they are not currently
33651  * implemented.
33652  */
33653
33654 #if defined _STDINT_NEED_INT_LEAST_T
33655 typedef  int8_t    int_least8_t;
33656 typedef  int16_t   int_least16_t;
33657 typedef  int32_t   int_least32_t;
33658 #ifdef _HAVE_UINT64_T
33659 typedef  int64_t   int_least64_t;
33660 #endif
33661
33662 typedef uint8_t   uint_least8_t;
33663 typedef uint16_t  uint_least16_t;
33664 typedef uint32_t  uint_least32_t;
33665 #ifdef _HAVE_UINT64_T
33666 typedef uint64_t  uint_least64_t;
33667 #endif
33668   /* least types */
33669 #endif
33670
33671 #if defined _STDINT_NEED_INT_FAST_T
33672 typedef  int8_t    int_fast8_t;
33673 typedef  int       int_fast16_t;
33674 typedef  int32_t   int_fast32_t;
33675 #ifdef _HAVE_UINT64_T
33676 typedef  int64_t   int_fast64_t;
33677 #endif
33678
33679 typedef uint8_t   uint_fast8_t;
33680 typedef unsigned  uint_fast16_t;
33681 typedef uint32_t  uint_fast32_t;
33682 #ifdef _HAVE_UINT64_T
33683 typedef uint64_t  uint_fast64_t;
33684 #endif
33685   /* fast types */
33686 #endif
33687
33688 #ifdef _STDINT_NEED_INTMAX_T
33689 #ifdef _HAVE_UINT64_T
33690 typedef  int64_t       intmax_t;
33691 typedef uint64_t      uintmax_t;
33692 #else
33693 typedef          long  intmax_t;
33694 typedef unsigned long uintmax_t;
33695 #endif
33696 #endif
33697
33698 #ifdef _STDINT_NEED_INTPTR_T
33699 #ifndef __intptr_t_defined
33700 #define __intptr_t_defined
33701 /* we encourage using "long" to store pointer values, never use "int" ! */
33702 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
33703 typedef  unsigned int   uintptr_t;
33704 typedef           int    intptr_t;
33705 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
33706 typedef  unsigned long  uintptr_t;
33707 typedef           long   intptr_t;
33708 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
33709 typedef        uint64_t uintptr_t;
33710 typedef         int64_t  intptr_t;
33711 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
33712 typedef  unsigned long  uintptr_t;
33713 typedef           long   intptr_t;
33714 #endif
33715 #endif
33716 #endif
33717
33718 /* The ISO C99 standard specifies that in C++ implementations these
33719    should only be defined if explicitly requested.  */
33720 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
33721 #ifndef UINT32_C
33722
33723 /* Signed.  */
33724 # define INT8_C(c)      c
33725 # define INT16_C(c)     c
33726 # define INT32_C(c)     c
33727 # ifdef _HAVE_LONGLONG_UINT64_T
33728 #  define INT64_C(c)    c ## L
33729 # else
33730 #  define INT64_C(c)    c ## LL
33731 # endif
33732
33733 /* Unsigned.  */
33734 # define UINT8_C(c)     c ## U
33735 # define UINT16_C(c)    c ## U
33736 # define UINT32_C(c)    c ## U
33737 # ifdef _HAVE_LONGLONG_UINT64_T
33738 #  define UINT64_C(c)   c ## UL
33739 # else
33740 #  define UINT64_C(c)   c ## ULL
33741 # endif
33742
33743 /* Maximal type.  */
33744 # ifdef _HAVE_LONGLONG_UINT64_T
33745 #  define INTMAX_C(c)   c ## L
33746 #  define UINTMAX_C(c)  c ## UL
33747 # else
33748 #  define INTMAX_C(c)   c ## LL
33749 #  define UINTMAX_C(c)  c ## ULL
33750 # endif
33751
33752   /* literalnumbers */
33753 #endif
33754 #endif
33755
33756 /* These limits are merily those of a two complement byte-oriented system */
33757
33758 /* Minimum of signed integral types.  */
33759 #ifndef INT8_MIN
33760 # define INT8_MIN               (-128)
33761 #endif
33762 #ifndef INT16_MIN
33763 # define INT16_MIN              (-32767-1)
33764 #endif
33765 #ifndef INT32_MIN
33766 # define INT32_MIN              (-2147483647-1)
33767 #endif
33768 #ifndef INT64_MIN
33769 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
33770 #endif
33771
33772 /* Maximum of signed integral types.  */
33773 #ifndef INT8_MAX
33774 # define INT8_MAX               (127)
33775 #endif
33776 #ifndef INT16_MAX
33777 # define INT16_MAX              (32767)
33778 #endif
33779 #ifndef INT32_MAX
33780 # define INT32_MAX              (2147483647)
33781 #endif
33782 #ifndef INT64_MAX
33783 # define INT64_MAX              (__INT64_C(9223372036854775807))
33784 #endif
33785
33786 /* Maximum of unsigned integral types.  */
33787 #ifndef UINT8_MAX
33788 # define UINT8_MAX              (255)
33789 #endif
33790 #ifndef UINT16_MAX
33791 # define UINT16_MAX             (65535)
33792 #endif
33793 #ifndef UINT32_MAX
33794 # define UINT32_MAX             (4294967295U)
33795 #endif
33796 #ifndef UINT64_MAX
33797 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
33798 #endif
33799
33800 /* Minimum of signed integral types having a minimum size.  */
33801 # define INT_LEAST8_MIN         INT8_MIN
33802 # define INT_LEAST16_MIN        INT16_MIN
33803 # define INT_LEAST32_MIN        INT32_MIN
33804 # define INT_LEAST64_MIN        INT64_MIN
33805 /* Maximum of signed integral types having a minimum size.  */
33806 # define INT_LEAST8_MAX         INT8_MAX
33807 # define INT_LEAST16_MAX        INT16_MAX
33808 # define INT_LEAST32_MAX        INT32_MAX
33809 # define INT_LEAST64_MAX        INT64_MAX
33810
33811 /* Maximum of unsigned integral types having a minimum size.  */
33812 # define UINT_LEAST8_MAX        UINT8_MAX
33813 # define UINT_LEAST16_MAX       UINT16_MAX
33814 # define UINT_LEAST32_MAX       UINT32_MAX
33815 # define UINT_LEAST64_MAX       UINT64_MAX
33816
33817   /* shortcircuit*/
33818 #endif
33819   /* once */
33820 #endif
33821 #endif
33822 STDINT_EOF
33823 fi
33824     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
33825       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
33826 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
33827     else
33828       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
33829 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33830          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
33831          X"$ac_stdint_h" : 'X\(//\)$' \| \
33832          X"$ac_stdint_h" : 'X\(/\)' \| \
33833          .     : '\(.\)' 2>/dev/null ||
33834 echo X"$ac_stdint_h" |
33835     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33836           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33837           /^X\(\/\/\)$/{ s//\1/; q; }
33838           /^X\(\/\).*/{ s//\1/; q; }
33839           s/.*/./; q'`
33840       { if $as_mkdir_p; then
33841     mkdir -p "$ac_dir"
33842   else
33843     as_dir="$ac_dir"
33844     as_dirs=
33845     while test ! -d "$as_dir"; do
33846       as_dirs="$as_dir $as_dirs"
33847       as_dir=`(dirname "$as_dir") 2>/dev/null ||
33848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33849          X"$as_dir" : 'X\(//\)[^/]' \| \
33850          X"$as_dir" : 'X\(//\)$' \| \
33851          X"$as_dir" : 'X\(/\)' \| \
33852          .     : '\(.\)' 2>/dev/null ||
33853 echo X"$as_dir" |
33854     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33855           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33856           /^X\(\/\/\)$/{ s//\1/; q; }
33857           /^X\(\/\).*/{ s//\1/; q; }
33858           s/.*/./; q'`
33859     done
33860     test ! -n "$as_dirs" || mkdir $as_dirs
33861   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33863    { (exit 1); exit 1; }; }; }
33864
33865       rm -f $ac_stdint_h
33866       mv $ac_stdint $ac_stdint_h
33867     fi
33868  ;;
33869     gappletviewer ) chmod 755 tools/gappletviewer ;;
33870     gjarsigner ) chmod 755 tools/gjarsigner ;;
33871     gkeytool ) chmod 755 tools/gkeytool ;;
33872     gjar ) chmod 755 tools/gjar ;;
33873     gnative2ascii ) chmod 755 tools/gnative2ascii ;;
33874     gserialver ) chmod 755 tools/gserialver ;;
33875     grmiregistry ) chmod 755 tools/grmiregistry ;;
33876     gtnameserv ) chmod 755 tools/gtnameserv ;;
33877     gorbd ) chmod 755 tools/gorbd ;;
33878     grmid ) chmod 755 tools/grmid ;;
33879     grmic ) chmod 755 tools/grmic ;;
33880     gjavah ) chmod 755 tools/gjavah ;;
33881     gjdoc ) chmod 755 tools/gjdoc ;;
33882     gen-classlist ) chmod 755 lib/gen-classlist.sh ;;
33883     copy-vmresources ) chmod 755 lib/copy-vmresources.sh ;;
33884   esac
33885 done
33886 _ACEOF
33887
33888 cat >>$CONFIG_STATUS <<\_ACEOF
33889
33890 { (exit 0); exit 0; }
33891 _ACEOF
33892 chmod +x $CONFIG_STATUS
33893 ac_clean_files=$ac_clean_files_save
33894
33895
33896 # configure is writing to config.log, and then calls config.status.
33897 # config.status does its own redirection, appending to config.log.
33898 # Unfortunately, on DOS this fails, as config.log is still kept open
33899 # by configure, so config.status won't be able to write to it; its
33900 # output is simply discarded.  So we exec the FD to /dev/null,
33901 # effectively closing config.log, so it can be properly (re)opened and
33902 # appended to by config.status.  When coming back to configure, we
33903 # need to make the FD available again.
33904 if test "$no_create" != yes; then
33905   ac_cs_success=:
33906   ac_config_status_args=
33907   test "$silent" = yes &&
33908     ac_config_status_args="$ac_config_status_args --quiet"
33909   exec 5>/dev/null
33910   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33911   exec 5>>config.log
33912   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33913   # would make configure fail if this is the last instruction.
33914   $ac_cs_success || { (exit 1); exit 1; }
33915 fi
33916
33917
33918 # Create standard.omit based on decisions we just made.
33919 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
33920 if test x$use_escher != xtrue; then
33921    echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
33922 fi