OSDN Git Service

2007-05-29 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$lt_ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 ECHO=${lt_ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $ECHO works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<_LT_EOF
274 $*
275 _LT_EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$lt_ECHO"; then
284   if test "X${echo_test_string+set}" != Xset; then
285     # find a string as large as possible, as long as the shell can cope with it
286     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290       then
291         break
292       fi
293     done
294   fi
295
296   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298      test "X$echo_testing_string" = "X$echo_test_string"; then
299     :
300   else
301     # The Solaris, AIX, and Digital Unix default echo programs unquote
302     # backslashes.  This makes it impossible to quote backslashes using
303     #   echo "$something" | sed 's/\\/\\\\/g'
304     #
305     # So, first we look for a working echo in the user's PATH.
306
307     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308     for dir in $PATH /usr/ucb; do
309       IFS="$lt_save_ifs"
310       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313          test "X$echo_testing_string" = "X$echo_test_string"; then
314         ECHO="$dir/echo"
315         break
316       fi
317     done
318     IFS="$lt_save_ifs"
319
320     if test "X$ECHO" = Xecho; then
321       # We didn't find a better echo, so look for alternatives.
322       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324          test "X$echo_testing_string" = "X$echo_test_string"; then
325         # This shell has a builtin print -r that does the trick.
326         ECHO='print -r'
327       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328            test "X$CONFIG_SHELL" != X/bin/ksh; then
329         # If we have ksh, try running configure again with it.
330         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331         export ORIGINAL_CONFIG_SHELL
332         CONFIG_SHELL=/bin/ksh
333         export CONFIG_SHELL
334         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335       else
336         # Try using printf.
337         ECHO='printf %s\n'
338         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340            test "X$echo_testing_string" = "X$echo_test_string"; then
341           # Cool, printf works
342           :
343         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344              test "X$echo_testing_string" = 'X\t' &&
345              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346              test "X$echo_testing_string" = "X$echo_test_string"; then
347           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348           export CONFIG_SHELL
349           SHELL="$CONFIG_SHELL"
350           export SHELL
351           ECHO="$CONFIG_SHELL $0 --fallback-echo"
352         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353              test "X$echo_testing_string" = 'X\t' &&
354              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355              test "X$echo_testing_string" = "X$echo_test_string"; then
356           ECHO="$CONFIG_SHELL $0 --fallback-echo"
357         else
358           # maybe with a smaller string...
359           prev=:
360
361           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363             then
364               break
365             fi
366             prev="$cmd"
367           done
368
369           if test "$prev" != 'sed 50q "$0"'; then
370             echo_test_string=`eval $prev`
371             export echo_test_string
372             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373           else
374             # Oops.  We lost completely, so just stick with echo.
375             ECHO=echo
376           fi
377         fi
378       fi
379     fi
380   fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 lt_ECHO=$ECHO
386 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 # Name of the host.
394 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395 # so uname gets run too.
396 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
398 exec 6>&1
399
400 #
401 # Initializations.
402 #
403 ac_default_prefix=/usr/local
404 ac_config_libobj_dir=.
405 cross_compiling=no
406 subdirs=
407 MFLAGS=
408 MAKEFLAGS=
409 SHELL=${CONFIG_SHELL-/bin/sh}
410
411 # Maximum number of lines to put in a shell here document.
412 # This variable seems obsolete.  It should probably be removed, and
413 # only ac_max_sed_lines should be used.
414 : ${ac_max_here_lines=38}
415
416 # Identity of this package.
417 PACKAGE_NAME='libjava'
418 PACKAGE_TARNAME='libjava'
419 PACKAGE_VERSION='version-unused'
420 PACKAGE_STRING='libjava version-unused'
421 PACKAGE_BUGREPORT=''
422
423 ac_unique_file="java/lang/System.java"
424 # Factoring default headers for most tests.
425 ac_includes_default="\
426 #include <stdio.h>
427 #if HAVE_SYS_TYPES_H
428 # include <sys/types.h>
429 #endif
430 #if HAVE_SYS_STAT_H
431 # include <sys/stat.h>
432 #endif
433 #if STDC_HEADERS
434 # include <stdlib.h>
435 # include <stddef.h>
436 #else
437 # if HAVE_STDLIB_H
438 #  include <stdlib.h>
439 # endif
440 #endif
441 #if HAVE_STRING_H
442 # if !STDC_HEADERS && HAVE_MEMORY_H
443 #  include <memory.h>
444 # endif
445 # include <string.h>
446 #endif
447 #if HAVE_STRINGS_H
448 # include <strings.h>
449 #endif
450 #if HAVE_INTTYPES_H
451 # include <inttypes.h>
452 #else
453 # if HAVE_STDINT_H
454 #  include <stdint.h>
455 # endif
456 #endif
457 #if HAVE_UNISTD_H
458 # include <unistd.h>
459 #endif"
460
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 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 build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME INTERPRETER LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir dbexecdir GCJVERSION gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
484
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
502
503 ac_prev=
504 for ac_option
505 do
506   # If the previous option needs an argument, assign it.
507   if test -n "$ac_prev"; then
508     eval "$ac_prev=\$ac_option"
509     ac_prev=
510     continue
511   fi
512
513   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
514
515   # Accept the important Cygnus configure options, so we can diagnose typos.
516
517   case $ac_option in
518
519   -bindir | --bindir | --bindi | --bind | --bin | --bi)
520     ac_prev=bindir ;;
521   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522     bindir=$ac_optarg ;;
523
524   -build | --build | --buil | --bui | --bu)
525     ac_prev=build_alias ;;
526   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527     build_alias=$ac_optarg ;;
528
529   -cache-file | --cache-file | --cache-fil | --cache-fi \
530   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531     ac_prev=cache_file ;;
532   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534     cache_file=$ac_optarg ;;
535
536   --config-cache | -C)
537     cache_file=config.cache ;;
538
539   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540     ac_prev=datadir ;;
541   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542   | --da=*)
543     datadir=$ac_optarg ;;
544
545   -disable-* | --disable-*)
546     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547     # Reject names that are not valid shell variable names.
548     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550    { (exit 1); exit 1; }; }
551     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552     eval "enable_$ac_feature=no" ;;
553
554   -enable-* | --enable-*)
555     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556     # Reject names that are not valid shell variable names.
557     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559    { (exit 1); exit 1; }; }
560     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561     case $ac_option in
562       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563       *) ac_optarg=yes ;;
564     esac
565     eval "enable_$ac_feature='$ac_optarg'" ;;
566
567   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569   | --exec | --exe | --ex)
570     ac_prev=exec_prefix ;;
571   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573   | --exec=* | --exe=* | --ex=*)
574     exec_prefix=$ac_optarg ;;
575
576   -gas | --gas | --ga | --g)
577     # Obsolete; use --with-gas.
578     with_gas=yes ;;
579
580   -help | --help | --hel | --he | -h)
581     ac_init_help=long ;;
582   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583     ac_init_help=recursive ;;
584   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585     ac_init_help=short ;;
586
587   -host | --host | --hos | --ho)
588     ac_prev=host_alias ;;
589   -host=* | --host=* | --hos=* | --ho=*)
590     host_alias=$ac_optarg ;;
591
592   -includedir | --includedir | --includedi | --included | --include \
593   | --includ | --inclu | --incl | --inc)
594     ac_prev=includedir ;;
595   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596   | --includ=* | --inclu=* | --incl=* | --inc=*)
597     includedir=$ac_optarg ;;
598
599   -infodir | --infodir | --infodi | --infod | --info | --inf)
600     ac_prev=infodir ;;
601   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602     infodir=$ac_optarg ;;
603
604   -libdir | --libdir | --libdi | --libd)
605     ac_prev=libdir ;;
606   -libdir=* | --libdir=* | --libdi=* | --libd=*)
607     libdir=$ac_optarg ;;
608
609   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610   | --libexe | --libex | --libe)
611     ac_prev=libexecdir ;;
612   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613   | --libexe=* | --libex=* | --libe=*)
614     libexecdir=$ac_optarg ;;
615
616   -localstatedir | --localstatedir | --localstatedi | --localstated \
617   | --localstate | --localstat | --localsta | --localst \
618   | --locals | --local | --loca | --loc | --lo)
619     ac_prev=localstatedir ;;
620   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623     localstatedir=$ac_optarg ;;
624
625   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626     ac_prev=mandir ;;
627   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628     mandir=$ac_optarg ;;
629
630   -nfp | --nfp | --nf)
631     # Obsolete; use --without-fp.
632     with_fp=no ;;
633
634   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635   | --no-cr | --no-c | -n)
636     no_create=yes ;;
637
638   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640     no_recursion=yes ;;
641
642   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644   | --oldin | --oldi | --old | --ol | --o)
645     ac_prev=oldincludedir ;;
646   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649     oldincludedir=$ac_optarg ;;
650
651   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652     ac_prev=prefix ;;
653   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654     prefix=$ac_optarg ;;
655
656   -program-prefix | --program-prefix | --program-prefi | --program-pref \
657   | --program-pre | --program-pr | --program-p)
658     ac_prev=program_prefix ;;
659   -program-prefix=* | --program-prefix=* | --program-prefi=* \
660   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661     program_prefix=$ac_optarg ;;
662
663   -program-suffix | --program-suffix | --program-suffi | --program-suff \
664   | --program-suf | --program-su | --program-s)
665     ac_prev=program_suffix ;;
666   -program-suffix=* | --program-suffix=* | --program-suffi=* \
667   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668     program_suffix=$ac_optarg ;;
669
670   -program-transform-name | --program-transform-name \
671   | --program-transform-nam | --program-transform-na \
672   | --program-transform-n | --program-transform- \
673   | --program-transform | --program-transfor \
674   | --program-transfo | --program-transf \
675   | --program-trans | --program-tran \
676   | --progr-tra | --program-tr | --program-t)
677     ac_prev=program_transform_name ;;
678   -program-transform-name=* | --program-transform-name=* \
679   | --program-transform-nam=* | --program-transform-na=* \
680   | --program-transform-n=* | --program-transform-=* \
681   | --program-transform=* | --program-transfor=* \
682   | --program-transfo=* | --program-transf=* \
683   | --program-trans=* | --program-tran=* \
684   | --progr-tra=* | --program-tr=* | --program-t=*)
685     program_transform_name=$ac_optarg ;;
686
687   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688   | -silent | --silent | --silen | --sile | --sil)
689     silent=yes ;;
690
691   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692     ac_prev=sbindir ;;
693   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694   | --sbi=* | --sb=*)
695     sbindir=$ac_optarg ;;
696
697   -sharedstatedir | --sharedstatedir | --sharedstatedi \
698   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699   | --sharedst | --shareds | --shared | --share | --shar \
700   | --sha | --sh)
701     ac_prev=sharedstatedir ;;
702   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705   | --sha=* | --sh=*)
706     sharedstatedir=$ac_optarg ;;
707
708   -site | --site | --sit)
709     ac_prev=site ;;
710   -site=* | --site=* | --sit=*)
711     site=$ac_optarg ;;
712
713   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714     ac_prev=srcdir ;;
715   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716     srcdir=$ac_optarg ;;
717
718   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719   | --syscon | --sysco | --sysc | --sys | --sy)
720     ac_prev=sysconfdir ;;
721   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723     sysconfdir=$ac_optarg ;;
724
725   -target | --target | --targe | --targ | --tar | --ta | --t)
726     ac_prev=target_alias ;;
727   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728     target_alias=$ac_optarg ;;
729
730   -v | -verbose | --verbose | --verbos | --verbo | --verb)
731     verbose=yes ;;
732
733   -version | --version | --versio | --versi | --vers | -V)
734     ac_init_version=: ;;
735
736   -with-* | --with-*)
737     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738     # Reject names that are not valid shell variable names.
739     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740       { echo "$as_me: error: invalid package name: $ac_package" >&2
741    { (exit 1); exit 1; }; }
742     ac_package=`echo $ac_package| sed 's/-/_/g'`
743     case $ac_option in
744       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745       *) ac_optarg=yes ;;
746     esac
747     eval "with_$ac_package='$ac_optarg'" ;;
748
749   -without-* | --without-*)
750     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751     # Reject names that are not valid shell variable names.
752     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753       { echo "$as_me: error: invalid package name: $ac_package" >&2
754    { (exit 1); exit 1; }; }
755     ac_package=`echo $ac_package | sed 's/-/_/g'`
756     eval "with_$ac_package=no" ;;
757
758   --x)
759     # Obsolete; use --with-x.
760     with_x=yes ;;
761
762   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763   | --x-incl | --x-inc | --x-in | --x-i)
764     ac_prev=x_includes ;;
765   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767     x_includes=$ac_optarg ;;
768
769   -x-libraries | --x-libraries | --x-librarie | --x-librari \
770   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771     ac_prev=x_libraries ;;
772   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774     x_libraries=$ac_optarg ;;
775
776   -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778    { (exit 1); exit 1; }; }
779     ;;
780
781   *=*)
782     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783     # Reject names that are not valid shell variable names.
784     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786    { (exit 1); exit 1; }; }
787     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788     eval "$ac_envvar='$ac_optarg'"
789     export $ac_envvar ;;
790
791   *)
792     # FIXME: should be removed in autoconf 3.0.
793     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
797     ;;
798
799   esac
800 done
801
802 if test -n "$ac_prev"; then
803   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804   { echo "$as_me: error: missing argument to $ac_option" >&2
805    { (exit 1); exit 1; }; }
806 fi
807
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
810 do
811   eval ac_val=$`echo $ac_var`
812   case $ac_val in
813     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815    { (exit 1); exit 1; }; };;
816   esac
817 done
818
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821               localstatedir libdir includedir oldincludedir infodir mandir
822 do
823   eval ac_val=$`echo $ac_var`
824   case $ac_val in
825     [\\/$]* | ?:[\\/]* ) ;;
826     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827    { (exit 1); exit 1; }; };;
828   esac
829 done
830
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
837
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840   if test "x$build_alias" = x; then
841     cross_compiling=maybe
842     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843     If a cross compiler is detected then cross compile mode will be used." >&2
844   elif test "x$build_alias" != "x$host_alias"; then
845     cross_compiling=yes
846   fi
847 fi
848
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852 test "$silent" = yes && exec 6>/dev/null
853
854
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857   ac_srcdir_defaulted=yes
858   # Try the directory containing this script, then its parent.
859   ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861          X"$0" : 'X\(//\)[^/]' \| \
862          X"$0" : 'X\(//\)$' \| \
863          X"$0" : 'X\(/\)' \| \
864          .     : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868           /^X\(\/\/\)$/{ s//\1/; q; }
869           /^X\(\/\).*/{ s//\1/; q; }
870           s/.*/./; q'`
871   srcdir=$ac_confdir
872   if test ! -r $srcdir/$ac_unique_file; then
873     srcdir=..
874   fi
875 else
876   ac_srcdir_defaulted=no
877 fi
878 if test ! -r $srcdir/$ac_unique_file; then
879   if test "$ac_srcdir_defaulted" = yes; then
880     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881    { (exit 1); exit 1; }; }
882   else
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884    { (exit 1); exit 1; }; }
885   fi
886 fi
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889    { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
927
928 #
929 # Report the --help message.
930 #
931 if test "$ac_init_help" = "long"; then
932   # Omit some internal or obsolete options to make the list less imposing.
933   # This message is too long to be a string in the A/UX 3.1 sh.
934   cat <<_ACEOF
935 \`configure' configures libjava version-unused to adapt to many kinds of systems.
936
937 Usage: $0 [OPTION]... [VAR=VALUE]...
938
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE.  See below for descriptions of some of the useful variables.
941
942 Defaults for the options are specified in brackets.
943
944 Configuration:
945   -h, --help              display this help and exit
946       --help=short        display options specific to this package
947       --help=recursive    display the short help of all the included packages
948   -V, --version           display version information and exit
949   -q, --quiet, --silent   do not print \`checking...' messages
950       --cache-file=FILE   cache test results in FILE [disabled]
951   -C, --config-cache      alias for \`--cache-file=config.cache'
952   -n, --no-create         do not create output files
953       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
954
955 _ACEOF
956
957   cat <<_ACEOF
958 Installation directories:
959   --prefix=PREFIX         install architecture-independent files in PREFIX
960                           [$ac_default_prefix]
961   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
962                           [PREFIX]
963
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
968
969 For better control, use the options below.
970
971 Fine tuning of the installation directories:
972   --bindir=DIR           user executables [EPREFIX/bin]
973   --sbindir=DIR          system admin executables [EPREFIX/sbin]
974   --libexecdir=DIR       program executables [EPREFIX/libexec]
975   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
976   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
977   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
978   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
979   --libdir=DIR           object code libraries [EPREFIX/lib]
980   --includedir=DIR       C header files [PREFIX/include]
981   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
982   --infodir=DIR          info documentation [PREFIX/info]
983   --mandir=DIR           man documentation [PREFIX/man]
984 _ACEOF
985
986   cat <<\_ACEOF
987
988 Program names:
989   --program-prefix=PREFIX            prepend PREFIX to installed program names
990   --program-suffix=SUFFIX            append SUFFIX to installed program names
991   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
992
993 X features:
994   --x-includes=DIR    X include files are in DIR
995   --x-libraries=DIR   X library files are in DIR
996
997 System types:
998   --build=BUILD     configure for building on BUILD [guessed]
999   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1000   --target=TARGET   configure for building compilers for TARGET [HOST]
1001 _ACEOF
1002 fi
1003
1004 if test -n "$ac_init_help"; then
1005   case $ac_init_help in
1006      short | recursive ) echo "Configuration of libjava version-unused:";;
1007    esac
1008   cat <<\_ACEOF
1009
1010 Optional Features:
1011   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1012   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1013   --enable-multilib       build many library versions (default)
1014   --enable-version-specific-runtime-libs
1015                           specify that runtime libraries should be installed
1016                           in a compiler-specific directory
1017   --enable-plugin         build gcjwebplugin web browser plugin
1018   --enable-gconf-peer     compile GConf native peers for util.preferences
1019   --enable-java-maintainer-mode
1020                           allow rebuilding of .class and .h files
1021   --disable-dependency-tracking  speeds up one-time build
1022   --enable-dependency-tracking   do not reject slow dependency extractors
1023   --enable-maintainer-mode  enable make rules and dependencies not useful
1024                           (and sometimes confusing) to the casual installer
1025   --enable-libgcj-debug   enable runtime debugging code
1026   --enable-java-awt       list of AWT peer implementations to be built
1027   --enable-shared[=PKGS]
1028                           build shared libraries [default=yes]
1029   --enable-static[=PKGS]
1030                           build static libraries [default=yes]
1031   --enable-fast-install[=PKGS]
1032                           optimize for fast installation [default=yes]
1033   --disable-libtool-lock  avoid locking (might break parallel builds)
1034   --disable-getenv-properties
1035                           don't set system properties from GCJ_PROPERTIES
1036   --enable-hash-synchronization
1037                           use global hash table for monitor locks
1038   --enable-gc-debug       include full support for pointer backtracing etc.
1039   --enable-interpreter    enable interpreter
1040   --enable-sjlj-exceptions
1041                           force use of builtin_setjmp for exceptions
1042   --disable-java-net      disable java.net
1043   --disable-jvmpi         disable JVMPI support
1044   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1045   --disable-rpath         do not hardcode runtime library paths
1046   --enable-tls            Use thread-local storage [default=yes]
1047
1048 Optional Packages:
1049   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1050   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1051   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1052   --with-target-subdir=SUBDIR
1053                           configure in a subdirectory
1054   --with-cross-host=HOST  configure with a cross compiler from HOST
1055   --with-newlib           configure with newlib
1056   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1057   --with-pic              try to use only PIC/non-PIC objects [default=use
1058                           both]
1059   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1060   --with-ecj-jar=FILE     use preinstalled ecj jar
1061   --with-java-home=DIRECTORY
1062                           value of java.home system property
1063   --with-win32-nlsapi=ansi or unicows or unicode
1064                           native MinGW libgcj Win32 OS API (default is ansi)
1065   --without-libffi        don't use libffi
1066   --with-ecos             enable runtime eCos target support
1067   --with-system-zlib      use installed libz
1068   --with-x                use the X Window System
1069   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1070   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1071   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1072
1073 Some influential environment variables:
1074   CC          C compiler command
1075   CFLAGS      C compiler flags
1076   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1077               nonstandard directory <lib dir>
1078   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079               headers in a nonstandard directory <include dir>
1080   CXX         C++ compiler command
1081   CXXFLAGS    C++ compiler flags
1082   CPP         C preprocessor
1083   CXXCPP      C++ preprocessor
1084
1085 Use these variables to override the choices made by `configure' or to help
1086 it to find libraries and programs with nonstandard names/locations.
1087
1088 _ACEOF
1089 fi
1090
1091 if test "$ac_init_help" = "recursive"; then
1092   # If there are subdirs, report their specific --help.
1093   ac_popdir=`pwd`
1094   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1095     test -d $ac_dir || continue
1096     ac_builddir=.
1097
1098 if test "$ac_dir" != .; then
1099   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1100   # A "../" for each directory in $ac_dir_suffix.
1101   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1102 else
1103   ac_dir_suffix= ac_top_builddir=
1104 fi
1105
1106 case $srcdir in
1107   .)  # No --srcdir option.  We are building in place.
1108     ac_srcdir=.
1109     if test -z "$ac_top_builddir"; then
1110        ac_top_srcdir=.
1111     else
1112        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1113     fi ;;
1114   [\\/]* | ?:[\\/]* )  # Absolute path.
1115     ac_srcdir=$srcdir$ac_dir_suffix;
1116     ac_top_srcdir=$srcdir ;;
1117   *) # Relative path.
1118     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1119     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 esac
1121
1122 # Do not use `cd foo && pwd` to compute absolute paths, because
1123 # the directories may not exist.
1124 case `pwd` in
1125 .) ac_abs_builddir="$ac_dir";;
1126 *)
1127   case "$ac_dir" in
1128   .) ac_abs_builddir=`pwd`;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1130   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *)
1136   case ${ac_top_builddir}. in
1137   .) ac_abs_top_builddir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1139   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_srcdir=$ac_srcdir;;
1144 *)
1145   case $ac_srcdir in
1146   .) ac_abs_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1148   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149   esac;;
1150 esac
1151 case $ac_abs_builddir in
1152 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *)
1154   case $ac_top_srcdir in
1155   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1156   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1157   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158   esac;;
1159 esac
1160
1161     cd $ac_dir
1162     # Check for guested configure; otherwise get Cygnus style configure.
1163     if test -f $ac_srcdir/configure.gnu; then
1164       echo
1165       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1166     elif test -f $ac_srcdir/configure; then
1167       echo
1168       $SHELL $ac_srcdir/configure  --help=recursive
1169     elif test -f $ac_srcdir/configure.ac ||
1170            test -f $ac_srcdir/configure.in; then
1171       echo
1172       $ac_configure --help
1173     else
1174       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1175     fi
1176     cd $ac_popdir
1177   done
1178 fi
1179
1180 test -n "$ac_init_help" && exit 0
1181 if $ac_init_version; then
1182   cat <<\_ACEOF
1183 libjava configure version-unused
1184 generated by GNU Autoconf 2.59
1185
1186 Copyright (C) 2003 Free Software Foundation, Inc.
1187 This configure script is free software; the Free Software Foundation
1188 gives unlimited permission to copy, distribute and modify it.
1189 _ACEOF
1190   exit 0
1191 fi
1192 exec 5>config.log
1193 cat >&5 <<_ACEOF
1194 This file contains any messages produced by compilers while
1195 running configure, to aid debugging if configure makes a mistake.
1196
1197 It was created by libjava $as_me version-unused, which was
1198 generated by GNU Autoconf 2.59.  Invocation command line was
1199
1200   $ $0 $@
1201
1202 _ACEOF
1203 {
1204 cat <<_ASUNAME
1205 ## --------- ##
1206 ## Platform. ##
1207 ## --------- ##
1208
1209 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1210 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1211 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1212 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1213 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1214
1215 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1216 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1217
1218 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1219 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1220 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1221 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1222 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1223 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1224 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1225
1226 _ASUNAME
1227
1228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1229 for as_dir in $PATH
1230 do
1231   IFS=$as_save_IFS
1232   test -z "$as_dir" && as_dir=.
1233   echo "PATH: $as_dir"
1234 done
1235
1236 } >&5
1237
1238 cat >&5 <<_ACEOF
1239
1240
1241 ## ----------- ##
1242 ## Core tests. ##
1243 ## ----------- ##
1244
1245 _ACEOF
1246
1247
1248 # Keep a trace of the command line.
1249 # Strip out --no-create and --no-recursion so they do not pile up.
1250 # Strip out --silent because we don't want to record it for future runs.
1251 # Also quote any args containing shell meta-characters.
1252 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_configure_args=
1254 ac_configure_args0=
1255 ac_configure_args1=
1256 ac_sep=
1257 ac_must_keep_next=false
1258 for ac_pass in 1 2
1259 do
1260   for ac_arg
1261   do
1262     case $ac_arg in
1263     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1264     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1265     | -silent | --silent | --silen | --sile | --sil)
1266       continue ;;
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     esac
1270     case $ac_pass in
1271     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1272     2)
1273       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1274       if test $ac_must_keep_next = true; then
1275         ac_must_keep_next=false # Got value, back to normal.
1276       else
1277         case $ac_arg in
1278           *=* | --config-cache | -C | -disable-* | --disable-* \
1279           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1280           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1281           | -with-* | --with-* | -without-* | --without-* | --x)
1282             case "$ac_configure_args0 " in
1283               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284             esac
1285             ;;
1286           -* ) ac_must_keep_next=true ;;
1287         esac
1288       fi
1289       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1290       # Get rid of the leading space.
1291       ac_sep=" "
1292       ;;
1293     esac
1294   done
1295 done
1296 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1297 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1298
1299 # When interrupted or exit'd, cleanup temporary files, and complete
1300 # config.log.  We remove comments because anyway the quotes in there
1301 # would cause problems or look ugly.
1302 # WARNING: Be sure not to use single quotes in there, as some shells,
1303 # such as our DU 5.0 friend, will then `close' the trap.
1304 trap 'exit_status=$?
1305   # Save into config.log some information that might help in debugging.
1306   {
1307     echo
1308
1309     cat <<\_ASBOX
1310 ## ---------------- ##
1311 ## Cache variables. ##
1312 ## ---------------- ##
1313 _ASBOX
1314     echo
1315     # The following way of writing the cache mishandles newlines in values,
1316 {
1317   (set) 2>&1 |
1318     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319     *ac_space=\ *)
1320       sed -n \
1321         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1322           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1323       ;;
1324     *)
1325       sed -n \
1326         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1327       ;;
1328     esac;
1329 }
1330     echo
1331
1332     cat <<\_ASBOX
1333 ## ----------------- ##
1334 ## Output variables. ##
1335 ## ----------------- ##
1336 _ASBOX
1337     echo
1338     for ac_var in $ac_subst_vars
1339     do
1340       eval ac_val=$`echo $ac_var`
1341       echo "$ac_var='"'"'$ac_val'"'"'"
1342     done | sort
1343     echo
1344
1345     if test -n "$ac_subst_files"; then
1346       cat <<\_ASBOX
1347 ## ------------- ##
1348 ## Output files. ##
1349 ## ------------- ##
1350 _ASBOX
1351       echo
1352       for ac_var in $ac_subst_files
1353       do
1354         eval ac_val=$`echo $ac_var`
1355         echo "$ac_var='"'"'$ac_val'"'"'"
1356       done | sort
1357       echo
1358     fi
1359
1360     if test -s confdefs.h; then
1361       cat <<\_ASBOX
1362 ## ----------- ##
1363 ## confdefs.h. ##
1364 ## ----------- ##
1365 _ASBOX
1366       echo
1367       sed "/^$/d" confdefs.h | sort
1368       echo
1369     fi
1370     test "$ac_signal" != 0 &&
1371       echo "$as_me: caught signal $ac_signal"
1372     echo "$as_me: exit $exit_status"
1373   } >&5
1374   rm -f core *.core &&
1375   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376     exit $exit_status
1377      ' 0
1378 for ac_signal in 1 2 13 15; do
1379   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1380 done
1381 ac_signal=0
1382
1383 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1384 rm -rf conftest* confdefs.h
1385 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 echo >confdefs.h
1387
1388 # Predefined preprocessor variables.
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_NAME "$PACKAGE_NAME"
1392 _ACEOF
1393
1394
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1397 _ACEOF
1398
1399
1400 cat >>confdefs.h <<_ACEOF
1401 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1402 _ACEOF
1403
1404
1405 cat >>confdefs.h <<_ACEOF
1406 #define PACKAGE_STRING "$PACKAGE_STRING"
1407 _ACEOF
1408
1409
1410 cat >>confdefs.h <<_ACEOF
1411 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1412 _ACEOF
1413
1414
1415 # Let the site file select an alternate cache file if it wants to.
1416 # Prefer explicitly selected file to automatically selected ones.
1417 if test -z "$CONFIG_SITE"; then
1418   if test "x$prefix" != xNONE; then
1419     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1420   else
1421     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422   fi
1423 fi
1424 for ac_site_file in $CONFIG_SITE; do
1425   if test -r "$ac_site_file"; then
1426     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1427 echo "$as_me: loading site script $ac_site_file" >&6;}
1428     sed 's/^/| /' "$ac_site_file" >&5
1429     . "$ac_site_file"
1430   fi
1431 done
1432
1433 if test -r "$cache_file"; then
1434   # Some versions of bash will fail to source /dev/null (special
1435   # files actually), so we avoid doing that.
1436   if test -f "$cache_file"; then
1437     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1438 echo "$as_me: loading cache $cache_file" >&6;}
1439     case $cache_file in
1440       [\\/]* | ?:[\\/]* ) . $cache_file;;
1441       *)                      . ./$cache_file;;
1442     esac
1443   fi
1444 else
1445   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1446 echo "$as_me: creating cache $cache_file" >&6;}
1447   >$cache_file
1448 fi
1449
1450 # Check that the precious variables saved in the cache have kept the same
1451 # value.
1452 ac_cache_corrupted=false
1453 for ac_var in `(set) 2>&1 |
1454                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1455   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1456   eval ac_new_set=\$ac_env_${ac_var}_set
1457   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1458   eval ac_new_val="\$ac_env_${ac_var}_value"
1459   case $ac_old_set,$ac_new_set in
1460     set,)
1461       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1463       ac_cache_corrupted=: ;;
1464     ,set)
1465       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1467       ac_cache_corrupted=: ;;
1468     ,);;
1469     *)
1470       if test "x$ac_old_val" != "x$ac_new_val"; then
1471         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1472 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1473         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1474 echo "$as_me:   former value:  $ac_old_val" >&2;}
1475         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1476 echo "$as_me:   current value: $ac_new_val" >&2;}
1477         ac_cache_corrupted=:
1478       fi;;
1479   esac
1480   # Pass precious variables to config.status.
1481   if test "$ac_new_set" = set; then
1482     case $ac_new_val in
1483     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1484       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1485     *) ac_arg=$ac_var=$ac_new_val ;;
1486     esac
1487     case " $ac_configure_args " in
1488       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1489       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1490     esac
1491   fi
1492 done
1493 if $ac_cache_corrupted; then
1494   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1495 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1496   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1497 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1498    { (exit 1); exit 1; }; }
1499 fi
1500
1501 ac_ext=c
1502 ac_cpp='$CPP $CPPFLAGS'
1503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536 ac_aux_dir=
1537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538   if test -f $ac_dir/install-sh; then
1539     ac_aux_dir=$ac_dir
1540     ac_install_sh="$ac_aux_dir/install-sh -c"
1541     break
1542   elif test -f $ac_dir/install.sh; then
1543     ac_aux_dir=$ac_dir
1544     ac_install_sh="$ac_aux_dir/install.sh -c"
1545     break
1546   elif test -f $ac_dir/shtool; then
1547     ac_aux_dir=$ac_dir
1548     ac_install_sh="$ac_aux_dir/shtool install -c"
1549     break
1550   fi
1551 done
1552 if test -z "$ac_aux_dir"; then
1553   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555    { (exit 1); exit 1; }; }
1556 fi
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1560
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565    { (exit 1); exit 1; }; }
1566
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570   echo $ECHO_N "(cached) $ECHO_C" >&6
1571 else
1572   ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574   ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578    { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582    { (exit 1); exit 1; }; }
1583
1584 fi
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1587 build=$ac_cv_build
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1591
1592
1593  case ${build_alias} in
1594   "") build_noncanonical=${build} ;;
1595   *) build_noncanonical=${build_alias} ;;
1596 esac
1597
1598  case ${host_alias} in
1599   "") host_noncanonical=${build_noncanonical} ;;
1600   *) host_noncanonical=${host_alias} ;;
1601 esac
1602
1603  case ${target_alias} in
1604   "") target_noncanonical=${host_noncanonical} ;;
1605   *) target_noncanonical=${target_alias} ;;
1606 esac
1607
1608
1609 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1610 # have matching libraries, they should use host libraries: Makefile.tpl
1611 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1612 # However, they still use the build modules, because the corresponding
1613 # host modules (e.g. bison) are only built for the host when bootstrap
1614 # finishes. So:
1615 # - build_subdir is where we find build modules, and never changes.
1616 # - build_libsubdir is where we find build libraries, and can be overridden.
1617
1618 # Prefix 'build-' so this never conflicts with target_subdir.
1619 build_subdir="build-${build_noncanonical}"
1620
1621 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1622 if test "${with_build_libsubdir+set}" = set; then
1623   withval="$with_build_libsubdir"
1624   build_libsubdir="$withval"
1625 else
1626   build_libsubdir="$build_subdir"
1627 fi;
1628 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1629 if ( test $srcdir = . && test -d gcc ) \
1630    || test -d $srcdir/../host-${host_noncanonical}; then
1631   host_subdir="host-${host_noncanonical}"
1632 else
1633   host_subdir=.
1634 fi
1635 # No prefix.
1636 target_subdir=${target_noncanonical}
1637
1638
1639 # We use these options to decide which functions to include.
1640
1641 # Check whether --with-target-subdir or --without-target-subdir was given.
1642 if test "${with_target_subdir+set}" = set; then
1643   withval="$with_target_subdir"
1644
1645 fi;
1646
1647 # We may get other options which we don't document:
1648 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1649
1650 # Find the rest of the source tree framework.
1651 # Default to --enable-multilib
1652 # Check whether --enable-multilib or --disable-multilib was given.
1653 if test "${enable_multilib+set}" = set; then
1654   enableval="$enable_multilib"
1655   case "$enableval" in
1656   yes) multilib=yes ;;
1657   no)  multilib=no ;;
1658   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1659 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1660    { (exit 1); exit 1; }; } ;;
1661  esac
1662 else
1663   multilib=yes
1664 fi;
1665
1666 # We may get other options which we leave undocumented:
1667 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1668 # See config-ml.in if you want the gory details.
1669
1670 if test "$srcdir" = "."; then
1671   if test "$with_target_subdir" != "."; then
1672     multi_basedir="$srcdir/$with_multisrctop../.."
1673   else
1674     multi_basedir="$srcdir/$with_multisrctop.."
1675   fi
1676 else
1677   multi_basedir="$srcdir/.."
1678 fi
1679
1680
1681 # Even if the default multilib is not a cross compilation,
1682 # it may be that some of the other multilibs are.
1683 if test $cross_compiling = no && test $multilib = yes \
1684    && test "x${with_multisubdir}" != x ; then
1685    cross_compiling=maybe
1686 fi
1687
1688           ac_config_commands="$ac_config_commands default-1"
1689
1690
1691 echo "$as_me:$LINENO: checking host system type" >&5
1692 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1693 if test "${ac_cv_host+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   ac_cv_host_alias=$host_alias
1697 test -z "$ac_cv_host_alias" &&
1698   ac_cv_host_alias=$ac_cv_build_alias
1699 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1700   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1701 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1702    { (exit 1); exit 1; }; }
1703
1704 fi
1705 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1706 echo "${ECHO_T}$ac_cv_host" >&6
1707 host=$ac_cv_host
1708 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1709 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1710 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1711
1712
1713 echo "$as_me:$LINENO: checking target system type" >&5
1714 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1715 if test "${ac_cv_target+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   ac_cv_target_alias=$target_alias
1719 test "x$ac_cv_target_alias" = "x" &&
1720   ac_cv_target_alias=$ac_cv_host_alias
1721 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1722   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1723 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1724    { (exit 1); exit 1; }; }
1725
1726 fi
1727 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1728 echo "${ECHO_T}$ac_cv_target" >&6
1729 target=$ac_cv_target
1730 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1731 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1732 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1733
1734
1735 # The aliases save the names the user supplied, while $host etc.
1736 # will get canonicalized.
1737 test -n "$target_alias" &&
1738   test "$program_prefix$program_suffix$program_transform_name" = \
1739     NONENONEs,x,x, &&
1740   program_prefix=${target_alias}-
1741  case ${build_alias} in
1742   "") build_noncanonical=${build} ;;
1743   *) build_noncanonical=${build_alias} ;;
1744 esac
1745
1746  case ${target_alias} in
1747   "") target_noncanonical=${host_noncanonical} ;;
1748   *) target_noncanonical=${target_alias} ;;
1749 esac
1750
1751
1752
1753
1754 # This works around the fact that libtool configuration may change LD
1755 # for this particular configuration, but some shells, instead of
1756 # keeping the changes in LD private, export them just because LD is
1757 # exported.
1758 ORIGINAL_LD_FOR_MULTILIBS=$LD
1759
1760 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1762 LN_S=$as_ln_s
1763 if test "$LN_S" = "ln -s"; then
1764   echo "$as_me:$LINENO: result: yes" >&5
1765 echo "${ECHO_T}yes" >&6
1766 else
1767   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1768 echo "${ECHO_T}no, using $LN_S" >&6
1769 fi
1770
1771
1772 # This works around an automake problem.
1773 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1774
1775
1776
1777 # Check whether --with-cross-host or --without-cross-host was given.
1778 if test "${with_cross_host+set}" = set; then
1779   withval="$with_cross_host"
1780
1781 fi;
1782
1783
1784 # Check whether --with-newlib or --without-newlib was given.
1785 if test "${with_newlib+set}" = set; then
1786   withval="$with_newlib"
1787
1788 fi;
1789
1790 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1791 if test "${enable_version_specific_runtime_libs+set}" = set; then
1792   enableval="$enable_version_specific_runtime_libs"
1793   case "$enableval" in
1794       yes) version_specific_libs=yes ;;
1795       no)  version_specific_libs=no ;;
1796       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1797 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1798    { (exit 1); exit 1; }; };;
1799      esac
1800 else
1801   version_specific_libs=no
1802
1803 fi;
1804
1805 # Check whether --enable-plugin or --disable-plugin was given.
1806 if test "${enable_plugin+set}" = set; then
1807   enableval="$enable_plugin"
1808   case "$enableval" in
1809       yes) plugin_enabled=yes ;;
1810       no)  plugin_enabled=no ;;
1811       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1812 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1813    { (exit 1); exit 1; }; };;
1814      esac
1815 else
1816   plugin_enabled=no
1817
1818 fi;
1819
1820 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1821 if test "${enable_gconf_peer+set}" = set; then
1822   enableval="$enable_gconf_peer"
1823   case "$enableval" in
1824       yes) gconf_enabled=yes ;;
1825       no)  gconf_enabled=no ;;
1826       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1827 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1828    { (exit 1); exit 1; }; };;
1829      esac
1830 else
1831   gconf_enabled=no
1832
1833 fi;
1834
1835 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1836 if test "${enable_java_maintainer_mode+set}" = set; then
1837   enableval="$enable_java_maintainer_mode"
1838
1839 fi;
1840
1841
1842 if test "$enable_java_maintainer_mode" = yes; then
1843   JAVA_MAINTAINER_MODE_TRUE=
1844   JAVA_MAINTAINER_MODE_FALSE='#'
1845 else
1846   JAVA_MAINTAINER_MODE_TRUE='#'
1847   JAVA_MAINTAINER_MODE_FALSE=
1848 fi
1849
1850
1851 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1852
1853
1854 # (1) We use an abnormal CXX (without library references), so we
1855 # must cache it under a different name.
1856 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1857 # the non-multilib-adjusted value will be used in multilibs.
1858 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1859 # (4) As another side effect, automake doesn't automatically include them
1860 # in Makefile.in.
1861 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1862 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1863 # used in later tests.  This may not be necessary in libjava; I don't know.
1864
1865
1866 save_CXXFLAGS="$CXXFLAGS"
1867 CXXFLAGS="$CXXFLAGS -fno-builtin"
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$CC"; then
1882   ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 CC=$ac_cv_prog_CC
1901 if test -n "$CC"; then
1902   echo "$as_me:$LINENO: result: $CC" >&5
1903 echo "${ECHO_T}$CC" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 fi
1910 if test -z "$ac_cv_prog_CC"; then
1911   ac_ct_CC=$CC
1912   # Extract the first word of "gcc", so it can be a program name with args.
1913 set dummy gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$ac_ct_CC"; then
1920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_ac_ct_CC="gcc"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1939 if test -n "$ac_ct_CC"; then
1940   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1941 echo "${ECHO_T}$ac_ct_CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947   CC=$ac_ct_CC
1948 else
1949   CC="$ac_cv_prog_CC"
1950 fi
1951
1952 if test -z "$CC"; then
1953   if test -n "$ac_tool_prefix"; then
1954   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1955 set dummy ${ac_tool_prefix}cc; ac_word=$2
1956 echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_CC+set}" = set; then
1959   echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961   if test -n "$CC"; then
1962   ac_cv_prog_CC="$CC" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967   IFS=$as_save_IFS
1968   test -z "$as_dir" && as_dir=.
1969   for ac_exec_ext in '' $ac_executable_extensions; do
1970   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971     ac_cv_prog_CC="${ac_tool_prefix}cc"
1972     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973     break 2
1974   fi
1975 done
1976 done
1977
1978 fi
1979 fi
1980 CC=$ac_cv_prog_CC
1981 if test -n "$CC"; then
1982   echo "$as_me:$LINENO: result: $CC" >&5
1983 echo "${ECHO_T}$CC" >&6
1984 else
1985   echo "$as_me:$LINENO: result: no" >&5
1986 echo "${ECHO_T}no" >&6
1987 fi
1988
1989 fi
1990 if test -z "$ac_cv_prog_CC"; then
1991   ac_ct_CC=$CC
1992   # Extract the first word of "cc", so it can be a program name with args.
1993 set dummy cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$ac_ct_CC"; then
2000   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_ac_ct_CC="cc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2019 if test -n "$ac_ct_CC"; then
2020   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2021 echo "${ECHO_T}$ac_ct_CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027   CC=$ac_ct_CC
2028 else
2029   CC="$ac_cv_prog_CC"
2030 fi
2031
2032 fi
2033 if test -z "$CC"; then
2034   # Extract the first word of "cc", so it can be a program name with args.
2035 set dummy cc; ac_word=$2
2036 echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   if test -n "$CC"; then
2042   ac_cv_prog_CC="$CC" # Let the user override the test.
2043 else
2044   ac_prog_rejected=no
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2053        ac_prog_rejected=yes
2054        continue
2055      fi
2056     ac_cv_prog_CC="cc"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063 if test $ac_prog_rejected = yes; then
2064   # We found a bogon in the path, so make sure we never use it.
2065   set dummy $ac_cv_prog_CC
2066   shift
2067   if test $# != 0; then
2068     # We chose a different compiler from the bogus one.
2069     # However, it has the same basename, so the bogon will be chosen
2070     # first if we set CC to just the basename; use the full file name.
2071     shift
2072     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2073   fi
2074 fi
2075 fi
2076 fi
2077 CC=$ac_cv_prog_CC
2078 if test -n "$CC"; then
2079   echo "$as_me:$LINENO: result: $CC" >&5
2080 echo "${ECHO_T}$CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086 fi
2087 if test -z "$CC"; then
2088   if test -n "$ac_tool_prefix"; then
2089   for ac_prog in cl
2090   do
2091     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2093 echo "$as_me:$LINENO: checking for $ac_word" >&5
2094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095 if test "${ac_cv_prog_CC+set}" = set; then
2096   echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098   if test -n "$CC"; then
2099   ac_cv_prog_CC="$CC" # Let the user override the test.
2100 else
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114
2115 fi
2116 fi
2117 CC=$ac_cv_prog_CC
2118 if test -n "$CC"; then
2119   echo "$as_me:$LINENO: result: $CC" >&5
2120 echo "${ECHO_T}$CC" >&6
2121 else
2122   echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6
2124 fi
2125
2126     test -n "$CC" && break
2127   done
2128 fi
2129 if test -z "$CC"; then
2130   ac_ct_CC=$CC
2131   for ac_prog in cl
2132 do
2133   # Extract the first word of "$ac_prog", so it can be a program name with args.
2134 set dummy $ac_prog; ac_word=$2
2135 echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138   echo $ECHO_N "(cached) $ECHO_C" >&6
2139 else
2140   if test -n "$ac_ct_CC"; then
2141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142 else
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2145 do
2146   IFS=$as_save_IFS
2147   test -z "$as_dir" && as_dir=.
2148   for ac_exec_ext in '' $ac_executable_extensions; do
2149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150     ac_cv_prog_ac_ct_CC="$ac_prog"
2151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152     break 2
2153   fi
2154 done
2155 done
2156
2157 fi
2158 fi
2159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160 if test -n "$ac_ct_CC"; then
2161   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162 echo "${ECHO_T}$ac_ct_CC" >&6
2163 else
2164   echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6
2166 fi
2167
2168   test -n "$ac_ct_CC" && break
2169 done
2170
2171   CC=$ac_ct_CC
2172 fi
2173
2174 fi
2175
2176
2177 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2178 See \`config.log' for more details." >&5
2179 echo "$as_me: error: no acceptable C compiler found in \$PATH
2180 See \`config.log' for more details." >&2;}
2181    { (exit 1); exit 1; }; }
2182
2183 # Provide some information about the compiler.
2184 echo "$as_me:$LINENO:" \
2185      "checking for C compiler version" >&5
2186 ac_compiler=`set X $ac_compile; echo $2`
2187 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2188   (eval $ac_compiler --version </dev/null >&5) 2>&5
2189   ac_status=$?
2190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191   (exit $ac_status); }
2192 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2193   (eval $ac_compiler -v </dev/null >&5) 2>&5
2194   ac_status=$?
2195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196   (exit $ac_status); }
2197 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2198   (eval $ac_compiler -V </dev/null >&5) 2>&5
2199   ac_status=$?
2200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201   (exit $ac_status); }
2202
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209
2210 int
2211 main ()
2212 {
2213
2214   ;
2215   return 0;
2216 }
2217 _ACEOF
2218 # FIXME: Cleanup?
2219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2220   (eval $ac_link) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }; then
2224   gcc_no_link=no
2225 else
2226   gcc_no_link=yes
2227 fi
2228
2229 if test x$gcc_no_link = xyes; then
2230   # Setting cross_compile will disable run tests; it will
2231   # also disable AC_CHECK_FILE but that's generally
2232   # correct if we can't link.
2233   cross_compiling=yes
2234   EXEEXT=
2235 else
2236   cat >conftest.$ac_ext <<_ACEOF
2237 /* confdefs.h.  */
2238 _ACEOF
2239 cat confdefs.h >>conftest.$ac_ext
2240 cat >>conftest.$ac_ext <<_ACEOF
2241 /* end confdefs.h.  */
2242
2243 int
2244 main ()
2245 {
2246
2247   ;
2248   return 0;
2249 }
2250 _ACEOF
2251 ac_clean_files_save=$ac_clean_files
2252 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2253 # Try to create an executable without -o first, disregard a.out.
2254 # It will help us diagnose broken compilers, and finding out an intuition
2255 # of exeext.
2256 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2257 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2258 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2260   (eval $ac_link_default) 2>&5
2261   ac_status=$?
2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263   (exit $ac_status); }; then
2264   # Find the output, starting from the most likely.  This scheme is
2265 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266 # resort.
2267
2268 # Be careful to initialize this variable, since it used to be cached.
2269 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2270 ac_cv_exeext=
2271 # b.out is created by i960 compilers.
2272 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273 do
2274   test -f "$ac_file" || continue
2275   case $ac_file in
2276     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277         ;;
2278     conftest.$ac_ext )
2279         # This is the source file.
2280         ;;
2281     [ab].out )
2282         # We found the default executable, but exeext='' is most
2283         # certainly right.
2284         break;;
2285     *.* )
2286         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287         # FIXME: I believe we export ac_cv_exeext for Libtool,
2288         # but it would be cool to find out if it's true.  Does anybody
2289         # maintain Libtool? --akim.
2290         export ac_cv_exeext
2291         break;;
2292     * )
2293         break;;
2294   esac
2295 done
2296 else
2297   echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2301 See \`config.log' for more details." >&5
2302 echo "$as_me: error: C compiler cannot create executables
2303 See \`config.log' for more details." >&2;}
2304    { (exit 77); exit 77; }; }
2305 fi
2306
2307 ac_exeext=$ac_cv_exeext
2308 echo "$as_me:$LINENO: result: $ac_file" >&5
2309 echo "${ECHO_T}$ac_file" >&6
2310
2311 # Check the compiler produces executables we can run.  If not, either
2312 # the compiler is broken, or we cross compile.
2313 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2314 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2315 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2316 # If not cross compiling, check that we can run a simple program.
2317 if test "$cross_compiling" != yes; then
2318   if { ac_try='./$ac_file'
2319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }; }; then
2324     cross_compiling=no
2325   else
2326     if test "$cross_compiling" = maybe; then
2327         cross_compiling=yes
2328     else
2329         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2330 If you meant to cross compile, use \`--host'.
2331 See \`config.log' for more details." >&5
2332 echo "$as_me: error: cannot run C compiled programs.
2333 If you meant to cross compile, use \`--host'.
2334 See \`config.log' for more details." >&2;}
2335    { (exit 1); exit 1; }; }
2336     fi
2337   fi
2338 fi
2339 echo "$as_me:$LINENO: result: yes" >&5
2340 echo "${ECHO_T}yes" >&6
2341
2342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2343 ac_clean_files=$ac_clean_files_save
2344 # Check the compiler produces executables we can run.  If not, either
2345 # the compiler is broken, or we cross compile.
2346 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2348 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2349 echo "${ECHO_T}$cross_compiling" >&6
2350
2351 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354   (eval $ac_link) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2359 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2360 # work properly (i.e., refer to `conftest.exe'), while it won't with
2361 # `rm'.
2362 for ac_file in conftest.exe conftest conftest.*; do
2363   test -f "$ac_file" || continue
2364   case $ac_file in
2365     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2366     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367           export ac_cv_exeext
2368           break;;
2369     * ) break;;
2370   esac
2371 done
2372 else
2373   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374 See \`config.log' for more details." >&5
2375 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&2;}
2377    { (exit 1); exit 1; }; }
2378 fi
2379
2380 rm -f conftest$ac_cv_exeext
2381 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382 echo "${ECHO_T}$ac_cv_exeext" >&6
2383
2384 rm -f conftest.$ac_ext
2385 EXEEXT=$ac_cv_exeext
2386 ac_exeext=$EXEEXT
2387 fi
2388 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2389 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2390 if test "${ac_cv_objext+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h.  */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h.  */
2399
2400 int
2401 main ()
2402 {
2403
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 rm -f conftest.o conftest.obj
2409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410   (eval $ac_compile) 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }; then
2414   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2415   case $ac_file in
2416     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2417     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2418        break;;
2419   esac
2420 done
2421 else
2422   echo "$as_me: failed program was:" >&5
2423 sed 's/^/| /' conftest.$ac_ext >&5
2424
2425 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2428 See \`config.log' for more details." >&2;}
2429    { (exit 1); exit 1; }; }
2430 fi
2431
2432 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2433 fi
2434 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2435 echo "${ECHO_T}$ac_cv_objext" >&6
2436 OBJEXT=$ac_cv_objext
2437 ac_objext=$OBJEXT
2438 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2439 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2440 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2441   echo $ECHO_N "(cached) $ECHO_C" >&6
2442 else
2443   cat >conftest.$ac_ext <<_ACEOF
2444 /* confdefs.h.  */
2445 _ACEOF
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h.  */
2449
2450 int
2451 main ()
2452 {
2453 #ifndef __GNUC__
2454        choke me
2455 #endif
2456
2457   ;
2458   return 0;
2459 }
2460 _ACEOF
2461 rm -f conftest.$ac_objext
2462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2463   (eval $ac_compile) 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag"
2471                          || test ! -s conftest.err'
2472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473   (eval $ac_try) 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; } &&
2477          { ac_try='test -s conftest.$ac_objext'
2478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479   (eval $ac_try) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }; }; then
2483   ac_compiler_gnu=yes
2484 else
2485   echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 ac_compiler_gnu=no
2489 fi
2490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2492
2493 fi
2494 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2495 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2496 GCC=`test $ac_compiler_gnu = yes && echo yes`
2497 ac_test_CFLAGS=${CFLAGS+set}
2498 ac_save_CFLAGS=$CFLAGS
2499 CFLAGS="-g"
2500 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2501 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2502 if test "${ac_cv_prog_cc_g+set}" = set; then
2503   echo $ECHO_N "(cached) $ECHO_C" >&6
2504 else
2505   cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h.  */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h.  */
2511
2512 int
2513 main ()
2514 {
2515
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522   (eval $ac_compile) 2>conftest.er1
2523   ac_status=$?
2524   grep -v '^ *+' conftest.er1 >conftest.err
2525   rm -f conftest.er1
2526   cat conftest.err >&5
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); } &&
2529          { ac_try='test -z "$ac_c_werror_flag"
2530                          || test ! -s conftest.err'
2531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2532   (eval $ac_try) 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; } &&
2536          { ac_try='test -s conftest.$ac_objext'
2537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538   (eval $ac_try) 2>&5
2539   ac_status=$?
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); }; }; then
2542   ac_cv_prog_cc_g=yes
2543 else
2544   echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2546
2547 ac_cv_prog_cc_g=no
2548 fi
2549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2550 fi
2551 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2552 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2553 if test "$ac_test_CFLAGS" = set; then
2554   CFLAGS=$ac_save_CFLAGS
2555 elif test $ac_cv_prog_cc_g = yes; then
2556   if test "$GCC" = yes; then
2557     CFLAGS="-g -O2"
2558   else
2559     CFLAGS="-g"
2560   fi
2561 else
2562   if test "$GCC" = yes; then
2563     CFLAGS="-O2"
2564   else
2565     CFLAGS=
2566   fi
2567 fi
2568 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2569 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2570 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2571   echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573   ac_cv_prog_cc_stdc=no
2574 ac_save_CC=$CC
2575 cat >conftest.$ac_ext <<_ACEOF
2576 /* confdefs.h.  */
2577 _ACEOF
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h.  */
2581 #include <stdarg.h>
2582 #include <stdio.h>
2583 #include <sys/types.h>
2584 #include <sys/stat.h>
2585 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2586 struct buf { int x; };
2587 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2588 static char *e (p, i)
2589      char **p;
2590      int i;
2591 {
2592   return p[i];
2593 }
2594 static char *f (char * (*g) (char **, int), char **p, ...)
2595 {
2596   char *s;
2597   va_list v;
2598   va_start (v,p);
2599   s = g (p, va_arg (v,int));
2600   va_end (v);
2601   return s;
2602 }
2603
2604 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2605    function prototypes and stuff, but not '\xHH' hex character constants.
2606    These don't provoke an error unfortunately, instead are silently treated
2607    as 'x'.  The following induces an error, until -std1 is added to get
2608    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2609    array size at least.  It's necessary to write '\x00'==0 to get something
2610    that's true only with -std1.  */
2611 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2612
2613 int test (int i, double x);
2614 struct s1 {int (*f) (int a);};
2615 struct s2 {int (*f) (double a);};
2616 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2617 int argc;
2618 char **argv;
2619 int
2620 main ()
2621 {
2622 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 # Don't try gcc -ansi; that turns off useful extensions and
2628 # breaks some systems' header files.
2629 # AIX                   -qlanglvl=ansi
2630 # Ultrix and OSF/1      -std1
2631 # HP-UX 10.20 and later -Ae
2632 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2633 # SVR4                  -Xc -D__EXTENSIONS__
2634 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2635 do
2636   CC="$ac_save_CC $ac_arg"
2637   rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639   (eval $ac_compile) 2>conftest.er1
2640   ac_status=$?
2641   grep -v '^ *+' conftest.er1 >conftest.err
2642   rm -f conftest.er1
2643   cat conftest.err >&5
2644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645   (exit $ac_status); } &&
2646          { ac_try='test -z "$ac_c_werror_flag"
2647                          || test ! -s conftest.err'
2648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649   (eval $ac_try) 2>&5
2650   ac_status=$?
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); }; } &&
2653          { ac_try='test -s conftest.$ac_objext'
2654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655   (eval $ac_try) 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; }; then
2659   ac_cv_prog_cc_stdc=$ac_arg
2660 break
2661 else
2662   echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 fi
2666 rm -f conftest.err conftest.$ac_objext
2667 done
2668 rm -f conftest.$ac_ext conftest.$ac_objext
2669 CC=$ac_save_CC
2670
2671 fi
2672
2673 case "x$ac_cv_prog_cc_stdc" in
2674   x|xno)
2675     echo "$as_me:$LINENO: result: none needed" >&5
2676 echo "${ECHO_T}none needed" >&6 ;;
2677   *)
2678     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2679 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2680     CC="$CC $ac_cv_prog_cc_stdc" ;;
2681 esac
2682
2683 # Some people use a C++ compiler to compile C.  Since we use `exit',
2684 # in C++ we need to declare it.  In case someone uses the same compiler
2685 # for both compiling C and C++ we need to have the C++ compiler decide
2686 # the declaration of exit, since it's the most demanding environment.
2687 cat >conftest.$ac_ext <<_ACEOF
2688 #ifndef __cplusplus
2689   choke me
2690 #endif
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694   (eval $ac_compile) 2>conftest.er1
2695   ac_status=$?
2696   grep -v '^ *+' conftest.er1 >conftest.err
2697   rm -f conftest.er1
2698   cat conftest.err >&5
2699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700   (exit $ac_status); } &&
2701          { ac_try='test -z "$ac_c_werror_flag"
2702                          || test ! -s conftest.err'
2703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704   (eval $ac_try) 2>&5
2705   ac_status=$?
2706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707   (exit $ac_status); }; } &&
2708          { ac_try='test -s conftest.$ac_objext'
2709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710   (eval $ac_try) 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }; }; then
2714   for ac_declaration in \
2715    '' \
2716    'extern "C" void std::exit (int) throw (); using std::exit;' \
2717    'extern "C" void std::exit (int); using std::exit;' \
2718    'extern "C" void exit (int) throw ();' \
2719    'extern "C" void exit (int);' \
2720    'void exit (int);'
2721 do
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728 $ac_declaration
2729 #include <stdlib.h>
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_c_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 continue
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 $ac_declaration
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   break
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 rm -f conftest*
2814 if test -n "$ac_declaration"; then
2815   echo '#ifdef __cplusplus' >>confdefs.h
2816   echo $ac_declaration      >>confdefs.h
2817   echo '#endif'             >>confdefs.h
2818 fi
2819
2820 else
2821   echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 fi
2825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826 ac_ext=c
2827 ac_cpp='$CPP $CPPFLAGS'
2828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2831
2832 ac_ext=cc
2833 ac_cpp='$CXXCPP $CPPFLAGS'
2834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2837 if test -n "$ac_tool_prefix"; then
2838   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2839   do
2840     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2842 echo "$as_me:$LINENO: checking for $ac_word" >&5
2843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2844 if test "${ac_cv_prog_CXX+set}" = set; then
2845   echo $ECHO_N "(cached) $ECHO_C" >&6
2846 else
2847   if test -n "$CXX"; then
2848   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   test -z "$as_dir" && as_dir=.
2855   for ac_exec_ext in '' $ac_executable_extensions; do
2856   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2859     break 2
2860   fi
2861 done
2862 done
2863
2864 fi
2865 fi
2866 CXX=$ac_cv_prog_CXX
2867 if test -n "$CXX"; then
2868   echo "$as_me:$LINENO: result: $CXX" >&5
2869 echo "${ECHO_T}$CXX" >&6
2870 else
2871   echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 fi
2874
2875     test -n "$CXX" && break
2876   done
2877 fi
2878 if test -z "$CXX"; then
2879   ac_ct_CXX=$CXX
2880   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2881 do
2882   # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   if test -n "$ac_ct_CXX"; then
2890   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897   for ac_exec_ext in '' $ac_executable_extensions; do
2898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     ac_cv_prog_ac_ct_CXX="$ac_prog"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905
2906 fi
2907 fi
2908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2909 if test -n "$ac_ct_CXX"; then
2910   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2911 echo "${ECHO_T}$ac_ct_CXX" >&6
2912 else
2913   echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2915 fi
2916
2917   test -n "$ac_ct_CXX" && break
2918 done
2919 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2920
2921   CXX=$ac_ct_CXX
2922 fi
2923
2924
2925 # Provide some information about the compiler.
2926 echo "$as_me:$LINENO:" \
2927      "checking for C++ compiler version" >&5
2928 ac_compiler=`set X $ac_compile; echo $2`
2929 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2930   (eval $ac_compiler --version </dev/null >&5) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }
2934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2935   (eval $ac_compiler -v </dev/null >&5) 2>&5
2936   ac_status=$?
2937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938   (exit $ac_status); }
2939 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2940   (eval $ac_compiler -V </dev/null >&5) 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }
2944
2945 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2946 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2947 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   cat >conftest.$ac_ext <<_ACEOF
2951 /* confdefs.h.  */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h.  */
2956
2957 int
2958 main ()
2959 {
2960 #ifndef __GNUC__
2961        choke me
2962 #endif
2963
2964   ;
2965   return 0;
2966 }
2967 _ACEOF
2968 rm -f conftest.$ac_objext
2969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2970   (eval $ac_compile) 2>conftest.er1
2971   ac_status=$?
2972   grep -v '^ *+' conftest.er1 >conftest.err
2973   rm -f conftest.er1
2974   cat conftest.err >&5
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); } &&
2977          { ac_try='test -z "$ac_cxx_werror_flag"
2978                          || test ! -s conftest.err'
2979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980   (eval $ac_try) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }; } &&
2984          { ac_try='test -s conftest.$ac_objext'
2985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986   (eval $ac_try) 2>&5
2987   ac_status=$?
2988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989   (exit $ac_status); }; }; then
2990   ac_compiler_gnu=yes
2991 else
2992   echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2994
2995 ac_compiler_gnu=no
2996 fi
2997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2998 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2999
3000 fi
3001 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3002 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3003 GXX=`test $ac_compiler_gnu = yes && echo yes`
3004 ac_test_CXXFLAGS=${CXXFLAGS+set}
3005 ac_save_CXXFLAGS=$CXXFLAGS
3006 CXXFLAGS="-g"
3007 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3008 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3009 if test "${ac_cv_prog_cxx_g+set}" = set; then
3010   echo $ECHO_N "(cached) $ECHO_C" >&6
3011 else
3012   cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h.  */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h.  */
3018
3019 int
3020 main ()
3021 {
3022
3023   ;
3024   return 0;
3025 }
3026 _ACEOF
3027 rm -f conftest.$ac_objext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029   (eval $ac_compile) 2>conftest.er1
3030   ac_status=$?
3031   grep -v '^ *+' conftest.er1 >conftest.err
3032   rm -f conftest.er1
3033   cat conftest.err >&5
3034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035   (exit $ac_status); } &&
3036          { ac_try='test -z "$ac_cxx_werror_flag"
3037                          || test ! -s conftest.err'
3038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039   (eval $ac_try) 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045   (eval $ac_try) 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; }; then
3049   ac_cv_prog_cxx_g=yes
3050 else
3051   echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3053
3054 ac_cv_prog_cxx_g=no
3055 fi
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057 fi
3058 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3059 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3060 if test "$ac_test_CXXFLAGS" = set; then
3061   CXXFLAGS=$ac_save_CXXFLAGS
3062 elif test $ac_cv_prog_cxx_g = yes; then
3063   if test "$GXX" = yes; then
3064     CXXFLAGS="-g -O2"
3065   else
3066     CXXFLAGS="-g"
3067   fi
3068 else
3069   if test "$GXX" = yes; then
3070     CXXFLAGS="-O2"
3071   else
3072     CXXFLAGS=
3073   fi
3074 fi
3075 for ac_declaration in \
3076    '' \
3077    'extern "C" void std::exit (int) throw (); using std::exit;' \
3078    'extern "C" void std::exit (int); using std::exit;' \
3079    'extern "C" void exit (int) throw ();' \
3080    'extern "C" void exit (int);' \
3081    'void exit (int);'
3082 do
3083   cat >conftest.$ac_ext <<_ACEOF
3084 /* confdefs.h.  */
3085 _ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h.  */
3089 $ac_declaration
3090 #include <stdlib.h>
3091 int
3092 main ()
3093 {
3094 exit (42);
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101   (eval $ac_compile) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } &&
3108          { ac_try='test -z "$ac_cxx_werror_flag"
3109                          || test ! -s conftest.err'
3110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111   (eval $ac_try) 2>&5
3112   ac_status=$?
3113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114   (exit $ac_status); }; } &&
3115          { ac_try='test -s conftest.$ac_objext'
3116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117   (eval $ac_try) 2>&5
3118   ac_status=$?
3119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); }; }; then
3121   :
3122 else
3123   echo "$as_me: failed program was:" >&5
3124 sed 's/^/| /' conftest.$ac_ext >&5
3125
3126 continue
3127 fi
3128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129   cat >conftest.$ac_ext <<_ACEOF
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 $ac_declaration
3136 int
3137 main ()
3138 {
3139 exit (42);
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 rm -f conftest.$ac_objext
3145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3146   (eval $ac_compile) 2>conftest.er1
3147   ac_status=$?
3148   grep -v '^ *+' conftest.er1 >conftest.err
3149   rm -f conftest.er1
3150   cat conftest.err >&5
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); } &&
3153          { ac_try='test -z "$ac_cxx_werror_flag"
3154                          || test ! -s conftest.err'
3155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3156   (eval $ac_try) 2>&5
3157   ac_status=$?
3158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }; } &&
3160          { ac_try='test -s conftest.$ac_objext'
3161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162   (eval $ac_try) 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }; }; then
3166   break
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 fi
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 done
3174 rm -f conftest*
3175 if test -n "$ac_declaration"; then
3176   echo '#ifdef __cplusplus' >>confdefs.h
3177   echo $ac_declaration      >>confdefs.h
3178   echo '#endif'             >>confdefs.h
3179 fi
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187 CXXFLAGS="$save_CXXFLAGS"
3188
3189
3190
3191
3192
3193 am__api_version="1.9"
3194 # Find a good install program.  We prefer a C program (faster),
3195 # so one script is as good as another.  But avoid the broken or
3196 # incompatible versions:
3197 # SysV /etc/install, /usr/sbin/install
3198 # SunOS /usr/etc/install
3199 # IRIX /sbin/install
3200 # AIX /bin/install
3201 # AmigaOS /C/install, which installs bootblocks on floppy discs
3202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3205 # OS/2's system install, which has a completely different semantic
3206 # ./install, which can be erroneously created by make from ./install.sh.
3207 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3208 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3209 if test -z "$INSTALL"; then
3210 if test "${ac_cv_path_install+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216   IFS=$as_save_IFS
3217   test -z "$as_dir" && as_dir=.
3218   # Account for people who put trailing slashes in PATH elements.
3219 case $as_dir/ in
3220   ./ | .// | /cC/* | \
3221   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3222   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3223   /usr/ucb/* ) ;;
3224   *)
3225     # OSF1 and SCO ODT 3.0 have their own names for install.
3226     # Don't use installbsd from OSF since it installs stuff as root
3227     # by default.
3228     for ac_prog in ginstall scoinst install; do
3229       for ac_exec_ext in '' $ac_executable_extensions; do
3230         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3231           if test $ac_prog = install &&
3232             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233             # AIX install.  It has an incompatible calling convention.
3234             :
3235           elif test $ac_prog = install &&
3236             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237             # program-specific install script used by HP pwplus--don't use.
3238             :
3239           else
3240             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3241             break 3
3242           fi
3243         fi
3244       done
3245     done
3246     ;;
3247 esac
3248 done
3249
3250
3251 fi
3252   if test "${ac_cv_path_install+set}" = set; then
3253     INSTALL=$ac_cv_path_install
3254   else
3255     # As a last resort, use the slow shell script.  We don't cache a
3256     # path for INSTALL within a source directory, because that will
3257     # break other packages using the cache if that directory is
3258     # removed, or if the path is relative.
3259     INSTALL=$ac_install_sh
3260   fi
3261 fi
3262 echo "$as_me:$LINENO: result: $INSTALL" >&5
3263 echo "${ECHO_T}$INSTALL" >&6
3264
3265 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3266 # It thinks the first close brace ends the variable substitution.
3267 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3268
3269 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3270
3271 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3272
3273 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3274 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3275 # Just in case
3276 sleep 1
3277 echo timestamp > conftest.file
3278 # Do `set' in a subshell so we don't clobber the current shell's
3279 # arguments.  Must try -L first in case configure is actually a
3280 # symlink; some systems play weird games with the mod time of symlinks
3281 # (eg FreeBSD returns the mod time of the symlink's containing
3282 # directory).
3283 if (
3284    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3285    if test "$*" = "X"; then
3286       # -L didn't work.
3287       set X `ls -t $srcdir/configure conftest.file`
3288    fi
3289    rm -f conftest.file
3290    if test "$*" != "X $srcdir/configure conftest.file" \
3291       && test "$*" != "X conftest.file $srcdir/configure"; then
3292
3293       # If neither matched, then we have a broken ls.  This can happen
3294       # if, for instance, CONFIG_SHELL is bash and it inherits a
3295       # broken ls alias from the environment.  This has actually
3296       # happened.  Such a system could not be considered "sane".
3297       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3298 alias in your environment" >&5
3299 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3300 alias in your environment" >&2;}
3301    { (exit 1); exit 1; }; }
3302    fi
3303
3304    test "$2" = conftest.file
3305    )
3306 then
3307    # Ok.
3308    :
3309 else
3310    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3311 Check your system clock" >&5
3312 echo "$as_me: error: newly created file is older than distributed files!
3313 Check your system clock" >&2;}
3314    { (exit 1); exit 1; }; }
3315 fi
3316 echo "$as_me:$LINENO: result: yes" >&5
3317 echo "${ECHO_T}yes" >&6
3318 test "$program_prefix" != NONE &&
3319   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3320 # Use a double $ so make ignores it.
3321 test "$program_suffix" != NONE &&
3322   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3323 # Double any \ or $.  echo might interpret backslashes.
3324 # By default was `s,x,x', remove it if useless.
3325 cat <<\_ACEOF >conftest.sed
3326 s/[\\$]/&&/g;s/;s,x,x,$//
3327 _ACEOF
3328 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3329 rm conftest.sed
3330
3331 # expand $ac_aux_dir to an absolute path
3332 am_aux_dir=`cd $ac_aux_dir && pwd`
3333
3334 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3335 # Use eval to expand $SHELL
3336 if eval "$MISSING --run true"; then
3337   am_missing_run="$MISSING --run "
3338 else
3339   am_missing_run=
3340   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3341 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3342 fi
3343
3344 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3345   # We used to keeping the `.' as first argument, in order to
3346   # allow $(mkdir_p) to be used without argument.  As in
3347   #   $(mkdir_p) $(somedir)
3348   # where $(somedir) is conditionally defined.  However this is wrong
3349   # for two reasons:
3350   #  1. if the package is installed by a user who cannot write `.'
3351   #     make install will fail,
3352   #  2. the above comment should most certainly read
3353   #     $(mkdir_p) $(DESTDIR)$(somedir)
3354   #     so it does not work when $(somedir) is undefined and
3355   #     $(DESTDIR) is not.
3356   #  To support the latter case, we have to write
3357   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3358   #  so the `.' trick is pointless.
3359   mkdir_p='mkdir -p --'
3360 else
3361   # On NextStep and OpenStep, the `mkdir' command does not
3362   # recognize any option.  It will interpret all options as
3363   # directories to create, and then abort because `.' already
3364   # exists.
3365   for d in ./-p ./--version;
3366   do
3367     test -d $d && rmdir $d
3368   done
3369   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3370   if test -f "$ac_aux_dir/mkinstalldirs"; then
3371     mkdir_p='$(mkinstalldirs)'
3372   else
3373     mkdir_p='$(install_sh) -d'
3374   fi
3375 fi
3376
3377 for ac_prog in gawk mawk nawk awk
3378 do
3379   # Extract the first word of "$ac_prog", so it can be a program name with args.
3380 set dummy $ac_prog; ac_word=$2
3381 echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3383 if test "${ac_cv_prog_AWK+set}" = set; then
3384   echo $ECHO_N "(cached) $ECHO_C" >&6
3385 else
3386   if test -n "$AWK"; then
3387   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394   for ac_exec_ext in '' $ac_executable_extensions; do
3395   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396     ac_cv_prog_AWK="$ac_prog"
3397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401 done
3402
3403 fi
3404 fi
3405 AWK=$ac_cv_prog_AWK
3406 if test -n "$AWK"; then
3407   echo "$as_me:$LINENO: result: $AWK" >&5
3408 echo "${ECHO_T}$AWK" >&6
3409 else
3410   echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6
3412 fi
3413
3414   test -n "$AWK" && break
3415 done
3416
3417 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3418 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3419 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3420 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   cat >conftest.make <<\_ACEOF
3424 all:
3425         @echo 'ac_maketemp="$(MAKE)"'
3426 _ACEOF
3427 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3428 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3429 if test -n "$ac_maketemp"; then
3430   eval ac_cv_prog_make_${ac_make}_set=yes
3431 else
3432   eval ac_cv_prog_make_${ac_make}_set=no
3433 fi
3434 rm -f conftest.make
3435 fi
3436 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3437   echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3439   SET_MAKE=
3440 else
3441   echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3443   SET_MAKE="MAKE=${MAKE-make}"
3444 fi
3445
3446 rm -rf .tst 2>/dev/null
3447 mkdir .tst 2>/dev/null
3448 if test -d .tst; then
3449   am__leading_dot=.
3450 else
3451   am__leading_dot=_
3452 fi
3453 rmdir .tst 2>/dev/null
3454
3455 DEPDIR="${am__leading_dot}deps"
3456
3457           ac_config_commands="$ac_config_commands depfiles"
3458
3459
3460 am_make=${MAKE-make}
3461 cat > confinc << 'END'
3462 am__doit:
3463         @echo done
3464 .PHONY: am__doit
3465 END
3466 # If we don't find an include directive, just comment out the code.
3467 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3468 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3469 am__include="#"
3470 am__quote=
3471 _am_result=none
3472 # First try GNU make style include.
3473 echo "include confinc" > confmf
3474 # We grep out `Entering directory' and `Leaving directory'
3475 # messages which can occur if `w' ends up in MAKEFLAGS.
3476 # In particular we don't look at `^make:' because GNU make might
3477 # be invoked under some other name (usually "gmake"), in which
3478 # case it prints its new name instead of `make'.
3479 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3480    am__include=include
3481    am__quote=
3482    _am_result=GNU
3483 fi
3484 # Now try BSD make style include.
3485 if test "$am__include" = "#"; then
3486    echo '.include "confinc"' > confmf
3487    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3488       am__include=.include
3489       am__quote="\""
3490       _am_result=BSD
3491    fi
3492 fi
3493
3494
3495 echo "$as_me:$LINENO: result: $_am_result" >&5
3496 echo "${ECHO_T}$_am_result" >&6
3497 rm -f confinc confmf
3498
3499 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3500 if test "${enable_dependency_tracking+set}" = set; then
3501   enableval="$enable_dependency_tracking"
3502
3503 fi;
3504 if test "x$enable_dependency_tracking" != xno; then
3505   am_depcomp="$ac_aux_dir/depcomp"
3506   AMDEPBACKSLASH='\'
3507 fi
3508
3509
3510 if test "x$enable_dependency_tracking" != xno; then
3511   AMDEP_TRUE=
3512   AMDEP_FALSE='#'
3513 else
3514   AMDEP_TRUE='#'
3515   AMDEP_FALSE=
3516 fi
3517
3518
3519
3520 # test to see if srcdir already configured
3521 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3522    test -f $srcdir/config.status; then
3523   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3524 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528 # test whether we have cygpath
3529 if test -z "$CYGPATH_W"; then
3530   if (cygpath --version) >/dev/null 2>/dev/null; then
3531     CYGPATH_W='cygpath -w'
3532   else
3533     CYGPATH_W=echo
3534   fi
3535 fi
3536
3537
3538 # Define the identity of the package.
3539  PACKAGE='libjava'
3540  VERSION='version-unused'
3541
3542
3543 cat >>confdefs.h <<_ACEOF
3544 #define PACKAGE "$PACKAGE"
3545 _ACEOF
3546
3547
3548 cat >>confdefs.h <<_ACEOF
3549 #define VERSION "$VERSION"
3550 _ACEOF
3551
3552 # Some tools Automake needs.
3553
3554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3555
3556
3557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3558
3559
3560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3561
3562
3563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3564
3565
3566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3567
3568 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3569
3570 # Installed binaries are usually stripped using `strip' when the user
3571 # run `make install-strip'.  However `strip' might not be the right
3572 # tool to use in cross-compilation environments, therefore Automake
3573 # will honor the `STRIP' environment variable to overrule this program.
3574 if test "$cross_compiling" != no; then
3575   if test -n "$ac_tool_prefix"; then
3576   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3577 set dummy ${ac_tool_prefix}strip; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_prog_STRIP+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$STRIP"; then
3584   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599
3600 fi
3601 fi
3602 STRIP=$ac_cv_prog_STRIP
3603 if test -n "$STRIP"; then
3604   echo "$as_me:$LINENO: result: $STRIP" >&5
3605 echo "${ECHO_T}$STRIP" >&6
3606 else
3607   echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3609 fi
3610
3611 fi
3612 if test -z "$ac_cv_prog_STRIP"; then
3613   ac_ct_STRIP=$STRIP
3614   # Extract the first word of "strip", so it can be a program name with args.
3615 set dummy strip; ac_word=$2
3616 echo "$as_me:$LINENO: checking for $ac_word" >&5
3617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3619   echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621   if test -n "$ac_ct_STRIP"; then
3622   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3626 do
3627   IFS=$as_save_IFS
3628   test -z "$as_dir" && as_dir=.
3629   for ac_exec_ext in '' $ac_executable_extensions; do
3630   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631     ac_cv_prog_ac_ct_STRIP="strip"
3632     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3633     break 2
3634   fi
3635 done
3636 done
3637
3638   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3639 fi
3640 fi
3641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3642 if test -n "$ac_ct_STRIP"; then
3643   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3644 echo "${ECHO_T}$ac_ct_STRIP" >&6
3645 else
3646   echo "$as_me:$LINENO: result: no" >&5
3647 echo "${ECHO_T}no" >&6
3648 fi
3649
3650   STRIP=$ac_ct_STRIP
3651 else
3652   STRIP="$ac_cv_prog_STRIP"
3653 fi
3654
3655 fi
3656 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3657
3658 # We need awk for the "check" target.  The system "awk" is bad on
3659 # some platforms.
3660 # Always define AMTAR for backward compatibility.
3661
3662 AMTAR=${AMTAR-"${am_missing_run}tar"}
3663
3664 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3665
3666
3667
3668
3669 depcc="$CC"   am_compiler_list=
3670
3671 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3672 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3673 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3677   # We make a subdir and do the tests there.  Otherwise we can end up
3678   # making bogus files that we don't know about and never remove.  For
3679   # instance it was reported that on HP-UX the gcc test will end up
3680   # making a dummy file named `D' -- because `-MD' means `put the output
3681   # in D'.
3682   mkdir conftest.dir
3683   # Copy depcomp to subdir because otherwise we won't find it if we're
3684   # using a relative directory.
3685   cp "$am_depcomp" conftest.dir
3686   cd conftest.dir
3687   # We will build objects and dependencies in a subdirectory because
3688   # it helps to detect inapplicable dependency modes.  For instance
3689   # both Tru64's cc and ICC support -MD to output dependencies as a
3690   # side effect of compilation, but ICC will put the dependencies in
3691   # the current directory while Tru64 will put them in the object
3692   # directory.
3693   mkdir sub
3694
3695   am_cv_CC_dependencies_compiler_type=none
3696   if test "$am_compiler_list" = ""; then
3697      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3698   fi
3699   for depmode in $am_compiler_list; do
3700     # Setup a source with many dependencies, because some compilers
3701     # like to wrap large dependency lists on column 80 (with \), and
3702     # we should not choose a depcomp mode which is confused by this.
3703     #
3704     # We need to recreate these files for each test, as the compiler may
3705     # overwrite some of them when testing with obscure command lines.
3706     # This happens at least with the AIX C compiler.
3707     : > sub/conftest.c
3708     for i in 1 2 3 4 5 6; do
3709       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3710       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3711       # Solaris 8's {/usr,}/bin/sh.
3712       touch sub/conftst$i.h
3713     done
3714     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3715
3716     case $depmode in
3717     nosideeffect)
3718       # after this tag, mechanisms are not by side-effect, so they'll
3719       # only be used when explicitly requested
3720       if test "x$enable_dependency_tracking" = xyes; then
3721         continue
3722       else
3723         break
3724       fi
3725       ;;
3726     none) break ;;
3727     esac
3728     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3729     # mode.  It turns out that the SunPro C++ compiler does not properly
3730     # handle `-M -o', and we need to detect this.
3731     if depmode=$depmode \
3732        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3733        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3734        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3735          >/dev/null 2>conftest.err &&
3736        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3738        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739       # icc doesn't choke on unknown options, it will just issue warnings
3740       # or remarks (even with -Werror).  So we grep stderr for any message
3741       # that says an option was ignored or not supported.
3742       # When given -MP, icc 7.0 and 7.1 complain thusly:
3743       #   icc: Command line warning: ignoring option '-M'; no argument required
3744       # The diagnosis changed in icc 8.0:
3745       #   icc: Command line remark: option '-MP' not supported
3746       if (grep 'ignoring option' conftest.err ||
3747           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748         am_cv_CC_dependencies_compiler_type=$depmode
3749         break
3750       fi
3751     fi
3752   done
3753
3754   cd ..
3755   rm -rf conftest.dir
3756 else
3757   am_cv_CC_dependencies_compiler_type=none
3758 fi
3759
3760 fi
3761 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3762 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764
3765
3766
3767 if
3768   test "x$enable_dependency_tracking" != xno \
3769   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3770   am__fastdepCC_TRUE=
3771   am__fastdepCC_FALSE='#'
3772 else
3773   am__fastdepCC_TRUE='#'
3774   am__fastdepCC_FALSE=
3775 fi
3776
3777
3778 depcc="$CXX"  am_compiler_list=
3779
3780 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3781 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3782 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3786   # We make a subdir and do the tests there.  Otherwise we can end up
3787   # making bogus files that we don't know about and never remove.  For
3788   # instance it was reported that on HP-UX the gcc test will end up
3789   # making a dummy file named `D' -- because `-MD' means `put the output
3790   # in D'.
3791   mkdir conftest.dir
3792   # Copy depcomp to subdir because otherwise we won't find it if we're
3793   # using a relative directory.
3794   cp "$am_depcomp" conftest.dir
3795   cd conftest.dir
3796   # We will build objects and dependencies in a subdirectory because
3797   # it helps to detect inapplicable dependency modes.  For instance
3798   # both Tru64's cc and ICC support -MD to output dependencies as a
3799   # side effect of compilation, but ICC will put the dependencies in
3800   # the current directory while Tru64 will put them in the object
3801   # directory.
3802   mkdir sub
3803
3804   am_cv_CXX_dependencies_compiler_type=none
3805   if test "$am_compiler_list" = ""; then
3806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807   fi
3808   for depmode in $am_compiler_list; do
3809     # Setup a source with many dependencies, because some compilers
3810     # like to wrap large dependency lists on column 80 (with \), and
3811     # we should not choose a depcomp mode which is confused by this.
3812     #
3813     # We need to recreate these files for each test, as the compiler may
3814     # overwrite some of them when testing with obscure command lines.
3815     # This happens at least with the AIX C compiler.
3816     : > sub/conftest.c
3817     for i in 1 2 3 4 5 6; do
3818       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3819       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3820       # Solaris 8's {/usr,}/bin/sh.
3821       touch sub/conftst$i.h
3822     done
3823     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3824
3825     case $depmode in
3826     nosideeffect)
3827       # after this tag, mechanisms are not by side-effect, so they'll
3828       # only be used when explicitly requested
3829       if test "x$enable_dependency_tracking" = xyes; then
3830         continue
3831       else
3832         break
3833       fi
3834       ;;
3835     none) break ;;
3836     esac
3837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838     # mode.  It turns out that the SunPro C++ compiler does not properly
3839     # handle `-M -o', and we need to detect this.
3840     if depmode=$depmode \
3841        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3842        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3843        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3844          >/dev/null 2>conftest.err &&
3845        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3846        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3847        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3848       # icc doesn't choke on unknown options, it will just issue warnings
3849       # or remarks (even with -Werror).  So we grep stderr for any message
3850       # that says an option was ignored or not supported.
3851       # When given -MP, icc 7.0 and 7.1 complain thusly:
3852       #   icc: Command line warning: ignoring option '-M'; no argument required
3853       # The diagnosis changed in icc 8.0:
3854       #   icc: Command line remark: option '-MP' not supported
3855       if (grep 'ignoring option' conftest.err ||
3856           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3857         am_cv_CXX_dependencies_compiler_type=$depmode
3858         break
3859       fi
3860     fi
3861   done
3862
3863   cd ..
3864   rm -rf conftest.dir
3865 else
3866   am_cv_CXX_dependencies_compiler_type=none
3867 fi
3868
3869 fi
3870 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3871 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3872 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3873
3874
3875
3876 if
3877   test "x$enable_dependency_tracking" != xno \
3878   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3879   am__fastdepCXX_TRUE=
3880   am__fastdepCXX_FALSE='#'
3881 else
3882   am__fastdepCXX_TRUE='#'
3883   am__fastdepCXX_FALSE=
3884 fi
3885
3886
3887
3888
3889 if test -n "$ac_tool_prefix"; then
3890   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3891 set dummy ${ac_tool_prefix}as; ac_word=$2
3892 echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3894 if test "${ac_cv_prog_AS+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   if test -n "$AS"; then
3898   ac_cv_prog_AS="$AS" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3902 do
3903   IFS=$as_save_IFS
3904   test -z "$as_dir" && as_dir=.
3905   for ac_exec_ext in '' $ac_executable_extensions; do
3906   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907     ac_cv_prog_AS="${ac_tool_prefix}as"
3908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3909     break 2
3910   fi
3911 done
3912 done
3913
3914 fi
3915 fi
3916 AS=$ac_cv_prog_AS
3917 if test -n "$AS"; then
3918   echo "$as_me:$LINENO: result: $AS" >&5
3919 echo "${ECHO_T}$AS" >&6
3920 else
3921   echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6
3923 fi
3924
3925 fi
3926 if test -z "$ac_cv_prog_AS"; then
3927   ac_ct_AS=$AS
3928   # Extract the first word of "as", so it can be a program name with args.
3929 set dummy as; ac_word=$2
3930 echo "$as_me:$LINENO: checking for $ac_word" >&5
3931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3933   echo $ECHO_N "(cached) $ECHO_C" >&6
3934 else
3935   if test -n "$ac_ct_AS"; then
3936   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3937 else
3938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939 for as_dir in $PATH
3940 do
3941   IFS=$as_save_IFS
3942   test -z "$as_dir" && as_dir=.
3943   for ac_exec_ext in '' $ac_executable_extensions; do
3944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945     ac_cv_prog_ac_ct_AS="as"
3946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947     break 2
3948   fi
3949 done
3950 done
3951
3952 fi
3953 fi
3954 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3955 if test -n "$ac_ct_AS"; then
3956   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3957 echo "${ECHO_T}$ac_ct_AS" >&6
3958 else
3959   echo "$as_me:$LINENO: result: no" >&5
3960 echo "${ECHO_T}no" >&6
3961 fi
3962
3963   AS=$ac_ct_AS
3964 else
3965   AS="$ac_cv_prog_AS"
3966 fi
3967
3968 if test -n "$ac_tool_prefix"; then
3969   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ld; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_LD+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if test -n "$LD"; then
3977   ac_cv_prog_LD="$LD" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982   IFS=$as_save_IFS
3983   test -z "$as_dir" && as_dir=.
3984   for ac_exec_ext in '' $ac_executable_extensions; do
3985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986     ac_cv_prog_LD="${ac_tool_prefix}ld"
3987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988     break 2
3989   fi
3990 done
3991 done
3992
3993 fi
3994 fi
3995 LD=$ac_cv_prog_LD
3996 if test -n "$LD"; then
3997   echo "$as_me:$LINENO: result: $LD" >&5
3998 echo "${ECHO_T}$LD" >&6
3999 else
4000   echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4002 fi
4003
4004 fi
4005 if test -z "$ac_cv_prog_LD"; then
4006   ac_ct_LD=$LD
4007   # Extract the first word of "ld", so it can be a program name with args.
4008 set dummy ld; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4012   echo $ECHO_N "(cached) $ECHO_C" >&6
4013 else
4014   if test -n "$ac_ct_LD"; then
4015   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4016 else
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 for as_dir in $PATH
4019 do
4020   IFS=$as_save_IFS
4021   test -z "$as_dir" && as_dir=.
4022   for ac_exec_ext in '' $ac_executable_extensions; do
4023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024     ac_cv_prog_ac_ct_LD="ld"
4025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026     break 2
4027   fi
4028 done
4029 done
4030
4031 fi
4032 fi
4033 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4034 if test -n "$ac_ct_LD"; then
4035   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4036 echo "${ECHO_T}$ac_ct_LD" >&6
4037 else
4038   echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6
4040 fi
4041
4042   LD=$ac_ct_LD
4043 else
4044   LD="$ac_cv_prog_LD"
4045 fi
4046
4047 if test -n "$ac_tool_prefix"; then
4048   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}ar; ac_word=$2
4050 echo "$as_me:$LINENO: checking for $ac_word" >&5
4051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4052 if test "${ac_cv_prog_AR+set}" = set; then
4053   echo $ECHO_N "(cached) $ECHO_C" >&6
4054 else
4055   if test -n "$AR"; then
4056   ac_cv_prog_AR="$AR" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063   for ac_exec_ext in '' $ac_executable_extensions; do
4064   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065     ac_cv_prog_AR="${ac_tool_prefix}ar"
4066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070 done
4071
4072 fi
4073 fi
4074 AR=$ac_cv_prog_AR
4075 if test -n "$AR"; then
4076   echo "$as_me:$LINENO: result: $AR" >&5
4077 echo "${ECHO_T}$AR" >&6
4078 else
4079   echo "$as_me:$LINENO: result: no" >&5
4080 echo "${ECHO_T}no" >&6
4081 fi
4082
4083 fi
4084 if test -z "$ac_cv_prog_AR"; then
4085   ac_ct_AR=$AR
4086   # Extract the first word of "ar", so it can be a program name with args.
4087 set dummy ar; ac_word=$2
4088 echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   if test -n "$ac_ct_AR"; then
4094   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099   IFS=$as_save_IFS
4100   test -z "$as_dir" && as_dir=.
4101   for ac_exec_ext in '' $ac_executable_extensions; do
4102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4103     ac_cv_prog_ac_ct_AR="ar"
4104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4105     break 2
4106   fi
4107 done
4108 done
4109
4110 fi
4111 fi
4112 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4113 if test -n "$ac_ct_AR"; then
4114   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4115 echo "${ECHO_T}$ac_ct_AR" >&6
4116 else
4117   echo "$as_me:$LINENO: result: no" >&5
4118 echo "${ECHO_T}no" >&6
4119 fi
4120
4121   AR=$ac_ct_AR
4122 else
4123   AR="$ac_cv_prog_AR"
4124 fi
4125
4126 if test -n "$ac_tool_prefix"; then
4127   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4129 echo "$as_me:$LINENO: checking for $ac_word" >&5
4130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131 if test "${ac_cv_prog_RANLIB+set}" = set; then
4132   echo $ECHO_N "(cached) $ECHO_C" >&6
4133 else
4134   if test -n "$RANLIB"; then
4135   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4136 else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 for as_dir in $PATH
4139 do
4140   IFS=$as_save_IFS
4141   test -z "$as_dir" && as_dir=.
4142   for ac_exec_ext in '' $ac_executable_extensions; do
4143   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146     break 2
4147   fi
4148 done
4149 done
4150
4151 fi
4152 fi
4153 RANLIB=$ac_cv_prog_RANLIB
4154 if test -n "$RANLIB"; then
4155   echo "$as_me:$LINENO: result: $RANLIB" >&5
4156 echo "${ECHO_T}$RANLIB" >&6
4157 else
4158   echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6
4160 fi
4161
4162 fi
4163 if test -z "$ac_cv_prog_RANLIB"; then
4164   ac_ct_RANLIB=$RANLIB
4165   # Extract the first word of "ranlib", so it can be a program name with args.
4166 set dummy ranlib; ac_word=$2
4167 echo "$as_me:$LINENO: checking for $ac_word" >&5
4168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4170   echo $ECHO_N "(cached) $ECHO_C" >&6
4171 else
4172   if test -n "$ac_ct_RANLIB"; then
4173   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180   for ac_exec_ext in '' $ac_executable_extensions; do
4181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_ac_ct_RANLIB="ranlib"
4183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187 done
4188
4189   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4190 fi
4191 fi
4192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4193 if test -n "$ac_ct_RANLIB"; then
4194   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4195 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4196 else
4197   echo "$as_me:$LINENO: result: no" >&5
4198 echo "${ECHO_T}no" >&6
4199 fi
4200
4201   RANLIB=$ac_ct_RANLIB
4202 else
4203   RANLIB="$ac_cv_prog_RANLIB"
4204 fi
4205
4206 for ac_prog in gawk mawk nawk awk
4207 do
4208   # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4212 if test "${ac_cv_prog_AWK+set}" = set; then
4213   echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215   if test -n "$AWK"; then
4216   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223   for ac_exec_ext in '' $ac_executable_extensions; do
4224   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225     ac_cv_prog_AWK="$ac_prog"
4226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230 done
4231
4232 fi
4233 fi
4234 AWK=$ac_cv_prog_AWK
4235 if test -n "$AWK"; then
4236   echo "$as_me:$LINENO: result: $AWK" >&5
4237 echo "${ECHO_T}$AWK" >&6
4238 else
4239   echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6
4241 fi
4242
4243   test -n "$AWK" && break
4244 done
4245
4246 for ac_prog in jar fastjar gjar
4247 do
4248   # Extract the first word of "$ac_prog", so it can be a program name with args.
4249 set dummy $ac_prog; ac_word=$2
4250 echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4252 if test "${ac_cv_prog_JAR+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$JAR"; then
4256   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265     ac_cv_prog_JAR="$ac_prog"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271
4272 fi
4273 fi
4274 JAR=$ac_cv_prog_JAR
4275 if test -n "$JAR"; then
4276   echo "$as_me:$LINENO: result: $JAR" >&5
4277 echo "${ECHO_T}$JAR" >&6
4278 else
4279   echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6
4281 fi
4282
4283   test -n "$JAR" && break
4284 done
4285 test -n "$JAR" || JAR="no"
4286
4287 # Extract the first word of "zip", so it can be a program name with args.
4288 set dummy zip; ac_word=$2
4289 echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4291 if test "${ac_cv_path_ZIP+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   case $ZIP in
4295   [\\/]* | ?:[\\/]*)
4296   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4297   ;;
4298   *)
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304   for ac_exec_ext in '' $ac_executable_extensions; do
4305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308     break 2
4309   fi
4310 done
4311 done
4312
4313   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4314   ;;
4315 esac
4316 fi
4317 ZIP=$ac_cv_path_ZIP
4318
4319 if test -n "$ZIP"; then
4320   echo "$as_me:$LINENO: result: $ZIP" >&5
4321 echo "${ECHO_T}$ZIP" >&6
4322 else
4323   echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6
4325 fi
4326
4327 # Extract the first word of "unzip", so it can be a program name with args.
4328 set dummy unzip; ac_word=$2
4329 echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4331 if test "${ac_cv_path_UNZIP+set}" = set; then
4332   echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334   case $UNZIP in
4335   [\\/]* | ?:[\\/]*)
4336   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4337   ;;
4338   *)
4339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342   IFS=$as_save_IFS
4343   test -z "$as_dir" && as_dir=.
4344   for ac_exec_ext in '' $ac_executable_extensions; do
4345   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4347     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348     break 2
4349   fi
4350 done
4351 done
4352
4353   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4354   ;;
4355 esac
4356 fi
4357 UNZIP=$ac_cv_path_UNZIP
4358
4359 if test -n "$UNZIP"; then
4360   echo "$as_me:$LINENO: result: $UNZIP" >&5
4361 echo "${ECHO_T}$UNZIP" >&6
4362 else
4363   echo "$as_me:$LINENO: result: no" >&5
4364 echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 # We need a jar that supports -@.  This is a GNU extension.
4369 if test "$JAR" != no; then
4370    rm -f config-test.jar
4371    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4372    if test -f config-test.jar; then
4373      rm -f config-test.jar
4374    else
4375      JAR=no
4376    fi
4377 fi
4378
4379 # Prefer the jar we found, but fall back to our jar script.
4380 if test "$JAR" = no; then
4381   if test "$ZIP" = no; then
4382     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4383 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4384    { (exit 1); exit 1; }; }
4385   else
4386     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4387     JAR=`pwd`/scripts/jar
4388   fi
4389 fi
4390
4391 # Find a good install program.  We prefer a C program (faster),
4392 # so one script is as good as another.  But avoid the broken or
4393 # incompatible versions:
4394 # SysV /etc/install, /usr/sbin/install
4395 # SunOS /usr/etc/install
4396 # IRIX /sbin/install
4397 # AIX /bin/install
4398 # AmigaOS /C/install, which installs bootblocks on floppy discs
4399 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4400 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4401 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4402 # OS/2's system install, which has a completely different semantic
4403 # ./install, which can be erroneously created by make from ./install.sh.
4404 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4405 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4406 if test -z "$INSTALL"; then
4407 if test "${ac_cv_path_install+set}" = set; then
4408   echo $ECHO_N "(cached) $ECHO_C" >&6
4409 else
4410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413   IFS=$as_save_IFS
4414   test -z "$as_dir" && as_dir=.
4415   # Account for people who put trailing slashes in PATH elements.
4416 case $as_dir/ in
4417   ./ | .// | /cC/* | \
4418   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4419   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4420   /usr/ucb/* ) ;;
4421   *)
4422     # OSF1 and SCO ODT 3.0 have their own names for install.
4423     # Don't use installbsd from OSF since it installs stuff as root
4424     # by default.
4425     for ac_prog in ginstall scoinst install; do
4426       for ac_exec_ext in '' $ac_executable_extensions; do
4427         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4428           if test $ac_prog = install &&
4429             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4430             # AIX install.  It has an incompatible calling convention.
4431             :
4432           elif test $ac_prog = install &&
4433             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4434             # program-specific install script used by HP pwplus--don't use.
4435             :
4436           else
4437             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4438             break 3
4439           fi
4440         fi
4441       done
4442     done
4443     ;;
4444 esac
4445 done
4446
4447
4448 fi
4449   if test "${ac_cv_path_install+set}" = set; then
4450     INSTALL=$ac_cv_path_install
4451   else
4452     # As a last resort, use the slow shell script.  We don't cache a
4453     # path for INSTALL within a source directory, because that will
4454     # break other packages using the cache if that directory is
4455     # removed, or if the path is relative.
4456     INSTALL=$ac_install_sh
4457   fi
4458 fi
4459 echo "$as_me:$LINENO: result: $INSTALL" >&5
4460 echo "${ECHO_T}$INSTALL" >&6
4461
4462 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4463 # It thinks the first close brace ends the variable substitution.
4464 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4465
4466 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4467
4468 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4469
4470
4471 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4472 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4473     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4474 if test "${enable_maintainer_mode+set}" = set; then
4475   enableval="$enable_maintainer_mode"
4476   USE_MAINTAINER_MODE=$enableval
4477 else
4478   USE_MAINTAINER_MODE=no
4479 fi;
4480   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4481 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4482
4483
4484 if test $USE_MAINTAINER_MODE = yes; then
4485   MAINTAINER_MODE_TRUE=
4486   MAINTAINER_MODE_FALSE='#'
4487 else
4488   MAINTAINER_MODE_TRUE='#'
4489   MAINTAINER_MODE_FALSE=
4490 fi
4491
4492   MAINT=$MAINTAINER_MODE_TRUE
4493
4494
4495
4496
4497
4498 # configure.host sets the following important variables
4499 #       libgcj_cflags    - host specific C compiler flags
4500 #       libgcj_cxxflags  - host specific C++ compiler flags
4501 #       libgcj_javaflags - host specific Java compiler flags
4502
4503 libgcj_cflags=
4504 libgcj_cxxflags=
4505 libgcj_javaflags=
4506
4507 . ${srcdir}/configure.host
4508
4509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4516   acl_cv_prog_gnu_ld=yes
4517 else
4518   acl_cv_prog_gnu_ld=no
4519 fi
4520 fi
4521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4523 with_gnu_ld=$acl_cv_prog_gnu_ld
4524
4525 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4526 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4527 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530
4531 acl_cv_prog_gnu_ld_symbolic=no
4532
4533 if test x"$with_gnu_ld" = x"yes"; then
4534   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4535     acl_cv_prog_gnu_ld_symbolic=yes
4536   fi
4537 fi
4538 fi
4539 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4540 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4541 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4542   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4543 else
4544   SYMBOLIC_LDFLAGS=''
4545 fi
4546
4547 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4548 if test -z "$libgcj_ld_symbolic"; then
4549   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4550 fi
4551
4552 LIBGCJ_CFLAGS="${libgcj_cflags}"
4553 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4554 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4555 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4556 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4557
4558
4559
4560
4561
4562
4563 # Only use libltdl for non-newlib builds.
4564 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4565    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4566 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4567 library_names_spec=
4568 libname_spec='lib$name'
4569 soname_spec=
4570 shrext=".so"
4571 postinstall_cmds=
4572 postuninstall_cmds=
4573 finish_cmds=
4574 finish_eval=
4575 shlibpath_var=
4576 shlibpath_overrides_runpath=unknown
4577 version_type=none
4578 dynamic_linker="$host_os ld.so"
4579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4580 if test "$GCC" = yes; then
4581   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4582   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4583     # if the path contains ";" then we assume it to be the separator
4584     # otherwise default to the standard path separator (i.e. ":") - it is
4585     # assumed that no part of a normal pathname contains ";" but that should
4586     # okay in the real world where ";" in dirpaths is itself problematic.
4587     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4588   else
4589     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4590   fi
4591 else
4592   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4593 fi
4594 need_lib_prefix=unknown
4595 hardcode_into_libs=no
4596
4597 # when you set need_version to no, make sure it does not cause -set_version
4598 # flags to be left without arguments
4599 need_version=unknown
4600
4601 case $host_os in
4602 aix3*)
4603   version_type=linux
4604   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4605   shlibpath_var=LIBPATH
4606
4607   # AIX 3 has no versioning support, so we append a major version to the name.
4608   soname_spec='${libname}${release}${shared_ext}$major'
4609   ;;
4610
4611 aix4* | aix5*)
4612   version_type=linux
4613   need_lib_prefix=no
4614   need_version=no
4615   hardcode_into_libs=yes
4616   if test "$host_cpu" = ia64; then
4617     # AIX 5 supports IA64
4618     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4619     shlibpath_var=LD_LIBRARY_PATH
4620   else
4621     # With GCC up to 2.95.x, collect2 would create an import file
4622     # for dependence libraries.  The import file would start with
4623     # the line `#! .'.  This would cause the generated library to
4624     # depend on `.', always an invalid library.  This was fixed in
4625     # development snapshots of GCC prior to 3.0.
4626     case $host_os in
4627       aix4 | aix4.[01] | aix4.[01].*)
4628       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4629            echo ' yes '
4630            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4631         :
4632       else
4633         can_build_shared=no
4634       fi
4635       ;;
4636     esac
4637     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4638     # soname into executable. Probably we can add versioning support to
4639     # collect2, so additional links can be useful in future.
4640     if test "$aix_use_runtimelinking" = yes; then
4641       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4642       # instead of lib<name>.a to let people know that these are not
4643       # typical AIX shared libraries.
4644       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4645     else
4646       # We preserve .a as extension for shared libraries through AIX4.2
4647       # and later when we are not doing run time linking.
4648       library_names_spec='${libname}${release}.a $libname.a'
4649       soname_spec='${libname}${release}${shared_ext}$major'
4650     fi
4651     shlibpath_var=LIBPATH
4652   fi
4653   ;;
4654
4655 amigaos*)
4656   library_names_spec='$libname.ixlibrary $libname.a'
4657   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4658   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'
4659   ;;
4660
4661 beos*)
4662   library_names_spec='${libname}${shared_ext}'
4663   dynamic_linker="$host_os ld.so"
4664   shlibpath_var=LIBRARY_PATH
4665   ;;
4666
4667 bsdi4*)
4668   version_type=linux
4669   need_version=no
4670   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4671   soname_spec='${libname}${release}${shared_ext}$major'
4672   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4673   shlibpath_var=LD_LIBRARY_PATH
4674   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4675   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4676   # the default ld.so.conf also contains /usr/contrib/lib and
4677   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4678   # libtool to hard-code these into programs
4679   ;;
4680
4681 cygwin* | mingw* | pw32*)
4682   version_type=windows
4683   shrext=".dll"
4684   need_version=no
4685   need_lib_prefix=no
4686
4687   case $GCC,$host_os in
4688   yes,cygwin* | yes,mingw* | yes,pw32*)
4689     library_names_spec='$libname.dll.a'
4690     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4691     postinstall_cmds='base_file=`basename \${file}`~
4692       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4693       dldir=$destdir/`dirname \$dlpath`~
4694       test -d \$dldir || mkdir -p \$dldir~
4695       $install_prog $dir/$dlname \$dldir/$dlname'
4696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4697       dlpath=$dir/\$dldll~
4698        $rm \$dlpath'
4699     shlibpath_overrides_runpath=yes
4700
4701     case $host_os in
4702     cygwin*)
4703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4705       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4706       ;;
4707     mingw*)
4708       # MinGW DLLs use traditional 'lib' prefix
4709       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4710       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4711       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4712         # It is most probably a Windows format PATH printed by
4713         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4714         # path with ; separators, and with drive letters. We can handle the
4715         # drive letters (cygwin fileutils understands them), so leave them,
4716         # especially as we might pass files found there to a mingw objdump,
4717         # which wouldn't understand a cygwinified path. Ahh.
4718         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4719       else
4720         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4721       fi
4722       ;;
4723     pw32*)
4724       # pw32 DLLs use 'pw' prefix rather than 'lib'
4725       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4726       ;;
4727     esac
4728     ;;
4729
4730   *)
4731     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4732     ;;
4733   esac
4734   dynamic_linker='Win32 ld.exe'
4735   # FIXME: first we should search . and the directory the executable is in
4736   shlibpath_var=PATH
4737   ;;
4738
4739 darwin* | rhapsody*)
4740   dynamic_linker="$host_os dyld"
4741   version_type=darwin
4742   need_lib_prefix=no
4743   need_version=no
4744   # FIXME: Relying on posixy $() will cause problems for
4745   #        cross-compilation, but unfortunately the echo tests do not
4746   #        yet detect zsh echo's removal of \ escapes.
4747   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4748   soname_spec='${libname}${release}${major}$shared_ext'
4749   shlibpath_overrides_runpath=yes
4750   shlibpath_var=DYLD_LIBRARY_PATH
4751   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4752   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4753   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4754   sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4755   fi
4756   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4757   ;;
4758
4759 dgux*)
4760   version_type=linux
4761   need_lib_prefix=no
4762   need_version=no
4763   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4764   soname_spec='${libname}${release}${shared_ext}$major'
4765   shlibpath_var=LD_LIBRARY_PATH
4766   ;;
4767
4768 freebsd1*)
4769   dynamic_linker=no
4770   ;;
4771
4772 freebsd*)
4773   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4774   version_type=freebsd-$objformat
4775   case $version_type in
4776     freebsd-elf*)
4777       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4778       need_version=no
4779       need_lib_prefix=no
4780       ;;
4781     freebsd-*)
4782       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4783       need_version=yes
4784       ;;
4785   esac
4786   shlibpath_var=LD_LIBRARY_PATH
4787   case $host_os in
4788   freebsd2*)
4789     shlibpath_overrides_runpath=yes
4790     ;;
4791   freebsd3.01* | freebsdelf3.01*)
4792     shlibpath_overrides_runpath=yes
4793     hardcode_into_libs=yes
4794     ;;
4795   *) # from 3.2 on
4796     shlibpath_overrides_runpath=no
4797     hardcode_into_libs=yes
4798     ;;
4799   esac
4800   ;;
4801
4802 gnu*)
4803   version_type=linux
4804   need_lib_prefix=no
4805   need_version=no
4806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4807   soname_spec='${libname}${release}${shared_ext}$major'
4808   shlibpath_var=LD_LIBRARY_PATH
4809   hardcode_into_libs=yes
4810   ;;
4811
4812 hpux9* | hpux10* | hpux11*)
4813   # Give a soname corresponding to the major version so that dld.sl refuses to
4814   # link against other versions.
4815   version_type=sunos
4816   need_lib_prefix=no
4817   need_version=no
4818   case "$host_cpu" in
4819   ia64*)
4820     shrext='.so'
4821     hardcode_into_libs=yes
4822     dynamic_linker="$host_os dld.so"
4823     shlibpath_var=LD_LIBRARY_PATH
4824     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826     soname_spec='${libname}${release}${shared_ext}$major'
4827     if test "X$HPUX_IA64_MODE" = X32; then
4828       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4829     else
4830       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4831     fi
4832     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4833     ;;
4834    hppa*64*)
4835      shrext='.sl'
4836      hardcode_into_libs=yes
4837      dynamic_linker="$host_os dld.sl"
4838      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4839      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4841      soname_spec='${libname}${release}${shared_ext}$major'
4842      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4843      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4844      ;;
4845    *)
4846     shrext='.sl'
4847     dynamic_linker="$host_os dld.sl"
4848     shlibpath_var=SHLIB_PATH
4849     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4851     soname_spec='${libname}${release}${shared_ext}$major'
4852     ;;
4853   esac
4854   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4855   postinstall_cmds='chmod 555 $lib'
4856   ;;
4857
4858 irix5* | irix6* | nonstopux*)
4859   case $host_os in
4860     nonstopux*) version_type=nonstopux ;;
4861     *)
4862         if test "$lt_cv_prog_gnu_ld" = yes; then
4863                 version_type=linux
4864         else
4865                 version_type=irix
4866         fi ;;
4867   esac
4868   need_lib_prefix=no
4869   need_version=no
4870   soname_spec='${libname}${release}${shared_ext}$major'
4871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4872   case $host_os in
4873   irix5* | nonstopux*)
4874     libsuff= shlibsuff=
4875     ;;
4876   *)
4877     case $LD in # libtool.m4 will add one of these switches to LD
4878     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4879       libsuff= shlibsuff= libmagic=32-bit;;
4880     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4881       libsuff=32 shlibsuff=N32 libmagic=N32;;
4882     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4883       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4884     *) libsuff= shlibsuff= libmagic=never-match;;
4885     esac
4886     ;;
4887   esac
4888   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4889   shlibpath_overrides_runpath=no
4890   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4891   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4892   hardcode_into_libs=yes
4893   ;;
4894
4895 # No shared lib support for Linux oldld, aout, or coff.
4896 linux*oldld* | linux*aout* | linux*coff*)
4897   dynamic_linker=no
4898   ;;
4899
4900 # This must be Linux ELF.
4901 linux*|k*bsd*-gnu)
4902   version_type=linux
4903   need_lib_prefix=no
4904   need_version=no
4905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4906   soname_spec='${libname}${release}${shared_ext}$major'
4907   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4908   shlibpath_var=LD_LIBRARY_PATH
4909   shlibpath_overrides_runpath=no
4910   # This implies no fast_install, which is unacceptable.
4911   # Some rework will be needed to allow for fast_install
4912   # before this can be enabled.
4913   hardcode_into_libs=yes
4914
4915   # We used to test for /lib/ld.so.1 and disable shared libraries on
4916   # powerpc, because MkLinux only supported shared libraries with the
4917   # GNU dynamic linker.  Since this was broken with cross compilers,
4918   # most powerpc-linux boxes support dynamic linking these days and
4919   # people can always --disable-shared, the test was removed, and we
4920   # assume the GNU/Linux dynamic linker is in use.
4921   dynamic_linker='GNU/Linux ld.so'
4922   ;;
4923
4924 netbsd*)
4925   version_type=sunos
4926   need_lib_prefix=no
4927   need_version=no
4928   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4930     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4931     dynamic_linker='NetBSD (a.out) ld.so'
4932   else
4933     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4934     soname_spec='${libname}${release}${shared_ext}$major'
4935     dynamic_linker='NetBSD ld.elf_so'
4936   fi
4937   shlibpath_var=LD_LIBRARY_PATH
4938   shlibpath_overrides_runpath=yes
4939   hardcode_into_libs=yes
4940   ;;
4941
4942 newsos6)
4943   version_type=linux
4944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4945   shlibpath_var=LD_LIBRARY_PATH
4946   shlibpath_overrides_runpath=yes
4947   ;;
4948
4949 nto-qnx)
4950   version_type=linux
4951   need_lib_prefix=no
4952   need_version=no
4953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4954   soname_spec='${libname}${release}${shared_ext}$major'
4955   shlibpath_var=LD_LIBRARY_PATH
4956   shlibpath_overrides_runpath=yes
4957   ;;
4958
4959 openbsd*)
4960   version_type=sunos
4961   need_lib_prefix=no
4962   need_version=no
4963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4964   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4965   shlibpath_var=LD_LIBRARY_PATH
4966   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4967     case $host_os in
4968       openbsd2.[89] | openbsd2.[89].*)
4969         shlibpath_overrides_runpath=no
4970         ;;
4971       *)
4972         shlibpath_overrides_runpath=yes
4973         ;;
4974       esac
4975   else
4976     shlibpath_overrides_runpath=yes
4977   fi
4978   ;;
4979
4980 os2*)
4981   libname_spec='$name'
4982   shrext=".dll"
4983   need_lib_prefix=no
4984   library_names_spec='$libname${shared_ext} $libname.a'
4985   dynamic_linker='OS/2 ld.exe'
4986   shlibpath_var=LIBPATH
4987   ;;
4988
4989 osf3* | osf4* | osf5*)
4990   version_type=osf
4991   need_lib_prefix=no
4992   need_version=no
4993   soname_spec='${libname}${release}${shared_ext}$major'
4994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4995   shlibpath_var=LD_LIBRARY_PATH
4996   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4997   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4998   ;;
4999
5000 sco3.2v5*)
5001   version_type=osf
5002   soname_spec='${libname}${release}${shared_ext}$major'
5003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5004   shlibpath_var=LD_LIBRARY_PATH
5005   ;;
5006
5007 solaris*)
5008   version_type=linux
5009   need_lib_prefix=no
5010   need_version=no
5011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5012   soname_spec='${libname}${release}${shared_ext}$major'
5013   shlibpath_var=LD_LIBRARY_PATH
5014   shlibpath_overrides_runpath=yes
5015   hardcode_into_libs=yes
5016   # ldd complains unless libraries are executable
5017   postinstall_cmds='chmod +x $lib'
5018   ;;
5019
5020 sunos4*)
5021   version_type=sunos
5022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5023   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5024   shlibpath_var=LD_LIBRARY_PATH
5025   shlibpath_overrides_runpath=yes
5026   if test "$with_gnu_ld" = yes; then
5027     need_lib_prefix=no
5028   fi
5029   need_version=yes
5030   ;;
5031
5032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5033   version_type=linux
5034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5035   soname_spec='${libname}${release}${shared_ext}$major'
5036   shlibpath_var=LD_LIBRARY_PATH
5037   case $host_vendor in
5038     sni)
5039       shlibpath_overrides_runpath=no
5040       need_lib_prefix=no
5041       export_dynamic_flag_spec='${wl}-Blargedynsym'
5042       runpath_var=LD_RUN_PATH
5043       ;;
5044     siemens)
5045       need_lib_prefix=no
5046       ;;
5047     motorola)
5048       need_lib_prefix=no
5049       need_version=no
5050       shlibpath_overrides_runpath=no
5051       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5052       ;;
5053   esac
5054   ;;
5055
5056 sysv4*MP*)
5057   if test -d /usr/nec ;then
5058     version_type=linux
5059     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5060     soname_spec='$libname${shared_ext}.$major'
5061     shlibpath_var=LD_LIBRARY_PATH
5062   fi
5063   ;;
5064
5065 uts4*)
5066   version_type=linux
5067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5068   soname_spec='${libname}${release}${shared_ext}$major'
5069   shlibpath_var=LD_LIBRARY_PATH
5070   ;;
5071
5072 *)
5073   dynamic_linker=no
5074   ;;
5075 esac
5076 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5077 echo "${ECHO_T}$dynamic_linker" >&6
5078 test "$dynamic_linker" = no && can_build_shared=no
5079
5080
5081 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5082 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5083 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   libltdl_cv_shlibpath_var="$shlibpath_var"
5087 fi
5088 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5089 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5090 if test -n "$libltdl_cv_shlibpath_var"; then
5091
5092 cat >>confdefs.h <<_ACEOF
5093 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5094 _ACEOF
5095
5096 fi
5097
5098 fi
5099
5100                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5101
5102
5103 # See if the user has requested runtime debugging.
5104 LIBGCJDEBUG="disable"
5105
5106 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5107 if test "${enable_libgcj_debug+set}" = set; then
5108   enableval="$enable_libgcj_debug"
5109   if test "$enable_libgcj_debug" = yes; then
5110
5111 cat >>confdefs.h <<\_ACEOF
5112 #define DEBUG 1
5113 _ACEOF
5114
5115     LIBGCJDEBUG="enable"
5116   fi
5117 fi;
5118
5119
5120 # Check whether --with-escher or --without-escher was given.
5121 if test "${with_escher+set}" = set; then
5122   withval="$with_escher"
5123
5124 fi;
5125 case "$with_escher" in
5126 "")
5127         use_escher=false
5128         ;;
5129 "no")
5130         use_escher=false
5131         ;;
5132 "yes")
5133         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5134 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5135    { (exit 1); exit 1; }; }
5136         ;;
5137 *)
5138         use_escher=true
5139         ;;
5140 esac
5141
5142 # Determine which AWT peer libraries to build
5143 # Check whether --enable-java-awt or --disable-java-awt was given.
5144 if test "${enable_java_awt+set}" = set; then
5145   enableval="$enable_java_awt"
5146
5147 fi;
5148
5149 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5150 use_xlib_awt=""
5151 use_gtk_awt=""
5152 use_qt_awt=""
5153 use_x_awt=""
5154 # The default toolkit to use is the first one specified.
5155 TOOLKIT=
5156
5157
5158 for peer in $peerlibs ; do
5159   case $peer in
5160     xlib)
5161       if test "$no_x" = yes; then
5162         echo "*** xlib peers requested but no X library available" 1>&2
5163         exit 1
5164       else
5165         use_xlib_awt="yes"
5166         if test -z "$TOOLKIT"; then
5167            TOOLKIT=gnu.awt.xlib.XToolkit
5168         fi
5169       fi
5170       ;;
5171     gtk)
5172       if test "$no_x" = yes; then
5173          echo "*** gtk peers requested but no X library available" 1>&2
5174          exit 1
5175       else
5176          use_gtk_awt=yes
5177          if test -z "$TOOLKIT"; then
5178             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5179          fi
5180       fi
5181       ;;
5182     qt)
5183       if test "$no_x" = yes; then
5184          # Perhaps we should admit the possibility of embedded Qt.
5185          echo "*** Qt peers requested but no X library available" 1>&2
5186          exit 1
5187       else
5188          use_qt_awt=yes
5189          if test -z "$TOOLKIT"; then
5190             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5191          fi
5192       fi
5193       ;;
5194     x)
5195       use_x_awt=yes
5196       if test -z "$TOOLKIT"; then
5197          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5198       fi
5199       ;;
5200     no)
5201       use_xlib_awt=
5202       use_gtk_awt=
5203       use_qt_awt=
5204       use_x_awt=
5205       break
5206       ;;
5207     *)
5208       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5209       exit 1
5210   esac
5211 done
5212
5213
5214
5215 if test "$use_xlib_awt" = yes; then
5216   XLIB_AWT_TRUE=
5217   XLIB_AWT_FALSE='#'
5218 else
5219   XLIB_AWT_TRUE='#'
5220   XLIB_AWT_FALSE=
5221 fi
5222
5223
5224
5225 if test "$use_x_awt" = yes; then
5226   X_AWT_TRUE=
5227   X_AWT_FALSE='#'
5228 else
5229   X_AWT_TRUE='#'
5230   X_AWT_FALSE=
5231 fi
5232
5233
5234
5235 cat >>confdefs.h <<_ACEOF
5236 #define AWT_TOOLKIT "$TOOLKIT"
5237 _ACEOF
5238
5239
5240
5241 cat >>confdefs.h <<_ACEOF
5242 #define LIBGCJ_PREFIX "$prefix"
5243 _ACEOF
5244
5245
5246 # Create standard.omit based on decisions we just made.
5247 cp $srcdir/standard.omit.in standard.omit
5248 if test "$use_xlib_awt" != yes; then
5249    echo gnu/awt/xlib >> standard.omit
5250    echo gnu/gcj/xlib >> standard.omit
5251 fi
5252 if test "$use_x_awt" != yes; then
5253    echo gnu/java/awt/peer/x >> standard.omit
5254 fi
5255
5256 # Tools that need to be compiled against classpath's tools classes
5257 : > vm-tools-packages
5258 for package in gnu/gcj/tools/gc_analyze ; do
5259     echo $package >> standard.omit
5260     echo $package >> vm-tools-packages
5261 done
5262
5263 if test -z "${with_multisubdir}"; then
5264    builddotdot=.
5265 else
5266    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5267 fi
5268
5269 NATIVE=yes
5270
5271 # Which gcj and host gcj (for ecjx) do we use?
5272 which_gcj=default
5273 host_exeext=${ac_exeext}
5274 GCJ_FOR_ECJX=
5275 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5276 if test -n "${with_cross_host}"; then
5277   # We are being configured with a cross compiler. We can't
5278   # use ac_exeext, because that is for the target platform.
5279   NATIVE=no
5280   cross_host_exeext=
5281   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5282   case "${with_cross_host}" in
5283      *mingw* | *cygwin*)
5284          cross_host_exeext=.exe
5285      ;;
5286   esac
5287   host_exeext=${cross_host_exeext}
5288   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5289      if test x"$build_noncanonical" = x"$with_cross_host"; then
5290         # Ordinary cross (host!=target and host=build)
5291         which_gcj=built
5292      else
5293         # Canadian cross (host!=target and host!=build)
5294         which_gcj=cross
5295      fi
5296   else
5297      which_gcj=cross
5298   fi
5299 else
5300   # We are being configured with a native or crossed-native compiler
5301   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5302      if test x"$build" = x"$host"; then
5303         # True native build (host=target and host=build)
5304         which_gcj=built
5305      else
5306         # Crossed-native build (host=target and host!=build)
5307         which_gcj=cross
5308      fi
5309   else
5310      which_gcj=path
5311   fi
5312 fi
5313 case "${which_gcj}" in
5314    built)
5315       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5316       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5317    ;;
5318    cross)
5319       if test "x${with_newlib}" = "xyes"; then
5320          # FIXME (comment): Why is this needed?
5321          GCC_UNWIND_INCLUDE=
5322          GCJ="${target_noncanonical}-gcj"
5323       else
5324          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5325       fi
5326       GCJH='$(target_noncanonical)-gcjh'
5327    ;;
5328    path)
5329       GCJ="gcj -B`${PWDCMD-pwd}`/"
5330       GCJH=gcjh
5331    ;;
5332 esac
5333
5334
5335
5336
5337
5338 # Create it, so that compile/link tests don't fail
5339 test -f libgcj.spec || touch libgcj.spec
5340
5341
5342
5343 # Set up to configure Classpath.
5344 # FIXME: no supported way to pass args in autoconf.
5345 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5346 # Disable tool wrappers to avoid ltdl.h configure check.
5347 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5348 ac_configure_args="$ac_configure_args --disable-load-library"
5349 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5350 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5351 dir1=`cd $srcdir && pwd`
5352 dir2=`pwd`
5353 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5354 ac_configure_args="$ac_configure_args --disable-core-jni"
5355 ac_configure_args="$ac_configure_args --disable-examples"
5356 ac_configure_args="$ac_configure_args --with-glibj=build"
5357 if test "$plugin_enabled" != yes; then
5358   ac_configure_args="$ac_configure_args --disable-plugin"
5359 fi
5360 if test "$gconf_enabled" != yes; then
5361   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5362   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5363 fi
5364 if test "$use_gtk_awt" != yes; then
5365   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5366 fi
5367 if test "$use_qt_awt" != yes; then
5368   ac_configure_args="$ac_configure_args --disable-qt-peer"
5369 else
5370   # We need this as qt is disabled by default in classpath.
5371   ac_configure_args="$ac_configure_args --enable-qt-peer"
5372 fi
5373 if test "$use_x_awt" != yes; then
5374   ac_configure_args="$ac_configure_args --without-escher"
5375 else
5376   # We need this as escher is disabled by default in classpath.
5377   if test "$use_escher" != true; then
5378     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5379 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5380    { (exit 1); exit 1; }; }
5381   else
5382     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5383   fi
5384 fi
5385 # -Werror causes unavoidable problems in code using alsa.
5386 ac_configure_args="$ac_configure_args --disable-Werror"
5387
5388 # Only use libltdl for non-newlib builds.
5389 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5390      case $enable_ltdl_convenience in
5391   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5392 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5393    { (exit 1); exit 1; }; } ;;
5394   "") enable_ltdl_convenience=yes
5395       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5396   esac
5397   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5398   LTDLINCL='-I${top_srcdir}/''libltdl'
5399   # For backwards non-gettext consistent compatibility...
5400   INCLTDL="$LTDLINCL"
5401
5402    enable_dlopen=yes
5403
5404
5405
5406    DIRLTDL=libltdl
5407
5408 cat >>confdefs.h <<\_ACEOF
5409 #define USE_LTDL 1
5410 _ACEOF
5411
5412    # Sigh.  Libtool's macro doesn't do the right thing.
5413    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5414    # FIXME: this is a hack.
5415    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5416    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5417 fi
5418
5419
5420
5421
5422
5423 macro_version='2.1a'
5424 macro_revision='1.2435'
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437 ltmain="$ac_aux_dir/ltmain.sh"
5438
5439 # Set options
5440
5441
5442 enable_win32_dll=no
5443
5444
5445 # Check whether --enable-shared or --disable-shared was given.
5446 if test "${enable_shared+set}" = set; then
5447   enableval="$enable_shared"
5448   p=${PACKAGE-default}
5449     case $enableval in
5450     yes) enable_shared=yes ;;
5451     no) enable_shared=no ;;
5452     *)
5453       enable_shared=no
5454       # Look at the argument we got.  We use all the common list separators.
5455       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5456       for pkg in $enableval; do
5457         IFS="$lt_save_ifs"
5458         if test "X$pkg" = "X$p"; then
5459           enable_shared=yes
5460         fi
5461       done
5462       IFS="$lt_save_ifs"
5463       ;;
5464     esac
5465 else
5466   enable_shared=yes
5467 fi;
5468
5469
5470
5471
5472
5473
5474
5475
5476 # Check whether --enable-static or --disable-static was given.
5477 if test "${enable_static+set}" = set; then
5478   enableval="$enable_static"
5479   p=${PACKAGE-default}
5480     case $enableval in
5481     yes) enable_static=yes ;;
5482     no) enable_static=no ;;
5483     *)
5484      enable_static=no
5485       # Look at the argument we got.  We use all the common list separators.
5486       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5487       for pkg in $enableval; do
5488         IFS="$lt_save_ifs"
5489         if test "X$pkg" = "X$p"; then
5490           enable_static=yes
5491         fi
5492       done
5493       IFS="$lt_save_ifs"
5494       ;;
5495     esac
5496 else
5497   enable_static=yes
5498 fi;
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508 # Check whether --with-pic or --without-pic was given.
5509 if test "${with_pic+set}" = set; then
5510   withval="$with_pic"
5511   pic_mode="$withval"
5512 else
5513   pic_mode=default
5514 fi;
5515
5516 test -z "$pic_mode" && pic_mode=default
5517
5518
5519
5520
5521
5522
5523
5524 # Check whether --enable-fast-install or --disable-fast-install was given.
5525 if test "${enable_fast_install+set}" = set; then
5526   enableval="$enable_fast_install"
5527   p=${PACKAGE-default}
5528     case $enableval in
5529     yes) enable_fast_install=yes ;;
5530     no) enable_fast_install=no ;;
5531     *)
5532       enable_fast_install=no
5533       # Look at the argument we got.  We use all the common list separators.
5534       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5535       for pkg in $enableval; do
5536         IFS="$lt_save_ifs"
5537         if test "X$pkg" = "X$p"; then
5538           enable_fast_install=yes
5539         fi
5540       done
5541       IFS="$lt_save_ifs"
5542       ;;
5543     esac
5544 else
5545   enable_fast_install=yes
5546 fi;
5547
5548
5549
5550
5551
5552
5553
5554
5555 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5556 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5557 if test "${lt_cv_path_SED+set}" = set; then
5558   echo $ECHO_N "(cached) $ECHO_C" >&6
5559 else
5560   # Loop through the user's path and test for sed and gsed.
5561 # Then use that list of sed's as ones to test for truncation.
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565   IFS=$as_save_IFS
5566   test -z "$as_dir" && as_dir=.
5567   for lt_ac_prog in sed gsed; do
5568     for ac_exec_ext in '' $ac_executable_extensions; do
5569       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5570         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5571       fi
5572     done
5573   done
5574 done
5575 IFS=$as_save_IFS
5576 lt_ac_max=0
5577 lt_ac_count=0
5578 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5579 # along with /bin/sed that truncates output.
5580 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5581   test ! -f $lt_ac_sed && continue
5582   cat /dev/null > conftest.in
5583   lt_ac_count=0
5584   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5585   # Check for GNU sed and select it if it is found.
5586   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5587     lt_cv_path_SED=$lt_ac_sed
5588     break
5589   fi
5590   while true; do
5591     cat conftest.in conftest.in >conftest.tmp
5592     mv conftest.tmp conftest.in
5593     cp conftest.in conftest.nl
5594     echo >>conftest.nl
5595     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5596     cmp -s conftest.out conftest.nl || break
5597     # 10000 chars as input seems more than enough
5598     test $lt_ac_count -gt 10 && break
5599     lt_ac_count=`expr $lt_ac_count + 1`
5600     if test $lt_ac_count -gt $lt_ac_max; then
5601       lt_ac_max=$lt_ac_count
5602       lt_cv_path_SED=$lt_ac_sed
5603     fi
5604   done
5605 done
5606
5607 fi
5608
5609 SED=$lt_cv_path_SED
5610
5611 echo "$as_me:$LINENO: result: $SED" >&5
5612 echo "${ECHO_T}$SED" >&6
5613
5614 test -z "$SED" && SED=sed
5615 Xsed="$SED -e 1s/^X//"
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627 echo "$as_me:$LINENO: checking for egrep" >&5
5628 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5629 if test "${ac_cv_prog_egrep+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5633     then ac_cv_prog_egrep='grep -E'
5634     else ac_cv_prog_egrep='egrep'
5635     fi
5636 fi
5637 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5638 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5639  EGREP=$ac_cv_prog_egrep
5640
5641
5642 echo "$as_me:$LINENO: checking for fgrep" >&5
5643 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5644 if test "${ac_cv_prog_fgrep+set}" = set; then
5645   echo $ECHO_N "(cached) $ECHO_C" >&6
5646 else
5647   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5648     then ac_cv_prog_fgrep='grep -F'
5649     else ac_cv_prog_fgrep='fgrep'
5650     fi
5651 fi
5652 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5653 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5654  FGREP=$ac_cv_prog_fgrep
5655
5656
5657 test -z "$GREP" && GREP=grep
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5678 if test "${with_gnu_ld+set}" = set; then
5679   withval="$with_gnu_ld"
5680   test "$withval" = no || with_gnu_ld=yes
5681 else
5682   with_gnu_ld=no
5683 fi;
5684 ac_prog=ld
5685 if test "$GCC" = yes; then
5686   # Check if gcc -print-prog-name=ld gives a path.
5687   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5688 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5689   case $host in
5690   *-*-mingw*)
5691     # gcc leaves a trailing carriage return which upsets mingw
5692     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5693   *)
5694     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5695   esac
5696   case $ac_prog in
5697     # Accept absolute paths.
5698     [\\/]* | ?:[\\/]*)
5699       re_direlt='/[^/][^/]*/\.\./'
5700       # Canonicalize the pathname of ld
5701       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5702       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5703         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5704       done
5705       test -z "$LD" && LD="$ac_prog"
5706       ;;
5707   "")
5708     # If it fails, then pretend we aren't using GCC.
5709     ac_prog=ld
5710     ;;
5711   *)
5712     # If it is relative, then search for the first ld in PATH.
5713     with_gnu_ld=unknown
5714     ;;
5715   esac
5716 elif test "$with_gnu_ld" = yes; then
5717   echo "$as_me:$LINENO: checking for GNU ld" >&5
5718 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5719 else
5720   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5721 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5722 fi
5723 if test "${lt_cv_path_LD+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   if test -z "$LD"; then
5727   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5728   for ac_dir in $PATH; do
5729     IFS="$lt_save_ifs"
5730     test -z "$ac_dir" && ac_dir=.
5731     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5732       lt_cv_path_LD="$ac_dir/$ac_prog"
5733       # Check to see if the program is GNU ld.  I'd rather use --version,
5734       # but apparently some variants of GNU ld only accept -v.
5735       # Break only if it was the GNU/non-GNU ld that we prefer.
5736       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5737       *GNU* | *'with BFD'*)
5738         test "$with_gnu_ld" != no && break
5739         ;;
5740       *)
5741         test "$with_gnu_ld" != yes && break
5742         ;;
5743       esac
5744     fi
5745   done
5746   IFS="$lt_save_ifs"
5747 else
5748   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5749 fi
5750 fi
5751
5752 LD="$lt_cv_path_LD"
5753 if test -n "$LD"; then
5754   echo "$as_me:$LINENO: result: $LD" >&5
5755 echo "${ECHO_T}$LD" >&6
5756 else
5757   echo "$as_me:$LINENO: result: no" >&5
5758 echo "${ECHO_T}no" >&6
5759 fi
5760 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5761 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5762    { (exit 1); exit 1; }; }
5763 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5764 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5765 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5766   echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5769 case `$LD -v 2>&1 </dev/null` in
5770 *GNU* | *'with BFD'*)
5771   lt_cv_prog_gnu_ld=yes
5772   ;;
5773 *)
5774   lt_cv_prog_gnu_ld=no
5775   ;;
5776 esac
5777 fi
5778 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5779 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5780 with_gnu_ld=$lt_cv_prog_gnu_ld
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5792 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5793 if test "${lt_cv_path_NM+set}" = set; then
5794   echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796   if test -n "$NM"; then
5797   # Let the user override the test.
5798   lt_cv_path_NM="$NM"
5799 else
5800   lt_nm_to_check="${ac_tool_prefix}nm"
5801   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5802     lt_nm_to_check="$lt_nm_to_check nm"
5803   fi
5804   for lt_tmp_nm in $lt_nm_to_check; do
5805     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5806     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5807       IFS="$lt_save_ifs"
5808       test -z "$ac_dir" && ac_dir=.
5809       tmp_nm="$ac_dir/$lt_tmp_nm"
5810       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5811         # Check to see if the nm accepts a BSD-compat flag.
5812         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5813         #   nm: unknown option "B" ignored
5814         # Tru64's nm complains that /dev/null is an invalid object file
5815         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5816         */dev/null* | *'Invalid file or object type'*)
5817           lt_cv_path_NM="$tmp_nm -B"
5818           break
5819           ;;
5820         *)
5821           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5822           */dev/null*)
5823             lt_cv_path_NM="$tmp_nm -p"
5824             break
5825             ;;
5826           *)
5827             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5828             continue # so that we can try to find one that supports BSD flags
5829             ;;
5830           esac
5831           ;;
5832         esac
5833       fi
5834     done
5835     IFS="$lt_save_ifs"
5836   done
5837   : ${lt_cv_path_NM=no}
5838 fi
5839 fi
5840 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5841 echo "${ECHO_T}$lt_cv_path_NM" >&6
5842 if test "$lt_cv_path_NM" != "no"; then
5843   NM="$lt_cv_path_NM"
5844 else
5845   # Didn't find any BSD compatible name lister, look for dumpbin.
5846   if test -n "$ac_tool_prefix"; then
5847   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5848   do
5849     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5850 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5851 echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   if test -n "$DUMPBIN"; then
5857   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5861 do
5862   IFS=$as_save_IFS
5863   test -z "$as_dir" && as_dir=.
5864   for ac_exec_ext in '' $ac_executable_extensions; do
5865   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868     break 2
5869   fi
5870 done
5871 done
5872
5873 fi
5874 fi
5875 DUMPBIN=$ac_cv_prog_DUMPBIN
5876 if test -n "$DUMPBIN"; then
5877   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5878 echo "${ECHO_T}$DUMPBIN" >&6
5879 else
5880   echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5882 fi
5883
5884     test -n "$DUMPBIN" && break
5885   done
5886 fi
5887 if test -z "$DUMPBIN"; then
5888   ac_ct_DUMPBIN=$DUMPBIN
5889   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5890 do
5891   # Extract the first word of "$ac_prog", so it can be a program name with args.
5892 set dummy $ac_prog; ac_word=$2
5893 echo "$as_me:$LINENO: checking for $ac_word" >&5
5894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5895 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   if test -n "$ac_ct_DUMPBIN"; then
5899   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5903 do
5904   IFS=$as_save_IFS
5905   test -z "$as_dir" && as_dir=.
5906   for ac_exec_ext in '' $ac_executable_extensions; do
5907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5908     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910     break 2
5911   fi
5912 done
5913 done
5914
5915 fi
5916 fi
5917 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5918 if test -n "$ac_ct_DUMPBIN"; then
5919   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5920 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5921 else
5922   echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924 fi
5925
5926   test -n "$ac_ct_DUMPBIN" && break
5927 done
5928 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5929
5930   DUMPBIN=$ac_ct_DUMPBIN
5931 fi
5932
5933
5934   if test "$DUMPBIN" != ":"; then
5935     NM="$DUMPBIN"
5936   fi
5937 fi
5938 test -z "$NM" && NM=nm
5939
5940
5941
5942
5943
5944
5945 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5946 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5947 if test "${lt_cv_nm_interface+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   lt_cv_nm_interface="BSD nm"
5951   echo "int some_variable = 0;" > conftest.$ac_ext
5952   (eval echo "\"\$as_me:5952: $ac_compile\"" >&5)
5953   (eval "$ac_compile" 2>conftest.err)
5954   cat conftest.err >&5
5955   (eval echo "\"\$as_me:5955: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5956   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5957   cat conftest.err >&5
5958   (eval echo "\"\$as_me:5958: output\"" >&5)
5959   cat conftest.out >&5
5960   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5961     lt_cv_nm_interface="MS dumpbin"
5962   fi
5963   rm -f conftest*
5964 fi
5965 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5966 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5967
5968 # find the maximum length of command line arguments
5969 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5970 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5971 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5972   echo $ECHO_N "(cached) $ECHO_C" >&6
5973 else
5974     i=0
5975   teststring="ABCD"
5976
5977   case $build_os in
5978   msdosdjgpp*)
5979     # On DJGPP, this test can blow up pretty badly due to problems in libc
5980     # (any single argument exceeding 2000 bytes causes a buffer overrun
5981     # during glob expansion).  Even if it were fixed, the result of this
5982     # check would be larger than it should be.
5983     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5984     ;;
5985
5986   gnu*)
5987     # Under GNU Hurd, this test is not required because there is
5988     # no limit to the length of command line arguments.
5989     # Libtool will interpret -1 as no limit whatsoever
5990     lt_cv_sys_max_cmd_len=-1;
5991     ;;
5992
5993   cygwin* | mingw*)
5994     # On Win9x/ME, this test blows up -- it succeeds, but takes
5995     # about 5 minutes as the teststring grows exponentially.
5996     # Worse, since 9x/ME are not pre-emptively multitasking,
5997     # you end up with a "frozen" computer, even though with patience
5998     # the test eventually succeeds (with a max line length of 256k).
5999     # Instead, let's just punt: use the minimum linelength reported by
6000     # all of the supported platforms: 8192 (on NT/2K/XP).
6001     lt_cv_sys_max_cmd_len=8192;
6002     ;;
6003
6004   amigaos*)
6005     # On AmigaOS with pdksh, this test takes hours, literally.
6006     # So we just punt and use a minimum line length of 8192.
6007     lt_cv_sys_max_cmd_len=8192;
6008     ;;
6009
6010   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6011     # This has been around since 386BSD, at least.  Likely further.
6012     if test -x /sbin/sysctl; then
6013       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6014     elif test -x /usr/sbin/sysctl; then
6015       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6016     else
6017       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6018     fi
6019     # And add a safety zone
6020     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6021     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6022     ;;
6023
6024   interix*)
6025     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6026     lt_cv_sys_max_cmd_len=196608
6027     ;;
6028
6029   osf*)
6030     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6031     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6032     # nice to cause kernel panics so lets avoid the loop below.
6033     # First set a reasonable default.
6034     lt_cv_sys_max_cmd_len=16384
6035     #
6036     if test -x /sbin/sysconfig; then
6037       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6038         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6039       esac
6040     fi
6041     ;;
6042   sco3.2v5*)
6043     lt_cv_sys_max_cmd_len=102400
6044     ;;
6045   sysv5* | sco5v6* | sysv4.2uw2*)
6046     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6047     if test -n "$kargmax"; then
6048       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6049     else
6050       lt_cv_sys_max_cmd_len=32768
6051     fi
6052     ;;
6053   *)
6054     # Make teststring a little bigger before we do anything with it.
6055     # a 1K string should be a reasonable start.
6056     for i in 1 2 3 4 5 6 7 8 ; do
6057       teststring=$teststring$teststring
6058     done
6059     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060     # If test is not a shell built-in, we'll probably end up computing a
6061     # maximum length that is only half of the actual maximum length, but
6062     # we can't tell.
6063     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6064                = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6065             test $i != 17 # 1/2 MB should be enough
6066     do
6067       i=`expr $i + 1`
6068       teststring=$teststring$teststring
6069     done
6070     # Only check the string length outside the loop.
6071     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6072     teststring=
6073     # Add a significant safety factor because C++ compilers can tack on massive
6074     # amounts of additional arguments before passing them to the linker.
6075     # It appears as though 1/2 is a usable value.
6076     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6077     ;;
6078   esac
6079
6080 fi
6081
6082 if test -n $lt_cv_sys_max_cmd_len ; then
6083   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6084 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6085 else
6086   echo "$as_me:$LINENO: result: none" >&5
6087 echo "${ECHO_T}none" >&6
6088 fi
6089 max_cmd_len=$lt_cv_sys_max_cmd_len
6090
6091
6092
6093
6094
6095
6096 : ${CP="cp -f"}
6097 : ${MV="mv -f"}
6098 : ${RM="rm -f"}
6099
6100 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6101 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6102 # Try some XSI features
6103 xsi_shell=no
6104 ( _lt_dummy="a/b/c"
6105   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6106       = c,a/b,, ) >/dev/null 2>&1 \
6107   && xsi_shell=yes
6108 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6109 echo "${ECHO_T}$xsi_shell" >&6
6110
6111
6112 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6113 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6114 lt_shell_append=no
6115 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6116     >/dev/null 2>&1 \
6117   && lt_shell_append=yes
6118 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6119 echo "${ECHO_T}$lt_shell_append" >&6
6120
6121
6122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6123   lt_unset=unset
6124 else
6125   lt_unset=false
6126 fi
6127
6128
6129
6130
6131
6132 # test EBCDIC or ASCII
6133 case `echo X|tr X '\101'` in
6134  A) # ASCII based system
6135     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6136   lt_SP2NL='tr \040 \012'
6137   lt_NL2SP='tr \015\012 \040\040'
6138   ;;
6139  *) # EBCDIC based system
6140   lt_SP2NL='tr \100 \n'
6141   lt_NL2SP='tr \r\n \100\100'
6142   ;;
6143 esac
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6154 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6155 if test "${lt_cv_ld_reload_flag+set}" = set; then
6156   echo $ECHO_N "(cached) $ECHO_C" >&6
6157 else
6158   lt_cv_ld_reload_flag='-r'
6159 fi
6160 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6161 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6162 reload_flag=$lt_cv_ld_reload_flag
6163 case $reload_flag in
6164 "" | " "*) ;;
6165 *) reload_flag=" $reload_flag" ;;
6166 esac
6167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 case $host_os in
6169   darwin*)
6170     if test "$GCC" = yes; then
6171       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6172     else
6173       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6174     fi
6175     ;;
6176 esac
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6188 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6189 if test "${lt_cv_deplibs_check_method+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   lt_cv_file_magic_cmd='$MAGIC_CMD'
6193 lt_cv_file_magic_test_file=
6194 lt_cv_deplibs_check_method='unknown'
6195 # Need to set the preceding variable on all platforms that support
6196 # interlibrary dependencies.
6197 # 'none' -- dependencies not supported.
6198 # `unknown' -- same as none, but documents that we really don't know.
6199 # 'pass_all' -- all dependencies passed with no checks.
6200 # 'test_compile' -- check by making test program.
6201 # 'file_magic [[regex]]' -- check by looking for files in library path
6202 # which responds to the $file_magic_cmd with a given extended regex.
6203 # If you have `file' or equivalent on your system and you're not sure
6204 # whether `pass_all' will *always* work, you probably want this one.
6205
6206 case $host_os in
6207 aix4* | aix5*)
6208   lt_cv_deplibs_check_method=pass_all
6209   ;;
6210
6211 beos*)
6212   lt_cv_deplibs_check_method=pass_all
6213   ;;
6214
6215 bsdi[45]*)
6216   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6217   lt_cv_file_magic_cmd='/usr/bin/file -L'
6218   lt_cv_file_magic_test_file=/shlib/libc.so
6219   ;;
6220
6221 cygwin*)
6222   # func_win32_libid is a shell function defined in ltmain.sh
6223   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6224   lt_cv_file_magic_cmd='func_win32_libid'
6225   ;;
6226
6227 mingw* | pw32*)
6228   # Base MSYS/MinGW do not provide the 'file' command needed by
6229   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6230   # unless we find 'file', for example because we are cross-compiling.
6231   if ( file / ) >/dev/null 2>&1; then
6232     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6233     lt_cv_file_magic_cmd='func_win32_libid'
6234   else
6235     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6236     lt_cv_file_magic_cmd='$OBJDUMP -f'
6237   fi
6238   ;;
6239
6240 darwin* | rhapsody*)
6241   lt_cv_deplibs_check_method=pass_all
6242   ;;
6243
6244 freebsd* | dragonfly*)
6245   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6246     case $host_cpu in
6247     i*86 )
6248       # Not sure whether the presence of OpenBSD here was a mistake.
6249       # Let's accept both of them until this is cleared up.
6250       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6251       lt_cv_file_magic_cmd=/usr/bin/file
6252       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6253       ;;
6254     esac
6255   else
6256     lt_cv_deplibs_check_method=pass_all
6257   fi
6258   ;;
6259
6260 gnu*)
6261   lt_cv_deplibs_check_method=pass_all
6262   ;;
6263
6264 hpux10.20* | hpux11*)
6265   lt_cv_file_magic_cmd=/usr/bin/file
6266   case $host_cpu in
6267   ia64*)
6268     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6269     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6270     ;;
6271   hppa*64*)
6272     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]'
6273     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6274     ;;
6275   *)
6276     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6277     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6278     ;;
6279   esac
6280   ;;
6281
6282 interix[3-9]*)
6283   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6284   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6285   ;;
6286
6287 irix5* | irix6* | nonstopux*)
6288   case $LD in
6289   *-32|*"-32 ") libmagic=32-bit;;
6290   *-n32|*"-n32 ") libmagic=N32;;
6291   *-64|*"-64 ") libmagic=64-bit;;
6292   *) libmagic=never-match;;
6293   esac
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 # This must be Linux ELF.
6298 linux* | k*bsd*-gnu)
6299   lt_cv_deplibs_check_method=pass_all
6300   ;;
6301
6302 netbsd*)
6303   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6304     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6305   else
6306     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6307   fi
6308   ;;
6309
6310 newos6*)
6311   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6312   lt_cv_file_magic_cmd=/usr/bin/file
6313   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6314   ;;
6315
6316 *nto* | *qnx*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319
6320 openbsd*)
6321   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6323   else
6324     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6325   fi
6326   ;;
6327
6328 osf3* | osf4* | osf5*)
6329   lt_cv_deplibs_check_method=pass_all
6330   ;;
6331
6332 rdos*)
6333   lt_cv_deplibs_check_method=pass_all
6334   ;;
6335
6336 solaris*)
6337   lt_cv_deplibs_check_method=pass_all
6338   ;;
6339
6340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 sysv4 | sysv4.3*)
6345   case $host_vendor in
6346   motorola)
6347     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]'
6348     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6349     ;;
6350   ncr)
6351     lt_cv_deplibs_check_method=pass_all
6352     ;;
6353   sequent)
6354     lt_cv_file_magic_cmd='/bin/file'
6355     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6356     ;;
6357   sni)
6358     lt_cv_file_magic_cmd='/bin/file'
6359     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6360     lt_cv_file_magic_test_file=/lib/libc.so
6361     ;;
6362   siemens)
6363     lt_cv_deplibs_check_method=pass_all
6364     ;;
6365   pc)
6366     lt_cv_deplibs_check_method=pass_all
6367     ;;
6368   esac
6369   ;;
6370
6371 tpf*)
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374 esac
6375
6376 fi
6377 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6378 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6379 file_magic_cmd=$lt_cv_file_magic_cmd
6380 deplibs_check_method=$lt_cv_deplibs_check_method
6381 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6382
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}ar", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   if test -n "$AR"; then
6403   ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
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 AR=$ac_cv_prog_AR
6422 if test -n "$AR"; then
6423   echo "$as_me:$LINENO: result: $AR" >&5
6424 echo "${ECHO_T}$AR" >&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_AR"; then
6432   ac_ct_AR=$AR
6433   # Extract the first word of "ar", so it can be a program name with args.
6434 set dummy ar; 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_AR+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   if test -n "$ac_ct_AR"; then
6441   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar"
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_AR" && ac_cv_prog_ac_ct_AR="false"
6458 fi
6459 fi
6460 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6461 if test -n "$ac_ct_AR"; then
6462   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6463 echo "${ECHO_T}$ac_ct_AR" >&6
6464 else
6465   echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6
6467 fi
6468
6469   AR=$ac_ct_AR
6470 else
6471   AR="$ac_cv_prog_AR"
6472 fi
6473
6474 test -z "$AR" && AR=ar
6475 test -z "$AR_FLAGS" && AR_FLAGS=cru
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487 if test -n "$ac_tool_prefix"; then
6488   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6489 set dummy ${ac_tool_prefix}strip; ac_word=$2
6490 echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6492 if test "${ac_cv_prog_STRIP+set}" = set; then
6493   echo $ECHO_N "(cached) $ECHO_C" >&6
6494 else
6495   if test -n "$STRIP"; then
6496   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503   for ac_exec_ext in '' $ac_executable_extensions; do
6504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510 done
6511
6512 fi
6513 fi
6514 STRIP=$ac_cv_prog_STRIP
6515 if test -n "$STRIP"; then
6516   echo "$as_me:$LINENO: result: $STRIP" >&5
6517 echo "${ECHO_T}$STRIP" >&6
6518 else
6519   echo "$as_me:$LINENO: result: no" >&5
6520 echo "${ECHO_T}no" >&6
6521 fi
6522
6523 fi
6524 if test -z "$ac_cv_prog_STRIP"; then
6525   ac_ct_STRIP=$STRIP
6526   # Extract the first word of "strip", so it can be a program name with args.
6527 set dummy strip; ac_word=$2
6528 echo "$as_me:$LINENO: checking for $ac_word" >&5
6529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6531   echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533   if test -n "$ac_ct_STRIP"; then
6534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6535 else
6536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537 for as_dir in $PATH
6538 do
6539   IFS=$as_save_IFS
6540   test -z "$as_dir" && as_dir=.
6541   for ac_exec_ext in '' $ac_executable_extensions; do
6542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6543     ac_cv_prog_ac_ct_STRIP="strip"
6544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6545     break 2
6546   fi
6547 done
6548 done
6549
6550   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6551 fi
6552 fi
6553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6554 if test -n "$ac_ct_STRIP"; then
6555   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6556 echo "${ECHO_T}$ac_ct_STRIP" >&6
6557 else
6558   echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6
6560 fi
6561
6562   STRIP=$ac_ct_STRIP
6563 else
6564   STRIP="$ac_cv_prog_STRIP"
6565 fi
6566
6567 test -z "$STRIP" && STRIP=:
6568
6569
6570
6571
6572
6573
6574 if test -n "$ac_tool_prefix"; then
6575   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6576 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6577 echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579 if test "${ac_cv_prog_RANLIB+set}" = set; then
6580   echo $ECHO_N "(cached) $ECHO_C" >&6
6581 else
6582   if test -n "$RANLIB"; then
6583   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6584 else
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598
6599 fi
6600 fi
6601 RANLIB=$ac_cv_prog_RANLIB
6602 if test -n "$RANLIB"; then
6603   echo "$as_me:$LINENO: result: $RANLIB" >&5
6604 echo "${ECHO_T}$RANLIB" >&6
6605 else
6606   echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6608 fi
6609
6610 fi
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612   ac_ct_RANLIB=$RANLIB
6613   # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6617 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6618   echo $ECHO_N "(cached) $ECHO_C" >&6
6619 else
6620   if test -n "$ac_ct_RANLIB"; then
6621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6622 else
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624 for as_dir in $PATH
6625 do
6626   IFS=$as_save_IFS
6627   test -z "$as_dir" && as_dir=.
6628   for ac_exec_ext in '' $ac_executable_extensions; do
6629   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630     ac_cv_prog_ac_ct_RANLIB="ranlib"
6631     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632     break 2
6633   fi
6634 done
6635 done
6636
6637   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6638 fi
6639 fi
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6643 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6644 else
6645   echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6
6647 fi
6648
6649   RANLIB=$ac_ct_RANLIB
6650 else
6651   RANLIB="$ac_cv_prog_RANLIB"
6652 fi
6653
6654 test -z "$RANLIB" && RANLIB=:
6655
6656
6657
6658
6659
6660
6661 # Determine commands to create old-style static archives.
6662 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6663 old_postinstall_cmds='chmod 644 $oldlib'
6664 old_postuninstall_cmds=
6665
6666 if test -n "$RANLIB"; then
6667   case $host_os in
6668   openbsd*)
6669     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6670     ;;
6671   *)
6672     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6673     ;;
6674   esac
6675   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6676 fi
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711 # If no C compiler was specified, use CC.
6712 LTCC=${LTCC-"$CC"}
6713
6714 # If no C compiler flags were specified, use CFLAGS.
6715 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6716
6717 # Allow CC to be a program name with arguments.
6718 compiler=$CC
6719
6720
6721 # Check for command to grab the raw symbol name followed by C symbol from nm.
6722 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6723 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6724 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6725   echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727
6728 # These are sane defaults that work on at least a few old systems.
6729 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6730
6731 # Character class describing NM global symbol codes.
6732 symcode='[BCDEGRST]'
6733
6734 # Regexp to match symbols that can be accessed directly from C.
6735 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6736
6737 # Define system-specific variables.
6738 case $host_os in
6739 aix*)
6740   symcode='[BCDT]'
6741   ;;
6742 cygwin* | mingw* | pw32*)
6743   symcode='[ABCDGISTW]'
6744   ;;
6745 hpux*)
6746   if test "$host_cpu" = ia64; then
6747     symcode='[ABCDEGRST]'
6748   fi
6749   ;;
6750 irix* | nonstopux*)
6751   symcode='[BCDEGRST]'
6752   ;;
6753 osf*)
6754   symcode='[BCDEGQRST]'
6755   ;;
6756 solaris*)
6757   symcode='[BDRT]'
6758   ;;
6759 sco3.2v5*)
6760   symcode='[DT]'
6761   ;;
6762 sysv4.2uw2*)
6763   symcode='[DT]'
6764   ;;
6765 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6766   symcode='[ABDT]'
6767   ;;
6768 sysv4)
6769   symcode='[DFNSTU]'
6770   ;;
6771 esac
6772
6773 # If we're using GNU nm, then use its standard symbol codes.
6774 case `$NM -V 2>&1` in
6775 *GNU* | *'with BFD'*)
6776   symcode='[ABCDGIRSTW]' ;;
6777 esac
6778
6779 # Transform an extracted symbol line into a proper C declaration.
6780 # Some systems (esp. on ia64) link data and code symbols differently,
6781 # so use this general approach.
6782 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6783
6784 # Transform an extracted symbol line into symbol name and symbol address
6785 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6786
6787 # Handle CRLF in mingw tool chain
6788 opt_cr=
6789 case $build_os in
6790 mingw*)
6791   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6792   ;;
6793 esac
6794
6795 # Try without a prefix underscore, then with it.
6796 for ac_symprfx in "" "_"; do
6797
6798   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6799   symxfrm="\\1 $ac_symprfx\\2 \\2"
6800
6801   # Write the raw and C identifiers.
6802   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6803     # Fake it for dumpbin and say T for any non-static function
6804     # and D for any global variable.
6805     # Also find C++ and __fastcall symbols from MSVC++,
6806     # which start with @ or ?.
6807     lt_cv_sys_global_symbol_pipe="$AWK '"\
6808 "     {last_section=section; section=\$ 3};"\
6809 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6810 "     \$ 0!~/External *\|/{next};"\
6811 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6812 "     {if(hide[section]) next};"\
6813 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6814 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6815 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6816 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6817 "     ' prfx=^$ac_symprfx"
6818   else
6819     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6820   fi
6821
6822   # Check to see that the pipe works correctly.
6823   pipe_works=no
6824
6825   rm -f conftest*
6826   cat > conftest.$ac_ext <<_LT_EOF
6827 #ifdef __cplusplus
6828 extern "C" {
6829 #endif
6830 char nm_test_var;
6831 void nm_test_func(void);
6832 void nm_test_func(void){}
6833 #ifdef __cplusplus
6834 }
6835 #endif
6836 int main(){nm_test_var='a';nm_test_func();return(0);}
6837 _LT_EOF
6838
6839   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6840   (eval $ac_compile) 2>&5
6841   ac_status=$?
6842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); }; then
6844     # Now try to grab the symbols.
6845     nlist=conftest.nm
6846     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6847   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6848   ac_status=$?
6849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850   (exit $ac_status); } && test -s "$nlist"; then
6851       # Try sorting and uniquifying the output.
6852       if sort "$nlist" | uniq > "$nlist"T; then
6853         mv -f "$nlist"T "$nlist"
6854       else
6855         rm -f "$nlist"T
6856       fi
6857
6858       # Make sure that we snagged all the symbols we need.
6859       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6860         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6861           cat <<_LT_EOF > conftest.$ac_ext
6862 #ifdef __cplusplus
6863 extern "C" {
6864 #endif
6865
6866 _LT_EOF
6867           # Now generate the symbol file.
6868           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6869
6870           cat <<_LT_EOF >> conftest.$ac_ext
6871
6872 /* The mapping between symbol names and symbols.  */
6873 const struct {
6874   const char *name;
6875   void       *address;
6876 }
6877 lt__PROGRAM__LTX_preloaded_symbols[] =
6878 {
6879   { "@PROGRAM@", (void *) 0 },
6880 _LT_EOF
6881           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6882           cat <<\_LT_EOF >> conftest.$ac_ext
6883   {0, (void *) 0}
6884 };
6885
6886 /* This works around a problem in FreeBSD linker */
6887 #ifdef FREEBSD_WORKAROUND
6888 static const void *lt_preloaded_setup() {
6889   return lt__PROGRAM__LTX_preloaded_symbols;
6890 }
6891 #endif
6892
6893 #ifdef __cplusplus
6894 }
6895 #endif
6896 _LT_EOF
6897           # Now try linking the two files.
6898           mv conftest.$ac_objext conftstm.$ac_objext
6899           lt_save_LIBS="$LIBS"
6900           lt_save_CFLAGS="$CFLAGS"
6901           LIBS="conftstm.$ac_objext"
6902           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6903           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904   (eval $ac_link) 2>&5
6905   ac_status=$?
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6908             pipe_works=yes
6909           fi
6910           LIBS="$lt_save_LIBS"
6911           CFLAGS="$lt_save_CFLAGS"
6912         else
6913           echo "cannot find nm_test_func in $nlist" >&5
6914         fi
6915       else
6916         echo "cannot find nm_test_var in $nlist" >&5
6917       fi
6918     else
6919       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6920     fi
6921   else
6922     echo "$progname: failed program was:" >&5
6923     cat conftest.$ac_ext >&5
6924   fi
6925   rm -f conftest* conftst*
6926
6927   # Do not use the global_symbol_pipe unless it works.
6928   if test "$pipe_works" = yes; then
6929     break
6930   else
6931     lt_cv_sys_global_symbol_pipe=
6932   fi
6933 done
6934
6935 fi
6936
6937 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6938   lt_cv_sys_global_symbol_to_cdecl=
6939 fi
6940 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6941   echo "$as_me:$LINENO: result: failed" >&5
6942 echo "${ECHO_T}failed" >&6
6943 else
6944   echo "$as_me:$LINENO: result: ok" >&5
6945 echo "${ECHO_T}ok" >&6
6946 fi
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6966 if test "${enable_libtool_lock+set}" = set; then
6967   enableval="$enable_libtool_lock"
6968
6969 fi;
6970 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6971
6972 # Some flags need to be propagated to the compiler or linker for good
6973 # libtool support.
6974 case $host in
6975 ia64-*-hpux*)
6976   # Find out which ABI we are using.
6977   echo 'int i;' > conftest.$ac_ext
6978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979   (eval $ac_compile) 2>&5
6980   ac_status=$?
6981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); }; then
6983     case `/usr/bin/file conftest.$ac_objext` in
6984       *ELF-32*)
6985         HPUX_IA64_MODE="32"
6986         ;;
6987       *ELF-64*)
6988         HPUX_IA64_MODE="64"
6989         ;;
6990     esac
6991   fi
6992   rm -rf conftest*
6993   ;;
6994 *-*-irix6*)
6995   # Find out which ABI we are using.
6996   echo '#line 6996 "configure"' > conftest.$ac_ext
6997   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }; then
7002     if test "$lt_cv_prog_gnu_ld" = yes; then
7003       case `/usr/bin/file conftest.$ac_objext` in
7004         *32-bit*)
7005           LD="${LD-ld} -melf32bsmip"
7006           ;;
7007         *N32*)
7008           LD="${LD-ld} -melf32bmipn32"
7009           ;;
7010         *64-bit*)
7011           LD="${LD-ld} -melf64bmip"
7012         ;;
7013       esac
7014     else
7015       case `/usr/bin/file conftest.$ac_objext` in
7016         *32-bit*)
7017           LD="${LD-ld} -32"
7018           ;;
7019         *N32*)
7020           LD="${LD-ld} -n32"
7021           ;;
7022         *64-bit*)
7023           LD="${LD-ld} -64"
7024           ;;
7025       esac
7026     fi
7027   fi
7028   rm -rf conftest*
7029   ;;
7030
7031 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7032 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7033   # Find out which ABI we are using.
7034   echo 'int i;' > conftest.$ac_ext
7035   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036   (eval $ac_compile) 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; then
7040     case `/usr/bin/file conftest.o` in
7041       *32-bit*)
7042         case $host in
7043           x86_64-*kfreebsd*-gnu)
7044             LD="${LD-ld} -m elf_i386_fbsd"
7045             ;;
7046           x86_64-*linux*)
7047             LD="${LD-ld} -m elf_i386"
7048             ;;
7049           ppc64-*linux*|powerpc64-*linux*)
7050             LD="${LD-ld} -m elf32ppclinux"
7051             ;;
7052           s390x-*linux*)
7053             LD="${LD-ld} -m elf_s390"
7054             ;;
7055           sparc64-*linux*)
7056             LD="${LD-ld} -m elf32_sparc"
7057             ;;
7058         esac
7059         ;;
7060       *64-bit*)
7061         case $host in
7062           x86_64-*kfreebsd*-gnu)
7063             LD="${LD-ld} -m elf_x86_64_fbsd"
7064             ;;
7065           x86_64-*linux*)
7066             LD="${LD-ld} -m elf_x86_64"
7067             ;;
7068           ppc*-*linux*|powerpc*-*linux*)
7069             LD="${LD-ld} -m elf64ppc"
7070             ;;
7071           s390*-*linux*|s390*-*tpf*)
7072             LD="${LD-ld} -m elf64_s390"
7073             ;;
7074           sparc*-*linux*)
7075             LD="${LD-ld} -m elf64_sparc"
7076             ;;
7077         esac
7078         ;;
7079     esac
7080   fi
7081   rm -rf conftest*
7082   ;;
7083
7084 *-*-sco3.2v5*)
7085   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7086   SAVE_CFLAGS="$CFLAGS"
7087   CFLAGS="$CFLAGS -belf"
7088   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7089 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7090 if test "${lt_cv_cc_needs_belf+set}" = set; then
7091   echo $ECHO_N "(cached) $ECHO_C" >&6
7092 else
7093   ac_ext=c
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098
7099      if test x$gcc_no_link = xyes; then
7100   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7102    { (exit 1); exit 1; }; }
7103 fi
7104 cat >conftest.$ac_ext <<_ACEOF
7105 /* confdefs.h.  */
7106 _ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h.  */
7110
7111 int
7112 main ()
7113 {
7114
7115   ;
7116   return 0;
7117 }
7118 _ACEOF
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121   (eval $ac_link) 2>conftest.er1
7122   ac_status=$?
7123   grep -v '^ *+' conftest.er1 >conftest.err
7124   rm -f conftest.er1
7125   cat conftest.err >&5
7126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127   (exit $ac_status); } &&
7128          { ac_try='test -z "$ac_c_werror_flag"
7129                          || test ! -s conftest.err'
7130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131   (eval $ac_try) 2>&5
7132   ac_status=$?
7133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134   (exit $ac_status); }; } &&
7135          { ac_try='test -s conftest$ac_exeext'
7136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137   (eval $ac_try) 2>&5
7138   ac_status=$?
7139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140   (exit $ac_status); }; }; then
7141   lt_cv_cc_needs_belf=yes
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146 lt_cv_cc_needs_belf=no
7147 fi
7148 rm -f conftest.err conftest.$ac_objext \
7149       conftest$ac_exeext conftest.$ac_ext
7150      ac_ext=c
7151 ac_cpp='$CPP $CPPFLAGS'
7152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7155
7156 fi
7157 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7158 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7159   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7160     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7161     CFLAGS="$SAVE_CFLAGS"
7162   fi
7163   ;;
7164 sparc*-*solaris*)
7165   # Find out which ABI we are using.
7166   echo 'int i;' > conftest.$ac_ext
7167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168   (eval $ac_compile) 2>&5
7169   ac_status=$?
7170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171   (exit $ac_status); }; then
7172     case `/usr/bin/file conftest.o` in
7173     *64-bit*)
7174       case $lt_cv_prog_gnu_ld in
7175       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7176       *)    LD="${LD-ld} -64" ;;
7177       esac
7178       ;;
7179     esac
7180   fi
7181   rm -rf conftest*
7182   ;;
7183 esac
7184
7185 need_locks="$enable_libtool_lock"
7186
7187 ac_ext=c
7188 ac_cpp='$CPP $CPPFLAGS'
7189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7192 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7193 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7194 # On Suns, sometimes $CPP names a directory.
7195 if test -n "$CPP" && test -d "$CPP"; then
7196   CPP=
7197 fi
7198 if test -z "$CPP"; then
7199   if test "${ac_cv_prog_CPP+set}" = set; then
7200   echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202       # Double quotes because CPP needs to be expanded
7203     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7204     do
7205       ac_preproc_ok=false
7206 for ac_c_preproc_warn_flag in '' yes
7207 do
7208   # Use a header file that comes with gcc, so configuring glibc
7209   # with a fresh cross-compiler works.
7210   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7211   # <limits.h> exists even on freestanding compilers.
7212   # On the NeXT, cc -E runs the code through the compiler's parser,
7213   # not just through cpp. "Syntax error" is here to catch this case.
7214   cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h.  */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h.  */
7220 #ifdef __STDC__
7221 # include <limits.h>
7222 #else
7223 # include <assert.h>
7224 #endif
7225                      Syntax error
7226 _ACEOF
7227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7228   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } >/dev/null; then
7235   if test -s conftest.err; then
7236     ac_cpp_err=$ac_c_preproc_warn_flag
7237     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7238   else
7239     ac_cpp_err=
7240   fi
7241 else
7242   ac_cpp_err=yes
7243 fi
7244 if test -z "$ac_cpp_err"; then
7245   :
7246 else
7247   echo "$as_me: failed program was:" >&5
7248 sed 's/^/| /' conftest.$ac_ext >&5
7249
7250   # Broken: fails on valid input.
7251 continue
7252 fi
7253 rm -f conftest.err conftest.$ac_ext
7254
7255   # OK, works on sane cases.  Now check whether non-existent headers
7256   # can be detected and how.
7257   cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h.  */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h.  */
7263 #include <ac_nonexistent.h>
7264 _ACEOF
7265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7267   ac_status=$?
7268   grep -v '^ *+' conftest.er1 >conftest.err
7269   rm -f conftest.er1
7270   cat conftest.err >&5
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } >/dev/null; then
7273   if test -s conftest.err; then
7274     ac_cpp_err=$ac_c_preproc_warn_flag
7275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7276   else
7277     ac_cpp_err=
7278   fi
7279 else
7280   ac_cpp_err=yes
7281 fi
7282 if test -z "$ac_cpp_err"; then
7283   # Broken: success on invalid input.
7284 continue
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289   # Passes both tests.
7290 ac_preproc_ok=:
7291 break
7292 fi
7293 rm -f conftest.err conftest.$ac_ext
7294
7295 done
7296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297 rm -f conftest.err conftest.$ac_ext
7298 if $ac_preproc_ok; then
7299   break
7300 fi
7301
7302     done
7303     ac_cv_prog_CPP=$CPP
7304
7305 fi
7306   CPP=$ac_cv_prog_CPP
7307 else
7308   ac_cv_prog_CPP=$CPP
7309 fi
7310 echo "$as_me:$LINENO: result: $CPP" >&5
7311 echo "${ECHO_T}$CPP" >&6
7312 ac_preproc_ok=false
7313 for ac_c_preproc_warn_flag in '' yes
7314 do
7315   # Use a header file that comes with gcc, so configuring glibc
7316   # with a fresh cross-compiler works.
7317   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318   # <limits.h> exists even on freestanding compilers.
7319   # On the NeXT, cc -E runs the code through the compiler's parser,
7320   # not just through cpp. "Syntax error" is here to catch this case.
7321   cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327 #ifdef __STDC__
7328 # include <limits.h>
7329 #else
7330 # include <assert.h>
7331 #endif
7332                      Syntax error
7333 _ACEOF
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } >/dev/null; then
7342   if test -s conftest.err; then
7343     ac_cpp_err=$ac_c_preproc_warn_flag
7344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7345   else
7346     ac_cpp_err=
7347   fi
7348 else
7349   ac_cpp_err=yes
7350 fi
7351 if test -z "$ac_cpp_err"; then
7352   :
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357   # Broken: fails on valid input.
7358 continue
7359 fi
7360 rm -f conftest.err conftest.$ac_ext
7361
7362   # OK, works on sane cases.  Now check whether non-existent headers
7363   # can be detected and how.
7364   cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 #include <ac_nonexistent.h>
7371 _ACEOF
7372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7374   ac_status=$?
7375   grep -v '^ *+' conftest.er1 >conftest.err
7376   rm -f conftest.er1
7377   cat conftest.err >&5
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } >/dev/null; then
7380   if test -s conftest.err; then
7381     ac_cpp_err=$ac_c_preproc_warn_flag
7382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7383   else
7384     ac_cpp_err=
7385   fi
7386 else
7387   ac_cpp_err=yes
7388 fi
7389 if test -z "$ac_cpp_err"; then
7390   # Broken: success on invalid input.
7391 continue
7392 else
7393   echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396   # Passes both tests.
7397 ac_preproc_ok=:
7398 break
7399 fi
7400 rm -f conftest.err conftest.$ac_ext
7401
7402 done
7403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7404 rm -f conftest.err conftest.$ac_ext
7405 if $ac_preproc_ok; then
7406   :
7407 else
7408   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7409 See \`config.log' for more details." >&5
7410 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7411 See \`config.log' for more details." >&2;}
7412    { (exit 1); exit 1; }; }
7413 fi
7414
7415 ac_ext=c
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421
7422 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7423 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7424 if test "${ac_cv_header_stdc+set}" = set; then
7425   echo $ECHO_N "(cached) $ECHO_C" >&6
7426 else
7427   cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433 #include <stdlib.h>
7434 #include <stdarg.h>
7435 #include <string.h>
7436 #include <float.h>
7437
7438 int
7439 main ()
7440 {
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448   (eval $ac_compile) 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } &&
7455          { ac_try='test -z "$ac_c_werror_flag"
7456                          || test ! -s conftest.err'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; } &&
7462          { ac_try='test -s conftest.$ac_objext'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; }; then
7468   ac_cv_header_stdc=yes
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7472
7473 ac_cv_header_stdc=no
7474 fi
7475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476
7477 if test $ac_cv_header_stdc = yes; then
7478   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7479   cat >conftest.$ac_ext <<_ACEOF
7480 /* confdefs.h.  */
7481 _ACEOF
7482 cat confdefs.h >>conftest.$ac_ext
7483 cat >>conftest.$ac_ext <<_ACEOF
7484 /* end confdefs.h.  */
7485 #include <string.h>
7486
7487 _ACEOF
7488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489   $EGREP "memchr" >/dev/null 2>&1; then
7490   :
7491 else
7492   ac_cv_header_stdc=no
7493 fi
7494 rm -f conftest*
7495
7496 fi
7497
7498 if test $ac_cv_header_stdc = yes; then
7499   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7500   cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h.  */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h.  */
7506 #include <stdlib.h>
7507
7508 _ACEOF
7509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510   $EGREP "free" >/dev/null 2>&1; then
7511   :
7512 else
7513   ac_cv_header_stdc=no
7514 fi
7515 rm -f conftest*
7516
7517 fi
7518
7519 if test $ac_cv_header_stdc = yes; then
7520   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7521   if test "$cross_compiling" = yes; then
7522   :
7523 else
7524   cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530 #include <ctype.h>
7531 #if ((' ' & 0x0FF) == 0x020)
7532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7534 #else
7535 # define ISLOWER(c) \
7536                    (('a' <= (c) && (c) <= 'i') \
7537                      || ('j' <= (c) && (c) <= 'r') \
7538                      || ('s' <= (c) && (c) <= 'z'))
7539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7540 #endif
7541
7542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7543 int
7544 main ()
7545 {
7546   int i;
7547   for (i = 0; i < 256; i++)
7548     if (XOR (islower (i), ISLOWER (i))
7549         || toupper (i) != TOUPPER (i))
7550       exit(2);
7551   exit (0);
7552 }
7553 _ACEOF
7554 rm -f conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556   (eval $ac_link) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561   (eval $ac_try) 2>&5
7562   ac_status=$?
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); }; }; then
7565   :
7566 else
7567   echo "$as_me: program exited with status $ac_status" >&5
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ( exit $ac_status )
7572 ac_cv_header_stdc=no
7573 fi
7574 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 fi
7577 fi
7578 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7579 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7580 if test $ac_cv_header_stdc = yes; then
7581
7582 cat >>confdefs.h <<\_ACEOF
7583 #define STDC_HEADERS 1
7584 _ACEOF
7585
7586 fi
7587
7588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7599                   inttypes.h stdint.h unistd.h
7600 do
7601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602 echo "$as_me:$LINENO: checking for $ac_header" >&5
7603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605   echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607   cat >conftest.$ac_ext <<_ACEOF
7608 /* confdefs.h.  */
7609 _ACEOF
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h.  */
7613 $ac_includes_default
7614
7615 #include <$ac_header>
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619   (eval $ac_compile) 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag"
7627                          || test ! -s conftest.err'
7628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629   (eval $ac_try) 2>&5
7630   ac_status=$?
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); }; } &&
7633          { ac_try='test -s conftest.$ac_objext'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; }; then
7639   eval "$as_ac_Header=yes"
7640 else
7641   echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 eval "$as_ac_Header=no"
7645 fi
7646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647 fi
7648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7651   cat >>confdefs.h <<_ACEOF
7652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7653 _ACEOF
7654
7655 fi
7656
7657 done
7658
7659
7660
7661 for ac_header in dlfcn.h
7662 do
7663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664 echo "$as_me:$LINENO: checking for $ac_header" >&5
7665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 $ac_includes_default
7676
7677 #include <$ac_header>
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681   (eval $ac_compile) 2>conftest.er1
7682   ac_status=$?
7683   grep -v '^ *+' conftest.er1 >conftest.err
7684   rm -f conftest.er1
7685   cat conftest.err >&5
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } &&
7688          { ac_try='test -z "$ac_c_werror_flag"
7689                          || test ! -s conftest.err'
7690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7691   (eval $ac_try) 2>&5
7692   ac_status=$?
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); }; } &&
7695          { ac_try='test -s conftest.$ac_objext'
7696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697   (eval $ac_try) 2>&5
7698   ac_status=$?
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); }; }; then
7701   eval "$as_ac_Header=yes"
7702 else
7703   echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7705
7706 eval "$as_ac_Header=no"
7707 fi
7708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7709 fi
7710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7713   cat >>confdefs.h <<_ACEOF
7714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7715 _ACEOF
7716
7717 fi
7718
7719 done
7720
7721
7722
7723 ac_ext=cc
7724 ac_cpp='$CXXCPP $CPPFLAGS'
7725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7728 if test -n "$ac_tool_prefix"; then
7729   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7730   do
7731     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7733 echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7735 if test "${ac_cv_prog_CXX+set}" = set; then
7736   echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738   if test -n "$CXX"; then
7739   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746   for ac_exec_ext in '' $ac_executable_extensions; do
7747   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753 done
7754
7755 fi
7756 fi
7757 CXX=$ac_cv_prog_CXX
7758 if test -n "$CXX"; then
7759   echo "$as_me:$LINENO: result: $CXX" >&5
7760 echo "${ECHO_T}$CXX" >&6
7761 else
7762   echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6
7764 fi
7765
7766     test -n "$CXX" && break
7767   done
7768 fi
7769 if test -z "$CXX"; then
7770   ac_ct_CXX=$CXX
7771   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7772 do
7773   # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 echo "$as_me:$LINENO: checking for $ac_word" >&5
7776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7777 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7778   echo $ECHO_N "(cached) $ECHO_C" >&6
7779 else
7780   if test -n "$ac_ct_CXX"; then
7781   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7782 else
7783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784 for as_dir in $PATH
7785 do
7786   IFS=$as_save_IFS
7787   test -z "$as_dir" && as_dir=.
7788   for ac_exec_ext in '' $ac_executable_extensions; do
7789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7790     ac_cv_prog_ac_ct_CXX="$ac_prog"
7791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792     break 2
7793   fi
7794 done
7795 done
7796
7797 fi
7798 fi
7799 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7800 if test -n "$ac_ct_CXX"; then
7801   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7802 echo "${ECHO_T}$ac_ct_CXX" >&6
7803 else
7804   echo "$as_me:$LINENO: result: no" >&5
7805 echo "${ECHO_T}no" >&6
7806 fi
7807
7808   test -n "$ac_ct_CXX" && break
7809 done
7810 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7811
7812   CXX=$ac_ct_CXX
7813 fi
7814
7815
7816 # Provide some information about the compiler.
7817 echo "$as_me:$LINENO:" \
7818      "checking for C++ compiler version" >&5
7819 ac_compiler=`set X $ac_compile; echo $2`
7820 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7821   (eval $ac_compiler --version </dev/null >&5) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }
7825 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7826   (eval $ac_compiler -v </dev/null >&5) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }
7830 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7831   (eval $ac_compiler -V </dev/null >&5) 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }
7835
7836 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7837 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7838 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7839   echo $ECHO_N "(cached) $ECHO_C" >&6
7840 else
7841   cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h.  */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h.  */
7847
7848 int
7849 main ()
7850 {
7851 #ifndef __GNUC__
7852        choke me
7853 #endif
7854
7855   ;
7856   return 0;
7857 }
7858 _ACEOF
7859 rm -f conftest.$ac_objext
7860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7861   (eval $ac_compile) 2>conftest.er1
7862   ac_status=$?
7863   grep -v '^ *+' conftest.er1 >conftest.err
7864   rm -f conftest.er1
7865   cat conftest.err >&5
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); } &&
7868          { ac_try='test -z "$ac_cxx_werror_flag"
7869                          || test ! -s conftest.err'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; } &&
7875          { ac_try='test -s conftest.$ac_objext'
7876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7877   (eval $ac_try) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); }; }; then
7881   ac_compiler_gnu=yes
7882 else
7883   echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7885
7886 ac_compiler_gnu=no
7887 fi
7888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7889 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7890
7891 fi
7892 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7893 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7894 GXX=`test $ac_compiler_gnu = yes && echo yes`
7895 ac_test_CXXFLAGS=${CXXFLAGS+set}
7896 ac_save_CXXFLAGS=$CXXFLAGS
7897 CXXFLAGS="-g"
7898 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7899 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7900 if test "${ac_cv_prog_cxx_g+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909
7910 int
7911 main ()
7912 {
7913
7914   ;
7915   return 0;
7916 }
7917 _ACEOF
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7920   (eval $ac_compile) 2>conftest.er1
7921   ac_status=$?
7922   grep -v '^ *+' conftest.er1 >conftest.err
7923   rm -f conftest.er1
7924   cat conftest.err >&5
7925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926   (exit $ac_status); } &&
7927          { ac_try='test -z "$ac_cxx_werror_flag"
7928                          || test ! -s conftest.err'
7929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7930   (eval $ac_try) 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); }; } &&
7934          { ac_try='test -s conftest.$ac_objext'
7935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936   (eval $ac_try) 2>&5
7937   ac_status=$?
7938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939   (exit $ac_status); }; }; then
7940   ac_cv_prog_cxx_g=yes
7941 else
7942   echo "$as_me: failed program was:" >&5
7943 sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_cv_prog_cxx_g=no
7946 fi
7947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7948 fi
7949 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7950 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7951 if test "$ac_test_CXXFLAGS" = set; then
7952   CXXFLAGS=$ac_save_CXXFLAGS
7953 elif test $ac_cv_prog_cxx_g = yes; then
7954   if test "$GXX" = yes; then
7955     CXXFLAGS="-g -O2"
7956   else
7957     CXXFLAGS="-g"
7958   fi
7959 else
7960   if test "$GXX" = yes; then
7961     CXXFLAGS="-O2"
7962   else
7963     CXXFLAGS=
7964   fi
7965 fi
7966 for ac_declaration in \
7967    '' \
7968    'extern "C" void std::exit (int) throw (); using std::exit;' \
7969    'extern "C" void std::exit (int); using std::exit;' \
7970    'extern "C" void exit (int) throw ();' \
7971    'extern "C" void exit (int);' \
7972    'void exit (int);'
7973 do
7974   cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h.  */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h.  */
7980 $ac_declaration
7981 #include <stdlib.h>
7982 int
7983 main ()
7984 {
7985 exit (42);
7986   ;
7987   return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992   (eval $ac_compile) 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } &&
7999          { ac_try='test -z "$ac_cxx_werror_flag"
8000                          || test ! -s conftest.err'
8001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002   (eval $ac_try) 2>&5
8003   ac_status=$?
8004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005   (exit $ac_status); }; } &&
8006          { ac_try='test -s conftest.$ac_objext'
8007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008   (eval $ac_try) 2>&5
8009   ac_status=$?
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); }; }; then
8012   :
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 continue
8018 fi
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 $ac_declaration
8027 int
8028 main ()
8029 {
8030 exit (42);
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037   (eval $ac_compile) 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -z "$ac_cxx_werror_flag"
8045                          || test ! -s conftest.err'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; } &&
8051          { ac_try='test -s conftest.$ac_objext'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; }; then
8057   break
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 fi
8063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8064 done
8065 rm -f conftest*
8066 if test -n "$ac_declaration"; then
8067   echo '#ifdef __cplusplus' >>confdefs.h
8068   echo $ac_declaration      >>confdefs.h
8069   echo '#endif'             >>confdefs.h
8070 fi
8071
8072 ac_ext=c
8073 ac_cpp='$CPP $CPPFLAGS'
8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8077
8078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8079     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8080     (test "X$CXX" != "Xg++"))) ; then
8081   ac_ext=cc
8082 ac_cpp='$CXXCPP $CPPFLAGS'
8083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8086 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8087 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8088 if test -z "$CXXCPP"; then
8089   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092       # Double quotes because CXXCPP needs to be expanded
8093     for CXXCPP in "$CXX -E" "/lib/cpp"
8094     do
8095       ac_preproc_ok=false
8096 for ac_cxx_preproc_warn_flag in '' yes
8097 do
8098   # Use a header file that comes with gcc, so configuring glibc
8099   # with a fresh cross-compiler works.
8100   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8101   # <limits.h> exists even on freestanding compilers.
8102   # On the NeXT, cc -E runs the code through the compiler's parser,
8103   # not just through cpp. "Syntax error" is here to catch this case.
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #ifdef __STDC__
8111 # include <limits.h>
8112 #else
8113 # include <assert.h>
8114 #endif
8115                      Syntax error
8116 _ACEOF
8117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8118   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8119   ac_status=$?
8120   grep -v '^ *+' conftest.er1 >conftest.err
8121   rm -f conftest.er1
8122   cat conftest.err >&5
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } >/dev/null; then
8125   if test -s conftest.err; then
8126     ac_cpp_err=$ac_cxx_preproc_warn_flag
8127     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8128   else
8129     ac_cpp_err=
8130   fi
8131 else
8132   ac_cpp_err=yes
8133 fi
8134 if test -z "$ac_cpp_err"; then
8135   :
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140   # Broken: fails on valid input.
8141 continue
8142 fi
8143 rm -f conftest.err conftest.$ac_ext
8144
8145   # OK, works on sane cases.  Now check whether non-existent headers
8146   # can be detected and how.
8147   cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #include <ac_nonexistent.h>
8154 _ACEOF
8155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8156   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8157   ac_status=$?
8158   grep -v '^ *+' conftest.er1 >conftest.err
8159   rm -f conftest.er1
8160   cat conftest.err >&5
8161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162   (exit $ac_status); } >/dev/null; then
8163   if test -s conftest.err; then
8164     ac_cpp_err=$ac_cxx_preproc_warn_flag
8165     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8166   else
8167     ac_cpp_err=
8168   fi
8169 else
8170   ac_cpp_err=yes
8171 fi
8172 if test -z "$ac_cpp_err"; then
8173   # Broken: success on invalid input.
8174 continue
8175 else
8176   echo "$as_me: failed program was:" >&5
8177 sed 's/^/| /' conftest.$ac_ext >&5
8178
8179   # Passes both tests.
8180 ac_preproc_ok=:
8181 break
8182 fi
8183 rm -f conftest.err conftest.$ac_ext
8184
8185 done
8186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8187 rm -f conftest.err conftest.$ac_ext
8188 if $ac_preproc_ok; then
8189   break
8190 fi
8191
8192     done
8193     ac_cv_prog_CXXCPP=$CXXCPP
8194
8195 fi
8196   CXXCPP=$ac_cv_prog_CXXCPP
8197 else
8198   ac_cv_prog_CXXCPP=$CXXCPP
8199 fi
8200 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8201 echo "${ECHO_T}$CXXCPP" >&6
8202 ac_preproc_ok=false
8203 for ac_cxx_preproc_warn_flag in '' yes
8204 do
8205   # Use a header file that comes with gcc, so configuring glibc
8206   # with a fresh cross-compiler works.
8207   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8208   # <limits.h> exists even on freestanding compilers.
8209   # On the NeXT, cc -E runs the code through the compiler's parser,
8210   # not just through cpp. "Syntax error" is here to catch this case.
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 #ifdef __STDC__
8218 # include <limits.h>
8219 #else
8220 # include <assert.h>
8221 #endif
8222                      Syntax error
8223 _ACEOF
8224 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8225   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } >/dev/null; then
8232   if test -s conftest.err; then
8233     ac_cpp_err=$ac_cxx_preproc_warn_flag
8234     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8235   else
8236     ac_cpp_err=
8237   fi
8238 else
8239   ac_cpp_err=yes
8240 fi
8241 if test -z "$ac_cpp_err"; then
8242   :
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247   # Broken: fails on valid input.
8248 continue
8249 fi
8250 rm -f conftest.err conftest.$ac_ext
8251
8252   # OK, works on sane cases.  Now check whether non-existent headers
8253   # can be detected and how.
8254   cat >conftest.$ac_ext <<_ACEOF
8255 /* confdefs.h.  */
8256 _ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h.  */
8260 #include <ac_nonexistent.h>
8261 _ACEOF
8262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } >/dev/null; then
8270   if test -s conftest.err; then
8271     ac_cpp_err=$ac_cxx_preproc_warn_flag
8272     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8273   else
8274     ac_cpp_err=
8275   fi
8276 else
8277   ac_cpp_err=yes
8278 fi
8279 if test -z "$ac_cpp_err"; then
8280   # Broken: success on invalid input.
8281 continue
8282 else
8283   echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286   # Passes both tests.
8287 ac_preproc_ok=:
8288 break
8289 fi
8290 rm -f conftest.err conftest.$ac_ext
8291
8292 done
8293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8294 rm -f conftest.err conftest.$ac_ext
8295 if $ac_preproc_ok; then
8296   :
8297 else
8298   _lt_caught_CXX_error=yes
8299 fi
8300
8301 ac_ext=c
8302 ac_cpp='$CPP $CPPFLAGS'
8303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8306
8307 else
8308   _lt_caught_CXX_error=yes
8309 fi
8310
8311
8312
8313
8314
8315 # This can be used to rebuild libtool when needed
8316 LIBTOOL_DEPS="$ltmain"
8317
8318 # Always use our own libtool.
8319 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345 test -z "$LN_S" && LN_S="ln -s"
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360 if test -n "${ZSH_VERSION+set}" ; then
8361    setopt NO_GLOB_SUBST
8362 fi
8363
8364 echo "$as_me:$LINENO: checking for objdir" >&5
8365 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8366 if test "${lt_cv_objdir+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   rm -f .libs 2>/dev/null
8370 mkdir .libs 2>/dev/null
8371 if test -d .libs; then
8372   lt_cv_objdir=.libs
8373 else
8374   # MS-DOS does not allow filenames that begin with a dot.
8375   lt_cv_objdir=_libs
8376 fi
8377 rmdir .libs 2>/dev/null
8378 fi
8379 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8380 echo "${ECHO_T}$lt_cv_objdir" >&6
8381 objdir=$lt_cv_objdir
8382
8383
8384
8385
8386
8387 cat >>confdefs.h <<_ACEOF
8388 #define LT_OBJDIR "$lt_cv_objdir/"
8389 _ACEOF
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 case $host_os in
8408 aix3*)
8409   # AIX sometimes has problems with the GCC collect2 program.  For some
8410   # reason, if we set the COLLECT_NAMES environment variable, the problems
8411   # vanish in a puff of smoke.
8412   if test "X${COLLECT_NAMES+set}" != Xset; then
8413     COLLECT_NAMES=
8414     export COLLECT_NAMES
8415   fi
8416   ;;
8417 esac
8418
8419 # Sed substitution that helps us do robust quoting.  It backslashifies
8420 # metacharacters that are still active within double-quoted strings.
8421 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8422
8423 # Same as above, but do not quote variable references.
8424 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8425
8426 # Sed substitution to delay expansion of an escaped shell variable in a
8427 # double_quote_subst'ed string.
8428 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8429
8430 # Sed substitution to delay expansion of an escaped single quote.
8431 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8432
8433 # Sed substitution to avoid accidental globbing in evaled expressions
8434 no_glob_subst='s/\*/\\\*/g'
8435
8436 # Global variables:
8437 ofile=libtool
8438 can_build_shared=yes
8439
8440 # All known linkers require a `.a' archive for static linking (except MSVC,
8441 # which needs '.lib').
8442 libext=a
8443
8444 with_gnu_ld="$lt_cv_prog_gnu_ld"
8445
8446 old_CC="$CC"
8447 old_CFLAGS="$CFLAGS"
8448
8449 # Set sane defaults for various variables
8450 test -z "$CC" && CC=cc
8451 test -z "$LTCC" && LTCC=$CC
8452 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8453 test -z "$LD" && LD=ld
8454 test -z "$ac_objext" && ac_objext=o
8455
8456 for cc_temp in $compiler""; do
8457   case $cc_temp in
8458     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8459     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8460     \-*) ;;
8461     *) break;;
8462   esac
8463 done
8464 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8465
8466
8467 # Only perform the check for file, if the check method requires it
8468 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8469 case $deplibs_check_method in
8470 file_magic*)
8471   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8472     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8473 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8474 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477   case $MAGIC_CMD in
8478 [\\/*] |  ?:[\\/]*)
8479   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8480   ;;
8481 *)
8482   lt_save_MAGIC_CMD="$MAGIC_CMD"
8483   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8484   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8485   for ac_dir in $ac_dummy; do
8486     IFS="$lt_save_ifs"
8487     test -z "$ac_dir" && ac_dir=.
8488     if test -f $ac_dir/${ac_tool_prefix}file; then
8489       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8490       if test -n "$file_magic_test_file"; then
8491         case $deplibs_check_method in
8492         "file_magic "*)
8493           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8494           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8495           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8496             $EGREP "$file_magic_regex" > /dev/null; then
8497             :
8498           else
8499             cat <<_LT_EOF 1>&2
8500
8501 *** Warning: the command libtool uses to detect shared libraries,
8502 *** $file_magic_cmd, produces output that libtool cannot recognize.
8503 *** The result is that libtool may fail to recognize shared libraries
8504 *** as such.  This will affect the creation of libtool libraries that
8505 *** depend on shared libraries, but programs linked with such libtool
8506 *** libraries will work regardless of this problem.  Nevertheless, you
8507 *** may want to report the problem to your system manager and/or to
8508 *** bug-libtool@gnu.org
8509
8510 _LT_EOF
8511           fi ;;
8512         esac
8513       fi
8514       break
8515     fi
8516   done
8517   IFS="$lt_save_ifs"
8518   MAGIC_CMD="$lt_save_MAGIC_CMD"
8519   ;;
8520 esac
8521 fi
8522
8523 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8524 if test -n "$MAGIC_CMD"; then
8525   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8526 echo "${ECHO_T}$MAGIC_CMD" >&6
8527 else
8528   echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6
8530 fi
8531
8532
8533
8534
8535
8536 if test -z "$lt_cv_path_MAGIC_CMD"; then
8537   if test -n "$ac_tool_prefix"; then
8538     echo "$as_me:$LINENO: checking for file" >&5
8539 echo $ECHO_N "checking for file... $ECHO_C" >&6
8540 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   case $MAGIC_CMD in
8544 [\\/*] |  ?:[\\/]*)
8545   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8546   ;;
8547 *)
8548   lt_save_MAGIC_CMD="$MAGIC_CMD"
8549   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8550   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8551   for ac_dir in $ac_dummy; do
8552     IFS="$lt_save_ifs"
8553     test -z "$ac_dir" && ac_dir=.
8554     if test -f $ac_dir/file; then
8555       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8556       if test -n "$file_magic_test_file"; then
8557         case $deplibs_check_method in
8558         "file_magic "*)
8559           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8560           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8561           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8562             $EGREP "$file_magic_regex" > /dev/null; then
8563             :
8564           else
8565             cat <<_LT_EOF 1>&2
8566
8567 *** Warning: the command libtool uses to detect shared libraries,
8568 *** $file_magic_cmd, produces output that libtool cannot recognize.
8569 *** The result is that libtool may fail to recognize shared libraries
8570 *** as such.  This will affect the creation of libtool libraries that
8571 *** depend on shared libraries, but programs linked with such libtool
8572 *** libraries will work regardless of this problem.  Nevertheless, you
8573 *** may want to report the problem to your system manager and/or to
8574 *** bug-libtool@gnu.org
8575
8576 _LT_EOF
8577           fi ;;
8578         esac
8579       fi
8580       break
8581     fi
8582   done
8583   IFS="$lt_save_ifs"
8584   MAGIC_CMD="$lt_save_MAGIC_CMD"
8585   ;;
8586 esac
8587 fi
8588
8589 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8590 if test -n "$MAGIC_CMD"; then
8591   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8592 echo "${ECHO_T}$MAGIC_CMD" >&6
8593 else
8594   echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6
8596 fi
8597
8598
8599   else
8600     MAGIC_CMD=:
8601   fi
8602 fi
8603
8604   fi
8605   ;;
8606 esac
8607
8608 # Use C for the default configuration in the libtool script
8609
8610 lt_save_CC="$CC"
8611 ac_ext=c
8612 ac_cpp='$CPP $CPPFLAGS'
8613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8616
8617
8618 # Source file extension for C test sources.
8619 ac_ext=c
8620
8621 # Object file extension for compiled C test sources.
8622 objext=o
8623 objext=$objext
8624
8625 # Code to be used in simple compile tests
8626 lt_simple_compile_test_code="int some_variable = 0;"
8627
8628 # Code to be used in simple link tests
8629 lt_simple_link_test_code='int main(){return(0);}'
8630
8631
8632
8633
8634
8635
8636
8637 # If no C compiler was specified, use CC.
8638 LTCC=${LTCC-"$CC"}
8639
8640 # If no C compiler flags were specified, use CFLAGS.
8641 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8642
8643 # Allow CC to be a program name with arguments.
8644 compiler=$CC
8645
8646 # Save the default compiler, since it gets overwritten when the other
8647 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8648 compiler_DEFAULT=$CC
8649
8650 # save warnings/boilerplate of simple test code
8651 ac_outfile=conftest.$ac_objext
8652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8654 _lt_compiler_boilerplate=`cat conftest.err`
8655 $RM conftest*
8656
8657 ac_outfile=conftest.$ac_objext
8658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8660 _lt_linker_boilerplate=`cat conftest.err`
8661 $RM conftest*
8662
8663
8664 ## CAVEAT EMPTOR:
8665 ## There is no encapsulation within the following macros, do not change
8666 ## the running order or otherwise move them around unless you know exactly
8667 ## what you are doing...
8668 if test -n "$compiler"; then
8669
8670 lt_prog_compiler_no_builtin_flag=
8671
8672 if test "$GCC" = yes; then
8673   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8674
8675   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8676 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8677 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   lt_cv_prog_compiler_rtti_exceptions=no
8681    ac_outfile=conftest.$ac_objext
8682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8683    lt_compiler_flag="-fno-rtti -fno-exceptions"
8684    # Insert the option either (1) after the last *FLAGS variable, or
8685    # (2) before a word containing "conftest.", or (3) at the end.
8686    # Note that $ac_compile itself does not contain backslashes and begins
8687    # with a dollar sign (not a hyphen), so the echo should work correctly.
8688    # The option is referenced via a variable to avoid confusing sed.
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>conftest.err)
8695    ac_status=$?
8696    cat conftest.err >&5
8697    echo "$as_me:8697: \$? = $ac_status" >&5
8698    if (exit $ac_status) && test -s "$ac_outfile"; then
8699      # The compiler can only warn and ignore the option if not recognized
8700      # So say no if there are warnings other than the usual output.
8701      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8704        lt_cv_prog_compiler_rtti_exceptions=yes
8705      fi
8706    fi
8707    $RM conftest*
8708
8709 fi
8710 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8711 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8712
8713 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8714     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8715 else
8716     :
8717 fi
8718
8719 fi
8720
8721
8722
8723
8724
8725
8726   lt_prog_compiler_wl=
8727 lt_prog_compiler_pic=
8728 lt_prog_compiler_static=
8729
8730 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8731 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8732
8733   if test "$GCC" = yes; then
8734     lt_prog_compiler_wl='-Wl,'
8735     lt_prog_compiler_static='-static'
8736
8737     case $host_os in
8738       aix*)
8739       # All AIX code is PIC.
8740       if test "$host_cpu" = ia64; then
8741         # AIX 5 now supports IA64 processor
8742         lt_prog_compiler_static='-Bstatic'
8743       fi
8744       ;;
8745
8746     amigaos*)
8747       if test "$host_cpu" = m68k; then
8748         # FIXME: we need at least 68020 code to build shared libraries, but
8749         # adding the `-m68020' flag to GCC prevents building anything better,
8750         # like `-m68040'.
8751         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8752       fi
8753       ;;
8754
8755     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8756       # PIC is the default for these OSes.
8757       ;;
8758
8759     mingw* | cygwin* | pw32* | os2*)
8760       # This hack is so that the source file can tell whether it is being
8761       # built for inclusion in a dll (and should export symbols for example).
8762       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8763       # (--disable-auto-import) libraries
8764       lt_prog_compiler_pic='-DDLL_EXPORT'
8765       ;;
8766
8767     darwin* | rhapsody*)
8768       # PIC is the default on this platform
8769       # Common symbols not allowed in MH_DYLIB files
8770       lt_prog_compiler_pic='-fno-common'
8771       ;;
8772
8773     hpux*)
8774       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8775       # not for PA HP-UX.
8776       case $host_cpu in
8777       hppa*64*|ia64*)
8778         # +Z the default
8779         ;;
8780       *)
8781         lt_prog_compiler_pic='-fPIC'
8782         ;;
8783       esac
8784       ;;
8785
8786     interix[3-9]*)
8787       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8788       # Instead, we relocate shared libraries at runtime.
8789       ;;
8790
8791     msdosdjgpp*)
8792       # Just because we use GCC doesn't mean we suddenly get shared libraries
8793       # on systems that don't support them.
8794       lt_prog_compiler_can_build_shared=no
8795       enable_shared=no
8796       ;;
8797
8798     *nto* | *qnx*)
8799       # QNX uses GNU C++, but need to define -shared option too, otherwise
8800       # it will coredump.
8801       lt_prog_compiler_pic='-fPIC -shared'
8802       ;;
8803
8804     sysv4*MP*)
8805       if test -d /usr/nec; then
8806         lt_prog_compiler_pic=-Kconform_pic
8807       fi
8808       ;;
8809
8810     *)
8811       lt_prog_compiler_pic='-fPIC'
8812       ;;
8813     esac
8814   else
8815     # PORTME Check for flag to pass linker flags through the system compiler.
8816     case $host_os in
8817     aix*)
8818       lt_prog_compiler_wl='-Wl,'
8819       if test "$host_cpu" = ia64; then
8820         # AIX 5 now supports IA64 processor
8821         lt_prog_compiler_static='-Bstatic'
8822       else
8823         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8824       fi
8825       ;;
8826     darwin*)
8827       # PIC is the default on this platform
8828       # Common symbols not allowed in MH_DYLIB files
8829       case $cc_basename in
8830       xlc*)
8831         lt_prog_compiler_pic='-qnocommon'
8832         lt_prog_compiler_wl='-Wl,'
8833         ;;
8834       esac
8835       ;;
8836
8837     mingw* | cygwin* | pw32* | os2*)
8838       # This hack is so that the source file can tell whether it is being
8839       # built for inclusion in a dll (and should export symbols for example).
8840       lt_prog_compiler_pic='-DDLL_EXPORT'
8841       ;;
8842
8843     hpux9* | hpux10* | hpux11*)
8844       lt_prog_compiler_wl='-Wl,'
8845       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8846       # not for PA HP-UX.
8847       case $host_cpu in
8848       hppa*64*|ia64*)
8849         # +Z the default
8850         ;;
8851       *)
8852         lt_prog_compiler_pic='+Z'
8853         ;;
8854       esac
8855       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8856       lt_prog_compiler_static='${wl}-a ${wl}archive'
8857       ;;
8858
8859     irix5* | irix6* | nonstopux*)
8860       lt_prog_compiler_wl='-Wl,'
8861       # PIC (with -KPIC) is the default.
8862       lt_prog_compiler_static='-non_shared'
8863       ;;
8864
8865     linux* | k*bsd*-gnu)
8866       case $cc_basename in
8867       icc* | ecc*)
8868         lt_prog_compiler_wl='-Wl,'
8869         lt_prog_compiler_pic='-KPIC'
8870         lt_prog_compiler_static='-static'
8871         ;;
8872       pgcc* | pgf77* | pgf90* | pgf95*)
8873         # Portland Group compilers (*not* the Pentium gcc compiler,
8874         # which looks to be a dead project)
8875         lt_prog_compiler_wl='-Wl,'
8876         lt_prog_compiler_pic='-fpic'
8877         lt_prog_compiler_static='-Bstatic'
8878         ;;
8879       ccc*)
8880         lt_prog_compiler_wl='-Wl,'
8881         # All Alpha code is PIC.
8882         lt_prog_compiler_static='-non_shared'
8883         ;;
8884       *)
8885         case `$CC -V 2>&1 | sed 5q` in
8886         *Sun\ C*)
8887           # Sun C 5.9
8888           lt_prog_compiler_pic='-KPIC'
8889           lt_prog_compiler_static='-Bstatic'
8890           lt_prog_compiler_wl='-Wl,'
8891           ;;
8892         *Sun\ F*)
8893           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8894           lt_prog_compiler_pic='-KPIC'
8895           lt_prog_compiler_static='-Bstatic'
8896           lt_prog_compiler_wl=''
8897           ;;
8898         esac
8899         ;;
8900       esac
8901       ;;
8902
8903     newsos6)
8904       lt_prog_compiler_pic='-KPIC'
8905       lt_prog_compiler_static='-Bstatic'
8906       ;;
8907
8908     *nto* | *qnx*)
8909       # QNX uses GNU C++, but need to define -shared option too, otherwise
8910       # it will coredump.
8911       lt_prog_compiler_pic='-fPIC -shared'
8912       ;;
8913
8914     osf3* | osf4* | osf5*)
8915       lt_prog_compiler_wl='-Wl,'
8916       # All OSF/1 code is PIC.
8917       lt_prog_compiler_static='-non_shared'
8918       ;;
8919
8920     rdos*)
8921       lt_prog_compiler_static='-non_shared'
8922       ;;
8923
8924     solaris*)
8925       lt_prog_compiler_pic='-KPIC'
8926       lt_prog_compiler_static='-Bstatic'
8927       case $cc_basename in
8928       f77* | f90* | f95*)
8929         lt_prog_compiler_wl='-Qoption ld ';;
8930       *)
8931         lt_prog_compiler_wl='-Wl,';;
8932       esac
8933       ;;
8934
8935     sunos4*)
8936       lt_prog_compiler_wl='-Qoption ld '
8937       lt_prog_compiler_pic='-PIC'
8938       lt_prog_compiler_static='-Bstatic'
8939       ;;
8940
8941     sysv4 | sysv4.2uw2* | sysv4.3*)
8942       lt_prog_compiler_wl='-Wl,'
8943       lt_prog_compiler_pic='-KPIC'
8944       lt_prog_compiler_static='-Bstatic'
8945       ;;
8946
8947     sysv4*MP*)
8948       if test -d /usr/nec ;then
8949         lt_prog_compiler_pic='-Kconform_pic'
8950         lt_prog_compiler_static='-Bstatic'
8951       fi
8952       ;;
8953
8954     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8955       lt_prog_compiler_wl='-Wl,'
8956       lt_prog_compiler_pic='-KPIC'
8957       lt_prog_compiler_static='-Bstatic'
8958       ;;
8959
8960     unicos*)
8961       lt_prog_compiler_wl='-Wl,'
8962       lt_prog_compiler_can_build_shared=no
8963       ;;
8964
8965     uts4*)
8966       lt_prog_compiler_pic='-pic'
8967       lt_prog_compiler_static='-Bstatic'
8968       ;;
8969
8970     *)
8971       lt_prog_compiler_can_build_shared=no
8972       ;;
8973     esac
8974   fi
8975
8976 case $host_os in
8977   # For platforms which do not support PIC, -DPIC is meaningless:
8978   *djgpp*)
8979     lt_prog_compiler_pic=
8980     ;;
8981   *)
8982     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8983     ;;
8984 esac
8985 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8986 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8987
8988
8989
8990
8991
8992
8993 #
8994 # Check to make sure the PIC flag actually works.
8995 #
8996 if test -n "$lt_prog_compiler_pic"; then
8997   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8998 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8999 if test "${lt_prog_compiler_pic_works+set}" = set; then
9000   echo $ECHO_N "(cached) $ECHO_C" >&6
9001 else
9002   lt_prog_compiler_pic_works=no
9003    ac_outfile=conftest.$ac_objext
9004    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9005    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9006    # Insert the option either (1) after the last *FLAGS variable, or
9007    # (2) before a word containing "conftest.", or (3) at the end.
9008    # Note that $ac_compile itself does not contain backslashes and begins
9009    # with a dollar sign (not a hyphen), so the echo should work correctly.
9010    # The option is referenced via a variable to avoid confusing sed.
9011    lt_compile=`echo "$ac_compile" | $SED \
9012    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9013    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9014    -e 's:$: $lt_compiler_flag:'`
9015    (eval echo "\"\$as_me:9015: $lt_compile\"" >&5)
9016    (eval "$lt_compile" 2>conftest.err)
9017    ac_status=$?
9018    cat conftest.err >&5
9019    echo "$as_me:9019: \$? = $ac_status" >&5
9020    if (exit $ac_status) && test -s "$ac_outfile"; then
9021      # The compiler can only warn and ignore the option if not recognized
9022      # So say no if there are warnings other than the usual output.
9023      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9024      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9025      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9026        lt_prog_compiler_pic_works=yes
9027      fi
9028    fi
9029    $RM conftest*
9030
9031 fi
9032 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9033 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9034
9035 if test x"$lt_prog_compiler_pic_works" = xyes; then
9036     case $lt_prog_compiler_pic in
9037      "" | " "*) ;;
9038      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9039      esac
9040 else
9041     lt_prog_compiler_pic=
9042      lt_prog_compiler_can_build_shared=no
9043 fi
9044
9045 fi
9046
9047
9048
9049
9050
9051
9052 #
9053 # Check to make sure the static flag actually works.
9054 #
9055 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9056 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9057 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9058 if test "${lt_prog_compiler_static_works+set}" = set; then
9059   echo $ECHO_N "(cached) $ECHO_C" >&6
9060 else
9061   lt_prog_compiler_static_works=no
9062    save_LDFLAGS="$LDFLAGS"
9063    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9064    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9065    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9066      # The linker can only warn and ignore the option if not recognized
9067      # So say no if there are warnings
9068      if test -s conftest.err; then
9069        # Append any errors to the config.log.
9070        cat conftest.err 1>&5
9071        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9072        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9073        if diff conftest.exp conftest.er2 >/dev/null; then
9074          lt_prog_compiler_static_works=yes
9075        fi
9076      else
9077        lt_prog_compiler_static_works=yes
9078      fi
9079    fi
9080    $RM conftest*
9081    LDFLAGS="$save_LDFLAGS"
9082
9083 fi
9084 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9085 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9086
9087 if test x"$lt_prog_compiler_static_works" = xyes; then
9088     :
9089 else
9090     lt_prog_compiler_static=
9091 fi
9092
9093
9094
9095
9096
9097
9098
9099   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9100 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9101 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   lt_cv_prog_compiler_c_o=no
9105    $RM -r conftest 2>/dev/null
9106    mkdir conftest
9107    cd conftest
9108    mkdir out
9109    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9110
9111    lt_compiler_flag="-o out/conftest2.$ac_objext"
9112    # Insert the option either (1) after the last *FLAGS variable, or
9113    # (2) before a word containing "conftest.", or (3) at the end.
9114    # Note that $ac_compile itself does not contain backslashes and begins
9115    # with a dollar sign (not a hyphen), so the echo should work correctly.
9116    lt_compile=`echo "$ac_compile" | $SED \
9117    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9118    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9119    -e 's:$: $lt_compiler_flag:'`
9120    (eval echo "\"\$as_me:9120: $lt_compile\"" >&5)
9121    (eval "$lt_compile" 2>out/conftest.err)
9122    ac_status=$?
9123    cat out/conftest.err >&5
9124    echo "$as_me:9124: \$? = $ac_status" >&5
9125    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9126    then
9127      # The compiler can only warn and ignore the option if not recognized
9128      # So say no if there are warnings
9129      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9130      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9131      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9132        lt_cv_prog_compiler_c_o=yes
9133      fi
9134    fi
9135    chmod u+w . 2>&5
9136    $RM conftest*
9137    # SGI C++ compiler will create directory out/ii_files/ for
9138    # template instantiation
9139    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9140    $RM out/* && rmdir out
9141    cd ..
9142    $RM -r conftest
9143    $RM conftest*
9144
9145 fi
9146 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9147 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9148
9149
9150
9151
9152
9153
9154   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9156 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9157   echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159   lt_cv_prog_compiler_c_o=no
9160    $RM -r conftest 2>/dev/null
9161    mkdir conftest
9162    cd conftest
9163    mkdir out
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166    lt_compiler_flag="-o out/conftest2.$ac_objext"
9167    # Insert the option either (1) after the last *FLAGS variable, or
9168    # (2) before a word containing "conftest.", or (3) at the end.
9169    # Note that $ac_compile itself does not contain backslashes and begins
9170    # with a dollar sign (not a hyphen), so the echo should work correctly.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:9175: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>out/conftest.err)
9177    ac_status=$?
9178    cat out/conftest.err >&5
9179    echo "$as_me:9179: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181    then
9182      # The compiler can only warn and ignore the option if not recognized
9183      # So say no if there are warnings
9184      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187        lt_cv_prog_compiler_c_o=yes
9188      fi
9189    fi
9190    chmod u+w . 2>&5
9191    $RM conftest*
9192    # SGI C++ compiler will create directory out/ii_files/ for
9193    # template instantiation
9194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195    $RM out/* && rmdir out
9196    cd ..
9197    $RM -r conftest
9198    $RM conftest*
9199
9200 fi
9201 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9202 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9203
9204
9205
9206
9207 hard_links="nottested"
9208 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9209   # do not overwrite the value of need_locks provided by the user
9210   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9211 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9212   hard_links=yes
9213   $RM conftest*
9214   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9215   touch conftest.a
9216   ln conftest.a conftest.b 2>&5 || hard_links=no
9217   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9218   echo "$as_me:$LINENO: result: $hard_links" >&5
9219 echo "${ECHO_T}$hard_links" >&6
9220   if test "$hard_links" = no; then
9221     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9222 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9223     need_locks=warn
9224   fi
9225 else
9226   need_locks=no
9227 fi
9228
9229
9230
9231
9232
9233
9234   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9235 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9236
9237   runpath_var=
9238   allow_undefined_flag=
9239   always_export_symbols=no
9240   archive_cmds=
9241   archive_expsym_cmds=
9242   compiler_needs_object=no
9243   enable_shared_with_static_runtimes=no
9244   export_dynamic_flag_spec=
9245   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9246   hardcode_automatic=no
9247   hardcode_direct=no
9248   hardcode_direct_absolute=no
9249   hardcode_libdir_flag_spec=
9250   hardcode_libdir_flag_spec_ld=
9251   hardcode_libdir_separator=
9252   hardcode_minus_L=no
9253   hardcode_shlibpath_var=unsupported
9254   inherit_rpath=no
9255   link_all_deplibs=unknown
9256   module_cmds=
9257   module_expsym_cmds=
9258   old_archive_from_new_cmds=
9259   old_archive_from_expsyms_cmds=
9260   thread_safe_flag_spec=
9261   whole_archive_flag_spec=
9262   # include_expsyms should be a list of space-separated symbols to be *always*
9263   # included in the symbol list
9264   include_expsyms=
9265   # exclude_expsyms can be an extended regexp of symbols to exclude
9266   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9267   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9268   # as well as any symbol that contains `d'.
9269   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9270   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9271   # platforms (ab)use it in PIC code, but their linkers get confused if
9272   # the symbol is explicitly referenced.  Since portable code cannot
9273   # rely on this symbol name, it's probably fine to never include it in
9274   # preloaded symbol tables.
9275   extract_expsyms_cmds=
9276
9277   case $host_os in
9278   cygwin* | mingw* | pw32*)
9279     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9280     # When not using gcc, we currently assume that we are using
9281     # Microsoft Visual C++.
9282     if test "$GCC" != yes; then
9283       with_gnu_ld=no
9284     fi
9285     ;;
9286   interix*)
9287     # we just hope/assume this is gcc and not c89 (= MSVC++)
9288     with_gnu_ld=yes
9289     ;;
9290   openbsd*)
9291     with_gnu_ld=no
9292     ;;
9293   esac
9294
9295   ld_shlibs=yes
9296   if test "$with_gnu_ld" = yes; then
9297     # If archive_cmds runs LD, not CC, wlarc should be empty
9298     wlarc='${wl}'
9299
9300     # Set some defaults for GNU ld with shared library support. These
9301     # are reset later if shared libraries are not supported. Putting them
9302     # here allows them to be overridden if necessary.
9303     runpath_var=LD_RUN_PATH
9304     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305     export_dynamic_flag_spec='${wl}--export-dynamic'
9306     # ancient GNU ld didn't support --whole-archive et. al.
9307     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9308       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9309     else
9310       whole_archive_flag_spec=
9311     fi
9312     supports_anon_versioning=no
9313     case `$LD -v 2>&1` in
9314       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9315       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9316       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9317       *\ 2.11.*) ;; # other 2.11 versions
9318       *) supports_anon_versioning=yes ;;
9319     esac
9320
9321     # See if GNU ld supports shared libraries.
9322     case $host_os in
9323     aix3* | aix4* | aix5*)
9324       # On AIX/PPC, the GNU linker is very broken
9325       if test "$host_cpu" != ia64; then
9326         ld_shlibs=no
9327         cat <<_LT_EOF 1>&2
9328
9329 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9330 *** to be unable to reliably create shared libraries on AIX.
9331 *** Therefore, libtool is disabling shared libraries support.  If you
9332 *** really care for shared libraries, you may want to modify your PATH
9333 *** so that a non-GNU linker is found, and then restart.
9334
9335 _LT_EOF
9336       fi
9337       ;;
9338
9339     amigaos*)
9340       if test "$host_cpu" = m68k; then
9341         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)'
9342         hardcode_libdir_flag_spec='-L$libdir'
9343         hardcode_minus_L=yes
9344       fi
9345
9346       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9347       # that the semantics of dynamic libraries on AmigaOS, at least up
9348       # to version 4, is to share data among multiple programs linked
9349       # with the same dynamic library.  Since this doesn't match the
9350       # behavior of shared libraries on other platforms, we can't use
9351       # them.
9352       ld_shlibs=no
9353       ;;
9354
9355     beos*)
9356       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9357         allow_undefined_flag=unsupported
9358         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9359         # support --undefined.  This deserves some investigation.  FIXME
9360         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9361       else
9362         ld_shlibs=no
9363       fi
9364       ;;
9365
9366     cygwin* | mingw* | pw32*)
9367       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9368       # as there is no search path for DLLs.
9369       hardcode_libdir_flag_spec='-L$libdir'
9370       allow_undefined_flag=unsupported
9371       always_export_symbols=no
9372       enable_shared_with_static_runtimes=yes
9373       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9374
9375       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9376         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377         # If the export-symbols file already is a .def file (1st line
9378         # is EXPORTS), use it as is; otherwise, prepend...
9379         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9380           cp $export_symbols $output_objdir/$soname.def;
9381         else
9382           echo EXPORTS > $output_objdir/$soname.def;
9383           cat $export_symbols >> $output_objdir/$soname.def;
9384         fi~
9385         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9386       else
9387         ld_shlibs=no
9388       fi
9389       ;;
9390
9391     interix[3-9]*)
9392       hardcode_direct=no
9393       hardcode_shlibpath_var=no
9394       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395       export_dynamic_flag_spec='${wl}-E'
9396       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9397       # Instead, shared libraries are loaded at an image base (0x10000000 by
9398       # default) and relocated if they conflict, which is a slow very memory
9399       # consuming and fragmenting process.  To avoid this, we pick a random,
9400       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9401       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9402       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9403       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'
9404       ;;
9405
9406     gnu* | linux* | tpf* | k*bsd*-gnu)
9407       tmp_diet=no
9408       if test "$host_os" = linux-dietlibc; then
9409         case $cc_basename in
9410           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9411         esac
9412       fi
9413       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9414          && test "$tmp_diet" = no
9415       then
9416         tmp_addflag=
9417         case $cc_basename,$host_cpu in
9418         pgcc*)                          # Portland Group C compiler
9419           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'
9420           tmp_addflag=' $pic_flag'
9421           ;;
9422         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9423           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'
9424           tmp_addflag=' $pic_flag -Mnomain' ;;
9425         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9426           tmp_addflag=' -i_dynamic' ;;
9427         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9428           tmp_addflag=' -i_dynamic -nofor_main' ;;
9429         ifc* | ifort*)                  # Intel Fortran compiler
9430           tmp_addflag=' -nofor_main' ;;
9431         esac
9432         case `$CC -V 2>&1 | sed 5q` in
9433         *Sun\ C*)                       # Sun C 5.9
9434           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'
9435           compiler_needs_object=yes
9436           tmp_sharedflag='-G' ;;
9437         *Sun\ F*)                       # Sun Fortran 8.3
9438           tmp_sharedflag='-G' ;;
9439         *)
9440           tmp_sharedflag='-shared' ;;
9441         esac
9442         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443
9444         if test "x$supports_anon_versioning" = xyes; then
9445           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9446             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9447             echo "local: *; };" >> $output_objdir/$libname.ver~
9448             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9449         fi
9450       else
9451         ld_shlibs=no
9452       fi
9453       ;;
9454
9455     netbsd*)
9456       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9457         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9458         wlarc=
9459       else
9460         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9461         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9462       fi
9463       ;;
9464
9465     solaris*)
9466       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9467         ld_shlibs=no
9468         cat <<_LT_EOF 1>&2
9469
9470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9471 *** create shared libraries on Solaris systems.  Therefore, libtool
9472 *** is disabling shared libraries support.  We urge you to upgrade GNU
9473 *** binutils to release 2.9.1 or newer.  Another option is to modify
9474 *** your PATH or compiler configuration so that the native linker is
9475 *** used, and then restart.
9476
9477 _LT_EOF
9478       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9481       else
9482         ld_shlibs=no
9483       fi
9484       ;;
9485
9486     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9487       case `$LD -v 2>&1` in
9488         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9489         ld_shlibs=no
9490         cat <<_LT_EOF 1>&2
9491
9492 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9493 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9494 *** is disabling shared libraries support.  We urge you to upgrade GNU
9495 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9496 *** your PATH or compiler configuration so that the native linker is
9497 *** used, and then restart.
9498
9499 _LT_EOF
9500         ;;
9501         *)
9502           # For security reasons, it is highly recommended that you always
9503           # use absolute paths for naming shared libraries, and exclude the
9504           # DT_RUNPATH tag from executables and libraries.  But doing so
9505           # requires that you compile everything twice, which is a pain.
9506           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9507             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9508             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9510           else
9511             ld_shlibs=no
9512           fi
9513         ;;
9514       esac
9515       ;;
9516
9517     sunos4*)
9518       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9519       wlarc=
9520       hardcode_direct=yes
9521       hardcode_shlibpath_var=no
9522       ;;
9523
9524     *)
9525       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528       else
9529         ld_shlibs=no
9530       fi
9531       ;;
9532     esac
9533
9534     if test "$ld_shlibs" = no; then
9535       runpath_var=
9536       hardcode_libdir_flag_spec=
9537       export_dynamic_flag_spec=
9538       whole_archive_flag_spec=
9539     fi
9540   else
9541     # PORTME fill in a description of your system's linker (not GNU ld)
9542     case $host_os in
9543     aix3*)
9544       allow_undefined_flag=unsupported
9545       always_export_symbols=yes
9546       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'
9547       # Note: this linker hardcodes the directories in LIBPATH if there
9548       # are no directories specified by -L.
9549       hardcode_minus_L=yes
9550       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9551         # Neither direct hardcoding nor static linking is supported with a
9552         # broken collect2.
9553         hardcode_direct=unsupported
9554       fi
9555       ;;
9556
9557     aix4* | aix5*)
9558       if test "$host_cpu" = ia64; then
9559         # On IA64, the linker does run time linking by default, so we don't
9560         # have to do anything special.
9561         aix_use_runtimelinking=no
9562         exp_sym_flag='-Bexport'
9563         no_entry_flag=""
9564       else
9565         # If we're using GNU nm, then we don't want the "-C" option.
9566         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9567         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9568           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'
9569         else
9570           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'
9571         fi
9572         aix_use_runtimelinking=no
9573
9574         # Test if we are trying to use run time linking or normal
9575         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9576         # need to do runtime linking.
9577         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9578           for ld_flag in $LDFLAGS; do
9579           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9580             aix_use_runtimelinking=yes
9581             break
9582           fi
9583           done
9584           ;;
9585         esac
9586
9587         exp_sym_flag='-bexport'
9588         no_entry_flag='-bnoentry'
9589       fi
9590
9591       # When large executables or shared objects are built, AIX ld can
9592       # have problems creating the table of contents.  If linking a library
9593       # or program results in "error TOC overflow" add -mminimal-toc to
9594       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9595       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9596
9597       archive_cmds=''
9598       hardcode_direct=yes
9599       hardcode_direct_absolute=yes
9600       hardcode_libdir_separator=':'
9601       link_all_deplibs=yes
9602       file_list_spec='${wl}-f,'
9603
9604       if test "$GCC" = yes; then
9605         case $host_os in aix4.[012]|aix4.[012].*)
9606         # We only want to do this on AIX 4.2 and lower, the check
9607         # below for broken collect2 doesn't work under 4.3+
9608           collect2name=`${CC} -print-prog-name=collect2`
9609           if test -f "$collect2name" &&
9610            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9611           then
9612           # We have reworked collect2
9613           :
9614           else
9615           # We have old collect2
9616           hardcode_direct=unsupported
9617           # It fails to find uninstalled libraries when the uninstalled
9618           # path is not listed in the libpath.  Setting hardcode_minus_L
9619           # to unsupported forces relinking
9620           hardcode_minus_L=yes
9621           hardcode_libdir_flag_spec='-L$libdir'
9622           hardcode_libdir_separator=
9623           fi
9624           ;;
9625         esac
9626         shared_flag='-shared'
9627         if test "$aix_use_runtimelinking" = yes; then
9628           shared_flag="$shared_flag "'${wl}-G'
9629         fi
9630       else
9631         # not using gcc
9632         if test "$host_cpu" = ia64; then
9633         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9634         # chokes on -Wl,-G. The following line is correct:
9635           shared_flag='-G'
9636         else
9637           if test "$aix_use_runtimelinking" = yes; then
9638             shared_flag='${wl}-G'
9639           else
9640             shared_flag='${wl}-bM:SRE'
9641           fi
9642         fi
9643       fi
9644
9645       # It seems that -bexpall does not export symbols beginning with
9646       # underscore (_), so it is better to generate a list of symbols to export.
9647       always_export_symbols=yes
9648       if test "$aix_use_runtimelinking" = yes; then
9649         # Warning - without using the other runtime loading flags (-brtl),
9650         # -berok will link without error, but may produce a broken library.
9651         allow_undefined_flag='-berok'
9652         # Determine the default libpath from the value encoded in an
9653         # empty executable.
9654         if test x$gcc_no_link = xyes; then
9655   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9656 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9657    { (exit 1); exit 1; }; }
9658 fi
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h.  */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h.  */
9665
9666 int
9667 main ()
9668 {
9669
9670   ;
9671   return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9676   (eval $ac_link) 2>conftest.er1
9677   ac_status=$?
9678   grep -v '^ *+' conftest.er1 >conftest.err
9679   rm -f conftest.er1
9680   cat conftest.err >&5
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } &&
9683          { ac_try='test -z "$ac_c_werror_flag"
9684                          || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696
9697 lt_aix_libpath_sed='
9698     /Import File Strings/,/^$/ {
9699         /^0/ {
9700             s/^0  *\(.*\)$/\1/
9701             p
9702         }
9703     }'
9704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9705 # Check for a 64-bit object if we didn't find anything.
9706 if test -z "$aix_libpath"; then
9707   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 fi
9709 else
9710   echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 fi
9714 rm -f conftest.err conftest.$ac_objext \
9715       conftest$ac_exeext conftest.$ac_ext
9716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9717
9718         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9719         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"
9720       else
9721         if test "$host_cpu" = ia64; then
9722           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9723           allow_undefined_flag="-z nodefs"
9724           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"
9725         else
9726          # Determine the default libpath from the value encoded in an
9727          # empty executable.
9728          if test x$gcc_no_link = xyes; then
9729   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9731    { (exit 1); exit 1; }; }
9732 fi
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739
9740 int
9741 main ()
9742 {
9743
9744   ;
9745   return 0;
9746 }
9747 _ACEOF
9748 rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750   (eval $ac_link) 2>conftest.er1
9751   ac_status=$?
9752   grep -v '^ *+' conftest.er1 >conftest.err
9753   rm -f conftest.er1
9754   cat conftest.err >&5
9755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756   (exit $ac_status); } &&
9757          { ac_try='test -z "$ac_c_werror_flag"
9758                          || test ! -s conftest.err'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; } &&
9764          { ac_try='test -s conftest$ac_exeext'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; }; then
9770
9771 lt_aix_libpath_sed='
9772     /Import File Strings/,/^$/ {
9773         /^0/ {
9774             s/^0  *\(.*\)$/\1/
9775             p
9776         }
9777     }'
9778 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9779 # Check for a 64-bit object if we didn't find anything.
9780 if test -z "$aix_libpath"; then
9781   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782 fi
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787 fi
9788 rm -f conftest.err conftest.$ac_objext \
9789       conftest$ac_exeext conftest.$ac_ext
9790 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9791
9792          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9793           # Warning - without using the other run time loading flags,
9794           # -berok will link without error, but may produce a broken library.
9795           no_undefined_flag=' ${wl}-bernotok'
9796           allow_undefined_flag=' ${wl}-berok'
9797           # Exported symbols can be pulled into shared objects from archives
9798           whole_archive_flag_spec='$convenience'
9799           archive_cmds_need_lc=yes
9800           # This is similar to how AIX traditionally builds its shared libraries.
9801           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'
9802         fi
9803       fi
9804       ;;
9805
9806     amigaos*)
9807       if test "$host_cpu" = m68k; then
9808         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)'
9809         hardcode_libdir_flag_spec='-L$libdir'
9810         hardcode_minus_L=yes
9811       fi
9812       # see comment about different semantics on the GNU ld section
9813       ld_shlibs=no
9814       ;;
9815
9816     bsdi[45]*)
9817       export_dynamic_flag_spec=-rdynamic
9818       ;;
9819
9820     cygwin* | mingw* | pw32*)
9821       # When not using gcc, we currently assume that we are using
9822       # Microsoft Visual C++.
9823       # hardcode_libdir_flag_spec is actually meaningless, as there is
9824       # no search path for DLLs.
9825       hardcode_libdir_flag_spec=' '
9826       allow_undefined_flag=unsupported
9827       # Tell ltmain to make .lib files, not .a files.
9828       libext=lib
9829       # Tell ltmain to make .dll files, not .so files.
9830       shrext_cmds=".dll"
9831       # FIXME: Setting linknames here is a bad hack.
9832       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9833       # The linker will automatically build a .lib file if we build a DLL.
9834       old_archive_from_new_cmds='true'
9835       # FIXME: Should let the user specify the lib program.
9836       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9837       fix_srcfile_path='`cygpath -w "$srcfile"`'
9838       enable_shared_with_static_runtimes=yes
9839       ;;
9840
9841     darwin* | rhapsody*)
9842       case $host_os in
9843       rhapsody* | darwin1.[012])
9844         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9845         ;;
9846       *) # Darwin 1.3 on
9847         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9848         10.[012])
9849           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9850           ;;
9851         10.*)
9852           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9853           ;;
9854         esac
9855         ;;
9856       esac
9857       archive_cmds_need_lc=no
9858       hardcode_direct=no
9859       hardcode_automatic=yes
9860       hardcode_shlibpath_var=unsupported
9861       whole_archive_flag_spec=''
9862       link_all_deplibs=yes
9863       if test "$GCC" = yes ; then
9864         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9865   echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867   lt_cv_apple_cc_single_mod=no
9868         if test -z "${LT_MULTI_MODULE}"; then
9869           # By default we will add the -single_module flag. You can override
9870           # by either setting the environment variable LT_MULTI_MODULE
9871           # non-empty at configure time, or by adding -multi-module to the
9872           # link flags.
9873           echo "int foo(void){return 1;}" > conftest.c
9874           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9875               -dynamiclib ${wl}-single_module conftest.c
9876           if test -f libconftest.dylib; then
9877               lt_cv_apple_cc_single_mod=yes
9878               rm libconftest.dylib
9879           fi
9880           rm conftest.$ac_ext
9881         fi
9882 fi
9883
9884         output_verbose_link_cmd=echo
9885         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9886           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9887           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9888         else
9889           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9890           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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9891         fi
9892         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9893         module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9894       else
9895         case $cc_basename in
9896         xlc*)
9897           output_verbose_link_cmd=echo
9898           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9899           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9900           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9901           archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9902           module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9903           ;;
9904         *)
9905           ld_shlibs=no
9906           ;;
9907         esac
9908       fi
9909       ;;
9910
9911     dgux*)
9912       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913       hardcode_libdir_flag_spec='-L$libdir'
9914       hardcode_shlibpath_var=no
9915       ;;
9916
9917     freebsd1*)
9918       ld_shlibs=no
9919       ;;
9920
9921     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9922     # support.  Future versions do this automatically, but an explicit c++rt0.o
9923     # does not break anything, and helps significantly (at the cost of a little
9924     # extra space).
9925     freebsd2.2*)
9926       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9927       hardcode_libdir_flag_spec='-R$libdir'
9928       hardcode_direct=yes
9929       hardcode_shlibpath_var=no
9930       ;;
9931
9932     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9933     freebsd2*)
9934       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9935       hardcode_direct=yes
9936       hardcode_minus_L=yes
9937       hardcode_shlibpath_var=no
9938       ;;
9939
9940     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9941     freebsd* | dragonfly*)
9942       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9943       hardcode_libdir_flag_spec='-R$libdir'
9944       hardcode_direct=yes
9945       hardcode_shlibpath_var=no
9946       ;;
9947
9948     hpux9*)
9949       if test "$GCC" = yes; then
9950         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'
9951       else
9952         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'
9953       fi
9954       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9955       hardcode_libdir_separator=:
9956       hardcode_direct=yes
9957
9958       # hardcode_minus_L: Not really in the search PATH,
9959       # but as the default location of the library.
9960       hardcode_minus_L=yes
9961       export_dynamic_flag_spec='${wl}-E'
9962       ;;
9963
9964     hpux10*)
9965       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9966         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9967       else
9968         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9969       fi
9970       if test "$with_gnu_ld" = no; then
9971         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9972         hardcode_libdir_flag_spec_ld='+b $libdir'
9973         hardcode_libdir_separator=:
9974         hardcode_direct=yes
9975         hardcode_direct_absolute=yes
9976         export_dynamic_flag_spec='${wl}-E'
9977         # hardcode_minus_L: Not really in the search PATH,
9978         # but as the default location of the library.
9979         hardcode_minus_L=yes
9980       fi
9981       ;;
9982
9983     hpux11*)
9984       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9985         case $host_cpu in
9986         hppa*64*)
9987           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9988           ;;
9989         ia64*)
9990           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9991           ;;
9992         *)
9993           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9994           ;;
9995         esac
9996       else
9997         case $host_cpu in
9998         hppa*64*)
9999           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000           ;;
10001         ia64*)
10002           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10003           ;;
10004         *)
10005           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10006           ;;
10007         esac
10008       fi
10009       if test "$with_gnu_ld" = no; then
10010         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10011         hardcode_libdir_separator=:
10012
10013         case $host_cpu in
10014         hppa*64*|ia64*)
10015           hardcode_direct=no
10016           hardcode_shlibpath_var=no
10017           ;;
10018         *)
10019           hardcode_direct=yes
10020           hardcode_direct_absolute=yes
10021           export_dynamic_flag_spec='${wl}-E'
10022
10023           # hardcode_minus_L: Not really in the search PATH,
10024           # but as the default location of the library.
10025           hardcode_minus_L=yes
10026           ;;
10027         esac
10028       fi
10029       ;;
10030
10031     irix5* | irix6* | nonstopux*)
10032       if test "$GCC" = yes; then
10033         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'
10034         # Try to use the -exported_symbol ld option, if it does not
10035         # work, assume that -exports_file does not work either and
10036         # implicitly export all symbols.
10037         save_LDFLAGS="$LDFLAGS"
10038         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10039         if test x$gcc_no_link = xyes; then
10040   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10041 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10042    { (exit 1); exit 1; }; }
10043 fi
10044 cat >conftest.$ac_ext <<_ACEOF
10045 int foo(void) {}
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049   (eval $ac_link) 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag"
10057                          || test ! -s conftest.err'
10058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059   (eval $ac_try) 2>&5
10060   ac_status=$?
10061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062   (exit $ac_status); }; } &&
10063          { ac_try='test -s conftest$ac_exeext'
10064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065   (eval $ac_try) 2>&5
10066   ac_status=$?
10067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068   (exit $ac_status); }; }; then
10069   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'
10070
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 fi
10076 rm -f conftest.err conftest.$ac_objext \
10077       conftest$ac_exeext conftest.$ac_ext
10078         LDFLAGS="$save_LDFLAGS"
10079       else
10080         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'
10081         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'
10082       fi
10083       archive_cmds_need_lc='no'
10084       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085       hardcode_libdir_separator=:
10086       inherit_rpath=yes
10087       link_all_deplibs=yes
10088       ;;
10089
10090     netbsd*)
10091       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10092         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10093       else
10094         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10095       fi
10096       hardcode_libdir_flag_spec='-R$libdir'
10097       hardcode_direct=yes
10098       hardcode_shlibpath_var=no
10099       ;;
10100
10101     newsos6)
10102       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103       hardcode_direct=yes
10104       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10105       hardcode_libdir_separator=:
10106       hardcode_shlibpath_var=no
10107       ;;
10108
10109     *nto* | *qnx*)
10110       ;;
10111
10112     openbsd*)
10113       hardcode_direct=yes
10114       hardcode_shlibpath_var=no
10115       hardcode_direct_absolute=yes
10116       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10117         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10118         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10119         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10120         export_dynamic_flag_spec='${wl}-E'
10121       else
10122         case $host_os in
10123         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10124           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10125           hardcode_libdir_flag_spec='-R$libdir'
10126           ;;
10127         *)
10128           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10130           ;;
10131         esac
10132       fi
10133       ;;
10134
10135     os2*)
10136       hardcode_libdir_flag_spec='-L$libdir'
10137       hardcode_minus_L=yes
10138       allow_undefined_flag=unsupported
10139       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'
10140       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10141       ;;
10142
10143     osf3*)
10144       if test "$GCC" = yes; then
10145         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146         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'
10147       else
10148         allow_undefined_flag=' -expect_unresolved \*'
10149         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'
10150       fi
10151       archive_cmds_need_lc='no'
10152       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10153       hardcode_libdir_separator=:
10154       ;;
10155
10156     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10157       if test "$GCC" = yes; then
10158         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10159         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'
10160         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10161       else
10162         allow_undefined_flag=' -expect_unresolved \*'
10163         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'
10164         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~
10165         $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'
10166
10167         # Both c and cxx compiler support -rpath directly
10168         hardcode_libdir_flag_spec='-rpath $libdir'
10169       fi
10170       archive_cmds_need_lc='no'
10171       hardcode_libdir_separator=:
10172       ;;
10173
10174     solaris*)
10175       no_undefined_flag=' -z defs'
10176       if test "$GCC" = yes; then
10177         wlarc='${wl}'
10178         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10179         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10181       else
10182         case `$CC -V 2>&1` in
10183         *"Compilers 5.0"*)
10184           wlarc=''
10185           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10187           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10188           ;;
10189         *)
10190           wlarc='${wl}'
10191           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10192           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10193           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10194           ;;
10195         esac
10196       fi
10197       hardcode_libdir_flag_spec='-R$libdir'
10198       hardcode_shlibpath_var=no
10199       case $host_os in
10200       solaris2.[0-5] | solaris2.[0-5].*) ;;
10201       *)
10202         # The compiler driver will combine and reorder linker options,
10203         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10204         # but is careful enough not to reorder.
10205         # Supported since Solaris 2.6 (maybe 2.5.1?)
10206         if test "$GCC" = yes; then
10207           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10208         else
10209           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10210         fi
10211         ;;
10212       esac
10213       link_all_deplibs=yes
10214       ;;
10215
10216     sunos4*)
10217       if test "x$host_vendor" = xsequent; then
10218         # Use $CC to link under sequent, because it throws in some extra .o
10219         # files that make .init and .fini sections work.
10220         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10221       else
10222         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10223       fi
10224       hardcode_libdir_flag_spec='-L$libdir'
10225       hardcode_direct=yes
10226       hardcode_minus_L=yes
10227       hardcode_shlibpath_var=no
10228       ;;
10229
10230     sysv4)
10231       case $host_vendor in
10232         sni)
10233           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234           hardcode_direct=yes # is this really true???
10235         ;;
10236         siemens)
10237           ## LD is ld it makes a PLAMLIB
10238           ## CC just makes a GrossModule.
10239           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10240           reload_cmds='$CC -r -o $output$reload_objs'
10241           hardcode_direct=no
10242         ;;
10243         motorola)
10244           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10246         ;;
10247       esac
10248       runpath_var='LD_RUN_PATH'
10249       hardcode_shlibpath_var=no
10250       ;;
10251
10252     sysv4.3*)
10253       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10254       hardcode_shlibpath_var=no
10255       export_dynamic_flag_spec='-Bexport'
10256       ;;
10257
10258     sysv4*MP*)
10259       if test -d /usr/nec; then
10260         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261         hardcode_shlibpath_var=no
10262         runpath_var=LD_RUN_PATH
10263         hardcode_runpath_var=yes
10264         ld_shlibs=yes
10265       fi
10266       ;;
10267
10268     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10269       no_undefined_flag='${wl}-z,text'
10270       archive_cmds_need_lc=no
10271       hardcode_shlibpath_var=no
10272       runpath_var='LD_RUN_PATH'
10273
10274       if test "$GCC" = yes; then
10275         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277       else
10278         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280       fi
10281       ;;
10282
10283     sysv5* | sco3.2v5* | sco5v6*)
10284       # Note: We can NOT use -z defs as we might desire, because we do not
10285       # link with -lc, and that would cause any symbols used from libc to
10286       # always be unresolved, which means just about no library would
10287       # ever link correctly.  If we're not using GNU ld we use -z text
10288       # though, which does catch some bad symbols but isn't as heavy-handed
10289       # as -z defs.
10290       no_undefined_flag='${wl}-z,text'
10291       allow_undefined_flag='${wl}-z,nodefs'
10292       archive_cmds_need_lc=no
10293       hardcode_shlibpath_var=no
10294       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10295       hardcode_libdir_separator=':'
10296       link_all_deplibs=yes
10297       export_dynamic_flag_spec='${wl}-Bexport'
10298       runpath_var='LD_RUN_PATH'
10299
10300       if test "$GCC" = yes; then
10301         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10303       else
10304         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10306       fi
10307       ;;
10308
10309     uts4*)
10310       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10311       hardcode_libdir_flag_spec='-L$libdir'
10312       hardcode_shlibpath_var=no
10313       ;;
10314
10315     *)
10316       ld_shlibs=no
10317       ;;
10318     esac
10319
10320     if test x$host_vendor = xsni; then
10321       case $host in
10322       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10323         export_dynamic_flag_spec='${wl}-Blargedynsym'
10324         ;;
10325       esac
10326     fi
10327   fi
10328
10329 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10330 echo "${ECHO_T}$ld_shlibs" >&6
10331 test "$ld_shlibs" = no && can_build_shared=no
10332
10333 with_gnu_ld=$with_gnu_ld
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349 #
10350 # Do we need to explicitly link libc?
10351 #
10352 case "x$archive_cmds_need_lc" in
10353 x|xyes)
10354   # Assume -lc should be added
10355   archive_cmds_need_lc=yes
10356
10357   if test "$enable_shared" = yes && test "$GCC" = yes; then
10358     case $archive_cmds in
10359     *'~'*)
10360       # FIXME: we may have to deal with multi-command sequences.
10361       ;;
10362     '$CC '*)
10363       # Test whether the compiler implicitly links with -lc since on some
10364       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10365       # to ld, don't add -lc before -lgcc.
10366       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10367 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10368       $RM conftest*
10369       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10370
10371       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372   (eval $ac_compile) 2>&5
10373   ac_status=$?
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } 2>conftest.err; then
10376         soname=conftest
10377         lib=conftest
10378         libobjs=conftest.$ac_objext
10379         deplibs=
10380         wl=$lt_prog_compiler_wl
10381         pic_flag=$lt_prog_compiler_pic
10382         compiler_flags=-v
10383         linker_flags=-v
10384         verstring=
10385         output_objdir=.
10386         libname=conftest
10387         lt_save_allow_undefined_flag=$allow_undefined_flag
10388         allow_undefined_flag=
10389         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10390   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10391   ac_status=$?
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   (exit $ac_status); }
10394         then
10395           archive_cmds_need_lc=no
10396         else
10397           archive_cmds_need_lc=yes
10398         fi
10399         allow_undefined_flag=$lt_save_allow_undefined_flag
10400       else
10401         cat conftest.err 1>&5
10402       fi
10403       $RM conftest*
10404       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10405 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10406       ;;
10407     esac
10408   fi
10409   ;;
10410 esac
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10569 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10570 withGCC=$GCC
10571 if test "$withGCC" = yes; then
10572   case $host_os in
10573     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10574     *) lt_awk_arg="/^libraries:/" ;;
10575   esac
10576   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10577   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10578     # if the path contains ";" then we assume it to be the separator
10579     # otherwise default to the standard path separator (i.e. ":") - it is
10580     # assumed that no part of a normal pathname contains ";" but that should
10581     # okay in the real world where ";" in dirpaths is itself problematic.
10582     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10583   else
10584     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10585   fi
10586   # Ok, now we have the path, separated by spaces, we can step through it
10587   # and add multilib dir if necessary.
10588   lt_tmp_lt_search_path_spec=
10589   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10590   for lt_sys_path in $lt_search_path_spec; do
10591     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10592       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10593     else
10594       test -d "$lt_sys_path" && \
10595         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10596     fi
10597   done
10598   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10599 BEGIN {RS=" "; FS="/|\n";} {
10600   lt_foo="";
10601   lt_count=0;
10602   for (lt_i = NF; lt_i > 0; lt_i--) {
10603     if ($lt_i != "" && $lt_i != ".") {
10604       if ($lt_i == "..") {
10605         lt_count++;
10606       } else {
10607         if (lt_count == 0) {
10608           lt_foo="/" $lt_i lt_foo;
10609         } else {
10610           lt_count--;
10611         }
10612       }
10613     }
10614   }
10615   if (lt_foo != "") { lt_freq[lt_foo]++; }
10616   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10617 }'`
10618   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10619 else
10620   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10621 fi
10622 library_names_spec=
10623 libname_spec='lib$name'
10624 soname_spec=
10625 shrext_cmds=".so"
10626 postinstall_cmds=
10627 postuninstall_cmds=
10628 finish_cmds=
10629 finish_eval=
10630 shlibpath_var=
10631 shlibpath_overrides_runpath=unknown
10632 version_type=none
10633 dynamic_linker="$host_os ld.so"
10634 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10635 need_lib_prefix=unknown
10636 hardcode_into_libs=no
10637
10638 # when you set need_version to no, make sure it does not cause -set_version
10639 # flags to be left without arguments
10640 need_version=unknown
10641
10642 case $host_os in
10643 aix3*)
10644   version_type=linux
10645   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10646   shlibpath_var=LIBPATH
10647
10648   # AIX 3 has no versioning support, so we append a major version to the name.
10649   soname_spec='${libname}${release}${shared_ext}$major'
10650   ;;
10651
10652 aix4* | aix5*)
10653   version_type=linux
10654   need_lib_prefix=no
10655   need_version=no
10656   hardcode_into_libs=yes
10657   if test "$host_cpu" = ia64; then
10658     # AIX 5 supports IA64
10659     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10660     shlibpath_var=LD_LIBRARY_PATH
10661   else
10662     # With GCC up to 2.95.x, collect2 would create an import file
10663     # for dependence libraries.  The import file would start with
10664     # the line `#! .'.  This would cause the generated library to
10665     # depend on `.', always an invalid library.  This was fixed in
10666     # development snapshots of GCC prior to 3.0.
10667     case $host_os in
10668       aix4 | aix4.[01] | aix4.[01].*)
10669       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10670            echo ' yes '
10671            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10672         :
10673       else
10674         can_build_shared=no
10675       fi
10676       ;;
10677     esac
10678     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10679     # soname into executable. Probably we can add versioning support to
10680     # collect2, so additional links can be useful in future.
10681     if test "$aix_use_runtimelinking" = yes; then
10682       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10683       # instead of lib<name>.a to let people know that these are not
10684       # typical AIX shared libraries.
10685       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686     else
10687       # We preserve .a as extension for shared libraries through AIX4.2
10688       # and later when we are not doing run time linking.
10689       library_names_spec='${libname}${release}.a $libname.a'
10690       soname_spec='${libname}${release}${shared_ext}$major'
10691     fi
10692     shlibpath_var=LIBPATH
10693   fi
10694   ;;
10695
10696 amigaos*)
10697   if test "$host_cpu" = m68k; then
10698     library_names_spec='$libname.ixlibrary $libname.a'
10699     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10700     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'
10701   else
10702     dynamic_linker=no
10703   fi
10704   ;;
10705
10706 beos*)
10707   library_names_spec='${libname}${shared_ext}'
10708   dynamic_linker="$host_os ld.so"
10709   shlibpath_var=LIBRARY_PATH
10710   ;;
10711
10712 bsdi[45]*)
10713   version_type=linux
10714   need_version=no
10715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716   soname_spec='${libname}${release}${shared_ext}$major'
10717   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10718   shlibpath_var=LD_LIBRARY_PATH
10719   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10720   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10721   # the default ld.so.conf also contains /usr/contrib/lib and
10722   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10723   # libtool to hard-code these into programs
10724   ;;
10725
10726 cygwin* | mingw* | pw32*)
10727   version_type=windows
10728   shrext_cmds=".dll"
10729   need_version=no
10730   need_lib_prefix=no
10731
10732   case $withGCC,$host_os in
10733   yes,cygwin* | yes,mingw* | yes,pw32*)
10734     library_names_spec='$libname.dll.a'
10735     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10736     postinstall_cmds='base_file=`basename \${file}`~
10737       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10738       dldir=$destdir/`dirname \$dlpath`~
10739       test -d \$dldir || mkdir -p \$dldir~
10740       $install_prog $dir/$dlname \$dldir/$dlname~
10741       chmod a+x \$dldir/$dlname~
10742       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10743         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10744       fi'
10745     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10746       dlpath=$dir/\$dldll~
10747        $RM \$dlpath'
10748     shlibpath_overrides_runpath=yes
10749
10750     case $host_os in
10751     cygwin*)
10752       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10753       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10755       ;;
10756     mingw*)
10757       # MinGW DLLs use traditional 'lib' prefix
10758       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10760       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10761         # It is most probably a Windows format PATH printed by
10762         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10763         # path with ; separators, and with drive letters. We can handle the
10764         # drive letters (cygwin fileutils understands them), so leave them,
10765         # especially as we might pass files found there to a mingw objdump,
10766         # which wouldn't understand a cygwinified path. Ahh.
10767         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10768       else
10769         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10770       fi
10771       ;;
10772     pw32*)
10773       # pw32 DLLs use 'pw' prefix rather than 'lib'
10774       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775       ;;
10776     esac
10777     ;;
10778
10779   *)
10780     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10781     ;;
10782   esac
10783   dynamic_linker='Win32 ld.exe'
10784   # FIXME: first we should search . and the directory the executable is in
10785   shlibpath_var=PATH
10786   ;;
10787
10788 darwin* | rhapsody*)
10789   dynamic_linker="$host_os dyld"
10790   version_type=darwin
10791   need_lib_prefix=no
10792   need_version=no
10793   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10794   soname_spec='${libname}${release}${major}$shared_ext'
10795   shlibpath_overrides_runpath=yes
10796   shlibpath_var=DYLD_LIBRARY_PATH
10797   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10798
10799   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10800   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10801   ;;
10802
10803 dgux*)
10804   version_type=linux
10805   need_lib_prefix=no
10806   need_version=no
10807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   shlibpath_var=LD_LIBRARY_PATH
10810   ;;
10811
10812 freebsd1*)
10813   dynamic_linker=no
10814   ;;
10815
10816 freebsd* | dragonfly*)
10817   # DragonFly does not have aout.  When/if they implement a new
10818   # versioning mechanism, adjust this.
10819   if test -x /usr/bin/objformat; then
10820     objformat=`/usr/bin/objformat`
10821   else
10822     case $host_os in
10823     freebsd[123]*) objformat=aout ;;
10824     *) objformat=elf ;;
10825     esac
10826   fi
10827   version_type=freebsd-$objformat
10828   case $version_type in
10829     freebsd-elf*)
10830       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10831       need_version=no
10832       need_lib_prefix=no
10833       ;;
10834     freebsd-*)
10835       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10836       need_version=yes
10837       ;;
10838   esac
10839   shlibpath_var=LD_LIBRARY_PATH
10840   case $host_os in
10841   freebsd2*)
10842     shlibpath_overrides_runpath=yes
10843     ;;
10844   freebsd3.[01]* | freebsdelf3.[01]*)
10845     shlibpath_overrides_runpath=yes
10846     hardcode_into_libs=yes
10847     ;;
10848   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10849   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10850     shlibpath_overrides_runpath=no
10851     hardcode_into_libs=yes
10852     ;;
10853   *) # from 4.6 on, and DragonFly
10854     shlibpath_overrides_runpath=yes
10855     hardcode_into_libs=yes
10856     ;;
10857   esac
10858   ;;
10859
10860 gnu*)
10861   version_type=linux
10862   need_lib_prefix=no
10863   need_version=no
10864   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   shlibpath_var=LD_LIBRARY_PATH
10867   hardcode_into_libs=yes
10868   ;;
10869
10870 hpux9* | hpux10* | hpux11*)
10871   # Give a soname corresponding to the major version so that dld.sl refuses to
10872   # link against other versions.
10873   version_type=sunos
10874   need_lib_prefix=no
10875   need_version=no
10876   case $host_cpu in
10877   ia64*)
10878     shrext_cmds='.so'
10879     hardcode_into_libs=yes
10880     dynamic_linker="$host_os dld.so"
10881     shlibpath_var=LD_LIBRARY_PATH
10882     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10884     soname_spec='${libname}${release}${shared_ext}$major'
10885     if test "X$HPUX_IA64_MODE" = X32; then
10886       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10887     else
10888       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10889     fi
10890     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10891     ;;
10892   hppa*64*)
10893     shrext_cmds='.sl'
10894     hardcode_into_libs=yes
10895     dynamic_linker="$host_os dld.sl"
10896     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10897     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899     soname_spec='${libname}${release}${shared_ext}$major'
10900     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10902     ;;
10903   *)
10904     shrext_cmds='.sl'
10905     dynamic_linker="$host_os dld.sl"
10906     shlibpath_var=SHLIB_PATH
10907     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10908     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909     soname_spec='${libname}${release}${shared_ext}$major'
10910     ;;
10911   esac
10912   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10913   postinstall_cmds='chmod 555 $lib'
10914   ;;
10915
10916 interix[3-9]*)
10917   version_type=linux
10918   need_lib_prefix=no
10919   need_version=no
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10923   shlibpath_var=LD_LIBRARY_PATH
10924   shlibpath_overrides_runpath=no
10925   hardcode_into_libs=yes
10926   ;;
10927
10928 irix5* | irix6* | nonstopux*)
10929   case $host_os in
10930     nonstopux*) version_type=nonstopux ;;
10931     *)
10932         if test "$lt_cv_prog_gnu_ld" = yes; then
10933                 version_type=linux
10934         else
10935                 version_type=irix
10936         fi ;;
10937   esac
10938   need_lib_prefix=no
10939   need_version=no
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10942   case $host_os in
10943   irix5* | nonstopux*)
10944     libsuff= shlibsuff=
10945     ;;
10946   *)
10947     case $LD in # libtool.m4 will add one of these switches to LD
10948     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10949       libsuff= shlibsuff= libmagic=32-bit;;
10950     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10951       libsuff=32 shlibsuff=N32 libmagic=N32;;
10952     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10953       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10954     *) libsuff= shlibsuff= libmagic=never-match;;
10955     esac
10956     ;;
10957   esac
10958   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10959   shlibpath_overrides_runpath=no
10960   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10961   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10962   hardcode_into_libs=yes
10963   ;;
10964
10965 # No shared lib support for Linux oldld, aout, or coff.
10966 linux*oldld* | linux*aout* | linux*coff*)
10967   dynamic_linker=no
10968   ;;
10969
10970 # This must be Linux ELF.
10971 linux* | k*bsd*-gnu)
10972   version_type=linux
10973   need_lib_prefix=no
10974   need_version=no
10975   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10976   soname_spec='${libname}${release}${shared_ext}$major'
10977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   shlibpath_overrides_runpath=no
10980   # Some binutils ld are patched to set DT_RUNPATH
10981   save_LDFLAGS=$LDFLAGS
10982   save_libdir=$libdir
10983   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10984        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10985   if test x$gcc_no_link = xyes; then
10986   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10988    { (exit 1); exit 1; }; }
10989 fi
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996
10997 int
10998 main ()
10999 {
11000
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007   (eval $ac_link) 2>conftest.er1
11008   ac_status=$?
11009   grep -v '^ *+' conftest.er1 >conftest.err
11010   rm -f conftest.er1
11011   cat conftest.err >&5
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -z "$ac_c_werror_flag"
11015                          || test ! -s conftest.err'
11016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017   (eval $ac_try) 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; } &&
11021          { ac_try='test -s conftest$ac_exeext'
11022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023   (eval $ac_try) 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11028   shlibpath_overrides_runpath=yes
11029 fi
11030
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035 fi
11036 rm -f conftest.err conftest.$ac_objext \
11037       conftest$ac_exeext conftest.$ac_ext
11038   LDFLAGS=$save_LDFLAGS
11039   libdir=$save_libdir
11040
11041   # This implies no fast_install, which is unacceptable.
11042   # Some rework will be needed to allow for fast_install
11043   # before this can be enabled.
11044   hardcode_into_libs=yes
11045
11046   # Append ld.so.conf contents to the search path
11047   if test -f /etc/ld.so.conf; then
11048     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11049     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11050   fi
11051
11052   # We used to test for /lib/ld.so.1 and disable shared libraries on
11053   # powerpc, because MkLinux only supported shared libraries with the
11054   # GNU dynamic linker.  Since this was broken with cross compilers,
11055   # most powerpc-linux boxes support dynamic linking these days and
11056   # people can always --disable-shared, the test was removed, and we
11057   # assume the GNU/Linux dynamic linker is in use.
11058   dynamic_linker='GNU/Linux ld.so'
11059   ;;
11060
11061 netbsd*)
11062   version_type=sunos
11063   need_lib_prefix=no
11064   need_version=no
11065   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11067     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11068     dynamic_linker='NetBSD (a.out) ld.so'
11069   else
11070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11071     soname_spec='${libname}${release}${shared_ext}$major'
11072     dynamic_linker='NetBSD ld.elf_so'
11073   fi
11074   shlibpath_var=LD_LIBRARY_PATH
11075   shlibpath_overrides_runpath=yes
11076   hardcode_into_libs=yes
11077   ;;
11078
11079 newsos6)
11080   version_type=linux
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   ;;
11085
11086 *nto* | *qnx*)
11087   version_type=qnx
11088   need_lib_prefix=no
11089   need_version=no
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091   soname_spec='${libname}${release}${shared_ext}$major'
11092   shlibpath_var=LD_LIBRARY_PATH
11093   shlibpath_overrides_runpath=no
11094   hardcode_into_libs=yes
11095   dynamic_linker='ldqnx.so'
11096   ;;
11097
11098 openbsd*)
11099   version_type=sunos
11100   sys_lib_dlsearch_path_spec="/usr/lib"
11101   need_lib_prefix=no
11102   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11103   case $host_os in
11104     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11105     *)                          need_version=no  ;;
11106   esac
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11108   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11109   shlibpath_var=LD_LIBRARY_PATH
11110   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11111     case $host_os in
11112       openbsd2.[89] | openbsd2.[89].*)
11113         shlibpath_overrides_runpath=no
11114         ;;
11115       *)
11116         shlibpath_overrides_runpath=yes
11117         ;;
11118       esac
11119   else
11120     shlibpath_overrides_runpath=yes
11121   fi
11122   ;;
11123
11124 os2*)
11125   libname_spec='$name'
11126   shrext_cmds=".dll"
11127   need_lib_prefix=no
11128   library_names_spec='$libname${shared_ext} $libname.a'
11129   dynamic_linker='OS/2 ld.exe'
11130   shlibpath_var=LIBPATH
11131   ;;
11132
11133 osf3* | osf4* | osf5*)
11134   version_type=osf
11135   need_lib_prefix=no
11136   need_version=no
11137   soname_spec='${libname}${release}${shared_ext}$major'
11138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139   shlibpath_var=LD_LIBRARY_PATH
11140   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11141   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11142   ;;
11143
11144 rdos*)
11145   dynamic_linker=no
11146   ;;
11147
11148 solaris*)
11149   version_type=linux
11150   need_lib_prefix=no
11151   need_version=no
11152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11153   soname_spec='${libname}${release}${shared_ext}$major'
11154   shlibpath_var=LD_LIBRARY_PATH
11155   shlibpath_overrides_runpath=yes
11156   hardcode_into_libs=yes
11157   # ldd complains unless libraries are executable
11158   postinstall_cmds='chmod +x $lib'
11159   ;;
11160
11161 sunos4*)
11162   version_type=sunos
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11164   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   shlibpath_overrides_runpath=yes
11167   if test "$with_gnu_ld" = yes; then
11168     need_lib_prefix=no
11169   fi
11170   need_version=yes
11171   ;;
11172
11173 sysv4 | sysv4.3*)
11174   version_type=linux
11175   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   shlibpath_var=LD_LIBRARY_PATH
11178   case $host_vendor in
11179     sni)
11180       shlibpath_overrides_runpath=no
11181       need_lib_prefix=no
11182       runpath_var=LD_RUN_PATH
11183       ;;
11184     siemens)
11185       need_lib_prefix=no
11186       ;;
11187     motorola)
11188       need_lib_prefix=no
11189       need_version=no
11190       shlibpath_overrides_runpath=no
11191       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11192       ;;
11193   esac
11194   ;;
11195
11196 sysv4*MP*)
11197   if test -d /usr/nec ;then
11198     version_type=linux
11199     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11200     soname_spec='$libname${shared_ext}.$major'
11201     shlibpath_var=LD_LIBRARY_PATH
11202   fi
11203   ;;
11204
11205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11206   version_type=freebsd-elf
11207   need_lib_prefix=no
11208   need_version=no
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210   soname_spec='${libname}${release}${shared_ext}$major'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   shlibpath_overrides_runpath=yes
11213   hardcode_into_libs=yes
11214   if test "$with_gnu_ld" = yes; then
11215     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11216   else
11217     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11218     case $host_os in
11219       sco3.2v5*)
11220         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11221         ;;
11222     esac
11223   fi
11224   sys_lib_dlsearch_path_spec='/usr/lib'
11225   ;;
11226
11227 tpf*)
11228   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11229   version_type=linux
11230   need_lib_prefix=no
11231   need_version=no
11232   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233   shlibpath_var=LD_LIBRARY_PATH
11234   shlibpath_overrides_runpath=no
11235   hardcode_into_libs=yes
11236   ;;
11237
11238 uts4*)
11239   version_type=linux
11240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241   soname_spec='${libname}${release}${shared_ext}$major'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   ;;
11244
11245 *)
11246   dynamic_linker=no
11247   ;;
11248 esac
11249 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11250 echo "${ECHO_T}$dynamic_linker" >&6
11251 test "$dynamic_linker" = no && can_build_shared=no
11252
11253 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11254 if test "$GCC" = yes; then
11255   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11256 fi
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11345 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11346 hardcode_action=
11347 if test -n "$hardcode_libdir_flag_spec" ||
11348    test -n "$runpath_var" ||
11349    test "X$hardcode_automatic" = "Xyes" ; then
11350
11351   # We can hardcode non-existent directories.
11352   if test "$hardcode_direct" != no &&
11353      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11354      # have to relink, otherwise we might link with an installed library
11355      # when we should be linking with a yet-to-be-installed one
11356      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11357      test "$hardcode_minus_L" != no; then
11358     # Linking always hardcodes the temporary library directory.
11359     hardcode_action=relink
11360   else
11361     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11362     hardcode_action=immediate
11363   fi
11364 else
11365   # We cannot hardcode anything, or else we can only hardcode existing
11366   # directories.
11367   hardcode_action=unsupported
11368 fi
11369 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11370 echo "${ECHO_T}$hardcode_action" >&6
11371
11372 if test "$hardcode_action" = relink ||
11373    test "$inherit_rpath" = yes; then
11374   # Fast installation is not supported
11375   enable_fast_install=no
11376 elif test "$shlibpath_overrides_runpath" = yes ||
11377      test "$enable_shared" = no; then
11378   # Fast installation is not necessary
11379   enable_fast_install=needless
11380 fi
11381
11382
11383
11384
11385
11386
11387   if test "x$enable_dlopen" != xyes; then
11388   enable_dlopen=unknown
11389   enable_dlopen_self=unknown
11390   enable_dlopen_self_static=unknown
11391 else
11392   lt_cv_dlopen=no
11393   lt_cv_dlopen_libs=
11394
11395   case $host_os in
11396   beos*)
11397     lt_cv_dlopen="load_add_on"
11398     lt_cv_dlopen_libs=
11399     lt_cv_dlopen_self=yes
11400     ;;
11401
11402   mingw* | pw32*)
11403     lt_cv_dlopen="LoadLibrary"
11404     lt_cv_dlopen_libs=
11405     ;;
11406
11407   cygwin*)
11408     lt_cv_dlopen="dlopen"
11409     lt_cv_dlopen_libs=
11410     ;;
11411
11412   darwin*)
11413   # if libdl is installed we need to link against it
11414     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11415 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11417   echo $ECHO_N "(cached) $ECHO_C" >&6
11418 else
11419   ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldl  $LIBS"
11421 if test x$gcc_no_link = xyes; then
11422   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11423 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11424    { (exit 1); exit 1; }; }
11425 fi
11426 cat >conftest.$ac_ext <<_ACEOF
11427 /* confdefs.h.  */
11428 _ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h.  */
11432
11433 /* Override any gcc2 internal prototype to avoid an error.  */
11434 #ifdef __cplusplus
11435 extern "C"
11436 #endif
11437 /* We use char because int might match the return type of a gcc2
11438    builtin and then its argument prototype would still apply.  */
11439 char dlopen ();
11440 int
11441 main ()
11442 {
11443 dlopen ();
11444   ;
11445   return 0;
11446 }
11447 _ACEOF
11448 rm -f conftest.$ac_objext conftest$ac_exeext
11449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11450   (eval $ac_link) 2>conftest.er1
11451   ac_status=$?
11452   grep -v '^ *+' conftest.er1 >conftest.err
11453   rm -f conftest.er1
11454   cat conftest.err >&5
11455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456   (exit $ac_status); } &&
11457          { ac_try='test -z "$ac_c_werror_flag"
11458                          || test ! -s conftest.err'
11459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11460   (eval $ac_try) 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; } &&
11464          { ac_try='test -s conftest$ac_exeext'
11465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466   (eval $ac_try) 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_cv_lib_dl_dlopen=yes
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475 ac_cv_lib_dl_dlopen=no
11476 fi
11477 rm -f conftest.err conftest.$ac_objext \
11478       conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11482 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11483 if test $ac_cv_lib_dl_dlopen = yes; then
11484   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11485 else
11486
11487     lt_cv_dlopen="dyld"
11488     lt_cv_dlopen_libs=
11489     lt_cv_dlopen_self=yes
11490
11491 fi
11492
11493     ;;
11494
11495   *)
11496     echo "$as_me:$LINENO: checking for shl_load" >&5
11497 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11498 if test "${ac_cv_func_shl_load+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   if test x$gcc_no_link = xyes; then
11502   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11503 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11504    { (exit 1); exit 1; }; }
11505 fi
11506 cat >conftest.$ac_ext <<_ACEOF
11507 /* confdefs.h.  */
11508 _ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h.  */
11512 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11514 #define shl_load innocuous_shl_load
11515
11516 /* System header to define __stub macros and hopefully few prototypes,
11517     which can conflict with char shl_load (); below.
11518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11519     <limits.h> exists even on freestanding compilers.  */
11520
11521 #ifdef __STDC__
11522 # include <limits.h>
11523 #else
11524 # include <assert.h>
11525 #endif
11526
11527 #undef shl_load
11528
11529 /* Override any gcc2 internal prototype to avoid an error.  */
11530 #ifdef __cplusplus
11531 extern "C"
11532 {
11533 #endif
11534 /* We use char because int might match the return type of a gcc2
11535    builtin and then its argument prototype would still apply.  */
11536 char shl_load ();
11537 /* The GNU C library defines this for functions which it implements
11538     to always fail with ENOSYS.  Some functions are actually named
11539     something starting with __ and the normal name is an alias.  */
11540 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11541 choke me
11542 #else
11543 char (*f) () = shl_load;
11544 #endif
11545 #ifdef __cplusplus
11546 }
11547 #endif
11548
11549 int
11550 main ()
11551 {
11552 return f != shl_load;
11553   ;
11554   return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext conftest$ac_exeext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11559   (eval $ac_link) 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } &&
11566          { ac_try='test -z "$ac_c_werror_flag"
11567                          || test ! -s conftest.err'
11568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569   (eval $ac_try) 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest$ac_exeext'
11574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575   (eval $ac_try) 2>&5
11576   ac_status=$?
11577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578   (exit $ac_status); }; }; then
11579   ac_cv_func_shl_load=yes
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 ac_cv_func_shl_load=no
11585 fi
11586 rm -f conftest.err conftest.$ac_objext \
11587       conftest$ac_exeext conftest.$ac_ext
11588 fi
11589 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11590 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11591 if test $ac_cv_func_shl_load = yes; then
11592   lt_cv_dlopen="shl_load"
11593 else
11594   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11595 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11596 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11597   echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599   ac_check_lib_save_LIBS=$LIBS
11600 LIBS="-ldld  $LIBS"
11601 if test x$gcc_no_link = xyes; then
11602   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11603 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11604    { (exit 1); exit 1; }; }
11605 fi
11606 cat >conftest.$ac_ext <<_ACEOF
11607 /* confdefs.h.  */
11608 _ACEOF
11609 cat confdefs.h >>conftest.$ac_ext
11610 cat >>conftest.$ac_ext <<_ACEOF
11611 /* end confdefs.h.  */
11612
11613 /* Override any gcc2 internal prototype to avoid an error.  */
11614 #ifdef __cplusplus
11615 extern "C"
11616 #endif
11617 /* We use char because int might match the return type of a gcc2
11618    builtin and then its argument prototype would still apply.  */
11619 char shl_load ();
11620 int
11621 main ()
11622 {
11623 shl_load ();
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 rm -f conftest.$ac_objext conftest$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630   (eval $ac_link) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } &&
11637          { ac_try='test -z "$ac_c_werror_flag"
11638                          || test ! -s conftest.err'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; } &&
11644          { ac_try='test -s conftest$ac_exeext'
11645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646   (eval $ac_try) 2>&5
11647   ac_status=$?
11648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649   (exit $ac_status); }; }; then
11650   ac_cv_lib_dld_shl_load=yes
11651 else
11652   echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_cv_lib_dld_shl_load=no
11656 fi
11657 rm -f conftest.err conftest.$ac_objext \
11658       conftest$ac_exeext conftest.$ac_ext
11659 LIBS=$ac_check_lib_save_LIBS
11660 fi
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11662 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11663 if test $ac_cv_lib_dld_shl_load = yes; then
11664   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11665 else
11666   echo "$as_me:$LINENO: checking for dlopen" >&5
11667 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11668 if test "${ac_cv_func_dlopen+set}" = set; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   if test x$gcc_no_link = xyes; then
11672   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11674    { (exit 1); exit 1; }; }
11675 fi
11676 cat >conftest.$ac_ext <<_ACEOF
11677 /* confdefs.h.  */
11678 _ACEOF
11679 cat confdefs.h >>conftest.$ac_ext
11680 cat >>conftest.$ac_ext <<_ACEOF
11681 /* end confdefs.h.  */
11682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11684 #define dlopen innocuous_dlopen
11685
11686 /* System header to define __stub macros and hopefully few prototypes,
11687     which can conflict with char dlopen (); below.
11688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689     <limits.h> exists even on freestanding compilers.  */
11690
11691 #ifdef __STDC__
11692 # include <limits.h>
11693 #else
11694 # include <assert.h>
11695 #endif
11696
11697 #undef dlopen
11698
11699 /* Override any gcc2 internal prototype to avoid an error.  */
11700 #ifdef __cplusplus
11701 extern "C"
11702 {
11703 #endif
11704 /* We use char because int might match the return type of a gcc2
11705    builtin and then its argument prototype would still apply.  */
11706 char dlopen ();
11707 /* The GNU C library defines this for functions which it implements
11708     to always fail with ENOSYS.  Some functions are actually named
11709     something starting with __ and the normal name is an alias.  */
11710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11711 choke me
11712 #else
11713 char (*f) () = dlopen;
11714 #endif
11715 #ifdef __cplusplus
11716 }
11717 #endif
11718
11719 int
11720 main ()
11721 {
11722 return f != dlopen;
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729   (eval $ac_link) 2>conftest.er1
11730   ac_status=$?
11731   grep -v '^ *+' conftest.er1 >conftest.err
11732   rm -f conftest.er1
11733   cat conftest.err >&5
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); } &&
11736          { ac_try='test -z "$ac_c_werror_flag"
11737                          || test ! -s conftest.err'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; } &&
11743          { ac_try='test -s conftest$ac_exeext'
11744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745   (eval $ac_try) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; }; then
11749   ac_cv_func_dlopen=yes
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754 ac_cv_func_dlopen=no
11755 fi
11756 rm -f conftest.err conftest.$ac_objext \
11757       conftest$ac_exeext conftest.$ac_ext
11758 fi
11759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11761 if test $ac_cv_func_dlopen = yes; then
11762   lt_cv_dlopen="dlopen"
11763 else
11764   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11767   echo $ECHO_N "(cached) $ECHO_C" >&6
11768 else
11769   ac_check_lib_save_LIBS=$LIBS
11770 LIBS="-ldl  $LIBS"
11771 if test x$gcc_no_link = xyes; then
11772   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11774    { (exit 1); exit 1; }; }
11775 fi
11776 cat >conftest.$ac_ext <<_ACEOF
11777 /* confdefs.h.  */
11778 _ACEOF
11779 cat confdefs.h >>conftest.$ac_ext
11780 cat >>conftest.$ac_ext <<_ACEOF
11781 /* end confdefs.h.  */
11782
11783 /* Override any gcc2 internal prototype to avoid an error.  */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 /* We use char because int might match the return type of a gcc2
11788    builtin and then its argument prototype would still apply.  */
11789 char dlopen ();
11790 int
11791 main ()
11792 {
11793 dlopen ();
11794   ;
11795   return 0;
11796 }
11797 _ACEOF
11798 rm -f conftest.$ac_objext conftest$ac_exeext
11799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11800   (eval $ac_link) 2>conftest.er1
11801   ac_status=$?
11802   grep -v '^ *+' conftest.er1 >conftest.err
11803   rm -f conftest.er1
11804   cat conftest.err >&5
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); } &&
11807          { ac_try='test -z "$ac_c_werror_flag"
11808                          || test ! -s conftest.err'
11809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810   (eval $ac_try) 2>&5
11811   ac_status=$?
11812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813   (exit $ac_status); }; } &&
11814          { ac_try='test -s conftest$ac_exeext'
11815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11816   (eval $ac_try) 2>&5
11817   ac_status=$?
11818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819   (exit $ac_status); }; }; then
11820   ac_cv_lib_dl_dlopen=yes
11821 else
11822   echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11824
11825 ac_cv_lib_dl_dlopen=no
11826 fi
11827 rm -f conftest.err conftest.$ac_objext \
11828       conftest$ac_exeext conftest.$ac_ext
11829 LIBS=$ac_check_lib_save_LIBS
11830 fi
11831 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11832 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11833 if test $ac_cv_lib_dl_dlopen = yes; then
11834   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11835 else
11836   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11837 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11838 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11839   echo $ECHO_N "(cached) $ECHO_C" >&6
11840 else
11841   ac_check_lib_save_LIBS=$LIBS
11842 LIBS="-lsvld  $LIBS"
11843 if test x$gcc_no_link = xyes; then
11844   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11846    { (exit 1); exit 1; }; }
11847 fi
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854
11855 /* Override any gcc2 internal prototype to avoid an error.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 /* We use char because int might match the return type of a gcc2
11860    builtin and then its argument prototype would still apply.  */
11861 char dlopen ();
11862 int
11863 main ()
11864 {
11865 dlopen ();
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872   (eval $ac_link) 2>conftest.er1
11873   ac_status=$?
11874   grep -v '^ *+' conftest.er1 >conftest.err
11875   rm -f conftest.er1
11876   cat conftest.err >&5
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -z "$ac_c_werror_flag"
11880                          || test ! -s conftest.err'
11881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882   (eval $ac_try) 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; } &&
11886          { ac_try='test -s conftest$ac_exeext'
11887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888   (eval $ac_try) 2>&5
11889   ac_status=$?
11890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891   (exit $ac_status); }; }; then
11892   ac_cv_lib_svld_dlopen=yes
11893 else
11894   echo "$as_me: failed program was:" >&5
11895 sed 's/^/| /' conftest.$ac_ext >&5
11896
11897 ac_cv_lib_svld_dlopen=no
11898 fi
11899 rm -f conftest.err conftest.$ac_objext \
11900       conftest$ac_exeext conftest.$ac_ext
11901 LIBS=$ac_check_lib_save_LIBS
11902 fi
11903 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11904 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11905 if test $ac_cv_lib_svld_dlopen = yes; then
11906   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11907 else
11908   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11909 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11910 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   ac_check_lib_save_LIBS=$LIBS
11914 LIBS="-ldld  $LIBS"
11915 if test x$gcc_no_link = xyes; then
11916   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11918    { (exit 1); exit 1; }; }
11919 fi
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h.  */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h.  */
11926
11927 /* Override any gcc2 internal prototype to avoid an error.  */
11928 #ifdef __cplusplus
11929 extern "C"
11930 #endif
11931 /* We use char because int might match the return type of a gcc2
11932    builtin and then its argument prototype would still apply.  */
11933 char dld_link ();
11934 int
11935 main ()
11936 {
11937 dld_link ();
11938   ;
11939   return 0;
11940 }
11941 _ACEOF
11942 rm -f conftest.$ac_objext conftest$ac_exeext
11943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11944   (eval $ac_link) 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } &&
11951          { ac_try='test -z "$ac_c_werror_flag"
11952                          || test ! -s conftest.err'
11953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954   (eval $ac_try) 2>&5
11955   ac_status=$?
11956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); }; } &&
11958          { ac_try='test -s conftest$ac_exeext'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; }; then
11964   ac_cv_lib_dld_dld_link=yes
11965 else
11966   echo "$as_me: failed program was:" >&5
11967 sed 's/^/| /' conftest.$ac_ext >&5
11968
11969 ac_cv_lib_dld_dld_link=no
11970 fi
11971 rm -f conftest.err conftest.$ac_objext \
11972       conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11976 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11977 if test $ac_cv_lib_dld_dld_link = yes; then
11978   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11979 fi
11980
11981
11982 fi
11983
11984
11985 fi
11986
11987
11988 fi
11989
11990
11991 fi
11992
11993
11994 fi
11995
11996     ;;
11997   esac
11998
11999   if test "x$lt_cv_dlopen" != xno; then
12000     enable_dlopen=yes
12001   else
12002     enable_dlopen=no
12003   fi
12004
12005   case $lt_cv_dlopen in
12006   dlopen)
12007     save_CPPFLAGS="$CPPFLAGS"
12008     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12009
12010     save_LDFLAGS="$LDFLAGS"
12011     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12012
12013     save_LIBS="$LIBS"
12014     LIBS="$lt_cv_dlopen_libs $LIBS"
12015
12016     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12017 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12018 if test "${lt_cv_dlopen_self+set}" = set; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021           if test "$cross_compiling" = yes; then :
12022   lt_cv_dlopen_self=cross
12023 else
12024   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12025   lt_status=$lt_dlunknown
12026   cat > conftest.$ac_ext <<_LT_EOF
12027 #line 12027 "configure"
12028 #include "confdefs.h"
12029
12030 #if HAVE_DLFCN_H
12031 #include <dlfcn.h>
12032 #endif
12033
12034 #include <stdio.h>
12035
12036 #ifdef RTLD_GLOBAL
12037 #  define LT_DLGLOBAL           RTLD_GLOBAL
12038 #else
12039 #  ifdef DL_GLOBAL
12040 #    define LT_DLGLOBAL         DL_GLOBAL
12041 #  else
12042 #    define LT_DLGLOBAL         0
12043 #  endif
12044 #endif
12045
12046 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12047    find out it does not work in some platform. */
12048 #ifndef LT_DLLAZY_OR_NOW
12049 #  ifdef RTLD_LAZY
12050 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12051 #  else
12052 #    ifdef DL_LAZY
12053 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12054 #    else
12055 #      ifdef RTLD_NOW
12056 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12057 #      else
12058 #        ifdef DL_NOW
12059 #          define LT_DLLAZY_OR_NOW      DL_NOW
12060 #        else
12061 #          define LT_DLLAZY_OR_NOW      0
12062 #        endif
12063 #      endif
12064 #    endif
12065 #  endif
12066 #endif
12067
12068 #ifdef __cplusplus
12069 extern "C" void exit (int);
12070 #endif
12071
12072 void fnord() { int i=42;}
12073 int main ()
12074 {
12075   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12076   int status = $lt_dlunknown;
12077
12078   if (self)
12079     {
12080       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12081       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12082       /* dlclose (self); */
12083     }
12084   else
12085     puts (dlerror ());
12086
12087     exit (status);
12088 }
12089 _LT_EOF
12090   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12095     (./conftest; exit; ) >&5 2>/dev/null
12096     lt_status=$?
12097     case x$lt_status in
12098       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12099       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12100       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12101     esac
12102   else :
12103     # compilation failed
12104     lt_cv_dlopen_self=no
12105   fi
12106 fi
12107 rm -fr conftest*
12108
12109
12110 fi
12111 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12112 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12113
12114     if test "x$lt_cv_dlopen_self" = xyes; then
12115       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12116       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12117 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12118 if test "${lt_cv_dlopen_self_static+set}" = set; then
12119   echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121           if test "$cross_compiling" = yes; then :
12122   lt_cv_dlopen_self_static=cross
12123 else
12124   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12125   lt_status=$lt_dlunknown
12126   cat > conftest.$ac_ext <<_LT_EOF
12127 #line 12127 "configure"
12128 #include "confdefs.h"
12129
12130 #if HAVE_DLFCN_H
12131 #include <dlfcn.h>
12132 #endif
12133
12134 #include <stdio.h>
12135
12136 #ifdef RTLD_GLOBAL
12137 #  define LT_DLGLOBAL           RTLD_GLOBAL
12138 #else
12139 #  ifdef DL_GLOBAL
12140 #    define LT_DLGLOBAL         DL_GLOBAL
12141 #  else
12142 #    define LT_DLGLOBAL         0
12143 #  endif
12144 #endif
12145
12146 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12147    find out it does not work in some platform. */
12148 #ifndef LT_DLLAZY_OR_NOW
12149 #  ifdef RTLD_LAZY
12150 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12151 #  else
12152 #    ifdef DL_LAZY
12153 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12154 #    else
12155 #      ifdef RTLD_NOW
12156 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12157 #      else
12158 #        ifdef DL_NOW
12159 #          define LT_DLLAZY_OR_NOW      DL_NOW
12160 #        else
12161 #          define LT_DLLAZY_OR_NOW      0
12162 #        endif
12163 #      endif
12164 #    endif
12165 #  endif
12166 #endif
12167
12168 #ifdef __cplusplus
12169 extern "C" void exit (int);
12170 #endif
12171
12172 void fnord() { int i=42;}
12173 int main ()
12174 {
12175   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12176   int status = $lt_dlunknown;
12177
12178   if (self)
12179     {
12180       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12181       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12182       /* dlclose (self); */
12183     }
12184   else
12185     puts (dlerror ());
12186
12187     exit (status);
12188 }
12189 _LT_EOF
12190   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12191   (eval $ac_link) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12195     (./conftest; exit; ) >&5 2>/dev/null
12196     lt_status=$?
12197     case x$lt_status in
12198       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12199       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12200       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12201     esac
12202   else :
12203     # compilation failed
12204     lt_cv_dlopen_self_static=no
12205   fi
12206 fi
12207 rm -fr conftest*
12208
12209
12210 fi
12211 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12212 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12213     fi
12214
12215     CPPFLAGS="$save_CPPFLAGS"
12216     LDFLAGS="$save_LDFLAGS"
12217     LIBS="$save_LIBS"
12218     ;;
12219   esac
12220
12221   case $lt_cv_dlopen_self in
12222   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12223   *) enable_dlopen_self=unknown ;;
12224   esac
12225
12226   case $lt_cv_dlopen_self_static in
12227   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12228   *) enable_dlopen_self_static=unknown ;;
12229   esac
12230 fi
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248 striplib=
12249 old_striplib=
12250 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12251 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12252 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12253   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12254   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12255   echo "$as_me:$LINENO: result: yes" >&5
12256 echo "${ECHO_T}yes" >&6
12257 else
12258 # FIXME - insert some real tests, host_os isn't really good enough
12259   case $host_os in
12260   darwin*)
12261     if test -n "$STRIP" ; then
12262       striplib="$STRIP -x"
12263       old_striplib="$STRIP -S"
12264       echo "$as_me:$LINENO: result: yes" >&5
12265 echo "${ECHO_T}yes" >&6
12266     else
12267       echo "$as_me:$LINENO: result: no" >&5
12268 echo "${ECHO_T}no" >&6
12269     fi
12270     ;;
12271   *)
12272     echo "$as_me:$LINENO: result: no" >&5
12273 echo "${ECHO_T}no" >&6
12274     ;;
12275   esac
12276 fi
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289   # Report which library types will actually be built
12290   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12291 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12292   echo "$as_me:$LINENO: result: $can_build_shared" >&5
12293 echo "${ECHO_T}$can_build_shared" >&6
12294
12295   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12296 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12297   test "$can_build_shared" = "no" && enable_shared=no
12298
12299   # On AIX, shared libraries and static libraries use the same namespace, and
12300   # are all built from PIC.
12301   case $host_os in
12302   aix3*)
12303     test "$enable_shared" = yes && enable_static=no
12304     if test -n "$RANLIB"; then
12305       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12306       postinstall_cmds='$RANLIB $lib'
12307     fi
12308     ;;
12309
12310   aix4* | aix5*)
12311     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12312       test "$enable_shared" = yes && enable_static=no
12313     fi
12314     ;;
12315   esac
12316   echo "$as_me:$LINENO: result: $enable_shared" >&5
12317 echo "${ECHO_T}$enable_shared" >&6
12318
12319   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12320 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12321   # Make sure either enable_shared or enable_static is yes.
12322   test "$enable_shared" = yes || enable_static=yes
12323   echo "$as_me:$LINENO: result: $enable_static" >&5
12324 echo "${ECHO_T}$enable_static" >&6
12325
12326
12327
12328
12329 fi
12330 ac_ext=c
12331 ac_cpp='$CPP $CPPFLAGS'
12332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12335
12336 CC="$lt_save_CC"
12337
12338
12339 ac_ext=cc
12340 ac_cpp='$CXXCPP $CPPFLAGS'
12341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12344
12345 archive_cmds_need_lc_CXX=no
12346 allow_undefined_flag_CXX=
12347 always_export_symbols_CXX=no
12348 archive_expsym_cmds_CXX=
12349 compiler_needs_object_CXX=no
12350 export_dynamic_flag_spec_CXX=
12351 hardcode_direct_CXX=no
12352 hardcode_direct_absolute_CXX=no
12353 hardcode_libdir_flag_spec_CXX=
12354 hardcode_libdir_flag_spec_ld_CXX=
12355 hardcode_libdir_separator_CXX=
12356 hardcode_minus_L_CXX=no
12357 hardcode_shlibpath_var_CXX=unsupported
12358 hardcode_automatic_CXX=no
12359 inherit_rpath_CXX=no
12360 module_cmds_CXX=
12361 module_expsym_cmds_CXX=
12362 link_all_deplibs_CXX=unknown
12363 old_archive_cmds_CXX=$old_archive_cmds
12364 no_undefined_flag_CXX=
12365 whole_archive_flag_spec_CXX=
12366 enable_shared_with_static_runtimes_CXX=no
12367
12368 # Source file extension for C++ test sources.
12369 ac_ext=cpp
12370
12371 # Object file extension for compiled C++ test sources.
12372 objext=o
12373 objext_CXX=$objext
12374
12375 # No sense in running all these tests if we already determined that
12376 # the CXX compiler isn't working.  Some variables (like enable_shared)
12377 # are currently assumed to apply to all compilers on this platform,
12378 # and will be corrupted by setting them based on a non-working compiler.
12379 if test "$_lt_caught_CXX_error" != yes; then
12380   # Code to be used in simple compile tests
12381   lt_simple_compile_test_code="int some_variable = 0;"
12382
12383   # Code to be used in simple link tests
12384   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12385
12386   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12387
12388
12389
12390
12391
12392
12393 # If no C compiler was specified, use CC.
12394 LTCC=${LTCC-"$CC"}
12395
12396 # If no C compiler flags were specified, use CFLAGS.
12397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12398
12399 # Allow CC to be a program name with arguments.
12400 compiler=$CC
12401
12402
12403   # save warnings/boilerplate of simple test code
12404   ac_outfile=conftest.$ac_objext
12405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12407 _lt_compiler_boilerplate=`cat conftest.err`
12408 $RM conftest*
12409
12410   ac_outfile=conftest.$ac_objext
12411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12413 _lt_linker_boilerplate=`cat conftest.err`
12414 $RM conftest*
12415
12416
12417   # Allow CC to be a program name with arguments.
12418   lt_save_CC=$CC
12419   lt_save_LD=$LD
12420   lt_save_GCC=$GCC
12421   GCC=$GXX
12422   lt_save_with_gnu_ld=$with_gnu_ld
12423   lt_save_path_LD=$lt_cv_path_LD
12424   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12425     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12426   else
12427     $as_unset lt_cv_prog_gnu_ld
12428   fi
12429   if test -n "${lt_cv_path_LDCXX+set}"; then
12430     lt_cv_path_LD=$lt_cv_path_LDCXX
12431   else
12432     $as_unset lt_cv_path_LD
12433   fi
12434   test -z "${LDCXX+set}" || LD=$LDCXX
12435   CC=${CXX-"c++"}
12436   compiler=$CC
12437   compiler_CXX=$CC
12438   for cc_temp in $compiler""; do
12439   case $cc_temp in
12440     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12441     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12442     \-*) ;;
12443     *) break;;
12444   esac
12445 done
12446 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12447
12448
12449   if test -n "$compiler"; then
12450     # We don't want -fno-exception when compiling C++ code, so set the
12451     # no_builtin_flag separately
12452     if test "$GXX" = yes; then
12453       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12454     else
12455       lt_prog_compiler_no_builtin_flag_CXX=
12456     fi
12457
12458     if test "$GXX" = yes; then
12459       # Set up default GNU C++ configuration
12460
12461
12462
12463 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12464 if test "${with_gnu_ld+set}" = set; then
12465   withval="$with_gnu_ld"
12466   test "$withval" = no || with_gnu_ld=yes
12467 else
12468   with_gnu_ld=no
12469 fi;
12470 ac_prog=ld
12471 if test "$GCC" = yes; then
12472   # Check if gcc -print-prog-name=ld gives a path.
12473   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12474 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12475   case $host in
12476   *-*-mingw*)
12477     # gcc leaves a trailing carriage return which upsets mingw
12478     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12479   *)
12480     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12481   esac
12482   case $ac_prog in
12483     # Accept absolute paths.
12484     [\\/]* | ?:[\\/]*)
12485       re_direlt='/[^/][^/]*/\.\./'
12486       # Canonicalize the pathname of ld
12487       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12488       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12489         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12490       done
12491       test -z "$LD" && LD="$ac_prog"
12492       ;;
12493   "")
12494     # If it fails, then pretend we aren't using GCC.
12495     ac_prog=ld
12496     ;;
12497   *)
12498     # If it is relative, then search for the first ld in PATH.
12499     with_gnu_ld=unknown
12500     ;;
12501   esac
12502 elif test "$with_gnu_ld" = yes; then
12503   echo "$as_me:$LINENO: checking for GNU ld" >&5
12504 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12505 else
12506   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12507 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12508 fi
12509 if test "${lt_cv_path_LD+set}" = set; then
12510   echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12512   if test -z "$LD"; then
12513   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12514   for ac_dir in $PATH; do
12515     IFS="$lt_save_ifs"
12516     test -z "$ac_dir" && ac_dir=.
12517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12518       lt_cv_path_LD="$ac_dir/$ac_prog"
12519       # Check to see if the program is GNU ld.  I'd rather use --version,
12520       # but apparently some variants of GNU ld only accept -v.
12521       # Break only if it was the GNU/non-GNU ld that we prefer.
12522       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12523       *GNU* | *'with BFD'*)
12524         test "$with_gnu_ld" != no && break
12525         ;;
12526       *)
12527         test "$with_gnu_ld" != yes && break
12528         ;;
12529       esac
12530     fi
12531   done
12532   IFS="$lt_save_ifs"
12533 else
12534   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12535 fi
12536 fi
12537
12538 LD="$lt_cv_path_LD"
12539 if test -n "$LD"; then
12540   echo "$as_me:$LINENO: result: $LD" >&5
12541 echo "${ECHO_T}$LD" >&6
12542 else
12543   echo "$as_me:$LINENO: result: no" >&5
12544 echo "${ECHO_T}no" >&6
12545 fi
12546 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12547 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12548    { (exit 1); exit 1; }; }
12549 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12550 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12551 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 else
12554   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12555 case `$LD -v 2>&1 </dev/null` in
12556 *GNU* | *'with BFD'*)
12557   lt_cv_prog_gnu_ld=yes
12558   ;;
12559 *)
12560   lt_cv_prog_gnu_ld=no
12561   ;;
12562 esac
12563 fi
12564 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12565 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12566 with_gnu_ld=$lt_cv_prog_gnu_ld
12567
12568
12569
12570
12571
12572
12573
12574       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12575       # archiving commands below assume that GNU ld is being used.
12576       if test "$with_gnu_ld" = yes; then
12577         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12578         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'
12579
12580         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12581         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12582
12583         # If archive_cmds runs LD, not CC, wlarc should be empty
12584         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12585         #     investigate it a little bit more. (MM)
12586         wlarc='${wl}'
12587
12588         # ancient GNU ld didn't support --whole-archive et. al.
12589         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12590           $GREP 'no-whole-archive' > /dev/null; then
12591           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12592         else
12593           whole_archive_flag_spec_CXX=
12594         fi
12595       else
12596         with_gnu_ld=no
12597         wlarc=
12598
12599         # A generic and very simple default shared library creation
12600         # command for GNU C++ for the case where it uses the native
12601         # linker, instead of GNU ld.  If possible, this setting should
12602         # overridden to take advantage of the native linker features on
12603         # the platform it is being used on.
12604         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12605       fi
12606
12607       # Commands to make compiler produce verbose output that lists
12608       # what "hidden" libraries, object files and flags are used when
12609       # linking a shared library.
12610       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12611
12612     else
12613       GXX=no
12614       with_gnu_ld=no
12615       wlarc=
12616     fi
12617
12618     # PORTME: fill in a description of your system's C++ link characteristics
12619     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12620 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12621     ld_shlibs_CXX=yes
12622     case $host_os in
12623       aix3*)
12624         # FIXME: insert proper C++ library support
12625         ld_shlibs_CXX=no
12626         ;;
12627       aix4* | aix5*)
12628         if test "$host_cpu" = ia64; then
12629           # On IA64, the linker does run time linking by default, so we don't
12630           # have to do anything special.
12631           aix_use_runtimelinking=no
12632           exp_sym_flag='-Bexport'
12633           no_entry_flag=""
12634         else
12635           aix_use_runtimelinking=no
12636
12637           # Test if we are trying to use run time linking or normal
12638           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12639           # need to do runtime linking.
12640           case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12641             for ld_flag in $LDFLAGS; do
12642               case $ld_flag in
12643               *-brtl*)
12644                 aix_use_runtimelinking=yes
12645                 break
12646                 ;;
12647               esac
12648             done
12649             ;;
12650           esac
12651
12652           exp_sym_flag='-bexport'
12653           no_entry_flag='-bnoentry'
12654         fi
12655
12656         # When large executables or shared objects are built, AIX ld can
12657         # have problems creating the table of contents.  If linking a library
12658         # or program results in "error TOC overflow" add -mminimal-toc to
12659         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12660         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12661
12662         archive_cmds_CXX=''
12663         hardcode_direct_CXX=yes
12664         hardcode_direct_absolute_CXX=yes
12665         hardcode_libdir_separator_CXX=':'
12666         link_all_deplibs_CXX=yes
12667         file_list_spec_CXX='${wl}-f,'
12668
12669         if test "$GXX" = yes; then
12670           case $host_os in aix4.[012]|aix4.[012].*)
12671           # We only want to do this on AIX 4.2 and lower, the check
12672           # below for broken collect2 doesn't work under 4.3+
12673           collect2name=`${CC} -print-prog-name=collect2`
12674           if test -f "$collect2name" &&
12675              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12676           then
12677             # We have reworked collect2
12678             :
12679           else
12680             # We have old collect2
12681             hardcode_direct_CXX=unsupported
12682             # It fails to find uninstalled libraries when the uninstalled
12683             # path is not listed in the libpath.  Setting hardcode_minus_L
12684             # to unsupported forces relinking
12685             hardcode_minus_L_CXX=yes
12686             hardcode_libdir_flag_spec_CXX='-L$libdir'
12687             hardcode_libdir_separator_CXX=
12688           fi
12689           esac
12690           shared_flag='-shared'
12691           if test "$aix_use_runtimelinking" = yes; then
12692             shared_flag="$shared_flag "'${wl}-G'
12693           fi
12694         else
12695           # not using gcc
12696           if test "$host_cpu" = ia64; then
12697           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12698           # chokes on -Wl,-G. The following line is correct:
12699           shared_flag='-G'
12700           else
12701             if test "$aix_use_runtimelinking" = yes; then
12702               shared_flag='${wl}-G'
12703             else
12704               shared_flag='${wl}-bM:SRE'
12705             fi
12706           fi
12707         fi
12708
12709         # It seems that -bexpall does not export symbols beginning with
12710         # underscore (_), so it is better to generate a list of symbols to
12711         # export.
12712         always_export_symbols_CXX=yes
12713         if test "$aix_use_runtimelinking" = yes; then
12714           # Warning - without using the other runtime loading flags (-brtl),
12715           # -berok will link without error, but may produce a broken library.
12716           allow_undefined_flag_CXX='-berok'
12717           # Determine the default libpath from the value encoded in an empty
12718           # executable.
12719           if test x$gcc_no_link = xyes; then
12720   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12721 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12722    { (exit 1); exit 1; }; }
12723 fi
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h.  */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h.  */
12730
12731 int
12732 main ()
12733 {
12734
12735   ;
12736   return 0;
12737 }
12738 _ACEOF
12739 rm -f conftest.$ac_objext conftest$ac_exeext
12740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12741   (eval $ac_link) 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } &&
12748          { ac_try='test -z "$ac_cxx_werror_flag"
12749                          || test ! -s conftest.err'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; } &&
12755          { ac_try='test -s conftest$ac_exeext'
12756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757   (eval $ac_try) 2>&5
12758   ac_status=$?
12759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760   (exit $ac_status); }; }; then
12761
12762 lt_aix_libpath_sed='
12763     /Import File Strings/,/^$/ {
12764         /^0/ {
12765             s/^0  *\(.*\)$/\1/
12766             p
12767         }
12768     }'
12769 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12770 # Check for a 64-bit object if we didn't find anything.
12771 if test -z "$aix_libpath"; then
12772   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12773 fi
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 fi
12779 rm -f conftest.err conftest.$ac_objext \
12780       conftest$ac_exeext conftest.$ac_ext
12781 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12782
12783           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12784
12785           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"
12786         else
12787           if test "$host_cpu" = ia64; then
12788             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12789             allow_undefined_flag_CXX="-z nodefs"
12790             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"
12791           else
12792             # Determine the default libpath from the value encoded in an
12793             # empty executable.
12794             if test x$gcc_no_link = xyes; then
12795   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12796 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12797    { (exit 1); exit 1; }; }
12798 fi
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h.  */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h.  */
12805
12806 int
12807 main ()
12808 {
12809
12810   ;
12811   return 0;
12812 }
12813 _ACEOF
12814 rm -f conftest.$ac_objext conftest$ac_exeext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816   (eval $ac_link) 2>conftest.er1
12817   ac_status=$?
12818   grep -v '^ *+' conftest.er1 >conftest.err
12819   rm -f conftest.er1
12820   cat conftest.err >&5
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); } &&
12823          { ac_try='test -z "$ac_cxx_werror_flag"
12824                          || test ! -s conftest.err'
12825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826   (eval $ac_try) 2>&5
12827   ac_status=$?
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); }; } &&
12830          { ac_try='test -s conftest$ac_exeext'
12831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832   (eval $ac_try) 2>&5
12833   ac_status=$?
12834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835   (exit $ac_status); }; }; then
12836
12837 lt_aix_libpath_sed='
12838     /Import File Strings/,/^$/ {
12839         /^0/ {
12840             s/^0  *\(.*\)$/\1/
12841             p
12842         }
12843     }'
12844 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12845 # Check for a 64-bit object if we didn't find anything.
12846 if test -z "$aix_libpath"; then
12847   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12848 fi
12849 else
12850   echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12852
12853 fi
12854 rm -f conftest.err conftest.$ac_objext \
12855       conftest$ac_exeext conftest.$ac_ext
12856 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12857
12858             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12859             # Warning - without using the other run time loading flags,
12860             # -berok will link without error, but may produce a broken library.
12861             no_undefined_flag_CXX=' ${wl}-bernotok'
12862             allow_undefined_flag_CXX=' ${wl}-berok'
12863             # Exported symbols can be pulled into shared objects from archives
12864             whole_archive_flag_spec_CXX='$convenience'
12865             archive_cmds_need_lc_CXX=yes
12866             # This is similar to how AIX traditionally builds its shared
12867             # libraries.
12868             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'
12869           fi
12870         fi
12871         ;;
12872
12873       beos*)
12874         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12875           allow_undefined_flag_CXX=unsupported
12876           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12877           # support --undefined.  This deserves some investigation.  FIXME
12878           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12879         else
12880           ld_shlibs_CXX=no
12881         fi
12882         ;;
12883
12884       chorus*)
12885         case $cc_basename in
12886           *)
12887           # FIXME: insert proper C++ library support
12888           ld_shlibs_CXX=no
12889           ;;
12890         esac
12891         ;;
12892
12893       cygwin* | mingw* | pw32*)
12894         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12895         # as there is no search path for DLLs.
12896         hardcode_libdir_flag_spec_CXX='-L$libdir'
12897         allow_undefined_flag_CXX=unsupported
12898         always_export_symbols_CXX=no
12899         enable_shared_with_static_runtimes_CXX=yes
12900
12901         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12902           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'
12903           # If the export-symbols file already is a .def file (1st line
12904           # is EXPORTS), use it as is; otherwise, prepend...
12905           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12906             cp $export_symbols $output_objdir/$soname.def;
12907           else
12908             echo EXPORTS > $output_objdir/$soname.def;
12909             cat $export_symbols >> $output_objdir/$soname.def;
12910           fi~
12911           $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'
12912         else
12913           ld_shlibs_CXX=no
12914         fi
12915         ;;
12916       darwin* | rhapsody*)
12917         case $host_os in
12918           rhapsody* | darwin1.[012])
12919             allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12920             ;;
12921           *) # Darwin 1.3 on
12922             case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12923               10.[012])
12924                 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12925                 ;;
12926               10.*)
12927                 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12928                 ;;
12929             esac
12930             ;;
12931         esac
12932         archive_cmds_need_lc_CXX=no
12933         hardcode_direct_CXX=no
12934         hardcode_automatic_CXX=yes
12935         hardcode_shlibpath_var_CXX=unsupported
12936         whole_archive_flag_spec_CXX=''
12937         link_all_deplibs_CXX=yes
12938
12939         if test "$GXX" = yes ; then
12940           if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   lt_cv_apple_cc_single_mod=no
12944           if test -z "${LT_MULTI_MODULE}"; then
12945             # By default we will add the -single_module flag. You can override
12946             # by either setting the environment variable LT_MULTI_MODULE
12947             # non-empty at configure time, or by adding -multi-module to the
12948             # link flags.
12949             echo "int foo(void){return 1;}" > conftest.c
12950             $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12951                 -dynamiclib ${wl}-single_module conftest.c
12952             if test -f libconftest.dylib; then
12953                 lt_cv_apple_cc_single_mod=yes
12954                 rm libconftest.dylib
12955             fi
12956             rm conftest.$ac_ext
12957           fi
12958 fi
12959
12960           output_verbose_link_cmd=echo
12961           if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
12962            archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12963             archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12964           else
12965             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'
12966             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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12967           fi
12968           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12969           module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12970         else
12971           case $cc_basename in
12972             xlc*)
12973               output_verbose_link_cmd=echo
12974               archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
12975               module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12976               # Don't fix this by using the ld -exported_symbols_list flag,
12977               # it doesn't exist in older darwin lds
12978               archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12979               module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12980               ;;
12981             *)
12982               ld_shlibs_CXX=no
12983               ;;
12984           esac
12985         fi
12986         ;;
12987
12988       dgux*)
12989         case $cc_basename in
12990           ec++*)
12991             # FIXME: insert proper C++ library support
12992             ld_shlibs_CXX=no
12993             ;;
12994           ghcx*)
12995             # Green Hills C++ Compiler
12996             # FIXME: insert proper C++ library support
12997             ld_shlibs_CXX=no
12998             ;;
12999           *)
13000             # FIXME: insert proper C++ library support
13001             ld_shlibs_CXX=no
13002             ;;
13003         esac
13004         ;;
13005
13006       freebsd[12]*)
13007         # C++ shared libraries reported to be fairly broken before
13008         # switch to ELF
13009         ld_shlibs_CXX=no
13010         ;;
13011
13012       freebsd-elf*)
13013         archive_cmds_need_lc_CXX=no
13014         ;;
13015
13016       freebsd* | dragonfly*)
13017         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13018         # conventions
13019         ld_shlibs_CXX=yes
13020         ;;
13021
13022       gnu*)
13023         ;;
13024
13025       hpux9*)
13026         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13027         hardcode_libdir_separator_CXX=:
13028         export_dynamic_flag_spec_CXX='${wl}-E'
13029         hardcode_direct_CXX=yes
13030         hardcode_minus_L_CXX=yes # Not in the search PATH,
13031                                              # but as the default
13032                                              # location of the library.
13033
13034         case $cc_basename in
13035           CC*)
13036             # FIXME: insert proper C++ library support
13037             ld_shlibs_CXX=no
13038             ;;
13039           aCC*)
13040             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'
13041             # Commands to make compiler produce verbose output that lists
13042             # what "hidden" libraries, object files and flags are used when
13043             # linking a shared library.
13044             #
13045             # There doesn't appear to be a way to prevent this compiler from
13046             # explicitly linking system object files so we need to strip them
13047             # from the output so that they don't get included in the library
13048             # dependencies.
13049             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'
13050             ;;
13051           *)
13052             if test "$GXX" = yes; then
13053               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'
13054             else
13055               # FIXME: insert proper C++ library support
13056               ld_shlibs_CXX=no
13057             fi
13058             ;;
13059         esac
13060         ;;
13061
13062       hpux10*|hpux11*)
13063         if test $with_gnu_ld = no; then
13064           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13065           hardcode_libdir_separator_CXX=:
13066
13067           case $host_cpu in
13068             hppa*64*|ia64*)
13069               ;;
13070             *)
13071               export_dynamic_flag_spec_CXX='${wl}-E'
13072               ;;
13073           esac
13074         fi
13075         case $host_cpu in
13076           hppa*64*|ia64*)
13077             hardcode_direct_CXX=no
13078             hardcode_shlibpath_var_CXX=no
13079             ;;
13080           *)
13081             hardcode_direct_CXX=yes
13082             hardcode_direct_absolute_CXX=yes
13083             hardcode_minus_L_CXX=yes # Not in the search PATH,
13084                                                  # but as the default
13085                                                  # location of the library.
13086             ;;
13087         esac
13088
13089         case $cc_basename in
13090           CC*)
13091             # FIXME: insert proper C++ library support
13092             ld_shlibs_CXX=no
13093             ;;
13094           aCC*)
13095             case $host_cpu in
13096               hppa*64*)
13097                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13098                 ;;
13099               ia64*)
13100                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13101                 ;;
13102               *)
13103                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13104                 ;;
13105             esac
13106             # Commands to make compiler produce verbose output that lists
13107             # what "hidden" libraries, object files and flags are used when
13108             # linking a shared library.
13109             #
13110             # There doesn't appear to be a way to prevent this compiler from
13111             # explicitly linking system object files so we need to strip them
13112             # from the output so that they don't get included in the library
13113             # dependencies.
13114             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'
13115             ;;
13116           *)
13117             if test "$GXX" = yes; then
13118               if test $with_gnu_ld = no; then
13119                 case $host_cpu in
13120                   hppa*64*)
13121                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13122                     ;;
13123                   ia64*)
13124                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13125                     ;;
13126                   *)
13127                     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'
13128                     ;;
13129                 esac
13130               fi
13131             else
13132               # FIXME: insert proper C++ library support
13133               ld_shlibs_CXX=no
13134             fi
13135             ;;
13136         esac
13137         ;;
13138
13139       interix[3-9]*)
13140         hardcode_direct_CXX=no
13141         hardcode_shlibpath_var_CXX=no
13142         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13143         export_dynamic_flag_spec_CXX='${wl}-E'
13144         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13145         # Instead, shared libraries are loaded at an image base (0x10000000 by
13146         # default) and relocated if they conflict, which is a slow very memory
13147         # consuming and fragmenting process.  To avoid this, we pick a random,
13148         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13149         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13150         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'
13151         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'
13152         ;;
13153       irix5* | irix6*)
13154         case $cc_basename in
13155           CC*)
13156             # SGI C++
13157             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'
13158
13159             # Archives containing C++ object files must be created using
13160             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13161             # necessary to make sure instantiated templates are included
13162             # in the archive.
13163             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13164             ;;
13165           *)
13166             if test "$GXX" = yes; then
13167               if test "$with_gnu_ld" = no; then
13168                 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'
13169               else
13170                 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'
13171               fi
13172             fi
13173             link_all_deplibs_CXX=yes
13174             ;;
13175         esac
13176         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13177         hardcode_libdir_separator_CXX=:
13178         inherit_rpath_CXX=yes
13179         ;;
13180
13181       linux* | k*bsd*-gnu)
13182         case $cc_basename in
13183           KCC*)
13184             # Kuck and Associates, Inc. (KAI) C++ Compiler
13185
13186             # KCC will only create a shared library if the output file
13187             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13188             # to its proper name (with version) after linking.
13189             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'
13190             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'
13191             # Commands to make compiler produce verbose output that lists
13192             # what "hidden" libraries, object files and flags are used when
13193             # linking a shared library.
13194             #
13195             # There doesn't appear to be a way to prevent this compiler from
13196             # explicitly linking system object files so we need to strip them
13197             # from the output so that they don't get included in the library
13198             # dependencies.
13199             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'
13200
13201             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13202             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13203
13204             # Archives containing C++ object files must be created using
13205             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13206             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13207             ;;
13208           icpc* | ecpc* )
13209             # Intel C++
13210             with_gnu_ld=yes
13211             # version 8.0 and above of icpc choke on multiply defined symbols
13212             # if we add $predep_objects and $postdep_objects, however 7.1 and
13213             # earlier do not add the objects themselves.
13214             case `$CC -V 2>&1` in
13215               *"Version 7."*)
13216                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13217                 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'
13218                 ;;
13219               *)  # Version 8.0 or newer
13220                 tmp_idyn=
13221                 case $host_cpu in
13222                   ia64*) tmp_idyn=' -i_dynamic';;
13223                 esac
13224                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225                 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'
13226                 ;;
13227             esac
13228             archive_cmds_need_lc_CXX=no
13229             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13230             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13231             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13232             ;;
13233           pgCC*)
13234             # Portland Group C++ compiler
13235             case `$CC -V` in
13236             *pgCC\ [1-5]*)
13237               prelink_cmds_CXX='tpldir=Template.dir~
13238                 rm -rf $tpldir~
13239                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13240                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13241               old_archive_cmds_CXX='tpldir=Template.dir~
13242                 rm -rf $tpldir~
13243                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13244                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13245                 $RANLIB $oldlib'
13246               archive_cmds_CXX='tpldir=Template.dir~
13247                 rm -rf $tpldir~
13248                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13249                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13250               archive_expsym_cmds_CXX='tpldir=Template.dir~
13251                 rm -rf $tpldir~
13252                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13253                 $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'
13254               ;;
13255             *) # Version 6 will use weak symbols
13256               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13257               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'
13258               ;;
13259             esac
13260
13261             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13262             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13263             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'
13264             ;;
13265           cxx*)
13266             # Compaq C++
13267             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268             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'
13269
13270             runpath_var=LD_RUN_PATH
13271             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13272             hardcode_libdir_separator_CXX=:
13273
13274             # Commands to make compiler produce verbose output that lists
13275             # what "hidden" libraries, object files and flags are used when
13276             # linking a shared library.
13277             #
13278             # There doesn't appear to be a way to prevent this compiler from
13279             # explicitly linking system object files so we need to strip them
13280             # from the output so that they don't get included in the library
13281             # dependencies.
13282             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'
13283             ;;
13284           *)
13285             case `$CC -V 2>&1 | sed 5q` in
13286             *Sun\ C*)
13287               # Sun C++ 5.9
13288               no_undefined_flag_CXX=' -zdefs'
13289               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13290               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'
13291               hardcode_libdir_flag_spec_CXX='-R$libdir'
13292               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'
13293               compiler_needs_object_CXX=yes
13294
13295               # Not sure whether something based on
13296               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13297               # would be better.
13298               output_verbose_link_cmd='echo'
13299
13300               # Archives containing C++ object files must be created using
13301               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13302               # necessary to make sure instantiated templates are included
13303               # in the archive.
13304               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13305               ;;
13306             esac
13307             ;;
13308         esac
13309         ;;
13310
13311       lynxos*)
13312         # FIXME: insert proper C++ library support
13313         ld_shlibs_CXX=no
13314         ;;
13315
13316       m88k*)
13317         # FIXME: insert proper C++ library support
13318         ld_shlibs_CXX=no
13319         ;;
13320
13321       mvs*)
13322         case $cc_basename in
13323           cxx*)
13324             # FIXME: insert proper C++ library support
13325             ld_shlibs_CXX=no
13326             ;;
13327           *)
13328             # FIXME: insert proper C++ library support
13329             ld_shlibs_CXX=no
13330             ;;
13331         esac
13332         ;;
13333
13334       netbsd*)
13335         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13336           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13337           wlarc=
13338           hardcode_libdir_flag_spec_CXX='-R$libdir'
13339           hardcode_direct_CXX=yes
13340           hardcode_shlibpath_var_CXX=no
13341         fi
13342         # Workaround some broken pre-1.5 toolchains
13343         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13344         ;;
13345
13346       *nto* | *qnx*)
13347         ld_shlibs_CXX=yes
13348         ;;
13349
13350       openbsd2*)
13351         # C++ shared libraries are fairly broken
13352         ld_shlibs_CXX=no
13353         ;;
13354
13355       openbsd*)
13356         hardcode_direct_CXX=yes
13357         hardcode_shlibpath_var_CXX=no
13358         hardcode_direct_absolute_CXX=yes
13359         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13360         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13362           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13363           export_dynamic_flag_spec_CXX='${wl}-E'
13364           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13365         fi
13366         output_verbose_link_cmd=echo
13367         ;;
13368
13369       osf3* | osf4* | osf5*)
13370         case $cc_basename in
13371           KCC*)
13372             # Kuck and Associates, Inc. (KAI) C++ Compiler
13373
13374             # KCC will only create a shared library if the output file
13375             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13376             # to its proper name (with version) after linking.
13377             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'
13378
13379             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13380             hardcode_libdir_separator_CXX=:
13381
13382             # Archives containing C++ object files must be created using
13383             # the KAI C++ compiler.
13384             case $host in
13385               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13386               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13387             esac
13388             ;;
13389           RCC*)
13390             # Rational C++ 2.4.1
13391             # FIXME: insert proper C++ library support
13392             ld_shlibs_CXX=no
13393             ;;
13394           cxx*)
13395             case $host in
13396               osf3*)
13397                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13398                 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'
13399                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13400                 ;;
13401               *)
13402                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13403                 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'
13404                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13405                   echo "-hidden">> $lib.exp~
13406                   $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~
13407                   $RM $lib.exp'
13408                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13409                 ;;
13410             esac
13411
13412             hardcode_libdir_separator_CXX=:
13413
13414             # Commands to make compiler produce verbose output that lists
13415             # what "hidden" libraries, object files and flags are used when
13416             # linking a shared library.
13417             #
13418             # There doesn't appear to be a way to prevent this compiler from
13419             # explicitly linking system object files so we need to strip them
13420             # from the output so that they don't get included in the library
13421             # dependencies.
13422             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'
13423             ;;
13424           *)
13425             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13426               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13427               case $host in
13428                 osf3*)
13429                   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'
13430                   ;;
13431                 *)
13432                   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'
13433                   ;;
13434               esac
13435
13436               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13437               hardcode_libdir_separator_CXX=:
13438
13439               # Commands to make compiler produce verbose output that lists
13440               # what "hidden" libraries, object files and flags are used when
13441               # linking a shared library.
13442               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13443
13444             else
13445               # FIXME: insert proper C++ library support
13446               ld_shlibs_CXX=no
13447             fi
13448             ;;
13449         esac
13450         ;;
13451
13452       psos*)
13453         # FIXME: insert proper C++ library support
13454         ld_shlibs_CXX=no
13455         ;;
13456
13457       sunos4*)
13458         case $cc_basename in
13459           CC*)
13460             # Sun C++ 4.x
13461             # FIXME: insert proper C++ library support
13462             ld_shlibs_CXX=no
13463             ;;
13464           lcc*)
13465             # Lucid
13466             # FIXME: insert proper C++ library support
13467             ld_shlibs_CXX=no
13468             ;;
13469           *)
13470             # FIXME: insert proper C++ library support
13471             ld_shlibs_CXX=no
13472             ;;
13473         esac
13474         ;;
13475
13476       solaris*)
13477         case $cc_basename in
13478           CC*)
13479             # Sun C++ 4.2, 5.x and Centerline C++
13480             archive_cmds_need_lc_CXX=yes
13481             no_undefined_flag_CXX=' -zdefs'
13482             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13483             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13484               $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'
13485
13486             hardcode_libdir_flag_spec_CXX='-R$libdir'
13487             hardcode_shlibpath_var_CXX=no
13488             case $host_os in
13489               solaris2.[0-5] | solaris2.[0-5].*) ;;
13490               *)
13491                 # The compiler driver will combine and reorder linker options,
13492                 # but understands `-z linker_flag'.
13493                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13494                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13495                 ;;
13496             esac
13497             link_all_deplibs_CXX=yes
13498
13499             output_verbose_link_cmd='echo'
13500
13501             # Archives containing C++ object files must be created using
13502             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13503             # necessary to make sure instantiated templates are included
13504             # in the archive.
13505             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13506             ;;
13507           gcx*)
13508             # Green Hills C++ Compiler
13509             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13510
13511             # The C++ compiler must be used to create the archive.
13512             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13513             ;;
13514           *)
13515             # GNU C++ compiler with Solaris linker
13516             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13517               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13518               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13519                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13520                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13522
13523                 # Commands to make compiler produce verbose output that lists
13524                 # what "hidden" libraries, object files and flags are used when
13525                 # linking a shared library.
13526                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13527               else
13528                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13529                 # platform.
13530                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13531                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13532                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13533
13534                 # Commands to make compiler produce verbose output that lists
13535                 # what "hidden" libraries, object files and flags are used when
13536                 # linking a shared library.
13537                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13538               fi
13539
13540               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13541               case $host_os in
13542                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13543                 *)
13544                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13545                   ;;
13546               esac
13547             fi
13548             ;;
13549         esac
13550         ;;
13551
13552     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13553       no_undefined_flag_CXX='${wl}-z,text'
13554       archive_cmds_need_lc_CXX=no
13555       hardcode_shlibpath_var_CXX=no
13556       runpath_var='LD_RUN_PATH'
13557
13558       case $cc_basename in
13559         CC*)
13560           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13562           ;;
13563         *)
13564           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13565           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566           ;;
13567       esac
13568       ;;
13569
13570       sysv5* | sco3.2v5* | sco5v6*)
13571         # Note: We can NOT use -z defs as we might desire, because we do not
13572         # link with -lc, and that would cause any symbols used from libc to
13573         # always be unresolved, which means just about no library would
13574         # ever link correctly.  If we're not using GNU ld we use -z text
13575         # though, which does catch some bad symbols but isn't as heavy-handed
13576         # as -z defs.
13577         no_undefined_flag_CXX='${wl}-z,text'
13578         allow_undefined_flag_CXX='${wl}-z,nodefs'
13579         archive_cmds_need_lc_CXX=no
13580         hardcode_shlibpath_var_CXX=no
13581         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13582         hardcode_libdir_separator_CXX=':'
13583         link_all_deplibs_CXX=yes
13584         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13585         runpath_var='LD_RUN_PATH'
13586
13587         case $cc_basename in
13588           CC*)
13589             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13590             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13591             ;;
13592           *)
13593             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13594             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13595             ;;
13596         esac
13597       ;;
13598
13599       tandem*)
13600         case $cc_basename in
13601           NCC*)
13602             # NonStop-UX NCC 3.20
13603             # FIXME: insert proper C++ library support
13604             ld_shlibs_CXX=no
13605             ;;
13606           *)
13607             # FIXME: insert proper C++ library support
13608             ld_shlibs_CXX=no
13609             ;;
13610         esac
13611         ;;
13612
13613       vxworks*)
13614         # FIXME: insert proper C++ library support
13615         ld_shlibs_CXX=no
13616         ;;
13617
13618       *)
13619         # FIXME: insert proper C++ library support
13620         ld_shlibs_CXX=no
13621         ;;
13622     esac
13623
13624     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13625 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13626     test "$ld_shlibs_CXX" = no && can_build_shared=no
13627
13628     GCC_CXX="$GXX"
13629     LD_CXX="$LD"
13630
13631     ## CAVEAT EMPTOR:
13632     ## There is no encapsulation within the following macros, do not change
13633     ## the running order or otherwise move them around unless you know exactly
13634     ## what you are doing...
13635     # Dependencies to place before and after the object being linked:
13636 predep_objects_CXX=
13637 postdep_objects_CXX=
13638 predeps_CXX=
13639 postdeps_CXX=
13640 compiler_lib_search_path_CXX=
13641
13642 cat > conftest.$ac_ext <<_LT_EOF
13643 class Foo
13644 {
13645 public:
13646   Foo (void) { a = 0; }
13647 private:
13648   int a;
13649 };
13650 _LT_EOF
13651
13652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13653   (eval $ac_compile) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; then
13657   # Parse the compiler output and extract the necessary
13658   # objects, libraries and library flags.
13659
13660   # Sentinel used to keep track of whether or not we are before
13661   # the conftest object file.
13662   pre_test_object_deps_done=no
13663
13664   # The `*' in the case matches for architectures that use `case' in
13665   # $output_verbose_cmd can trigger glob expansion during the loop
13666   # eval without this substitution.
13667   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13668
13669   for p in `eval $output_verbose_link_cmd`; do
13670     case $p in
13671
13672     -L* | -R* | -l*)
13673        # Some compilers place space between "-{L,R}" and the path.
13674        # Remove the space.
13675        if test $p = "-L" ||
13676           test $p = "-R"; then
13677          prev=$p
13678          continue
13679        else
13680          prev=
13681        fi
13682
13683        if test "$pre_test_object_deps_done" = no; then
13684          case $p in
13685          -L* | -R*)
13686            # Internal compiler library paths should come after those
13687            # provided the user.  The postdeps already come after the
13688            # user supplied libs so there is no need to process them.
13689            if test -z "$compiler_lib_search_path_CXX"; then
13690              compiler_lib_search_path_CXX="${prev}${p}"
13691            else
13692              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13693            fi
13694            ;;
13695          # The "-l" case would never come before the object being
13696          # linked, so don't bother handling this case.
13697          esac
13698        else
13699          if test -z "$postdeps_CXX"; then
13700            postdeps_CXX="${prev}${p}"
13701          else
13702            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13703          fi
13704        fi
13705        ;;
13706
13707     *.$objext)
13708        # This assumes that the test object file only shows up
13709        # once in the compiler output.
13710        if test "$p" = "conftest.$objext"; then
13711          pre_test_object_deps_done=yes
13712          continue
13713        fi
13714
13715        if test "$pre_test_object_deps_done" = no; then
13716          if test -z "$predep_objects_CXX"; then
13717            predep_objects_CXX="$p"
13718          else
13719            predep_objects_CXX="$predep_objects_CXX $p"
13720          fi
13721        else
13722          if test -z "$postdep_objects_CXX"; then
13723            postdep_objects_CXX="$p"
13724          else
13725            postdep_objects_CXX="$postdep_objects_CXX $p"
13726          fi
13727        fi
13728        ;;
13729
13730     *) ;; # Ignore the rest.
13731
13732     esac
13733   done
13734
13735   # Clean up.
13736   rm -f a.out a.exe
13737 else
13738   echo "libtool.m4: error: problem compiling CXX test program"
13739 fi
13740
13741 $RM -f confest.$objext
13742
13743 # PORTME: override above test on systems where it is broken
13744 case $host_os in
13745 interix[3-9]*)
13746   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13747   # hack all around it, let's just trust "g++" to DTRT.
13748   predep_objects_CXX=
13749   postdep_objects_CXX=
13750   postdeps_CXX=
13751   ;;
13752
13753 linux*)
13754   case `$CC -V 2>&1 | sed 5q` in
13755   *Sun\ C*)
13756     # Sun C++ 5.9
13757
13758     # The more standards-conforming stlport4 library is
13759     # incompatible with the Cstd library. Avoid specifying
13760     # it if it's in CXXFLAGS. Ignore libCrun as
13761     # -library=stlport4 depends on it.
13762     case " $CXX $CXXFLAGS " in
13763     *" -library=stlport4 "*)
13764       solaris_use_stlport4=yes
13765       ;;
13766     esac
13767
13768     if test "$solaris_use_stlport4" != yes; then
13769       postdeps_CXX='-library=Cstd -library=Crun'
13770     fi
13771     ;;
13772   esac
13773   ;;
13774
13775 solaris*)
13776   case $cc_basename in
13777   CC*)
13778     # The more standards-conforming stlport4 library is
13779     # incompatible with the Cstd library. Avoid specifying
13780     # it if it's in CXXFLAGS. Ignore libCrun as
13781     # -library=stlport4 depends on it.
13782     case " $CXX $CXXFLAGS " in
13783     *" -library=stlport4 "*)
13784       solaris_use_stlport4=yes
13785       ;;
13786     esac
13787
13788     # Adding this requires a known-good setup of shared libraries for
13789     # Sun compiler versions before 5.6, else PIC objects from an old
13790     # archive will be linked into the output, leading to subtle bugs.
13791     if test "$solaris_use_stlport4" != yes; then
13792       postdeps_CXX='-library=Cstd -library=Crun'
13793     fi
13794     ;;
13795   esac
13796   ;;
13797 esac
13798
13799
13800 case " $postdeps_CXX " in
13801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13802 esac
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829     lt_prog_compiler_wl_CXX=
13830 lt_prog_compiler_pic_CXX=
13831 lt_prog_compiler_static_CXX=
13832
13833 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13834 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13835
13836   # C++ specific cases for pic, static, wl, etc.
13837   if test "$GXX" = yes; then
13838     lt_prog_compiler_wl_CXX='-Wl,'
13839     lt_prog_compiler_static_CXX='-static'
13840
13841     case $host_os in
13842     aix*)
13843       # All AIX code is PIC.
13844       if test "$host_cpu" = ia64; then
13845         # AIX 5 now supports IA64 processor
13846         lt_prog_compiler_static_CXX='-Bstatic'
13847       fi
13848       ;;
13849     amigaos*)
13850       if test "$host_cpu" = m68k; then
13851         # FIXME: we need at least 68020 code to build shared libraries, but
13852         # adding the `-m68020' flag to GCC prevents building anything better,
13853         # like `-m68040'.
13854         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13855       fi
13856       ;;
13857     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13858       # PIC is the default for these OSes.
13859       ;;
13860     mingw* | cygwin* | os2* | pw32*)
13861       # This hack is so that the source file can tell whether it is being
13862       # built for inclusion in a dll (and should export symbols for example).
13863       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13864       # (--disable-auto-import) libraries
13865       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13866       ;;
13867     darwin* | rhapsody*)
13868       # PIC is the default on this platform
13869       # Common symbols not allowed in MH_DYLIB files
13870       lt_prog_compiler_pic_CXX='-fno-common'
13871       ;;
13872     *djgpp*)
13873       # DJGPP does not support shared libraries at all
13874       lt_prog_compiler_pic_CXX=
13875       ;;
13876     interix[3-9]*)
13877       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13878       # Instead, we relocate shared libraries at runtime.
13879       ;;
13880     sysv4*MP*)
13881       if test -d /usr/nec; then
13882         lt_prog_compiler_pic_CXX=-Kconform_pic
13883       fi
13884       ;;
13885     hpux*)
13886       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13887       # not for PA HP-UX.
13888       case $host_cpu in
13889       hppa*64*|ia64*)
13890         ;;
13891       *)
13892         lt_prog_compiler_pic_CXX='-fPIC'
13893         ;;
13894       esac
13895       ;;
13896     *qnx* | *nto*)
13897       # QNX uses GNU C++, but need to define -shared option too, otherwise
13898       # it will coredump.
13899       lt_prog_compiler_pic_CXX='-fPIC -shared'
13900       ;;
13901     *)
13902       lt_prog_compiler_pic_CXX='-fPIC'
13903       ;;
13904     esac
13905   else
13906     case $host_os in
13907       aix4* | aix5*)
13908         # All AIX code is PIC.
13909         if test "$host_cpu" = ia64; then
13910           # AIX 5 now supports IA64 processor
13911           lt_prog_compiler_static_CXX='-Bstatic'
13912         else
13913           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13914         fi
13915         ;;
13916       chorus*)
13917         case $cc_basename in
13918         cxch68*)
13919           # Green Hills C++ Compiler
13920           # _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"
13921           ;;
13922         esac
13923         ;;
13924       darwin*)
13925         # PIC is the default on this platform
13926         # Common symbols not allowed in MH_DYLIB files
13927         case $cc_basename in
13928           xlc*)
13929           lt_prog_compiler_pic_CXX='-qnocommon'
13930           lt_prog_compiler_wl_CXX='-Wl,'
13931           ;;
13932         esac
13933         ;;
13934       dgux*)
13935         case $cc_basename in
13936           ec++*)
13937             lt_prog_compiler_pic_CXX='-KPIC'
13938             ;;
13939           ghcx*)
13940             # Green Hills C++ Compiler
13941             lt_prog_compiler_pic_CXX='-pic'
13942             ;;
13943           *)
13944             ;;
13945         esac
13946         ;;
13947       freebsd* | dragonfly*)
13948         # FreeBSD uses GNU C++
13949         ;;
13950       hpux9* | hpux10* | hpux11*)
13951         case $cc_basename in
13952           CC*)
13953             lt_prog_compiler_wl_CXX='-Wl,'
13954             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13955             if test "$host_cpu" != ia64; then
13956               lt_prog_compiler_pic_CXX='+Z'
13957             fi
13958             ;;
13959           aCC*)
13960             lt_prog_compiler_wl_CXX='-Wl,'
13961             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13962             case $host_cpu in
13963             hppa*64*|ia64*)
13964               # +Z the default
13965               ;;
13966             *)
13967               lt_prog_compiler_pic_CXX='+Z'
13968               ;;
13969             esac
13970             ;;
13971           *)
13972             ;;
13973         esac
13974         ;;
13975       interix*)
13976         # This is c89, which is MS Visual C++ (no shared libs)
13977         # Anyone wants to do a port?
13978         ;;
13979       irix5* | irix6* | nonstopux*)
13980         case $cc_basename in
13981           CC*)
13982             lt_prog_compiler_wl_CXX='-Wl,'
13983             lt_prog_compiler_static_CXX='-non_shared'
13984             # CC pic flag -KPIC is the default.
13985             ;;
13986           *)
13987             ;;
13988         esac
13989         ;;
13990       linux* | k*bsd*-gnu)
13991         case $cc_basename in
13992           KCC*)
13993             # KAI C++ Compiler
13994             lt_prog_compiler_wl_CXX='--backend -Wl,'
13995             lt_prog_compiler_pic_CXX='-fPIC'
13996             ;;
13997           icpc* | ecpc* )
13998             # Intel C++
13999             lt_prog_compiler_wl_CXX='-Wl,'
14000             lt_prog_compiler_pic_CXX='-KPIC'
14001             lt_prog_compiler_static_CXX='-static'
14002             ;;
14003           pgCC*)
14004             # Portland Group C++ compiler
14005             lt_prog_compiler_wl_CXX='-Wl,'
14006             lt_prog_compiler_pic_CXX='-fpic'
14007             lt_prog_compiler_static_CXX='-Bstatic'
14008             ;;
14009           cxx*)
14010             # Compaq C++
14011             # Make sure the PIC flag is empty.  It appears that all Alpha
14012             # Linux and Compaq Tru64 Unix objects are PIC.
14013             lt_prog_compiler_pic_CXX=
14014             lt_prog_compiler_static_CXX='-non_shared'
14015             ;;
14016           *)
14017             case `$CC -V 2>&1 | sed 5q` in
14018             *Sun\ C*)
14019               # Sun C++ 5.9
14020               lt_prog_compiler_pic_CXX='-KPIC'
14021               lt_prog_compiler_static_CXX='-Bstatic'
14022               lt_prog_compiler_wl_CXX='-Qoption ld '
14023               ;;
14024             esac
14025             ;;
14026         esac
14027         ;;
14028       lynxos*)
14029         ;;
14030       m88k*)
14031         ;;
14032       mvs*)
14033         case $cc_basename in
14034           cxx*)
14035             lt_prog_compiler_pic_CXX='-W c,exportall'
14036             ;;
14037           *)
14038             ;;
14039         esac
14040         ;;
14041       netbsd*)
14042         ;;
14043       *qnx* | *nto*)
14044         # QNX uses GNU C++, but need to define -shared option too, otherwise
14045         # it will coredump.
14046         lt_prog_compiler_pic_CXX='-fPIC -shared'
14047         ;;
14048       osf3* | osf4* | osf5*)
14049         case $cc_basename in
14050           KCC*)
14051             lt_prog_compiler_wl_CXX='--backend -Wl,'
14052             ;;
14053           RCC*)
14054             # Rational C++ 2.4.1
14055             lt_prog_compiler_pic_CXX='-pic'
14056             ;;
14057           cxx*)
14058             # Digital/Compaq C++
14059             lt_prog_compiler_wl_CXX='-Wl,'
14060             # Make sure the PIC flag is empty.  It appears that all Alpha
14061             # Linux and Compaq Tru64 Unix objects are PIC.
14062             lt_prog_compiler_pic_CXX=
14063             lt_prog_compiler_static_CXX='-non_shared'
14064             ;;
14065           *)
14066             ;;
14067         esac
14068         ;;
14069       psos*)
14070         ;;
14071       solaris*)
14072         case $cc_basename in
14073           CC*)
14074             # Sun C++ 4.2, 5.x and Centerline C++
14075             lt_prog_compiler_pic_CXX='-KPIC'
14076             lt_prog_compiler_static_CXX='-Bstatic'
14077             lt_prog_compiler_wl_CXX='-Qoption ld '
14078             ;;
14079           gcx*)
14080             # Green Hills C++ Compiler
14081             lt_prog_compiler_pic_CXX='-PIC'
14082             ;;
14083           *)
14084             ;;
14085         esac
14086         ;;
14087       sunos4*)
14088         case $cc_basename in
14089           CC*)
14090             # Sun C++ 4.x
14091             lt_prog_compiler_pic_CXX='-pic'
14092             lt_prog_compiler_static_CXX='-Bstatic'
14093             ;;
14094           lcc*)
14095             # Lucid
14096             lt_prog_compiler_pic_CXX='-pic'
14097             ;;
14098           *)
14099             ;;
14100         esac
14101         ;;
14102       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14103         case $cc_basename in
14104           CC*)
14105             lt_prog_compiler_wl_CXX='-Wl,'
14106             lt_prog_compiler_pic_CXX='-KPIC'
14107             lt_prog_compiler_static_CXX='-Bstatic'
14108             ;;
14109         esac
14110         ;;
14111       tandem*)
14112         case $cc_basename in
14113           NCC*)
14114             # NonStop-UX NCC 3.20
14115             lt_prog_compiler_pic_CXX='-KPIC'
14116             ;;
14117           *)
14118             ;;
14119         esac
14120         ;;
14121       vxworks*)
14122         ;;
14123       *)
14124         lt_prog_compiler_can_build_shared_CXX=no
14125         ;;
14126     esac
14127   fi
14128
14129 case $host_os in
14130   # For platforms which do not support PIC, -DPIC is meaningless:
14131   *djgpp*)
14132     lt_prog_compiler_pic_CXX=
14133     ;;
14134   *)
14135     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14136     ;;
14137 esac
14138 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14139 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14140
14141
14142
14143 #
14144 # Check to make sure the PIC flag actually works.
14145 #
14146 if test -n "$lt_prog_compiler_pic_CXX"; then
14147   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14148 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14149 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14150   echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152   lt_prog_compiler_pic_works_CXX=no
14153    ac_outfile=conftest.$ac_objext
14154    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14155    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14156    # Insert the option either (1) after the last *FLAGS variable, or
14157    # (2) before a word containing "conftest.", or (3) at the end.
14158    # Note that $ac_compile itself does not contain backslashes and begins
14159    # with a dollar sign (not a hyphen), so the echo should work correctly.
14160    # The option is referenced via a variable to avoid confusing sed.
14161    lt_compile=`echo "$ac_compile" | $SED \
14162    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14163    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14164    -e 's:$: $lt_compiler_flag:'`
14165    (eval echo "\"\$as_me:14165: $lt_compile\"" >&5)
14166    (eval "$lt_compile" 2>conftest.err)
14167    ac_status=$?
14168    cat conftest.err >&5
14169    echo "$as_me:14169: \$? = $ac_status" >&5
14170    if (exit $ac_status) && test -s "$ac_outfile"; then
14171      # The compiler can only warn and ignore the option if not recognized
14172      # So say no if there are warnings other than the usual output.
14173      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14174      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14175      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14176        lt_prog_compiler_pic_works_CXX=yes
14177      fi
14178    fi
14179    $RM conftest*
14180
14181 fi
14182 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14183 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14184
14185 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14186     case $lt_prog_compiler_pic_CXX in
14187      "" | " "*) ;;
14188      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14189      esac
14190 else
14191     lt_prog_compiler_pic_CXX=
14192      lt_prog_compiler_can_build_shared_CXX=no
14193 fi
14194
14195 fi
14196
14197
14198
14199 #
14200 # Check to make sure the static flag actually works.
14201 #
14202 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14203 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14204 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14205 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14206   echo $ECHO_N "(cached) $ECHO_C" >&6
14207 else
14208   lt_prog_compiler_static_works_CXX=no
14209    save_LDFLAGS="$LDFLAGS"
14210    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14211    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14212    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14213      # The linker can only warn and ignore the option if not recognized
14214      # So say no if there are warnings
14215      if test -s conftest.err; then
14216        # Append any errors to the config.log.
14217        cat conftest.err 1>&5
14218        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14219        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14220        if diff conftest.exp conftest.er2 >/dev/null; then
14221          lt_prog_compiler_static_works_CXX=yes
14222        fi
14223      else
14224        lt_prog_compiler_static_works_CXX=yes
14225      fi
14226    fi
14227    $RM conftest*
14228    LDFLAGS="$save_LDFLAGS"
14229
14230 fi
14231 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14232 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14233
14234 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14235     :
14236 else
14237     lt_prog_compiler_static_CXX=
14238 fi
14239
14240
14241
14242
14243     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14244 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14245 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14246   echo $ECHO_N "(cached) $ECHO_C" >&6
14247 else
14248   lt_cv_prog_compiler_c_o_CXX=no
14249    $RM -r conftest 2>/dev/null
14250    mkdir conftest
14251    cd conftest
14252    mkdir out
14253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14254
14255    lt_compiler_flag="-o out/conftest2.$ac_objext"
14256    # Insert the option either (1) after the last *FLAGS variable, or
14257    # (2) before a word containing "conftest.", or (3) at the end.
14258    # Note that $ac_compile itself does not contain backslashes and begins
14259    # with a dollar sign (not a hyphen), so the echo should work correctly.
14260    lt_compile=`echo "$ac_compile" | $SED \
14261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14263    -e 's:$: $lt_compiler_flag:'`
14264    (eval echo "\"\$as_me:14264: $lt_compile\"" >&5)
14265    (eval "$lt_compile" 2>out/conftest.err)
14266    ac_status=$?
14267    cat out/conftest.err >&5
14268    echo "$as_me:14268: \$? = $ac_status" >&5
14269    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14270    then
14271      # The compiler can only warn and ignore the option if not recognized
14272      # So say no if there are warnings
14273      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14274      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14275      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14276        lt_cv_prog_compiler_c_o_CXX=yes
14277      fi
14278    fi
14279    chmod u+w . 2>&5
14280    $RM conftest*
14281    # SGI C++ compiler will create directory out/ii_files/ for
14282    # template instantiation
14283    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14284    $RM out/* && rmdir out
14285    cd ..
14286    $RM -r conftest
14287    $RM conftest*
14288
14289 fi
14290 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14291 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14292
14293
14294
14295     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14296 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14297 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   lt_cv_prog_compiler_c_o_CXX=no
14301    $RM -r conftest 2>/dev/null
14302    mkdir conftest
14303    cd conftest
14304    mkdir out
14305    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306
14307    lt_compiler_flag="-o out/conftest2.$ac_objext"
14308    # Insert the option either (1) after the last *FLAGS variable, or
14309    # (2) before a word containing "conftest.", or (3) at the end.
14310    # Note that $ac_compile itself does not contain backslashes and begins
14311    # with a dollar sign (not a hyphen), so the echo should work correctly.
14312    lt_compile=`echo "$ac_compile" | $SED \
14313    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315    -e 's:$: $lt_compiler_flag:'`
14316    (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
14317    (eval "$lt_compile" 2>out/conftest.err)
14318    ac_status=$?
14319    cat out/conftest.err >&5
14320    echo "$as_me:14320: \$? = $ac_status" >&5
14321    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14322    then
14323      # The compiler can only warn and ignore the option if not recognized
14324      # So say no if there are warnings
14325      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14326      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14327      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14328        lt_cv_prog_compiler_c_o_CXX=yes
14329      fi
14330    fi
14331    chmod u+w . 2>&5
14332    $RM conftest*
14333    # SGI C++ compiler will create directory out/ii_files/ for
14334    # template instantiation
14335    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14336    $RM out/* && rmdir out
14337    cd ..
14338    $RM -r conftest
14339    $RM conftest*
14340
14341 fi
14342 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14343 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14344
14345
14346
14347
14348 hard_links="nottested"
14349 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14350   # do not overwrite the value of need_locks provided by the user
14351   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14352 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14353   hard_links=yes
14354   $RM conftest*
14355   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14356   touch conftest.a
14357   ln conftest.a conftest.b 2>&5 || hard_links=no
14358   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14359   echo "$as_me:$LINENO: result: $hard_links" >&5
14360 echo "${ECHO_T}$hard_links" >&6
14361   if test "$hard_links" = no; then
14362     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14363 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14364     need_locks=warn
14365   fi
14366 else
14367   need_locks=no
14368 fi
14369
14370
14371
14372     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14373 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14374
14375   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14376   case $host_os in
14377   aix4* | aix5*)
14378     # If we're using GNU nm, then we don't want the "-C" option.
14379     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14380     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14381       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'
14382     else
14383       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'
14384     fi
14385     ;;
14386   pw32*)
14387     export_symbols_cmds_CXX="$ltdll_cmds"
14388   ;;
14389   cygwin* | mingw*)
14390     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'
14391   ;;
14392   *)
14393     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14394   ;;
14395   esac
14396
14397 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14398 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14399 test "$ld_shlibs_CXX" = no && can_build_shared=no
14400
14401 with_gnu_ld_CXX=$with_gnu_ld
14402
14403
14404
14405
14406
14407
14408 #
14409 # Do we need to explicitly link libc?
14410 #
14411 case "x$archive_cmds_need_lc_CXX" in
14412 x|xyes)
14413   # Assume -lc should be added
14414   archive_cmds_need_lc_CXX=yes
14415
14416   if test "$enable_shared" = yes && test "$GCC" = yes; then
14417     case $archive_cmds_CXX in
14418     *'~'*)
14419       # FIXME: we may have to deal with multi-command sequences.
14420       ;;
14421     '$CC '*)
14422       # Test whether the compiler implicitly links with -lc since on some
14423       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14424       # to ld, don't add -lc before -lgcc.
14425       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14426 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14427       $RM conftest*
14428       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14429
14430       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431   (eval $ac_compile) 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } 2>conftest.err; then
14435         soname=conftest
14436         lib=conftest
14437         libobjs=conftest.$ac_objext
14438         deplibs=
14439         wl=$lt_prog_compiler_wl_CXX
14440         pic_flag=$lt_prog_compiler_pic_CXX
14441         compiler_flags=-v
14442         linker_flags=-v
14443         verstring=
14444         output_objdir=.
14445         libname=conftest
14446         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14447         allow_undefined_flag_CXX=
14448         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14449   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }
14453         then
14454           archive_cmds_need_lc_CXX=no
14455         else
14456           archive_cmds_need_lc_CXX=yes
14457         fi
14458         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14459       else
14460         cat conftest.err 1>&5
14461       fi
14462       $RM conftest*
14463       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14464 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14465       ;;
14466     esac
14467   fi
14468   ;;
14469 esac
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14535 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14536 withGCC=$GXX
14537 library_names_spec=
14538 libname_spec='lib$name'
14539 soname_spec=
14540 shrext_cmds=".so"
14541 postinstall_cmds=
14542 postuninstall_cmds=
14543 finish_cmds=
14544 finish_eval=
14545 shlibpath_var=
14546 shlibpath_overrides_runpath=unknown
14547 version_type=none
14548 dynamic_linker="$host_os ld.so"
14549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14550 need_lib_prefix=unknown
14551 hardcode_into_libs=no
14552
14553 # when you set need_version to no, make sure it does not cause -set_version
14554 # flags to be left without arguments
14555 need_version=unknown
14556
14557 case $host_os in
14558 aix3*)
14559   version_type=linux
14560   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14561   shlibpath_var=LIBPATH
14562
14563   # AIX 3 has no versioning support, so we append a major version to the name.
14564   soname_spec='${libname}${release}${shared_ext}$major'
14565   ;;
14566
14567 aix4* | aix5*)
14568   version_type=linux
14569   need_lib_prefix=no
14570   need_version=no
14571   hardcode_into_libs=yes
14572   if test "$host_cpu" = ia64; then
14573     # AIX 5 supports IA64
14574     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14575     shlibpath_var=LD_LIBRARY_PATH
14576   else
14577     # With GCC up to 2.95.x, collect2 would create an import file
14578     # for dependence libraries.  The import file would start with
14579     # the line `#! .'.  This would cause the generated library to
14580     # depend on `.', always an invalid library.  This was fixed in
14581     # development snapshots of GCC prior to 3.0.
14582     case $host_os in
14583       aix4 | aix4.[01] | aix4.[01].*)
14584       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14585            echo ' yes '
14586            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14587         :
14588       else
14589         can_build_shared=no
14590       fi
14591       ;;
14592     esac
14593     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14594     # soname into executable. Probably we can add versioning support to
14595     # collect2, so additional links can be useful in future.
14596     if test "$aix_use_runtimelinking" = yes; then
14597       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14598       # instead of lib<name>.a to let people know that these are not
14599       # typical AIX shared libraries.
14600       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601     else
14602       # We preserve .a as extension for shared libraries through AIX4.2
14603       # and later when we are not doing run time linking.
14604       library_names_spec='${libname}${release}.a $libname.a'
14605       soname_spec='${libname}${release}${shared_ext}$major'
14606     fi
14607     shlibpath_var=LIBPATH
14608   fi
14609   ;;
14610
14611 amigaos*)
14612   if test "$host_cpu" = m68k; then
14613     library_names_spec='$libname.ixlibrary $libname.a'
14614     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14615     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'
14616   else
14617     dynamic_linker=no
14618   fi
14619   ;;
14620
14621 beos*)
14622   library_names_spec='${libname}${shared_ext}'
14623   dynamic_linker="$host_os ld.so"
14624   shlibpath_var=LIBRARY_PATH
14625   ;;
14626
14627 bsdi[45]*)
14628   version_type=linux
14629   need_version=no
14630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14631   soname_spec='${libname}${release}${shared_ext}$major'
14632   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14633   shlibpath_var=LD_LIBRARY_PATH
14634   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14635   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14636   # the default ld.so.conf also contains /usr/contrib/lib and
14637   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14638   # libtool to hard-code these into programs
14639   ;;
14640
14641 cygwin* | mingw* | pw32*)
14642   version_type=windows
14643   shrext_cmds=".dll"
14644   need_version=no
14645   need_lib_prefix=no
14646
14647   case $withGCC,$host_os in
14648   yes,cygwin* | yes,mingw* | yes,pw32*)
14649     library_names_spec='$libname.dll.a'
14650     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14651     postinstall_cmds='base_file=`basename \${file}`~
14652       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14653       dldir=$destdir/`dirname \$dlpath`~
14654       test -d \$dldir || mkdir -p \$dldir~
14655       $install_prog $dir/$dlname \$dldir/$dlname~
14656       chmod a+x \$dldir/$dlname~
14657       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14658         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14659       fi'
14660     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14661       dlpath=$dir/\$dldll~
14662        $RM \$dlpath'
14663     shlibpath_overrides_runpath=yes
14664
14665     case $host_os in
14666     cygwin*)
14667       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14668       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14669       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14670       ;;
14671     mingw*)
14672       # MinGW DLLs use traditional 'lib' prefix
14673       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14674       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14675       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14676         # It is most probably a Windows format PATH printed by
14677         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14678         # path with ; separators, and with drive letters. We can handle the
14679         # drive letters (cygwin fileutils understands them), so leave them,
14680         # especially as we might pass files found there to a mingw objdump,
14681         # which wouldn't understand a cygwinified path. Ahh.
14682         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14683       else
14684         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14685       fi
14686       ;;
14687     pw32*)
14688       # pw32 DLLs use 'pw' prefix rather than 'lib'
14689       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14690       ;;
14691     esac
14692     ;;
14693
14694   *)
14695     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14696     ;;
14697   esac
14698   dynamic_linker='Win32 ld.exe'
14699   # FIXME: first we should search . and the directory the executable is in
14700   shlibpath_var=PATH
14701   ;;
14702
14703 darwin* | rhapsody*)
14704   dynamic_linker="$host_os dyld"
14705   version_type=darwin
14706   need_lib_prefix=no
14707   need_version=no
14708   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14709   soname_spec='${libname}${release}${major}$shared_ext'
14710   shlibpath_overrides_runpath=yes
14711   shlibpath_var=DYLD_LIBRARY_PATH
14712   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14713
14714   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14715   ;;
14716
14717 dgux*)
14718   version_type=linux
14719   need_lib_prefix=no
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   shlibpath_var=LD_LIBRARY_PATH
14724   ;;
14725
14726 freebsd1*)
14727   dynamic_linker=no
14728   ;;
14729
14730 freebsd* | dragonfly*)
14731   # DragonFly does not have aout.  When/if they implement a new
14732   # versioning mechanism, adjust this.
14733   if test -x /usr/bin/objformat; then
14734     objformat=`/usr/bin/objformat`
14735   else
14736     case $host_os in
14737     freebsd[123]*) objformat=aout ;;
14738     *) objformat=elf ;;
14739     esac
14740   fi
14741   version_type=freebsd-$objformat
14742   case $version_type in
14743     freebsd-elf*)
14744       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14745       need_version=no
14746       need_lib_prefix=no
14747       ;;
14748     freebsd-*)
14749       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14750       need_version=yes
14751       ;;
14752   esac
14753   shlibpath_var=LD_LIBRARY_PATH
14754   case $host_os in
14755   freebsd2*)
14756     shlibpath_overrides_runpath=yes
14757     ;;
14758   freebsd3.[01]* | freebsdelf3.[01]*)
14759     shlibpath_overrides_runpath=yes
14760     hardcode_into_libs=yes
14761     ;;
14762   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14763   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14764     shlibpath_overrides_runpath=no
14765     hardcode_into_libs=yes
14766     ;;
14767   *) # from 4.6 on, and DragonFly
14768     shlibpath_overrides_runpath=yes
14769     hardcode_into_libs=yes
14770     ;;
14771   esac
14772   ;;
14773
14774 gnu*)
14775   version_type=linux
14776   need_lib_prefix=no
14777   need_version=no
14778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14779   soname_spec='${libname}${release}${shared_ext}$major'
14780   shlibpath_var=LD_LIBRARY_PATH
14781   hardcode_into_libs=yes
14782   ;;
14783
14784 hpux9* | hpux10* | hpux11*)
14785   # Give a soname corresponding to the major version so that dld.sl refuses to
14786   # link against other versions.
14787   version_type=sunos
14788   need_lib_prefix=no
14789   need_version=no
14790   case $host_cpu in
14791   ia64*)
14792     shrext_cmds='.so'
14793     hardcode_into_libs=yes
14794     dynamic_linker="$host_os dld.so"
14795     shlibpath_var=LD_LIBRARY_PATH
14796     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798     soname_spec='${libname}${release}${shared_ext}$major'
14799     if test "X$HPUX_IA64_MODE" = X32; then
14800       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14801     else
14802       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14803     fi
14804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14805     ;;
14806   hppa*64*)
14807     shrext_cmds='.sl'
14808     hardcode_into_libs=yes
14809     dynamic_linker="$host_os dld.sl"
14810     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14813     soname_spec='${libname}${release}${shared_ext}$major'
14814     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14815     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14816     ;;
14817   *)
14818     shrext_cmds='.sl'
14819     dynamic_linker="$host_os dld.sl"
14820     shlibpath_var=SHLIB_PATH
14821     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823     soname_spec='${libname}${release}${shared_ext}$major'
14824     ;;
14825   esac
14826   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14827   postinstall_cmds='chmod 555 $lib'
14828   ;;
14829
14830 interix[3-9]*)
14831   version_type=linux
14832   need_lib_prefix=no
14833   need_version=no
14834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14835   soname_spec='${libname}${release}${shared_ext}$major'
14836   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14837   shlibpath_var=LD_LIBRARY_PATH
14838   shlibpath_overrides_runpath=no
14839   hardcode_into_libs=yes
14840   ;;
14841
14842 irix5* | irix6* | nonstopux*)
14843   case $host_os in
14844     nonstopux*) version_type=nonstopux ;;
14845     *)
14846         if test "$lt_cv_prog_gnu_ld" = yes; then
14847                 version_type=linux
14848         else
14849                 version_type=irix
14850         fi ;;
14851   esac
14852   need_lib_prefix=no
14853   need_version=no
14854   soname_spec='${libname}${release}${shared_ext}$major'
14855   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14856   case $host_os in
14857   irix5* | nonstopux*)
14858     libsuff= shlibsuff=
14859     ;;
14860   *)
14861     case $LD in # libtool.m4 will add one of these switches to LD
14862     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14863       libsuff= shlibsuff= libmagic=32-bit;;
14864     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14865       libsuff=32 shlibsuff=N32 libmagic=N32;;
14866     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14867       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14868     *) libsuff= shlibsuff= libmagic=never-match;;
14869     esac
14870     ;;
14871   esac
14872   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14873   shlibpath_overrides_runpath=no
14874   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14875   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14876   hardcode_into_libs=yes
14877   ;;
14878
14879 # No shared lib support for Linux oldld, aout, or coff.
14880 linux*oldld* | linux*aout* | linux*coff*)
14881   dynamic_linker=no
14882   ;;
14883
14884 # This must be Linux ELF.
14885 linux* | k*bsd*-gnu)
14886   version_type=linux
14887   need_lib_prefix=no
14888   need_version=no
14889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890   soname_spec='${libname}${release}${shared_ext}$major'
14891   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14892   shlibpath_var=LD_LIBRARY_PATH
14893   shlibpath_overrides_runpath=no
14894   # Some binutils ld are patched to set DT_RUNPATH
14895   save_LDFLAGS=$LDFLAGS
14896   save_libdir=$libdir
14897   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14898        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14899   if test x$gcc_no_link = xyes; then
14900   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14902    { (exit 1); exit 1; }; }
14903 fi
14904 cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910
14911 int
14912 main ()
14913 {
14914
14915   ;
14916   return 0;
14917 }
14918 _ACEOF
14919 rm -f conftest.$ac_objext conftest$ac_exeext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14921   (eval $ac_link) 2>conftest.er1
14922   ac_status=$?
14923   grep -v '^ *+' conftest.er1 >conftest.err
14924   rm -f conftest.er1
14925   cat conftest.err >&5
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); } &&
14928          { ac_try='test -z "$ac_cxx_werror_flag"
14929                          || test ! -s conftest.err'
14930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931   (eval $ac_try) 2>&5
14932   ac_status=$?
14933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934   (exit $ac_status); }; } &&
14935          { ac_try='test -s conftest$ac_exeext'
14936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937   (eval $ac_try) 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; }; then
14941   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
14942   shlibpath_overrides_runpath=yes
14943 fi
14944
14945 else
14946   echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 fi
14950 rm -f conftest.err conftest.$ac_objext \
14951       conftest$ac_exeext conftest.$ac_ext
14952   LDFLAGS=$save_LDFLAGS
14953   libdir=$save_libdir
14954
14955   # This implies no fast_install, which is unacceptable.
14956   # Some rework will be needed to allow for fast_install
14957   # before this can be enabled.
14958   hardcode_into_libs=yes
14959
14960   # Append ld.so.conf contents to the search path
14961   if test -f /etc/ld.so.conf; then
14962     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14963     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14964   fi
14965
14966   # We used to test for /lib/ld.so.1 and disable shared libraries on
14967   # powerpc, because MkLinux only supported shared libraries with the
14968   # GNU dynamic linker.  Since this was broken with cross compilers,
14969   # most powerpc-linux boxes support dynamic linking these days and
14970   # people can always --disable-shared, the test was removed, and we
14971   # assume the GNU/Linux dynamic linker is in use.
14972   dynamic_linker='GNU/Linux ld.so'
14973   ;;
14974
14975 netbsd*)
14976   version_type=sunos
14977   need_lib_prefix=no
14978   need_version=no
14979   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14981     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14982     dynamic_linker='NetBSD (a.out) ld.so'
14983   else
14984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14985     soname_spec='${libname}${release}${shared_ext}$major'
14986     dynamic_linker='NetBSD ld.elf_so'
14987   fi
14988   shlibpath_var=LD_LIBRARY_PATH
14989   shlibpath_overrides_runpath=yes
14990   hardcode_into_libs=yes
14991   ;;
14992
14993 newsos6)
14994   version_type=linux
14995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996   shlibpath_var=LD_LIBRARY_PATH
14997   shlibpath_overrides_runpath=yes
14998   ;;
14999
15000 *nto* | *qnx*)
15001   version_type=qnx
15002   need_lib_prefix=no
15003   need_version=no
15004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15005   soname_spec='${libname}${release}${shared_ext}$major'
15006   shlibpath_var=LD_LIBRARY_PATH
15007   shlibpath_overrides_runpath=no
15008   hardcode_into_libs=yes
15009   dynamic_linker='ldqnx.so'
15010   ;;
15011
15012 openbsd*)
15013   version_type=sunos
15014   sys_lib_dlsearch_path_spec="/usr/lib"
15015   need_lib_prefix=no
15016   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15017   case $host_os in
15018     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15019     *)                          need_version=no  ;;
15020   esac
15021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15022   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15023   shlibpath_var=LD_LIBRARY_PATH
15024   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15025     case $host_os in
15026       openbsd2.[89] | openbsd2.[89].*)
15027         shlibpath_overrides_runpath=no
15028         ;;
15029       *)
15030         shlibpath_overrides_runpath=yes
15031         ;;
15032       esac
15033   else
15034     shlibpath_overrides_runpath=yes
15035   fi
15036   ;;
15037
15038 os2*)
15039   libname_spec='$name'
15040   shrext_cmds=".dll"
15041   need_lib_prefix=no
15042   library_names_spec='$libname${shared_ext} $libname.a'
15043   dynamic_linker='OS/2 ld.exe'
15044   shlibpath_var=LIBPATH
15045   ;;
15046
15047 osf3* | osf4* | osf5*)
15048   version_type=osf
15049   need_lib_prefix=no
15050   need_version=no
15051   soname_spec='${libname}${release}${shared_ext}$major'
15052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053   shlibpath_var=LD_LIBRARY_PATH
15054   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15055   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15056   ;;
15057
15058 rdos*)
15059   dynamic_linker=no
15060   ;;
15061
15062 solaris*)
15063   version_type=linux
15064   need_lib_prefix=no
15065   need_version=no
15066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15067   soname_spec='${libname}${release}${shared_ext}$major'
15068   shlibpath_var=LD_LIBRARY_PATH
15069   shlibpath_overrides_runpath=yes
15070   hardcode_into_libs=yes
15071   # ldd complains unless libraries are executable
15072   postinstall_cmds='chmod +x $lib'
15073   ;;
15074
15075 sunos4*)
15076   version_type=sunos
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15078   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15079   shlibpath_var=LD_LIBRARY_PATH
15080   shlibpath_overrides_runpath=yes
15081   if test "$with_gnu_ld" = yes; then
15082     need_lib_prefix=no
15083   fi
15084   need_version=yes
15085   ;;
15086
15087 sysv4 | sysv4.3*)
15088   version_type=linux
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   shlibpath_var=LD_LIBRARY_PATH
15092   case $host_vendor in
15093     sni)
15094       shlibpath_overrides_runpath=no
15095       need_lib_prefix=no
15096       runpath_var=LD_RUN_PATH
15097       ;;
15098     siemens)
15099       need_lib_prefix=no
15100       ;;
15101     motorola)
15102       need_lib_prefix=no
15103       need_version=no
15104       shlibpath_overrides_runpath=no
15105       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15106       ;;
15107   esac
15108   ;;
15109
15110 sysv4*MP*)
15111   if test -d /usr/nec ;then
15112     version_type=linux
15113     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15114     soname_spec='$libname${shared_ext}.$major'
15115     shlibpath_var=LD_LIBRARY_PATH
15116   fi
15117   ;;
15118
15119 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15120   version_type=freebsd-elf
15121   need_lib_prefix=no
15122   need_version=no
15123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15124   soname_spec='${libname}${release}${shared_ext}$major'
15125   shlibpath_var=LD_LIBRARY_PATH
15126   shlibpath_overrides_runpath=yes
15127   hardcode_into_libs=yes
15128   if test "$with_gnu_ld" = yes; then
15129     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15130   else
15131     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15132     case $host_os in
15133       sco3.2v5*)
15134         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15135         ;;
15136     esac
15137   fi
15138   sys_lib_dlsearch_path_spec='/usr/lib'
15139   ;;
15140
15141 tpf*)
15142   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   shlibpath_overrides_runpath=no
15149   hardcode_into_libs=yes
15150   ;;
15151
15152 uts4*)
15153   version_type=linux
15154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155   soname_spec='${libname}${release}${shared_ext}$major'
15156   shlibpath_var=LD_LIBRARY_PATH
15157   ;;
15158
15159 *)
15160   dynamic_linker=no
15161   ;;
15162 esac
15163 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15164 echo "${ECHO_T}$dynamic_linker" >&6
15165 test "$dynamic_linker" = no && can_build_shared=no
15166
15167 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15168 if test "$GCC" = yes; then
15169   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15170 fi
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15208 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15209 hardcode_action_CXX=
15210 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15211    test -n "$runpath_var_CXX" ||
15212    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15213
15214   # We can hardcode non-existent directories.
15215   if test "$hardcode_direct_CXX" != no &&
15216      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15217      # have to relink, otherwise we might link with an installed library
15218      # when we should be linking with a yet-to-be-installed one
15219      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15220      test "$hardcode_minus_L_CXX" != no; then
15221     # Linking always hardcodes the temporary library directory.
15222     hardcode_action_CXX=relink
15223   else
15224     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15225     hardcode_action_CXX=immediate
15226   fi
15227 else
15228   # We cannot hardcode anything, or else we can only hardcode existing
15229   # directories.
15230   hardcode_action_CXX=unsupported
15231 fi
15232 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15233 echo "${ECHO_T}$hardcode_action_CXX" >&6
15234
15235 if test "$hardcode_action_CXX" = relink ||
15236    test "$inherit_rpath_CXX" = yes; then
15237   # Fast installation is not supported
15238   enable_fast_install=no
15239 elif test "$shlibpath_overrides_runpath" = yes ||
15240      test "$enable_shared" = no; then
15241   # Fast installation is not necessary
15242   enable_fast_install=needless
15243 fi
15244
15245
15246
15247
15248
15249
15250
15251   fi # test -n "$compiler"
15252
15253   CC=$lt_save_CC
15254   LDCXX=$LD
15255   LD=$lt_save_LD
15256   GCC=$lt_save_GCC
15257   with_gnu_ld=$lt_save_with_gnu_ld
15258   lt_cv_path_LDCXX=$lt_cv_path_LD
15259   lt_cv_path_LD=$lt_save_path_LD
15260   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15261   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15262 fi # test "$_lt_caught_CXX_error" != yes
15263
15264 ac_ext=c
15265 ac_cpp='$CPP $CPPFLAGS'
15266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282                   ac_config_commands="$ac_config_commands libtool"
15283
15284
15285
15286
15287 # Only expand once:
15288
15289
15290
15291 for ac_prog in gcj
15292 do
15293   # Extract the first word of "$ac_prog", so it can be a program name with args.
15294 set dummy $ac_prog; ac_word=$2
15295 echo "$as_me:$LINENO: checking for $ac_word" >&5
15296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15297 if test "${ac_cv_prog_GCJ+set}" = set; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300   if test -n "$GCJ"; then
15301   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15302 else
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15305 do
15306   IFS=$as_save_IFS
15307   test -z "$as_dir" && as_dir=.
15308   for ac_exec_ext in '' $ac_executable_extensions; do
15309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310     ac_cv_prog_GCJ="$ac_prog"
15311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15312     break 2
15313   fi
15314 done
15315 done
15316
15317 fi
15318 fi
15319 GCJ=$ac_cv_prog_GCJ
15320 if test -n "$GCJ"; then
15321   echo "$as_me:$LINENO: result: $GCJ" >&5
15322 echo "${ECHO_T}$GCJ" >&6
15323 else
15324   echo "$as_me:$LINENO: result: no" >&5
15325 echo "${ECHO_T}no" >&6
15326 fi
15327
15328   test -n "$GCJ" && break
15329 done
15330 test -n "$GCJ" || GCJ="gcj"
15331
15332 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15333 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15334    { (exit 1); exit 1; }; }
15335 if test "x${GCJFLAGS-unset}" = xunset; then
15336    GCJFLAGS="-g -O2"
15337 fi
15338
15339
15340 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15341
15342 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15343 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15344 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15348   # We make a subdir and do the tests there.  Otherwise we can end up
15349   # making bogus files that we don't know about and never remove.  For
15350   # instance it was reported that on HP-UX the gcc test will end up
15351   # making a dummy file named `D' -- because `-MD' means `put the output
15352   # in D'.
15353   mkdir conftest.dir
15354   # Copy depcomp to subdir because otherwise we won't find it if we're
15355   # using a relative directory.
15356   cp "$am_depcomp" conftest.dir
15357   cd conftest.dir
15358   # We will build objects and dependencies in a subdirectory because
15359   # it helps to detect inapplicable dependency modes.  For instance
15360   # both Tru64's cc and ICC support -MD to output dependencies as a
15361   # side effect of compilation, but ICC will put the dependencies in
15362   # the current directory while Tru64 will put them in the object
15363   # directory.
15364   mkdir sub
15365
15366   am_cv_GCJ_dependencies_compiler_type=none
15367   if test "$am_compiler_list" = ""; then
15368      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15369   fi
15370   for depmode in $am_compiler_list; do
15371     # Setup a source with many dependencies, because some compilers
15372     # like to wrap large dependency lists on column 80 (with \), and
15373     # we should not choose a depcomp mode which is confused by this.
15374     #
15375     # We need to recreate these files for each test, as the compiler may
15376     # overwrite some of them when testing with obscure command lines.
15377     # This happens at least with the AIX C compiler.
15378     : > sub/conftest.c
15379     for i in 1 2 3 4 5 6; do
15380       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15381       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15382       # Solaris 8's {/usr,}/bin/sh.
15383       touch sub/conftst$i.h
15384     done
15385     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15386
15387     case $depmode in
15388     nosideeffect)
15389       # after this tag, mechanisms are not by side-effect, so they'll
15390       # only be used when explicitly requested
15391       if test "x$enable_dependency_tracking" = xyes; then
15392         continue
15393       else
15394         break
15395       fi
15396       ;;
15397     none) break ;;
15398     esac
15399     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15400     # mode.  It turns out that the SunPro C++ compiler does not properly
15401     # handle `-M -o', and we need to detect this.
15402     if depmode=$depmode \
15403        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15404        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15405        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15406          >/dev/null 2>conftest.err &&
15407        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15408        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15409        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15410       # icc doesn't choke on unknown options, it will just issue warnings
15411       # or remarks (even with -Werror).  So we grep stderr for any message
15412       # that says an option was ignored or not supported.
15413       # When given -MP, icc 7.0 and 7.1 complain thusly:
15414       #   icc: Command line warning: ignoring option '-M'; no argument required
15415       # The diagnosis changed in icc 8.0:
15416       #   icc: Command line remark: option '-MP' not supported
15417       if (grep 'ignoring option' conftest.err ||
15418           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15419         am_cv_GCJ_dependencies_compiler_type=$depmode
15420         break
15421       fi
15422     fi
15423   done
15424
15425   cd ..
15426   rm -rf conftest.dir
15427 else
15428   am_cv_GCJ_dependencies_compiler_type=none
15429 fi
15430
15431 fi
15432 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15433 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15434 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15435
15436
15437
15438 if
15439   test "x$enable_dependency_tracking" != xno \
15440   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15441   am__fastdepGCJ_TRUE=
15442   am__fastdepGCJ_FALSE='#'
15443 else
15444   am__fastdepGCJ_TRUE='#'
15445   am__fastdepGCJ_FALSE=
15446 fi
15447
15448
15449
15450 for ac_prog in gcj
15451 do
15452   # Extract the first word of "$ac_prog", so it can be a program name with args.
15453 set dummy $ac_prog; ac_word=$2
15454 echo "$as_me:$LINENO: checking for $ac_word" >&5
15455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15456 if test "${ac_cv_prog_GCJ+set}" = set; then
15457   echo $ECHO_N "(cached) $ECHO_C" >&6
15458 else
15459   if test -n "$GCJ"; then
15460   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15461 else
15462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15463 for as_dir in $PATH
15464 do
15465   IFS=$as_save_IFS
15466   test -z "$as_dir" && as_dir=.
15467   for ac_exec_ext in '' $ac_executable_extensions; do
15468   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15469     ac_cv_prog_GCJ="$ac_prog"
15470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15471     break 2
15472   fi
15473 done
15474 done
15475
15476 fi
15477 fi
15478 GCJ=$ac_cv_prog_GCJ
15479 if test -n "$GCJ"; then
15480   echo "$as_me:$LINENO: result: $GCJ" >&5
15481 echo "${ECHO_T}$GCJ" >&6
15482 else
15483   echo "$as_me:$LINENO: result: no" >&5
15484 echo "${ECHO_T}no" >&6
15485 fi
15486
15487   test -n "$GCJ" && break
15488 done
15489 test -n "$GCJ" || GCJ="gcj"
15490
15491 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15492 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15493    { (exit 1); exit 1; }; }
15494 if test "x${GCJFLAGS-unset}" = xunset; then
15495    GCJFLAGS="-g -O2"
15496 fi
15497
15498
15499 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15500
15501 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15502 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15503 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15504   echo $ECHO_N "(cached) $ECHO_C" >&6
15505 else
15506   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15507   # We make a subdir and do the tests there.  Otherwise we can end up
15508   # making bogus files that we don't know about and never remove.  For
15509   # instance it was reported that on HP-UX the gcc test will end up
15510   # making a dummy file named `D' -- because `-MD' means `put the output
15511   # in D'.
15512   mkdir conftest.dir
15513   # Copy depcomp to subdir because otherwise we won't find it if we're
15514   # using a relative directory.
15515   cp "$am_depcomp" conftest.dir
15516   cd conftest.dir
15517   # We will build objects and dependencies in a subdirectory because
15518   # it helps to detect inapplicable dependency modes.  For instance
15519   # both Tru64's cc and ICC support -MD to output dependencies as a
15520   # side effect of compilation, but ICC will put the dependencies in
15521   # the current directory while Tru64 will put them in the object
15522   # directory.
15523   mkdir sub
15524
15525   am_cv_GCJ_dependencies_compiler_type=none
15526   if test "$am_compiler_list" = ""; then
15527      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15528   fi
15529   for depmode in $am_compiler_list; do
15530     # Setup a source with many dependencies, because some compilers
15531     # like to wrap large dependency lists on column 80 (with \), and
15532     # we should not choose a depcomp mode which is confused by this.
15533     #
15534     # We need to recreate these files for each test, as the compiler may
15535     # overwrite some of them when testing with obscure command lines.
15536     # This happens at least with the AIX C compiler.
15537     : > sub/conftest.c
15538     for i in 1 2 3 4 5 6; do
15539       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15540       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15541       # Solaris 8's {/usr,}/bin/sh.
15542       touch sub/conftst$i.h
15543     done
15544     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15545
15546     case $depmode in
15547     nosideeffect)
15548       # after this tag, mechanisms are not by side-effect, so they'll
15549       # only be used when explicitly requested
15550       if test "x$enable_dependency_tracking" = xyes; then
15551         continue
15552       else
15553         break
15554       fi
15555       ;;
15556     none) break ;;
15557     esac
15558     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15559     # mode.  It turns out that the SunPro C++ compiler does not properly
15560     # handle `-M -o', and we need to detect this.
15561     if depmode=$depmode \
15562        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15563        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15564        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15565          >/dev/null 2>conftest.err &&
15566        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15567        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15568        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15569       # icc doesn't choke on unknown options, it will just issue warnings
15570       # or remarks (even with -Werror).  So we grep stderr for any message
15571       # that says an option was ignored or not supported.
15572       # When given -MP, icc 7.0 and 7.1 complain thusly:
15573       #   icc: Command line warning: ignoring option '-M'; no argument required
15574       # The diagnosis changed in icc 8.0:
15575       #   icc: Command line remark: option '-MP' not supported
15576       if (grep 'ignoring option' conftest.err ||
15577           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15578         am_cv_GCJ_dependencies_compiler_type=$depmode
15579         break
15580       fi
15581     fi
15582   done
15583
15584   cd ..
15585   rm -rf conftest.dir
15586 else
15587   am_cv_GCJ_dependencies_compiler_type=none
15588 fi
15589
15590 fi
15591 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15592 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15593 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15594
15595
15596
15597 if
15598   test "x$enable_dependency_tracking" != xno \
15599   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15600   am__fastdepGCJ_TRUE=
15601   am__fastdepGCJ_FALSE='#'
15602 else
15603   am__fastdepGCJ_TRUE='#'
15604   am__fastdepGCJ_FALSE=
15605 fi
15606
15607
15608
15609
15610
15611
15612 # Source file extension for Java test sources.
15613 ac_ext=java
15614
15615 # Object file extension for compiled Java test sources.
15616 objext=o
15617 objext_GCJ=$objext
15618
15619 # Code to be used in simple compile tests
15620 lt_simple_compile_test_code="class foo {}"
15621
15622 # Code to be used in simple link tests
15623 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
15624
15625 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15626
15627
15628
15629
15630
15631
15632 # If no C compiler was specified, use CC.
15633 LTCC=${LTCC-"$CC"}
15634
15635 # If no C compiler flags were specified, use CFLAGS.
15636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15637
15638 # Allow CC to be a program name with arguments.
15639 compiler=$CC
15640
15641
15642 # save warnings/boilerplate of simple test code
15643 ac_outfile=conftest.$ac_objext
15644 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15646 _lt_compiler_boilerplate=`cat conftest.err`
15647 $RM conftest*
15648
15649 ac_outfile=conftest.$ac_objext
15650 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15652 _lt_linker_boilerplate=`cat conftest.err`
15653 $RM conftest*
15654
15655
15656 # Allow CC to be a program name with arguments.
15657 lt_save_CC="$CC"
15658 CC=${GCJ-"gcj"}
15659 compiler=$CC
15660 compiler_GCJ=$CC
15661 for cc_temp in $compiler""; do
15662   case $cc_temp in
15663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15665     \-*) ;;
15666     *) break;;
15667   esac
15668 done
15669 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15670
15671
15672 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15673 archive_cmds_need_lc_GCJ=no
15674
15675 old_archive_cmds_GCJ=$old_archive_cmds
15676
15677 ## CAVEAT EMPTOR:
15678 ## There is no encapsulation within the following macros, do not change
15679 ## the running order or otherwise move them around unless you know exactly
15680 ## what you are doing...
15681 if test -n "$compiler"; then
15682
15683 lt_prog_compiler_no_builtin_flag_GCJ=
15684
15685 if test "$GCC" = yes; then
15686   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15687
15688   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15689 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15690 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15691   echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693   lt_cv_prog_compiler_rtti_exceptions=no
15694    ac_outfile=conftest.$ac_objext
15695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15696    lt_compiler_flag="-fno-rtti -fno-exceptions"
15697    # Insert the option either (1) after the last *FLAGS variable, or
15698    # (2) before a word containing "conftest.", or (3) at the end.
15699    # Note that $ac_compile itself does not contain backslashes and begins
15700    # with a dollar sign (not a hyphen), so the echo should work correctly.
15701    # The option is referenced via a variable to avoid confusing sed.
15702    lt_compile=`echo "$ac_compile" | $SED \
15703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15705    -e 's:$: $lt_compiler_flag:'`
15706    (eval echo "\"\$as_me:15706: $lt_compile\"" >&5)
15707    (eval "$lt_compile" 2>conftest.err)
15708    ac_status=$?
15709    cat conftest.err >&5
15710    echo "$as_me:15710: \$? = $ac_status" >&5
15711    if (exit $ac_status) && test -s "$ac_outfile"; then
15712      # The compiler can only warn and ignore the option if not recognized
15713      # So say no if there are warnings other than the usual output.
15714      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15715      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15716      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15717        lt_cv_prog_compiler_rtti_exceptions=yes
15718      fi
15719    fi
15720    $RM conftest*
15721
15722 fi
15723 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15724 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15725
15726 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15727     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15728 else
15729     :
15730 fi
15731
15732 fi
15733
15734
15735
15736   lt_prog_compiler_wl_GCJ=
15737 lt_prog_compiler_pic_GCJ=
15738 lt_prog_compiler_static_GCJ=
15739
15740 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15741 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15742
15743   if test "$GCC" = yes; then
15744     lt_prog_compiler_wl_GCJ='-Wl,'
15745     lt_prog_compiler_static_GCJ='-static'
15746
15747     case $host_os in
15748       aix*)
15749       # All AIX code is PIC.
15750       if test "$host_cpu" = ia64; then
15751         # AIX 5 now supports IA64 processor
15752         lt_prog_compiler_static_GCJ='-Bstatic'
15753       fi
15754       ;;
15755
15756     amigaos*)
15757       if test "$host_cpu" = m68k; then
15758         # FIXME: we need at least 68020 code to build shared libraries, but
15759         # adding the `-m68020' flag to GCC prevents building anything better,
15760         # like `-m68040'.
15761         lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15762       fi
15763       ;;
15764
15765     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15766       # PIC is the default for these OSes.
15767       ;;
15768
15769     mingw* | cygwin* | pw32* | os2*)
15770       # This hack is so that the source file can tell whether it is being
15771       # built for inclusion in a dll (and should export symbols for example).
15772       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15773       # (--disable-auto-import) libraries
15774       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15775       ;;
15776
15777     darwin* | rhapsody*)
15778       # PIC is the default on this platform
15779       # Common symbols not allowed in MH_DYLIB files
15780       lt_prog_compiler_pic_GCJ='-fno-common'
15781       ;;
15782
15783     hpux*)
15784       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15785       # not for PA HP-UX.
15786       case $host_cpu in
15787       hppa*64*|ia64*)
15788         # +Z the default
15789         ;;
15790       *)
15791         lt_prog_compiler_pic_GCJ='-fPIC'
15792         ;;
15793       esac
15794       ;;
15795
15796     interix[3-9]*)
15797       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15798       # Instead, we relocate shared libraries at runtime.
15799       ;;
15800
15801     msdosdjgpp*)
15802       # Just because we use GCC doesn't mean we suddenly get shared libraries
15803       # on systems that don't support them.
15804       lt_prog_compiler_can_build_shared_GCJ=no
15805       enable_shared=no
15806       ;;
15807
15808     *nto* | *qnx*)
15809       # QNX uses GNU C++, but need to define -shared option too, otherwise
15810       # it will coredump.
15811       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15812       ;;
15813
15814     sysv4*MP*)
15815       if test -d /usr/nec; then
15816         lt_prog_compiler_pic_GCJ=-Kconform_pic
15817       fi
15818       ;;
15819
15820     *)
15821       lt_prog_compiler_pic_GCJ='-fPIC'
15822       ;;
15823     esac
15824   else
15825     # PORTME Check for flag to pass linker flags through the system compiler.
15826     case $host_os in
15827     aix*)
15828       lt_prog_compiler_wl_GCJ='-Wl,'
15829       if test "$host_cpu" = ia64; then
15830         # AIX 5 now supports IA64 processor
15831         lt_prog_compiler_static_GCJ='-Bstatic'
15832       else
15833         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15834       fi
15835       ;;
15836     darwin*)
15837       # PIC is the default on this platform
15838       # Common symbols not allowed in MH_DYLIB files
15839       case $cc_basename in
15840       xlc*)
15841         lt_prog_compiler_pic_GCJ='-qnocommon'
15842         lt_prog_compiler_wl_GCJ='-Wl,'
15843         ;;
15844       esac
15845       ;;
15846
15847     mingw* | cygwin* | pw32* | os2*)
15848       # This hack is so that the source file can tell whether it is being
15849       # built for inclusion in a dll (and should export symbols for example).
15850       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15851       ;;
15852
15853     hpux9* | hpux10* | hpux11*)
15854       lt_prog_compiler_wl_GCJ='-Wl,'
15855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15856       # not for PA HP-UX.
15857       case $host_cpu in
15858       hppa*64*|ia64*)
15859         # +Z the default
15860         ;;
15861       *)
15862         lt_prog_compiler_pic_GCJ='+Z'
15863         ;;
15864       esac
15865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15866       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15867       ;;
15868
15869     irix5* | irix6* | nonstopux*)
15870       lt_prog_compiler_wl_GCJ='-Wl,'
15871       # PIC (with -KPIC) is the default.
15872       lt_prog_compiler_static_GCJ='-non_shared'
15873       ;;
15874
15875     linux* | k*bsd*-gnu)
15876       case $cc_basename in
15877       icc* | ecc*)
15878         lt_prog_compiler_wl_GCJ='-Wl,'
15879         lt_prog_compiler_pic_GCJ='-KPIC'
15880         lt_prog_compiler_static_GCJ='-static'
15881         ;;
15882       pgcc* | pgf77* | pgf90* | pgf95*)
15883         # Portland Group compilers (*not* the Pentium gcc compiler,
15884         # which looks to be a dead project)
15885         lt_prog_compiler_wl_GCJ='-Wl,'
15886         lt_prog_compiler_pic_GCJ='-fpic'
15887         lt_prog_compiler_static_GCJ='-Bstatic'
15888         ;;
15889       ccc*)
15890         lt_prog_compiler_wl_GCJ='-Wl,'
15891         # All Alpha code is PIC.
15892         lt_prog_compiler_static_GCJ='-non_shared'
15893         ;;
15894       *)
15895         case `$CC -V 2>&1 | sed 5q` in
15896         *Sun\ C*)
15897           # Sun C 5.9
15898           lt_prog_compiler_pic_GCJ='-KPIC'
15899           lt_prog_compiler_static_GCJ='-Bstatic'
15900           lt_prog_compiler_wl_GCJ='-Wl,'
15901           ;;
15902         *Sun\ F*)
15903           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15904           lt_prog_compiler_pic_GCJ='-KPIC'
15905           lt_prog_compiler_static_GCJ='-Bstatic'
15906           lt_prog_compiler_wl_GCJ=''
15907           ;;
15908         esac
15909         ;;
15910       esac
15911       ;;
15912
15913     newsos6)
15914       lt_prog_compiler_pic_GCJ='-KPIC'
15915       lt_prog_compiler_static_GCJ='-Bstatic'
15916       ;;
15917
15918     *nto* | *qnx*)
15919       # QNX uses GNU C++, but need to define -shared option too, otherwise
15920       # it will coredump.
15921       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15922       ;;
15923
15924     osf3* | osf4* | osf5*)
15925       lt_prog_compiler_wl_GCJ='-Wl,'
15926       # All OSF/1 code is PIC.
15927       lt_prog_compiler_static_GCJ='-non_shared'
15928       ;;
15929
15930     rdos*)
15931       lt_prog_compiler_static_GCJ='-non_shared'
15932       ;;
15933
15934     solaris*)
15935       lt_prog_compiler_pic_GCJ='-KPIC'
15936       lt_prog_compiler_static_GCJ='-Bstatic'
15937       case $cc_basename in
15938       f77* | f90* | f95*)
15939         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15940       *)
15941         lt_prog_compiler_wl_GCJ='-Wl,';;
15942       esac
15943       ;;
15944
15945     sunos4*)
15946       lt_prog_compiler_wl_GCJ='-Qoption ld '
15947       lt_prog_compiler_pic_GCJ='-PIC'
15948       lt_prog_compiler_static_GCJ='-Bstatic'
15949       ;;
15950
15951     sysv4 | sysv4.2uw2* | sysv4.3*)
15952       lt_prog_compiler_wl_GCJ='-Wl,'
15953       lt_prog_compiler_pic_GCJ='-KPIC'
15954       lt_prog_compiler_static_GCJ='-Bstatic'
15955       ;;
15956
15957     sysv4*MP*)
15958       if test -d /usr/nec ;then
15959         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15960         lt_prog_compiler_static_GCJ='-Bstatic'
15961       fi
15962       ;;
15963
15964     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15965       lt_prog_compiler_wl_GCJ='-Wl,'
15966       lt_prog_compiler_pic_GCJ='-KPIC'
15967       lt_prog_compiler_static_GCJ='-Bstatic'
15968       ;;
15969
15970     unicos*)
15971       lt_prog_compiler_wl_GCJ='-Wl,'
15972       lt_prog_compiler_can_build_shared_GCJ=no
15973       ;;
15974
15975     uts4*)
15976       lt_prog_compiler_pic_GCJ='-pic'
15977       lt_prog_compiler_static_GCJ='-Bstatic'
15978       ;;
15979
15980     *)
15981       lt_prog_compiler_can_build_shared_GCJ=no
15982       ;;
15983     esac
15984   fi
15985
15986 case $host_os in
15987   # For platforms which do not support PIC, -DPIC is meaningless:
15988   *djgpp*)
15989     lt_prog_compiler_pic_GCJ=
15990     ;;
15991   *)
15992     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15993     ;;
15994 esac
15995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15996 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15997
15998
15999
16000 #
16001 # Check to make sure the PIC flag actually works.
16002 #
16003 if test -n "$lt_prog_compiler_pic_GCJ"; then
16004   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16005 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16006 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   lt_prog_compiler_pic_works_GCJ=no
16010    ac_outfile=conftest.$ac_objext
16011    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16012    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16013    # Insert the option either (1) after the last *FLAGS variable, or
16014    # (2) before a word containing "conftest.", or (3) at the end.
16015    # Note that $ac_compile itself does not contain backslashes and begins
16016    # with a dollar sign (not a hyphen), so the echo should work correctly.
16017    # The option is referenced via a variable to avoid confusing sed.
16018    lt_compile=`echo "$ac_compile" | $SED \
16019    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16020    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16021    -e 's:$: $lt_compiler_flag:'`
16022    (eval echo "\"\$as_me:16022: $lt_compile\"" >&5)
16023    (eval "$lt_compile" 2>conftest.err)
16024    ac_status=$?
16025    cat conftest.err >&5
16026    echo "$as_me:16026: \$? = $ac_status" >&5
16027    if (exit $ac_status) && test -s "$ac_outfile"; then
16028      # The compiler can only warn and ignore the option if not recognized
16029      # So say no if there are warnings other than the usual output.
16030      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16031      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16032      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16033        lt_prog_compiler_pic_works_GCJ=yes
16034      fi
16035    fi
16036    $RM conftest*
16037
16038 fi
16039 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16040 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16041
16042 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16043     case $lt_prog_compiler_pic_GCJ in
16044      "" | " "*) ;;
16045      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16046      esac
16047 else
16048     lt_prog_compiler_pic_GCJ=
16049      lt_prog_compiler_can_build_shared_GCJ=no
16050 fi
16051
16052 fi
16053
16054
16055
16056 #
16057 # Check to make sure the static flag actually works.
16058 #
16059 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16060 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16061 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16062 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   lt_prog_compiler_static_works_GCJ=no
16066    save_LDFLAGS="$LDFLAGS"
16067    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16068    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16069    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16070      # The linker can only warn and ignore the option if not recognized
16071      # So say no if there are warnings
16072      if test -s conftest.err; then
16073        # Append any errors to the config.log.
16074        cat conftest.err 1>&5
16075        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16076        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16077        if diff conftest.exp conftest.er2 >/dev/null; then
16078          lt_prog_compiler_static_works_GCJ=yes
16079        fi
16080      else
16081        lt_prog_compiler_static_works_GCJ=yes
16082      fi
16083    fi
16084    $RM conftest*
16085    LDFLAGS="$save_LDFLAGS"
16086
16087 fi
16088 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16089 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16090
16091 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16092     :
16093 else
16094     lt_prog_compiler_static_GCJ=
16095 fi
16096
16097
16098
16099
16100   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16101 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16102 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16103   echo $ECHO_N "(cached) $ECHO_C" >&6
16104 else
16105   lt_cv_prog_compiler_c_o_GCJ=no
16106    $RM -r conftest 2>/dev/null
16107    mkdir conftest
16108    cd conftest
16109    mkdir out
16110    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16111
16112    lt_compiler_flag="-o out/conftest2.$ac_objext"
16113    # Insert the option either (1) after the last *FLAGS variable, or
16114    # (2) before a word containing "conftest.", or (3) at the end.
16115    # Note that $ac_compile itself does not contain backslashes and begins
16116    # with a dollar sign (not a hyphen), so the echo should work correctly.
16117    lt_compile=`echo "$ac_compile" | $SED \
16118    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16119    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16120    -e 's:$: $lt_compiler_flag:'`
16121    (eval echo "\"\$as_me:16121: $lt_compile\"" >&5)
16122    (eval "$lt_compile" 2>out/conftest.err)
16123    ac_status=$?
16124    cat out/conftest.err >&5
16125    echo "$as_me:16125: \$? = $ac_status" >&5
16126    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16127    then
16128      # The compiler can only warn and ignore the option if not recognized
16129      # So say no if there are warnings
16130      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16131      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16132      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16133        lt_cv_prog_compiler_c_o_GCJ=yes
16134      fi
16135    fi
16136    chmod u+w . 2>&5
16137    $RM conftest*
16138    # SGI C++ compiler will create directory out/ii_files/ for
16139    # template instantiation
16140    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16141    $RM out/* && rmdir out
16142    cd ..
16143    $RM -r conftest
16144    $RM conftest*
16145
16146 fi
16147 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16148 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16149
16150
16151
16152   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16153 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16154 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16155   echo $ECHO_N "(cached) $ECHO_C" >&6
16156 else
16157   lt_cv_prog_compiler_c_o_GCJ=no
16158    $RM -r conftest 2>/dev/null
16159    mkdir conftest
16160    cd conftest
16161    mkdir out
16162    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16163
16164    lt_compiler_flag="-o out/conftest2.$ac_objext"
16165    # Insert the option either (1) after the last *FLAGS variable, or
16166    # (2) before a word containing "conftest.", or (3) at the end.
16167    # Note that $ac_compile itself does not contain backslashes and begins
16168    # with a dollar sign (not a hyphen), so the echo should work correctly.
16169    lt_compile=`echo "$ac_compile" | $SED \
16170    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16171    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16172    -e 's:$: $lt_compiler_flag:'`
16173    (eval echo "\"\$as_me:16173: $lt_compile\"" >&5)
16174    (eval "$lt_compile" 2>out/conftest.err)
16175    ac_status=$?
16176    cat out/conftest.err >&5
16177    echo "$as_me:16177: \$? = $ac_status" >&5
16178    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16179    then
16180      # The compiler can only warn and ignore the option if not recognized
16181      # So say no if there are warnings
16182      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16183      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16184      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16185        lt_cv_prog_compiler_c_o_GCJ=yes
16186      fi
16187    fi
16188    chmod u+w . 2>&5
16189    $RM conftest*
16190    # SGI C++ compiler will create directory out/ii_files/ for
16191    # template instantiation
16192    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16193    $RM out/* && rmdir out
16194    cd ..
16195    $RM -r conftest
16196    $RM conftest*
16197
16198 fi
16199 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16201
16202
16203
16204
16205 hard_links="nottested"
16206 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16207   # do not overwrite the value of need_locks provided by the user
16208   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16209 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16210   hard_links=yes
16211   $RM conftest*
16212   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16213   touch conftest.a
16214   ln conftest.a conftest.b 2>&5 || hard_links=no
16215   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16216   echo "$as_me:$LINENO: result: $hard_links" >&5
16217 echo "${ECHO_T}$hard_links" >&6
16218   if test "$hard_links" = no; then
16219     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16220 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16221     need_locks=warn
16222   fi
16223 else
16224   need_locks=no
16225 fi
16226
16227
16228
16229   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16230 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16231
16232   runpath_var=
16233   allow_undefined_flag_GCJ=
16234   always_export_symbols_GCJ=no
16235   archive_cmds_GCJ=
16236   archive_expsym_cmds_GCJ=
16237   compiler_needs_object_GCJ=no
16238   enable_shared_with_static_runtimes_GCJ=no
16239   export_dynamic_flag_spec_GCJ=
16240   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16241   hardcode_automatic_GCJ=no
16242   hardcode_direct_GCJ=no
16243   hardcode_direct_absolute_GCJ=no
16244   hardcode_libdir_flag_spec_GCJ=
16245   hardcode_libdir_flag_spec_ld_GCJ=
16246   hardcode_libdir_separator_GCJ=
16247   hardcode_minus_L_GCJ=no
16248   hardcode_shlibpath_var_GCJ=unsupported
16249   inherit_rpath_GCJ=no
16250   link_all_deplibs_GCJ=unknown
16251   module_cmds_GCJ=
16252   module_expsym_cmds_GCJ=
16253   old_archive_from_new_cmds_GCJ=
16254   old_archive_from_expsyms_cmds_GCJ=
16255   thread_safe_flag_spec_GCJ=
16256   whole_archive_flag_spec_GCJ=
16257   # include_expsyms should be a list of space-separated symbols to be *always*
16258   # included in the symbol list
16259   include_expsyms_GCJ=
16260   # exclude_expsyms can be an extended regexp of symbols to exclude
16261   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16262   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16263   # as well as any symbol that contains `d'.
16264   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16265   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16266   # platforms (ab)use it in PIC code, but their linkers get confused if
16267   # the symbol is explicitly referenced.  Since portable code cannot
16268   # rely on this symbol name, it's probably fine to never include it in
16269   # preloaded symbol tables.
16270   extract_expsyms_cmds=
16271
16272   case $host_os in
16273   cygwin* | mingw* | pw32*)
16274     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16275     # When not using gcc, we currently assume that we are using
16276     # Microsoft Visual C++.
16277     if test "$GCC" != yes; then
16278       with_gnu_ld=no
16279     fi
16280     ;;
16281   interix*)
16282     # we just hope/assume this is gcc and not c89 (= MSVC++)
16283     with_gnu_ld=yes
16284     ;;
16285   openbsd*)
16286     with_gnu_ld=no
16287     ;;
16288   esac
16289
16290   ld_shlibs_GCJ=yes
16291   if test "$with_gnu_ld" = yes; then
16292     # If archive_cmds runs LD, not CC, wlarc should be empty
16293     wlarc='${wl}'
16294
16295     # Set some defaults for GNU ld with shared library support. These
16296     # are reset later if shared libraries are not supported. Putting them
16297     # here allows them to be overridden if necessary.
16298     runpath_var=LD_RUN_PATH
16299     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16300     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16301     # ancient GNU ld didn't support --whole-archive et. al.
16302     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16303       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16304     else
16305       whole_archive_flag_spec_GCJ=
16306     fi
16307     supports_anon_versioning=no
16308     case `$LD -v 2>&1` in
16309       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16310       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16311       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16312       *\ 2.11.*) ;; # other 2.11 versions
16313       *) supports_anon_versioning=yes ;;
16314     esac
16315
16316     # See if GNU ld supports shared libraries.
16317     case $host_os in
16318     aix3* | aix4* | aix5*)
16319       # On AIX/PPC, the GNU linker is very broken
16320       if test "$host_cpu" != ia64; then
16321         ld_shlibs_GCJ=no
16322         cat <<_LT_EOF 1>&2
16323
16324 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16325 *** to be unable to reliably create shared libraries on AIX.
16326 *** Therefore, libtool is disabling shared libraries support.  If you
16327 *** really care for shared libraries, you may want to modify your PATH
16328 *** so that a non-GNU linker is found, and then restart.
16329
16330 _LT_EOF
16331       fi
16332       ;;
16333
16334     amigaos*)
16335       if test "$host_cpu" = m68k; then
16336         archive_cmds_GCJ='$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)'
16337         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16338         hardcode_minus_L_GCJ=yes
16339       fi
16340
16341       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16342       # that the semantics of dynamic libraries on AmigaOS, at least up
16343       # to version 4, is to share data among multiple programs linked
16344       # with the same dynamic library.  Since this doesn't match the
16345       # behavior of shared libraries on other platforms, we can't use
16346       # them.
16347       ld_shlibs_GCJ=no
16348       ;;
16349
16350     beos*)
16351       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16352         allow_undefined_flag_GCJ=unsupported
16353         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16354         # support --undefined.  This deserves some investigation.  FIXME
16355         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16356       else
16357         ld_shlibs_GCJ=no
16358       fi
16359       ;;
16360
16361     cygwin* | mingw* | pw32*)
16362       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16363       # as there is no search path for DLLs.
16364       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16365       allow_undefined_flag_GCJ=unsupported
16366       always_export_symbols_GCJ=no
16367       enable_shared_with_static_runtimes_GCJ=yes
16368       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16369
16370       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16371         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16372         # If the export-symbols file already is a .def file (1st line
16373         # is EXPORTS), use it as is; otherwise, prepend...
16374         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16375           cp $export_symbols $output_objdir/$soname.def;
16376         else
16377           echo EXPORTS > $output_objdir/$soname.def;
16378           cat $export_symbols >> $output_objdir/$soname.def;
16379         fi~
16380         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16381       else
16382         ld_shlibs_GCJ=no
16383       fi
16384       ;;
16385
16386     interix[3-9]*)
16387       hardcode_direct_GCJ=no
16388       hardcode_shlibpath_var_GCJ=no
16389       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16390       export_dynamic_flag_spec_GCJ='${wl}-E'
16391       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16392       # Instead, shared libraries are loaded at an image base (0x10000000 by
16393       # default) and relocated if they conflict, which is a slow very memory
16394       # consuming and fragmenting process.  To avoid this, we pick a random,
16395       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16396       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16397       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16398       archive_expsym_cmds_GCJ='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'
16399       ;;
16400
16401     gnu* | linux* | tpf* | k*bsd*-gnu)
16402       tmp_diet=no
16403       if test "$host_os" = linux-dietlibc; then
16404         case $cc_basename in
16405           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16406         esac
16407       fi
16408       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16409          && test "$tmp_diet" = no
16410       then
16411         tmp_addflag=
16412         case $cc_basename,$host_cpu in
16413         pgcc*)                          # Portland Group C compiler
16414           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16415           tmp_addflag=' $pic_flag'
16416           ;;
16417         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16418           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
16419           tmp_addflag=' $pic_flag -Mnomain' ;;
16420         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16421           tmp_addflag=' -i_dynamic' ;;
16422         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16423           tmp_addflag=' -i_dynamic -nofor_main' ;;
16424         ifc* | ifort*)                  # Intel Fortran compiler
16425           tmp_addflag=' -nofor_main' ;;
16426         esac
16427         case `$CC -V 2>&1 | sed 5q` in
16428         *Sun\ C*)                       # Sun C 5.9
16429           whole_archive_flag_spec_GCJ='${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'
16430           compiler_needs_object_GCJ=yes
16431           tmp_sharedflag='-G' ;;
16432         *Sun\ F*)                       # Sun Fortran 8.3
16433           tmp_sharedflag='-G' ;;
16434         *)
16435           tmp_sharedflag='-shared' ;;
16436         esac
16437         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16438
16439         if test "x$supports_anon_versioning" = xyes; then
16440           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16441             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16442             echo "local: *; };" >> $output_objdir/$libname.ver~
16443             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16444         fi
16445       else
16446         ld_shlibs_GCJ=no
16447       fi
16448       ;;
16449
16450     netbsd*)
16451       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16452         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16453         wlarc=
16454       else
16455         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16456         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16457       fi
16458       ;;
16459
16460     solaris*)
16461       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16462         ld_shlibs_GCJ=no
16463         cat <<_LT_EOF 1>&2
16464
16465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16466 *** create shared libraries on Solaris systems.  Therefore, libtool
16467 *** is disabling shared libraries support.  We urge you to upgrade GNU
16468 *** binutils to release 2.9.1 or newer.  Another option is to modify
16469 *** your PATH or compiler configuration so that the native linker is
16470 *** used, and then restart.
16471
16472 _LT_EOF
16473       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16474         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16475         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16476       else
16477         ld_shlibs_GCJ=no
16478       fi
16479       ;;
16480
16481     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16482       case `$LD -v 2>&1` in
16483         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16484         ld_shlibs_GCJ=no
16485         cat <<_LT_EOF 1>&2
16486
16487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16488 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16489 *** is disabling shared libraries support.  We urge you to upgrade GNU
16490 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16491 *** your PATH or compiler configuration so that the native linker is
16492 *** used, and then restart.
16493
16494 _LT_EOF
16495         ;;
16496         *)
16497           # For security reasons, it is highly recommended that you always
16498           # use absolute paths for naming shared libraries, and exclude the
16499           # DT_RUNPATH tag from executables and libraries.  But doing so
16500           # requires that you compile everything twice, which is a pain.
16501           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16502             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16503             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16504             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16505           else
16506             ld_shlibs_GCJ=no
16507           fi
16508         ;;
16509       esac
16510       ;;
16511
16512     sunos4*)
16513       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16514       wlarc=
16515       hardcode_direct_GCJ=yes
16516       hardcode_shlibpath_var_GCJ=no
16517       ;;
16518
16519     *)
16520       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16521         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16522         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16523       else
16524         ld_shlibs_GCJ=no
16525       fi
16526       ;;
16527     esac
16528
16529     if test "$ld_shlibs_GCJ" = no; then
16530       runpath_var=
16531       hardcode_libdir_flag_spec_GCJ=
16532       export_dynamic_flag_spec_GCJ=
16533       whole_archive_flag_spec_GCJ=
16534     fi
16535   else
16536     # PORTME fill in a description of your system's linker (not GNU ld)
16537     case $host_os in
16538     aix3*)
16539       allow_undefined_flag_GCJ=unsupported
16540       always_export_symbols_GCJ=yes
16541       archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16542       # Note: this linker hardcodes the directories in LIBPATH if there
16543       # are no directories specified by -L.
16544       hardcode_minus_L_GCJ=yes
16545       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16546         # Neither direct hardcoding nor static linking is supported with a
16547         # broken collect2.
16548         hardcode_direct_GCJ=unsupported
16549       fi
16550       ;;
16551
16552     aix4* | aix5*)
16553       if test "$host_cpu" = ia64; then
16554         # On IA64, the linker does run time linking by default, so we don't
16555         # have to do anything special.
16556         aix_use_runtimelinking=no
16557         exp_sym_flag='-Bexport'
16558         no_entry_flag=""
16559       else
16560         # If we're using GNU nm, then we don't want the "-C" option.
16561         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16562         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16563           export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16564         else
16565           export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16566         fi
16567         aix_use_runtimelinking=no
16568
16569         # Test if we are trying to use run time linking or normal
16570         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16571         # need to do runtime linking.
16572         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16573           for ld_flag in $LDFLAGS; do
16574           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16575             aix_use_runtimelinking=yes
16576             break
16577           fi
16578           done
16579           ;;
16580         esac
16581
16582         exp_sym_flag='-bexport'
16583         no_entry_flag='-bnoentry'
16584       fi
16585
16586       # When large executables or shared objects are built, AIX ld can
16587       # have problems creating the table of contents.  If linking a library
16588       # or program results in "error TOC overflow" add -mminimal-toc to
16589       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16590       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16591
16592       archive_cmds_GCJ=''
16593       hardcode_direct_GCJ=yes
16594       hardcode_direct_absolute_GCJ=yes
16595       hardcode_libdir_separator_GCJ=':'
16596       link_all_deplibs_GCJ=yes
16597       file_list_spec_GCJ='${wl}-f,'
16598
16599       if test "$GCC" = yes; then
16600         case $host_os in aix4.[012]|aix4.[012].*)
16601         # We only want to do this on AIX 4.2 and lower, the check
16602         # below for broken collect2 doesn't work under 4.3+
16603           collect2name=`${CC} -print-prog-name=collect2`
16604           if test -f "$collect2name" &&
16605            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16606           then
16607           # We have reworked collect2
16608           :
16609           else
16610           # We have old collect2
16611           hardcode_direct_GCJ=unsupported
16612           # It fails to find uninstalled libraries when the uninstalled
16613           # path is not listed in the libpath.  Setting hardcode_minus_L
16614           # to unsupported forces relinking
16615           hardcode_minus_L_GCJ=yes
16616           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617           hardcode_libdir_separator_GCJ=
16618           fi
16619           ;;
16620         esac
16621         shared_flag='-shared'
16622         if test "$aix_use_runtimelinking" = yes; then
16623           shared_flag="$shared_flag "'${wl}-G'
16624         fi
16625       else
16626         # not using gcc
16627         if test "$host_cpu" = ia64; then
16628         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16629         # chokes on -Wl,-G. The following line is correct:
16630           shared_flag='-G'
16631         else
16632           if test "$aix_use_runtimelinking" = yes; then
16633             shared_flag='${wl}-G'
16634           else
16635             shared_flag='${wl}-bM:SRE'
16636           fi
16637         fi
16638       fi
16639
16640       # It seems that -bexpall does not export symbols beginning with
16641       # underscore (_), so it is better to generate a list of symbols to export.
16642       always_export_symbols_GCJ=yes
16643       if test "$aix_use_runtimelinking" = yes; then
16644         # Warning - without using the other runtime loading flags (-brtl),
16645         # -berok will link without error, but may produce a broken library.
16646         allow_undefined_flag_GCJ='-berok'
16647         # Determine the default libpath from the value encoded in an
16648         # empty executable.
16649         if test x$gcc_no_link = xyes; then
16650   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16651 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16652    { (exit 1); exit 1; }; }
16653 fi
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660
16661 int
16662 main ()
16663 {
16664
16665   ;
16666   return 0;
16667 }
16668 _ACEOF
16669 rm -f conftest.$ac_objext conftest$ac_exeext
16670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16671   (eval $ac_link) 2>conftest.er1
16672   ac_status=$?
16673   grep -v '^ *+' conftest.er1 >conftest.err
16674   rm -f conftest.er1
16675   cat conftest.err >&5
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); } &&
16678          { ac_try='test -z "$ac_c_werror_flag"
16679                          || test ! -s conftest.err'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; } &&
16685          { ac_try='test -s conftest$ac_exeext'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; }; then
16691
16692 lt_aix_libpath_sed='
16693     /Import File Strings/,/^$/ {
16694         /^0/ {
16695             s/^0  *\(.*\)$/\1/
16696             p
16697         }
16698     }'
16699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16700 # Check for a 64-bit object if we didn't find anything.
16701 if test -z "$aix_libpath"; then
16702   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16703 fi
16704 else
16705   echo "$as_me: failed program was:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16707
16708 fi
16709 rm -f conftest.err conftest.$ac_objext \
16710       conftest$ac_exeext conftest.$ac_ext
16711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16712
16713         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16714         archive_expsym_cmds_GCJ='$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"
16715       else
16716         if test "$host_cpu" = ia64; then
16717           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16718           allow_undefined_flag_GCJ="-z nodefs"
16719           archive_expsym_cmds_GCJ="\$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"
16720         else
16721          # Determine the default libpath from the value encoded in an
16722          # empty executable.
16723          if test x$gcc_no_link = xyes; then
16724   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16726    { (exit 1); exit 1; }; }
16727 fi
16728 cat >conftest.$ac_ext <<_ACEOF
16729 /* confdefs.h.  */
16730 _ACEOF
16731 cat confdefs.h >>conftest.$ac_ext
16732 cat >>conftest.$ac_ext <<_ACEOF
16733 /* end confdefs.h.  */
16734
16735 int
16736 main ()
16737 {
16738
16739   ;
16740   return 0;
16741 }
16742 _ACEOF
16743 rm -f conftest.$ac_objext conftest$ac_exeext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16745   (eval $ac_link) 2>conftest.er1
16746   ac_status=$?
16747   grep -v '^ *+' conftest.er1 >conftest.err
16748   rm -f conftest.er1
16749   cat conftest.err >&5
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); } &&
16752          { ac_try='test -z "$ac_c_werror_flag"
16753                          || test ! -s conftest.err'
16754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755   (eval $ac_try) 2>&5
16756   ac_status=$?
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); }; } &&
16759          { ac_try='test -s conftest$ac_exeext'
16760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761   (eval $ac_try) 2>&5
16762   ac_status=$?
16763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764   (exit $ac_status); }; }; then
16765
16766 lt_aix_libpath_sed='
16767     /Import File Strings/,/^$/ {
16768         /^0/ {
16769             s/^0  *\(.*\)$/\1/
16770             p
16771         }
16772     }'
16773 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16774 # Check for a 64-bit object if we didn't find anything.
16775 if test -z "$aix_libpath"; then
16776   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16777 fi
16778 else
16779   echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782 fi
16783 rm -f conftest.err conftest.$ac_objext \
16784       conftest$ac_exeext conftest.$ac_ext
16785 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16786
16787          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16788           # Warning - without using the other run time loading flags,
16789           # -berok will link without error, but may produce a broken library.
16790           no_undefined_flag_GCJ=' ${wl}-bernotok'
16791           allow_undefined_flag_GCJ=' ${wl}-berok'
16792           # Exported symbols can be pulled into shared objects from archives
16793           whole_archive_flag_spec_GCJ='$convenience'
16794           archive_cmds_need_lc_GCJ=yes
16795           # This is similar to how AIX traditionally builds its shared libraries.
16796           archive_expsym_cmds_GCJ="\$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'
16797         fi
16798       fi
16799       ;;
16800
16801     amigaos*)
16802       if test "$host_cpu" = m68k; then
16803         archive_cmds_GCJ='$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)'
16804         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805         hardcode_minus_L_GCJ=yes
16806       fi
16807       # see comment about different semantics on the GNU ld section
16808       ld_shlibs_GCJ=no
16809       ;;
16810
16811     bsdi[45]*)
16812       export_dynamic_flag_spec_GCJ=-rdynamic
16813       ;;
16814
16815     cygwin* | mingw* | pw32*)
16816       # When not using gcc, we currently assume that we are using
16817       # Microsoft Visual C++.
16818       # hardcode_libdir_flag_spec is actually meaningless, as there is
16819       # no search path for DLLs.
16820       hardcode_libdir_flag_spec_GCJ=' '
16821       allow_undefined_flag_GCJ=unsupported
16822       # Tell ltmain to make .lib files, not .a files.
16823       libext=lib
16824       # Tell ltmain to make .dll files, not .so files.
16825       shrext_cmds=".dll"
16826       # FIXME: Setting linknames here is a bad hack.
16827       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16828       # The linker will automatically build a .lib file if we build a DLL.
16829       old_archive_from_new_cmds_GCJ='true'
16830       # FIXME: Should let the user specify the lib program.
16831       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16832       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16833       enable_shared_with_static_runtimes_GCJ=yes
16834       ;;
16835
16836     darwin* | rhapsody*)
16837       case $host_os in
16838       rhapsody* | darwin1.[012])
16839         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16840         ;;
16841       *) # Darwin 1.3 on
16842         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16843         10.[012])
16844           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16845           ;;
16846         10.*)
16847           allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16848           ;;
16849         esac
16850         ;;
16851       esac
16852       archive_cmds_need_lc_GCJ=no
16853       hardcode_direct_GCJ=no
16854       hardcode_automatic_GCJ=yes
16855       hardcode_shlibpath_var_GCJ=unsupported
16856       whole_archive_flag_spec_GCJ=''
16857       link_all_deplibs_GCJ=yes
16858       if test "$GCC" = yes ; then
16859         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16860   echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862   lt_cv_apple_cc_single_mod=no
16863         if test -z "${LT_MULTI_MODULE}"; then
16864           # By default we will add the -single_module flag. You can override
16865           # by either setting the environment variable LT_MULTI_MODULE
16866           # non-empty at configure time, or by adding -multi-module to the
16867           # link flags.
16868           echo "int foo(void){return 1;}" > conftest.c
16869           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16870               -dynamiclib ${wl}-single_module conftest.c
16871           if test -f libconftest.dylib; then
16872               lt_cv_apple_cc_single_mod=yes
16873               rm libconftest.dylib
16874           fi
16875           rm conftest.$ac_ext
16876         fi
16877 fi
16878
16879         output_verbose_link_cmd=echo
16880         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16881           archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16882           archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16883         else
16884           archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16885           archive_expsym_cmds_GCJ='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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16886         fi
16887         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16888         module_expsym_cmds_GCJ='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16889       else
16890         case $cc_basename in
16891         xlc*)
16892           output_verbose_link_cmd=echo
16893           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16894           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16895           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16896           archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16897           module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16898           ;;
16899         *)
16900           ld_shlibs_GCJ=no
16901           ;;
16902         esac
16903       fi
16904       ;;
16905
16906     dgux*)
16907       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16909       hardcode_shlibpath_var_GCJ=no
16910       ;;
16911
16912     freebsd1*)
16913       ld_shlibs_GCJ=no
16914       ;;
16915
16916     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16917     # support.  Future versions do this automatically, but an explicit c++rt0.o
16918     # does not break anything, and helps significantly (at the cost of a little
16919     # extra space).
16920     freebsd2.2*)
16921       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16922       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16923       hardcode_direct_GCJ=yes
16924       hardcode_shlibpath_var_GCJ=no
16925       ;;
16926
16927     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16928     freebsd2*)
16929       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16930       hardcode_direct_GCJ=yes
16931       hardcode_minus_L_GCJ=yes
16932       hardcode_shlibpath_var_GCJ=no
16933       ;;
16934
16935     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16936     freebsd* | dragonfly*)
16937       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16938       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16939       hardcode_direct_GCJ=yes
16940       hardcode_shlibpath_var_GCJ=no
16941       ;;
16942
16943     hpux9*)
16944       if test "$GCC" = yes; then
16945         archive_cmds_GCJ='$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'
16946       else
16947         archive_cmds_GCJ='$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'
16948       fi
16949       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16950       hardcode_libdir_separator_GCJ=:
16951       hardcode_direct_GCJ=yes
16952
16953       # hardcode_minus_L: Not really in the search PATH,
16954       # but as the default location of the library.
16955       hardcode_minus_L_GCJ=yes
16956       export_dynamic_flag_spec_GCJ='${wl}-E'
16957       ;;
16958
16959     hpux10*)
16960       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16961         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16962       else
16963         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16964       fi
16965       if test "$with_gnu_ld" = no; then
16966         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16967         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16968         hardcode_libdir_separator_GCJ=:
16969         hardcode_direct_GCJ=yes
16970         hardcode_direct_absolute_GCJ=yes
16971         export_dynamic_flag_spec_GCJ='${wl}-E'
16972         # hardcode_minus_L: Not really in the search PATH,
16973         # but as the default location of the library.
16974         hardcode_minus_L_GCJ=yes
16975       fi
16976       ;;
16977
16978     hpux11*)
16979       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16980         case $host_cpu in
16981         hppa*64*)
16982           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16983           ;;
16984         ia64*)
16985           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16986           ;;
16987         *)
16988           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16989           ;;
16990         esac
16991       else
16992         case $host_cpu in
16993         hppa*64*)
16994           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16995           ;;
16996         ia64*)
16997           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16998           ;;
16999         *)
17000           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17001           ;;
17002         esac
17003       fi
17004       if test "$with_gnu_ld" = no; then
17005         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17006         hardcode_libdir_separator_GCJ=:
17007
17008         case $host_cpu in
17009         hppa*64*|ia64*)
17010           hardcode_direct_GCJ=no
17011           hardcode_shlibpath_var_GCJ=no
17012           ;;
17013         *)
17014           hardcode_direct_GCJ=yes
17015           hardcode_direct_absolute_GCJ=yes
17016           export_dynamic_flag_spec_GCJ='${wl}-E'
17017
17018           # hardcode_minus_L: Not really in the search PATH,
17019           # but as the default location of the library.
17020           hardcode_minus_L_GCJ=yes
17021           ;;
17022         esac
17023       fi
17024       ;;
17025
17026     irix5* | irix6* | nonstopux*)
17027       if test "$GCC" = yes; then
17028         archive_cmds_GCJ='$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'
17029         # Try to use the -exported_symbol ld option, if it does not
17030         # work, assume that -exports_file does not work either and
17031         # implicitly export all symbols.
17032         save_LDFLAGS="$LDFLAGS"
17033         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17034         if test x$gcc_no_link = xyes; then
17035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17037    { (exit 1); exit 1; }; }
17038 fi
17039 cat >conftest.$ac_ext <<_ACEOF
17040 int foo(void) {}
17041 _ACEOF
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17044   (eval $ac_link) 2>conftest.er1
17045   ac_status=$?
17046   grep -v '^ *+' conftest.er1 >conftest.err
17047   rm -f conftest.er1
17048   cat conftest.err >&5
17049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050   (exit $ac_status); } &&
17051          { ac_try='test -z "$ac_c_werror_flag"
17052                          || test ! -s conftest.err'
17053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17054   (eval $ac_try) 2>&5
17055   ac_status=$?
17056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }; } &&
17058          { ac_try='test -s conftest$ac_exeext'
17059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060   (eval $ac_try) 2>&5
17061   ac_status=$?
17062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063   (exit $ac_status); }; }; then
17064   archive_expsym_cmds_GCJ='$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'
17065
17066 else
17067   echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 fi
17071 rm -f conftest.err conftest.$ac_objext \
17072       conftest$ac_exeext conftest.$ac_ext
17073         LDFLAGS="$save_LDFLAGS"
17074       else
17075         archive_cmds_GCJ='$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'
17076         archive_expsym_cmds_GCJ='$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'
17077       fi
17078       archive_cmds_need_lc_GCJ='no'
17079       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17080       hardcode_libdir_separator_GCJ=:
17081       inherit_rpath_GCJ=yes
17082       link_all_deplibs_GCJ=yes
17083       ;;
17084
17085     netbsd*)
17086       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17087         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17088       else
17089         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17090       fi
17091       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17092       hardcode_direct_GCJ=yes
17093       hardcode_shlibpath_var_GCJ=no
17094       ;;
17095
17096     newsos6)
17097       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17098       hardcode_direct_GCJ=yes
17099       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17100       hardcode_libdir_separator_GCJ=:
17101       hardcode_shlibpath_var_GCJ=no
17102       ;;
17103
17104     *nto* | *qnx*)
17105       ;;
17106
17107     openbsd*)
17108       hardcode_direct_GCJ=yes
17109       hardcode_shlibpath_var_GCJ=no
17110       hardcode_direct_absolute_GCJ=yes
17111       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17112         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17113         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17114         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17115         export_dynamic_flag_spec_GCJ='${wl}-E'
17116       else
17117         case $host_os in
17118         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17119           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17120           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17121           ;;
17122         *)
17123           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17124           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17125           ;;
17126         esac
17127       fi
17128       ;;
17129
17130     os2*)
17131       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17132       hardcode_minus_L_GCJ=yes
17133       allow_undefined_flag_GCJ=unsupported
17134       archive_cmds_GCJ='$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'
17135       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17136       ;;
17137
17138     osf3*)
17139       if test "$GCC" = yes; then
17140         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17141         archive_cmds_GCJ='$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'
17142       else
17143         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17144         archive_cmds_GCJ='$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'
17145       fi
17146       archive_cmds_need_lc_GCJ='no'
17147       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17148       hardcode_libdir_separator_GCJ=:
17149       ;;
17150
17151     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17152       if test "$GCC" = yes; then
17153         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17154         archive_cmds_GCJ='$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'
17155         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17156       else
17157         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17158         archive_cmds_GCJ='$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'
17159         archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17160         $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'
17161
17162         # Both c and cxx compiler support -rpath directly
17163         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17164       fi
17165       archive_cmds_need_lc_GCJ='no'
17166       hardcode_libdir_separator_GCJ=:
17167       ;;
17168
17169     solaris*)
17170       no_undefined_flag_GCJ=' -z defs'
17171       if test "$GCC" = yes; then
17172         wlarc='${wl}'
17173         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17174         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17175           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17176       else
17177         case `$CC -V 2>&1` in
17178         *"Compilers 5.0"*)
17179           wlarc=''
17180           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17181           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17182           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17183           ;;
17184         *)
17185           wlarc='${wl}'
17186           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17187           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17188           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17189           ;;
17190         esac
17191       fi
17192       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17193       hardcode_shlibpath_var_GCJ=no
17194       case $host_os in
17195       solaris2.[0-5] | solaris2.[0-5].*) ;;
17196       *)
17197         # The compiler driver will combine and reorder linker options,
17198         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17199         # but is careful enough not to reorder.
17200         # Supported since Solaris 2.6 (maybe 2.5.1?)
17201         if test "$GCC" = yes; then
17202           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17203         else
17204           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17205         fi
17206         ;;
17207       esac
17208       link_all_deplibs_GCJ=yes
17209       ;;
17210
17211     sunos4*)
17212       if test "x$host_vendor" = xsequent; then
17213         # Use $CC to link under sequent, because it throws in some extra .o
17214         # files that make .init and .fini sections work.
17215         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17216       else
17217         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17218       fi
17219       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17220       hardcode_direct_GCJ=yes
17221       hardcode_minus_L_GCJ=yes
17222       hardcode_shlibpath_var_GCJ=no
17223       ;;
17224
17225     sysv4)
17226       case $host_vendor in
17227         sni)
17228           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17229           hardcode_direct_GCJ=yes # is this really true???
17230         ;;
17231         siemens)
17232           ## LD is ld it makes a PLAMLIB
17233           ## CC just makes a GrossModule.
17234           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17235           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17236           hardcode_direct_GCJ=no
17237         ;;
17238         motorola)
17239           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17240           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17241         ;;
17242       esac
17243       runpath_var='LD_RUN_PATH'
17244       hardcode_shlibpath_var_GCJ=no
17245       ;;
17246
17247     sysv4.3*)
17248       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17249       hardcode_shlibpath_var_GCJ=no
17250       export_dynamic_flag_spec_GCJ='-Bexport'
17251       ;;
17252
17253     sysv4*MP*)
17254       if test -d /usr/nec; then
17255         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17256         hardcode_shlibpath_var_GCJ=no
17257         runpath_var=LD_RUN_PATH
17258         hardcode_runpath_var=yes
17259         ld_shlibs_GCJ=yes
17260       fi
17261       ;;
17262
17263     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17264       no_undefined_flag_GCJ='${wl}-z,text'
17265       archive_cmds_need_lc_GCJ=no
17266       hardcode_shlibpath_var_GCJ=no
17267       runpath_var='LD_RUN_PATH'
17268
17269       if test "$GCC" = yes; then
17270         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17271         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17272       else
17273         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17274         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17275       fi
17276       ;;
17277
17278     sysv5* | sco3.2v5* | sco5v6*)
17279       # Note: We can NOT use -z defs as we might desire, because we do not
17280       # link with -lc, and that would cause any symbols used from libc to
17281       # always be unresolved, which means just about no library would
17282       # ever link correctly.  If we're not using GNU ld we use -z text
17283       # though, which does catch some bad symbols but isn't as heavy-handed
17284       # as -z defs.
17285       no_undefined_flag_GCJ='${wl}-z,text'
17286       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17287       archive_cmds_need_lc_GCJ=no
17288       hardcode_shlibpath_var_GCJ=no
17289       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17290       hardcode_libdir_separator_GCJ=':'
17291       link_all_deplibs_GCJ=yes
17292       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17293       runpath_var='LD_RUN_PATH'
17294
17295       if test "$GCC" = yes; then
17296         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17297         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17298       else
17299         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17300         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17301       fi
17302       ;;
17303
17304     uts4*)
17305       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17306       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17307       hardcode_shlibpath_var_GCJ=no
17308       ;;
17309
17310     *)
17311       ld_shlibs_GCJ=no
17312       ;;
17313     esac
17314
17315     if test x$host_vendor = xsni; then
17316       case $host in
17317       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17318         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17319         ;;
17320       esac
17321     fi
17322   fi
17323
17324 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17325 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17326 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17327
17328 with_gnu_ld_GCJ=$with_gnu_ld
17329
17330
17331
17332
17333
17334
17335 #
17336 # Do we need to explicitly link libc?
17337 #
17338 case "x$archive_cmds_need_lc_GCJ" in
17339 x|xyes)
17340   # Assume -lc should be added
17341   archive_cmds_need_lc_GCJ=yes
17342
17343   if test "$enable_shared" = yes && test "$GCC" = yes; then
17344     case $archive_cmds_GCJ in
17345     *'~'*)
17346       # FIXME: we may have to deal with multi-command sequences.
17347       ;;
17348     '$CC '*)
17349       # Test whether the compiler implicitly links with -lc since on some
17350       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17351       # to ld, don't add -lc before -lgcc.
17352       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17354       $RM conftest*
17355       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17356
17357       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358   (eval $ac_compile) 2>&5
17359   ac_status=$?
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } 2>conftest.err; then
17362         soname=conftest
17363         lib=conftest
17364         libobjs=conftest.$ac_objext
17365         deplibs=
17366         wl=$lt_prog_compiler_wl_GCJ
17367         pic_flag=$lt_prog_compiler_pic_GCJ
17368         compiler_flags=-v
17369         linker_flags=-v
17370         verstring=
17371         output_objdir=.
17372         libname=conftest
17373         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17374         allow_undefined_flag_GCJ=
17375         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17376   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17377   ac_status=$?
17378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379   (exit $ac_status); }
17380         then
17381           archive_cmds_need_lc_GCJ=no
17382         else
17383           archive_cmds_need_lc_GCJ=yes
17384         fi
17385         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17386       else
17387         cat conftest.err 1>&5
17388       fi
17389       $RM conftest*
17390       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17391 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17392       ;;
17393     esac
17394   fi
17395   ;;
17396 esac
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17463 withGCC=$GCC
17464 library_names_spec=
17465 libname_spec='lib$name'
17466 soname_spec=
17467 shrext_cmds=".so"
17468 postinstall_cmds=
17469 postuninstall_cmds=
17470 finish_cmds=
17471 finish_eval=
17472 shlibpath_var=
17473 shlibpath_overrides_runpath=unknown
17474 version_type=none
17475 dynamic_linker="$host_os ld.so"
17476 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17477 need_lib_prefix=unknown
17478 hardcode_into_libs=no
17479
17480 # when you set need_version to no, make sure it does not cause -set_version
17481 # flags to be left without arguments
17482 need_version=unknown
17483
17484 case $host_os in
17485 aix3*)
17486   version_type=linux
17487   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17488   shlibpath_var=LIBPATH
17489
17490   # AIX 3 has no versioning support, so we append a major version to the name.
17491   soname_spec='${libname}${release}${shared_ext}$major'
17492   ;;
17493
17494 aix4* | aix5*)
17495   version_type=linux
17496   need_lib_prefix=no
17497   need_version=no
17498   hardcode_into_libs=yes
17499   if test "$host_cpu" = ia64; then
17500     # AIX 5 supports IA64
17501     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17502     shlibpath_var=LD_LIBRARY_PATH
17503   else
17504     # With GCC up to 2.95.x, collect2 would create an import file
17505     # for dependence libraries.  The import file would start with
17506     # the line `#! .'.  This would cause the generated library to
17507     # depend on `.', always an invalid library.  This was fixed in
17508     # development snapshots of GCC prior to 3.0.
17509     case $host_os in
17510       aix4 | aix4.[01] | aix4.[01].*)
17511       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17512            echo ' yes '
17513            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17514         :
17515       else
17516         can_build_shared=no
17517       fi
17518       ;;
17519     esac
17520     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17521     # soname into executable. Probably we can add versioning support to
17522     # collect2, so additional links can be useful in future.
17523     if test "$aix_use_runtimelinking" = yes; then
17524       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17525       # instead of lib<name>.a to let people know that these are not
17526       # typical AIX shared libraries.
17527       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528     else
17529       # We preserve .a as extension for shared libraries through AIX4.2
17530       # and later when we are not doing run time linking.
17531       library_names_spec='${libname}${release}.a $libname.a'
17532       soname_spec='${libname}${release}${shared_ext}$major'
17533     fi
17534     shlibpath_var=LIBPATH
17535   fi
17536   ;;
17537
17538 amigaos*)
17539   if test "$host_cpu" = m68k; then
17540     library_names_spec='$libname.ixlibrary $libname.a'
17541     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17542     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'
17543   else
17544     dynamic_linker=no
17545   fi
17546   ;;
17547
17548 beos*)
17549   library_names_spec='${libname}${shared_ext}'
17550   dynamic_linker="$host_os ld.so"
17551   shlibpath_var=LIBRARY_PATH
17552   ;;
17553
17554 bsdi[45]*)
17555   version_type=linux
17556   need_version=no
17557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17558   soname_spec='${libname}${release}${shared_ext}$major'
17559   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17560   shlibpath_var=LD_LIBRARY_PATH
17561   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17562   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17563   # the default ld.so.conf also contains /usr/contrib/lib and
17564   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17565   # libtool to hard-code these into programs
17566   ;;
17567
17568 cygwin* | mingw* | pw32*)
17569   version_type=windows
17570   shrext_cmds=".dll"
17571   need_version=no
17572   need_lib_prefix=no
17573
17574   case $withGCC,$host_os in
17575   yes,cygwin* | yes,mingw* | yes,pw32*)
17576     library_names_spec='$libname.dll.a'
17577     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17578     postinstall_cmds='base_file=`basename \${file}`~
17579       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17580       dldir=$destdir/`dirname \$dlpath`~
17581       test -d \$dldir || mkdir -p \$dldir~
17582       $install_prog $dir/$dlname \$dldir/$dlname~
17583       chmod a+x \$dldir/$dlname~
17584       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17585         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17586       fi'
17587     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17588       dlpath=$dir/\$dldll~
17589        $RM \$dlpath'
17590     shlibpath_overrides_runpath=yes
17591
17592     case $host_os in
17593     cygwin*)
17594       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17595       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17596       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17597       ;;
17598     mingw*)
17599       # MinGW DLLs use traditional 'lib' prefix
17600       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17601       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17602       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17603         # It is most probably a Windows format PATH printed by
17604         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17605         # path with ; separators, and with drive letters. We can handle the
17606         # drive letters (cygwin fileutils understands them), so leave them,
17607         # especially as we might pass files found there to a mingw objdump,
17608         # which wouldn't understand a cygwinified path. Ahh.
17609         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17610       else
17611         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17612       fi
17613       ;;
17614     pw32*)
17615       # pw32 DLLs use 'pw' prefix rather than 'lib'
17616       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17617       ;;
17618     esac
17619     ;;
17620
17621   *)
17622     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17623     ;;
17624   esac
17625   dynamic_linker='Win32 ld.exe'
17626   # FIXME: first we should search . and the directory the executable is in
17627   shlibpath_var=PATH
17628   ;;
17629
17630 darwin* | rhapsody*)
17631   dynamic_linker="$host_os dyld"
17632   version_type=darwin
17633   need_lib_prefix=no
17634   need_version=no
17635   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17636   soname_spec='${libname}${release}${major}$shared_ext'
17637   shlibpath_overrides_runpath=yes
17638   shlibpath_var=DYLD_LIBRARY_PATH
17639   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17640
17641   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17642   ;;
17643
17644 dgux*)
17645   version_type=linux
17646   need_lib_prefix=no
17647   need_version=no
17648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17649   soname_spec='${libname}${release}${shared_ext}$major'
17650   shlibpath_var=LD_LIBRARY_PATH
17651   ;;
17652
17653 freebsd1*)
17654   dynamic_linker=no
17655   ;;
17656
17657 freebsd* | dragonfly*)
17658   # DragonFly does not have aout.  When/if they implement a new
17659   # versioning mechanism, adjust this.
17660   if test -x /usr/bin/objformat; then
17661     objformat=`/usr/bin/objformat`
17662   else
17663     case $host_os in
17664     freebsd[123]*) objformat=aout ;;
17665     *) objformat=elf ;;
17666     esac
17667   fi
17668   version_type=freebsd-$objformat
17669   case $version_type in
17670     freebsd-elf*)
17671       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17672       need_version=no
17673       need_lib_prefix=no
17674       ;;
17675     freebsd-*)
17676       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17677       need_version=yes
17678       ;;
17679   esac
17680   shlibpath_var=LD_LIBRARY_PATH
17681   case $host_os in
17682   freebsd2*)
17683     shlibpath_overrides_runpath=yes
17684     ;;
17685   freebsd3.[01]* | freebsdelf3.[01]*)
17686     shlibpath_overrides_runpath=yes
17687     hardcode_into_libs=yes
17688     ;;
17689   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17690   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17691     shlibpath_overrides_runpath=no
17692     hardcode_into_libs=yes
17693     ;;
17694   *) # from 4.6 on, and DragonFly
17695     shlibpath_overrides_runpath=yes
17696     hardcode_into_libs=yes
17697     ;;
17698   esac
17699   ;;
17700
17701 gnu*)
17702   version_type=linux
17703   need_lib_prefix=no
17704   need_version=no
17705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17706   soname_spec='${libname}${release}${shared_ext}$major'
17707   shlibpath_var=LD_LIBRARY_PATH
17708   hardcode_into_libs=yes
17709   ;;
17710
17711 hpux9* | hpux10* | hpux11*)
17712   # Give a soname corresponding to the major version so that dld.sl refuses to
17713   # link against other versions.
17714   version_type=sunos
17715   need_lib_prefix=no
17716   need_version=no
17717   case $host_cpu in
17718   ia64*)
17719     shrext_cmds='.so'
17720     hardcode_into_libs=yes
17721     dynamic_linker="$host_os dld.so"
17722     shlibpath_var=LD_LIBRARY_PATH
17723     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17724     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17725     soname_spec='${libname}${release}${shared_ext}$major'
17726     if test "X$HPUX_IA64_MODE" = X32; then
17727       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17728     else
17729       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17730     fi
17731     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17732     ;;
17733   hppa*64*)
17734     shrext_cmds='.sl'
17735     hardcode_into_libs=yes
17736     dynamic_linker="$host_os dld.sl"
17737     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17738     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740     soname_spec='${libname}${release}${shared_ext}$major'
17741     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17742     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17743     ;;
17744   *)
17745     shrext_cmds='.sl'
17746     dynamic_linker="$host_os dld.sl"
17747     shlibpath_var=SHLIB_PATH
17748     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17749     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17750     soname_spec='${libname}${release}${shared_ext}$major'
17751     ;;
17752   esac
17753   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17754   postinstall_cmds='chmod 555 $lib'
17755   ;;
17756
17757 interix[3-9]*)
17758   version_type=linux
17759   need_lib_prefix=no
17760   need_version=no
17761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17762   soname_spec='${libname}${release}${shared_ext}$major'
17763   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17764   shlibpath_var=LD_LIBRARY_PATH
17765   shlibpath_overrides_runpath=no
17766   hardcode_into_libs=yes
17767   ;;
17768
17769 irix5* | irix6* | nonstopux*)
17770   case $host_os in
17771     nonstopux*) version_type=nonstopux ;;
17772     *)
17773         if test "$lt_cv_prog_gnu_ld" = yes; then
17774                 version_type=linux
17775         else
17776                 version_type=irix
17777         fi ;;
17778   esac
17779   need_lib_prefix=no
17780   need_version=no
17781   soname_spec='${libname}${release}${shared_ext}$major'
17782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17783   case $host_os in
17784   irix5* | nonstopux*)
17785     libsuff= shlibsuff=
17786     ;;
17787   *)
17788     case $LD in # libtool.m4 will add one of these switches to LD
17789     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17790       libsuff= shlibsuff= libmagic=32-bit;;
17791     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17792       libsuff=32 shlibsuff=N32 libmagic=N32;;
17793     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17794       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17795     *) libsuff= shlibsuff= libmagic=never-match;;
17796     esac
17797     ;;
17798   esac
17799   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17800   shlibpath_overrides_runpath=no
17801   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17802   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17803   hardcode_into_libs=yes
17804   ;;
17805
17806 # No shared lib support for Linux oldld, aout, or coff.
17807 linux*oldld* | linux*aout* | linux*coff*)
17808   dynamic_linker=no
17809   ;;
17810
17811 # This must be Linux ELF.
17812 linux* | k*bsd*-gnu)
17813   version_type=linux
17814   need_lib_prefix=no
17815   need_version=no
17816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817   soname_spec='${libname}${release}${shared_ext}$major'
17818   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17819   shlibpath_var=LD_LIBRARY_PATH
17820   shlibpath_overrides_runpath=no
17821   # Some binutils ld are patched to set DT_RUNPATH
17822   save_LDFLAGS=$LDFLAGS
17823   save_libdir=$libdir
17824   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17825        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17826   if test x$gcc_no_link = xyes; then
17827   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17829    { (exit 1); exit 1; }; }
17830 fi
17831 cat >conftest.$ac_ext <<_ACEOF
17832 /* confdefs.h.  */
17833 _ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h.  */
17837
17838 int
17839 main ()
17840 {
17841
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17848   (eval $ac_link) 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag"
17856                          || test ! -s conftest.err'
17857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858   (eval $ac_try) 2>&5
17859   ac_status=$?
17860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861   (exit $ac_status); }; } &&
17862          { ac_try='test -s conftest$ac_exeext'
17863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864   (eval $ac_try) 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17869   shlibpath_overrides_runpath=yes
17870 fi
17871
17872 else
17873   echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17875
17876 fi
17877 rm -f conftest.err conftest.$ac_objext \
17878       conftest$ac_exeext conftest.$ac_ext
17879   LDFLAGS=$save_LDFLAGS
17880   libdir=$save_libdir
17881
17882   # This implies no fast_install, which is unacceptable.
17883   # Some rework will be needed to allow for fast_install
17884   # before this can be enabled.
17885   hardcode_into_libs=yes
17886
17887   # Append ld.so.conf contents to the search path
17888   if test -f /etc/ld.so.conf; then
17889     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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17890     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17891   fi
17892
17893   # We used to test for /lib/ld.so.1 and disable shared libraries on
17894   # powerpc, because MkLinux only supported shared libraries with the
17895   # GNU dynamic linker.  Since this was broken with cross compilers,
17896   # most powerpc-linux boxes support dynamic linking these days and
17897   # people can always --disable-shared, the test was removed, and we
17898   # assume the GNU/Linux dynamic linker is in use.
17899   dynamic_linker='GNU/Linux ld.so'
17900   ;;
17901
17902 netbsd*)
17903   version_type=sunos
17904   need_lib_prefix=no
17905   need_version=no
17906   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17908     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17909     dynamic_linker='NetBSD (a.out) ld.so'
17910   else
17911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17912     soname_spec='${libname}${release}${shared_ext}$major'
17913     dynamic_linker='NetBSD ld.elf_so'
17914   fi
17915   shlibpath_var=LD_LIBRARY_PATH
17916   shlibpath_overrides_runpath=yes
17917   hardcode_into_libs=yes
17918   ;;
17919
17920 newsos6)
17921   version_type=linux
17922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17923   shlibpath_var=LD_LIBRARY_PATH
17924   shlibpath_overrides_runpath=yes
17925   ;;
17926
17927 *nto* | *qnx*)
17928   version_type=qnx
17929   need_lib_prefix=no
17930   need_version=no
17931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932   soname_spec='${libname}${release}${shared_ext}$major'
17933   shlibpath_var=LD_LIBRARY_PATH
17934   shlibpath_overrides_runpath=no
17935   hardcode_into_libs=yes
17936   dynamic_linker='ldqnx.so'
17937   ;;
17938
17939 openbsd*)
17940   version_type=sunos
17941   sys_lib_dlsearch_path_spec="/usr/lib"
17942   need_lib_prefix=no
17943   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17944   case $host_os in
17945     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
17946     *)                          need_version=no  ;;
17947   esac
17948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17949   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17950   shlibpath_var=LD_LIBRARY_PATH
17951   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17952     case $host_os in
17953       openbsd2.[89] | openbsd2.[89].*)
17954         shlibpath_overrides_runpath=no
17955         ;;
17956       *)
17957         shlibpath_overrides_runpath=yes
17958         ;;
17959       esac
17960   else
17961     shlibpath_overrides_runpath=yes
17962   fi
17963   ;;
17964
17965 os2*)
17966   libname_spec='$name'
17967   shrext_cmds=".dll"
17968   need_lib_prefix=no
17969   library_names_spec='$libname${shared_ext} $libname.a'
17970   dynamic_linker='OS/2 ld.exe'
17971   shlibpath_var=LIBPATH
17972   ;;
17973
17974 osf3* | osf4* | osf5*)
17975   version_type=osf
17976   need_lib_prefix=no
17977   need_version=no
17978   soname_spec='${libname}${release}${shared_ext}$major'
17979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980   shlibpath_var=LD_LIBRARY_PATH
17981   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17982   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17983   ;;
17984
17985 rdos*)
17986   dynamic_linker=no
17987   ;;
17988
17989 solaris*)
17990   version_type=linux
17991   need_lib_prefix=no
17992   need_version=no
17993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994   soname_spec='${libname}${release}${shared_ext}$major'
17995   shlibpath_var=LD_LIBRARY_PATH
17996   shlibpath_overrides_runpath=yes
17997   hardcode_into_libs=yes
17998   # ldd complains unless libraries are executable
17999   postinstall_cmds='chmod +x $lib'
18000   ;;
18001
18002 sunos4*)
18003   version_type=sunos
18004   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18005   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18006   shlibpath_var=LD_LIBRARY_PATH
18007   shlibpath_overrides_runpath=yes
18008   if test "$with_gnu_ld" = yes; then
18009     need_lib_prefix=no
18010   fi
18011   need_version=yes
18012   ;;
18013
18014 sysv4 | sysv4.3*)
18015   version_type=linux
18016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18017   soname_spec='${libname}${release}${shared_ext}$major'
18018   shlibpath_var=LD_LIBRARY_PATH
18019   case $host_vendor in
18020     sni)
18021       shlibpath_overrides_runpath=no
18022       need_lib_prefix=no
18023       runpath_var=LD_RUN_PATH
18024       ;;
18025     siemens)
18026       need_lib_prefix=no
18027       ;;
18028     motorola)
18029       need_lib_prefix=no
18030       need_version=no
18031       shlibpath_overrides_runpath=no
18032       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18033       ;;
18034   esac
18035   ;;
18036
18037 sysv4*MP*)
18038   if test -d /usr/nec ;then
18039     version_type=linux
18040     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18041     soname_spec='$libname${shared_ext}.$major'
18042     shlibpath_var=LD_LIBRARY_PATH
18043   fi
18044   ;;
18045
18046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18047   version_type=freebsd-elf
18048   need_lib_prefix=no
18049   need_version=no
18050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18051   soname_spec='${libname}${release}${shared_ext}$major'
18052   shlibpath_var=LD_LIBRARY_PATH
18053   shlibpath_overrides_runpath=yes
18054   hardcode_into_libs=yes
18055   if test "$with_gnu_ld" = yes; then
18056     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18057   else
18058     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18059     case $host_os in
18060       sco3.2v5*)
18061         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18062         ;;
18063     esac
18064   fi
18065   sys_lib_dlsearch_path_spec='/usr/lib'
18066   ;;
18067
18068 tpf*)
18069   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18070   version_type=linux
18071   need_lib_prefix=no
18072   need_version=no
18073   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074   shlibpath_var=LD_LIBRARY_PATH
18075   shlibpath_overrides_runpath=no
18076   hardcode_into_libs=yes
18077   ;;
18078
18079 uts4*)
18080   version_type=linux
18081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082   soname_spec='${libname}${release}${shared_ext}$major'
18083   shlibpath_var=LD_LIBRARY_PATH
18084   ;;
18085
18086 *)
18087   dynamic_linker=no
18088   ;;
18089 esac
18090 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18091 echo "${ECHO_T}$dynamic_linker" >&6
18092 test "$dynamic_linker" = no && can_build_shared=no
18093
18094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18095 if test "$GCC" = yes; then
18096   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18097 fi
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18135 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18136 hardcode_action_GCJ=
18137 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18138    test -n "$runpath_var_GCJ" ||
18139    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18140
18141   # We can hardcode non-existent directories.
18142   if test "$hardcode_direct_GCJ" != no &&
18143      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18144      # have to relink, otherwise we might link with an installed library
18145      # when we should be linking with a yet-to-be-installed one
18146      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18147      test "$hardcode_minus_L_GCJ" != no; then
18148     # Linking always hardcodes the temporary library directory.
18149     hardcode_action_GCJ=relink
18150   else
18151     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18152     hardcode_action_GCJ=immediate
18153   fi
18154 else
18155   # We cannot hardcode anything, or else we can only hardcode existing
18156   # directories.
18157   hardcode_action_GCJ=unsupported
18158 fi
18159 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18160 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18161
18162 if test "$hardcode_action_GCJ" = relink ||
18163    test "$inherit_rpath_GCJ" = yes; then
18164   # Fast installation is not supported
18165   enable_fast_install=no
18166 elif test "$shlibpath_overrides_runpath" = yes ||
18167      test "$enable_shared" = no; then
18168   # Fast installation is not necessary
18169   enable_fast_install=needless
18170 fi
18171
18172
18173
18174
18175
18176
18177
18178 fi
18179
18180 ac_ext=c
18181 ac_cpp='$CPP $CPPFLAGS'
18182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18185
18186 CC="$lt_save_CC"
18187
18188 if test "x$CC" != xcc; then
18189   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18190 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18191 else
18192   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18193 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18194 fi
18195 set dummy $CC; ac_cc=`echo $2 |
18196                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18197 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 int
18208 main ()
18209 {
18210
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 # Make sure it works both with $CC and with simple cc.
18216 # We do the test twice because some compilers refuse to overwrite an
18217 # existing .o file with -o, though they will create one.
18218 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18219 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225   (eval $ac_try) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); };
18229 then
18230   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18231   if test "x$CC" != xcc; then
18232     # Test first that cc exists at all.
18233     if { ac_try='cc -c conftest.$ac_ext >&5'
18234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235   (eval $ac_try) 2>&5
18236   ac_status=$?
18237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238   (exit $ac_status); }; }; then
18239       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18240       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241   (eval $ac_try) 2>&5
18242   ac_status=$?
18243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244   (exit $ac_status); } &&
18245          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); };
18250       then
18251         # cc works too.
18252         :
18253       else
18254         # cc exists but doesn't like -o.
18255         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18256       fi
18257     fi
18258   fi
18259 else
18260   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18261 fi
18262 rm -f conftest*
18263
18264 fi
18265 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18266   echo "$as_me:$LINENO: result: yes" >&5
18267 echo "${ECHO_T}yes" >&6
18268 else
18269   echo "$as_me:$LINENO: result: no" >&5
18270 echo "${ECHO_T}no" >&6
18271
18272 cat >>confdefs.h <<\_ACEOF
18273 #define NO_MINUS_C_MINUS_O 1
18274 _ACEOF
18275
18276 fi
18277
18278 # FIXME: we rely on the cache variable name because
18279 # there is no other way.
18280 set dummy $CC
18281 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18282 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18283    # Losing compiler, so override with the script.
18284    # FIXME: It is wrong to rewrite CC.
18285    # But if we don't then we get into trouble of one sort or another.
18286    # A longer-term fix would be to have automake use am__CC in this case,
18287    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18288    CC="$am_aux_dir/compile $CC"
18289 fi
18290
18291
18292
18293
18294 subdirs="$subdirs classpath libltdl"
18295
18296
18297 # The -no-testsuite modules omit the test subdir.
18298
18299
18300 if test -d $srcdir/testsuite; then
18301   TESTSUBDIR_TRUE=
18302   TESTSUBDIR_FALSE='#'
18303 else
18304   TESTSUBDIR_TRUE='#'
18305   TESTSUBDIR_FALSE=
18306 fi
18307
18308
18309 # Should the runtime set system properties by examining the
18310 # environment variable GCJ_PROPERTIES?
18311 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18312 if test "${enable_getenv_properties+set}" = set; then
18313   enableval="$enable_getenv_properties"
18314
18315 fi;
18316
18317 # Whether GCJ_PROPERTIES is used depends on the target.
18318 if test -z "$enable_getenv_properties"; then
18319    enable_getenv_properties=${enable_getenv_properties_default-yes}
18320 fi
18321 if test "$enable_getenv_properties" = no; then
18322
18323 cat >>confdefs.h <<\_ACEOF
18324 #define DISABLE_GETENV_PROPERTIES 1
18325 _ACEOF
18326
18327 fi
18328
18329 # Whether we should use arguments to main()
18330 if test -z "$enable_main_args"; then
18331    enable_main_args=${enable_main_args_default-yes}
18332 fi
18333 if test "$enable_main_args" = no; then
18334
18335 cat >>confdefs.h <<\_ACEOF
18336 #define DISABLE_MAIN_ARGS 1
18337 _ACEOF
18338
18339 fi
18340
18341
18342 # Should we use hashtable-based synchronization?
18343 # Currently works only for Linux X86/ia64
18344 # Typically faster and more space-efficient
18345 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18346 if test "${enable_hash_synchronization+set}" = set; then
18347   enableval="$enable_hash_synchronization"
18348
18349 fi;
18350
18351 if test -z "$enable_hash_synchronization"; then
18352    enable_hash_synchronization=$enable_hash_synchronization_default
18353 fi
18354
18355
18356 install_ecj_jar=no
18357 ECJ_BUILD_JAR=
18358 ECJ_JAR=
18359
18360 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18361 if test "${with_ecj_jar+set}" = set; then
18362   withval="$with_ecj_jar"
18363   ECJ_JAR=$withval
18364 else
18365   if test -f $multi_basedir/ecj.jar; then
18366            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18367            ECJ_JAR='$(jardir)/ecj.jar'
18368            install_ecj_jar=yes
18369          fi
18370 fi;
18371
18372
18373
18374
18375 if test "$ECJ_JAR" != ""; then
18376   BUILD_ECJ1_TRUE=
18377   BUILD_ECJ1_FALSE='#'
18378 else
18379   BUILD_ECJ1_TRUE='#'
18380   BUILD_ECJ1_FALSE=
18381 fi
18382
18383
18384
18385 if test $install_ecj_jar = yes; then
18386   INSTALL_ECJ_JAR_TRUE=
18387   INSTALL_ECJ_JAR_FALSE='#'
18388 else
18389   INSTALL_ECJ_JAR_TRUE='#'
18390   INSTALL_ECJ_JAR_FALSE=
18391 fi
18392
18393
18394
18395 # Check whether --with-java-home or --without-java-home was given.
18396 if test "${with_java_home+set}" = set; then
18397   withval="$with_java_home"
18398   JAVA_HOME="${withval}"
18399 else
18400   JAVA_HOME=""
18401 fi;
18402
18403
18404 if test ! -z "$JAVA_HOME"; then
18405   JAVA_HOME_SET_TRUE=
18406   JAVA_HOME_SET_FALSE='#'
18407 else
18408   JAVA_HOME_SET_TRUE='#'
18409   JAVA_HOME_SET_FALSE=
18410 fi
18411
18412
18413
18414 # What is the native OS API for MinGW?
18415
18416 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18417 if test "${with_win32_nlsapi+set}" = set; then
18418   withval="$with_win32_nlsapi"
18419   case "${withval}" in
18420   ansi) with_win32_nlsapi=ansi ;;
18421   unicows) with_win32_nlsapi=unicows ;;
18422   unicode) with_win32_nlsapi=unicode ;;
18423   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18424 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18425    { (exit 1); exit 1; }; } ;;
18426 esac
18427 else
18428   with_win32_nlsapi=ansi
18429 fi;
18430
18431 case "${with_win32_nlsapi}" in
18432   unicows | unicode)
18433
18434 cat >>confdefs.h <<\_ACEOF
18435 #define MINGW_LIBGCJ_UNICODE 1
18436 _ACEOF
18437
18438     ;;
18439 esac
18440
18441 # configure.host sets slow_pthread_self if the synchronization code should
18442 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18443 if test "${slow_pthread_self}" = "yes"; then
18444
18445 cat >>confdefs.h <<\_ACEOF
18446 #define SLOW_PTHREAD_SELF 1
18447 _ACEOF
18448
18449 fi
18450
18451 # Check for gc debugging.  This option is handled both here and in the GC.
18452 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18453 if test "${enable_gc_debug+set}" = set; then
18454   enableval="$enable_gc_debug"
18455    if test "$enable_gc_debug" = "yes"; then
18456
18457 cat >>confdefs.h <<\_ACEOF
18458 #define LIBGCJ_GC_DEBUG 1
18459 _ACEOF
18460
18461   fi
18462 fi;
18463
18464 # See if the user has the interpreter included.
18465 # Check whether --enable-interpreter or --disable-interpreter was given.
18466 if test "${enable_interpreter+set}" = set; then
18467   enableval="$enable_interpreter"
18468   if test "$enable_interpreter" = yes; then
18469     # This can also be set in configure.host.
18470     libgcj_interpreter=yes
18471   elif test "$enable_interpreter" = no; then
18472     libgcj_interpreter=no
18473   fi
18474 fi;
18475
18476 if test "$libgcj_interpreter" = yes; then
18477
18478 cat >>confdefs.h <<\_ACEOF
18479 #define INTERPRETER 1
18480 _ACEOF
18481
18482 fi
18483 INTERPRETER="$libgcj_interpreter"
18484
18485
18486 echo "$as_me:$LINENO: checking for exception model to use" >&5
18487 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18488 ac_ext=cc
18489 ac_cpp='$CXXCPP $CPPFLAGS'
18490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18493
18494 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18495 if test "${enable_sjlj_exceptions+set}" = set; then
18496   enableval="$enable_sjlj_exceptions"
18497   :
18498 else
18499   cat > conftest.$ac_ext << EOF
18500 #line 18500 "configure"
18501 struct S { ~S(); };
18502 void bar();
18503 void foo()
18504 {
18505   S s;
18506   bar();
18507 }
18508 EOF
18509 old_CXXFLAGS="$CXXFLAGS"
18510 CXXFLAGS=-S
18511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18512   (eval $ac_compile) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; then
18516   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18517     enable_sjlj_exceptions=yes
18518   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18519     enable_sjlj_exceptions=no
18520   fi
18521 fi
18522 CXXFLAGS="$old_CXXFLAGS"
18523 rm -f conftest*
18524 fi;
18525 if test x$enable_sjlj_exceptions = xyes; then
18526
18527 cat >>confdefs.h <<\_ACEOF
18528 #define SJLJ_EXCEPTIONS 1
18529 _ACEOF
18530
18531   ac_exception_model_name=sjlj
18532 elif test x$enable_sjlj_exceptions = xno; then
18533   ac_exception_model_name="call frame"
18534 else
18535   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18536 echo "$as_me: error: unable to detect exception model" >&2;}
18537    { (exit 1); exit 1; }; }
18538 fi
18539 ac_ext=c
18540 ac_cpp='$CPP $CPPFLAGS'
18541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18544
18545 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18546 echo "${ECHO_T}$ac_exception_model_name" >&6
18547
18548 # If we are non using SJLJ exceptions, and this host does not have support
18549 # for unwinding from a signal handler, enable checked dereferences and divides.
18550 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18551   CHECKREFSPEC=-fcheck-references
18552   DIVIDESPEC=-fuse-divide-subroutine
18553   EXCEPTIONSPEC=
18554 fi
18555
18556 # See if the user wants to disable java.net.  This is the mildly
18557 # ugly way that we admit that target-side configuration sucks.
18558 # Check whether --enable-java-net or --disable-java-net was given.
18559 if test "${enable_java_net+set}" = set; then
18560   enableval="$enable_java_net"
18561
18562 fi;
18563
18564 # Whether java.net is built by default can depend on the target.
18565 if test -z "$enable_java_net"; then
18566    enable_java_net=${enable_java_net_default-yes}
18567 fi
18568 if test "$enable_java_net" = no; then
18569
18570 cat >>confdefs.h <<\_ACEOF
18571 #define DISABLE_JAVA_NET 1
18572 _ACEOF
18573
18574 fi
18575
18576 # See if the user wants to configure without libffi.  Some
18577 # architectures don't support it, and default values are set in
18578 # configure.host.
18579
18580 # Check whether --with-libffi or --without-libffi was given.
18581 if test "${with_libffi+set}" = set; then
18582   withval="$with_libffi"
18583   :
18584 else
18585   with_libffi=${with_libffi_default-yes}
18586 fi;
18587
18588 LIBFFI=
18589 LIBFFIINCS=
18590 if test "$with_libffi" != no; then
18591
18592 cat >>confdefs.h <<\_ACEOF
18593 #define USE_LIBFFI 1
18594 _ACEOF
18595
18596    LIBFFI=../libffi/libffi_convenience.la
18597    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18598 fi
18599
18600
18601
18602 # See if the user wants to disable JVMPI support.
18603 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18604 if test "${enable_jvmpi+set}" = set; then
18605   enableval="$enable_jvmpi"
18606
18607 fi;
18608
18609 if test "$enable_jvmpi" != no; then
18610
18611 cat >>confdefs.h <<\_ACEOF
18612 #define ENABLE_JVMPI 1
18613 _ACEOF
18614
18615 fi
18616
18617 # If the target is an eCos system, use the appropriate eCos
18618 # I/O routines.
18619 # FIXME: this should not be a local option but a global target
18620 # system; at present there is no eCos target.
18621 TARGET_ECOS=${PROCESS-"no"}
18622
18623 # Check whether --with-ecos or --without-ecos was given.
18624 if test "${with_ecos+set}" = set; then
18625   withval="$with_ecos"
18626   TARGET_ECOS="$with_ecos"
18627
18628 fi;
18629
18630 case "$TARGET_ECOS" in
18631    no) case "$host" in
18632       *mingw*)
18633             PLATFORM=Win32
18634             PLATFORMNET=Win32
18635             PLATFORMH=win32.h
18636
18637 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18638 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18639 LD_PROG=`$CC --print-prog-name=ld`
18640 LD_VERSION=`$LD_PROG --version`
18641 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18642 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18643 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18644   LD_OK="ok"
18645 else
18646   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18647     LD_OK="ok"
18648   fi
18649 fi
18650 if test "x$LD_OK" != x; then
18651   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18652 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18653 else
18654   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18655 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18656   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18657 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18658
18659 cat >>confdefs.h <<\_ACEOF
18660 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18661 _ACEOF
18662
18663 fi
18664       ;;
18665       *)
18666             PLATFORM=Posix
18667             PLATFORMNET=Posix
18668             PLATFORMH=posix.h
18669       ;;
18670       esac
18671       ;;
18672    *)
18673       PLATFORM=Ecos
18674       PLATFORMNET=NoNet
18675
18676 cat >>confdefs.h <<\_ACEOF
18677 #define ECOS 1
18678 _ACEOF
18679
18680       PLATFORMH=posix.h
18681       ;;
18682 esac
18683
18684           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18685
18686
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h.  */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h.  */
18693 #include <stdint.h>
18694
18695 _ACEOF
18696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18697   $EGREP "uint32_t" >/dev/null 2>&1; then
18698
18699 cat >>confdefs.h <<\_ACEOF
18700 #define HAVE_INT32_DEFINED 1
18701 _ACEOF
18702
18703 fi
18704 rm -f conftest*
18705
18706 cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h.  */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h.  */
18712 #include <inttypes.h>
18713
18714 _ACEOF
18715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18716   $EGREP "uint32_t" >/dev/null 2>&1; then
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_INT32_DEFINED 1
18720 _ACEOF
18721
18722 fi
18723 rm -f conftest*
18724
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h.  */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h.  */
18731 #include <sys/types.h>
18732
18733 _ACEOF
18734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18735   $EGREP "u_int32_t" >/dev/null 2>&1; then
18736
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_BSD_INT32_DEFINED 1
18739 _ACEOF
18740
18741 fi
18742 rm -f conftest*
18743
18744 cat >conftest.$ac_ext <<_ACEOF
18745 /* confdefs.h.  */
18746 _ACEOF
18747 cat confdefs.h >>conftest.$ac_ext
18748 cat >>conftest.$ac_ext <<_ACEOF
18749 /* end confdefs.h.  */
18750 #include <sys/config.h>
18751
18752 _ACEOF
18753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18754   $EGREP "u_int32_t" >/dev/null 2>&1; then
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define HAVE_BSD_INT32_DEFINED 1
18758 _ACEOF
18759
18760 fi
18761 rm -f conftest*
18762
18763
18764
18765
18766 if test "$PLATFORM" = Win32; then
18767   USING_WIN32_PLATFORM_TRUE=
18768   USING_WIN32_PLATFORM_FALSE='#'
18769 else
18770   USING_WIN32_PLATFORM_TRUE='#'
18771   USING_WIN32_PLATFORM_FALSE=
18772 fi
18773
18774
18775
18776 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18777   USING_POSIX_PLATFORM_TRUE=
18778   USING_POSIX_PLATFORM_FALSE='#'
18779 else
18780   USING_POSIX_PLATFORM_TRUE='#'
18781   USING_POSIX_PLATFORM_FALSE=
18782 fi
18783
18784
18785 case "$host" in
18786   *-darwin*) DARWIN_CRT=true ;;
18787   *) DARWIN_CRT=false ;;
18788 esac
18789
18790
18791 if $DARWIN_CRT; then
18792   USING_DARWIN_CRT_TRUE=
18793   USING_DARWIN_CRT_FALSE='#'
18794 else
18795   USING_DARWIN_CRT_TRUE='#'
18796   USING_DARWIN_CRT_FALSE=
18797 fi
18798
18799
18800 # This may not be defined in a non-ANS conformant embedded system.
18801 # FIXME: Should these case a runtime exception in that case?
18802 cat >conftest.$ac_ext <<_ACEOF
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 #include <time.h>
18809
18810 _ACEOF
18811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18812   $EGREP "localtime" >/dev/null 2>&1; then
18813
18814 cat >>confdefs.h <<\_ACEOF
18815 #define HAVE_LOCALTIME 1
18816 _ACEOF
18817
18818 fi
18819 rm -f conftest*
18820
18821
18822 # Create the subdirectory for natFile.cc, or the attempt
18823 # to create the link will fail.
18824 test -d java || mkdir java
18825 test -d java/io || mkdir java/io
18826 test -d gnu || mkdir gnu
18827           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18828
18829
18830 # Likewise for natConcreteProcess.cc.
18831 test -d java/lang || mkdir java/lang
18832           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18833
18834
18835 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18836 test -d java/net || mkdir java/net
18837           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18838
18839           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18840
18841
18842 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18843 test -d gnu/java || mkdir gnu/java
18844 test -d gnu/java/net || mkdir gnu/java/net
18845           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18846
18847           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18848
18849
18850 # Likewise for natVMPipe.cc and natVMSelector.cc.
18851 test -d gnu/java/nio || mkdir gnu/java/nio
18852           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18853
18854           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18855
18856
18857 # Likewise for natFileChannelImpl.cc
18858 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18859           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18860
18861
18862 case "${host}" in
18863     *mingw*)
18864       SYSTEMSPEC="-lgdi32 -lws2_32"
18865       if test "${with_win32_nlsapi}" = "unicows"; then
18866         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18867       fi
18868     ;;
18869     *)
18870       SYSTEMSPEC=
18871     ;;
18872 esac
18873
18874
18875 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
18876
18877
18878
18879 # Check whether --with-system-zlib or --without-system-zlib was given.
18880 if test "${with_system_zlib+set}" = set; then
18881   withval="$with_system_zlib"
18882
18883 fi;
18884 ZLIBSPEC=
18885
18886 ZLIBTESTSPEC=
18887
18888
18889 echo "$as_me:$LINENO: checking for X" >&5
18890 echo $ECHO_N "checking for X... $ECHO_C" >&6
18891
18892
18893 # Check whether --with-x or --without-x was given.
18894 if test "${with_x+set}" = set; then
18895   withval="$with_x"
18896
18897 fi;
18898 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18899 if test "x$with_x" = xno; then
18900   # The user explicitly disabled X.
18901   have_x=disabled
18902 else
18903   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18904     # Both variables are already set.
18905     have_x=yes
18906   else
18907     if test "${ac_cv_have_x+set}" = set; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910   # One or both of the vars are not set, and there is no cached value.
18911 ac_x_includes=no ac_x_libraries=no
18912 rm -fr conftest.dir
18913 if mkdir conftest.dir; then
18914   cd conftest.dir
18915   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18916   cat >Imakefile <<'_ACEOF'
18917 acfindx:
18918         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18919 _ACEOF
18920   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18921     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18922     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18923     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18924     for ac_extension in a so sl; do
18925       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18926          test -f $ac_im_libdir/libX11.$ac_extension; then
18927         ac_im_usrlibdir=$ac_im_libdir; break
18928       fi
18929     done
18930     # Screen out bogus values from the imake configuration.  They are
18931     # bogus both because they are the default anyway, and because
18932     # using them would break gcc on systems where it needs fixed includes.
18933     case $ac_im_incroot in
18934         /usr/include) ;;
18935         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18936     esac
18937     case $ac_im_usrlibdir in
18938         /usr/lib | /lib) ;;
18939         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18940     esac
18941   fi
18942   cd ..
18943   rm -fr conftest.dir
18944 fi
18945
18946 # Standard set of common directories for X headers.
18947 # Check X11 before X11Rn because it is often a symlink to the current release.
18948 ac_x_header_dirs='
18949 /usr/X11/include
18950 /usr/X11R6/include
18951 /usr/X11R5/include
18952 /usr/X11R4/include
18953
18954 /usr/include/X11
18955 /usr/include/X11R6
18956 /usr/include/X11R5
18957 /usr/include/X11R4
18958
18959 /usr/local/X11/include
18960 /usr/local/X11R6/include
18961 /usr/local/X11R5/include
18962 /usr/local/X11R4/include
18963
18964 /usr/local/include/X11
18965 /usr/local/include/X11R6
18966 /usr/local/include/X11R5
18967 /usr/local/include/X11R4
18968
18969 /usr/X386/include
18970 /usr/x386/include
18971 /usr/XFree86/include/X11
18972
18973 /usr/include
18974 /usr/local/include
18975 /usr/unsupported/include
18976 /usr/athena/include
18977 /usr/local/x11r5/include
18978 /usr/lpp/Xamples/include
18979
18980 /usr/openwin/include
18981 /usr/openwin/share/include'
18982
18983 if test "$ac_x_includes" = no; then
18984   # Guess where to find include files, by looking for Xlib.h.
18985   # First, try using that file with no special directory specified.
18986   cat >conftest.$ac_ext <<_ACEOF
18987 /* confdefs.h.  */
18988 _ACEOF
18989 cat confdefs.h >>conftest.$ac_ext
18990 cat >>conftest.$ac_ext <<_ACEOF
18991 /* end confdefs.h.  */
18992 #include <X11/Xlib.h>
18993 _ACEOF
18994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } >/dev/null; then
19002   if test -s conftest.err; then
19003     ac_cpp_err=$ac_c_preproc_warn_flag
19004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19005   else
19006     ac_cpp_err=
19007   fi
19008 else
19009   ac_cpp_err=yes
19010 fi
19011 if test -z "$ac_cpp_err"; then
19012   # We can compile using X headers with no special include directory.
19013 ac_x_includes=
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018   for ac_dir in $ac_x_header_dirs; do
19019   if test -r "$ac_dir/X11/Xlib.h"; then
19020     ac_x_includes=$ac_dir
19021     break
19022   fi
19023 done
19024 fi
19025 rm -f conftest.err conftest.$ac_ext
19026 fi # $ac_x_includes = no
19027
19028 if test "$ac_x_libraries" = no; then
19029   # Check for the libraries.
19030   # See if we find them without any special options.
19031   # Don't add to $LIBS permanently.
19032   ac_save_LIBS=$LIBS
19033   LIBS="-lX11 $LIBS"
19034   if test x$gcc_no_link = xyes; then
19035   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19037    { (exit 1); exit 1; }; }
19038 fi
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045 #include <X11/Xlib.h>
19046 int
19047 main ()
19048 {
19049 XrmInitialize ()
19050   ;
19051   return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext conftest$ac_exeext
19055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19056   (eval $ac_link) 2>conftest.er1
19057   ac_status=$?
19058   grep -v '^ *+' conftest.er1 >conftest.err
19059   rm -f conftest.er1
19060   cat conftest.err >&5
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); } &&
19063          { ac_try='test -z "$ac_c_werror_flag"
19064                          || test ! -s conftest.err'
19065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066   (eval $ac_try) 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }; } &&
19070          { ac_try='test -s conftest$ac_exeext'
19071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072   (eval $ac_try) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); }; }; then
19076   LIBS=$ac_save_LIBS
19077 # We can link X programs with no special library path.
19078 ac_x_libraries=
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 LIBS=$ac_save_LIBS
19084 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19085 do
19086   # Don't even attempt the hair of trying to link an X program!
19087   for ac_extension in a so sl; do
19088     if test -r $ac_dir/libXt.$ac_extension; then
19089       ac_x_libraries=$ac_dir
19090       break 2
19091     fi
19092   done
19093 done
19094 fi
19095 rm -f conftest.err conftest.$ac_objext \
19096       conftest$ac_exeext conftest.$ac_ext
19097 fi # $ac_x_libraries = no
19098
19099 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19100   # Didn't find X anywhere.  Cache the known absence of X.
19101   ac_cv_have_x="have_x=no"
19102 else
19103   # Record where we found X for the cache.
19104   ac_cv_have_x="have_x=yes \
19105                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19106 fi
19107 fi
19108
19109   fi
19110   eval "$ac_cv_have_x"
19111 fi # $with_x != no
19112
19113 if test "$have_x" != yes; then
19114   echo "$as_me:$LINENO: result: $have_x" >&5
19115 echo "${ECHO_T}$have_x" >&6
19116   no_x=yes
19117 else
19118   # If each of the values was on the command line, it overrides each guess.
19119   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19120   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19121   # Update the cache value to reflect the command line values.
19122   ac_cv_have_x="have_x=yes \
19123                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19124   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19125 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19126 fi
19127
19128 if test "$no_x" = yes; then
19129   # Not all programs may use this symbol, but it does not hurt to define it.
19130
19131 cat >>confdefs.h <<\_ACEOF
19132 #define X_DISPLAY_MISSING 1
19133 _ACEOF
19134
19135   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19136 else
19137   if test -n "$x_includes"; then
19138     X_CFLAGS="$X_CFLAGS -I$x_includes"
19139   fi
19140
19141   # It would also be nice to do this for all -L options, not just this one.
19142   if test -n "$x_libraries"; then
19143     X_LIBS="$X_LIBS -L$x_libraries"
19144     # For Solaris; some versions of Sun CC require a space after -R and
19145     # others require no space.  Words are not sufficient . . . .
19146     case `(uname -sr) 2>/dev/null` in
19147     "SunOS 5"*)
19148       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19149 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19150       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19151       if test x$gcc_no_link = xyes; then
19152   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19154    { (exit 1); exit 1; }; }
19155 fi
19156 cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162
19163 int
19164 main ()
19165 {
19166
19167   ;
19168   return 0;
19169 }
19170 _ACEOF
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19173   (eval $ac_link) 2>conftest.er1
19174   ac_status=$?
19175   grep -v '^ *+' conftest.er1 >conftest.err
19176   rm -f conftest.er1
19177   cat conftest.err >&5
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); } &&
19180          { ac_try='test -z "$ac_c_werror_flag"
19181                          || test ! -s conftest.err'
19182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183   (eval $ac_try) 2>&5
19184   ac_status=$?
19185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186   (exit $ac_status); }; } &&
19187          { ac_try='test -s conftest$ac_exeext'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; }; then
19193   ac_R_nospace=yes
19194 else
19195   echo "$as_me: failed program was:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19197
19198 ac_R_nospace=no
19199 fi
19200 rm -f conftest.err conftest.$ac_objext \
19201       conftest$ac_exeext conftest.$ac_ext
19202       if test $ac_R_nospace = yes; then
19203         echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6
19205         X_LIBS="$X_LIBS -R$x_libraries"
19206       else
19207         LIBS="$ac_xsave_LIBS -R $x_libraries"
19208         if test x$gcc_no_link = xyes; then
19209   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19210 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19211    { (exit 1); exit 1; }; }
19212 fi
19213 cat >conftest.$ac_ext <<_ACEOF
19214 /* confdefs.h.  */
19215 _ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h.  */
19219
19220 int
19221 main ()
19222 {
19223
19224   ;
19225   return 0;
19226 }
19227 _ACEOF
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19230   (eval $ac_link) 2>conftest.er1
19231   ac_status=$?
19232   grep -v '^ *+' conftest.er1 >conftest.err
19233   rm -f conftest.er1
19234   cat conftest.err >&5
19235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236   (exit $ac_status); } &&
19237          { ac_try='test -z "$ac_c_werror_flag"
19238                          || test ! -s conftest.err'
19239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240   (eval $ac_try) 2>&5
19241   ac_status=$?
19242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243   (exit $ac_status); }; } &&
19244          { ac_try='test -s conftest$ac_exeext'
19245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246   (eval $ac_try) 2>&5
19247   ac_status=$?
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); }; }; then
19250   ac_R_space=yes
19251 else
19252   echo "$as_me: failed program was:" >&5
19253 sed 's/^/| /' conftest.$ac_ext >&5
19254
19255 ac_R_space=no
19256 fi
19257 rm -f conftest.err conftest.$ac_objext \
19258       conftest$ac_exeext conftest.$ac_ext
19259         if test $ac_R_space = yes; then
19260           echo "$as_me:$LINENO: result: yes" >&5
19261 echo "${ECHO_T}yes" >&6
19262           X_LIBS="$X_LIBS -R $x_libraries"
19263         else
19264           echo "$as_me:$LINENO: result: neither works" >&5
19265 echo "${ECHO_T}neither works" >&6
19266         fi
19267       fi
19268       LIBS=$ac_xsave_LIBS
19269     esac
19270   fi
19271
19272   # Check for system-dependent libraries X programs must link with.
19273   # Do this before checking for the system-independent R6 libraries
19274   # (-lICE), since we may need -lsocket or whatever for X linking.
19275
19276   if test "$ISC" = yes; then
19277     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19278   else
19279     # Martyn Johnson says this is needed for Ultrix, if the X
19280     # libraries were built with DECnet support.  And Karl Berry says
19281     # the Alpha needs dnet_stub (dnet does not exist).
19282     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19283     if test x$gcc_no_link = xyes; then
19284   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19285 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19286    { (exit 1); exit 1; }; }
19287 fi
19288 cat >conftest.$ac_ext <<_ACEOF
19289 /* confdefs.h.  */
19290 _ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h.  */
19294
19295 /* Override any gcc2 internal prototype to avoid an error.  */
19296 #ifdef __cplusplus
19297 extern "C"
19298 #endif
19299 /* We use char because int might match the return type of a gcc2
19300    builtin and then its argument prototype would still apply.  */
19301 char XOpenDisplay ();
19302 int
19303 main ()
19304 {
19305 XOpenDisplay ();
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312   (eval $ac_link) 2>conftest.er1
19313   ac_status=$?
19314   grep -v '^ *+' conftest.er1 >conftest.err
19315   rm -f conftest.er1
19316   cat conftest.err >&5
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } &&
19319          { ac_try='test -z "$ac_c_werror_flag"
19320                          || test ! -s conftest.err'
19321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322   (eval $ac_try) 2>&5
19323   ac_status=$?
19324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325   (exit $ac_status); }; } &&
19326          { ac_try='test -s conftest$ac_exeext'
19327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328   (eval $ac_try) 2>&5
19329   ac_status=$?
19330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331   (exit $ac_status); }; }; then
19332   :
19333 else
19334   echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19338 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19339 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19340   echo $ECHO_N "(cached) $ECHO_C" >&6
19341 else
19342   ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-ldnet  $LIBS"
19344 if test x$gcc_no_link = xyes; then
19345   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19346 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19347    { (exit 1); exit 1; }; }
19348 fi
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h.  */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h.  */
19355
19356 /* Override any gcc2 internal prototype to avoid an error.  */
19357 #ifdef __cplusplus
19358 extern "C"
19359 #endif
19360 /* We use char because int might match the return type of a gcc2
19361    builtin and then its argument prototype would still apply.  */
19362 char dnet_ntoa ();
19363 int
19364 main ()
19365 {
19366 dnet_ntoa ();
19367   ;
19368   return 0;
19369 }
19370 _ACEOF
19371 rm -f conftest.$ac_objext conftest$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373   (eval $ac_link) 2>conftest.er1
19374   ac_status=$?
19375   grep -v '^ *+' conftest.er1 >conftest.err
19376   rm -f conftest.er1
19377   cat conftest.err >&5
19378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379   (exit $ac_status); } &&
19380          { ac_try='test -z "$ac_c_werror_flag"
19381                          || test ! -s conftest.err'
19382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383   (eval $ac_try) 2>&5
19384   ac_status=$?
19385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386   (exit $ac_status); }; } &&
19387          { ac_try='test -s conftest$ac_exeext'
19388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389   (eval $ac_try) 2>&5
19390   ac_status=$?
19391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392   (exit $ac_status); }; }; then
19393   ac_cv_lib_dnet_dnet_ntoa=yes
19394 else
19395   echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_cv_lib_dnet_dnet_ntoa=no
19399 fi
19400 rm -f conftest.err conftest.$ac_objext \
19401       conftest$ac_exeext conftest.$ac_ext
19402 LIBS=$ac_check_lib_save_LIBS
19403 fi
19404 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19405 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19406 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19407   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19408 fi
19409
19410     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19411       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19412 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19413 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19414   echo $ECHO_N "(cached) $ECHO_C" >&6
19415 else
19416   ac_check_lib_save_LIBS=$LIBS
19417 LIBS="-ldnet_stub  $LIBS"
19418 if test x$gcc_no_link = xyes; then
19419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19421    { (exit 1); exit 1; }; }
19422 fi
19423 cat >conftest.$ac_ext <<_ACEOF
19424 /* confdefs.h.  */
19425 _ACEOF
19426 cat confdefs.h >>conftest.$ac_ext
19427 cat >>conftest.$ac_ext <<_ACEOF
19428 /* end confdefs.h.  */
19429
19430 /* Override any gcc2 internal prototype to avoid an error.  */
19431 #ifdef __cplusplus
19432 extern "C"
19433 #endif
19434 /* We use char because int might match the return type of a gcc2
19435    builtin and then its argument prototype would still apply.  */
19436 char dnet_ntoa ();
19437 int
19438 main ()
19439 {
19440 dnet_ntoa ();
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 rm -f conftest.$ac_objext conftest$ac_exeext
19446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19447   (eval $ac_link) 2>conftest.er1
19448   ac_status=$?
19449   grep -v '^ *+' conftest.er1 >conftest.err
19450   rm -f conftest.er1
19451   cat conftest.err >&5
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } &&
19454          { ac_try='test -z "$ac_c_werror_flag"
19455                          || test ! -s conftest.err'
19456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19457   (eval $ac_try) 2>&5
19458   ac_status=$?
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); }; } &&
19461          { ac_try='test -s conftest$ac_exeext'
19462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19463   (eval $ac_try) 2>&5
19464   ac_status=$?
19465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19466   (exit $ac_status); }; }; then
19467   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19468 else
19469   echo "$as_me: failed program was:" >&5
19470 sed 's/^/| /' conftest.$ac_ext >&5
19471
19472 ac_cv_lib_dnet_stub_dnet_ntoa=no
19473 fi
19474 rm -f conftest.err conftest.$ac_objext \
19475       conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19477 fi
19478 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19479 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19480 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19481   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19482 fi
19483
19484     fi
19485 fi
19486 rm -f conftest.err conftest.$ac_objext \
19487       conftest$ac_exeext conftest.$ac_ext
19488     LIBS="$ac_xsave_LIBS"
19489
19490     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19491     # to get the SysV transport functions.
19492     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19493     # needs -lnsl.
19494     # The nsl library prevents programs from opening the X display
19495     # on Irix 5.2, according to T.E. Dickey.
19496     # The functions gethostbyname, getservbyname, and inet_addr are
19497     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19498     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19499 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19500 if test "${ac_cv_func_gethostbyname+set}" = set; then
19501   echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503   if test x$gcc_no_link = xyes; then
19504   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19506    { (exit 1); exit 1; }; }
19507 fi
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19516 #define gethostbyname innocuous_gethostbyname
19517
19518 /* System header to define __stub macros and hopefully few prototypes,
19519     which can conflict with char gethostbyname (); below.
19520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19521     <limits.h> exists even on freestanding compilers.  */
19522
19523 #ifdef __STDC__
19524 # include <limits.h>
19525 #else
19526 # include <assert.h>
19527 #endif
19528
19529 #undef gethostbyname
19530
19531 /* Override any gcc2 internal prototype to avoid an error.  */
19532 #ifdef __cplusplus
19533 extern "C"
19534 {
19535 #endif
19536 /* We use char because int might match the return type of a gcc2
19537    builtin and then its argument prototype would still apply.  */
19538 char gethostbyname ();
19539 /* The GNU C library defines this for functions which it implements
19540     to always fail with ENOSYS.  Some functions are actually named
19541     something starting with __ and the normal name is an alias.  */
19542 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19543 choke me
19544 #else
19545 char (*f) () = gethostbyname;
19546 #endif
19547 #ifdef __cplusplus
19548 }
19549 #endif
19550
19551 int
19552 main ()
19553 {
19554 return f != gethostbyname;
19555   ;
19556   return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19561   (eval $ac_link) 2>conftest.er1
19562   ac_status=$?
19563   grep -v '^ *+' conftest.er1 >conftest.err
19564   rm -f conftest.er1
19565   cat conftest.err >&5
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); } &&
19568          { ac_try='test -z "$ac_c_werror_flag"
19569                          || test ! -s conftest.err'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; } &&
19575          { ac_try='test -s conftest$ac_exeext'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; }; then
19581   ac_cv_func_gethostbyname=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586 ac_cv_func_gethostbyname=no
19587 fi
19588 rm -f conftest.err conftest.$ac_objext \
19589       conftest$ac_exeext conftest.$ac_ext
19590 fi
19591 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19592 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19593
19594     if test $ac_cv_func_gethostbyname = no; then
19595       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19596 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19597 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600   ac_check_lib_save_LIBS=$LIBS
19601 LIBS="-lnsl  $LIBS"
19602 if test x$gcc_no_link = xyes; then
19603   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19604 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19605    { (exit 1); exit 1; }; }
19606 fi
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613
19614 /* Override any gcc2 internal prototype to avoid an error.  */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 /* We use char because int might match the return type of a gcc2
19619    builtin and then its argument prototype would still apply.  */
19620 char gethostbyname ();
19621 int
19622 main ()
19623 {
19624 gethostbyname ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631   (eval $ac_link) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest$ac_exeext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_lib_nsl_gethostbyname=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_cv_lib_nsl_gethostbyname=no
19657 fi
19658 rm -f conftest.err conftest.$ac_objext \
19659       conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19663 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19664 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19665   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19666 fi
19667
19668       if test $ac_cv_lib_nsl_gethostbyname = no; then
19669         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19670 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19671 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19672   echo $ECHO_N "(cached) $ECHO_C" >&6
19673 else
19674   ac_check_lib_save_LIBS=$LIBS
19675 LIBS="-lbsd  $LIBS"
19676 if test x$gcc_no_link = xyes; then
19677   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19678 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19679    { (exit 1); exit 1; }; }
19680 fi
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h.  */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h.  */
19687
19688 /* Override any gcc2 internal prototype to avoid an error.  */
19689 #ifdef __cplusplus
19690 extern "C"
19691 #endif
19692 /* We use char because int might match the return type of a gcc2
19693    builtin and then its argument prototype would still apply.  */
19694 char gethostbyname ();
19695 int
19696 main ()
19697 {
19698 gethostbyname ();
19699   ;
19700   return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705   (eval $ac_link) 2>conftest.er1
19706   ac_status=$?
19707   grep -v '^ *+' conftest.er1 >conftest.err
19708   rm -f conftest.er1
19709   cat conftest.err >&5
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); } &&
19712          { ac_try='test -z "$ac_c_werror_flag"
19713                          || test ! -s conftest.err'
19714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715   (eval $ac_try) 2>&5
19716   ac_status=$?
19717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718   (exit $ac_status); }; } &&
19719          { ac_try='test -s conftest$ac_exeext'
19720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721   (eval $ac_try) 2>&5
19722   ac_status=$?
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); }; }; then
19725   ac_cv_lib_bsd_gethostbyname=yes
19726 else
19727   echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730 ac_cv_lib_bsd_gethostbyname=no
19731 fi
19732 rm -f conftest.err conftest.$ac_objext \
19733       conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19737 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19738 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19739   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19740 fi
19741
19742       fi
19743     fi
19744
19745     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19746     # socket/setsockopt and other routines are undefined under SCO ODT
19747     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19748     # on later versions), says Simon Leinen: it contains gethostby*
19749     # variants that don't use the name server (or something).  -lsocket
19750     # must be given before -lnsl if both are needed.  We assume that
19751     # if connect needs -lnsl, so does gethostbyname.
19752     echo "$as_me:$LINENO: checking for connect" >&5
19753 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19754 if test "${ac_cv_func_connect+set}" = set; then
19755   echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757   if test x$gcc_no_link = xyes; then
19758   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19759 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19760    { (exit 1); exit 1; }; }
19761 fi
19762 cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19770 #define connect innocuous_connect
19771
19772 /* System header to define __stub macros and hopefully few prototypes,
19773     which can conflict with char connect (); below.
19774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775     <limits.h> exists even on freestanding compilers.  */
19776
19777 #ifdef __STDC__
19778 # include <limits.h>
19779 #else
19780 # include <assert.h>
19781 #endif
19782
19783 #undef connect
19784
19785 /* Override any gcc2 internal prototype to avoid an error.  */
19786 #ifdef __cplusplus
19787 extern "C"
19788 {
19789 #endif
19790 /* We use char because int might match the return type of a gcc2
19791    builtin and then its argument prototype would still apply.  */
19792 char connect ();
19793 /* The GNU C library defines this for functions which it implements
19794     to always fail with ENOSYS.  Some functions are actually named
19795     something starting with __ and the normal name is an alias.  */
19796 #if defined (__stub_connect) || defined (__stub___connect)
19797 choke me
19798 #else
19799 char (*f) () = connect;
19800 #endif
19801 #ifdef __cplusplus
19802 }
19803 #endif
19804
19805 int
19806 main ()
19807 {
19808 return f != connect;
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815   (eval $ac_link) 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } &&
19822          { ac_try='test -z "$ac_c_werror_flag"
19823                          || test ! -s conftest.err'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; } &&
19829          { ac_try='test -s conftest$ac_exeext'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   ac_cv_func_connect=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 ac_cv_func_connect=no
19841 fi
19842 rm -f conftest.err conftest.$ac_objext \
19843       conftest$ac_exeext conftest.$ac_ext
19844 fi
19845 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19846 echo "${ECHO_T}$ac_cv_func_connect" >&6
19847
19848     if test $ac_cv_func_connect = no; then
19849       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19850 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19851 if test "${ac_cv_lib_socket_connect+set}" = set; then
19852   echo $ECHO_N "(cached) $ECHO_C" >&6
19853 else
19854   ac_check_lib_save_LIBS=$LIBS
19855 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19856 if test x$gcc_no_link = xyes; then
19857   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19859    { (exit 1); exit 1; }; }
19860 fi
19861 cat >conftest.$ac_ext <<_ACEOF
19862 /* confdefs.h.  */
19863 _ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h.  */
19867
19868 /* Override any gcc2 internal prototype to avoid an error.  */
19869 #ifdef __cplusplus
19870 extern "C"
19871 #endif
19872 /* We use char because int might match the return type of a gcc2
19873    builtin and then its argument prototype would still apply.  */
19874 char connect ();
19875 int
19876 main ()
19877 {
19878 connect ();
19879   ;
19880   return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885   (eval $ac_link) 2>conftest.er1
19886   ac_status=$?
19887   grep -v '^ *+' conftest.er1 >conftest.err
19888   rm -f conftest.er1
19889   cat conftest.err >&5
19890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891   (exit $ac_status); } &&
19892          { ac_try='test -z "$ac_c_werror_flag"
19893                          || test ! -s conftest.err'
19894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895   (eval $ac_try) 2>&5
19896   ac_status=$?
19897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898   (exit $ac_status); }; } &&
19899          { ac_try='test -s conftest$ac_exeext'
19900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901   (eval $ac_try) 2>&5
19902   ac_status=$?
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); }; }; then
19905   ac_cv_lib_socket_connect=yes
19906 else
19907   echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ac_cv_lib_socket_connect=no
19911 fi
19912 rm -f conftest.err conftest.$ac_objext \
19913       conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19915 fi
19916 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19917 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19918 if test $ac_cv_lib_socket_connect = yes; then
19919   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19920 fi
19921
19922     fi
19923
19924     # Guillermo Gomez says -lposix is necessary on A/UX.
19925     echo "$as_me:$LINENO: checking for remove" >&5
19926 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19927 if test "${ac_cv_func_remove+set}" = set; then
19928   echo $ECHO_N "(cached) $ECHO_C" >&6
19929 else
19930   if test x$gcc_no_link = xyes; then
19931   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19932 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19933    { (exit 1); exit 1; }; }
19934 fi
19935 cat >conftest.$ac_ext <<_ACEOF
19936 /* confdefs.h.  */
19937 _ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h.  */
19941 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19943 #define remove innocuous_remove
19944
19945 /* System header to define __stub macros and hopefully few prototypes,
19946     which can conflict with char remove (); below.
19947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948     <limits.h> exists even on freestanding compilers.  */
19949
19950 #ifdef __STDC__
19951 # include <limits.h>
19952 #else
19953 # include <assert.h>
19954 #endif
19955
19956 #undef remove
19957
19958 /* Override any gcc2 internal prototype to avoid an error.  */
19959 #ifdef __cplusplus
19960 extern "C"
19961 {
19962 #endif
19963 /* We use char because int might match the return type of a gcc2
19964    builtin and then its argument prototype would still apply.  */
19965 char remove ();
19966 /* The GNU C library defines this for functions which it implements
19967     to always fail with ENOSYS.  Some functions are actually named
19968     something starting with __ and the normal name is an alias.  */
19969 #if defined (__stub_remove) || defined (__stub___remove)
19970 choke me
19971 #else
19972 char (*f) () = remove;
19973 #endif
19974 #ifdef __cplusplus
19975 }
19976 #endif
19977
19978 int
19979 main ()
19980 {
19981 return f != remove;
19982   ;
19983   return 0;
19984 }
19985 _ACEOF
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19988   (eval $ac_link) 2>conftest.er1
19989   ac_status=$?
19990   grep -v '^ *+' conftest.er1 >conftest.err
19991   rm -f conftest.er1
19992   cat conftest.err >&5
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -z "$ac_c_werror_flag"
19996                          || test ! -s conftest.err'
19997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998   (eval $ac_try) 2>&5
19999   ac_status=$?
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); }; } &&
20002          { ac_try='test -s conftest$ac_exeext'
20003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20004   (eval $ac_try) 2>&5
20005   ac_status=$?
20006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007   (exit $ac_status); }; }; then
20008   ac_cv_func_remove=yes
20009 else
20010   echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20012
20013 ac_cv_func_remove=no
20014 fi
20015 rm -f conftest.err conftest.$ac_objext \
20016       conftest$ac_exeext conftest.$ac_ext
20017 fi
20018 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20019 echo "${ECHO_T}$ac_cv_func_remove" >&6
20020
20021     if test $ac_cv_func_remove = no; then
20022       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20023 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20024 if test "${ac_cv_lib_posix_remove+set}" = set; then
20025   echo $ECHO_N "(cached) $ECHO_C" >&6
20026 else
20027   ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lposix  $LIBS"
20029 if test x$gcc_no_link = xyes; then
20030   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20031 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20032    { (exit 1); exit 1; }; }
20033 fi
20034 cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040
20041 /* Override any gcc2 internal prototype to avoid an error.  */
20042 #ifdef __cplusplus
20043 extern "C"
20044 #endif
20045 /* We use char because int might match the return type of a gcc2
20046    builtin and then its argument prototype would still apply.  */
20047 char remove ();
20048 int
20049 main ()
20050 {
20051 remove ();
20052   ;
20053   return 0;
20054 }
20055 _ACEOF
20056 rm -f conftest.$ac_objext conftest$ac_exeext
20057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20058   (eval $ac_link) 2>conftest.er1
20059   ac_status=$?
20060   grep -v '^ *+' conftest.er1 >conftest.err
20061   rm -f conftest.er1
20062   cat conftest.err >&5
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); } &&
20065          { ac_try='test -z "$ac_c_werror_flag"
20066                          || test ! -s conftest.err'
20067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068   (eval $ac_try) 2>&5
20069   ac_status=$?
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); }; } &&
20072          { ac_try='test -s conftest$ac_exeext'
20073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074   (eval $ac_try) 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; }; then
20078   ac_cv_lib_posix_remove=yes
20079 else
20080   echo "$as_me: failed program was:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20082
20083 ac_cv_lib_posix_remove=no
20084 fi
20085 rm -f conftest.err conftest.$ac_objext \
20086       conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20088 fi
20089 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20090 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20091 if test $ac_cv_lib_posix_remove = yes; then
20092   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20093 fi
20094
20095     fi
20096
20097     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20098     echo "$as_me:$LINENO: checking for shmat" >&5
20099 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20100 if test "${ac_cv_func_shmat+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   if test x$gcc_no_link = xyes; then
20104   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20106    { (exit 1); exit 1; }; }
20107 fi
20108 cat >conftest.$ac_ext <<_ACEOF
20109 /* confdefs.h.  */
20110 _ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h.  */
20114 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20116 #define shmat innocuous_shmat
20117
20118 /* System header to define __stub macros and hopefully few prototypes,
20119     which can conflict with char shmat (); below.
20120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20121     <limits.h> exists even on freestanding compilers.  */
20122
20123 #ifdef __STDC__
20124 # include <limits.h>
20125 #else
20126 # include <assert.h>
20127 #endif
20128
20129 #undef shmat
20130
20131 /* Override any gcc2 internal prototype to avoid an error.  */
20132 #ifdef __cplusplus
20133 extern "C"
20134 {
20135 #endif
20136 /* We use char because int might match the return type of a gcc2
20137    builtin and then its argument prototype would still apply.  */
20138 char shmat ();
20139 /* The GNU C library defines this for functions which it implements
20140     to always fail with ENOSYS.  Some functions are actually named
20141     something starting with __ and the normal name is an alias.  */
20142 #if defined (__stub_shmat) || defined (__stub___shmat)
20143 choke me
20144 #else
20145 char (*f) () = shmat;
20146 #endif
20147 #ifdef __cplusplus
20148 }
20149 #endif
20150
20151 int
20152 main ()
20153 {
20154 return f != shmat;
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext conftest$ac_exeext
20160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20161   (eval $ac_link) 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } &&
20168          { ac_try='test -z "$ac_c_werror_flag"
20169                          || test ! -s conftest.err'
20170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171   (eval $ac_try) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; } &&
20175          { ac_try='test -s conftest$ac_exeext'
20176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177   (eval $ac_try) 2>&5
20178   ac_status=$?
20179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180   (exit $ac_status); }; }; then
20181   ac_cv_func_shmat=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186 ac_cv_func_shmat=no
20187 fi
20188 rm -f conftest.err conftest.$ac_objext \
20189       conftest$ac_exeext conftest.$ac_ext
20190 fi
20191 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20192 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20193
20194     if test $ac_cv_func_shmat = no; then
20195       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20196 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20197 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20198   echo $ECHO_N "(cached) $ECHO_C" >&6
20199 else
20200   ac_check_lib_save_LIBS=$LIBS
20201 LIBS="-lipc  $LIBS"
20202 if test x$gcc_no_link = xyes; then
20203   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20205    { (exit 1); exit 1; }; }
20206 fi
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h.  */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h.  */
20213
20214 /* Override any gcc2 internal prototype to avoid an error.  */
20215 #ifdef __cplusplus
20216 extern "C"
20217 #endif
20218 /* We use char because int might match the return type of a gcc2
20219    builtin and then its argument prototype would still apply.  */
20220 char shmat ();
20221 int
20222 main ()
20223 {
20224 shmat ();
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 rm -f conftest.$ac_objext conftest$ac_exeext
20230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20231   (eval $ac_link) 2>conftest.er1
20232   ac_status=$?
20233   grep -v '^ *+' conftest.er1 >conftest.err
20234   rm -f conftest.er1
20235   cat conftest.err >&5
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } &&
20238          { ac_try='test -z "$ac_c_werror_flag"
20239                          || test ! -s conftest.err'
20240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20241   (eval $ac_try) 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }; } &&
20245          { ac_try='test -s conftest$ac_exeext'
20246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247   (eval $ac_try) 2>&5
20248   ac_status=$?
20249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); }; }; then
20251   ac_cv_lib_ipc_shmat=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256 ac_cv_lib_ipc_shmat=no
20257 fi
20258 rm -f conftest.err conftest.$ac_objext \
20259       conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20261 fi
20262 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20263 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20264 if test $ac_cv_lib_ipc_shmat = yes; then
20265   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20266 fi
20267
20268     fi
20269   fi
20270
20271   # Check for libraries that X11R6 Xt/Xaw programs need.
20272   ac_save_LDFLAGS=$LDFLAGS
20273   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20274   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20275   # check for ICE first), but we must link in the order -lSM -lICE or
20276   # we get undefined symbols.  So assume we have SM if we have ICE.
20277   # These have to be linked with before -lX11, unlike the other
20278   # libraries we check for below, so use a different variable.
20279   # John Interrante, Karl Berry
20280   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20281 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20282 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20283   echo $ECHO_N "(cached) $ECHO_C" >&6
20284 else
20285   ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20287 if test x$gcc_no_link = xyes; then
20288   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20289 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20290    { (exit 1); exit 1; }; }
20291 fi
20292 cat >conftest.$ac_ext <<_ACEOF
20293 /* confdefs.h.  */
20294 _ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h.  */
20298
20299 /* Override any gcc2 internal prototype to avoid an error.  */
20300 #ifdef __cplusplus
20301 extern "C"
20302 #endif
20303 /* We use char because int might match the return type of a gcc2
20304    builtin and then its argument prototype would still apply.  */
20305 char IceConnectionNumber ();
20306 int
20307 main ()
20308 {
20309 IceConnectionNumber ();
20310   ;
20311   return 0;
20312 }
20313 _ACEOF
20314 rm -f conftest.$ac_objext conftest$ac_exeext
20315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20316   (eval $ac_link) 2>conftest.er1
20317   ac_status=$?
20318   grep -v '^ *+' conftest.er1 >conftest.err
20319   rm -f conftest.er1
20320   cat conftest.err >&5
20321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322   (exit $ac_status); } &&
20323          { ac_try='test -z "$ac_c_werror_flag"
20324                          || test ! -s conftest.err'
20325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20326   (eval $ac_try) 2>&5
20327   ac_status=$?
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); }; } &&
20330          { ac_try='test -s conftest$ac_exeext'
20331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332   (eval $ac_try) 2>&5
20333   ac_status=$?
20334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335   (exit $ac_status); }; }; then
20336   ac_cv_lib_ICE_IceConnectionNumber=yes
20337 else
20338   echo "$as_me: failed program was:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20340
20341 ac_cv_lib_ICE_IceConnectionNumber=no
20342 fi
20343 rm -f conftest.err conftest.$ac_objext \
20344       conftest$ac_exeext conftest.$ac_ext
20345 LIBS=$ac_check_lib_save_LIBS
20346 fi
20347 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20348 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20349 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20350   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20351 fi
20352
20353   LDFLAGS=$ac_save_LDFLAGS
20354
20355 fi
20356
20357
20358 # FIXME: this should be _libs on some hosts.
20359 libsubdir=.libs
20360
20361 # extra LD Flags which are required for targets
20362 case "${host}" in
20363 *-*-darwin[0-7].*)
20364     # For now we have to disable it on darwin[8-9] because it slows down
20365     # the linking phase. A possible bug in ld?
20366     # on Darwin -single_module speeds up loading of the dynamic libraries.
20367     extra_ldflags_libjava=-Wl,-single_module
20368     ;;
20369 esac
20370
20371
20372 # Allow the GC to be disabled.  Can be useful when debugging.
20373 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20374 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20375 # Check whether --enable-java-gc or --disable-java-gc was given.
20376 if test "${enable_java_gc+set}" = set; then
20377   enableval="$enable_java_gc"
20378   GC=$enableval
20379 else
20380   GC=boehm
20381 fi;
20382 GCLIBS=
20383 GCINCS=
20384 GCDEPS=
20385 GCSPEC=
20386 JC1GCSPEC=
20387 GCTESTSPEC=
20388 case "$GC" in
20389  boehm)
20390     echo "$as_me:$LINENO: result: boehm" >&5
20391 echo "${ECHO_T}boehm" >&6
20392     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20393     JC1GCSPEC='-fuse-boehm-gc'
20394     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20395     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20396     GCOBJS=boehm.lo
20397     GCHDR=boehm-gc.h
20398     # The POSIX thread support needs to know this.
20399
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE_BOEHM_GC 1
20402 _ACEOF
20403
20404     ;;
20405  no)
20406     echo "$as_me:$LINENO: result: none" >&5
20407 echo "${ECHO_T}none" >&6
20408     GCHDR=no-gc.h
20409     ;;
20410  *)
20411     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20412 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20413    { (exit 1); exit 1; }; }
20414     ;;
20415 esac
20416
20417
20418
20419
20420
20421
20422           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20423
20424
20425
20426 if test "$GC" = boehm; then
20427   USING_BOEHMGC_TRUE=
20428   USING_BOEHMGC_FALSE='#'
20429 else
20430   USING_BOEHMGC_TRUE='#'
20431   USING_BOEHMGC_FALSE=
20432 fi
20433
20434
20435
20436 if test "$GC" = no; then
20437   USING_NOGC_TRUE=
20438   USING_NOGC_FALSE='#'
20439 else
20440   USING_NOGC_TRUE='#'
20441   USING_NOGC_FALSE=
20442 fi
20443
20444
20445
20446 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20447 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20448 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20449 echo "$as_me:$LINENO: result: $THREADS" >&5
20450 echo "${ECHO_T}$THREADS" >&6
20451
20452 case "$THREADS" in
20453  no | none | single)
20454     THREADS=none
20455     ;;
20456  posix | posix95 | pthreads)
20457     THREADS=posix
20458     case "$host" in
20459      *-*-linux*)
20460
20461 cat >>confdefs.h <<\_ACEOF
20462 #define LINUX_THREADS 1
20463 _ACEOF
20464
20465         ;;
20466     esac
20467     ;;
20468  win32)
20469     ;;
20470  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20471     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20472 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20473    { (exit 1); exit 1; }; }
20474     ;;
20475  *)
20476     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20477 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20478    { (exit 1); exit 1; }; }
20479     ;;
20480 esac
20481
20482 THREADCXXFLAGS=
20483 THREADLDFLAGS=
20484 THREADLIBS=
20485 THREADINCS=
20486 THREADDEPS=
20487 THREADH=
20488 THREADSPEC=
20489 THREADSTARTFILESPEC=
20490 case "$THREADS" in
20491  posix)
20492     case "$host" in
20493      *-*-cygwin*)
20494         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20495         ;;
20496      *-*-freebsd[1234]*)
20497         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20498         # merely adds pthread_* functions) but it does have a -pthread switch
20499         # which is required at link-time to select -lc_r *instead* of -lc.
20500         THREADLDFLAGS=-pthread
20501         # Don't set THREADSPEC here as might be expected since -pthread is
20502         # not processed when found within a spec file, it must come from
20503         # the command line.  For now, the user must provide the -pthread
20504         # switch to link code compiled with gcj.  In future, consider adding
20505         # support for weak references to pthread_* functions ala gthr.h API.
20506         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20507         ;;
20508      *-*-freebsd*)
20509         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20510         # systems which support threads and -lpthread.
20511         THREADLDFLAGS=-pthread
20512         THREADSPEC=-lpthread
20513         ;;
20514      alpha*-dec-osf* | hppa*-hp-hpux*)
20515         THREADCXXFLAGS=-pthread
20516         # boehm-gc needs some functions from librt, so link that too.
20517         THREADLIBS='-lpthread -lrt'
20518         THREADSPEC='-lpthread -lrt'
20519         ;;
20520      *)
20521         THREADLIBS=-lpthread
20522         THREADSPEC=-lpthread
20523         ;;
20524     esac
20525     THREADH=posix-threads.h
20526     # MIT pthreads doesn't seem to have the mutexattr functions.
20527     # But for now we don't check for it.  We just assume you aren't
20528     # using MIT pthreads.
20529
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20532 _ACEOF
20533
20534
20535     # If we're using the Boehm GC, then we happen to know that it
20536     # defines _REENTRANT, so we don't bother.  Eww.
20537     if test "$GC" != boehm; then
20538
20539 cat >>confdefs.h <<\_ACEOF
20540 #define _REENTRANT 1
20541 _ACEOF
20542
20543     fi
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define _POSIX_PTHREAD_SEMANTICS 1
20547 _ACEOF
20548
20549     ;;
20550
20551  win32)
20552     THREADH=win32-threads.h
20553     THREADCXXFLAGS=-mthreads
20554     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20555     # But we do not want the executables created to be dependent on
20556     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20557     # exception handling contexts.  The following kludge achieves this effect
20558     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20559     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20560     # A workaround is to explicitly use -mthreads while linking Java programs.
20561     # See PR libgcj/28263.
20562     #
20563     # FIXME: In Java we are able to detect thread death at the end of
20564     # Thread.run() so we should be able to clean up the exception handling
20565     # contexts ourselves.
20566     THREADSTARTFILESPEC='crtmt%O%s'
20567     ;;
20568
20569  none)
20570     THREADH=no-threads.h
20571     ;;
20572 esac
20573           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584 if test "$THREADS" = posix; then
20585   USING_POSIX_THREADS_TRUE=
20586   USING_POSIX_THREADS_FALSE='#'
20587 else
20588   USING_POSIX_THREADS_TRUE='#'
20589   USING_POSIX_THREADS_FALSE=
20590 fi
20591
20592
20593
20594 if test "$THREADS" = win32; then
20595   USING_WIN32_THREADS_TRUE=
20596   USING_WIN32_THREADS_FALSE='#'
20597 else
20598   USING_WIN32_THREADS_TRUE='#'
20599   USING_WIN32_THREADS_FALSE=
20600 fi
20601
20602
20603
20604 if test "$THREADS" = none; then
20605   USING_NO_THREADS_TRUE=
20606   USING_NO_THREADS_FALSE='#'
20607 else
20608   USING_NO_THREADS_TRUE='#'
20609   USING_NO_THREADS_FALSE=
20610 fi
20611
20612
20613
20614 if test "$use_libgcj_bc" = yes; then
20615   USE_LIBGCJ_BC_TRUE=
20616   USE_LIBGCJ_BC_FALSE='#'
20617 else
20618   USE_LIBGCJ_BC_TRUE='#'
20619   USE_LIBGCJ_BC_FALSE=
20620 fi
20621
20622
20623 if test -d sysdep; then true; else mkdir sysdep; fi
20624           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20625
20626           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20627
20628           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20629
20630
20631 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20632 if test "$use_libgcj_bc" = yes; then
20633   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20634 fi
20635
20636
20637 HASH_SYNC_SPEC=
20638 # Hash synchronization is only useful with posix threads right now.
20639 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20640    HASH_SYNC_SPEC=-fhash-synchronization
20641
20642 cat >>confdefs.h <<\_ACEOF
20643 #define JV_HASH_SYNCHRONIZATION 1
20644 _ACEOF
20645
20646 fi
20647
20648
20649
20650
20651 if test "$GCC" = yes; then
20652   USING_GCC_TRUE=
20653   USING_GCC_FALSE='#'
20654 else
20655   USING_GCC_TRUE='#'
20656   USING_GCC_FALSE=
20657 fi
20658
20659
20660 # We're in the tree with gcc, and need to include some of its headers.
20661 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20662
20663 if test "x${with_newlib}" = "xyes"; then
20664    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20665    # may not work correctly, because the compiler may not be able to
20666    # link executables.
20667
20668    # We assume newlib.  This lets us hard-code the functions we know
20669    # we'll have.
20670
20671 cat >>confdefs.h <<\_ACEOF
20672 #define HAVE_MEMMOVE 1
20673 _ACEOF
20674
20675
20676 cat >>confdefs.h <<\_ACEOF
20677 #define HAVE_MEMCPY 1
20678 _ACEOF
20679
20680
20681 cat >>confdefs.h <<\_ACEOF
20682 #define HAVE_STRERROR 1
20683 _ACEOF
20684
20685
20686 cat >>confdefs.h <<\_ACEOF
20687 #define HAVE_TIME 1
20688 _ACEOF
20689
20690
20691 cat >>confdefs.h <<\_ACEOF
20692 #define HAVE_GMTIME_R 1
20693 _ACEOF
20694
20695
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_LOCALTIME_R 1
20698 _ACEOF
20699
20700
20701 cat >>confdefs.h <<\_ACEOF
20702 #define HAVE_USLEEP_DECL 1
20703 _ACEOF
20704
20705    # This is only for POSIX threads.
20706
20707 cat >>confdefs.h <<\_ACEOF
20708 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20709 _ACEOF
20710
20711
20712    # Assume we do not have getuid and friends.
20713
20714 cat >>confdefs.h <<\_ACEOF
20715 #define NO_GETUID 1
20716 _ACEOF
20717
20718    PLATFORMNET=NoNet
20719 else
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751 for ac_func in strerror select fstat open fsync sleep opendir \
20752                    localtime_r readdir_r getpwuid_r getcwd \
20753                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20754                    nl_langinfo setlocale \
20755                    inet_pton uname inet_ntoa \
20756                    getrlimit sigaction ftruncate mmap \
20757                    getifaddrs
20758 do
20759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20760 echo "$as_me:$LINENO: checking for $ac_func" >&5
20761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20762 if eval "test \"\${$as_ac_var+set}\" = set"; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   if test x$gcc_no_link = xyes; then
20766   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20767 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20768    { (exit 1); exit 1; }; }
20769 fi
20770 cat >conftest.$ac_ext <<_ACEOF
20771 /* confdefs.h.  */
20772 _ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h.  */
20776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20778 #define $ac_func innocuous_$ac_func
20779
20780 /* System header to define __stub macros and hopefully few prototypes,
20781     which can conflict with char $ac_func (); below.
20782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20783     <limits.h> exists even on freestanding compilers.  */
20784
20785 #ifdef __STDC__
20786 # include <limits.h>
20787 #else
20788 # include <assert.h>
20789 #endif
20790
20791 #undef $ac_func
20792
20793 /* Override any gcc2 internal prototype to avoid an error.  */
20794 #ifdef __cplusplus
20795 extern "C"
20796 {
20797 #endif
20798 /* We use char because int might match the return type of a gcc2
20799    builtin and then its argument prototype would still apply.  */
20800 char $ac_func ();
20801 /* The GNU C library defines this for functions which it implements
20802     to always fail with ENOSYS.  Some functions are actually named
20803     something starting with __ and the normal name is an alias.  */
20804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20805 choke me
20806 #else
20807 char (*f) () = $ac_func;
20808 #endif
20809 #ifdef __cplusplus
20810 }
20811 #endif
20812
20813 int
20814 main ()
20815 {
20816 return f != $ac_func;
20817   ;
20818   return 0;
20819 }
20820 _ACEOF
20821 rm -f conftest.$ac_objext conftest$ac_exeext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20823   (eval $ac_link) 2>conftest.er1
20824   ac_status=$?
20825   grep -v '^ *+' conftest.er1 >conftest.err
20826   rm -f conftest.er1
20827   cat conftest.err >&5
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } &&
20830          { ac_try='test -z "$ac_c_werror_flag"
20831                          || test ! -s conftest.err'
20832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833   (eval $ac_try) 2>&5
20834   ac_status=$?
20835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836   (exit $ac_status); }; } &&
20837          { ac_try='test -s conftest$ac_exeext'
20838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839   (eval $ac_try) 2>&5
20840   ac_status=$?
20841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842   (exit $ac_status); }; }; then
20843   eval "$as_ac_var=yes"
20844 else
20845   echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 eval "$as_ac_var=no"
20849 fi
20850 rm -f conftest.err conftest.$ac_objext \
20851       conftest$ac_exeext conftest.$ac_ext
20852 fi
20853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20855 if test `eval echo '${'$as_ac_var'}'` = yes; then
20856   cat >>confdefs.h <<_ACEOF
20857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20858 _ACEOF
20859
20860 fi
20861 done
20862
20863
20864
20865 for ac_func in inet_aton inet_addr
20866 do
20867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20868 echo "$as_me:$LINENO: checking for $ac_func" >&5
20869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20870 if eval "test \"\${$as_ac_var+set}\" = set"; then
20871   echo $ECHO_N "(cached) $ECHO_C" >&6
20872 else
20873   if test x$gcc_no_link = xyes; then
20874   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20875 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20876    { (exit 1); exit 1; }; }
20877 fi
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h.  */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h.  */
20884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20886 #define $ac_func innocuous_$ac_func
20887
20888 /* System header to define __stub macros and hopefully few prototypes,
20889     which can conflict with char $ac_func (); below.
20890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20891     <limits.h> exists even on freestanding compilers.  */
20892
20893 #ifdef __STDC__
20894 # include <limits.h>
20895 #else
20896 # include <assert.h>
20897 #endif
20898
20899 #undef $ac_func
20900
20901 /* Override any gcc2 internal prototype to avoid an error.  */
20902 #ifdef __cplusplus
20903 extern "C"
20904 {
20905 #endif
20906 /* We use char because int might match the return type of a gcc2
20907    builtin and then its argument prototype would still apply.  */
20908 char $ac_func ();
20909 /* The GNU C library defines this for functions which it implements
20910     to always fail with ENOSYS.  Some functions are actually named
20911     something starting with __ and the normal name is an alias.  */
20912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20913 choke me
20914 #else
20915 char (*f) () = $ac_func;
20916 #endif
20917 #ifdef __cplusplus
20918 }
20919 #endif
20920
20921 int
20922 main ()
20923 {
20924 return f != $ac_func;
20925   ;
20926   return 0;
20927 }
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20931   (eval $ac_link) 2>conftest.er1
20932   ac_status=$?
20933   grep -v '^ *+' conftest.er1 >conftest.err
20934   rm -f conftest.er1
20935   cat conftest.err >&5
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); } &&
20938          { ac_try='test -z "$ac_c_werror_flag"
20939                          || test ! -s conftest.err'
20940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20941   (eval $ac_try) 2>&5
20942   ac_status=$?
20943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20944   (exit $ac_status); }; } &&
20945          { ac_try='test -s conftest$ac_exeext'
20946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947   (eval $ac_try) 2>&5
20948   ac_status=$?
20949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950   (exit $ac_status); }; }; then
20951   eval "$as_ac_var=yes"
20952 else
20953   echo "$as_me: failed program was:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20955
20956 eval "$as_ac_var=no"
20957 fi
20958 rm -f conftest.err conftest.$ac_objext \
20959       conftest$ac_exeext conftest.$ac_ext
20960 fi
20961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20963 if test `eval echo '${'$as_ac_var'}'` = yes; then
20964   cat >>confdefs.h <<_ACEOF
20965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20966 _ACEOF
20967  break
20968 fi
20969 done
20970
20971
20972
20973
20974 for ac_header in unistd.h dlfcn.h sys/resource.h
20975 do
20976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20978   echo "$as_me:$LINENO: checking for $ac_header" >&5
20979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 fi
20983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20985 else
20986   # Is the header compilable?
20987 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h.  */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h.  */
20995 $ac_includes_default
20996 #include <$ac_header>
20997 _ACEOF
20998 rm -f conftest.$ac_objext
20999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21000   (eval $ac_compile) 2>conftest.er1
21001   ac_status=$?
21002   grep -v '^ *+' conftest.er1 >conftest.err
21003   rm -f conftest.er1
21004   cat conftest.err >&5
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } &&
21007          { ac_try='test -z "$ac_c_werror_flag"
21008                          || test ! -s conftest.err'
21009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010   (eval $ac_try) 2>&5
21011   ac_status=$?
21012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013   (exit $ac_status); }; } &&
21014          { ac_try='test -s conftest.$ac_objext'
21015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016   (eval $ac_try) 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_header_compiler=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_header_compiler=no
21026 fi
21027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21028 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21029 echo "${ECHO_T}$ac_header_compiler" >&6
21030
21031 # Is the header present?
21032 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21033 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h.  */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h.  */
21040 #include <$ac_header>
21041 _ACEOF
21042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21043   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21044   ac_status=$?
21045   grep -v '^ *+' conftest.er1 >conftest.err
21046   rm -f conftest.er1
21047   cat conftest.err >&5
21048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049   (exit $ac_status); } >/dev/null; then
21050   if test -s conftest.err; then
21051     ac_cpp_err=$ac_c_preproc_warn_flag
21052     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21053   else
21054     ac_cpp_err=
21055   fi
21056 else
21057   ac_cpp_err=yes
21058 fi
21059 if test -z "$ac_cpp_err"; then
21060   ac_header_preproc=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065   ac_header_preproc=no
21066 fi
21067 rm -f conftest.err conftest.$ac_ext
21068 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21069 echo "${ECHO_T}$ac_header_preproc" >&6
21070
21071 # So?  What about this header?
21072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073   yes:no: )
21074     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21076     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21078     ac_header_preproc=yes
21079     ;;
21080   no:yes:* )
21081     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21083     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21084 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21085     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21087     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21088 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21089     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21091     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21093     (
21094       cat <<\_ASBOX
21095 ## ---------------------------------- ##
21096 ## Report this to the libjava lists.  ##
21097 ## ---------------------------------- ##
21098 _ASBOX
21099     ) |
21100       sed "s/^/$as_me: WARNING:     /" >&2
21101     ;;
21102 esac
21103 echo "$as_me:$LINENO: checking for $ac_header" >&5
21104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108   eval "$as_ac_Header=\$ac_header_preproc"
21109 fi
21110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21111 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21112
21113 fi
21114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21115   cat >>confdefs.h <<_ACEOF
21116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21117 _ACEOF
21118
21119 fi
21120
21121 done
21122
21123    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21124    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21125 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21126 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21127   echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129   ac_check_lib_save_LIBS=$LIBS
21130 LIBS="-ldl  $LIBS"
21131 if test x$gcc_no_link = xyes; then
21132   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21133 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21134    { (exit 1); exit 1; }; }
21135 fi
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142
21143 /* Override any gcc2 internal prototype to avoid an error.  */
21144 #ifdef __cplusplus
21145 extern "C"
21146 #endif
21147 /* We use char because int might match the return type of a gcc2
21148    builtin and then its argument prototype would still apply.  */
21149 char dladdr ();
21150 int
21151 main ()
21152 {
21153 dladdr ();
21154   ;
21155   return 0;
21156 }
21157 _ACEOF
21158 rm -f conftest.$ac_objext conftest$ac_exeext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21160   (eval $ac_link) 2>conftest.er1
21161   ac_status=$?
21162   grep -v '^ *+' conftest.er1 >conftest.err
21163   rm -f conftest.er1
21164   cat conftest.err >&5
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); } &&
21167          { ac_try='test -z "$ac_c_werror_flag"
21168                          || test ! -s conftest.err'
21169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21170   (eval $ac_try) 2>&5
21171   ac_status=$?
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); }; } &&
21174          { ac_try='test -s conftest$ac_exeext'
21175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21176   (eval $ac_try) 2>&5
21177   ac_status=$?
21178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179   (exit $ac_status); }; }; then
21180   ac_cv_lib_dl_dladdr=yes
21181 else
21182   echo "$as_me: failed program was:" >&5
21183 sed 's/^/| /' conftest.$ac_ext >&5
21184
21185 ac_cv_lib_dl_dladdr=no
21186 fi
21187 rm -f conftest.err conftest.$ac_objext \
21188       conftest$ac_exeext conftest.$ac_ext
21189 LIBS=$ac_check_lib_save_LIBS
21190 fi
21191 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21192 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21193 if test $ac_cv_lib_dl_dladdr = yes; then
21194
21195
21196 cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_DLADDR 1
21198 _ACEOF
21199
21200 else
21201
21202        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21203 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21204 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21205   echo $ECHO_N "(cached) $ECHO_C" >&6
21206 else
21207   ac_check_lib_save_LIBS=$LIBS
21208 LIBS="-ldld  $LIBS"
21209 if test x$gcc_no_link = xyes; then
21210   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21212    { (exit 1); exit 1; }; }
21213 fi
21214 cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220
21221 /* Override any gcc2 internal prototype to avoid an error.  */
21222 #ifdef __cplusplus
21223 extern "C"
21224 #endif
21225 /* We use char because int might match the return type of a gcc2
21226    builtin and then its argument prototype would still apply.  */
21227 char dladdr ();
21228 int
21229 main ()
21230 {
21231 dladdr ();
21232   ;
21233   return 0;
21234 }
21235 _ACEOF
21236 rm -f conftest.$ac_objext conftest$ac_exeext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238   (eval $ac_link) 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } &&
21245          { ac_try='test -z "$ac_c_werror_flag"
21246                          || test ! -s conftest.err'
21247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248   (eval $ac_try) 2>&5
21249   ac_status=$?
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); }; } &&
21252          { ac_try='test -s conftest$ac_exeext'
21253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21254   (eval $ac_try) 2>&5
21255   ac_status=$?
21256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257   (exit $ac_status); }; }; then
21258   ac_cv_lib_dld_dladdr=yes
21259 else
21260   echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 ac_cv_lib_dld_dladdr=no
21264 fi
21265 rm -f conftest.err conftest.$ac_objext \
21266       conftest$ac_exeext conftest.$ac_ext
21267 LIBS=$ac_check_lib_save_LIBS
21268 fi
21269 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21270 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21271 if test $ac_cv_lib_dld_dladdr = yes; then
21272
21273
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_DLADDR 1
21276 _ACEOF
21277
21278 fi
21279
21280 fi
21281
21282
21283    if test x"$cross_compiling" = x"no"; then
21284      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21285 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21286 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21287   echo $ECHO_N "(cached) $ECHO_C" >&6
21288 else
21289   test "$cross_compiling" = yes &&
21290   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21291 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21292    { (exit 1); exit 1; }; }
21293 if test -r "/proc/self/exe"; then
21294   ac_cv_file__proc_self_exe=yes
21295 else
21296   ac_cv_file__proc_self_exe=no
21297 fi
21298 fi
21299 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21300 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21301 if test $ac_cv_file__proc_self_exe = yes; then
21302
21303 cat >>confdefs.h <<_ACEOF
21304 #define HAVE__PROC_SELF_EXE 1
21305 _ACEOF
21306
21307
21308
21309 cat >>confdefs.h <<\_ACEOF
21310 #define HAVE_PROC_SELF_EXE 1
21311 _ACEOF
21312
21313 fi
21314
21315      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21316 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21317 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21318   echo $ECHO_N "(cached) $ECHO_C" >&6
21319 else
21320   test "$cross_compiling" = yes &&
21321   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21322 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21323    { (exit 1); exit 1; }; }
21324 if test -r "/proc/self/maps"; then
21325   ac_cv_file__proc_self_maps=yes
21326 else
21327   ac_cv_file__proc_self_maps=no
21328 fi
21329 fi
21330 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21331 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21332 if test $ac_cv_file__proc_self_maps = yes; then
21333
21334 cat >>confdefs.h <<_ACEOF
21335 #define HAVE__PROC_SELF_MAPS 1
21336 _ACEOF
21337
21338
21339
21340 cat >>confdefs.h <<\_ACEOF
21341 #define HAVE_PROC_SELF_MAPS 1
21342 _ACEOF
21343
21344 fi
21345
21346    else
21347      case $host in
21348      *-linux*)
21349
21350 cat >>confdefs.h <<\_ACEOF
21351 #define HAVE_PROC_SELF_EXE 1
21352 _ACEOF
21353
21354
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_PROC_SELF_MAPS 1
21357 _ACEOF
21358
21359        ;;
21360      esac
21361    fi
21362
21363
21364       if test "X$prefix" = "XNONE"; then
21365     acl_final_prefix="$ac_default_prefix"
21366   else
21367     acl_final_prefix="$prefix"
21368   fi
21369   if test "X$exec_prefix" = "XNONE"; then
21370     acl_final_exec_prefix='${prefix}'
21371   else
21372     acl_final_exec_prefix="$exec_prefix"
21373   fi
21374   acl_save_prefix="$prefix"
21375   prefix="$acl_final_prefix"
21376   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21377   prefix="$acl_save_prefix"
21378
21379
21380 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21381 if test "${with_gnu_ld+set}" = set; then
21382   withval="$with_gnu_ld"
21383   test "$withval" = no || with_gnu_ld=yes
21384 else
21385   with_gnu_ld=no
21386 fi;
21387 # Prepare PATH_SEPARATOR.
21388 # The user is always right.
21389 if test "${PATH_SEPARATOR+set}" != set; then
21390   echo "#! /bin/sh" >conf$$.sh
21391   echo  "exit 0"   >>conf$$.sh
21392   chmod +x conf$$.sh
21393   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21394     PATH_SEPARATOR=';'
21395   else
21396     PATH_SEPARATOR=:
21397   fi
21398   rm -f conf$$.sh
21399 fi
21400 ac_prog=ld
21401 if test "$GCC" = yes; then
21402   # Check if gcc -print-prog-name=ld gives a path.
21403   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21404 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21405   case $host in
21406   *-*-mingw*)
21407     # gcc leaves a trailing carriage return which upsets mingw
21408     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21409   *)
21410     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21411   esac
21412   case $ac_prog in
21413     # Accept absolute paths.
21414     [\\/]* | [A-Za-z]:[\\/]*)
21415       re_direlt='/[^/][^/]*/\.\./'
21416       # Canonicalize the path of ld
21417       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21418       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21419         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21420       done
21421       test -z "$LD" && LD="$ac_prog"
21422       ;;
21423   "")
21424     # If it fails, then pretend we aren't using GCC.
21425     ac_prog=ld
21426     ;;
21427   *)
21428     # If it is relative, then search for the first ld in PATH.
21429     with_gnu_ld=unknown
21430     ;;
21431   esac
21432 elif test "$with_gnu_ld" = yes; then
21433   echo "$as_me:$LINENO: checking for GNU ld" >&5
21434 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21435 else
21436   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21437 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21438 fi
21439 if test "${acl_cv_path_LD+set}" = set; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442   if test -z "$LD"; then
21443   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21444   for ac_dir in $PATH; do
21445     test -z "$ac_dir" && ac_dir=.
21446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21447       acl_cv_path_LD="$ac_dir/$ac_prog"
21448       # Check to see if the program is GNU ld.  I'd rather use --version,
21449       # but apparently some GNU ld's only accept -v.
21450       # Break only if it was the GNU/non-GNU ld that we prefer.
21451       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21452         test "$with_gnu_ld" != no && break
21453       else
21454         test "$with_gnu_ld" != yes && break
21455       fi
21456     fi
21457   done
21458   IFS="$ac_save_ifs"
21459 else
21460   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21461 fi
21462 fi
21463
21464 LD="$acl_cv_path_LD"
21465 if test -n "$LD"; then
21466   echo "$as_me:$LINENO: result: $LD" >&5
21467 echo "${ECHO_T}$LD" >&6
21468 else
21469   echo "$as_me:$LINENO: result: no" >&5
21470 echo "${ECHO_T}no" >&6
21471 fi
21472 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21473 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21474    { (exit 1); exit 1; }; }
21475 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21476 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21477 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21478   echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21481 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21482   acl_cv_prog_gnu_ld=yes
21483 else
21484   acl_cv_prog_gnu_ld=no
21485 fi
21486 fi
21487 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21488 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21489 with_gnu_ld=$acl_cv_prog_gnu_ld
21490
21491
21492
21493                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21494 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21495 if test "${acl_cv_rpath+set}" = set; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 else
21498
21499     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21500     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21501     . ./conftest.sh
21502     rm -f ./conftest.sh
21503     acl_cv_rpath=done
21504
21505 fi
21506 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21507 echo "${ECHO_T}$acl_cv_rpath" >&6
21508   wl="$acl_cv_wl"
21509   libext="$acl_cv_libext"
21510   shlibext="$acl_cv_shlibext"
21511   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21512   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21513   hardcode_direct="$acl_cv_hardcode_direct"
21514   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21515     # Check whether --enable-rpath or --disable-rpath was given.
21516 if test "${enable_rpath+set}" = set; then
21517   enableval="$enable_rpath"
21518   :
21519 else
21520   enable_rpath=yes
21521 fi;
21522
21523
21524
21525
21526
21527
21528
21529     use_additional=yes
21530
21531   acl_save_prefix="$prefix"
21532   prefix="$acl_final_prefix"
21533   acl_save_exec_prefix="$exec_prefix"
21534   exec_prefix="$acl_final_exec_prefix"
21535
21536     eval additional_includedir=\"$includedir\"
21537     eval additional_libdir=\"$libdir\"
21538
21539   exec_prefix="$acl_save_exec_prefix"
21540   prefix="$acl_save_prefix"
21541
21542
21543 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21544 if test "${with_libiconv_prefix+set}" = set; then
21545   withval="$with_libiconv_prefix"
21546
21547     if test "X$withval" = "Xno"; then
21548       use_additional=no
21549     else
21550       if test "X$withval" = "X"; then
21551
21552   acl_save_prefix="$prefix"
21553   prefix="$acl_final_prefix"
21554   acl_save_exec_prefix="$exec_prefix"
21555   exec_prefix="$acl_final_exec_prefix"
21556
21557           eval additional_includedir=\"$includedir\"
21558           eval additional_libdir=\"$libdir\"
21559
21560   exec_prefix="$acl_save_exec_prefix"
21561   prefix="$acl_save_prefix"
21562
21563       else
21564         additional_includedir="$withval/include"
21565         additional_libdir="$withval/lib"
21566       fi
21567     fi
21568
21569 fi;
21570       LIBICONV=
21571   LTLIBICONV=
21572   INCICONV=
21573   rpathdirs=
21574   ltrpathdirs=
21575   names_already_handled=
21576   names_next_round='iconv '
21577   while test -n "$names_next_round"; do
21578     names_this_round="$names_next_round"
21579     names_next_round=
21580     for name in $names_this_round; do
21581       already_handled=
21582       for n in $names_already_handled; do
21583         if test "$n" = "$name"; then
21584           already_handled=yes
21585           break
21586         fi
21587       done
21588       if test -z "$already_handled"; then
21589         names_already_handled="$names_already_handled $name"
21590                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21591         eval value=\"\$HAVE_LIB$uppername\"
21592         if test -n "$value"; then
21593           if test "$value" = yes; then
21594             eval value=\"\$LIB$uppername\"
21595             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21596             eval value=\"\$LTLIB$uppername\"
21597             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21598           else
21599                                     :
21600           fi
21601         else
21602                               found_dir=
21603           found_la=
21604           found_so=
21605           found_a=
21606           if test $use_additional = yes; then
21607             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21608               found_dir="$additional_libdir"
21609               found_so="$additional_libdir/lib$name.$shlibext"
21610               if test -f "$additional_libdir/lib$name.la"; then
21611                 found_la="$additional_libdir/lib$name.la"
21612               fi
21613             else
21614               if test -f "$additional_libdir/lib$name.$libext"; then
21615                 found_dir="$additional_libdir"
21616                 found_a="$additional_libdir/lib$name.$libext"
21617                 if test -f "$additional_libdir/lib$name.la"; then
21618                   found_la="$additional_libdir/lib$name.la"
21619                 fi
21620               fi
21621             fi
21622           fi
21623           if test "X$found_dir" = "X"; then
21624             for x in $LDFLAGS $LTLIBICONV; do
21625
21626   acl_save_prefix="$prefix"
21627   prefix="$acl_final_prefix"
21628   acl_save_exec_prefix="$exec_prefix"
21629   exec_prefix="$acl_final_exec_prefix"
21630   eval x=\"$x\"
21631   exec_prefix="$acl_save_exec_prefix"
21632   prefix="$acl_save_prefix"
21633
21634               case "$x" in
21635                 -L*)
21636                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21637                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21638                     found_dir="$dir"
21639                     found_so="$dir/lib$name.$shlibext"
21640                     if test -f "$dir/lib$name.la"; then
21641                       found_la="$dir/lib$name.la"
21642                     fi
21643                   else
21644                     if test -f "$dir/lib$name.$libext"; then
21645                       found_dir="$dir"
21646                       found_a="$dir/lib$name.$libext"
21647                       if test -f "$dir/lib$name.la"; then
21648                         found_la="$dir/lib$name.la"
21649                       fi
21650                     fi
21651                   fi
21652                   ;;
21653               esac
21654               if test "X$found_dir" != "X"; then
21655                 break
21656               fi
21657             done
21658           fi
21659           if test "X$found_dir" != "X"; then
21660                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21661             if test "X$found_so" != "X"; then
21662                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21663                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21664               else
21665                                                                                 haveit=
21666                 for x in $ltrpathdirs; do
21667                   if test "X$x" = "X$found_dir"; then
21668                     haveit=yes
21669                     break
21670                   fi
21671                 done
21672                 if test -z "$haveit"; then
21673                   ltrpathdirs="$ltrpathdirs $found_dir"
21674                 fi
21675                                 if test "$hardcode_direct" = yes; then
21676                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21677                 else
21678                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21679                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21680                                                             haveit=
21681                     for x in $rpathdirs; do
21682                       if test "X$x" = "X$found_dir"; then
21683                         haveit=yes
21684                         break
21685                       fi
21686                     done
21687                     if test -z "$haveit"; then
21688                       rpathdirs="$rpathdirs $found_dir"
21689                     fi
21690                   else
21691                                                                                 haveit=
21692                     for x in $LDFLAGS $LIBICONV; do
21693
21694   acl_save_prefix="$prefix"
21695   prefix="$acl_final_prefix"
21696   acl_save_exec_prefix="$exec_prefix"
21697   exec_prefix="$acl_final_exec_prefix"
21698   eval x=\"$x\"
21699   exec_prefix="$acl_save_exec_prefix"
21700   prefix="$acl_save_prefix"
21701
21702                       if test "X$x" = "X-L$found_dir"; then
21703                         haveit=yes
21704                         break
21705                       fi
21706                     done
21707                     if test -z "$haveit"; then
21708                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21709                     fi
21710                     if test "$hardcode_minus_L" != no; then
21711                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21712                     else
21713                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21714                     fi
21715                   fi
21716                 fi
21717               fi
21718             else
21719               if test "X$found_a" != "X"; then
21720                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21721               else
21722                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21723               fi
21724             fi
21725                         additional_includedir=
21726             case "$found_dir" in
21727               */lib | */lib/)
21728                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21729                 additional_includedir="$basedir/include"
21730                 ;;
21731             esac
21732             if test "X$additional_includedir" != "X"; then
21733                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21734                 haveit=
21735                 if test "X$additional_includedir" = "X/usr/local/include"; then
21736                   if test -n "$GCC"; then
21737                     case $host_os in
21738                       linux*) haveit=yes;;
21739                     esac
21740                   fi
21741                 fi
21742                 if test -z "$haveit"; then
21743                   for x in $CPPFLAGS $INCICONV; do
21744
21745   acl_save_prefix="$prefix"
21746   prefix="$acl_final_prefix"
21747   acl_save_exec_prefix="$exec_prefix"
21748   exec_prefix="$acl_final_exec_prefix"
21749   eval x=\"$x\"
21750   exec_prefix="$acl_save_exec_prefix"
21751   prefix="$acl_save_prefix"
21752
21753                     if test "X$x" = "X-I$additional_includedir"; then
21754                       haveit=yes
21755                       break
21756                     fi
21757                   done
21758                   if test -z "$haveit"; then
21759                     if test -d "$additional_includedir"; then
21760                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21761                     fi
21762                   fi
21763                 fi
21764               fi
21765             fi
21766                         if test -n "$found_la"; then
21767                                                         save_libdir="$libdir"
21768               case "$found_la" in
21769                 */* | *\\*) . "$found_la" ;;
21770                 *) . "./$found_la" ;;
21771               esac
21772               libdir="$save_libdir"
21773                             for dep in $dependency_libs; do
21774                 case "$dep" in
21775                   -L*)
21776                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21777                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21778                       haveit=
21779                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21780                         if test -n "$GCC"; then
21781                           case $host_os in
21782                             linux*) haveit=yes;;
21783                           esac
21784                         fi
21785                       fi
21786                       if test -z "$haveit"; then
21787                         haveit=
21788                         for x in $LDFLAGS $LIBICONV; do
21789
21790   acl_save_prefix="$prefix"
21791   prefix="$acl_final_prefix"
21792   acl_save_exec_prefix="$exec_prefix"
21793   exec_prefix="$acl_final_exec_prefix"
21794   eval x=\"$x\"
21795   exec_prefix="$acl_save_exec_prefix"
21796   prefix="$acl_save_prefix"
21797
21798                           if test "X$x" = "X-L$additional_libdir"; then
21799                             haveit=yes
21800                             break
21801                           fi
21802                         done
21803                         if test -z "$haveit"; then
21804                           if test -d "$additional_libdir"; then
21805                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21806                           fi
21807                         fi
21808                         haveit=
21809                         for x in $LDFLAGS $LTLIBICONV; do
21810
21811   acl_save_prefix="$prefix"
21812   prefix="$acl_final_prefix"
21813   acl_save_exec_prefix="$exec_prefix"
21814   exec_prefix="$acl_final_exec_prefix"
21815   eval x=\"$x\"
21816   exec_prefix="$acl_save_exec_prefix"
21817   prefix="$acl_save_prefix"
21818
21819                           if test "X$x" = "X-L$additional_libdir"; then
21820                             haveit=yes
21821                             break
21822                           fi
21823                         done
21824                         if test -z "$haveit"; then
21825                           if test -d "$additional_libdir"; then
21826                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21827                           fi
21828                         fi
21829                       fi
21830                     fi
21831                     ;;
21832                   -R*)
21833                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21834                     if test "$enable_rpath" != no; then
21835                                                                   haveit=
21836                       for x in $rpathdirs; do
21837                         if test "X$x" = "X$dir"; then
21838                           haveit=yes
21839                           break
21840                         fi
21841                       done
21842                       if test -z "$haveit"; then
21843                         rpathdirs="$rpathdirs $dir"
21844                       fi
21845                                                                   haveit=
21846                       for x in $ltrpathdirs; do
21847                         if test "X$x" = "X$dir"; then
21848                           haveit=yes
21849                           break
21850                         fi
21851                       done
21852                       if test -z "$haveit"; then
21853                         ltrpathdirs="$ltrpathdirs $dir"
21854                       fi
21855                     fi
21856                     ;;
21857                   -l*)
21858                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21859                     ;;
21860                   *.la)
21861                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21862                     ;;
21863                   *)
21864                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21865                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21866                     ;;
21867                 esac
21868               done
21869             fi
21870           else
21871                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21872             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21873           fi
21874         fi
21875       fi
21876     done
21877   done
21878   if test "X$rpathdirs" != "X"; then
21879     if test -n "$hardcode_libdir_separator"; then
21880                         alldirs=
21881       for found_dir in $rpathdirs; do
21882         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21883       done
21884             acl_save_libdir="$libdir"
21885       libdir="$alldirs"
21886       eval flag=\"$hardcode_libdir_flag_spec\"
21887       libdir="$acl_save_libdir"
21888       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21889     else
21890             for found_dir in $rpathdirs; do
21891         acl_save_libdir="$libdir"
21892         libdir="$found_dir"
21893         eval flag=\"$hardcode_libdir_flag_spec\"
21894         libdir="$acl_save_libdir"
21895         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21896       done
21897     fi
21898   fi
21899   if test "X$ltrpathdirs" != "X"; then
21900             for found_dir in $ltrpathdirs; do
21901       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21902     done
21903   fi
21904
21905
21906
21907
21908
21909
21910
21911           am_save_CPPFLAGS="$CPPFLAGS"
21912
21913   for element in $INCICONV; do
21914     haveit=
21915     for x in $CPPFLAGS; do
21916
21917   acl_save_prefix="$prefix"
21918   prefix="$acl_final_prefix"
21919   acl_save_exec_prefix="$exec_prefix"
21920   exec_prefix="$acl_final_exec_prefix"
21921   eval x=\"$x\"
21922   exec_prefix="$acl_save_exec_prefix"
21923   prefix="$acl_save_prefix"
21924
21925       if test "X$x" = "X$element"; then
21926         haveit=yes
21927         break
21928       fi
21929     done
21930     if test -z "$haveit"; then
21931       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21932     fi
21933   done
21934
21935
21936   echo "$as_me:$LINENO: checking for iconv" >&5
21937 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21938 if test "${am_cv_func_iconv+set}" = set; then
21939   echo $ECHO_N "(cached) $ECHO_C" >&6
21940 else
21941
21942     am_cv_func_iconv="no, consider installing GNU libiconv"
21943     am_cv_lib_iconv=no
21944     if test x$gcc_no_link = xyes; then
21945   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21946 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21947    { (exit 1); exit 1; }; }
21948 fi
21949 cat >conftest.$ac_ext <<_ACEOF
21950 /* confdefs.h.  */
21951 _ACEOF
21952 cat confdefs.h >>conftest.$ac_ext
21953 cat >>conftest.$ac_ext <<_ACEOF
21954 /* end confdefs.h.  */
21955 #include <stdlib.h>
21956 #include <iconv.h>
21957 int
21958 main ()
21959 {
21960 iconv_t cd = iconv_open("","");
21961        iconv(cd,NULL,NULL,NULL,NULL);
21962        iconv_close(cd);
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 rm -f conftest.$ac_objext conftest$ac_exeext
21968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21969   (eval $ac_link) 2>conftest.er1
21970   ac_status=$?
21971   grep -v '^ *+' conftest.er1 >conftest.err
21972   rm -f conftest.er1
21973   cat conftest.err >&5
21974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975   (exit $ac_status); } &&
21976          { ac_try='test -z "$ac_c_werror_flag"
21977                          || test ! -s conftest.err'
21978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979   (eval $ac_try) 2>&5
21980   ac_status=$?
21981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982   (exit $ac_status); }; } &&
21983          { ac_try='test -s conftest$ac_exeext'
21984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985   (eval $ac_try) 2>&5
21986   ac_status=$?
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); }; }; then
21989   am_cv_func_iconv=yes
21990 else
21991   echo "$as_me: failed program was:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21993
21994 fi
21995 rm -f conftest.err conftest.$ac_objext \
21996       conftest$ac_exeext conftest.$ac_ext
21997     if test "$am_cv_func_iconv" != yes; then
21998       am_save_LIBS="$LIBS"
21999       LIBS="$LIBS $LIBICONV"
22000       if test x$gcc_no_link = xyes; then
22001   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22002 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22003    { (exit 1); exit 1; }; }
22004 fi
22005 cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 #include <stdlib.h>
22012 #include <iconv.h>
22013 int
22014 main ()
22015 {
22016 iconv_t cd = iconv_open("","");
22017          iconv(cd,NULL,NULL,NULL,NULL);
22018          iconv_close(cd);
22019   ;
22020   return 0;
22021 }
22022 _ACEOF
22023 rm -f conftest.$ac_objext conftest$ac_exeext
22024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22025   (eval $ac_link) 2>conftest.er1
22026   ac_status=$?
22027   grep -v '^ *+' conftest.er1 >conftest.err
22028   rm -f conftest.er1
22029   cat conftest.err >&5
22030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031   (exit $ac_status); } &&
22032          { ac_try='test -z "$ac_c_werror_flag"
22033                          || test ! -s conftest.err'
22034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035   (eval $ac_try) 2>&5
22036   ac_status=$?
22037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038   (exit $ac_status); }; } &&
22039          { ac_try='test -s conftest$ac_exeext'
22040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041   (eval $ac_try) 2>&5
22042   ac_status=$?
22043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044   (exit $ac_status); }; }; then
22045   am_cv_lib_iconv=yes
22046         am_cv_func_iconv=yes
22047 else
22048   echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051 fi
22052 rm -f conftest.err conftest.$ac_objext \
22053       conftest$ac_exeext conftest.$ac_ext
22054       LIBS="$am_save_LIBS"
22055     fi
22056
22057 fi
22058 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22059 echo "${ECHO_T}$am_cv_func_iconv" >&6
22060   if test "$am_cv_func_iconv" = yes; then
22061
22062 cat >>confdefs.h <<\_ACEOF
22063 #define HAVE_ICONV 1
22064 _ACEOF
22065
22066   fi
22067   if test "$am_cv_lib_iconv" = yes; then
22068     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22069 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22070     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22071 echo "${ECHO_T}$LIBICONV" >&6
22072   else
22073             CPPFLAGS="$am_save_CPPFLAGS"
22074     LIBICONV=
22075     LTLIBICONV=
22076   fi
22077
22078
22079
22080   if test "$am_cv_func_iconv" = yes; then
22081     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22082 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22083     if test "${am_cv_proto_iconv+set}" = set; then
22084   echo $ECHO_N "(cached) $ECHO_C" >&6
22085 else
22086
22087       cat >conftest.$ac_ext <<_ACEOF
22088 /* confdefs.h.  */
22089 _ACEOF
22090 cat confdefs.h >>conftest.$ac_ext
22091 cat >>conftest.$ac_ext <<_ACEOF
22092 /* end confdefs.h.  */
22093
22094 #include <stdlib.h>
22095 #include <iconv.h>
22096 extern
22097 #ifdef __cplusplus
22098 "C"
22099 #endif
22100 #if defined(__STDC__) || defined(__cplusplus)
22101 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22102 #else
22103 size_t iconv();
22104 #endif
22105
22106 int
22107 main ()
22108 {
22109
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 rm -f conftest.$ac_objext
22115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22116   (eval $ac_compile) 2>conftest.er1
22117   ac_status=$?
22118   grep -v '^ *+' conftest.er1 >conftest.err
22119   rm -f conftest.er1
22120   cat conftest.err >&5
22121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122   (exit $ac_status); } &&
22123          { ac_try='test -z "$ac_c_werror_flag"
22124                          || test ! -s conftest.err'
22125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22126   (eval $ac_try) 2>&5
22127   ac_status=$?
22128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129   (exit $ac_status); }; } &&
22130          { ac_try='test -s conftest.$ac_objext'
22131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132   (eval $ac_try) 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); }; }; then
22136   am_cv_proto_iconv_arg1=""
22137 else
22138   echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22140
22141 am_cv_proto_iconv_arg1="const"
22142 fi
22143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22144       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);"
22145 fi
22146
22147     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22148     echo "$as_me:$LINENO: result: ${ac_t:-
22149          }$am_cv_proto_iconv" >&5
22150 echo "${ECHO_T}${ac_t:-
22151          }$am_cv_proto_iconv" >&6
22152
22153 cat >>confdefs.h <<_ACEOF
22154 #define ICONV_CONST $am_cv_proto_iconv_arg1
22155 _ACEOF
22156
22157   fi
22158
22159
22160   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22161 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22162 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22163   echo $ECHO_N "(cached) $ECHO_C" >&6
22164 else
22165   if test x$gcc_no_link = xyes; then
22166   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22167 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22168    { (exit 1); exit 1; }; }
22169 fi
22170 cat >conftest.$ac_ext <<_ACEOF
22171 /* confdefs.h.  */
22172 _ACEOF
22173 cat confdefs.h >>conftest.$ac_ext
22174 cat >>conftest.$ac_ext <<_ACEOF
22175 /* end confdefs.h.  */
22176 #include <locale.h>
22177 int
22178 main ()
22179 {
22180 return LC_MESSAGES
22181   ;
22182   return 0;
22183 }
22184 _ACEOF
22185 rm -f conftest.$ac_objext conftest$ac_exeext
22186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22187   (eval $ac_link) 2>conftest.er1
22188   ac_status=$?
22189   grep -v '^ *+' conftest.er1 >conftest.err
22190   rm -f conftest.er1
22191   cat conftest.err >&5
22192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193   (exit $ac_status); } &&
22194          { ac_try='test -z "$ac_c_werror_flag"
22195                          || test ! -s conftest.err'
22196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22197   (eval $ac_try) 2>&5
22198   ac_status=$?
22199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200   (exit $ac_status); }; } &&
22201          { ac_try='test -s conftest$ac_exeext'
22202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203   (eval $ac_try) 2>&5
22204   ac_status=$?
22205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); }; }; then
22207   am_cv_val_LC_MESSAGES=yes
22208 else
22209   echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22211
22212 am_cv_val_LC_MESSAGES=no
22213 fi
22214 rm -f conftest.err conftest.$ac_objext \
22215       conftest$ac_exeext conftest.$ac_ext
22216 fi
22217 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22218 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22219   if test $am_cv_val_LC_MESSAGES = yes; then
22220
22221 cat >>confdefs.h <<\_ACEOF
22222 #define HAVE_LC_MESSAGES 1
22223 _ACEOF
22224
22225   fi
22226
22227    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22228 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22229 if test "${ac_cv_struct_tm+set}" = set; then
22230   echo $ECHO_N "(cached) $ECHO_C" >&6
22231 else
22232   cat >conftest.$ac_ext <<_ACEOF
22233 /* confdefs.h.  */
22234 _ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h.  */
22238 #include <sys/types.h>
22239 #include <time.h>
22240
22241 int
22242 main ()
22243 {
22244 struct tm *tp; tp->tm_sec;
22245   ;
22246   return 0;
22247 }
22248 _ACEOF
22249 rm -f conftest.$ac_objext
22250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22251   (eval $ac_compile) 2>conftest.er1
22252   ac_status=$?
22253   grep -v '^ *+' conftest.er1 >conftest.err
22254   rm -f conftest.er1
22255   cat conftest.err >&5
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); } &&
22258          { ac_try='test -z "$ac_c_werror_flag"
22259                          || test ! -s conftest.err'
22260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261   (eval $ac_try) 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); }; } &&
22265          { ac_try='test -s conftest.$ac_objext'
22266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267   (eval $ac_try) 2>&5
22268   ac_status=$?
22269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270   (exit $ac_status); }; }; then
22271   ac_cv_struct_tm=time.h
22272 else
22273   echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 ac_cv_struct_tm=sys/time.h
22277 fi
22278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22279 fi
22280 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22281 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22282 if test $ac_cv_struct_tm = sys/time.h; then
22283
22284 cat >>confdefs.h <<\_ACEOF
22285 #define TM_IN_SYS_TIME 1
22286 _ACEOF
22287
22288 fi
22289
22290 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22291 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22292 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22293   echo $ECHO_N "(cached) $ECHO_C" >&6
22294 else
22295   cat >conftest.$ac_ext <<_ACEOF
22296 /* confdefs.h.  */
22297 _ACEOF
22298 cat confdefs.h >>conftest.$ac_ext
22299 cat >>conftest.$ac_ext <<_ACEOF
22300 /* end confdefs.h.  */
22301 #include <sys/types.h>
22302 #include <$ac_cv_struct_tm>
22303
22304
22305 int
22306 main ()
22307 {
22308 static struct tm ac_aggr;
22309 if (ac_aggr.tm_zone)
22310 return 0;
22311   ;
22312   return 0;
22313 }
22314 _ACEOF
22315 rm -f conftest.$ac_objext
22316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22317   (eval $ac_compile) 2>conftest.er1
22318   ac_status=$?
22319   grep -v '^ *+' conftest.er1 >conftest.err
22320   rm -f conftest.er1
22321   cat conftest.err >&5
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } &&
22324          { ac_try='test -z "$ac_c_werror_flag"
22325                          || test ! -s conftest.err'
22326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22327   (eval $ac_try) 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; } &&
22331          { ac_try='test -s conftest.$ac_objext'
22332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22333   (eval $ac_try) 2>&5
22334   ac_status=$?
22335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22336   (exit $ac_status); }; }; then
22337   ac_cv_member_struct_tm_tm_zone=yes
22338 else
22339   echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h.  */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h.  */
22348 #include <sys/types.h>
22349 #include <$ac_cv_struct_tm>
22350
22351
22352 int
22353 main ()
22354 {
22355 static struct tm ac_aggr;
22356 if (sizeof ac_aggr.tm_zone)
22357 return 0;
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22364   (eval $ac_compile) 2>conftest.er1
22365   ac_status=$?
22366   grep -v '^ *+' conftest.er1 >conftest.err
22367   rm -f conftest.er1
22368   cat conftest.err >&5
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); } &&
22371          { ac_try='test -z "$ac_c_werror_flag"
22372                          || test ! -s conftest.err'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; } &&
22378          { ac_try='test -s conftest.$ac_objext'
22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380   (eval $ac_try) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; }; then
22384   ac_cv_member_struct_tm_tm_zone=yes
22385 else
22386   echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_cv_member_struct_tm_tm_zone=no
22390 fi
22391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22392 fi
22393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22396 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22397 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22398
22399 cat >>confdefs.h <<_ACEOF
22400 #define HAVE_STRUCT_TM_TM_ZONE 1
22401 _ACEOF
22402
22403
22404 fi
22405
22406 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22407
22408 cat >>confdefs.h <<\_ACEOF
22409 #define HAVE_TM_ZONE 1
22410 _ACEOF
22411
22412 else
22413   echo "$as_me:$LINENO: checking for tzname" >&5
22414 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22415 if test "${ac_cv_var_tzname+set}" = set; then
22416   echo $ECHO_N "(cached) $ECHO_C" >&6
22417 else
22418   if test x$gcc_no_link = xyes; then
22419   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22421    { (exit 1); exit 1; }; }
22422 fi
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 #include <time.h>
22430 #ifndef tzname /* For SGI.  */
22431 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22432 #endif
22433
22434 int
22435 main ()
22436 {
22437 atoi(*tzname);
22438   ;
22439   return 0;
22440 }
22441 _ACEOF
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22444   (eval $ac_link) 2>conftest.er1
22445   ac_status=$?
22446   grep -v '^ *+' conftest.er1 >conftest.err
22447   rm -f conftest.er1
22448   cat conftest.err >&5
22449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450   (exit $ac_status); } &&
22451          { ac_try='test -z "$ac_c_werror_flag"
22452                          || test ! -s conftest.err'
22453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454   (eval $ac_try) 2>&5
22455   ac_status=$?
22456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457   (exit $ac_status); }; } &&
22458          { ac_try='test -s conftest$ac_exeext'
22459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460   (eval $ac_try) 2>&5
22461   ac_status=$?
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); }; }; then
22464   ac_cv_var_tzname=yes
22465 else
22466   echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ac_cv_var_tzname=no
22470 fi
22471 rm -f conftest.err conftest.$ac_objext \
22472       conftest$ac_exeext conftest.$ac_ext
22473 fi
22474 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22475 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22476   if test $ac_cv_var_tzname = yes; then
22477
22478 cat >>confdefs.h <<\_ACEOF
22479 #define HAVE_TZNAME 1
22480 _ACEOF
22481
22482   fi
22483 fi
22484
22485
22486
22487 for ac_func in gethostbyname_r
22488 do
22489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22490 echo "$as_me:$LINENO: checking for $ac_func" >&5
22491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22492 if eval "test \"\${$as_ac_var+set}\" = set"; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495   if test x$gcc_no_link = xyes; then
22496   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22497 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22498    { (exit 1); exit 1; }; }
22499 fi
22500 cat >conftest.$ac_ext <<_ACEOF
22501 /* confdefs.h.  */
22502 _ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h.  */
22506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22508 #define $ac_func innocuous_$ac_func
22509
22510 /* System header to define __stub macros and hopefully few prototypes,
22511     which can conflict with char $ac_func (); below.
22512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22513     <limits.h> exists even on freestanding compilers.  */
22514
22515 #ifdef __STDC__
22516 # include <limits.h>
22517 #else
22518 # include <assert.h>
22519 #endif
22520
22521 #undef $ac_func
22522
22523 /* Override any gcc2 internal prototype to avoid an error.  */
22524 #ifdef __cplusplus
22525 extern "C"
22526 {
22527 #endif
22528 /* We use char because int might match the return type of a gcc2
22529    builtin and then its argument prototype would still apply.  */
22530 char $ac_func ();
22531 /* The GNU C library defines this for functions which it implements
22532     to always fail with ENOSYS.  Some functions are actually named
22533     something starting with __ and the normal name is an alias.  */
22534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22535 choke me
22536 #else
22537 char (*f) () = $ac_func;
22538 #endif
22539 #ifdef __cplusplus
22540 }
22541 #endif
22542
22543 int
22544 main ()
22545 {
22546 return f != $ac_func;
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22553   (eval $ac_link) 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } &&
22560          { ac_try='test -z "$ac_c_werror_flag"
22561                          || test ! -s conftest.err'
22562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563   (eval $ac_try) 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; } &&
22567          { ac_try='test -s conftest$ac_exeext'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }; then
22573   eval "$as_ac_var=yes"
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 eval "$as_ac_var=no"
22579 fi
22580 rm -f conftest.err conftest.$ac_objext \
22581       conftest$ac_exeext conftest.$ac_ext
22582 fi
22583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22585 if test `eval echo '${'$as_ac_var'}'` = yes; then
22586   cat >>confdefs.h <<_ACEOF
22587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22588 _ACEOF
22589
22590
22591 cat >>confdefs.h <<\_ACEOF
22592 #define HAVE_GETHOSTBYNAME_R 1
22593 _ACEOF
22594
22595      # There are two different kinds of gethostbyname_r.
22596      # We look for the one that returns `int'.
22597      # Hopefully this check is robust enough.
22598      cat >conftest.$ac_ext <<_ACEOF
22599 /* confdefs.h.  */
22600 _ACEOF
22601 cat confdefs.h >>conftest.$ac_ext
22602 cat >>conftest.$ac_ext <<_ACEOF
22603 /* end confdefs.h.  */
22604 #include <netdb.h>
22605
22606 _ACEOF
22607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22608   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22609
22610
22611 cat >>confdefs.h <<\_ACEOF
22612 #define GETHOSTBYNAME_R_RETURNS_INT 1
22613 _ACEOF
22614
22615 fi
22616 rm -f conftest*
22617
22618
22619      case " $GCINCS " in
22620      *" -D_REENTRANT "*) ;;
22621      *)
22622                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22623 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22624 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22625   echo $ECHO_N "(cached) $ECHO_C" >&6
22626 else
22627    ac_ext=cc
22628 ac_cpp='$CXXCPP $CPPFLAGS'
22629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22632
22633           cat >conftest.$ac_ext <<_ACEOF
22634 /* confdefs.h.  */
22635 _ACEOF
22636 cat confdefs.h >>conftest.$ac_ext
22637 cat >>conftest.$ac_ext <<_ACEOF
22638 /* end confdefs.h.  */
22639 #include <netdb.h>
22640 int
22641 main ()
22642 {
22643 gethostbyname_r("", 0, 0);
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22650   (eval $ac_compile) 2>conftest.er1
22651   ac_status=$?
22652   grep -v '^ *+' conftest.er1 >conftest.err
22653   rm -f conftest.er1
22654   cat conftest.err >&5
22655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656   (exit $ac_status); } &&
22657          { ac_try='test -z "$ac_cxx_werror_flag"
22658                          || test ! -s conftest.err'
22659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660   (eval $ac_try) 2>&5
22661   ac_status=$?
22662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663   (exit $ac_status); }; } &&
22664          { ac_try='test -s conftest.$ac_objext'
22665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666   (eval $ac_try) 2>&5
22667   ac_status=$?
22668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669   (exit $ac_status); }; }; then
22670   libjava_cv_gethostbyname_r_needs_reentrant=no
22671 else
22672   echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22674
22675                 CPPFLAGS_SAVE="$CPPFLAGS"
22676                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22677                 cat >conftest.$ac_ext <<_ACEOF
22678 /* confdefs.h.  */
22679 _ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h.  */
22683 #include <netdb.h>
22684 int
22685 main ()
22686 {
22687 gethostbyname_r("", 0, 0);
22688   ;
22689   return 0;
22690 }
22691 _ACEOF
22692 rm -f conftest.$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694   (eval $ac_compile) 2>conftest.er1
22695   ac_status=$?
22696   grep -v '^ *+' conftest.er1 >conftest.err
22697   rm -f conftest.er1
22698   cat conftest.err >&5
22699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700   (exit $ac_status); } &&
22701          { ac_try='test -z "$ac_cxx_werror_flag"
22702                          || test ! -s conftest.err'
22703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704   (eval $ac_try) 2>&5
22705   ac_status=$?
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); }; } &&
22708          { ac_try='test -s conftest.$ac_objext'
22709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710   (eval $ac_try) 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; }; then
22714   libjava_cv_gethostbyname_r_needs_reentrant=yes
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 libjava_cv_gethostbyname_r_needs_reentrant=fail
22720 fi
22721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22722                 CPPFLAGS="$CPPFLAGS_SAVE"
22723
22724 fi
22725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22726           ac_ext=c
22727 ac_cpp='$CPP $CPPFLAGS'
22728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22731
22732
22733 fi
22734 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22735 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22736         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22737
22738 cat >>confdefs.h <<\_ACEOF
22739 #define _REENTRANT 1
22740 _ACEOF
22741
22742         fi
22743      ;;
22744      esac
22745
22746      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22747 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22748 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22749   echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751         cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757
22758 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22759 # define _REENTRANT 1
22760 #endif
22761 #include <netdb.h>
22762 int
22763 main ()
22764 {
22765 struct hostent_data data;
22766   ;
22767   return 0;
22768 }
22769 _ACEOF
22770 rm -f conftest.$ac_objext
22771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22772   (eval $ac_compile) 2>conftest.er1
22773   ac_status=$?
22774   grep -v '^ *+' conftest.er1 >conftest.err
22775   rm -f conftest.er1
22776   cat conftest.err >&5
22777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778   (exit $ac_status); } &&
22779          { ac_try='test -z "$ac_c_werror_flag"
22780                          || test ! -s conftest.err'
22781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782   (eval $ac_try) 2>&5
22783   ac_status=$?
22784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785   (exit $ac_status); }; } &&
22786          { ac_try='test -s conftest.$ac_objext'
22787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788   (eval $ac_try) 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   libjava_cv_struct_hostent_data=yes
22793 else
22794   echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797 libjava_cv_struct_hostent_data=no
22798 fi
22799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22800 fi
22801 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22802 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22803      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22804
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_STRUCT_HOSTENT_DATA 1
22807 _ACEOF
22808
22809      fi
22810
22811 fi
22812 done
22813
22814
22815    # FIXME: libjava source code expects to find a prototype for
22816    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22817    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22818    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22819    # linkage check is enough, yet C++ code requires proper prototypes.)
22820    cat >conftest.$ac_ext <<_ACEOF
22821 /* confdefs.h.  */
22822 _ACEOF
22823 cat confdefs.h >>conftest.$ac_ext
22824 cat >>conftest.$ac_ext <<_ACEOF
22825 /* end confdefs.h.  */
22826 #include <netdb.h>
22827
22828 _ACEOF
22829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22830   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22831
22832
22833 for ac_func in gethostbyaddr_r
22834 do
22835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22836 echo "$as_me:$LINENO: checking for $ac_func" >&5
22837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22838 if eval "test \"\${$as_ac_var+set}\" = set"; then
22839   echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841   if test x$gcc_no_link = xyes; then
22842   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22843 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22844    { (exit 1); exit 1; }; }
22845 fi
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h.  */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h.  */
22852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22854 #define $ac_func innocuous_$ac_func
22855
22856 /* System header to define __stub macros and hopefully few prototypes,
22857     which can conflict with char $ac_func (); below.
22858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22859     <limits.h> exists even on freestanding compilers.  */
22860
22861 #ifdef __STDC__
22862 # include <limits.h>
22863 #else
22864 # include <assert.h>
22865 #endif
22866
22867 #undef $ac_func
22868
22869 /* Override any gcc2 internal prototype to avoid an error.  */
22870 #ifdef __cplusplus
22871 extern "C"
22872 {
22873 #endif
22874 /* We use char because int might match the return type of a gcc2
22875    builtin and then its argument prototype would still apply.  */
22876 char $ac_func ();
22877 /* The GNU C library defines this for functions which it implements
22878     to always fail with ENOSYS.  Some functions are actually named
22879     something starting with __ and the normal name is an alias.  */
22880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22881 choke me
22882 #else
22883 char (*f) () = $ac_func;
22884 #endif
22885 #ifdef __cplusplus
22886 }
22887 #endif
22888
22889 int
22890 main ()
22891 {
22892 return f != $ac_func;
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 rm -f conftest.$ac_objext conftest$ac_exeext
22898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899   (eval $ac_link) 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } &&
22906          { ac_try='test -z "$ac_c_werror_flag"
22907                          || test ! -s conftest.err'
22908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909   (eval $ac_try) 2>&5
22910   ac_status=$?
22911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912   (exit $ac_status); }; } &&
22913          { ac_try='test -s conftest$ac_exeext'
22914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915   (eval $ac_try) 2>&5
22916   ac_status=$?
22917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918   (exit $ac_status); }; }; then
22919   eval "$as_ac_var=yes"
22920 else
22921   echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 eval "$as_ac_var=no"
22925 fi
22926 rm -f conftest.err conftest.$ac_objext \
22927       conftest$ac_exeext conftest.$ac_ext
22928 fi
22929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22930 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22931 if test `eval echo '${'$as_ac_var'}'` = yes; then
22932   cat >>confdefs.h <<_ACEOF
22933 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22934 _ACEOF
22935
22936
22937 cat >>confdefs.h <<\_ACEOF
22938 #define HAVE_GETHOSTBYADDR_R 1
22939 _ACEOF
22940
22941      # There are two different kinds of gethostbyaddr_r.
22942      # We look for the one that returns `int'.
22943      # Hopefully this check is robust enough.
22944      cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950 #include <netdb.h>
22951
22952 _ACEOF
22953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22954   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
22955
22956
22957 cat >>confdefs.h <<\_ACEOF
22958 #define GETHOSTBYADDR_R_RETURNS_INT 1
22959 _ACEOF
22960
22961 fi
22962 rm -f conftest*
22963
22964 fi
22965 done
22966
22967 fi
22968 rm -f conftest*
22969
22970
22971
22972 for ac_func in gethostname
22973 do
22974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22975 echo "$as_me:$LINENO: checking for $ac_func" >&5
22976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22977 if eval "test \"\${$as_ac_var+set}\" = set"; then
22978   echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980   if test x$gcc_no_link = xyes; then
22981   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22982 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22983    { (exit 1); exit 1; }; }
22984 fi
22985 cat >conftest.$ac_ext <<_ACEOF
22986 /* confdefs.h.  */
22987 _ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h.  */
22991 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22992    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22993 #define $ac_func innocuous_$ac_func
22994
22995 /* System header to define __stub macros and hopefully few prototypes,
22996     which can conflict with char $ac_func (); below.
22997     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22998     <limits.h> exists even on freestanding compilers.  */
22999
23000 #ifdef __STDC__
23001 # include <limits.h>
23002 #else
23003 # include <assert.h>
23004 #endif
23005
23006 #undef $ac_func
23007
23008 /* Override any gcc2 internal prototype to avoid an error.  */
23009 #ifdef __cplusplus
23010 extern "C"
23011 {
23012 #endif
23013 /* We use char because int might match the return type of a gcc2
23014    builtin and then its argument prototype would still apply.  */
23015 char $ac_func ();
23016 /* The GNU C library defines this for functions which it implements
23017     to always fail with ENOSYS.  Some functions are actually named
23018     something starting with __ and the normal name is an alias.  */
23019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23020 choke me
23021 #else
23022 char (*f) () = $ac_func;
23023 #endif
23024 #ifdef __cplusplus
23025 }
23026 #endif
23027
23028 int
23029 main ()
23030 {
23031 return f != $ac_func;
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext conftest$ac_exeext
23037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23038   (eval $ac_link) 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -z "$ac_c_werror_flag"
23046                          || test ! -s conftest.err'
23047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048   (eval $ac_try) 2>&5
23049   ac_status=$?
23050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051   (exit $ac_status); }; } &&
23052          { ac_try='test -s conftest$ac_exeext'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; }; then
23058   eval "$as_ac_var=yes"
23059 else
23060   echo "$as_me: failed program was:" >&5
23061 sed 's/^/| /' conftest.$ac_ext >&5
23062
23063 eval "$as_ac_var=no"
23064 fi
23065 rm -f conftest.err conftest.$ac_objext \
23066       conftest$ac_exeext conftest.$ac_ext
23067 fi
23068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23069 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23070 if test `eval echo '${'$as_ac_var'}'` = yes; then
23071   cat >>confdefs.h <<_ACEOF
23072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23073 _ACEOF
23074
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define HAVE_GETHOSTNAME 1
23078 _ACEOF
23079
23080      cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h.  */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h.  */
23086 #include <unistd.h>
23087
23088 _ACEOF
23089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23090   $EGREP "gethostname" >/dev/null 2>&1; then
23091
23092
23093 cat >>confdefs.h <<\_ACEOF
23094 #define HAVE_GETHOSTNAME_DECL 1
23095 _ACEOF
23096
23097 fi
23098 rm -f conftest*
23099
23100 fi
23101 done
23102
23103
23104
23105 for ac_func in usleep
23106 do
23107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23108 echo "$as_me:$LINENO: checking for $ac_func" >&5
23109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23110 if eval "test \"\${$as_ac_var+set}\" = set"; then
23111   echo $ECHO_N "(cached) $ECHO_C" >&6
23112 else
23113   if test x$gcc_no_link = xyes; then
23114   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23115 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23116    { (exit 1); exit 1; }; }
23117 fi
23118 cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23126 #define $ac_func innocuous_$ac_func
23127
23128 /* System header to define __stub macros and hopefully few prototypes,
23129     which can conflict with char $ac_func (); below.
23130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23131     <limits.h> exists even on freestanding compilers.  */
23132
23133 #ifdef __STDC__
23134 # include <limits.h>
23135 #else
23136 # include <assert.h>
23137 #endif
23138
23139 #undef $ac_func
23140
23141 /* Override any gcc2 internal prototype to avoid an error.  */
23142 #ifdef __cplusplus
23143 extern "C"
23144 {
23145 #endif
23146 /* We use char because int might match the return type of a gcc2
23147    builtin and then its argument prototype would still apply.  */
23148 char $ac_func ();
23149 /* The GNU C library defines this for functions which it implements
23150     to always fail with ENOSYS.  Some functions are actually named
23151     something starting with __ and the normal name is an alias.  */
23152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23153 choke me
23154 #else
23155 char (*f) () = $ac_func;
23156 #endif
23157 #ifdef __cplusplus
23158 }
23159 #endif
23160
23161 int
23162 main ()
23163 {
23164 return f != $ac_func;
23165   ;
23166   return 0;
23167 }
23168 _ACEOF
23169 rm -f conftest.$ac_objext conftest$ac_exeext
23170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23171   (eval $ac_link) 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } &&
23178          { ac_try='test -z "$ac_c_werror_flag"
23179                          || test ! -s conftest.err'
23180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181   (eval $ac_try) 2>&5
23182   ac_status=$?
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); }; } &&
23185          { ac_try='test -s conftest$ac_exeext'
23186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187   (eval $ac_try) 2>&5
23188   ac_status=$?
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); }; }; then
23191   eval "$as_ac_var=yes"
23192 else
23193   echo "$as_me: failed program was:" >&5
23194 sed 's/^/| /' conftest.$ac_ext >&5
23195
23196 eval "$as_ac_var=no"
23197 fi
23198 rm -f conftest.err conftest.$ac_objext \
23199       conftest$ac_exeext conftest.$ac_ext
23200 fi
23201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23203 if test `eval echo '${'$as_ac_var'}'` = yes; then
23204   cat >>confdefs.h <<_ACEOF
23205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23206 _ACEOF
23207
23208      cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 #include <unistd.h>
23215
23216 _ACEOF
23217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23218   $EGREP "usleep" >/dev/null 2>&1; then
23219
23220
23221 cat >>confdefs.h <<\_ACEOF
23222 #define HAVE_USLEEP_DECL 1
23223 _ACEOF
23224
23225 fi
23226 rm -f conftest*
23227
23228 fi
23229 done
23230
23231
23232    # Look for these functions in the thread library, but only bother
23233    # if using POSIX threads.
23234    if test "$THREADS" = posix; then
23235       save_LIBS="$LIBS"
23236       LIBS="$LIBS $THREADLIBS"
23237
23238       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23239       # Solaris 7 the name librt is preferred.
23240
23241 for ac_func in sched_yield
23242 do
23243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23244 echo "$as_me:$LINENO: checking for $ac_func" >&5
23245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23246 if eval "test \"\${$as_ac_var+set}\" = set"; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   if test x$gcc_no_link = xyes; then
23250   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23251 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23252    { (exit 1); exit 1; }; }
23253 fi
23254 cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h.  */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h.  */
23260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23262 #define $ac_func innocuous_$ac_func
23263
23264 /* System header to define __stub macros and hopefully few prototypes,
23265     which can conflict with char $ac_func (); below.
23266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23267     <limits.h> exists even on freestanding compilers.  */
23268
23269 #ifdef __STDC__
23270 # include <limits.h>
23271 #else
23272 # include <assert.h>
23273 #endif
23274
23275 #undef $ac_func
23276
23277 /* Override any gcc2 internal prototype to avoid an error.  */
23278 #ifdef __cplusplus
23279 extern "C"
23280 {
23281 #endif
23282 /* We use char because int might match the return type of a gcc2
23283    builtin and then its argument prototype would still apply.  */
23284 char $ac_func ();
23285 /* The GNU C library defines this for functions which it implements
23286     to always fail with ENOSYS.  Some functions are actually named
23287     something starting with __ and the normal name is an alias.  */
23288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23289 choke me
23290 #else
23291 char (*f) () = $ac_func;
23292 #endif
23293 #ifdef __cplusplus
23294 }
23295 #endif
23296
23297 int
23298 main ()
23299 {
23300 return f != $ac_func;
23301   ;
23302   return 0;
23303 }
23304 _ACEOF
23305 rm -f conftest.$ac_objext conftest$ac_exeext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23307   (eval $ac_link) 2>conftest.er1
23308   ac_status=$?
23309   grep -v '^ *+' conftest.er1 >conftest.err
23310   rm -f conftest.er1
23311   cat conftest.err >&5
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); } &&
23314          { ac_try='test -z "$ac_c_werror_flag"
23315                          || test ! -s conftest.err'
23316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317   (eval $ac_try) 2>&5
23318   ac_status=$?
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); }; } &&
23321          { ac_try='test -s conftest$ac_exeext'
23322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323   (eval $ac_try) 2>&5
23324   ac_status=$?
23325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326   (exit $ac_status); }; }; then
23327   eval "$as_ac_var=yes"
23328 else
23329   echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23331
23332 eval "$as_ac_var=no"
23333 fi
23334 rm -f conftest.err conftest.$ac_objext \
23335       conftest$ac_exeext conftest.$ac_ext
23336 fi
23337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23339 if test `eval echo '${'$as_ac_var'}'` = yes; then
23340   cat >>confdefs.h <<_ACEOF
23341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23342 _ACEOF
23343
23344 else
23345
23346         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23347 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23348 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23349   echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351   ac_check_lib_save_LIBS=$LIBS
23352 LIBS="-lrt  $LIBS"
23353 if test x$gcc_no_link = xyes; then
23354   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23356    { (exit 1); exit 1; }; }
23357 fi
23358 cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h.  */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h.  */
23364
23365 /* Override any gcc2 internal prototype to avoid an error.  */
23366 #ifdef __cplusplus
23367 extern "C"
23368 #endif
23369 /* We use char because int might match the return type of a gcc2
23370    builtin and then its argument prototype would still apply.  */
23371 char sched_yield ();
23372 int
23373 main ()
23374 {
23375 sched_yield ();
23376   ;
23377   return 0;
23378 }
23379 _ACEOF
23380 rm -f conftest.$ac_objext conftest$ac_exeext
23381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23382   (eval $ac_link) 2>conftest.er1
23383   ac_status=$?
23384   grep -v '^ *+' conftest.er1 >conftest.err
23385   rm -f conftest.er1
23386   cat conftest.err >&5
23387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388   (exit $ac_status); } &&
23389          { ac_try='test -z "$ac_c_werror_flag"
23390                          || test ! -s conftest.err'
23391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392   (eval $ac_try) 2>&5
23393   ac_status=$?
23394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395   (exit $ac_status); }; } &&
23396          { ac_try='test -s conftest$ac_exeext'
23397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398   (eval $ac_try) 2>&5
23399   ac_status=$?
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); }; }; then
23402   ac_cv_lib_rt_sched_yield=yes
23403 else
23404   echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407 ac_cv_lib_rt_sched_yield=no
23408 fi
23409 rm -f conftest.err conftest.$ac_objext \
23410       conftest$ac_exeext conftest.$ac_ext
23411 LIBS=$ac_check_lib_save_LIBS
23412 fi
23413 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23414 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23415 if test $ac_cv_lib_rt_sched_yield = yes; then
23416
23417           cat >>confdefs.h <<\_ACEOF
23418 #define HAVE_SCHED_YIELD 1
23419 _ACEOF
23420
23421           THREADLIBS="$THREADLIBS -lrt"
23422           THREADSPEC="$THREADSPEC -lrt"
23423 else
23424
23425           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23426 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23427 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23428   echo $ECHO_N "(cached) $ECHO_C" >&6
23429 else
23430   ac_check_lib_save_LIBS=$LIBS
23431 LIBS="-lposix4  $LIBS"
23432 if test x$gcc_no_link = xyes; then
23433   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23434 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23435    { (exit 1); exit 1; }; }
23436 fi
23437 cat >conftest.$ac_ext <<_ACEOF
23438 /* confdefs.h.  */
23439 _ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h.  */
23443
23444 /* Override any gcc2 internal prototype to avoid an error.  */
23445 #ifdef __cplusplus
23446 extern "C"
23447 #endif
23448 /* We use char because int might match the return type of a gcc2
23449    builtin and then its argument prototype would still apply.  */
23450 char sched_yield ();
23451 int
23452 main ()
23453 {
23454 sched_yield ();
23455   ;
23456   return 0;
23457 }
23458 _ACEOF
23459 rm -f conftest.$ac_objext conftest$ac_exeext
23460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23461   (eval $ac_link) 2>conftest.er1
23462   ac_status=$?
23463   grep -v '^ *+' conftest.er1 >conftest.err
23464   rm -f conftest.er1
23465   cat conftest.err >&5
23466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467   (exit $ac_status); } &&
23468          { ac_try='test -z "$ac_c_werror_flag"
23469                          || test ! -s conftest.err'
23470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23471   (eval $ac_try) 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); }; } &&
23475          { ac_try='test -s conftest$ac_exeext'
23476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477   (eval $ac_try) 2>&5
23478   ac_status=$?
23479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480   (exit $ac_status); }; }; then
23481   ac_cv_lib_posix4_sched_yield=yes
23482 else
23483   echo "$as_me: failed program was:" >&5
23484 sed 's/^/| /' conftest.$ac_ext >&5
23485
23486 ac_cv_lib_posix4_sched_yield=no
23487 fi
23488 rm -f conftest.err conftest.$ac_objext \
23489       conftest$ac_exeext conftest.$ac_ext
23490 LIBS=$ac_check_lib_save_LIBS
23491 fi
23492 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23493 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23494 if test $ac_cv_lib_posix4_sched_yield = yes; then
23495
23496             cat >>confdefs.h <<\_ACEOF
23497 #define HAVE_SCHED_YIELD 1
23498 _ACEOF
23499
23500             THREADLIBS="$THREADLIBS -lposix4"
23501             THREADSPEC="$THREADSPEC -lposix4"
23502 fi
23503
23504 fi
23505
23506 fi
23507 done
23508
23509
23510       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23511 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23512 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23513   echo $ECHO_N "(cached) $ECHO_C" >&6
23514 else
23515   ac_check_lib_save_LIBS=$LIBS
23516 LIBS="-lrt  $LIBS"
23517 if test x$gcc_no_link = xyes; then
23518   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23520    { (exit 1); exit 1; }; }
23521 fi
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h.  */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h.  */
23528
23529 /* Override any gcc2 internal prototype to avoid an error.  */
23530 #ifdef __cplusplus
23531 extern "C"
23532 #endif
23533 /* We use char because int might match the return type of a gcc2
23534    builtin and then its argument prototype would still apply.  */
23535 char clock_gettime ();
23536 int
23537 main ()
23538 {
23539 clock_gettime ();
23540   ;
23541   return 0;
23542 }
23543 _ACEOF
23544 rm -f conftest.$ac_objext conftest$ac_exeext
23545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23546   (eval $ac_link) 2>conftest.er1
23547   ac_status=$?
23548   grep -v '^ *+' conftest.er1 >conftest.err
23549   rm -f conftest.er1
23550   cat conftest.err >&5
23551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552   (exit $ac_status); } &&
23553          { ac_try='test -z "$ac_c_werror_flag"
23554                          || test ! -s conftest.err'
23555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556   (eval $ac_try) 2>&5
23557   ac_status=$?
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); }; } &&
23560          { ac_try='test -s conftest$ac_exeext'
23561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562   (eval $ac_try) 2>&5
23563   ac_status=$?
23564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565   (exit $ac_status); }; }; then
23566   ac_cv_lib_rt_clock_gettime=yes
23567 else
23568   echo "$as_me: failed program was:" >&5
23569 sed 's/^/| /' conftest.$ac_ext >&5
23570
23571 ac_cv_lib_rt_clock_gettime=no
23572 fi
23573 rm -f conftest.err conftest.$ac_objext \
23574       conftest$ac_exeext conftest.$ac_ext
23575 LIBS=$ac_check_lib_save_LIBS
23576 fi
23577 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23578 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23579 if test $ac_cv_lib_rt_clock_gettime = yes; then
23580
23581
23582 cat >>confdefs.h <<\_ACEOF
23583 #define HAVE_CLOCK_GETTIME 1
23584 _ACEOF
23585
23586          case "$THREADSPEC" in
23587            *-lrt*) ;;
23588            *)
23589              THREADSPEC="$THREADSPEC -lrt"
23590              THREADLIBS="$THREADLIBS -lrt"
23591              ;;
23592          esac
23593 fi
23594
23595
23596       LIBS="$save_LIBS"
23597
23598       # We can save a little space at runtime if the mutex has m_count
23599       # or __m_count.  This is a nice hack for Linux.
23600       cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h.  */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h.  */
23606 #include <pthread.h>
23607 int
23608 main ()
23609 {
23610
23611           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23612
23613   ;
23614   return 0;
23615 }
23616 _ACEOF
23617 rm -f conftest.$ac_objext
23618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23619   (eval $ac_compile) 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } &&
23626          { ac_try='test -z "$ac_c_werror_flag"
23627                          || test ! -s conftest.err'
23628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23629   (eval $ac_try) 2>&5
23630   ac_status=$?
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); }; } &&
23633          { ac_try='test -s conftest.$ac_objext'
23634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635   (eval $ac_try) 2>&5
23636   ac_status=$?
23637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638   (exit $ac_status); }; }; then
23639
23640 cat >>confdefs.h <<\_ACEOF
23641 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23642 _ACEOF
23643
23644 else
23645   echo "$as_me: failed program was:" >&5
23646 sed 's/^/| /' conftest.$ac_ext >&5
23647
23648
23649         cat >conftest.$ac_ext <<_ACEOF
23650 /* confdefs.h.  */
23651 _ACEOF
23652 cat confdefs.h >>conftest.$ac_ext
23653 cat >>conftest.$ac_ext <<_ACEOF
23654 /* end confdefs.h.  */
23655 #include <pthread.h>
23656 int
23657 main ()
23658 {
23659
23660             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23661
23662   ;
23663   return 0;
23664 }
23665 _ACEOF
23666 rm -f conftest.$ac_objext
23667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23668   (eval $ac_compile) 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } &&
23675          { ac_try='test -z "$ac_c_werror_flag"
23676                          || test ! -s conftest.err'
23677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678   (eval $ac_try) 2>&5
23679   ac_status=$?
23680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681   (exit $ac_status); }; } &&
23682          { ac_try='test -s conftest.$ac_objext'
23683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684   (eval $ac_try) 2>&5
23685   ac_status=$?
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); }; }; then
23688
23689 cat >>confdefs.h <<\_ACEOF
23690 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23691 _ACEOF
23692
23693 else
23694   echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23696
23697 fi
23698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23699 fi
23700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23701    fi
23702
23703    # We require a way to get the time.
23704    time_found=no
23705
23706
23707
23708 for ac_func in gettimeofday time ftime
23709 do
23710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23711 echo "$as_me:$LINENO: checking for $ac_func" >&5
23712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23713 if eval "test \"\${$as_ac_var+set}\" = set"; then
23714   echo $ECHO_N "(cached) $ECHO_C" >&6
23715 else
23716   if test x$gcc_no_link = xyes; then
23717   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23718 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23719    { (exit 1); exit 1; }; }
23720 fi
23721 cat >conftest.$ac_ext <<_ACEOF
23722 /* confdefs.h.  */
23723 _ACEOF
23724 cat confdefs.h >>conftest.$ac_ext
23725 cat >>conftest.$ac_ext <<_ACEOF
23726 /* end confdefs.h.  */
23727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23729 #define $ac_func innocuous_$ac_func
23730
23731 /* System header to define __stub macros and hopefully few prototypes,
23732     which can conflict with char $ac_func (); below.
23733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23734     <limits.h> exists even on freestanding compilers.  */
23735
23736 #ifdef __STDC__
23737 # include <limits.h>
23738 #else
23739 # include <assert.h>
23740 #endif
23741
23742 #undef $ac_func
23743
23744 /* Override any gcc2 internal prototype to avoid an error.  */
23745 #ifdef __cplusplus
23746 extern "C"
23747 {
23748 #endif
23749 /* We use char because int might match the return type of a gcc2
23750    builtin and then its argument prototype would still apply.  */
23751 char $ac_func ();
23752 /* The GNU C library defines this for functions which it implements
23753     to always fail with ENOSYS.  Some functions are actually named
23754     something starting with __ and the normal name is an alias.  */
23755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23756 choke me
23757 #else
23758 char (*f) () = $ac_func;
23759 #endif
23760 #ifdef __cplusplus
23761 }
23762 #endif
23763
23764 int
23765 main ()
23766 {
23767 return f != $ac_func;
23768   ;
23769   return 0;
23770 }
23771 _ACEOF
23772 rm -f conftest.$ac_objext conftest$ac_exeext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774   (eval $ac_link) 2>conftest.er1
23775   ac_status=$?
23776   grep -v '^ *+' conftest.er1 >conftest.err
23777   rm -f conftest.er1
23778   cat conftest.err >&5
23779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780   (exit $ac_status); } &&
23781          { ac_try='test -z "$ac_c_werror_flag"
23782                          || test ! -s conftest.err'
23783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784   (eval $ac_try) 2>&5
23785   ac_status=$?
23786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787   (exit $ac_status); }; } &&
23788          { ac_try='test -s conftest$ac_exeext'
23789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790   (eval $ac_try) 2>&5
23791   ac_status=$?
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); }; }; then
23794   eval "$as_ac_var=yes"
23795 else
23796   echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23798
23799 eval "$as_ac_var=no"
23800 fi
23801 rm -f conftest.err conftest.$ac_objext \
23802       conftest$ac_exeext conftest.$ac_ext
23803 fi
23804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23806 if test `eval echo '${'$as_ac_var'}'` = yes; then
23807   cat >>confdefs.h <<_ACEOF
23808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23809 _ACEOF
23810  time_found=yes
23811 fi
23812 done
23813
23814    if test "$time_found" = no; then
23815       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23816 echo "$as_me: error: no function found to get the time" >&2;}
23817    { (exit 1); exit 1; }; }
23818    fi
23819
23820
23821 for ac_func in memmove
23822 do
23823 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23824 echo "$as_me:$LINENO: checking for $ac_func" >&5
23825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23826 if eval "test \"\${$as_ac_var+set}\" = set"; then
23827   echo $ECHO_N "(cached) $ECHO_C" >&6
23828 else
23829   if test x$gcc_no_link = xyes; then
23830   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23831 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23832    { (exit 1); exit 1; }; }
23833 fi
23834 cat >conftest.$ac_ext <<_ACEOF
23835 /* confdefs.h.  */
23836 _ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h.  */
23840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23842 #define $ac_func innocuous_$ac_func
23843
23844 /* System header to define __stub macros and hopefully few prototypes,
23845     which can conflict with char $ac_func (); below.
23846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23847     <limits.h> exists even on freestanding compilers.  */
23848
23849 #ifdef __STDC__
23850 # include <limits.h>
23851 #else
23852 # include <assert.h>
23853 #endif
23854
23855 #undef $ac_func
23856
23857 /* Override any gcc2 internal prototype to avoid an error.  */
23858 #ifdef __cplusplus
23859 extern "C"
23860 {
23861 #endif
23862 /* We use char because int might match the return type of a gcc2
23863    builtin and then its argument prototype would still apply.  */
23864 char $ac_func ();
23865 /* The GNU C library defines this for functions which it implements
23866     to always fail with ENOSYS.  Some functions are actually named
23867     something starting with __ and the normal name is an alias.  */
23868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23869 choke me
23870 #else
23871 char (*f) () = $ac_func;
23872 #endif
23873 #ifdef __cplusplus
23874 }
23875 #endif
23876
23877 int
23878 main ()
23879 {
23880 return f != $ac_func;
23881   ;
23882   return 0;
23883 }
23884 _ACEOF
23885 rm -f conftest.$ac_objext conftest$ac_exeext
23886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23887   (eval $ac_link) 2>conftest.er1
23888   ac_status=$?
23889   grep -v '^ *+' conftest.er1 >conftest.err
23890   rm -f conftest.er1
23891   cat conftest.err >&5
23892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893   (exit $ac_status); } &&
23894          { ac_try='test -z "$ac_c_werror_flag"
23895                          || test ! -s conftest.err'
23896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23897   (eval $ac_try) 2>&5
23898   ac_status=$?
23899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900   (exit $ac_status); }; } &&
23901          { ac_try='test -s conftest$ac_exeext'
23902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; }; then
23907   eval "$as_ac_var=yes"
23908 else
23909   echo "$as_me: failed program was:" >&5
23910 sed 's/^/| /' conftest.$ac_ext >&5
23911
23912 eval "$as_ac_var=no"
23913 fi
23914 rm -f conftest.err conftest.$ac_objext \
23915       conftest$ac_exeext conftest.$ac_ext
23916 fi
23917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23918 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23919 if test `eval echo '${'$as_ac_var'}'` = yes; then
23920   cat >>confdefs.h <<_ACEOF
23921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23922 _ACEOF
23923
23924 fi
23925 done
23926
23927
23928    # We require memcpy.
23929    memcpy_found=no
23930
23931 for ac_func in memcpy
23932 do
23933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23934 echo "$as_me:$LINENO: checking for $ac_func" >&5
23935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23936 if eval "test \"\${$as_ac_var+set}\" = set"; then
23937   echo $ECHO_N "(cached) $ECHO_C" >&6
23938 else
23939   if test x$gcc_no_link = xyes; then
23940   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23941 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23942    { (exit 1); exit 1; }; }
23943 fi
23944 cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23952 #define $ac_func innocuous_$ac_func
23953
23954 /* System header to define __stub macros and hopefully few prototypes,
23955     which can conflict with char $ac_func (); below.
23956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23957     <limits.h> exists even on freestanding compilers.  */
23958
23959 #ifdef __STDC__
23960 # include <limits.h>
23961 #else
23962 # include <assert.h>
23963 #endif
23964
23965 #undef $ac_func
23966
23967 /* Override any gcc2 internal prototype to avoid an error.  */
23968 #ifdef __cplusplus
23969 extern "C"
23970 {
23971 #endif
23972 /* We use char because int might match the return type of a gcc2
23973    builtin and then its argument prototype would still apply.  */
23974 char $ac_func ();
23975 /* The GNU C library defines this for functions which it implements
23976     to always fail with ENOSYS.  Some functions are actually named
23977     something starting with __ and the normal name is an alias.  */
23978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23979 choke me
23980 #else
23981 char (*f) () = $ac_func;
23982 #endif
23983 #ifdef __cplusplus
23984 }
23985 #endif
23986
23987 int
23988 main ()
23989 {
23990 return f != $ac_func;
23991   ;
23992   return 0;
23993 }
23994 _ACEOF
23995 rm -f conftest.$ac_objext conftest$ac_exeext
23996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23997   (eval $ac_link) 2>conftest.er1
23998   ac_status=$?
23999   grep -v '^ *+' conftest.er1 >conftest.err
24000   rm -f conftest.er1
24001   cat conftest.err >&5
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } &&
24004          { ac_try='test -z "$ac_c_werror_flag"
24005                          || test ! -s conftest.err'
24006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007   (eval $ac_try) 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; } &&
24011          { ac_try='test -s conftest$ac_exeext'
24012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013   (eval $ac_try) 2>&5
24014   ac_status=$?
24015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016   (exit $ac_status); }; }; then
24017   eval "$as_ac_var=yes"
24018 else
24019   echo "$as_me: failed program was:" >&5
24020 sed 's/^/| /' conftest.$ac_ext >&5
24021
24022 eval "$as_ac_var=no"
24023 fi
24024 rm -f conftest.err conftest.$ac_objext \
24025       conftest$ac_exeext conftest.$ac_ext
24026 fi
24027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24029 if test `eval echo '${'$as_ac_var'}'` = yes; then
24030   cat >>confdefs.h <<_ACEOF
24031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24032 _ACEOF
24033  memcpy_found=yes
24034 fi
24035 done
24036
24037    if test "$memcpy_found" = no; then
24038       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24039 echo "$as_me: error: memcpy is required" >&2;}
24040    { (exit 1); exit 1; }; }
24041    fi
24042    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24043    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24046   echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048   ac_check_lib_save_LIBS=$LIBS
24049 LIBS="-ldl  $LIBS"
24050 if test x$gcc_no_link = xyes; then
24051   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24052 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24053    { (exit 1); exit 1; }; }
24054 fi
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061
24062 /* Override any gcc2 internal prototype to avoid an error.  */
24063 #ifdef __cplusplus
24064 extern "C"
24065 #endif
24066 /* We use char because int might match the return type of a gcc2
24067    builtin and then its argument prototype would still apply.  */
24068 char dlopen ();
24069 int
24070 main ()
24071 {
24072 dlopen ();
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24079   (eval $ac_link) 2>conftest.er1
24080   ac_status=$?
24081   grep -v '^ *+' conftest.er1 >conftest.err
24082   rm -f conftest.er1
24083   cat conftest.err >&5
24084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24085   (exit $ac_status); } &&
24086          { ac_try='test -z "$ac_c_werror_flag"
24087                          || test ! -s conftest.err'
24088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24089   (eval $ac_try) 2>&5
24090   ac_status=$?
24091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092   (exit $ac_status); }; } &&
24093          { ac_try='test -s conftest$ac_exeext'
24094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095   (eval $ac_try) 2>&5
24096   ac_status=$?
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); }; }; then
24099   ac_cv_lib_dl_dlopen=yes
24100 else
24101   echo "$as_me: failed program was:" >&5
24102 sed 's/^/| /' conftest.$ac_ext >&5
24103
24104 ac_cv_lib_dl_dlopen=no
24105 fi
24106 rm -f conftest.err conftest.$ac_objext \
24107       conftest$ac_exeext conftest.$ac_ext
24108 LIBS=$ac_check_lib_save_LIBS
24109 fi
24110 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24111 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24112 if test $ac_cv_lib_dl_dlopen = yes; then
24113
24114
24115 cat >>confdefs.h <<\_ACEOF
24116 #define HAVE_DLOPEN 1
24117 _ACEOF
24118
24119 else
24120
24121        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24122 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24123 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24124   echo $ECHO_N "(cached) $ECHO_C" >&6
24125 else
24126   ac_check_lib_save_LIBS=$LIBS
24127 LIBS="-ldld  $LIBS"
24128 if test x$gcc_no_link = xyes; then
24129   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24130 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24131    { (exit 1); exit 1; }; }
24132 fi
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139
24140 /* Override any gcc2 internal prototype to avoid an error.  */
24141 #ifdef __cplusplus
24142 extern "C"
24143 #endif
24144 /* We use char because int might match the return type of a gcc2
24145    builtin and then its argument prototype would still apply.  */
24146 char dlopen ();
24147 int
24148 main ()
24149 {
24150 dlopen ();
24151   ;
24152   return 0;
24153 }
24154 _ACEOF
24155 rm -f conftest.$ac_objext conftest$ac_exeext
24156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24157   (eval $ac_link) 2>conftest.er1
24158   ac_status=$?
24159   grep -v '^ *+' conftest.er1 >conftest.err
24160   rm -f conftest.er1
24161   cat conftest.err >&5
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); } &&
24164          { ac_try='test -z "$ac_c_werror_flag"
24165                          || test ! -s conftest.err'
24166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167   (eval $ac_try) 2>&5
24168   ac_status=$?
24169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170   (exit $ac_status); }; } &&
24171          { ac_try='test -s conftest$ac_exeext'
24172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173   (eval $ac_try) 2>&5
24174   ac_status=$?
24175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176   (exit $ac_status); }; }; then
24177   ac_cv_lib_dld_dlopen=yes
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24181
24182 ac_cv_lib_dld_dlopen=no
24183 fi
24184 rm -f conftest.err conftest.$ac_objext \
24185       conftest$ac_exeext conftest.$ac_ext
24186 LIBS=$ac_check_lib_save_LIBS
24187 fi
24188 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24189 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24190 if test $ac_cv_lib_dld_dlopen = yes; then
24191
24192
24193 cat >>confdefs.h <<\_ACEOF
24194 #define HAVE_DLOPEN 1
24195 _ACEOF
24196
24197 fi
24198
24199 fi
24200
24201
24202    # Some library-finding code we stole from Tcl.
24203    #--------------------------------------------------------------------
24204    #    Check for the existence of the -lsocket and -lnsl libraries.
24205    #    The order here is important, so that they end up in the right
24206    #    order in the command line generated by make.  Here are some
24207    #    special considerations:
24208    #    1. Use "connect" and "accept" to check for -lsocket, and
24209    #       "gethostbyname" to check for -lnsl.
24210    #    2. Use each function name only once:  can't redo a check because
24211    #       autoconf caches the results of the last check and won't redo it.
24212    #    3. Use -lnsl and -lsocket only if they supply procedures that
24213    #       aren't already present in the normal libraries.  This is because
24214    #       IRIX 5.2 has libraries, but they aren't needed and they're
24215    #       bogus:  they goof up name resolution if used.
24216    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24217    #       To get around this problem, check for both libraries together
24218    #       if -lsocket doesn't work by itself.
24219    #--------------------------------------------------------------------
24220
24221    echo "$as_me:$LINENO: checking for socket libraries" >&5
24222 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24223 if test "${gcj_cv_lib_sockets+set}" = set; then
24224   echo $ECHO_N "(cached) $ECHO_C" >&6
24225 else
24226   gcj_cv_lib_sockets=
24227      gcj_checkBoth=0
24228      unset ac_cv_func_connect
24229      echo "$as_me:$LINENO: checking for connect" >&5
24230 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24231 if test "${ac_cv_func_connect+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   if test x$gcc_no_link = xyes; then
24235   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24237    { (exit 1); exit 1; }; }
24238 fi
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24247 #define connect innocuous_connect
24248
24249 /* System header to define __stub macros and hopefully few prototypes,
24250     which can conflict with char connect (); below.
24251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252     <limits.h> exists even on freestanding compilers.  */
24253
24254 #ifdef __STDC__
24255 # include <limits.h>
24256 #else
24257 # include <assert.h>
24258 #endif
24259
24260 #undef connect
24261
24262 /* Override any gcc2 internal prototype to avoid an error.  */
24263 #ifdef __cplusplus
24264 extern "C"
24265 {
24266 #endif
24267 /* We use char because int might match the return type of a gcc2
24268    builtin and then its argument prototype would still apply.  */
24269 char connect ();
24270 /* The GNU C library defines this for functions which it implements
24271     to always fail with ENOSYS.  Some functions are actually named
24272     something starting with __ and the normal name is an alias.  */
24273 #if defined (__stub_connect) || defined (__stub___connect)
24274 choke me
24275 #else
24276 char (*f) () = connect;
24277 #endif
24278 #ifdef __cplusplus
24279 }
24280 #endif
24281
24282 int
24283 main ()
24284 {
24285 return f != connect;
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest.$ac_objext conftest$ac_exeext
24291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24292   (eval $ac_link) 2>conftest.er1
24293   ac_status=$?
24294   grep -v '^ *+' conftest.er1 >conftest.err
24295   rm -f conftest.er1
24296   cat conftest.err >&5
24297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298   (exit $ac_status); } &&
24299          { ac_try='test -z "$ac_c_werror_flag"
24300                          || test ! -s conftest.err'
24301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24302   (eval $ac_try) 2>&5
24303   ac_status=$?
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); }; } &&
24306          { ac_try='test -s conftest$ac_exeext'
24307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308   (eval $ac_try) 2>&5
24309   ac_status=$?
24310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311   (exit $ac_status); }; }; then
24312   ac_cv_func_connect=yes
24313 else
24314   echo "$as_me: failed program was:" >&5
24315 sed 's/^/| /' conftest.$ac_ext >&5
24316
24317 ac_cv_func_connect=no
24318 fi
24319 rm -f conftest.err conftest.$ac_objext \
24320       conftest$ac_exeext conftest.$ac_ext
24321 fi
24322 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24323 echo "${ECHO_T}$ac_cv_func_connect" >&6
24324 if test $ac_cv_func_connect = yes; then
24325   gcj_checkSocket=0
24326 else
24327   gcj_checkSocket=1
24328 fi
24329
24330      if test "$gcj_checkSocket" = 1; then
24331          unset ac_cv_func_connect
24332          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24333 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24334 if test "${ac_cv_lib_socket_main+set}" = set; then
24335   echo $ECHO_N "(cached) $ECHO_C" >&6
24336 else
24337   ac_check_lib_save_LIBS=$LIBS
24338 LIBS="-lsocket  $LIBS"
24339 if test x$gcc_no_link = xyes; then
24340   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24341 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24342    { (exit 1); exit 1; }; }
24343 fi
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350
24351
24352 int
24353 main ()
24354 {
24355 main ();
24356   ;
24357   return 0;
24358 }
24359 _ACEOF
24360 rm -f conftest.$ac_objext conftest$ac_exeext
24361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24362   (eval $ac_link) 2>conftest.er1
24363   ac_status=$?
24364   grep -v '^ *+' conftest.er1 >conftest.err
24365   rm -f conftest.er1
24366   cat conftest.err >&5
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); } &&
24369          { ac_try='test -z "$ac_c_werror_flag"
24370                          || test ! -s conftest.err'
24371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372   (eval $ac_try) 2>&5
24373   ac_status=$?
24374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375   (exit $ac_status); }; } &&
24376          { ac_try='test -s conftest$ac_exeext'
24377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24378   (eval $ac_try) 2>&5
24379   ac_status=$?
24380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381   (exit $ac_status); }; }; then
24382   ac_cv_lib_socket_main=yes
24383 else
24384   echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387 ac_cv_lib_socket_main=no
24388 fi
24389 rm -f conftest.err conftest.$ac_objext \
24390       conftest$ac_exeext conftest.$ac_ext
24391 LIBS=$ac_check_lib_save_LIBS
24392 fi
24393 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24394 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24395 if test $ac_cv_lib_socket_main = yes; then
24396   gcj_cv_lib_sockets="-lsocket"
24397 else
24398   gcj_checkBoth=1
24399 fi
24400
24401      fi
24402      if test "$gcj_checkBoth" = 1; then
24403          gcj_oldLibs=$LIBS
24404          LIBS="$LIBS -lsocket -lnsl"
24405          unset ac_cv_func_accept
24406          echo "$as_me:$LINENO: checking for accept" >&5
24407 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24408 if test "${ac_cv_func_accept+set}" = set; then
24409   echo $ECHO_N "(cached) $ECHO_C" >&6
24410 else
24411   if test x$gcc_no_link = xyes; then
24412   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24413 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24414    { (exit 1); exit 1; }; }
24415 fi
24416 cat >conftest.$ac_ext <<_ACEOF
24417 /* confdefs.h.  */
24418 _ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h.  */
24422 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24424 #define accept innocuous_accept
24425
24426 /* System header to define __stub macros and hopefully few prototypes,
24427     which can conflict with char accept (); below.
24428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24429     <limits.h> exists even on freestanding compilers.  */
24430
24431 #ifdef __STDC__
24432 # include <limits.h>
24433 #else
24434 # include <assert.h>
24435 #endif
24436
24437 #undef accept
24438
24439 /* Override any gcc2 internal prototype to avoid an error.  */
24440 #ifdef __cplusplus
24441 extern "C"
24442 {
24443 #endif
24444 /* We use char because int might match the return type of a gcc2
24445    builtin and then its argument prototype would still apply.  */
24446 char accept ();
24447 /* The GNU C library defines this for functions which it implements
24448     to always fail with ENOSYS.  Some functions are actually named
24449     something starting with __ and the normal name is an alias.  */
24450 #if defined (__stub_accept) || defined (__stub___accept)
24451 choke me
24452 #else
24453 char (*f) () = accept;
24454 #endif
24455 #ifdef __cplusplus
24456 }
24457 #endif
24458
24459 int
24460 main ()
24461 {
24462 return f != accept;
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469   (eval $ac_link) 2>conftest.er1
24470   ac_status=$?
24471   grep -v '^ *+' conftest.er1 >conftest.err
24472   rm -f conftest.er1
24473   cat conftest.err >&5
24474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475   (exit $ac_status); } &&
24476          { ac_try='test -z "$ac_c_werror_flag"
24477                          || test ! -s conftest.err'
24478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479   (eval $ac_try) 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485   (eval $ac_try) 2>&5
24486   ac_status=$?
24487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488   (exit $ac_status); }; }; then
24489   ac_cv_func_accept=yes
24490 else
24491   echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24493
24494 ac_cv_func_accept=no
24495 fi
24496 rm -f conftest.err conftest.$ac_objext \
24497       conftest$ac_exeext conftest.$ac_ext
24498 fi
24499 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24500 echo "${ECHO_T}$ac_cv_func_accept" >&6
24501 if test $ac_cv_func_accept = yes; then
24502   gcj_checkNsl=0
24503                         gcj_cv_lib_sockets="-lsocket -lnsl"
24504 fi
24505
24506          unset ac_cv_func_accept
24507          LIBS=$gcj_oldLibs
24508      fi
24509      unset ac_cv_func_gethostbyname
24510      gcj_oldLibs=$LIBS
24511      LIBS="$LIBS $gcj_cv_lib_sockets"
24512      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24513 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24514 if test "${ac_cv_func_gethostbyname+set}" = set; then
24515   echo $ECHO_N "(cached) $ECHO_C" >&6
24516 else
24517   if test x$gcc_no_link = xyes; then
24518   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24519 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24520    { (exit 1); exit 1; }; }
24521 fi
24522 cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24530 #define gethostbyname innocuous_gethostbyname
24531
24532 /* System header to define __stub macros and hopefully few prototypes,
24533     which can conflict with char gethostbyname (); below.
24534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24535     <limits.h> exists even on freestanding compilers.  */
24536
24537 #ifdef __STDC__
24538 # include <limits.h>
24539 #else
24540 # include <assert.h>
24541 #endif
24542
24543 #undef gethostbyname
24544
24545 /* Override any gcc2 internal prototype to avoid an error.  */
24546 #ifdef __cplusplus
24547 extern "C"
24548 {
24549 #endif
24550 /* We use char because int might match the return type of a gcc2
24551    builtin and then its argument prototype would still apply.  */
24552 char gethostbyname ();
24553 /* The GNU C library defines this for functions which it implements
24554     to always fail with ENOSYS.  Some functions are actually named
24555     something starting with __ and the normal name is an alias.  */
24556 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24557 choke me
24558 #else
24559 char (*f) () = gethostbyname;
24560 #endif
24561 #ifdef __cplusplus
24562 }
24563 #endif
24564
24565 int
24566 main ()
24567 {
24568 return f != gethostbyname;
24569   ;
24570   return 0;
24571 }
24572 _ACEOF
24573 rm -f conftest.$ac_objext conftest$ac_exeext
24574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24575   (eval $ac_link) 2>conftest.er1
24576   ac_status=$?
24577   grep -v '^ *+' conftest.er1 >conftest.err
24578   rm -f conftest.er1
24579   cat conftest.err >&5
24580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581   (exit $ac_status); } &&
24582          { ac_try='test -z "$ac_c_werror_flag"
24583                          || test ! -s conftest.err'
24584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585   (eval $ac_try) 2>&5
24586   ac_status=$?
24587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588   (exit $ac_status); }; } &&
24589          { ac_try='test -s conftest$ac_exeext'
24590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591   (eval $ac_try) 2>&5
24592   ac_status=$?
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); }; }; then
24595   ac_cv_func_gethostbyname=yes
24596 else
24597   echo "$as_me: failed program was:" >&5
24598 sed 's/^/| /' conftest.$ac_ext >&5
24599
24600 ac_cv_func_gethostbyname=no
24601 fi
24602 rm -f conftest.err conftest.$ac_objext \
24603       conftest$ac_exeext conftest.$ac_ext
24604 fi
24605 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24606 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24607 if test $ac_cv_func_gethostbyname = yes; then
24608   :
24609 else
24610   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24611 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24612 if test "${ac_cv_lib_nsl_main+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615   ac_check_lib_save_LIBS=$LIBS
24616 LIBS="-lnsl  $LIBS"
24617 if test x$gcc_no_link = xyes; then
24618   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24619 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24620    { (exit 1); exit 1; }; }
24621 fi
24622 cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h.  */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h.  */
24628
24629
24630 int
24631 main ()
24632 {
24633 main ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24640   (eval $ac_link) 2>conftest.er1
24641   ac_status=$?
24642   grep -v '^ *+' conftest.er1 >conftest.err
24643   rm -f conftest.er1
24644   cat conftest.err >&5
24645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24646   (exit $ac_status); } &&
24647          { ac_try='test -z "$ac_c_werror_flag"
24648                          || test ! -s conftest.err'
24649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650   (eval $ac_try) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); }; } &&
24654          { ac_try='test -s conftest$ac_exeext'
24655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656   (eval $ac_try) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; }; then
24660   ac_cv_lib_nsl_main=yes
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 ac_cv_lib_nsl_main=no
24666 fi
24667 rm -f conftest.err conftest.$ac_objext \
24668       conftest$ac_exeext conftest.$ac_ext
24669 LIBS=$ac_check_lib_save_LIBS
24670 fi
24671 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24672 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24673 if test $ac_cv_lib_nsl_main = yes; then
24674   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24675 fi
24676
24677 fi
24678
24679      unset ac_cv_func_gethostbyname
24680      LIBS=$gcj_oldLIBS
24681
24682 fi
24683 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24684 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24685    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24686
24687    if test "$with_system_zlib" = yes; then
24688       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24689 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24690 if test "${ac_cv_lib_z_deflate+set}" = set; then
24691   echo $ECHO_N "(cached) $ECHO_C" >&6
24692 else
24693   ac_check_lib_save_LIBS=$LIBS
24694 LIBS="-lz  $LIBS"
24695 if test x$gcc_no_link = xyes; then
24696   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24697 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24698    { (exit 1); exit 1; }; }
24699 fi
24700 cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706
24707 /* Override any gcc2 internal prototype to avoid an error.  */
24708 #ifdef __cplusplus
24709 extern "C"
24710 #endif
24711 /* We use char because int might match the return type of a gcc2
24712    builtin and then its argument prototype would still apply.  */
24713 char deflate ();
24714 int
24715 main ()
24716 {
24717 deflate ();
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext conftest$ac_exeext
24723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24724   (eval $ac_link) 2>conftest.er1
24725   ac_status=$?
24726   grep -v '^ *+' conftest.er1 >conftest.err
24727   rm -f conftest.er1
24728   cat conftest.err >&5
24729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730   (exit $ac_status); } &&
24731          { ac_try='test -z "$ac_c_werror_flag"
24732                          || test ! -s conftest.err'
24733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24734   (eval $ac_try) 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); }; } &&
24738          { ac_try='test -s conftest$ac_exeext'
24739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740   (eval $ac_try) 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   ac_cv_lib_z_deflate=yes
24745 else
24746   echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749 ac_cv_lib_z_deflate=no
24750 fi
24751 rm -f conftest.err conftest.$ac_objext \
24752       conftest$ac_exeext conftest.$ac_ext
24753 LIBS=$ac_check_lib_save_LIBS
24754 fi
24755 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24756 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24757 if test $ac_cv_lib_z_deflate = yes; then
24758   ZLIBSPEC=-lz
24759 else
24760   ZLIBSPEC=
24761 fi
24762
24763    fi
24764
24765    # Test for Gtk stuff, if asked for.
24766    if test "$use_gtk_awt" = yes; then
24767
24768   succeeded=no
24769
24770   if test -z "$PKG_CONFIG"; then
24771     # Extract the first word of "pkg-config", so it can be a program name with args.
24772 set dummy pkg-config; ac_word=$2
24773 echo "$as_me:$LINENO: checking for $ac_word" >&5
24774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24776   echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778   case $PKG_CONFIG in
24779   [\\/]* | ?:[\\/]*)
24780   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24781   ;;
24782   *)
24783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24784 for as_dir in $PATH
24785 do
24786   IFS=$as_save_IFS
24787   test -z "$as_dir" && as_dir=.
24788   for ac_exec_ext in '' $ac_executable_extensions; do
24789   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24790     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24792     break 2
24793   fi
24794 done
24795 done
24796
24797   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24798   ;;
24799 esac
24800 fi
24801 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24802
24803 if test -n "$PKG_CONFIG"; then
24804   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24805 echo "${ECHO_T}$PKG_CONFIG" >&6
24806 else
24807   echo "$as_me:$LINENO: result: no" >&5
24808 echo "${ECHO_T}no" >&6
24809 fi
24810
24811   fi
24812
24813   if test "$PKG_CONFIG" = "no" ; then
24814      echo "*** The pkg-config script could not be found. Make sure it is"
24815      echo "*** in your path, or set the PKG_CONFIG environment variable"
24816      echo "*** to the full path to pkg-config."
24817      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24818   else
24819      PKG_CONFIG_MIN_VERSION=0.9.0
24820      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24821         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24822 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24823
24824         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24825             echo "$as_me:$LINENO: result: yes" >&5
24826 echo "${ECHO_T}yes" >&6
24827             succeeded=yes
24828
24829             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24830 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24831             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24832             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24833 echo "${ECHO_T}$GTK_CFLAGS" >&6
24834
24835             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24836 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24837             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24838             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24839 echo "${ECHO_T}$GTK_LIBS" >&6
24840         else
24841             GTK_CFLAGS=""
24842             GTK_LIBS=""
24843             ## If we have a custom action on failure, don't print errors, but
24844             ## do set a variable so people can do so.
24845             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24846             echo $GTK_PKG_ERRORS
24847         fi
24848
24849
24850
24851      else
24852         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24853         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24854      fi
24855   fi
24856
24857   if test $succeeded = yes; then
24858      :
24859   else
24860      { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) 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
24861 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) 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;}
24862    { (exit 1); exit 1; }; }
24863   fi
24864
24865
24866
24867
24868
24869   succeeded=no
24870
24871   if test -z "$PKG_CONFIG"; then
24872     # Extract the first word of "pkg-config", so it can be a program name with args.
24873 set dummy pkg-config; ac_word=$2
24874 echo "$as_me:$LINENO: checking for $ac_word" >&5
24875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24876 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24877   echo $ECHO_N "(cached) $ECHO_C" >&6
24878 else
24879   case $PKG_CONFIG in
24880   [\\/]* | ?:[\\/]*)
24881   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24882   ;;
24883   *)
24884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885 for as_dir in $PATH
24886 do
24887   IFS=$as_save_IFS
24888   test -z "$as_dir" && as_dir=.
24889   for ac_exec_ext in '' $ac_executable_extensions; do
24890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24891     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24893     break 2
24894   fi
24895 done
24896 done
24897
24898   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24899   ;;
24900 esac
24901 fi
24902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24903
24904 if test -n "$PKG_CONFIG"; then
24905   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24906 echo "${ECHO_T}$PKG_CONFIG" >&6
24907 else
24908   echo "$as_me:$LINENO: result: no" >&5
24909 echo "${ECHO_T}no" >&6
24910 fi
24911
24912   fi
24913
24914   if test "$PKG_CONFIG" = "no" ; then
24915      echo "*** The pkg-config script could not be found. Make sure it is"
24916      echo "*** in your path, or set the PKG_CONFIG environment variable"
24917      echo "*** to the full path to pkg-config."
24918      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24919   else
24920      PKG_CONFIG_MIN_VERSION=0.9.0
24921      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24922         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
24923 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
24924
24925         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
24926             echo "$as_me:$LINENO: result: yes" >&5
24927 echo "${ECHO_T}yes" >&6
24928             succeeded=yes
24929
24930             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
24931 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
24932             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24933             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
24934 echo "${ECHO_T}$GLIB_CFLAGS" >&6
24935
24936             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
24937 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
24938             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24939             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
24940 echo "${ECHO_T}$GLIB_LIBS" >&6
24941         else
24942             GLIB_CFLAGS=""
24943             GLIB_LIBS=""
24944             ## If we have a custom action on failure, don't print errors, but
24945             ## do set a variable so people can do so.
24946             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24947             echo $GLIB_PKG_ERRORS
24948         fi
24949
24950
24951
24952      else
24953         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24954         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24955      fi
24956   fi
24957
24958   if test $succeeded = yes; then
24959      :
24960   else
24961      { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) 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
24962 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) 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;}
24963    { (exit 1); exit 1; }; }
24964   fi
24965
24966
24967
24968
24969
24970   succeeded=no
24971
24972   if test -z "$PKG_CONFIG"; then
24973     # Extract the first word of "pkg-config", so it can be a program name with args.
24974 set dummy pkg-config; ac_word=$2
24975 echo "$as_me:$LINENO: checking for $ac_word" >&5
24976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24978   echo $ECHO_N "(cached) $ECHO_C" >&6
24979 else
24980   case $PKG_CONFIG in
24981   [\\/]* | ?:[\\/]*)
24982   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24983   ;;
24984   *)
24985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24986 for as_dir in $PATH
24987 do
24988   IFS=$as_save_IFS
24989   test -z "$as_dir" && as_dir=.
24990   for ac_exec_ext in '' $ac_executable_extensions; do
24991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24992     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24994     break 2
24995   fi
24996 done
24997 done
24998
24999   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25000   ;;
25001 esac
25002 fi
25003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25004
25005 if test -n "$PKG_CONFIG"; then
25006   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25007 echo "${ECHO_T}$PKG_CONFIG" >&6
25008 else
25009   echo "$as_me:$LINENO: result: no" >&5
25010 echo "${ECHO_T}no" >&6
25011 fi
25012
25013   fi
25014
25015   if test "$PKG_CONFIG" = "no" ; then
25016      echo "*** The pkg-config script could not be found. Make sure it is"
25017      echo "*** in your path, or set the PKG_CONFIG environment variable"
25018      echo "*** to the full path to pkg-config."
25019      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25020   else
25021      PKG_CONFIG_MIN_VERSION=0.9.0
25022      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25023         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25024 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25025
25026         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25027             echo "$as_me:$LINENO: result: yes" >&5
25028 echo "${ECHO_T}yes" >&6
25029             succeeded=yes
25030
25031             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25032 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25033             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25034             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25035 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25036
25037             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25038 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25039             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25040             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25041 echo "${ECHO_T}$LIBART_LIBS" >&6
25042         else
25043             LIBART_CFLAGS=""
25044             LIBART_LIBS=""
25045             ## If we have a custom action on failure, don't print errors, but
25046             ## do set a variable so people can do so.
25047             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25048             echo $LIBART_PKG_ERRORS
25049         fi
25050
25051
25052
25053      else
25054         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25055         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25056      fi
25057   fi
25058
25059   if test $succeeded = yes; then
25060      :
25061   else
25062      { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25063 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25064    { (exit 1); exit 1; }; }
25065   fi
25066
25067
25068
25069
25070       # We require the XTest Extension to support java.awt.Robot.
25071       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25072 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25073 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25074   echo $ECHO_N "(cached) $ECHO_C" >&6
25075 else
25076   ac_check_lib_save_LIBS=$LIBS
25077 LIBS="-lXtst ${X_LIBS} $LIBS"
25078 if test x$gcc_no_link = xyes; then
25079   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25080 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25081    { (exit 1); exit 1; }; }
25082 fi
25083 cat >conftest.$ac_ext <<_ACEOF
25084 /* confdefs.h.  */
25085 _ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h.  */
25089
25090 /* Override any gcc2 internal prototype to avoid an error.  */
25091 #ifdef __cplusplus
25092 extern "C"
25093 #endif
25094 /* We use char because int might match the return type of a gcc2
25095    builtin and then its argument prototype would still apply.  */
25096 char XTestQueryExtension ();
25097 int
25098 main ()
25099 {
25100 XTestQueryExtension ();
25101   ;
25102   return 0;
25103 }
25104 _ACEOF
25105 rm -f conftest.$ac_objext conftest$ac_exeext
25106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25107   (eval $ac_link) 2>conftest.er1
25108   ac_status=$?
25109   grep -v '^ *+' conftest.er1 >conftest.err
25110   rm -f conftest.er1
25111   cat conftest.err >&5
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); } &&
25114          { ac_try='test -z "$ac_c_werror_flag"
25115                          || test ! -s conftest.err'
25116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25117   (eval $ac_try) 2>&5
25118   ac_status=$?
25119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25120   (exit $ac_status); }; } &&
25121          { ac_try='test -s conftest$ac_exeext'
25122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123   (eval $ac_try) 2>&5
25124   ac_status=$?
25125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126   (exit $ac_status); }; }; then
25127   ac_cv_lib_Xtst_XTestQueryExtension=yes
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132 ac_cv_lib_Xtst_XTestQueryExtension=no
25133 fi
25134 rm -f conftest.err conftest.$ac_objext \
25135       conftest$ac_exeext conftest.$ac_ext
25136 LIBS=$ac_check_lib_save_LIBS
25137 fi
25138 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25139 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25140 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25141   true
25142 else
25143   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25144 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25145    { (exit 1); exit 1; }; }
25146 fi
25147
25148    fi
25149
25150    # On Solaris, and maybe other architectures, the Boehm collector
25151    # requires -ldl.
25152    if test "$GC" = boehm; then
25153       echo "$as_me:$LINENO: checking for main in -ldl" >&5
25154 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25155 if test "${ac_cv_lib_dl_main+set}" = set; then
25156   echo $ECHO_N "(cached) $ECHO_C" >&6
25157 else
25158   ac_check_lib_save_LIBS=$LIBS
25159 LIBS="-ldl  $LIBS"
25160 if test x$gcc_no_link = xyes; then
25161   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25162 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25163    { (exit 1); exit 1; }; }
25164 fi
25165 cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h.  */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h.  */
25171
25172
25173 int
25174 main ()
25175 {
25176 main ();
25177   ;
25178   return 0;
25179 }
25180 _ACEOF
25181 rm -f conftest.$ac_objext conftest$ac_exeext
25182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25183   (eval $ac_link) 2>conftest.er1
25184   ac_status=$?
25185   grep -v '^ *+' conftest.er1 >conftest.err
25186   rm -f conftest.er1
25187   cat conftest.err >&5
25188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189   (exit $ac_status); } &&
25190          { ac_try='test -z "$ac_c_werror_flag"
25191                          || test ! -s conftest.err'
25192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193   (eval $ac_try) 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; } &&
25197          { ac_try='test -s conftest$ac_exeext'
25198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199   (eval $ac_try) 2>&5
25200   ac_status=$?
25201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202   (exit $ac_status); }; }; then
25203   ac_cv_lib_dl_main=yes
25204 else
25205   echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 ac_cv_lib_dl_main=no
25209 fi
25210 rm -f conftest.err conftest.$ac_objext \
25211       conftest$ac_exeext conftest.$ac_ext
25212 LIBS=$ac_check_lib_save_LIBS
25213 fi
25214 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25215 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25216 if test $ac_cv_lib_dl_main = yes; then
25217   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25218 fi
25219
25220    fi
25221 fi
25222
25223 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25224 case $build in
25225     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25226     *)         CLASSPATH_SEPARATOR=':' ;;
25227 esac
25228
25229
25230 # We must search the source tree for java.lang, since we still don't
25231 # have libgcj.jar nor java/lang/*.class
25232 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25233 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25234
25235 # Since some classes depend on this one, we need its source available
25236 # before we can do any GCJ compilation test :-(
25237 if test ! -f gnu/classpath/Configuration.java; then
25238   test -d gnu || mkdir gnu
25239   test -d gnu/classpath || mkdir gnu/classpath
25240   # Note that it is not crucial that all the values here be correct.
25241   sed -e "s,@prefix@,$prefix," \
25242       -e "s,@VERSION@,$VERSION," \
25243       -e "s,@LIBDEBUG@,false," \
25244       -e "s,@INIT_LOAD_LIBRARY@,false," \
25245       -e "s,@@,$LIBGCJDEBUG," \
25246       -e "s,@default_toolkit@,$TOOLKIT," \
25247       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25248       -e "s,@GTK_CAIRO_ENABLED@,false," \
25249       -e "s,@ECJ_JAR@,," \
25250         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25251         > gnu/classpath/Configuration.java
25252   # We do not want to redirect the output of the grep below to /dev/null,
25253   # but we add /dev/null to the input list so that grep will print the
25254   # filename of Configuration.java in case it finds any matches.
25255   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25256     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25257 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25258    { (exit 1); exit 1; }; }
25259   fi
25260 fi
25261
25262
25263 for ac_prog in gcj
25264 do
25265   # Extract the first word of "$ac_prog", so it can be a program name with args.
25266 set dummy $ac_prog; ac_word=$2
25267 echo "$as_me:$LINENO: checking for $ac_word" >&5
25268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25269 if test "${ac_cv_prog_GCJ+set}" = set; then
25270   echo $ECHO_N "(cached) $ECHO_C" >&6
25271 else
25272   if test -n "$GCJ"; then
25273   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25274 else
25275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25276 for as_dir in $PATH
25277 do
25278   IFS=$as_save_IFS
25279   test -z "$as_dir" && as_dir=.
25280   for ac_exec_ext in '' $ac_executable_extensions; do
25281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25282     ac_cv_prog_GCJ="$ac_prog"
25283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25284     break 2
25285   fi
25286 done
25287 done
25288
25289 fi
25290 fi
25291 GCJ=$ac_cv_prog_GCJ
25292 if test -n "$GCJ"; then
25293   echo "$as_me:$LINENO: result: $GCJ" >&5
25294 echo "${ECHO_T}$GCJ" >&6
25295 else
25296   echo "$as_me:$LINENO: result: no" >&5
25297 echo "${ECHO_T}no" >&6
25298 fi
25299
25300   test -n "$GCJ" && break
25301 done
25302 test -n "$GCJ" || GCJ="gcj"
25303
25304 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25305 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25306    { (exit 1); exit 1; }; }
25307 if test "x${GCJFLAGS-unset}" = xunset; then
25308    GCJFLAGS="-g -O2"
25309 fi
25310
25311
25312 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25313
25314 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25315 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25316 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25320   # We make a subdir and do the tests there.  Otherwise we can end up
25321   # making bogus files that we don't know about and never remove.  For
25322   # instance it was reported that on HP-UX the gcc test will end up
25323   # making a dummy file named `D' -- because `-MD' means `put the output
25324   # in D'.
25325   mkdir conftest.dir
25326   # Copy depcomp to subdir because otherwise we won't find it if we're
25327   # using a relative directory.
25328   cp "$am_depcomp" conftest.dir
25329   cd conftest.dir
25330   # We will build objects and dependencies in a subdirectory because
25331   # it helps to detect inapplicable dependency modes.  For instance
25332   # both Tru64's cc and ICC support -MD to output dependencies as a
25333   # side effect of compilation, but ICC will put the dependencies in
25334   # the current directory while Tru64 will put them in the object
25335   # directory.
25336   mkdir sub
25337
25338   am_cv_GCJ_dependencies_compiler_type=none
25339   if test "$am_compiler_list" = ""; then
25340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25341   fi
25342   for depmode in $am_compiler_list; do
25343     # Setup a source with many dependencies, because some compilers
25344     # like to wrap large dependency lists on column 80 (with \), and
25345     # we should not choose a depcomp mode which is confused by this.
25346     #
25347     # We need to recreate these files for each test, as the compiler may
25348     # overwrite some of them when testing with obscure command lines.
25349     # This happens at least with the AIX C compiler.
25350     : > sub/conftest.c
25351     for i in 1 2 3 4 5 6; do
25352       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25353       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25354       # Solaris 8's {/usr,}/bin/sh.
25355       touch sub/conftst$i.h
25356     done
25357     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25358
25359     case $depmode in
25360     nosideeffect)
25361       # after this tag, mechanisms are not by side-effect, so they'll
25362       # only be used when explicitly requested
25363       if test "x$enable_dependency_tracking" = xyes; then
25364         continue
25365       else
25366         break
25367       fi
25368       ;;
25369     none) break ;;
25370     esac
25371     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25372     # mode.  It turns out that the SunPro C++ compiler does not properly
25373     # handle `-M -o', and we need to detect this.
25374     if depmode=$depmode \
25375        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25376        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25377        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25378          >/dev/null 2>conftest.err &&
25379        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25380        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25381        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25382       # icc doesn't choke on unknown options, it will just issue warnings
25383       # or remarks (even with -Werror).  So we grep stderr for any message
25384       # that says an option was ignored or not supported.
25385       # When given -MP, icc 7.0 and 7.1 complain thusly:
25386       #   icc: Command line warning: ignoring option '-M'; no argument required
25387       # The diagnosis changed in icc 8.0:
25388       #   icc: Command line remark: option '-MP' not supported
25389       if (grep 'ignoring option' conftest.err ||
25390           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25391         am_cv_GCJ_dependencies_compiler_type=$depmode
25392         break
25393       fi
25394     fi
25395   done
25396
25397   cd ..
25398   rm -rf conftest.dir
25399 else
25400   am_cv_GCJ_dependencies_compiler_type=none
25401 fi
25402
25403 fi
25404 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25405 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25406 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25407
25408
25409
25410 if
25411   test "x$enable_dependency_tracking" != xno \
25412   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25413   am__fastdepGCJ_TRUE=
25414   am__fastdepGCJ_FALSE='#'
25415 else
25416   am__fastdepGCJ_TRUE='#'
25417   am__fastdepGCJ_FALSE=
25418 fi
25419
25420
25421
25422
25423 # Now remove it.
25424 rm -f gnu/classpath/Configuration.java
25425
25426 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25427
25428 echo "$as_me:$LINENO: checking for void *" >&5
25429 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25430 if test "${ac_cv_type_void_p+set}" = set; then
25431   echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433   cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h.  */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h.  */
25439 $ac_includes_default
25440 int
25441 main ()
25442 {
25443 if ((void * *) 0)
25444   return 0;
25445 if (sizeof (void *))
25446   return 0;
25447   ;
25448   return 0;
25449 }
25450 _ACEOF
25451 rm -f conftest.$ac_objext
25452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25453   (eval $ac_compile) 2>conftest.er1
25454   ac_status=$?
25455   grep -v '^ *+' conftest.er1 >conftest.err
25456   rm -f conftest.er1
25457   cat conftest.err >&5
25458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459   (exit $ac_status); } &&
25460          { ac_try='test -z "$ac_c_werror_flag"
25461                          || test ! -s conftest.err'
25462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463   (eval $ac_try) 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; } &&
25467          { ac_try='test -s conftest.$ac_objext'
25468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469   (eval $ac_try) 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); }; }; then
25473   ac_cv_type_void_p=yes
25474 else
25475   echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25477
25478 ac_cv_type_void_p=no
25479 fi
25480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25481 fi
25482 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25483 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25484
25485 echo "$as_me:$LINENO: checking size of void *" >&5
25486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25487 if test "${ac_cv_sizeof_void_p+set}" = set; then
25488   echo $ECHO_N "(cached) $ECHO_C" >&6
25489 else
25490   if test "$ac_cv_type_void_p" = yes; then
25491   # The cast to unsigned long works around a bug in the HP C Compiler
25492   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25493   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25494   # This bug is HP SR number 8606223364.
25495   if test "$cross_compiling" = yes; then
25496   # Depending upon the size, compute the lo and hi bounds.
25497 cat >conftest.$ac_ext <<_ACEOF
25498 /* confdefs.h.  */
25499 _ACEOF
25500 cat confdefs.h >>conftest.$ac_ext
25501 cat >>conftest.$ac_ext <<_ACEOF
25502 /* end confdefs.h.  */
25503 $ac_includes_default
25504 int
25505 main ()
25506 {
25507 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25508 test_array [0] = 0
25509
25510   ;
25511   return 0;
25512 }
25513 _ACEOF
25514 rm -f conftest.$ac_objext
25515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25516   (eval $ac_compile) 2>conftest.er1
25517   ac_status=$?
25518   grep -v '^ *+' conftest.er1 >conftest.err
25519   rm -f conftest.er1
25520   cat conftest.err >&5
25521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522   (exit $ac_status); } &&
25523          { ac_try='test -z "$ac_c_werror_flag"
25524                          || test ! -s conftest.err'
25525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25526   (eval $ac_try) 2>&5
25527   ac_status=$?
25528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529   (exit $ac_status); }; } &&
25530          { ac_try='test -s conftest.$ac_objext'
25531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25532   (eval $ac_try) 2>&5
25533   ac_status=$?
25534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25535   (exit $ac_status); }; }; then
25536   ac_lo=0 ac_mid=0
25537   while :; do
25538     cat >conftest.$ac_ext <<_ACEOF
25539 /* confdefs.h.  */
25540 _ACEOF
25541 cat confdefs.h >>conftest.$ac_ext
25542 cat >>conftest.$ac_ext <<_ACEOF
25543 /* end confdefs.h.  */
25544 $ac_includes_default
25545 int
25546 main ()
25547 {
25548 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25549 test_array [0] = 0
25550
25551   ;
25552   return 0;
25553 }
25554 _ACEOF
25555 rm -f conftest.$ac_objext
25556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25557   (eval $ac_compile) 2>conftest.er1
25558   ac_status=$?
25559   grep -v '^ *+' conftest.er1 >conftest.err
25560   rm -f conftest.er1
25561   cat conftest.err >&5
25562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563   (exit $ac_status); } &&
25564          { ac_try='test -z "$ac_c_werror_flag"
25565                          || test ! -s conftest.err'
25566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25567   (eval $ac_try) 2>&5
25568   ac_status=$?
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); }; } &&
25571          { ac_try='test -s conftest.$ac_objext'
25572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25573   (eval $ac_try) 2>&5
25574   ac_status=$?
25575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576   (exit $ac_status); }; }; then
25577   ac_hi=$ac_mid; break
25578 else
25579   echo "$as_me: failed program was:" >&5
25580 sed 's/^/| /' conftest.$ac_ext >&5
25581
25582 ac_lo=`expr $ac_mid + 1`
25583                     if test $ac_lo -le $ac_mid; then
25584                       ac_lo= ac_hi=
25585                       break
25586                     fi
25587                     ac_mid=`expr 2 '*' $ac_mid + 1`
25588 fi
25589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25590   done
25591 else
25592   echo "$as_me: failed program was:" >&5
25593 sed 's/^/| /' conftest.$ac_ext >&5
25594
25595 cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 $ac_includes_default
25602 int
25603 main ()
25604 {
25605 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25606 test_array [0] = 0
25607
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext
25613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25614   (eval $ac_compile) 2>conftest.er1
25615   ac_status=$?
25616   grep -v '^ *+' conftest.er1 >conftest.err
25617   rm -f conftest.er1
25618   cat conftest.err >&5
25619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620   (exit $ac_status); } &&
25621          { ac_try='test -z "$ac_c_werror_flag"
25622                          || test ! -s conftest.err'
25623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624   (eval $ac_try) 2>&5
25625   ac_status=$?
25626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627   (exit $ac_status); }; } &&
25628          { ac_try='test -s conftest.$ac_objext'
25629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25630   (eval $ac_try) 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; }; then
25634   ac_hi=-1 ac_mid=-1
25635   while :; do
25636     cat >conftest.$ac_ext <<_ACEOF
25637 /* confdefs.h.  */
25638 _ACEOF
25639 cat confdefs.h >>conftest.$ac_ext
25640 cat >>conftest.$ac_ext <<_ACEOF
25641 /* end confdefs.h.  */
25642 $ac_includes_default
25643 int
25644 main ()
25645 {
25646 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25647 test_array [0] = 0
25648
25649   ;
25650   return 0;
25651 }
25652 _ACEOF
25653 rm -f conftest.$ac_objext
25654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25655   (eval $ac_compile) 2>conftest.er1
25656   ac_status=$?
25657   grep -v '^ *+' conftest.er1 >conftest.err
25658   rm -f conftest.er1
25659   cat conftest.err >&5
25660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661   (exit $ac_status); } &&
25662          { ac_try='test -z "$ac_c_werror_flag"
25663                          || test ! -s conftest.err'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; } &&
25669          { ac_try='test -s conftest.$ac_objext'
25670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25671   (eval $ac_try) 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; }; then
25675   ac_lo=$ac_mid; break
25676 else
25677   echo "$as_me: failed program was:" >&5
25678 sed 's/^/| /' conftest.$ac_ext >&5
25679
25680 ac_hi=`expr '(' $ac_mid ')' - 1`
25681                        if test $ac_mid -le $ac_hi; then
25682                          ac_lo= ac_hi=
25683                          break
25684                        fi
25685                        ac_mid=`expr 2 '*' $ac_mid`
25686 fi
25687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25688   done
25689 else
25690   echo "$as_me: failed program was:" >&5
25691 sed 's/^/| /' conftest.$ac_ext >&5
25692
25693 ac_lo= ac_hi=
25694 fi
25695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25696 fi
25697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25698 # Binary search between lo and hi bounds.
25699 while test "x$ac_lo" != "x$ac_hi"; do
25700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25701   cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707 $ac_includes_default
25708 int
25709 main ()
25710 {
25711 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25712 test_array [0] = 0
25713
25714   ;
25715   return 0;
25716 }
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25720   (eval $ac_compile) 2>conftest.er1
25721   ac_status=$?
25722   grep -v '^ *+' conftest.er1 >conftest.err
25723   rm -f conftest.er1
25724   cat conftest.err >&5
25725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726   (exit $ac_status); } &&
25727          { ac_try='test -z "$ac_c_werror_flag"
25728                          || test ! -s conftest.err'
25729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25730   (eval $ac_try) 2>&5
25731   ac_status=$?
25732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733   (exit $ac_status); }; } &&
25734          { ac_try='test -s conftest.$ac_objext'
25735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25736   (eval $ac_try) 2>&5
25737   ac_status=$?
25738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25739   (exit $ac_status); }; }; then
25740   ac_hi=$ac_mid
25741 else
25742   echo "$as_me: failed program was:" >&5
25743 sed 's/^/| /' conftest.$ac_ext >&5
25744
25745 ac_lo=`expr '(' $ac_mid ')' + 1`
25746 fi
25747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25748 done
25749 case $ac_lo in
25750 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25751 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25752 See \`config.log' for more details." >&5
25753 echo "$as_me: error: cannot compute sizeof (void *), 77
25754 See \`config.log' for more details." >&2;}
25755    { (exit 1); exit 1; }; } ;;
25756 esac
25757 else
25758   if test "$cross_compiling" = yes; then
25759   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25760 See \`config.log' for more details." >&5
25761 echo "$as_me: error: cannot run test program while cross compiling
25762 See \`config.log' for more details." >&2;}
25763    { (exit 1); exit 1; }; }
25764 else
25765   cat >conftest.$ac_ext <<_ACEOF
25766 /* confdefs.h.  */
25767 _ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h.  */
25771 $ac_includes_default
25772 long longval () { return (long) (sizeof (void *)); }
25773 unsigned long ulongval () { return (long) (sizeof (void *)); }
25774 #include <stdio.h>
25775 #include <stdlib.h>
25776 int
25777 main ()
25778 {
25779
25780   FILE *f = fopen ("conftest.val", "w");
25781   if (! f)
25782     exit (1);
25783   if (((long) (sizeof (void *))) < 0)
25784     {
25785       long i = longval ();
25786       if (i != ((long) (sizeof (void *))))
25787         exit (1);
25788       fprintf (f, "%ld\n", i);
25789     }
25790   else
25791     {
25792       unsigned long i = ulongval ();
25793       if (i != ((long) (sizeof (void *))))
25794         exit (1);
25795       fprintf (f, "%lu\n", i);
25796     }
25797   exit (ferror (f) || fclose (f) != 0);
25798
25799   ;
25800   return 0;
25801 }
25802 _ACEOF
25803 rm -f conftest$ac_exeext
25804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25805   (eval $ac_link) 2>&5
25806   ac_status=$?
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810   (eval $ac_try) 2>&5
25811   ac_status=$?
25812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813   (exit $ac_status); }; }; then
25814   ac_cv_sizeof_void_p=`cat conftest.val`
25815 else
25816   echo "$as_me: program exited with status $ac_status" >&5
25817 echo "$as_me: failed program was:" >&5
25818 sed 's/^/| /' conftest.$ac_ext >&5
25819
25820 ( exit $ac_status )
25821 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25822 See \`config.log' for more details." >&5
25823 echo "$as_me: error: cannot compute sizeof (void *), 77
25824 See \`config.log' for more details." >&2;}
25825    { (exit 1); exit 1; }; }
25826 fi
25827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25828 fi
25829 fi
25830 rm -f conftest.val
25831 else
25832   ac_cv_sizeof_void_p=0
25833 fi
25834 fi
25835 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25836 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25837 cat >>confdefs.h <<_ACEOF
25838 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25839 _ACEOF
25840
25841
25842
25843 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25844 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25845 if test "${ac_cv_c_bigendian+set}" = set; then
25846   echo $ECHO_N "(cached) $ECHO_C" >&6
25847 else
25848   # See if sys/param.h defines the BYTE_ORDER macro.
25849 cat >conftest.$ac_ext <<_ACEOF
25850 /* confdefs.h.  */
25851 _ACEOF
25852 cat confdefs.h >>conftest.$ac_ext
25853 cat >>conftest.$ac_ext <<_ACEOF
25854 /* end confdefs.h.  */
25855 #include <sys/types.h>
25856 #include <sys/param.h>
25857
25858 int
25859 main ()
25860 {
25861 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25862  bogus endian macros
25863 #endif
25864
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext
25870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25871   (eval $ac_compile) 2>conftest.er1
25872   ac_status=$?
25873   grep -v '^ *+' conftest.er1 >conftest.err
25874   rm -f conftest.er1
25875   cat conftest.err >&5
25876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877   (exit $ac_status); } &&
25878          { ac_try='test -z "$ac_c_werror_flag"
25879                          || test ! -s conftest.err'
25880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881   (eval $ac_try) 2>&5
25882   ac_status=$?
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); }; } &&
25885          { ac_try='test -s conftest.$ac_objext'
25886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25887   (eval $ac_try) 2>&5
25888   ac_status=$?
25889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25890   (exit $ac_status); }; }; then
25891   # It does; now see whether it defined to BIG_ENDIAN or not.
25892 cat >conftest.$ac_ext <<_ACEOF
25893 /* confdefs.h.  */
25894 _ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h.  */
25898 #include <sys/types.h>
25899 #include <sys/param.h>
25900
25901 int
25902 main ()
25903 {
25904 #if BYTE_ORDER != BIG_ENDIAN
25905  not big endian
25906 #endif
25907
25908   ;
25909   return 0;
25910 }
25911 _ACEOF
25912 rm -f conftest.$ac_objext
25913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25914   (eval $ac_compile) 2>conftest.er1
25915   ac_status=$?
25916   grep -v '^ *+' conftest.er1 >conftest.err
25917   rm -f conftest.er1
25918   cat conftest.err >&5
25919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920   (exit $ac_status); } &&
25921          { ac_try='test -z "$ac_c_werror_flag"
25922                          || test ! -s conftest.err'
25923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25924   (eval $ac_try) 2>&5
25925   ac_status=$?
25926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927   (exit $ac_status); }; } &&
25928          { ac_try='test -s conftest.$ac_objext'
25929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930   (eval $ac_try) 2>&5
25931   ac_status=$?
25932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); }; }; then
25934   ac_cv_c_bigendian=yes
25935 else
25936   echo "$as_me: failed program was:" >&5
25937 sed 's/^/| /' conftest.$ac_ext >&5
25938
25939 ac_cv_c_bigendian=no
25940 fi
25941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25942 else
25943   echo "$as_me: failed program was:" >&5
25944 sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 # It does not; compile a test program.
25947 if test "$cross_compiling" = yes; then
25948   # try to guess the endianness by grepping values into an object file
25949   ac_cv_c_bigendian=unknown
25950   cat >conftest.$ac_ext <<_ACEOF
25951 /* confdefs.h.  */
25952 _ACEOF
25953 cat confdefs.h >>conftest.$ac_ext
25954 cat >>conftest.$ac_ext <<_ACEOF
25955 /* end confdefs.h.  */
25956 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25957 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25958 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
25959 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25960 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25961 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
25962 int
25963 main ()
25964 {
25965  _ascii (); _ebcdic ();
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25972   (eval $ac_compile) 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } &&
25979          { ac_try='test -z "$ac_c_werror_flag"
25980                          || test ! -s conftest.err'
25981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25982   (eval $ac_try) 2>&5
25983   ac_status=$?
25984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985   (exit $ac_status); }; } &&
25986          { ac_try='test -s conftest.$ac_objext'
25987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25988   (eval $ac_try) 2>&5
25989   ac_status=$?
25990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25991   (exit $ac_status); }; }; then
25992   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
25993   ac_cv_c_bigendian=yes
25994 fi
25995 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25996   if test "$ac_cv_c_bigendian" = unknown; then
25997     ac_cv_c_bigendian=no
25998   else
25999     # finding both strings is unlikely to happen, but who knows?
26000     ac_cv_c_bigendian=unknown
26001   fi
26002 fi
26003 else
26004   echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007 fi
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009 else
26010   cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h.  */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h.  */
26016 int
26017 main ()
26018 {
26019   /* Are we little or big endian?  From Harbison&Steele.  */
26020   union
26021   {
26022     long l;
26023     char c[sizeof (long)];
26024   } u;
26025   u.l = 1;
26026   exit (u.c[sizeof (long) - 1] == 1);
26027 }
26028 _ACEOF
26029 rm -f conftest$ac_exeext
26030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26031   (eval $ac_link) 2>&5
26032   ac_status=$?
26033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; }; then
26040   ac_cv_c_bigendian=no
26041 else
26042   echo "$as_me: program exited with status $ac_status" >&5
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26045
26046 ( exit $ac_status )
26047 ac_cv_c_bigendian=yes
26048 fi
26049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26050 fi
26051 fi
26052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053 fi
26054 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26055 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26056 case $ac_cv_c_bigendian in
26057   yes)
26058
26059 cat >>confdefs.h <<\_ACEOF
26060 #define WORDS_BIGENDIAN 1
26061 _ACEOF
26062  ;;
26063   no)
26064      ;;
26065   *)
26066     { { echo "$as_me:$LINENO: error: unknown endianness
26067 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26068 echo "$as_me: error: unknown endianness
26069 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26070    { (exit 1); exit 1; }; } ;;
26071 esac
26072
26073
26074 ZLIBS=
26075 SYS_ZLIBS=
26076 ZINCS=
26077
26078 if test -z "$ZLIBSPEC"; then
26079    # Use zlib from the GCC tree.
26080    ZINCS='-I$(top_srcdir)/../zlib'
26081    ZLIBS=../zlib/libzgcj_convenience.la
26082 else
26083    # System's zlib.
26084    SYS_ZLIBS="$ZLIBSPEC"
26085 fi
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097 if test "$NATIVE" = yes; then
26098   NATIVE_TRUE=
26099   NATIVE_FALSE='#'
26100 else
26101   NATIVE_TRUE='#'
26102   NATIVE_FALSE=
26103 fi
26104
26105
26106
26107 if test "$enable_shared" = yes; then
26108   ENABLE_SHARED_TRUE=
26109   ENABLE_SHARED_FALSE='#'
26110 else
26111   ENABLE_SHARED_TRUE='#'
26112   ENABLE_SHARED_FALSE=
26113 fi
26114
26115
26116
26117 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26118   NEEDS_DATA_START_TRUE=
26119   NEEDS_DATA_START_FALSE='#'
26120 else
26121   NEEDS_DATA_START_TRUE='#'
26122   NEEDS_DATA_START_FALSE=
26123 fi
26124
26125
26126
26127 # Process the option "--enable-version-specific-runtime-libs"
26128 # Calculate toolexeclibdir
26129 case ${version_specific_libs} in
26130   yes)
26131     # Need the gcc compiler version to know where to install libraries
26132     # and header files if --enable-version-specific-runtime-libs option
26133     # is selected.
26134     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26135     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26136     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26137     toolexeclibdir=$toolexecmainlibdir
26138     ;;
26139   no)
26140     if test -n "$with_cross_host" &&
26141        test x"$with_cross_host" != x"no"; then
26142       # Install a library built with a cross compiler in tooldir, not libdir.
26143       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26144       toolexecmainlibdir='$(toolexecdir)/lib'
26145     else
26146       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26147       toolexecmainlibdir='$(libdir)'
26148     fi
26149     multi_os_directory=`$CC -print-multi-os-directory`
26150     case $multi_os_directory in
26151       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26152       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26153     esac
26154     ;;
26155 esac
26156
26157
26158
26159
26160 # Determine where the standard .db file and GNU Classpath JNI
26161 # libraries are found.
26162 multi_os_directory=`$CC -print-multi-os-directory`
26163 case $multi_os_directory in
26164   .)
26165    dbexecdir='$(libdir)/gcj-$(gcc_version)' # Avoid /.
26166    ;;
26167   *)
26168    dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)'
26169    ;;
26170 esac
26171
26172
26173 # Determine gcj version number.
26174 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
26175 GCJVERSION=$gcjversion
26176
26177
26178 cat >>confdefs.h <<_ACEOF
26179 #define GCJVERSION "$GCJVERSION"
26180 _ACEOF
26181
26182
26183
26184 cat >>confdefs.h <<\_ACEOF
26185 #define JV_VERSION "1.5.0"
26186 _ACEOF
26187
26188
26189 cat >>confdefs.h <<\_ACEOF
26190 #define JV_API_VERSION "1.5"
26191 _ACEOF
26192
26193
26194
26195 case "${with_gxx_include_dir}" in
26196   yes)
26197     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26198 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26199    { (exit 1); exit 1; }; }
26200     ;;
26201   no | "")
26202     case "${enable_version_specific_runtime_libs}" in
26203       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26204       *)
26205         libstdcxx_incdir='c++/$(gcc_version)'
26206         gxx_include_dir='include/$(libstdcxx_incdir)'
26207         if test -n "$with_cross_host" &&
26208            test x"$with_cross_host" != x"no"; then
26209           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26210         else
26211           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26212         fi;;
26213     esac ;;
26214   *) gxx_include_dir=${with_gxx_include_dir} ;;
26215 esac
26216
26217
26218
26219
26220 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26221 # On that system, sys/ioctl.h will not include sys/filio.h unless
26222 # BSD_COMP is defined; just including sys/filio.h is simpler.
26223 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26224 # for now.  If you change this, you also must update natFile.cc.
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26249                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26250                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26251                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26252                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26253 do
26254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26255 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26256   echo "$as_me:$LINENO: checking for $ac_header" >&5
26257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26259   echo $ECHO_N "(cached) $ECHO_C" >&6
26260 fi
26261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26263 else
26264   # Is the header compilable?
26265 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 $ac_includes_default
26274 #include <$ac_header>
26275 _ACEOF
26276 rm -f conftest.$ac_objext
26277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26278   (eval $ac_compile) 2>conftest.er1
26279   ac_status=$?
26280   grep -v '^ *+' conftest.er1 >conftest.err
26281   rm -f conftest.er1
26282   cat conftest.err >&5
26283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26284   (exit $ac_status); } &&
26285          { ac_try='test -z "$ac_c_werror_flag"
26286                          || test ! -s conftest.err'
26287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26288   (eval $ac_try) 2>&5
26289   ac_status=$?
26290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291   (exit $ac_status); }; } &&
26292          { ac_try='test -s conftest.$ac_objext'
26293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26294   (eval $ac_try) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; }; then
26298   ac_header_compiler=yes
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303 ac_header_compiler=no
26304 fi
26305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26306 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26307 echo "${ECHO_T}$ac_header_compiler" >&6
26308
26309 # Is the header present?
26310 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26311 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26312 cat >conftest.$ac_ext <<_ACEOF
26313 /* confdefs.h.  */
26314 _ACEOF
26315 cat confdefs.h >>conftest.$ac_ext
26316 cat >>conftest.$ac_ext <<_ACEOF
26317 /* end confdefs.h.  */
26318 #include <$ac_header>
26319 _ACEOF
26320 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26321   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26322   ac_status=$?
26323   grep -v '^ *+' conftest.er1 >conftest.err
26324   rm -f conftest.er1
26325   cat conftest.err >&5
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } >/dev/null; then
26328   if test -s conftest.err; then
26329     ac_cpp_err=$ac_c_preproc_warn_flag
26330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26331   else
26332     ac_cpp_err=
26333   fi
26334 else
26335   ac_cpp_err=yes
26336 fi
26337 if test -z "$ac_cpp_err"; then
26338   ac_header_preproc=yes
26339 else
26340   echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26342
26343   ac_header_preproc=no
26344 fi
26345 rm -f conftest.err conftest.$ac_ext
26346 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26347 echo "${ECHO_T}$ac_header_preproc" >&6
26348
26349 # So?  What about this header?
26350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26351   yes:no: )
26352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26356     ac_header_preproc=yes
26357     ;;
26358   no:yes:* )
26359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26371     (
26372       cat <<\_ASBOX
26373 ## ---------------------------------- ##
26374 ## Report this to the libjava lists.  ##
26375 ## ---------------------------------- ##
26376 _ASBOX
26377     ) |
26378       sed "s/^/$as_me: WARNING:     /" >&2
26379     ;;
26380 esac
26381 echo "$as_me:$LINENO: checking for $ac_header" >&5
26382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26384   echo $ECHO_N "(cached) $ECHO_C" >&6
26385 else
26386   eval "$as_ac_Header=\$ac_header_preproc"
26387 fi
26388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26390
26391 fi
26392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26393   cat >>confdefs.h <<_ACEOF
26394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26395 _ACEOF
26396
26397 fi
26398
26399 done
26400
26401
26402 for ac_header in inttypes.h
26403 do
26404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26406   echo "$as_me:$LINENO: checking for $ac_header" >&5
26407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26409   echo $ECHO_N "(cached) $ECHO_C" >&6
26410 fi
26411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26413 else
26414   # Is the header compilable?
26415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26417 cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h.  */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h.  */
26423 $ac_includes_default
26424 #include <$ac_header>
26425 _ACEOF
26426 rm -f conftest.$ac_objext
26427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26428   (eval $ac_compile) 2>conftest.er1
26429   ac_status=$?
26430   grep -v '^ *+' conftest.er1 >conftest.err
26431   rm -f conftest.er1
26432   cat conftest.err >&5
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); } &&
26435          { ac_try='test -z "$ac_c_werror_flag"
26436                          || test ! -s conftest.err'
26437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26438   (eval $ac_try) 2>&5
26439   ac_status=$?
26440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441   (exit $ac_status); }; } &&
26442          { ac_try='test -s conftest.$ac_objext'
26443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444   (eval $ac_try) 2>&5
26445   ac_status=$?
26446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447   (exit $ac_status); }; }; then
26448   ac_header_compiler=yes
26449 else
26450   echo "$as_me: failed program was:" >&5
26451 sed 's/^/| /' conftest.$ac_ext >&5
26452
26453 ac_header_compiler=no
26454 fi
26455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26457 echo "${ECHO_T}$ac_header_compiler" >&6
26458
26459 # Is the header present?
26460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26462 cat >conftest.$ac_ext <<_ACEOF
26463 /* confdefs.h.  */
26464 _ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h.  */
26468 #include <$ac_header>
26469 _ACEOF
26470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26472   ac_status=$?
26473   grep -v '^ *+' conftest.er1 >conftest.err
26474   rm -f conftest.er1
26475   cat conftest.err >&5
26476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477   (exit $ac_status); } >/dev/null; then
26478   if test -s conftest.err; then
26479     ac_cpp_err=$ac_c_preproc_warn_flag
26480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26481   else
26482     ac_cpp_err=
26483   fi
26484 else
26485   ac_cpp_err=yes
26486 fi
26487 if test -z "$ac_cpp_err"; then
26488   ac_header_preproc=yes
26489 else
26490   echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493   ac_header_preproc=no
26494 fi
26495 rm -f conftest.err conftest.$ac_ext
26496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26497 echo "${ECHO_T}$ac_header_preproc" >&6
26498
26499 # So?  What about this header?
26500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26501   yes:no: )
26502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26506     ac_header_preproc=yes
26507     ;;
26508   no:yes:* )
26509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26521     (
26522       cat <<\_ASBOX
26523 ## ---------------------------------- ##
26524 ## Report this to the libjava lists.  ##
26525 ## ---------------------------------- ##
26526 _ASBOX
26527     ) |
26528       sed "s/^/$as_me: WARNING:     /" >&2
26529     ;;
26530 esac
26531 echo "$as_me:$LINENO: checking for $ac_header" >&5
26532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26534   echo $ECHO_N "(cached) $ECHO_C" >&6
26535 else
26536   eval "$as_ac_Header=\$ac_header_preproc"
26537 fi
26538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26540
26541 fi
26542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26543   cat >>confdefs.h <<_ACEOF
26544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26545 _ACEOF
26546
26547
26548 cat >>confdefs.h <<\_ACEOF
26549 #define HAVE_INTTYPES_H 1
26550 _ACEOF
26551
26552
26553 cat >>confdefs.h <<\_ACEOF
26554 #define JV_HAVE_INTTYPES_H 1
26555 _ACEOF
26556
26557
26558 fi
26559
26560 done
26561
26562
26563 echo "$as_me:$LINENO: checking for ssize_t" >&5
26564 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26565 if test "${ac_cv_type_ssize_t+set}" = set; then
26566   echo $ECHO_N "(cached) $ECHO_C" >&6
26567 else
26568   cat >conftest.$ac_ext <<_ACEOF
26569 /* confdefs.h.  */
26570 _ACEOF
26571 cat confdefs.h >>conftest.$ac_ext
26572 cat >>conftest.$ac_ext <<_ACEOF
26573 /* end confdefs.h.  */
26574 $ac_includes_default
26575 int
26576 main ()
26577 {
26578 if ((ssize_t *) 0)
26579   return 0;
26580 if (sizeof (ssize_t))
26581   return 0;
26582   ;
26583   return 0;
26584 }
26585 _ACEOF
26586 rm -f conftest.$ac_objext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26588   (eval $ac_compile) 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } &&
26595          { ac_try='test -z "$ac_c_werror_flag"
26596                          || test ! -s conftest.err'
26597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598   (eval $ac_try) 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; } &&
26602          { ac_try='test -s conftest.$ac_objext'
26603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604   (eval $ac_try) 2>&5
26605   ac_status=$?
26606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607   (exit $ac_status); }; }; then
26608   ac_cv_type_ssize_t=yes
26609 else
26610   echo "$as_me: failed program was:" >&5
26611 sed 's/^/| /' conftest.$ac_ext >&5
26612
26613 ac_cv_type_ssize_t=no
26614 fi
26615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26616 fi
26617 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26618 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26619 if test $ac_cv_type_ssize_t = yes; then
26620   :
26621 else
26622
26623 cat >>confdefs.h <<_ACEOF
26624 #define ssize_t int
26625 _ACEOF
26626
26627 fi
26628
26629 echo "$as_me:$LINENO: checking for magic_t" >&5
26630 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26631 if test "${ac_cv_type_magic_t+set}" = set; then
26632   echo $ECHO_N "(cached) $ECHO_C" >&6
26633 else
26634   cat >conftest.$ac_ext <<_ACEOF
26635 /* confdefs.h.  */
26636 _ACEOF
26637 cat confdefs.h >>conftest.$ac_ext
26638 cat >>conftest.$ac_ext <<_ACEOF
26639 /* end confdefs.h.  */
26640
26641 #ifdef HAVE_MAGIC_H
26642 #include <magic.h>
26643 #endif
26644
26645 int
26646 main ()
26647 {
26648 if ((magic_t *) 0)
26649   return 0;
26650 if (sizeof (magic_t))
26651   return 0;
26652   ;
26653   return 0;
26654 }
26655 _ACEOF
26656 rm -f conftest.$ac_objext
26657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26658   (eval $ac_compile) 2>conftest.er1
26659   ac_status=$?
26660   grep -v '^ *+' conftest.er1 >conftest.err
26661   rm -f conftest.er1
26662   cat conftest.err >&5
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } &&
26665          { ac_try='test -z "$ac_c_werror_flag"
26666                          || test ! -s conftest.err'
26667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26668   (eval $ac_try) 2>&5
26669   ac_status=$?
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); }; } &&
26672          { ac_try='test -s conftest.$ac_objext'
26673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674   (eval $ac_try) 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; }; then
26678   ac_cv_type_magic_t=yes
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683 ac_cv_type_magic_t=no
26684 fi
26685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26686 fi
26687 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26688 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26689 if test $ac_cv_type_magic_t = yes; then
26690
26691
26692 cat >>confdefs.h <<\_ACEOF
26693 #define HAVE_MAGIC_T 1
26694 _ACEOF
26695
26696 fi
26697
26698
26699 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26700 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26701 cat >conftest.$ac_ext <<_ACEOF
26702 /* confdefs.h.  */
26703 _ACEOF
26704 cat confdefs.h >>conftest.$ac_ext
26705 cat >>conftest.$ac_ext <<_ACEOF
26706 /* end confdefs.h.  */
26707 #include <sys/types.h>
26708 #if STDC_HEADERS
26709 #include <stdlib.h>
26710 #include <stddef.h>
26711 #endif
26712 #if HAVE_NETINET_IN_H
26713 #include <netinet/in.h>
26714 #endif
26715 int
26716 main ()
26717 {
26718 in_addr_t foo;
26719   ;
26720   return 0;
26721 }
26722 _ACEOF
26723 rm -f conftest.$ac_objext
26724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26725   (eval $ac_compile) 2>conftest.er1
26726   ac_status=$?
26727   grep -v '^ *+' conftest.er1 >conftest.err
26728   rm -f conftest.er1
26729   cat conftest.err >&5
26730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731   (exit $ac_status); } &&
26732          { ac_try='test -z "$ac_c_werror_flag"
26733                          || test ! -s conftest.err'
26734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735   (eval $ac_try) 2>&5
26736   ac_status=$?
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); }; } &&
26739          { ac_try='test -s conftest.$ac_objext'
26740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741   (eval $ac_try) 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); }; }; then
26745
26746 cat >>confdefs.h <<\_ACEOF
26747 #define HAVE_IN_ADDR_T 1
26748 _ACEOF
26749
26750    echo "$as_me:$LINENO: result: yes" >&5
26751 echo "${ECHO_T}yes" >&6
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756 echo "$as_me:$LINENO: result: no" >&5
26757 echo "${ECHO_T}no" >&6
26758 fi
26759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26760
26761 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26762 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26763 cat >conftest.$ac_ext <<_ACEOF
26764 /* confdefs.h.  */
26765 _ACEOF
26766 cat confdefs.h >>conftest.$ac_ext
26767 cat >>conftest.$ac_ext <<_ACEOF
26768 /* end confdefs.h.  */
26769 #include <netinet/in.h>
26770 int
26771 main ()
26772 {
26773 struct ip_mreq mreq;
26774   ;
26775   return 0;
26776 }
26777 _ACEOF
26778 rm -f conftest.$ac_objext
26779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26780   (eval $ac_compile) 2>conftest.er1
26781   ac_status=$?
26782   grep -v '^ *+' conftest.er1 >conftest.err
26783   rm -f conftest.er1
26784   cat conftest.err >&5
26785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26786   (exit $ac_status); } &&
26787          { ac_try='test -z "$ac_c_werror_flag"
26788                          || test ! -s conftest.err'
26789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790   (eval $ac_try) 2>&5
26791   ac_status=$?
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); }; } &&
26794          { ac_try='test -s conftest.$ac_objext'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; }; then
26800
26801 cat >>confdefs.h <<\_ACEOF
26802 #define HAVE_STRUCT_IP_MREQ 1
26803 _ACEOF
26804
26805    echo "$as_me:$LINENO: result: yes" >&5
26806 echo "${ECHO_T}yes" >&6
26807 else
26808   echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26810
26811 echo "$as_me:$LINENO: result: no" >&5
26812 echo "${ECHO_T}no" >&6
26813 fi
26814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26815
26816 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26817 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26818 cat >conftest.$ac_ext <<_ACEOF
26819 /* confdefs.h.  */
26820 _ACEOF
26821 cat confdefs.h >>conftest.$ac_ext
26822 cat >>conftest.$ac_ext <<_ACEOF
26823 /* end confdefs.h.  */
26824 #include <netinet/in.h>
26825 int
26826 main ()
26827 {
26828 struct ipv6_mreq mreq6;
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
26856 cat >>confdefs.h <<\_ACEOF
26857 #define HAVE_STRUCT_IPV6_MREQ 1
26858 _ACEOF
26859
26860    echo "$as_me:$LINENO: result: yes" >&5
26861 echo "${ECHO_T}yes" >&6
26862 else
26863   echo "$as_me: failed program was:" >&5
26864 sed 's/^/| /' conftest.$ac_ext >&5
26865
26866 echo "$as_me:$LINENO: result: no" >&5
26867 echo "${ECHO_T}no" >&6
26868 fi
26869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26870
26871 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26872 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26873 cat >conftest.$ac_ext <<_ACEOF
26874 /* confdefs.h.  */
26875 _ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h.  */
26879 #include <netinet/in.h>
26880 int
26881 main ()
26882 {
26883 struct sockaddr_in6 addr6;
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26890   (eval $ac_compile) 2>conftest.er1
26891   ac_status=$?
26892   grep -v '^ *+' conftest.er1 >conftest.err
26893   rm -f conftest.er1
26894   cat conftest.err >&5
26895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896   (exit $ac_status); } &&
26897          { ac_try='test -z "$ac_c_werror_flag"
26898                          || test ! -s conftest.err'
26899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900   (eval $ac_try) 2>&5
26901   ac_status=$?
26902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903   (exit $ac_status); }; } &&
26904          { ac_try='test -s conftest.$ac_objext'
26905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26906   (eval $ac_try) 2>&5
26907   ac_status=$?
26908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909   (exit $ac_status); }; }; then
26910
26911 cat >>confdefs.h <<\_ACEOF
26912 #define HAVE_INET6 1
26913 _ACEOF
26914
26915    echo "$as_me:$LINENO: result: yes" >&5
26916 echo "${ECHO_T}yes" >&6
26917 else
26918   echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26920
26921 echo "$as_me:$LINENO: result: no" >&5
26922 echo "${ECHO_T}no" >&6
26923 fi
26924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26925
26926 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
26927 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
26928 cat >conftest.$ac_ext <<_ACEOF
26929 /* confdefs.h.  */
26930 _ACEOF
26931 cat confdefs.h >>conftest.$ac_ext
26932 cat >>conftest.$ac_ext <<_ACEOF
26933 /* end confdefs.h.  */
26934 #define _POSIX_PII_SOCKET
26935 #include <sys/types.h>
26936 #include <sys/socket.h>
26937 int
26938 main ()
26939 {
26940 socklen_t x = 5;
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext
26946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26947   (eval $ac_compile) 2>conftest.er1
26948   ac_status=$?
26949   grep -v '^ *+' conftest.er1 >conftest.err
26950   rm -f conftest.er1
26951   cat conftest.err >&5
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); } &&
26954          { ac_try='test -z "$ac_c_werror_flag"
26955                          || test ! -s conftest.err'
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); }; } &&
26961          { ac_try='test -s conftest.$ac_objext'
26962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963   (eval $ac_try) 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; }; then
26967
26968 cat >>confdefs.h <<\_ACEOF
26969 #define HAVE_SOCKLEN_T 1
26970 _ACEOF
26971
26972    echo "$as_me:$LINENO: result: yes" >&5
26973 echo "${ECHO_T}yes" >&6
26974 else
26975   echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26977
26978 echo "$as_me:$LINENO: result: no" >&5
26979 echo "${ECHO_T}no" >&6
26980 fi
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26982
26983 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
26984 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
26985 cat >conftest.$ac_ext <<_ACEOF
26986 /* confdefs.h.  */
26987 _ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h.  */
26991 #include <time.h>
26992 int
26993 main ()
26994 {
26995 struct tm tim; tim.tm_gmtoff = 0;
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 rm -f conftest.$ac_objext
27001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27002   (eval $ac_compile) 2>conftest.er1
27003   ac_status=$?
27004   grep -v '^ *+' conftest.er1 >conftest.err
27005   rm -f conftest.er1
27006   cat conftest.err >&5
27007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27008   (exit $ac_status); } &&
27009          { ac_try='test -z "$ac_c_werror_flag"
27010                          || test ! -s conftest.err'
27011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27012   (eval $ac_try) 2>&5
27013   ac_status=$?
27014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27015   (exit $ac_status); }; } &&
27016          { ac_try='test -s conftest.$ac_objext'
27017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27018   (eval $ac_try) 2>&5
27019   ac_status=$?
27020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021   (exit $ac_status); }; }; then
27022
27023 cat >>confdefs.h <<\_ACEOF
27024 #define STRUCT_TM_HAS_GMTOFF 1
27025 _ACEOF
27026
27027    echo "$as_me:$LINENO: result: yes" >&5
27028 echo "${ECHO_T}yes" >&6
27029 else
27030   echo "$as_me: failed program was:" >&5
27031 sed 's/^/| /' conftest.$ac_ext >&5
27032
27033 echo "$as_me:$LINENO: result: no" >&5
27034 echo "${ECHO_T}no" >&6
27035    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27036 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27037                cat >conftest.$ac_ext <<_ACEOF
27038 /* confdefs.h.  */
27039 _ACEOF
27040 cat confdefs.h >>conftest.$ac_ext
27041 cat >>conftest.$ac_ext <<_ACEOF
27042 /* end confdefs.h.  */
27043 #include <time.h>
27044 int
27045 main ()
27046 {
27047 void i(){long z2 = 2*timezone;}
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27054   (eval $ac_compile) 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } &&
27061          { ac_try='test -z "$ac_c_werror_flag"
27062                          || test ! -s conftest.err'
27063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064   (eval $ac_try) 2>&5
27065   ac_status=$?
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); }; } &&
27068          { ac_try='test -s conftest.$ac_objext'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; }; then
27074
27075 cat >>confdefs.h <<\_ACEOF
27076 #define HAVE_TIMEZONE 1
27077 _ACEOF
27078
27079       echo "$as_me:$LINENO: result: yes" >&5
27080 echo "${ECHO_T}yes" >&6
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085 echo "$as_me:$LINENO: result: no" >&5
27086 echo "${ECHO_T}no" >&6
27087        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27088 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27089               cat >conftest.$ac_ext <<_ACEOF
27090 /* confdefs.h.  */
27091 _ACEOF
27092 cat confdefs.h >>conftest.$ac_ext
27093 cat >>conftest.$ac_ext <<_ACEOF
27094 /* end confdefs.h.  */
27095 #include <time.h>
27096 int
27097 main ()
27098 {
27099 long z2 = _timezone;
27100   ;
27101   return 0;
27102 }
27103 _ACEOF
27104 rm -f conftest.$ac_objext
27105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27106   (eval $ac_compile) 2>conftest.er1
27107   ac_status=$?
27108   grep -v '^ *+' conftest.er1 >conftest.err
27109   rm -f conftest.er1
27110   cat conftest.err >&5
27111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112   (exit $ac_status); } &&
27113          { ac_try='test -z "$ac_c_werror_flag"
27114                          || test ! -s conftest.err'
27115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27116   (eval $ac_try) 2>&5
27117   ac_status=$?
27118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27119   (exit $ac_status); }; } &&
27120          { ac_try='test -s conftest.$ac_objext'
27121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27122   (eval $ac_try) 2>&5
27123   ac_status=$?
27124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125   (exit $ac_status); }; }; then
27126
27127 cat >>confdefs.h <<\_ACEOF
27128 #define HAVE_UNDERSCORE_TIMEZONE 1
27129 _ACEOF
27130
27131           echo "$as_me:$LINENO: result: yes" >&5
27132 echo "${ECHO_T}yes" >&6
27133 else
27134   echo "$as_me: failed program was:" >&5
27135 sed 's/^/| /' conftest.$ac_ext >&5
27136
27137 echo "$as_me:$LINENO: result: no" >&5
27138 echo "${ECHO_T}no" >&6
27139 fi
27140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27141 fi
27142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27143 fi
27144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27145
27146 for ac_prog in perl
27147 do
27148   # Extract the first word of "$ac_prog", so it can be a program name with args.
27149 set dummy $ac_prog; ac_word=$2
27150 echo "$as_me:$LINENO: checking for $ac_word" >&5
27151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27152 if test "${ac_cv_prog_PERL+set}" = set; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 else
27155   if test -n "$PERL"; then
27156   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27157 else
27158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27159 for as_dir in $PATH
27160 do
27161   IFS=$as_save_IFS
27162   test -z "$as_dir" && as_dir=.
27163   for ac_exec_ext in '' $ac_executable_extensions; do
27164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27165     ac_cv_prog_PERL="$ac_prog"
27166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27167     break 2
27168   fi
27169 done
27170 done
27171
27172 fi
27173 fi
27174 PERL=$ac_cv_prog_PERL
27175 if test -n "$PERL"; then
27176   echo "$as_me:$LINENO: result: $PERL" >&5
27177 echo "${ECHO_T}$PERL" >&6
27178 else
27179   echo "$as_me:$LINENO: result: no" >&5
27180 echo "${ECHO_T}no" >&6
27181 fi
27182
27183   test -n "$PERL" && break
27184 done
27185 test -n "$PERL" || PERL="false"
27186
27187
27188 SYSDEP_SOURCES=
27189 SIGNAL_HANDLER_AUX=
27190
27191 case "${host}" in
27192  i?86-*-linux*)
27193     SIGNAL_HANDLER=include/i386-signal.h
27194     ;;
27195  sparc*-sun-solaris*)
27196     SIGNAL_HANDLER=include/sparc-signal.h
27197     ;;
27198 # ia64-*)
27199 #    SYSDEP_SOURCES=sysdep/ia64.c
27200 #    test -d sysdep || mkdir sysdep
27201 #    ;;
27202  hppa*-*-linux*)
27203     SIGNAL_HANDLER=include/pa-signal.h
27204     ;;
27205  hppa*-hp-hpux*)
27206     SIGNAL_HANDLER=include/hppa-signal.h
27207     ;;
27208  ia64-*-linux*)
27209     SIGNAL_HANDLER=include/dwarf2-signal.h
27210     ;;
27211  powerpc*-*-linux*)
27212     SIGNAL_HANDLER=include/powerpc-signal.h
27213     ;;
27214  alpha*-*-linux*)
27215     SIGNAL_HANDLER=include/dwarf2-signal.h
27216     ;;
27217  s390*-*-linux*)
27218     SIGNAL_HANDLER=include/s390-signal.h
27219     ;;
27220  x86_64*-*-linux*)
27221     SIGNAL_HANDLER=include/x86_64-signal.h
27222     SIGNAL_HANDLER_AUX=include/i386-signal.h
27223     ;;
27224  sparc*-*-linux*)
27225     SIGNAL_HANDLER=include/dwarf2-signal.h
27226     ;;
27227  sh*-*-linux*)
27228     SIGNAL_HANDLER=include/sh-signal.h
27229     ;;
27230  *mingw*)
27231     SIGNAL_HANDLER=include/win32-signal.h
27232     ;;
27233  mips*-*-linux*)
27234     SIGNAL_HANDLER=include/mips-signal.h
27235     ;;
27236  powerpc*-*-darwin*)
27237     SIGNAL_HANDLER=include/darwin-signal.h
27238     ;;
27239  *)
27240     SIGNAL_HANDLER=include/default-signal.h
27241     ;;
27242 esac
27243
27244 # If we're using sjlj exceptions, forget what we just learned.
27245 if test "$enable_sjlj_exceptions" = yes; then
27246    SIGNAL_HANDLER=include/default-signal.h
27247    SIGNAL_HANDLER_AUX=
27248 fi
27249
27250
27251
27252 if test -z "$SIGNAL_HANDLER_AUX"; then
27253   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27254 fi
27255
27256                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27257
27258
27259 if test "${multilib}" = "yes"; then
27260   multilib_arg="--enable-multilib"
27261 else
27262   multilib_arg=
27263 fi
27264
27265 # See if we support thread-local storage.
27266
27267    # Check whether --enable-tls or --disable-tls was given.
27268 if test "${enable_tls+set}" = set; then
27269   enableval="$enable_tls"
27270
27271       case "$enableval" in
27272        yes|no) ;;
27273        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27274 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27275    { (exit 1); exit 1; }; } ;;
27276       esac
27277
27278 else
27279   enable_tls=yes
27280 fi;
27281
27282   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27283 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27284 if test "${have_tls+set}" = set; then
27285   echo $ECHO_N "(cached) $ECHO_C" >&6
27286 else
27287
27288     if test "$cross_compiling" = yes; then
27289                 if test x$gcc_no_link = xyes; then
27290   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27291 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27292    { (exit 1); exit 1; }; }
27293 fi
27294 cat >conftest.$ac_ext <<_ACEOF
27295 __thread int a; int b; int main() { return a = b; }
27296 _ACEOF
27297 rm -f conftest.$ac_objext conftest$ac_exeext
27298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27299   (eval $ac_link) 2>conftest.er1
27300   ac_status=$?
27301   grep -v '^ *+' conftest.er1 >conftest.err
27302   rm -f conftest.er1
27303   cat conftest.err >&5
27304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305   (exit $ac_status); } &&
27306          { ac_try='test -z "$ac_c_werror_flag"
27307                          || test ! -s conftest.err'
27308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309   (eval $ac_try) 2>&5
27310   ac_status=$?
27311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312   (exit $ac_status); }; } &&
27313          { ac_try='test -s conftest$ac_exeext'
27314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27315   (eval $ac_try) 2>&5
27316   ac_status=$?
27317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318   (exit $ac_status); }; }; then
27319   have_tls=yes
27320 else
27321   echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27323
27324 have_tls=no
27325 fi
27326 rm -f conftest.err conftest.$ac_objext \
27327       conftest$ac_exeext conftest.$ac_ext
27328
27329
27330 else
27331   cat >conftest.$ac_ext <<_ACEOF
27332 __thread int a; int b; int main() { return a = b; }
27333 _ACEOF
27334 rm -f conftest$ac_exeext
27335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27336   (eval $ac_link) 2>&5
27337   ac_status=$?
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; }; then
27345                       chktls_save_LDFLAGS="$LDFLAGS"
27346       LDFLAGS="-static $LDFLAGS"
27347       if test x$gcc_no_link = xyes; then
27348   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27350    { (exit 1); exit 1; }; }
27351 fi
27352 cat >conftest.$ac_ext <<_ACEOF
27353 int main() { return 0; }
27354 _ACEOF
27355 rm -f conftest.$ac_objext conftest$ac_exeext
27356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27357   (eval $ac_link) 2>conftest.er1
27358   ac_status=$?
27359   grep -v '^ *+' conftest.er1 >conftest.err
27360   rm -f conftest.er1
27361   cat conftest.err >&5
27362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363   (exit $ac_status); } &&
27364          { ac_try='test -z "$ac_c_werror_flag"
27365                          || test ! -s conftest.err'
27366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367   (eval $ac_try) 2>&5
27368   ac_status=$?
27369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370   (exit $ac_status); }; } &&
27371          { ac_try='test -s conftest$ac_exeext'
27372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27373   (eval $ac_try) 2>&5
27374   ac_status=$?
27375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376   (exit $ac_status); }; }; then
27377   if test "$cross_compiling" = yes; then
27378   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27379 See \`config.log' for more details." >&5
27380 echo "$as_me: error: cannot run test program while cross compiling
27381 See \`config.log' for more details." >&2;}
27382    { (exit 1); exit 1; }; }
27383 else
27384   cat >conftest.$ac_ext <<_ACEOF
27385 __thread int a; int b; int main() { return a = b; }
27386 _ACEOF
27387 rm -f conftest$ac_exeext
27388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27389   (eval $ac_link) 2>&5
27390   ac_status=$?
27391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27394   (eval $ac_try) 2>&5
27395   ac_status=$?
27396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); }; }; then
27398   have_tls=yes
27399 else
27400   echo "$as_me: program exited with status $ac_status" >&5
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ( exit $ac_status )
27405 have_tls=no
27406 fi
27407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27408 fi
27409 else
27410   echo "$as_me: failed program was:" >&5
27411 sed 's/^/| /' conftest.$ac_ext >&5
27412
27413 have_tls=yes
27414 fi
27415 rm -f conftest.err conftest.$ac_objext \
27416       conftest$ac_exeext conftest.$ac_ext
27417       LDFLAGS="$chktls_save_LDFLAGS"
27418       if test $have_tls = yes; then
27419                                                 chktls_save_CFLAGS="$CFLAGS"
27420         thread_CFLAGS=failed
27421         for flag in '' '-pthread' '-lpthread'; do
27422           CFLAGS="$flag $chktls_save_CFLAGS"
27423           if test x$gcc_no_link = xyes; then
27424   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27425 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27426    { (exit 1); exit 1; }; }
27427 fi
27428 cat >conftest.$ac_ext <<_ACEOF
27429 /* confdefs.h.  */
27430 _ACEOF
27431 cat confdefs.h >>conftest.$ac_ext
27432 cat >>conftest.$ac_ext <<_ACEOF
27433 /* end confdefs.h.  */
27434 #include <pthread.h>
27435                 void *g(void *d) { return NULL; }
27436 int
27437 main ()
27438 {
27439 pthread_t t; pthread_create(&t,NULL,g,NULL);
27440   ;
27441   return 0;
27442 }
27443 _ACEOF
27444 rm -f conftest.$ac_objext conftest$ac_exeext
27445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27446   (eval $ac_link) 2>conftest.er1
27447   ac_status=$?
27448   grep -v '^ *+' conftest.er1 >conftest.err
27449   rm -f conftest.er1
27450   cat conftest.err >&5
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); } &&
27453          { ac_try='test -z "$ac_c_werror_flag"
27454                          || test ! -s conftest.err'
27455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456   (eval $ac_try) 2>&5
27457   ac_status=$?
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); }; } &&
27460          { ac_try='test -s conftest$ac_exeext'
27461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462   (eval $ac_try) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); }; }; then
27466   thread_CFLAGS="$flag"
27467 else
27468   echo "$as_me: failed program was:" >&5
27469 sed 's/^/| /' conftest.$ac_ext >&5
27470
27471 fi
27472 rm -f conftest.err conftest.$ac_objext \
27473       conftest$ac_exeext conftest.$ac_ext
27474           if test "X$thread_CFLAGS" != Xfailed; then
27475             break
27476           fi
27477         done
27478         CFLAGS="$chktls_save_CFLAGS"
27479         if test "X$thread_CFLAGS" != Xfailed; then
27480           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27481           if test "$cross_compiling" = yes; then
27482   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27483 See \`config.log' for more details." >&5
27484 echo "$as_me: error: cannot run test program while cross compiling
27485 See \`config.log' for more details." >&2;}
27486    { (exit 1); exit 1; }; }
27487 else
27488   cat >conftest.$ac_ext <<_ACEOF
27489 /* confdefs.h.  */
27490 _ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h.  */
27494 #include <pthread.h>
27495                 __thread int a;
27496                 static int *a_in_other_thread;
27497                 static void *
27498                 thread_func (void *arg)
27499                 {
27500                   a_in_other_thread = &a;
27501                   return (void *)0;
27502                 }
27503 int
27504 main ()
27505 {
27506 pthread_t thread;
27507                 void *thread_retval;
27508                 int *a_in_main_thread;
27509                 if (pthread_create (&thread, (pthread_attr_t *)0,
27510                                     thread_func, (void *)0))
27511                   return 0;
27512                 a_in_main_thread = &a;
27513                 if (pthread_join (thread, &thread_retval))
27514                   return 0;
27515                 return (a_in_other_thread == a_in_main_thread);
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 rm -f conftest$ac_exeext
27521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27522   (eval $ac_link) 2>&5
27523   ac_status=$?
27524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27527   (eval $ac_try) 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   have_tls=yes
27532 else
27533   echo "$as_me: program exited with status $ac_status" >&5
27534 echo "$as_me: failed program was:" >&5
27535 sed 's/^/| /' conftest.$ac_ext >&5
27536
27537 ( exit $ac_status )
27538 have_tls=no
27539 fi
27540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27541 fi
27542           CFLAGS="$chktls_save_CFLAGS"
27543         fi
27544       fi
27545 else
27546   echo "$as_me: program exited with status $ac_status" >&5
27547 echo "$as_me: failed program was:" >&5
27548 sed 's/^/| /' conftest.$ac_ext >&5
27549
27550 ( exit $ac_status )
27551 have_tls=no
27552 fi
27553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27554 fi
27555 fi
27556 echo "$as_me:$LINENO: result: $have_tls" >&5
27557 echo "${ECHO_T}$have_tls" >&6
27558   if test "$enable_tls $have_tls" = "yes yes"; then
27559
27560 cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_TLS 1
27562 _ACEOF
27563
27564   fi
27565
27566 # For _Unwind_GetIPInfo.
27567
27568
27569
27570   ac_ext=cc
27571 ac_cpp='$CXXCPP $CPPFLAGS'
27572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27575
27576   ac_save_CXXFLAGS="$CXXFLAGS"
27577   CXXFLAGS="$CXXFLAGS -fno-exceptions"
27578   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27579 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27580   if test "${gcc_cv_getipinfo+set}" = set; then
27581   echo $ECHO_N "(cached) $ECHO_C" >&6
27582 else
27583
27584   if test x$gcc_no_link = xyes; then
27585   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27586 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27587    { (exit 1); exit 1; }; }
27588 fi
27589 cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h.  */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h.  */
27595 extern "C" { extern void _Unwind_GetIPInfo(); }
27596 int
27597 main ()
27598 {
27599 _Unwind_GetIPInfo();
27600   ;
27601   return 0;
27602 }
27603 _ACEOF
27604 rm -f conftest.$ac_objext conftest$ac_exeext
27605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27606   (eval $ac_link) 2>conftest.er1
27607   ac_status=$?
27608   grep -v '^ *+' conftest.er1 >conftest.err
27609   rm -f conftest.er1
27610   cat conftest.err >&5
27611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); } &&
27613          { ac_try='test -z "$ac_cxx_werror_flag"
27614                          || test ! -s conftest.err'
27615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27616   (eval $ac_try) 2>&5
27617   ac_status=$?
27618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27619   (exit $ac_status); }; } &&
27620          { ac_try='test -s conftest$ac_exeext'
27621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27622   (eval $ac_try) 2>&5
27623   ac_status=$?
27624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625   (exit $ac_status); }; }; then
27626   gcc_cv_getipinfo=yes
27627 else
27628   echo "$as_me: failed program was:" >&5
27629 sed 's/^/| /' conftest.$ac_ext >&5
27630
27631 gcc_cv_getipinfo=no
27632 fi
27633 rm -f conftest.err conftest.$ac_objext \
27634       conftest$ac_exeext conftest.$ac_ext
27635
27636 fi
27637
27638   if test $gcc_cv_getipinfo = yes; then
27639
27640 cat >>confdefs.h <<\_ACEOF
27641 #define HAVE_GETIPINFO 1
27642 _ACEOF
27643
27644   fi
27645   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27646 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27647   CXXFLAGS="$ac_save_CXXFLAGS"
27648   ac_ext=c
27649 ac_cpp='$CPP $CPPFLAGS'
27650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27653
27654
27655
27656 # See if linker supports anonymous version scripts.
27657 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27658 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27659 if test "${libjava_cv_anon_version_script+set}" = set; then
27660   echo $ECHO_N "(cached) $ECHO_C" >&6
27661 else
27662   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27663    libjava_cv_anon_version_script=no
27664    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27665    echo '{ global: globalsymb*; local: *; };' > conftest.map
27666    if test x$gcc_no_link = xyes; then
27667   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27669    { (exit 1); exit 1; }; }
27670 fi
27671 cat >conftest.$ac_ext <<_ACEOF
27672 /* confdefs.h.  */
27673 _ACEOF
27674 cat confdefs.h >>conftest.$ac_ext
27675 cat >>conftest.$ac_ext <<_ACEOF
27676 /* end confdefs.h.  */
27677 void globalsymbol (void) {} void localsymbol (void) {}
27678 int
27679 main ()
27680 {
27681
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest.$ac_objext conftest$ac_exeext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688   (eval $ac_link) 2>conftest.er1
27689   ac_status=$?
27690   grep -v '^ *+' conftest.er1 >conftest.err
27691   rm -f conftest.er1
27692   cat conftest.err >&5
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); } &&
27695          { ac_try='test -z "$ac_c_werror_flag"
27696                          || test ! -s conftest.err'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; } &&
27702          { ac_try='test -s conftest$ac_exeext'
27703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27704   (eval $ac_try) 2>&5
27705   ac_status=$?
27706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27707   (exit $ac_status); }; }; then
27708   libjava_cv_anon_version_script=yes
27709 else
27710   echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.$ac_ext >&5
27712
27713 fi
27714 rm -f conftest.err conftest.$ac_objext \
27715       conftest$ac_exeext conftest.$ac_ext
27716    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27717
27718 fi
27719 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27720 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27721
27722
27723 if test "$libjava_cv_anon_version_script" = yes; then
27724   ANONVERSCRIPT_TRUE=
27725   ANONVERSCRIPT_FALSE='#'
27726 else
27727   ANONVERSCRIPT_TRUE='#'
27728   ANONVERSCRIPT_FALSE=
27729 fi
27730
27731
27732 # Check if linker supports static linking on a per library basis
27733 LD_START_STATIC_SPEC=
27734 LD_FINISH_STATIC_SPEC=
27735 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27736   if $LD --help 2>&1 | grep -q -e -non_shared ; then
27737     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27738     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27739   fi
27740 fi
27741
27742
27743
27744 here=`${PWDCMD-pwd}`
27745
27746
27747 # We get this from the environment.
27748
27749
27750                                                                       ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27751
27752
27753           ac_config_files="$ac_config_files scripts/jar"
27754
27755
27756           ac_config_commands="$ac_config_commands default"
27757
27758
27759 cat >confcache <<\_ACEOF
27760 # This file is a shell script that caches the results of configure
27761 # tests run on this system so they can be shared between configure
27762 # scripts and configure runs, see configure's option --config-cache.
27763 # It is not useful on other systems.  If it contains results you don't
27764 # want to keep, you may remove or edit it.
27765 #
27766 # config.status only pays attention to the cache file if you give it
27767 # the --recheck option to rerun configure.
27768 #
27769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27771 # following values.
27772
27773 _ACEOF
27774
27775 # The following way of writing the cache mishandles newlines in values,
27776 # but we know of no workaround that is simple, portable, and efficient.
27777 # So, don't put newlines in cache variables' values.
27778 # Ultrix sh set writes to stderr and can't be redirected directly,
27779 # and sets the high bit in the cache file unless we assign to the vars.
27780 {
27781   (set) 2>&1 |
27782     case `(ac_space=' '; set | grep ac_space) 2>&1` in
27783     *ac_space=\ *)
27784       # `set' does not quote correctly, so add quotes (double-quote
27785       # substitution turns \\\\ into \\, and sed turns \\ into \).
27786       sed -n \
27787         "s/'/'\\\\''/g;
27788           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27789       ;;
27790     *)
27791       # `set' quotes correctly as required by POSIX, so do not add quotes.
27792       sed -n \
27793         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27794       ;;
27795     esac;
27796 } |
27797   sed '
27798      t clear
27799      : clear
27800      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27801      t end
27802      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27803      : end' >>confcache
27804 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27805   if test -w $cache_file; then
27806     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27807     cat confcache >$cache_file
27808   else
27809     echo "not updating unwritable cache $cache_file"
27810   fi
27811 fi
27812 rm -f confcache
27813
27814 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27815 # Let make expand exec_prefix.
27816 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27817
27818 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27819 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27820 # trailing colons and then remove the whole line if VPATH becomes empty
27821 # (actually we leave an empty line to preserve line numbers).
27822 if test "x$srcdir" = x.; then
27823   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27824 s/:*\$(srcdir):*/:/;
27825 s/:*\${srcdir}:*/:/;
27826 s/:*@srcdir@:*/:/;
27827 s/^\([^=]*=[     ]*\):*/\1/;
27828 s/:*$//;
27829 s/^[^=]*=[       ]*$//;
27830 }'
27831 fi
27832
27833 DEFS=-DHAVE_CONFIG_H
27834
27835 ac_libobjs=
27836 ac_ltlibobjs=
27837 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27838   # 1. Remove the extension, and $U if already installed.
27839   ac_i=`echo "$ac_i" |
27840          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27841   # 2. Add them.
27842   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27843   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27844 done
27845 LIBOBJS=$ac_libobjs
27846
27847 LTLIBOBJS=$ac_ltlibobjs
27848
27849
27850 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27851   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27852 Usually this means the macro was only invoked conditionally." >&5
27853 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27854 Usually this means the macro was only invoked conditionally." >&2;}
27855    { (exit 1); exit 1; }; }
27856 fi
27857 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27858   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27859 Usually this means the macro was only invoked conditionally." >&5
27860 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27861 Usually this means the macro was only invoked conditionally." >&2;}
27862    { (exit 1); exit 1; }; }
27863 fi
27864 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27865   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27866 Usually this means the macro was only invoked conditionally." >&5
27867 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27868 Usually this means the macro was only invoked conditionally." >&2;}
27869    { (exit 1); exit 1; }; }
27870 fi
27871 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27872   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27873 Usually this means the macro was only invoked conditionally." >&5
27874 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27875 Usually this means the macro was only invoked conditionally." >&2;}
27876    { (exit 1); exit 1; }; }
27877 fi
27878 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27879   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27880 Usually this means the macro was only invoked conditionally." >&5
27881 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27882 Usually this means the macro was only invoked conditionally." >&2;}
27883    { (exit 1); exit 1; }; }
27884 fi
27885 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
27886   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
27887 Usually this means the macro was only invoked conditionally." >&5
27888 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
27889 Usually this means the macro was only invoked conditionally." >&2;}
27890    { (exit 1); exit 1; }; }
27891 fi
27892 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
27893   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
27894 Usually this means the macro was only invoked conditionally." >&5
27895 echo "$as_me: error: conditional \"X_AWT\" was never defined.
27896 Usually this means the macro was only invoked conditionally." >&2;}
27897    { (exit 1); exit 1; }; }
27898 fi
27899 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27900   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27901 Usually this means the macro was only invoked conditionally." >&5
27902 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27903 Usually this means the macro was only invoked conditionally." >&2;}
27904    { (exit 1); exit 1; }; }
27905 fi
27906 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27907   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27908 Usually this means the macro was only invoked conditionally." >&5
27909 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27910 Usually this means the macro was only invoked conditionally." >&2;}
27911    { (exit 1); exit 1; }; }
27912 fi
27913 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
27914   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
27915 Usually this means the macro was only invoked conditionally." >&5
27916 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
27917 Usually this means the macro was only invoked conditionally." >&2;}
27918    { (exit 1); exit 1; }; }
27919 fi
27920 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
27921   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
27922 Usually this means the macro was only invoked conditionally." >&5
27923 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
27924 Usually this means the macro was only invoked conditionally." >&2;}
27925    { (exit 1); exit 1; }; }
27926 fi
27927 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
27928   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27929 Usually this means the macro was only invoked conditionally." >&5
27930 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27931 Usually this means the macro was only invoked conditionally." >&2;}
27932    { (exit 1); exit 1; }; }
27933 fi
27934 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
27935   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
27936 Usually this means the macro was only invoked conditionally." >&5
27937 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
27938 Usually this means the macro was only invoked conditionally." >&2;}
27939    { (exit 1); exit 1; }; }
27940 fi
27941 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
27942   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
27943 Usually this means the macro was only invoked conditionally." >&5
27944 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
27945 Usually this means the macro was only invoked conditionally." >&2;}
27946    { (exit 1); exit 1; }; }
27947 fi
27948 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
27949   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
27950 Usually this means the macro was only invoked conditionally." >&5
27951 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
27952 Usually this means the macro was only invoked conditionally." >&2;}
27953    { (exit 1); exit 1; }; }
27954 fi
27955 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
27956   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
27957 Usually this means the macro was only invoked conditionally." >&5
27958 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
27959 Usually this means the macro was only invoked conditionally." >&2;}
27960    { (exit 1); exit 1; }; }
27961 fi
27962 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
27963   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
27964 Usually this means the macro was only invoked conditionally." >&5
27965 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
27966 Usually this means the macro was only invoked conditionally." >&2;}
27967    { (exit 1); exit 1; }; }
27968 fi
27969 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
27970   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
27971 Usually this means the macro was only invoked conditionally." >&5
27972 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
27973 Usually this means the macro was only invoked conditionally." >&2;}
27974    { (exit 1); exit 1; }; }
27975 fi
27976 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
27977   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
27978 Usually this means the macro was only invoked conditionally." >&5
27979 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
27980 Usually this means the macro was only invoked conditionally." >&2;}
27981    { (exit 1); exit 1; }; }
27982 fi
27983 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
27984   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
27985 Usually this means the macro was only invoked conditionally." >&5
27986 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
27987 Usually this means the macro was only invoked conditionally." >&2;}
27988    { (exit 1); exit 1; }; }
27989 fi
27990 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
27991   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
27992 Usually this means the macro was only invoked conditionally." >&5
27993 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
27994 Usually this means the macro was only invoked conditionally." >&2;}
27995    { (exit 1); exit 1; }; }
27996 fi
27997 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
27998   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
27999 Usually this means the macro was only invoked conditionally." >&5
28000 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28001 Usually this means the macro was only invoked conditionally." >&2;}
28002    { (exit 1); exit 1; }; }
28003 fi
28004 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28005   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28006 Usually this means the macro was only invoked conditionally." >&5
28007 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28008 Usually this means the macro was only invoked conditionally." >&2;}
28009    { (exit 1); exit 1; }; }
28010 fi
28011 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28012   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28013 Usually this means the macro was only invoked conditionally." >&5
28014 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28015 Usually this means the macro was only invoked conditionally." >&2;}
28016    { (exit 1); exit 1; }; }
28017 fi
28018 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28019   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28020 Usually this means the macro was only invoked conditionally." >&5
28021 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28022 Usually this means the macro was only invoked conditionally." >&2;}
28023    { (exit 1); exit 1; }; }
28024 fi
28025 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28026   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28027 Usually this means the macro was only invoked conditionally." >&5
28028 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28029 Usually this means the macro was only invoked conditionally." >&2;}
28030    { (exit 1); exit 1; }; }
28031 fi
28032 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28033   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28034 Usually this means the macro was only invoked conditionally." >&5
28035 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28036 Usually this means the macro was only invoked conditionally." >&2;}
28037    { (exit 1); exit 1; }; }
28038 fi
28039 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28040   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28041 Usually this means the macro was only invoked conditionally." >&5
28042 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28043 Usually this means the macro was only invoked conditionally." >&2;}
28044    { (exit 1); exit 1; }; }
28045 fi
28046
28047 : ${CONFIG_STATUS=./config.status}
28048 ac_clean_files_save=$ac_clean_files
28049 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28050 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28051 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28052 cat >$CONFIG_STATUS <<_ACEOF
28053 #! $SHELL
28054 # Generated by $as_me.
28055 # Run this file to recreate the current configuration.
28056 # Compiler output produced by configure, useful for debugging
28057 # configure, is in config.log if it exists.
28058
28059 debug=false
28060 ac_cs_recheck=false
28061 ac_cs_silent=false
28062 SHELL=\${CONFIG_SHELL-$SHELL}
28063 _ACEOF
28064
28065 cat >>$CONFIG_STATUS <<\_ACEOF
28066 ## --------------------- ##
28067 ## M4sh Initialization.  ##
28068 ## --------------------- ##
28069
28070 # Be Bourne compatible
28071 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28072   emulate sh
28073   NULLCMD=:
28074   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28075   # is contrary to our usage.  Disable this feature.
28076   alias -g '${1+"$@"}'='"$@"'
28077 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28078   set -o posix
28079 fi
28080 DUALCASE=1; export DUALCASE # for MKS sh
28081
28082 # Support unset when possible.
28083 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28084   as_unset=unset
28085 else
28086   as_unset=false
28087 fi
28088
28089
28090 # Work around bugs in pre-3.0 UWIN ksh.
28091 $as_unset ENV MAIL MAILPATH
28092 PS1='$ '
28093 PS2='> '
28094 PS4='+ '
28095
28096 # NLS nuisances.
28097 for as_var in \
28098   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28099   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28100   LC_TELEPHONE LC_TIME
28101 do
28102   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28103     eval $as_var=C; export $as_var
28104   else
28105     $as_unset $as_var
28106   fi
28107 done
28108
28109 # Required to use basename.
28110 if expr a : '\(a\)' >/dev/null 2>&1; then
28111   as_expr=expr
28112 else
28113   as_expr=false
28114 fi
28115
28116 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28117   as_basename=basename
28118 else
28119   as_basename=false
28120 fi
28121
28122
28123 # Name of the executable.
28124 as_me=`$as_basename "$0" ||
28125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28126          X"$0" : 'X\(//\)$' \| \
28127          X"$0" : 'X\(/\)$' \| \
28128          .     : '\(.\)' 2>/dev/null ||
28129 echo X/"$0" |
28130     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28131           /^X\/\(\/\/\)$/{ s//\1/; q; }
28132           /^X\/\(\/\).*/{ s//\1/; q; }
28133           s/.*/./; q'`
28134
28135
28136 # PATH needs CR, and LINENO needs CR and PATH.
28137 # Avoid depending upon Character Ranges.
28138 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28139 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28140 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28141 as_cr_digits='0123456789'
28142 as_cr_alnum=$as_cr_Letters$as_cr_digits
28143
28144 # The user is always right.
28145 if test "${PATH_SEPARATOR+set}" != set; then
28146   echo "#! /bin/sh" >conf$$.sh
28147   echo  "exit 0"   >>conf$$.sh
28148   chmod +x conf$$.sh
28149   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28150     PATH_SEPARATOR=';'
28151   else
28152     PATH_SEPARATOR=:
28153   fi
28154   rm -f conf$$.sh
28155 fi
28156
28157
28158   as_lineno_1=$LINENO
28159   as_lineno_2=$LINENO
28160   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28161   test "x$as_lineno_1" != "x$as_lineno_2" &&
28162   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28163   # Find who we are.  Look in the path if we contain no path at all
28164   # relative or not.
28165   case $0 in
28166     *[\\/]* ) as_myself=$0 ;;
28167     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28168 for as_dir in $PATH
28169 do
28170   IFS=$as_save_IFS
28171   test -z "$as_dir" && as_dir=.
28172   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28173 done
28174
28175        ;;
28176   esac
28177   # We did not find ourselves, most probably we were run as `sh COMMAND'
28178   # in which case we are not to be found in the path.
28179   if test "x$as_myself" = x; then
28180     as_myself=$0
28181   fi
28182   if test ! -f "$as_myself"; then
28183     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28184 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28185    { (exit 1); exit 1; }; }
28186   fi
28187   case $CONFIG_SHELL in
28188   '')
28189     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28191 do
28192   IFS=$as_save_IFS
28193   test -z "$as_dir" && as_dir=.
28194   for as_base in sh bash ksh sh5; do
28195          case $as_dir in
28196          /*)
28197            if ("$as_dir/$as_base" -c '
28198   as_lineno_1=$LINENO
28199   as_lineno_2=$LINENO
28200   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28201   test "x$as_lineno_1" != "x$as_lineno_2" &&
28202   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28203              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28204              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28205              CONFIG_SHELL=$as_dir/$as_base
28206              export CONFIG_SHELL
28207              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28208            fi;;
28209          esac
28210        done
28211 done
28212 ;;
28213   esac
28214
28215   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28216   # uniformly replaced by the line number.  The first 'sed' inserts a
28217   # line-number line before each line; the second 'sed' does the real
28218   # work.  The second script uses 'N' to pair each line-number line
28219   # with the numbered line, and appends trailing '-' during
28220   # substitution so that $LINENO is not a special case at line end.
28221   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28222   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28223   sed '=' <$as_myself |
28224     sed '
28225       N
28226       s,$,-,
28227       : loop
28228       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28229       t loop
28230       s,-$,,
28231       s,^['$as_cr_digits']*\n,,
28232     ' >$as_me.lineno &&
28233   chmod +x $as_me.lineno ||
28234     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28235 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28236    { (exit 1); exit 1; }; }
28237
28238   # Don't try to exec as it changes $[0], causing all sort of problems
28239   # (the dirname of $[0] is not the place where we might find the
28240   # original and so on.  Autoconf is especially sensible to this).
28241   . ./$as_me.lineno
28242   # Exit status is that of the last command.
28243   exit
28244 }
28245
28246
28247 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28248   *c*,-n*) ECHO_N= ECHO_C='
28249 ' ECHO_T='      ' ;;
28250   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28251   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28252 esac
28253
28254 if expr a : '\(a\)' >/dev/null 2>&1; then
28255   as_expr=expr
28256 else
28257   as_expr=false
28258 fi
28259
28260 rm -f conf$$ conf$$.exe conf$$.file
28261 echo >conf$$.file
28262 if ln -s conf$$.file conf$$ 2>/dev/null; then
28263   # We could just check for DJGPP; but this test a) works b) is more generic
28264   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28265   if test -f conf$$.exe; then
28266     # Don't use ln at all; we don't have any links
28267     as_ln_s='cp -p'
28268   else
28269     as_ln_s='ln -s'
28270   fi
28271 elif ln conf$$.file conf$$ 2>/dev/null; then
28272   as_ln_s=ln
28273 else
28274   as_ln_s='cp -p'
28275 fi
28276 rm -f conf$$ conf$$.exe conf$$.file
28277
28278 if mkdir -p . 2>/dev/null; then
28279   as_mkdir_p=:
28280 else
28281   test -d ./-p && rmdir ./-p
28282   as_mkdir_p=false
28283 fi
28284
28285 as_executable_p="test -f"
28286
28287 # Sed expression to map a string onto a valid CPP name.
28288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28289
28290 # Sed expression to map a string onto a valid variable name.
28291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28292
28293
28294 # IFS
28295 # We need space, tab and new line, in precisely that order.
28296 as_nl='
28297 '
28298 IFS="   $as_nl"
28299
28300 # CDPATH.
28301 $as_unset CDPATH
28302
28303 exec 6>&1
28304
28305 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28306 # report actual input values of CONFIG_FILES etc. instead of their
28307 # values after options handling.  Logging --version etc. is OK.
28308 exec 5>>config.log
28309 {
28310   echo
28311   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28312 ## Running $as_me. ##
28313 _ASBOX
28314 } >&5
28315 cat >&5 <<_CSEOF
28316
28317 This file was extended by libjava $as_me version-unused, which was
28318 generated by GNU Autoconf 2.59.  Invocation command line was
28319
28320   CONFIG_FILES    = $CONFIG_FILES
28321   CONFIG_HEADERS  = $CONFIG_HEADERS
28322   CONFIG_LINKS    = $CONFIG_LINKS
28323   CONFIG_COMMANDS = $CONFIG_COMMANDS
28324   $ $0 $@
28325
28326 _CSEOF
28327 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28328 echo >&5
28329 _ACEOF
28330
28331 # Files that config.status was made for.
28332 if test -n "$ac_config_files"; then
28333   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28334 fi
28335
28336 if test -n "$ac_config_headers"; then
28337   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28338 fi
28339
28340 if test -n "$ac_config_links"; then
28341   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28342 fi
28343
28344 if test -n "$ac_config_commands"; then
28345   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28346 fi
28347
28348 cat >>$CONFIG_STATUS <<\_ACEOF
28349
28350 ac_cs_usage="\
28351 \`$as_me' instantiates files from templates according to the
28352 current configuration.
28353
28354 Usage: $0 [OPTIONS] [FILE]...
28355
28356   -h, --help       print this help, then exit
28357   -V, --version    print version number, then exit
28358   -q, --quiet      do not print progress messages
28359   -d, --debug      don't remove temporary files
28360       --recheck    update $as_me by reconfiguring in the same conditions
28361   --file=FILE[:TEMPLATE]
28362                    instantiate the configuration file FILE
28363   --header=FILE[:TEMPLATE]
28364                    instantiate the configuration header FILE
28365
28366 Configuration files:
28367 $config_files
28368
28369 Configuration headers:
28370 $config_headers
28371
28372 Configuration links:
28373 $config_links
28374
28375 Configuration commands:
28376 $config_commands
28377
28378 Report bugs to <bug-autoconf@gnu.org>."
28379 _ACEOF
28380
28381 cat >>$CONFIG_STATUS <<_ACEOF
28382 ac_cs_version="\\
28383 libjava config.status version-unused
28384 configured by $0, generated by GNU Autoconf 2.59,
28385   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28386
28387 Copyright (C) 2003 Free Software Foundation, Inc.
28388 This config.status script is free software; the Free Software Foundation
28389 gives unlimited permission to copy, distribute and modify it."
28390 srcdir=$srcdir
28391 INSTALL="$INSTALL"
28392 _ACEOF
28393
28394 cat >>$CONFIG_STATUS <<\_ACEOF
28395 # If no file are specified by the user, then we need to provide default
28396 # value.  By we need to know if files were specified by the user.
28397 ac_need_defaults=:
28398 while test $# != 0
28399 do
28400   case $1 in
28401   --*=*)
28402     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28403     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28404     ac_shift=:
28405     ;;
28406   -*)
28407     ac_option=$1
28408     ac_optarg=$2
28409     ac_shift=shift
28410     ;;
28411   *) # This is not an option, so the user has probably given explicit
28412      # arguments.
28413      ac_option=$1
28414      ac_need_defaults=false;;
28415   esac
28416
28417   case $ac_option in
28418   # Handling of the options.
28419 _ACEOF
28420 cat >>$CONFIG_STATUS <<\_ACEOF
28421   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28422     ac_cs_recheck=: ;;
28423   --version | --vers* | -V )
28424     echo "$ac_cs_version"; exit 0 ;;
28425   --he | --h)
28426     # Conflict between --help and --header
28427     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28428 Try \`$0 --help' for more information." >&5
28429 echo "$as_me: error: ambiguous option: $1
28430 Try \`$0 --help' for more information." >&2;}
28431    { (exit 1); exit 1; }; };;
28432   --help | --hel | -h )
28433     echo "$ac_cs_usage"; exit 0 ;;
28434   --debug | --d* | -d )
28435     debug=: ;;
28436   --file | --fil | --fi | --f )
28437     $ac_shift
28438     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28439     ac_need_defaults=false;;
28440   --header | --heade | --head | --hea )
28441     $ac_shift
28442     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28443     ac_need_defaults=false;;
28444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28445   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28446     ac_cs_silent=: ;;
28447
28448   # This is an error.
28449   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28450 Try \`$0 --help' for more information." >&5
28451 echo "$as_me: error: unrecognized option: $1
28452 Try \`$0 --help' for more information." >&2;}
28453    { (exit 1); exit 1; }; } ;;
28454
28455   *) ac_config_targets="$ac_config_targets $1" ;;
28456
28457   esac
28458   shift
28459 done
28460
28461 ac_configure_extra_args=
28462
28463 if $ac_cs_silent; then
28464   exec 6>/dev/null
28465   ac_configure_extra_args="$ac_configure_extra_args --silent"
28466 fi
28467
28468 _ACEOF
28469 cat >>$CONFIG_STATUS <<_ACEOF
28470 if \$ac_cs_recheck; then
28471   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28472   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28473 fi
28474
28475 _ACEOF
28476
28477 cat >>$CONFIG_STATUS <<_ACEOF
28478 #
28479 # INIT-COMMANDS section.
28480 #
28481
28482
28483 srcdir="$srcdir"
28484 host="$host"
28485 target="$target"
28486 with_multisubdir="$with_multisubdir"
28487 with_multisrctop="$with_multisrctop"
28488 with_target_subdir="$with_target_subdir"
28489 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28490 multi_basedir="$multi_basedir"
28491 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28492 CC="$CC"
28493 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28494
28495
28496 # The HP-UX ksh and POSIX shell print the target directory to stdout
28497 # if CDPATH is set.
28498 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28499
28500 sed_quote_subst='$sed_quote_subst'
28501 double_quote_subst='$double_quote_subst'
28502 delay_variable_subst='$delay_variable_subst'
28503 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28504 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28505 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28506 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28507 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28508 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28509 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28510 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28511 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28512 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28513 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28514 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28515 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28516 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28517 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28518 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28519 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28520 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28521 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28522 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28523 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28524 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28525 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28526 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28527 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28528 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28529 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28530 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28531 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28532 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28533 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28534 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28535 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28536 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28537 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28538 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28539 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28540 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28541 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28542 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28543 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28544 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28545 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28546 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"`'
28547 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28548 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28549 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28550 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28551 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28552 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28553 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28554 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28555 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28556 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28557 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28558 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28559 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28560 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28561 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28562 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28563 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28564 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28565 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28566 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28567 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28568 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28569 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28570 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28571 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28572 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28573 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28574 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28575 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28576 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28577 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28578 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28579 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28580 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28581 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28582 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28583 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28584 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28585 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28586 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28587 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28588 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28589 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28590 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28591 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28592 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28593 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28594 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28595 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28596 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28597 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28598 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28599 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28600 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28601 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28602 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28603 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28604 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28605 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28606 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28607 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28608 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28609 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28610 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28611 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28612 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28613 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28614 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28615 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28616 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28617 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28618 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28619 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28620 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28621 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28622 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28623 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28624 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28625 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28626 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28627 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28628 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28629 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28630 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28631 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28632 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28633 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28634 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28635 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28636 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28637 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28638 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28639 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28640 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28641 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28642 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28643 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28644 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28645 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28646 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28647 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28648 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28649 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28650 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28651 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28652 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28653 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28654 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28655 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28656 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28657 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28658 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28659 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28660 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28661 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28662 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28663 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28664 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28665 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28666 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28667 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28668 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28669 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28670 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28671 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28672 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28673 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28674 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28675 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28676 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28677 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28678 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28679 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28680 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28681 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28682 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28683 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28684 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28685 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28686 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28687 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28688 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28689 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28690 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28691 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28692 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28693 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28694 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28695 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28696 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28697 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28698 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28699 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28700 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28701 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28702 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28703 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28704 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28705 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28706 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28707 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28708 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28709 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28710 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28711
28712 LTCC='$LTCC'
28713 LTCFLAGS='$LTCFLAGS'
28714 compiler='$compiler_DEFAULT'
28715
28716 # Quote evaled strings.
28717 for var in SED \
28718 GREP \
28719 EGREP \
28720 FGREP \
28721 LD \
28722 NM \
28723 LN_S \
28724 lt_SP2NL \
28725 lt_NL2SP \
28726 reload_flag \
28727 deplibs_check_method \
28728 file_magic_cmd \
28729 AR \
28730 AR_FLAGS \
28731 STRIP \
28732 RANLIB \
28733 CC \
28734 CFLAGS \
28735 compiler \
28736 lt_cv_sys_global_symbol_pipe \
28737 lt_cv_sys_global_symbol_to_cdecl \
28738 lt_cv_sys_global_symbol_to_c_name_address \
28739 SHELL \
28740 ECHO \
28741 lt_prog_compiler_no_builtin_flag \
28742 lt_prog_compiler_wl \
28743 lt_prog_compiler_pic \
28744 lt_prog_compiler_static \
28745 lt_cv_prog_compiler_c_o \
28746 need_locks \
28747 shrext_cmds \
28748 export_dynamic_flag_spec \
28749 whole_archive_flag_spec \
28750 compiler_needs_object \
28751 with_gnu_ld \
28752 allow_undefined_flag \
28753 no_undefined_flag \
28754 hardcode_libdir_flag_spec \
28755 hardcode_libdir_flag_spec_ld \
28756 hardcode_libdir_separator \
28757 fix_srcfile_path \
28758 exclude_expsyms \
28759 include_expsyms \
28760 file_list_spec \
28761 variables_saved_for_relink \
28762 libname_spec \
28763 library_names_spec \
28764 soname_spec \
28765 finish_eval \
28766 old_striplib \
28767 striplib \
28768 predep_objects \
28769 postdep_objects \
28770 predeps \
28771 postdeps \
28772 compiler_lib_search_path \
28773 LD_CXX \
28774 LD_GCJ \
28775 compiler_CXX \
28776 compiler_GCJ \
28777 lt_prog_compiler_no_builtin_flag_CXX \
28778 lt_prog_compiler_no_builtin_flag_GCJ \
28779 lt_prog_compiler_wl_CXX \
28780 lt_prog_compiler_wl_GCJ \
28781 lt_prog_compiler_pic_CXX \
28782 lt_prog_compiler_pic_GCJ \
28783 lt_prog_compiler_static_CXX \
28784 lt_prog_compiler_static_GCJ \
28785 lt_cv_prog_compiler_c_o_CXX \
28786 lt_cv_prog_compiler_c_o_GCJ \
28787 export_dynamic_flag_spec_CXX \
28788 export_dynamic_flag_spec_GCJ \
28789 whole_archive_flag_spec_CXX \
28790 whole_archive_flag_spec_GCJ \
28791 compiler_needs_object_CXX \
28792 compiler_needs_object_GCJ \
28793 with_gnu_ld_CXX \
28794 with_gnu_ld_GCJ \
28795 allow_undefined_flag_CXX \
28796 allow_undefined_flag_GCJ \
28797 no_undefined_flag_CXX \
28798 no_undefined_flag_GCJ \
28799 hardcode_libdir_flag_spec_CXX \
28800 hardcode_libdir_flag_spec_GCJ \
28801 hardcode_libdir_flag_spec_ld_CXX \
28802 hardcode_libdir_flag_spec_ld_GCJ \
28803 hardcode_libdir_separator_CXX \
28804 hardcode_libdir_separator_GCJ \
28805 fix_srcfile_path_CXX \
28806 fix_srcfile_path_GCJ \
28807 exclude_expsyms_CXX \
28808 exclude_expsyms_GCJ \
28809 include_expsyms_CXX \
28810 include_expsyms_GCJ \
28811 file_list_spec_CXX \
28812 file_list_spec_GCJ \
28813 predep_objects_CXX \
28814 predep_objects_GCJ \
28815 postdep_objects_CXX \
28816 postdep_objects_GCJ \
28817 predeps_CXX \
28818 predeps_GCJ \
28819 postdeps_CXX \
28820 postdeps_GCJ \
28821 compiler_lib_search_path_CXX \
28822 compiler_lib_search_path_GCJ; do
28823     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28824     *[\\\\\\\`\\"\\\$]*)
28825       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28826       ;;
28827     *)
28828       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28829       ;;
28830     esac
28831 done
28832
28833 # Double-quote double-evaled strings.
28834 for var in reload_cmds \
28835 old_postinstall_cmds \
28836 old_postuninstall_cmds \
28837 old_archive_cmds \
28838 extract_expsyms_cmds \
28839 old_archive_from_new_cmds \
28840 old_archive_from_expsyms_cmds \
28841 archive_cmds \
28842 archive_expsym_cmds \
28843 module_cmds \
28844 module_expsym_cmds \
28845 export_symbols_cmds \
28846 prelink_cmds \
28847 postinstall_cmds \
28848 postuninstall_cmds \
28849 finish_cmds \
28850 sys_lib_search_path_spec \
28851 sys_lib_dlsearch_path_spec \
28852 old_archive_cmds_CXX \
28853 old_archive_cmds_GCJ \
28854 old_archive_from_new_cmds_CXX \
28855 old_archive_from_new_cmds_GCJ \
28856 old_archive_from_expsyms_cmds_CXX \
28857 old_archive_from_expsyms_cmds_GCJ \
28858 archive_cmds_CXX \
28859 archive_cmds_GCJ \
28860 archive_expsym_cmds_CXX \
28861 archive_expsym_cmds_GCJ \
28862 module_cmds_CXX \
28863 module_cmds_GCJ \
28864 module_expsym_cmds_CXX \
28865 module_expsym_cmds_GCJ \
28866 export_symbols_cmds_CXX \
28867 export_symbols_cmds_GCJ \
28868 prelink_cmds_CXX \
28869 prelink_cmds_GCJ; do
28870     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28871     *[\\\\\\\`\\"\\\$]*)
28872       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28873       ;;
28874     *)
28875       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28876       ;;
28877     esac
28878 done
28879
28880 # Fix-up fallback echo if it was mangled by the above quoting rules.
28881 case \$lt_ECHO in
28882 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28883   ;;
28884 esac
28885
28886 ac_aux_dir='$ac_aux_dir'
28887 xsi_shell='$xsi_shell'
28888 lt_shell_append='$lt_shell_append'
28889
28890 # See if we are running on zsh, and set the options which allow our
28891 # commands through without removal of \ escapes INIT.
28892 if test -n "\${ZSH_VERSION+set}" ; then
28893    setopt NO_GLOB_SUBST
28894 fi
28895
28896
28897     PACKAGE='$PACKAGE'
28898     VERSION='$VERSION'
28899     TIMESTAMP='$TIMESTAMP'
28900     RM='$RM'
28901     ofile='$ofile'
28902
28903
28904
28905
28906
28907
28908
28909 srcdir=${srcdir}
28910 host=${host}
28911 target=${target}
28912 with_multisubdir=${with_multisubdir}
28913 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28914 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28915 multi_basedir=${multi_basedir}
28916 CC="${CC}"
28917 CXX="${CXX}"
28918 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
28919
28920
28921 _ACEOF
28922
28923
28924
28925 cat >>$CONFIG_STATUS <<\_ACEOF
28926 for ac_config_target in $ac_config_targets
28927 do
28928   case "$ac_config_target" in
28929   # Handling of arguments.
28930   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28931   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
28932   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
28933   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
28934   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
28935   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28936   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
28937   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
28938   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
28939   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
28940   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
28941   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
28942   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
28943   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
28944   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
28945   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
28946   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
28947   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
28948   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
28949   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
28950   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
28951   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
28952   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
28953   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
28954   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
28955   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
28956   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28957   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
28958   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28959   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28960   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
28961   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28962 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28963    { (exit 1); exit 1; }; };;
28964   esac
28965 done
28966
28967 # If the user did not use the arguments to specify the items to instantiate,
28968 # then the envvar interface is used.  Set only those that are not.
28969 # We use the long form for the default assignment because of an extremely
28970 # bizarre bug on SunOS 4.1.3.
28971 if $ac_need_defaults; then
28972   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28973   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28974   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28975   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28976 fi
28977
28978 # Have a temporary directory for convenience.  Make it in the build tree
28979 # simply because there is no reason to put it here, and in addition,
28980 # creating and moving files from /tmp can sometimes cause problems.
28981 # Create a temporary directory, and hook for its removal unless debugging.
28982 $debug ||
28983 {
28984   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28985   trap '{ (exit 1); exit 1; }' 1 2 13 15
28986 }
28987
28988 # Create a (secure) tmp directory for tmp files.
28989
28990 {
28991   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
28992   test -n "$tmp" && test -d "$tmp"
28993 }  ||
28994 {
28995   tmp=./confstat$$-$RANDOM
28996   (umask 077 && mkdir $tmp)
28997 } ||
28998 {
28999    echo "$me: cannot create a temporary directory in ." >&2
29000    { (exit 1); exit 1; }
29001 }
29002
29003 _ACEOF
29004
29005 cat >>$CONFIG_STATUS <<_ACEOF
29006
29007 #
29008 # CONFIG_FILES section.
29009 #
29010
29011 # No need to generate the scripts if there are no CONFIG_FILES.
29012 # This happens for instance when ./config.status config.h
29013 if test -n "\$CONFIG_FILES"; then
29014   # Protect against being on the right side of a sed subst in config.status.
29015   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29016    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29017 s,@SHELL@,$SHELL,;t t
29018 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29019 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29020 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29021 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29022 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29023 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29024 s,@exec_prefix@,$exec_prefix,;t t
29025 s,@prefix@,$prefix,;t t
29026 s,@program_transform_name@,$program_transform_name,;t t
29027 s,@bindir@,$bindir,;t t
29028 s,@sbindir@,$sbindir,;t t
29029 s,@libexecdir@,$libexecdir,;t t
29030 s,@datadir@,$datadir,;t t
29031 s,@sysconfdir@,$sysconfdir,;t t
29032 s,@sharedstatedir@,$sharedstatedir,;t t
29033 s,@localstatedir@,$localstatedir,;t t
29034 s,@libdir@,$libdir,;t t
29035 s,@includedir@,$includedir,;t t
29036 s,@oldincludedir@,$oldincludedir,;t t
29037 s,@infodir@,$infodir,;t t
29038 s,@mandir@,$mandir,;t t
29039 s,@build_alias@,$build_alias,;t t
29040 s,@host_alias@,$host_alias,;t t
29041 s,@target_alias@,$target_alias,;t t
29042 s,@DEFS@,$DEFS,;t t
29043 s,@ECHO_C@,$ECHO_C,;t t
29044 s,@ECHO_N@,$ECHO_N,;t t
29045 s,@ECHO_T@,$ECHO_T,;t t
29046 s,@LIBS@,$LIBS,;t t
29047 s,@build@,$build,;t t
29048 s,@build_cpu@,$build_cpu,;t t
29049 s,@build_vendor@,$build_vendor,;t t
29050 s,@build_os@,$build_os,;t t
29051 s,@build_libsubdir@,$build_libsubdir,;t t
29052 s,@build_subdir@,$build_subdir,;t t
29053 s,@host_subdir@,$host_subdir,;t t
29054 s,@target_subdir@,$target_subdir,;t t
29055 s,@multi_basedir@,$multi_basedir,;t t
29056 s,@host@,$host,;t t
29057 s,@host_cpu@,$host_cpu,;t t
29058 s,@host_vendor@,$host_vendor,;t t
29059 s,@host_os@,$host_os,;t t
29060 s,@target@,$target,;t t
29061 s,@target_cpu@,$target_cpu,;t t
29062 s,@target_vendor@,$target_vendor,;t t
29063 s,@target_os@,$target_os,;t t
29064 s,@target_noncanonical@,$target_noncanonical,;t t
29065 s,@LN_S@,$LN_S,;t t
29066 s,@mkinstalldirs@,$mkinstalldirs,;t t
29067 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29068 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29069 s,@CC@,$CC,;t t
29070 s,@ac_ct_CC@,$ac_ct_CC,;t t
29071 s,@EXEEXT@,$EXEEXT,;t t
29072 s,@OBJEXT@,$OBJEXT,;t t
29073 s,@CXX@,$CXX,;t t
29074 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29075 s,@CFLAGS@,$CFLAGS,;t t
29076 s,@CXXFLAGS@,$CXXFLAGS,;t t
29077 s,@LDFLAGS@,$LDFLAGS,;t t
29078 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29079 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29080 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29081 s,@CYGPATH_W@,$CYGPATH_W,;t t
29082 s,@PACKAGE@,$PACKAGE,;t t
29083 s,@VERSION@,$VERSION,;t t
29084 s,@ACLOCAL@,$ACLOCAL,;t t
29085 s,@AUTOCONF@,$AUTOCONF,;t t
29086 s,@AUTOMAKE@,$AUTOMAKE,;t t
29087 s,@AUTOHEADER@,$AUTOHEADER,;t t
29088 s,@MAKEINFO@,$MAKEINFO,;t t
29089 s,@install_sh@,$install_sh,;t t
29090 s,@STRIP@,$STRIP,;t t
29091 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29092 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29093 s,@mkdir_p@,$mkdir_p,;t t
29094 s,@AWK@,$AWK,;t t
29095 s,@SET_MAKE@,$SET_MAKE,;t t
29096 s,@am__leading_dot@,$am__leading_dot,;t t
29097 s,@AMTAR@,$AMTAR,;t t
29098 s,@am__tar@,$am__tar,;t t
29099 s,@am__untar@,$am__untar,;t t
29100 s,@DEPDIR@,$DEPDIR,;t t
29101 s,@am__include@,$am__include,;t t
29102 s,@am__quote@,$am__quote,;t t
29103 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29104 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29105 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29106 s,@CCDEPMODE@,$CCDEPMODE,;t t
29107 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29108 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29109 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29110 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29111 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29112 s,@AS@,$AS,;t t
29113 s,@ac_ct_AS@,$ac_ct_AS,;t t
29114 s,@LD@,$LD,;t t
29115 s,@ac_ct_LD@,$ac_ct_LD,;t t
29116 s,@AR@,$AR,;t t
29117 s,@ac_ct_AR@,$ac_ct_AR,;t t
29118 s,@RANLIB@,$RANLIB,;t t
29119 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29120 s,@JAR@,$JAR,;t t
29121 s,@ZIP@,$ZIP,;t t
29122 s,@UNZIP@,$UNZIP,;t t
29123 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29124 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29125 s,@MAINT@,$MAINT,;t t
29126 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29127 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29128 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29129 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29130 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29131 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29132 s,@TOOLKIT@,$TOOLKIT,;t t
29133 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29134 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29135 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29136 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29137 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29138 s,@GCJH@,$GCJH,;t t
29139 s,@host_exeext@,$host_exeext,;t t
29140 s,@INCLTDL@,$INCLTDL,;t t
29141 s,@LIBLTDL@,$LIBLTDL,;t t
29142 s,@DIRLTDL@,$DIRLTDL,;t t
29143 s,@LIBTOOL@,$LIBTOOL,;t t
29144 s,@SED@,$SED,;t t
29145 s,@EGREP@,$EGREP,;t t
29146 s,@FGREP@,$FGREP,;t t
29147 s,@GREP@,$GREP,;t t
29148 s,@DUMPBIN@,$DUMPBIN,;t t
29149 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29150 s,@NM@,$NM,;t t
29151 s,@lt_ECHO@,$lt_ECHO,;t t
29152 s,@CPP@,$CPP,;t t
29153 s,@CPPFLAGS@,$CPPFLAGS,;t t
29154 s,@CXXCPP@,$CXXCPP,;t t
29155 s,@GCJ@,$GCJ,;t t
29156 s,@GCJFLAGS@,$GCJFLAGS,;t t
29157 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29158 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29159 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29160 s,@subdirs@,$subdirs,;t t
29161 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29162 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29163 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29164 s,@ECJ_JAR@,$ECJ_JAR,;t t
29165 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29166 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29167 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29168 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29169 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29170 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29171 s,@JAVA_HOME@,$JAVA_HOME,;t t
29172 s,@INTERPRETER@,$INTERPRETER,;t t
29173 s,@LIBFFI@,$LIBFFI,;t t
29174 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29175 s,@PLATFORM@,$PLATFORM,;t t
29176 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29177 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29178 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29179 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29180 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29181 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29182 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29183 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29184 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29185 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29186 s,@X_CFLAGS@,$X_CFLAGS,;t t
29187 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29188 s,@X_LIBS@,$X_LIBS,;t t
29189 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29190 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29191 s,@GCLIBS@,$GCLIBS,;t t
29192 s,@GCINCS@,$GCINCS,;t t
29193 s,@GCDEPS@,$GCDEPS,;t t
29194 s,@GCSPEC@,$GCSPEC,;t t
29195 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29196 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29197 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29198 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29199 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29200 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29201 s,@THREADLIBS@,$THREADLIBS,;t t
29202 s,@THREADINCS@,$THREADINCS,;t t
29203 s,@THREADDEPS@,$THREADDEPS,;t t
29204 s,@THREADSPEC@,$THREADSPEC,;t t
29205 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29206 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29207 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29208 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29209 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29210 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29211 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29212 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29213 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29214 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29215 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29216 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29217 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29218 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29219 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29220 s,@LIBICONV@,$LIBICONV,;t t
29221 s,@LTLIBICONV@,$LTLIBICONV,;t t
29222 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29223 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29224 s,@GTK_LIBS@,$GTK_LIBS,;t t
29225 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29226 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29227 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29228 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29229 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29230 s,@ZLIBS@,$ZLIBS,;t t
29231 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29232 s,@ZINCS@,$ZINCS,;t t
29233 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29234 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29235 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29236 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29237 s,@IEEESPEC@,$IEEESPEC,;t t
29238 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29239 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29240 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29241 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29242 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29243 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29244 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29245 s,@toolexecdir@,$toolexecdir,;t t
29246 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29247 s,@toolexeclibdir@,$toolexeclibdir,;t t
29248 s,@dbexecdir@,$dbexecdir,;t t
29249 s,@GCJVERSION@,$GCJVERSION,;t t
29250 s,@gxx_include_dir@,$gxx_include_dir,;t t
29251 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29252 s,@PERL@,$PERL,;t t
29253 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29254 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29255 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29256 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29257 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29258 s,@here@,$here,;t t
29259 s,@LIBOBJS@,$LIBOBJS,;t t
29260 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29261 CEOF
29262
29263 _ACEOF
29264
29265   cat >>$CONFIG_STATUS <<\_ACEOF
29266   # Split the substitutions into bite-sized pieces for seds with
29267   # small command number limits, like on Digital OSF/1 and HP-UX.
29268   ac_max_sed_lines=48
29269   ac_sed_frag=1 # Number of current file.
29270   ac_beg=1 # First line for current file.
29271   ac_end=$ac_max_sed_lines # Line after last line for current file.
29272   ac_more_lines=:
29273   ac_sed_cmds=
29274   while $ac_more_lines; do
29275     if test $ac_beg -gt 1; then
29276       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29277     else
29278       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29279     fi
29280     if test ! -s $tmp/subs.frag; then
29281       ac_more_lines=false
29282     else
29283       # The purpose of the label and of the branching condition is to
29284       # speed up the sed processing (if there are no `@' at all, there
29285       # is no need to browse any of the substitutions).
29286       # These are the two extra sed commands mentioned above.
29287       (echo ':t
29288   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29289       if test -z "$ac_sed_cmds"; then
29290         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29291       else
29292         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29293       fi
29294       ac_sed_frag=`expr $ac_sed_frag + 1`
29295       ac_beg=$ac_end
29296       ac_end=`expr $ac_end + $ac_max_sed_lines`
29297     fi
29298   done
29299   if test -z "$ac_sed_cmds"; then
29300     ac_sed_cmds=cat
29301   fi
29302 fi # test -n "$CONFIG_FILES"
29303
29304 _ACEOF
29305 cat >>$CONFIG_STATUS <<\_ACEOF
29306 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29307   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29308   case $ac_file in
29309   - | *:- | *:-:* ) # input from stdin
29310         cat >$tmp/stdin
29311         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29312         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29313   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29314         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29315   * )   ac_file_in=$ac_file.in ;;
29316   esac
29317
29318   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29319   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29321          X"$ac_file" : 'X\(//\)[^/]' \| \
29322          X"$ac_file" : 'X\(//\)$' \| \
29323          X"$ac_file" : 'X\(/\)' \| \
29324          .     : '\(.\)' 2>/dev/null ||
29325 echo X"$ac_file" |
29326     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29327           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29328           /^X\(\/\/\)$/{ s//\1/; q; }
29329           /^X\(\/\).*/{ s//\1/; q; }
29330           s/.*/./; q'`
29331   { if $as_mkdir_p; then
29332     mkdir -p "$ac_dir"
29333   else
29334     as_dir="$ac_dir"
29335     as_dirs=
29336     while test ! -d "$as_dir"; do
29337       as_dirs="$as_dir $as_dirs"
29338       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29340          X"$as_dir" : 'X\(//\)[^/]' \| \
29341          X"$as_dir" : 'X\(//\)$' \| \
29342          X"$as_dir" : 'X\(/\)' \| \
29343          .     : '\(.\)' 2>/dev/null ||
29344 echo X"$as_dir" |
29345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29346           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29347           /^X\(\/\/\)$/{ s//\1/; q; }
29348           /^X\(\/\).*/{ s//\1/; q; }
29349           s/.*/./; q'`
29350     done
29351     test ! -n "$as_dirs" || mkdir $as_dirs
29352   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29354    { (exit 1); exit 1; }; }; }
29355
29356   ac_builddir=.
29357
29358 if test "$ac_dir" != .; then
29359   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29360   # A "../" for each directory in $ac_dir_suffix.
29361   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29362 else
29363   ac_dir_suffix= ac_top_builddir=
29364 fi
29365
29366 case $srcdir in
29367   .)  # No --srcdir option.  We are building in place.
29368     ac_srcdir=.
29369     if test -z "$ac_top_builddir"; then
29370        ac_top_srcdir=.
29371     else
29372        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29373     fi ;;
29374   [\\/]* | ?:[\\/]* )  # Absolute path.
29375     ac_srcdir=$srcdir$ac_dir_suffix;
29376     ac_top_srcdir=$srcdir ;;
29377   *) # Relative path.
29378     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29379     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29380 esac
29381
29382 # Do not use `cd foo && pwd` to compute absolute paths, because
29383 # the directories may not exist.
29384 case `pwd` in
29385 .) ac_abs_builddir="$ac_dir";;
29386 *)
29387   case "$ac_dir" in
29388   .) ac_abs_builddir=`pwd`;;
29389   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29390   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29391   esac;;
29392 esac
29393 case $ac_abs_builddir in
29394 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29395 *)
29396   case ${ac_top_builddir}. in
29397   .) ac_abs_top_builddir=$ac_abs_builddir;;
29398   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29399   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29400   esac;;
29401 esac
29402 case $ac_abs_builddir in
29403 .) ac_abs_srcdir=$ac_srcdir;;
29404 *)
29405   case $ac_srcdir in
29406   .) ac_abs_srcdir=$ac_abs_builddir;;
29407   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29408   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29409   esac;;
29410 esac
29411 case $ac_abs_builddir in
29412 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29413 *)
29414   case $ac_top_srcdir in
29415   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29416   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29417   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29418   esac;;
29419 esac
29420
29421
29422   case $INSTALL in
29423   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29424   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29425   esac
29426
29427   if test x"$ac_file" != x-; then
29428     { echo "$as_me:$LINENO: creating $ac_file" >&5
29429 echo "$as_me: creating $ac_file" >&6;}
29430     rm -f "$ac_file"
29431   fi
29432   # Let's still pretend it is `configure' which instantiates (i.e., don't
29433   # use $as_me), people would be surprised to read:
29434   #    /* config.h.  Generated by config.status.  */
29435   if test x"$ac_file" = x-; then
29436     configure_input=
29437   else
29438     configure_input="$ac_file.  "
29439   fi
29440   configure_input=$configure_input"Generated from `echo $ac_file_in |
29441                                      sed 's,.*/,,'` by configure."
29442
29443   # First look for the input files in the build tree, otherwise in the
29444   # src tree.
29445   ac_file_inputs=`IFS=:
29446     for f in $ac_file_in; do
29447       case $f in
29448       -) echo $tmp/stdin ;;
29449       [\\/$]*)
29450          # Absolute (can't be DOS-style, as IFS=:)
29451          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29452 echo "$as_me: error: cannot find input file: $f" >&2;}
29453    { (exit 1); exit 1; }; }
29454          echo "$f";;
29455       *) # Relative
29456          if test -f "$f"; then
29457            # Build tree
29458            echo "$f"
29459          elif test -f "$srcdir/$f"; then
29460            # Source tree
29461            echo "$srcdir/$f"
29462          else
29463            # /dev/null tree
29464            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29465 echo "$as_me: error: cannot find input file: $f" >&2;}
29466    { (exit 1); exit 1; }; }
29467          fi;;
29468       esac
29469     done` || { (exit 1); exit 1; }
29470 _ACEOF
29471 cat >>$CONFIG_STATUS <<_ACEOF
29472   sed "$ac_vpsub
29473 $extrasub
29474 _ACEOF
29475 cat >>$CONFIG_STATUS <<\_ACEOF
29476 :t
29477 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29478 s,@configure_input@,$configure_input,;t t
29479 s,@srcdir@,$ac_srcdir,;t t
29480 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29481 s,@top_srcdir@,$ac_top_srcdir,;t t
29482 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29483 s,@builddir@,$ac_builddir,;t t
29484 s,@abs_builddir@,$ac_abs_builddir,;t t
29485 s,@top_builddir@,$ac_top_builddir,;t t
29486 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29487 s,@INSTALL@,$ac_INSTALL,;t t
29488 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29489   rm -f $tmp/stdin
29490   if test x"$ac_file" != x-; then
29491     mv $tmp/out $ac_file
29492   else
29493     cat $tmp/out
29494     rm -f $tmp/out
29495   fi
29496
29497   # Run the commands associated with the file.
29498   case $ac_file in
29499     scripts/jar ) chmod +x scripts/jar ;;
29500   esac
29501 done
29502 _ACEOF
29503 cat >>$CONFIG_STATUS <<\_ACEOF
29504
29505 #
29506 # CONFIG_HEADER section.
29507 #
29508
29509 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29510 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29511 #
29512 # ac_d sets the value in "#define NAME VALUE" lines.
29513 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29514 ac_dB='[         ].*$,\1#\2'
29515 ac_dC=' '
29516 ac_dD=',;t'
29517 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29518 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29519 ac_uB='$,\1#\2define\3'
29520 ac_uC=' '
29521 ac_uD=',;t'
29522
29523 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29524   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29525   case $ac_file in
29526   - | *:- | *:-:* ) # input from stdin
29527         cat >$tmp/stdin
29528         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29530   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29532   * )   ac_file_in=$ac_file.in ;;
29533   esac
29534
29535   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29536 echo "$as_me: creating $ac_file" >&6;}
29537
29538   # First look for the input files in the build tree, otherwise in the
29539   # src tree.
29540   ac_file_inputs=`IFS=:
29541     for f in $ac_file_in; do
29542       case $f in
29543       -) echo $tmp/stdin ;;
29544       [\\/$]*)
29545          # Absolute (can't be DOS-style, as IFS=:)
29546          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29547 echo "$as_me: error: cannot find input file: $f" >&2;}
29548    { (exit 1); exit 1; }; }
29549          # Do quote $f, to prevent DOS paths from being IFS'd.
29550          echo "$f";;
29551       *) # Relative
29552          if test -f "$f"; then
29553            # Build tree
29554            echo "$f"
29555          elif test -f "$srcdir/$f"; then
29556            # Source tree
29557            echo "$srcdir/$f"
29558          else
29559            # /dev/null tree
29560            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29561 echo "$as_me: error: cannot find input file: $f" >&2;}
29562    { (exit 1); exit 1; }; }
29563          fi;;
29564       esac
29565     done` || { (exit 1); exit 1; }
29566   # Remove the trailing spaces.
29567   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
29568
29569 _ACEOF
29570
29571 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29572 # `conftest.undefs', that substitutes the proper values into
29573 # config.h.in to produce config.h.  The first handles `#define'
29574 # templates, and the second `#undef' templates.
29575 # And first: Protect against being on the right side of a sed subst in
29576 # config.status.  Protect against being in an unquoted here document
29577 # in config.status.
29578 rm -f conftest.defines conftest.undefs
29579 # Using a here document instead of a string reduces the quoting nightmare.
29580 # Putting comments in sed scripts is not portable.
29581 #
29582 # `end' is used to avoid that the second main sed command (meant for
29583 # 0-ary CPP macros) applies to n-ary macro definitions.
29584 # See the Autoconf documentation for `clear'.
29585 cat >confdef2sed.sed <<\_ACEOF
29586 s/[\\&,]/\\&/g
29587 s,[\\$`],\\&,g
29588 t clear
29589 : clear
29590 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29591 t end
29592 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29593 : end
29594 _ACEOF
29595 # If some macros were called several times there might be several times
29596 # the same #defines, which is useless.  Nevertheless, we may not want to
29597 # sort them, since we want the *last* AC-DEFINE to be honored.
29598 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29599 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29600 rm -f confdef2sed.sed
29601
29602 # This sed command replaces #undef with comments.  This is necessary, for
29603 # example, in the case of _POSIX_SOURCE, which is predefined and required
29604 # on some systems where configure will not decide to define it.
29605 cat >>conftest.undefs <<\_ACEOF
29606 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29607 _ACEOF
29608
29609 # Break up conftest.defines because some shells have a limit on the size
29610 # of here documents, and old seds have small limits too (100 cmds).
29611 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29612 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29613 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29614 echo '  :' >>$CONFIG_STATUS
29615 rm -f conftest.tail
29616 while grep . conftest.defines >/dev/null
29617 do
29618   # Write a limited-size here document to $tmp/defines.sed.
29619   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29620   # Speed up: don't consider the non `#define' lines.
29621   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
29622   # Work around the forget-to-reset-the-flag bug.
29623   echo 't clr' >>$CONFIG_STATUS
29624   echo ': clr' >>$CONFIG_STATUS
29625   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29626   echo 'CEOF
29627   sed -f $tmp/defines.sed $tmp/in >$tmp/out
29628   rm -f $tmp/in
29629   mv $tmp/out $tmp/in
29630 ' >>$CONFIG_STATUS
29631   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29632   rm -f conftest.defines
29633   mv conftest.tail conftest.defines
29634 done
29635 rm -f conftest.defines
29636 echo '  fi # grep' >>$CONFIG_STATUS
29637 echo >>$CONFIG_STATUS
29638
29639 # Break up conftest.undefs because some shells have a limit on the size
29640 # of here documents, and old seds have small limits too (100 cmds).
29641 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
29642 rm -f conftest.tail
29643 while grep . conftest.undefs >/dev/null
29644 do
29645   # Write a limited-size here document to $tmp/undefs.sed.
29646   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29647   # Speed up: don't consider the non `#undef'
29648   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
29649   # Work around the forget-to-reset-the-flag bug.
29650   echo 't clr' >>$CONFIG_STATUS
29651   echo ': clr' >>$CONFIG_STATUS
29652   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29653   echo 'CEOF
29654   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29655   rm -f $tmp/in
29656   mv $tmp/out $tmp/in
29657 ' >>$CONFIG_STATUS
29658   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29659   rm -f conftest.undefs
29660   mv conftest.tail conftest.undefs
29661 done
29662 rm -f conftest.undefs
29663
29664 cat >>$CONFIG_STATUS <<\_ACEOF
29665   # Let's still pretend it is `configure' which instantiates (i.e., don't
29666   # use $as_me), people would be surprised to read:
29667   #    /* config.h.  Generated by config.status.  */
29668   if test x"$ac_file" = x-; then
29669     echo "/* Generated by configure.  */" >$tmp/config.h
29670   else
29671     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
29672   fi
29673   cat $tmp/in >>$tmp/config.h
29674   rm -f $tmp/in
29675   if test x"$ac_file" != x-; then
29676     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29677       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29678 echo "$as_me: $ac_file is unchanged" >&6;}
29679     else
29680       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29682          X"$ac_file" : 'X\(//\)[^/]' \| \
29683          X"$ac_file" : 'X\(//\)$' \| \
29684          X"$ac_file" : 'X\(/\)' \| \
29685          .     : '\(.\)' 2>/dev/null ||
29686 echo X"$ac_file" |
29687     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29688           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29689           /^X\(\/\/\)$/{ s//\1/; q; }
29690           /^X\(\/\).*/{ s//\1/; q; }
29691           s/.*/./; q'`
29692       { if $as_mkdir_p; then
29693     mkdir -p "$ac_dir"
29694   else
29695     as_dir="$ac_dir"
29696     as_dirs=
29697     while test ! -d "$as_dir"; do
29698       as_dirs="$as_dir $as_dirs"
29699       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29700 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29701          X"$as_dir" : 'X\(//\)[^/]' \| \
29702          X"$as_dir" : 'X\(//\)$' \| \
29703          X"$as_dir" : 'X\(/\)' \| \
29704          .     : '\(.\)' 2>/dev/null ||
29705 echo X"$as_dir" |
29706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29707           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29708           /^X\(\/\/\)$/{ s//\1/; q; }
29709           /^X\(\/\).*/{ s//\1/; q; }
29710           s/.*/./; q'`
29711     done
29712     test ! -n "$as_dirs" || mkdir $as_dirs
29713   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29714 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29715    { (exit 1); exit 1; }; }; }
29716
29717       rm -f $ac_file
29718       mv $tmp/config.h $ac_file
29719     fi
29720   else
29721     cat $tmp/config.h
29722     rm -f $tmp/config.h
29723   fi
29724 # Compute $ac_file's index in $config_headers.
29725 _am_stamp_count=1
29726 for _am_header in $config_headers :; do
29727   case $_am_header in
29728     $ac_file | $ac_file:* )
29729       break ;;
29730     * )
29731       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29732   esac
29733 done
29734 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29735 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29736          X$ac_file : 'X\(//\)[^/]' \| \
29737          X$ac_file : 'X\(//\)$' \| \
29738          X$ac_file : 'X\(/\)' \| \
29739          .     : '\(.\)' 2>/dev/null ||
29740 echo X$ac_file |
29741     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29742           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29743           /^X\(\/\/\)$/{ s//\1/; q; }
29744           /^X\(\/\).*/{ s//\1/; q; }
29745           s/.*/./; q'`/stamp-h$_am_stamp_count
29746 done
29747 _ACEOF
29748 cat >>$CONFIG_STATUS <<\_ACEOF
29749
29750 #
29751 # CONFIG_LINKS section.
29752 #
29753
29754 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29755   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29756   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29757
29758   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29759 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29760
29761   if test ! -r $srcdir/$ac_source; then
29762     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29763 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29764    { (exit 1); exit 1; }; }
29765   fi
29766   rm -f $ac_dest
29767
29768   # Make relative symlinks.
29769   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29770 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29771          X"$ac_dest" : 'X\(//\)[^/]' \| \
29772          X"$ac_dest" : 'X\(//\)$' \| \
29773          X"$ac_dest" : 'X\(/\)' \| \
29774          .     : '\(.\)' 2>/dev/null ||
29775 echo X"$ac_dest" |
29776     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29777           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29778           /^X\(\/\/\)$/{ s//\1/; q; }
29779           /^X\(\/\).*/{ s//\1/; q; }
29780           s/.*/./; q'`
29781   { if $as_mkdir_p; then
29782     mkdir -p "$ac_dest_dir"
29783   else
29784     as_dir="$ac_dest_dir"
29785     as_dirs=
29786     while test ! -d "$as_dir"; do
29787       as_dirs="$as_dir $as_dirs"
29788       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29789 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29790          X"$as_dir" : 'X\(//\)[^/]' \| \
29791          X"$as_dir" : 'X\(//\)$' \| \
29792          X"$as_dir" : 'X\(/\)' \| \
29793          .     : '\(.\)' 2>/dev/null ||
29794 echo X"$as_dir" |
29795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29796           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29797           /^X\(\/\/\)$/{ s//\1/; q; }
29798           /^X\(\/\).*/{ s//\1/; q; }
29799           s/.*/./; q'`
29800     done
29801     test ! -n "$as_dirs" || mkdir $as_dirs
29802   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29803 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29804    { (exit 1); exit 1; }; }; }
29805
29806   ac_builddir=.
29807
29808 if test "$ac_dest_dir" != .; then
29809   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29810   # A "../" for each directory in $ac_dir_suffix.
29811   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29812 else
29813   ac_dir_suffix= ac_top_builddir=
29814 fi
29815
29816 case $srcdir in
29817   .)  # No --srcdir option.  We are building in place.
29818     ac_srcdir=.
29819     if test -z "$ac_top_builddir"; then
29820        ac_top_srcdir=.
29821     else
29822        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29823     fi ;;
29824   [\\/]* | ?:[\\/]* )  # Absolute path.
29825     ac_srcdir=$srcdir$ac_dir_suffix;
29826     ac_top_srcdir=$srcdir ;;
29827   *) # Relative path.
29828     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29829     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29830 esac
29831
29832 # Do not use `cd foo && pwd` to compute absolute paths, because
29833 # the directories may not exist.
29834 case `pwd` in
29835 .) ac_abs_builddir="$ac_dest_dir";;
29836 *)
29837   case "$ac_dest_dir" in
29838   .) ac_abs_builddir=`pwd`;;
29839   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29840   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29841   esac;;
29842 esac
29843 case $ac_abs_builddir in
29844 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29845 *)
29846   case ${ac_top_builddir}. in
29847   .) ac_abs_top_builddir=$ac_abs_builddir;;
29848   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29849   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29850   esac;;
29851 esac
29852 case $ac_abs_builddir in
29853 .) ac_abs_srcdir=$ac_srcdir;;
29854 *)
29855   case $ac_srcdir in
29856   .) ac_abs_srcdir=$ac_abs_builddir;;
29857   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29858   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29859   esac;;
29860 esac
29861 case $ac_abs_builddir in
29862 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29863 *)
29864   case $ac_top_srcdir in
29865   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29866   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29867   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29868   esac;;
29869 esac
29870
29871
29872   case $srcdir in
29873   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29874       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29875   esac
29876
29877   # Try a symlink, then a hard link, then a copy.
29878   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29879     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29880     cp -p $srcdir/$ac_source $ac_dest ||
29881     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29882 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29883    { (exit 1); exit 1; }; }
29884 done
29885 _ACEOF
29886 cat >>$CONFIG_STATUS <<\_ACEOF
29887
29888 #
29889 # CONFIG_COMMANDS section.
29890 #
29891 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29892   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29893   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29894   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29895 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29896          X"$ac_dest" : 'X\(//\)[^/]' \| \
29897          X"$ac_dest" : 'X\(//\)$' \| \
29898          X"$ac_dest" : 'X\(/\)' \| \
29899          .     : '\(.\)' 2>/dev/null ||
29900 echo X"$ac_dest" |
29901     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29902           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29903           /^X\(\/\/\)$/{ s//\1/; q; }
29904           /^X\(\/\).*/{ s//\1/; q; }
29905           s/.*/./; q'`
29906   { if $as_mkdir_p; then
29907     mkdir -p "$ac_dir"
29908   else
29909     as_dir="$ac_dir"
29910     as_dirs=
29911     while test ! -d "$as_dir"; do
29912       as_dirs="$as_dir $as_dirs"
29913       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29914 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29915          X"$as_dir" : 'X\(//\)[^/]' \| \
29916          X"$as_dir" : 'X\(//\)$' \| \
29917          X"$as_dir" : 'X\(/\)' \| \
29918          .     : '\(.\)' 2>/dev/null ||
29919 echo X"$as_dir" |
29920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29921           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29922           /^X\(\/\/\)$/{ s//\1/; q; }
29923           /^X\(\/\).*/{ s//\1/; q; }
29924           s/.*/./; q'`
29925     done
29926     test ! -n "$as_dirs" || mkdir $as_dirs
29927   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29928 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29929    { (exit 1); exit 1; }; }; }
29930
29931   ac_builddir=.
29932
29933 if test "$ac_dir" != .; then
29934   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29935   # A "../" for each directory in $ac_dir_suffix.
29936   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29937 else
29938   ac_dir_suffix= ac_top_builddir=
29939 fi
29940
29941 case $srcdir in
29942   .)  # No --srcdir option.  We are building in place.
29943     ac_srcdir=.
29944     if test -z "$ac_top_builddir"; then
29945        ac_top_srcdir=.
29946     else
29947        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29948     fi ;;
29949   [\\/]* | ?:[\\/]* )  # Absolute path.
29950     ac_srcdir=$srcdir$ac_dir_suffix;
29951     ac_top_srcdir=$srcdir ;;
29952   *) # Relative path.
29953     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29954     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29955 esac
29956
29957 # Do not use `cd foo && pwd` to compute absolute paths, because
29958 # the directories may not exist.
29959 case `pwd` in
29960 .) ac_abs_builddir="$ac_dir";;
29961 *)
29962   case "$ac_dir" in
29963   .) ac_abs_builddir=`pwd`;;
29964   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29965   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29966   esac;;
29967 esac
29968 case $ac_abs_builddir in
29969 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29970 *)
29971   case ${ac_top_builddir}. in
29972   .) ac_abs_top_builddir=$ac_abs_builddir;;
29973   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29974   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29975   esac;;
29976 esac
29977 case $ac_abs_builddir in
29978 .) ac_abs_srcdir=$ac_srcdir;;
29979 *)
29980   case $ac_srcdir in
29981   .) ac_abs_srcdir=$ac_abs_builddir;;
29982   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29983   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29984   esac;;
29985 esac
29986 case $ac_abs_builddir in
29987 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29988 *)
29989   case $ac_top_srcdir in
29990   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29991   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29992   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29993   esac;;
29994 esac
29995
29996
29997   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
29998 echo "$as_me: executing $ac_dest commands" >&6;}
29999   case $ac_dest in
30000     default-1 )
30001 # Only add multilib support code if we just rebuilt the top-level
30002 # Makefile.
30003 case " $CONFIG_FILES " in
30004  *" Makefile "*)
30005    ac_file=Makefile . ${multi_basedir}/config-ml.in
30006    ;;
30007 esac ;;
30008     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30009   # Strip MF so we end up with the name of the file.
30010   mf=`echo "$mf" | sed -e 's/:.*$//'`
30011   # Check whether this is an Automake generated Makefile or not.
30012   # We used to match only the files named `Makefile.in', but
30013   # some people rename them; so instead we look at the file content.
30014   # Grep'ing the first line is not enough: some people post-process
30015   # each Makefile.in and add a new line on top of each file to say so.
30016   # So let's grep whole file.
30017   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30018     dirpart=`(dirname "$mf") 2>/dev/null ||
30019 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30020          X"$mf" : 'X\(//\)[^/]' \| \
30021          X"$mf" : 'X\(//\)$' \| \
30022          X"$mf" : 'X\(/\)' \| \
30023          .     : '\(.\)' 2>/dev/null ||
30024 echo X"$mf" |
30025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30027           /^X\(\/\/\)$/{ s//\1/; q; }
30028           /^X\(\/\).*/{ s//\1/; q; }
30029           s/.*/./; q'`
30030   else
30031     continue
30032   fi
30033   # Extract the definition of DEPDIR, am__include, and am__quote
30034   # from the Makefile without running `make'.
30035   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30036   test -z "$DEPDIR" && continue
30037   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30038   test -z "am__include" && continue
30039   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30040   # When using ansi2knr, U may be empty or an underscore; expand it
30041   U=`sed -n 's/^U = //p' < "$mf"`
30042   # Find all dependency output files, they are included files with
30043   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30044   # simplest approach to changing $(DEPDIR) to its actual value in the
30045   # expansion.
30046   for file in `sed -n "
30047     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30048        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30049     # Make sure the directory exists.
30050     test -f "$dirpart/$file" && continue
30051     fdir=`(dirname "$file") 2>/dev/null ||
30052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30053          X"$file" : 'X\(//\)[^/]' \| \
30054          X"$file" : 'X\(//\)$' \| \
30055          X"$file" : 'X\(/\)' \| \
30056          .     : '\(.\)' 2>/dev/null ||
30057 echo X"$file" |
30058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30060           /^X\(\/\/\)$/{ s//\1/; q; }
30061           /^X\(\/\).*/{ s//\1/; q; }
30062           s/.*/./; q'`
30063     { if $as_mkdir_p; then
30064     mkdir -p $dirpart/$fdir
30065   else
30066     as_dir=$dirpart/$fdir
30067     as_dirs=
30068     while test ! -d "$as_dir"; do
30069       as_dirs="$as_dir $as_dirs"
30070       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30072          X"$as_dir" : 'X\(//\)[^/]' \| \
30073          X"$as_dir" : 'X\(//\)$' \| \
30074          X"$as_dir" : 'X\(/\)' \| \
30075          .     : '\(.\)' 2>/dev/null ||
30076 echo X"$as_dir" |
30077     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30078           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30079           /^X\(\/\/\)$/{ s//\1/; q; }
30080           /^X\(\/\).*/{ s//\1/; q; }
30081           s/.*/./; q'`
30082     done
30083     test ! -n "$as_dirs" || mkdir $as_dirs
30084   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30085 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30086    { (exit 1); exit 1; }; }; }
30087
30088     # echo "creating $dirpart/$file"
30089     echo '# dummy' > "$dirpart/$file"
30090   done
30091 done
30092  ;;
30093     libtool )
30094
30095     # See if we are running on zsh, and set the options which allow our
30096     # commands through without removal of \ escapes.
30097     if test -n "${ZSH_VERSION+set}" ; then
30098       setopt NO_GLOB_SUBST
30099     fi
30100
30101     cfgfile="${ofile}T"
30102     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30103     $RM "$cfgfile"
30104
30105     cat <<_LT_EOF >> "$cfgfile"
30106 #! $SHELL
30107
30108 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30109 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30111 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30112 #
30113 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30114 # 2006, 2007 Free Software Foundation, Inc.
30115 #
30116 # This file is part of GNU Libtool:
30117 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30118 #
30119 # This program is free software; you can redistribute it and/or modify
30120 # it under the terms of the GNU General Public License as published by
30121 # the Free Software Foundation; either version 2 of the License, or
30122 # (at your option) any later version.
30123 #
30124 # This program is distributed in the hope that it will be useful, but
30125 # WITHOUT ANY WARRANTY; without even the implied warranty of
30126 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30127 # General Public License for more details.
30128 #
30129 # You should have received a copy of the GNU General Public License
30130 # along with this program; if not, a copy can be downloaded from
30131 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30132 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30133 # MA 02110-1301, USA.
30134 #
30135 # As a special exception to the GNU General Public License, if you
30136 # distribute this file as part of a program that contains a
30137 # configuration script generated by Autoconf, you may include it under
30138 # the same distribution terms that you use for the rest of that program.
30139
30140
30141 # The names of the tagged configurations supported by this script.
30142 available_tags="CXX GCJ "
30143
30144 # ### BEGIN LIBTOOL CONFIG
30145
30146 # Which release of libtool.m4 was used?
30147 macro_version=$macro_version
30148 macro_revision=$macro_revision
30149
30150 # Whether or not to build shared libraries.
30151 build_libtool_libs=$enable_shared
30152
30153 # Whether or not to build static libraries.
30154 build_old_libs=$enable_static
30155
30156 # What type of objects to build.
30157 pic_mode=$pic_mode
30158
30159 # Whether or not to optimize for fast installation.
30160 fast_install=$enable_fast_install
30161
30162 # The host system.
30163 host_alias=$host_alias
30164 host=$host
30165 host_os=$host_os
30166
30167 # The build system.
30168 build_alias=$build_alias
30169 build=$build
30170 build_os=$build_os
30171
30172 # A sed program that does not truncate output.
30173 SED=$lt_SED
30174
30175 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30176 Xsed="\$SED -e 1s/^X//"
30177
30178 # A grep program that handles long lines.
30179 GREP=$lt_GREP
30180
30181 # An ERE matcher.
30182 EGREP=$lt_EGREP
30183
30184 # A literal string matcher.
30185 FGREP=$lt_FGREP
30186
30187 # A BSD- or MS-compatible name lister.
30188 NM=$lt_NM
30189
30190 # Whether we need soft or hard links.
30191 LN_S=$lt_LN_S
30192
30193 # What is the maximum length of a command?
30194 max_cmd_len=$max_cmd_len
30195
30196 # Object file suffix (normally "o").
30197 objext=$ac_objext
30198
30199 # Executable file suffix (normally "").
30200 exeext=$exeext
30201
30202 # whether the shell understands "unset".
30203 lt_unset=$lt_unset
30204
30205 # turn spaces into newlines.
30206 SP2NL=$lt_lt_SP2NL
30207
30208 # turn newlines into spaces.
30209 NL2SP=$lt_lt_NL2SP
30210
30211 # How to create reloadable object files.
30212 reload_flag=$lt_reload_flag
30213 reload_cmds=$lt_reload_cmds
30214
30215 # Method to check whether dependent libraries are shared objects.
30216 deplibs_check_method=$lt_deplibs_check_method
30217
30218 # Command to use when deplibs_check_method == "file_magic".
30219 file_magic_cmd=$lt_file_magic_cmd
30220
30221 # The archiver.
30222 AR=$lt_AR
30223 AR_FLAGS=$lt_AR_FLAGS
30224
30225 # A symbol stripping program.
30226 STRIP=$lt_STRIP
30227
30228 # Commands used to install an old-style archive.
30229 RANLIB=$lt_RANLIB
30230 old_postinstall_cmds=$lt_old_postinstall_cmds
30231 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30232
30233 # A C compiler.
30234 LTCC=$lt_CC
30235
30236 # LTCC compiler flags.
30237 LTCFLAGS=$lt_CFLAGS
30238
30239 # Take the output of nm and produce a listing of raw symbols and C names.
30240 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30241
30242 # Transform the output of nm in a proper C declaration.
30243 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30244
30245 # Transform the output of nm in a C name address pair.
30246 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30247
30248 # The name of the directory that contains temporary libtool files.
30249 objdir=$objdir
30250
30251 # Shell to use when invoking shell scripts.
30252 SHELL=$lt_SHELL
30253
30254 # An echo program that does not interpret backslashes.
30255 ECHO=$lt_ECHO
30256
30257 # Used to examine libraries when file_magic_cmd begins with "file".
30258 MAGIC_CMD=$MAGIC_CMD
30259
30260 # Must we lock files when doing compilation?
30261 need_locks=$lt_need_locks
30262
30263 # Old archive suffix (normally "a").
30264 libext=$libext
30265
30266 # Shared library suffix (normally ".so").
30267 shrext_cmds=$lt_shrext_cmds
30268
30269 # The commands to extract the exported symbol list from a shared archive.
30270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30271
30272 # Variables whose values should be saved in libtool wrapper scripts and
30273 # restored at link time.
30274 variables_saved_for_relink=$lt_variables_saved_for_relink
30275
30276 # Do we need the "lib" prefix for modules?
30277 need_lib_prefix=$need_lib_prefix
30278
30279 # Do we need a version for libraries?
30280 need_version=$need_version
30281
30282 # Library versioning type.
30283 version_type=$version_type
30284
30285 # Shared library runtime path variable.
30286 runpath_var=$runpath_var
30287
30288 # Shared library path variable.
30289 shlibpath_var=$shlibpath_var
30290
30291 # Is shlibpath searched before the hard-coded library search path?
30292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30293
30294 # Format of library name prefix.
30295 libname_spec=$lt_libname_spec
30296
30297 # List of archive names.  First name is the real one, the rest are links.
30298 # The last name is the one that the linker finds with -lNAME
30299 library_names_spec=$lt_library_names_spec
30300
30301 # The coded name of the library, if different from the real name.
30302 soname_spec=$lt_soname_spec
30303
30304 # Command to use after installation of a shared archive.
30305 postinstall_cmds=$lt_postinstall_cmds
30306
30307 # Command to use after uninstallation of a shared archive.
30308 postuninstall_cmds=$lt_postuninstall_cmds
30309
30310 # Commands used to finish a libtool library installation in a directory.
30311 finish_cmds=$lt_finish_cmds
30312
30313 # As "finish_cmds", except a single script fragment to be evaled but
30314 # not shown.
30315 finish_eval=$lt_finish_eval
30316
30317 # Whether we should hardcode library paths into libraries.
30318 hardcode_into_libs=$hardcode_into_libs
30319
30320 # Compile-time system search path for libraries.
30321 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30322
30323 # Run-time system search path for libraries.
30324 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30325
30326 # Whether dlopen is supported.
30327 dlopen_support=$enable_dlopen
30328
30329 # Whether dlopen of programs is supported.
30330 dlopen_self=$enable_dlopen_self
30331
30332 # Whether dlopen of statically linked programs is supported.
30333 dlopen_self_static=$enable_dlopen_self_static
30334
30335 # Commands to strip libraries.
30336 old_striplib=$lt_old_striplib
30337 striplib=$lt_striplib
30338
30339
30340 # The linker used to build libraries.
30341 LD=$lt_LD
30342
30343 # Commands used to build an old-style archive.
30344 old_archive_cmds=$lt_old_archive_cmds
30345
30346 # A language specific compiler.
30347 CC=$lt_compiler
30348
30349 # Is the compiler the GNU compiler?
30350 with_gcc=$GCC
30351
30352 # Compiler flag to turn off builtin functions.
30353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30354
30355 # How to pass a linker flag through the compiler.
30356 wl=$lt_lt_prog_compiler_wl
30357
30358 # Additional compiler flags for building library objects.
30359 pic_flag=$lt_lt_prog_compiler_pic
30360
30361 # Compiler flag to prevent dynamic linking.
30362 link_static_flag=$lt_lt_prog_compiler_static
30363
30364 # Does compiler simultaneously support -c and -o options?
30365 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30366
30367 # Whether or not to add -lc for building shared libraries.
30368 build_libtool_need_lc=$archive_cmds_need_lc
30369
30370 # Whether or not to disallow shared libs when runtime libs are static.
30371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30372
30373 # Compiler flag to allow reflexive dlopens.
30374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30375
30376 # Compiler flag to generate shared objects directly from archives.
30377 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30378
30379 # Whether the compiler copes with passing no objects directly.
30380 compiler_needs_object=$lt_compiler_needs_object
30381
30382 # Create an old-style archive from a shared archive.
30383 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30384
30385 # Create a temporary old-style archive to link instead of a shared archive.
30386 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30387
30388 # Commands used to build a shared archive.
30389 archive_cmds=$lt_archive_cmds
30390 archive_expsym_cmds=$lt_archive_expsym_cmds
30391
30392 # Commands used to build a loadable module if different from building
30393 # a shared archive.
30394 module_cmds=$lt_module_cmds
30395 module_expsym_cmds=$lt_module_expsym_cmds
30396
30397 # Whether we are building with GNU ld or not.
30398 with_gnu_ld=$lt_with_gnu_ld
30399
30400 # Flag that allows shared libraries with undefined symbols to be built.
30401 allow_undefined_flag=$lt_allow_undefined_flag
30402
30403 # Flag that enforces no undefined symbols.
30404 no_undefined_flag=$lt_no_undefined_flag
30405
30406 # Flag to hardcode \$libdir into a binary during linking.
30407 # This must work even if \$libdir does not exist
30408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30409
30410 # If ld is used when linking, flag to hardcode \$libdir into a binary
30411 # during linking.  This must work even if \$libdir does not exist.
30412 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30413
30414 # Whether we need a single "-rpath" flag with a separated argument.
30415 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30416
30417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30418 # DIR into the resulting binary.
30419 hardcode_direct=$hardcode_direct
30420
30421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30422 # DIR into the resulting binary and the resulting library dependency is
30423 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30424 # library is relocated.
30425 hardcode_direct_absolute=$hardcode_direct_absolute
30426
30427 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30428 # into the resulting binary.
30429 hardcode_minus_L=$hardcode_minus_L
30430
30431 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30432 # into the resulting binary.
30433 hardcode_shlibpath_var=$hardcode_shlibpath_var
30434
30435 # Set to "yes" if building a shared library automatically hardcodes DIR
30436 # into the library and all subsequent libraries and executables linked
30437 # against it.
30438 hardcode_automatic=$hardcode_automatic
30439
30440 # Set to yes if linker adds runtime paths of dependent libraries
30441 # to runtime path list.
30442 inherit_rpath=$inherit_rpath
30443
30444 # Whether libtool must link a program against all its dependency libraries.
30445 link_all_deplibs=$link_all_deplibs
30446
30447 # Fix the shell variable \$srcfile for the compiler.
30448 fix_srcfile_path=$lt_fix_srcfile_path
30449
30450 # Set to "yes" if exported symbols are required.
30451 always_export_symbols=$always_export_symbols
30452
30453 # The commands to list exported symbols.
30454 export_symbols_cmds=$lt_export_symbols_cmds
30455
30456 # Symbols that should not be listed in the preloaded symbols.
30457 exclude_expsyms=$lt_exclude_expsyms
30458
30459 # Symbols that must always be exported.
30460 include_expsyms=$lt_include_expsyms
30461
30462 # Commands necessary for linking programs (against libraries) with templates.
30463 prelink_cmds=$lt_prelink_cmds
30464
30465 # Specify filename containing input files.
30466 file_list_spec=$lt_file_list_spec
30467
30468 # How to hardcode a shared library path into an executable.
30469 hardcode_action=$hardcode_action
30470
30471 # Dependencies to place before and after the objects being linked to
30472 # create a shared library.
30473 predep_objects=$lt_predep_objects
30474 postdep_objects=$lt_postdep_objects
30475 predeps=$lt_predeps
30476 postdeps=$lt_postdeps
30477
30478 # The library search path used internally by the compiler when linking
30479 # a shared library.
30480 compiler_lib_search_path=$lt_compiler_lib_search_path
30481
30482 # ### END LIBTOOL CONFIG
30483
30484 _LT_EOF
30485
30486   case $host_os in
30487   aix3*)
30488     cat <<\_LT_EOF >> "$cfgfile"
30489 # AIX sometimes has problems with the GCC collect2 program.  For some
30490 # reason, if we set the COLLECT_NAMES environment variable, the problems
30491 # vanish in a puff of smoke.
30492 if test "X${COLLECT_NAMES+set}" != Xset; then
30493   COLLECT_NAMES=
30494   export COLLECT_NAMES
30495 fi
30496 _LT_EOF
30497     ;;
30498   esac
30499
30500
30501 ltmain="$ac_aux_dir/ltmain.sh"
30502
30503
30504   # We use sed instead of cat because bash on DJGPP gets confused if
30505   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30506   # text mode, it properly converts lines to CR/LF.  This bash problem
30507   # is reportedly fixed, but why not run on old versions too?
30508   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30509     || (rm -f "$cfgfile"; exit 1)
30510
30511   case $xsi_shell in
30512   yes)
30513     cat << \_LT_EOF >> "$cfgfile"
30514 # func_dirname file append nondir_replacement
30515 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30516 # otherwise set result to NONDIR_REPLACEMENT.
30517 func_dirname ()
30518 {
30519   case ${1} in
30520     */*) func_dirname_result="${1%/*}${2}" ;;
30521     *  ) func_dirname_result="${3}" ;;
30522   esac
30523 }
30524
30525 # func_basename file
30526 func_basename ()
30527 {
30528   func_basename_result="${1##*/}"
30529 }
30530
30531 # func_stripname prefix suffix name
30532 # strip PREFIX and SUFFIX off of NAME.
30533 # PREFIX and SUFFIX must not contain globbing or regex special
30534 # characters, hashes, percent signs, but SUFFIX may contain a leading
30535 # dot (in which case that matches only a dot).
30536 func_stripname ()
30537 {
30538   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30539   # positional parameters, so assign one to ordinary parameter first.
30540   func_stripname_result=${3}
30541   func_stripname_result=${func_stripname_result#"${1}"}
30542   func_stripname_result=${func_stripname_result%"${2}"}
30543 }
30544
30545 # func_opt_split
30546 func_opt_split ()
30547 {
30548   func_opt_split_opt=${1%%=*}
30549   func_opt_split_arg=${1#*=}
30550 }
30551
30552 # func_lo2o object
30553 func_lo2o ()
30554 {
30555   case ${1} in
30556     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30557     *)    func_lo2o_result=${1} ;;
30558   esac
30559 }
30560 _LT_EOF
30561     ;;
30562   *) # Bourne compatible functions.
30563     cat << \_LT_EOF >> "$cfgfile"
30564 # func_dirname file append nondir_replacement
30565 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30566 # otherwise set result to NONDIR_REPLACEMENT.
30567 func_dirname ()
30568 {
30569   # Extract subdirectory from the argument.
30570   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30571   if test "X$func_dirname_result" = "X${1}"; then
30572     func_dirname_result="${3}"
30573   else
30574     func_dirname_result="$func_dirname_result${2}"
30575   fi
30576 }
30577
30578 # func_basename file
30579 func_basename ()
30580 {
30581   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30582 }
30583
30584 # func_stripname prefix suffix name
30585 # strip PREFIX and SUFFIX off of NAME.
30586 # PREFIX and SUFFIX must not contain globbing or regex special
30587 # characters, hashes, percent signs, but SUFFIX may contain a leading
30588 # dot (in which case that matches only a dot).
30589 # func_strip_suffix prefix name
30590 func_stripname ()
30591 {
30592   case ${2} in
30593     .*) func_stripname_result=`$ECHO "X${3}" \
30594            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30595     *)  func_stripname_result=`$ECHO "X${3}" \
30596            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30597   esac
30598 }
30599
30600 # sed scripts:
30601 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30602 my_sed_long_arg='1s/^-[^=]*=//'
30603
30604 # func_opt_split
30605 func_opt_split ()
30606 {
30607   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30608   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30609 }
30610
30611 # func_lo2o object
30612 func_lo2o ()
30613 {
30614   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30615 }
30616 _LT_EOF
30617 esac
30618
30619 case $lt_shell_append in
30620   yes)
30621     cat << \_LT_EOF >> "$cfgfile"
30622
30623 # func_append var value
30624 # Append VALUE to the end of shell variable VAR.
30625 func_append ()
30626 {
30627   eval "$1+=\$2"
30628 }
30629 _LT_EOF
30630     ;;
30631   *)
30632     cat << \_LT_EOF >> "$cfgfile"
30633
30634 # func_append var value
30635 # Append VALUE to the end of shell variable VAR.
30636 func_append ()
30637 {
30638   eval "$1=\$$1\$2"
30639 }
30640 _LT_EOF
30641     ;;
30642   esac
30643
30644
30645   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30646     || (rm -f "$cfgfile"; exit 1)
30647
30648   mv -f "$cfgfile" "$ofile" ||
30649     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30650   chmod +x "$ofile"
30651
30652
30653     cat <<_LT_EOF >> "$ofile"
30654
30655 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30656
30657 # The linker used to build libraries.
30658 LD=$lt_LD_CXX
30659
30660 # Commands used to build an old-style archive.
30661 old_archive_cmds=$lt_old_archive_cmds_CXX
30662
30663 # A language specific compiler.
30664 CC=$lt_compiler_CXX
30665
30666 # Is the compiler the GNU compiler?
30667 with_gcc=$GCC_CXX
30668
30669 # Compiler flag to turn off builtin functions.
30670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30671
30672 # How to pass a linker flag through the compiler.
30673 wl=$lt_lt_prog_compiler_wl_CXX
30674
30675 # Additional compiler flags for building library objects.
30676 pic_flag=$lt_lt_prog_compiler_pic_CXX
30677
30678 # Compiler flag to prevent dynamic linking.
30679 link_static_flag=$lt_lt_prog_compiler_static_CXX
30680
30681 # Does compiler simultaneously support -c and -o options?
30682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30683
30684 # Whether or not to add -lc for building shared libraries.
30685 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30686
30687 # Whether or not to disallow shared libs when runtime libs are static.
30688 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30689
30690 # Compiler flag to allow reflexive dlopens.
30691 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30692
30693 # Compiler flag to generate shared objects directly from archives.
30694 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30695
30696 # Whether the compiler copes with passing no objects directly.
30697 compiler_needs_object=$lt_compiler_needs_object_CXX
30698
30699 # Create an old-style archive from a shared archive.
30700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30701
30702 # Create a temporary old-style archive to link instead of a shared archive.
30703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30704
30705 # Commands used to build a shared archive.
30706 archive_cmds=$lt_archive_cmds_CXX
30707 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30708
30709 # Commands used to build a loadable module if different from building
30710 # a shared archive.
30711 module_cmds=$lt_module_cmds_CXX
30712 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30713
30714 # Whether we are building with GNU ld or not.
30715 with_gnu_ld=$lt_with_gnu_ld_CXX
30716
30717 # Flag that allows shared libraries with undefined symbols to be built.
30718 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30719
30720 # Flag that enforces no undefined symbols.
30721 no_undefined_flag=$lt_no_undefined_flag_CXX
30722
30723 # Flag to hardcode \$libdir into a binary during linking.
30724 # This must work even if \$libdir does not exist
30725 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30726
30727 # If ld is used when linking, flag to hardcode \$libdir into a binary
30728 # during linking.  This must work even if \$libdir does not exist.
30729 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30730
30731 # Whether we need a single "-rpath" flag with a separated argument.
30732 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30733
30734 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30735 # DIR into the resulting binary.
30736 hardcode_direct=$hardcode_direct_CXX
30737
30738 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30739 # DIR into the resulting binary and the resulting library dependency is
30740 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30741 # library is relocated.
30742 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30743
30744 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30745 # into the resulting binary.
30746 hardcode_minus_L=$hardcode_minus_L_CXX
30747
30748 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30749 # into the resulting binary.
30750 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30751
30752 # Set to "yes" if building a shared library automatically hardcodes DIR
30753 # into the library and all subsequent libraries and executables linked
30754 # against it.
30755 hardcode_automatic=$hardcode_automatic_CXX
30756
30757 # Set to yes if linker adds runtime paths of dependent libraries
30758 # to runtime path list.
30759 inherit_rpath=$inherit_rpath_CXX
30760
30761 # Whether libtool must link a program against all its dependency libraries.
30762 link_all_deplibs=$link_all_deplibs_CXX
30763
30764 # Fix the shell variable \$srcfile for the compiler.
30765 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30766
30767 # Set to "yes" if exported symbols are required.
30768 always_export_symbols=$always_export_symbols_CXX
30769
30770 # The commands to list exported symbols.
30771 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30772
30773 # Symbols that should not be listed in the preloaded symbols.
30774 exclude_expsyms=$lt_exclude_expsyms_CXX
30775
30776 # Symbols that must always be exported.
30777 include_expsyms=$lt_include_expsyms_CXX
30778
30779 # Commands necessary for linking programs (against libraries) with templates.
30780 prelink_cmds=$lt_prelink_cmds_CXX
30781
30782 # Specify filename containing input files.
30783 file_list_spec=$lt_file_list_spec_CXX
30784
30785 # How to hardcode a shared library path into an executable.
30786 hardcode_action=$hardcode_action_CXX
30787
30788 # Dependencies to place before and after the objects being linked to
30789 # create a shared library.
30790 predep_objects=$lt_predep_objects_CXX
30791 postdep_objects=$lt_postdep_objects_CXX
30792 predeps=$lt_predeps_CXX
30793 postdeps=$lt_postdeps_CXX
30794
30795 # The library search path used internally by the compiler when linking
30796 # a shared library.
30797 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30798
30799 # ### END LIBTOOL TAG CONFIG: CXX
30800 _LT_EOF
30801
30802
30803     cat <<_LT_EOF >> "$ofile"
30804
30805 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30806
30807 # The linker used to build libraries.
30808 LD=$lt_LD_GCJ
30809
30810 # Commands used to build an old-style archive.
30811 old_archive_cmds=$lt_old_archive_cmds_GCJ
30812
30813 # A language specific compiler.
30814 CC=$lt_compiler_GCJ
30815
30816 # Is the compiler the GNU compiler?
30817 with_gcc=$GCC_GCJ
30818
30819 # Compiler flag to turn off builtin functions.
30820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30821
30822 # How to pass a linker flag through the compiler.
30823 wl=$lt_lt_prog_compiler_wl_GCJ
30824
30825 # Additional compiler flags for building library objects.
30826 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30827
30828 # Compiler flag to prevent dynamic linking.
30829 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30830
30831 # Does compiler simultaneously support -c and -o options?
30832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30833
30834 # Whether or not to add -lc for building shared libraries.
30835 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30836
30837 # Whether or not to disallow shared libs when runtime libs are static.
30838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30839
30840 # Compiler flag to allow reflexive dlopens.
30841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30842
30843 # Compiler flag to generate shared objects directly from archives.
30844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30845
30846 # Whether the compiler copes with passing no objects directly.
30847 compiler_needs_object=$lt_compiler_needs_object_GCJ
30848
30849 # Create an old-style archive from a shared archive.
30850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30851
30852 # Create a temporary old-style archive to link instead of a shared archive.
30853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30854
30855 # Commands used to build a shared archive.
30856 archive_cmds=$lt_archive_cmds_GCJ
30857 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30858
30859 # Commands used to build a loadable module if different from building
30860 # a shared archive.
30861 module_cmds=$lt_module_cmds_GCJ
30862 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30863
30864 # Whether we are building with GNU ld or not.
30865 with_gnu_ld=$lt_with_gnu_ld_GCJ
30866
30867 # Flag that allows shared libraries with undefined symbols to be built.
30868 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30869
30870 # Flag that enforces no undefined symbols.
30871 no_undefined_flag=$lt_no_undefined_flag_GCJ
30872
30873 # Flag to hardcode \$libdir into a binary during linking.
30874 # This must work even if \$libdir does not exist
30875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30876
30877 # If ld is used when linking, flag to hardcode \$libdir into a binary
30878 # during linking.  This must work even if \$libdir does not exist.
30879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30880
30881 # Whether we need a single "-rpath" flag with a separated argument.
30882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30883
30884 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30885 # DIR into the resulting binary.
30886 hardcode_direct=$hardcode_direct_GCJ
30887
30888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30889 # DIR into the resulting binary and the resulting library dependency is
30890 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30891 # library is relocated.
30892 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30893
30894 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30895 # into the resulting binary.
30896 hardcode_minus_L=$hardcode_minus_L_GCJ
30897
30898 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30899 # into the resulting binary.
30900 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30901
30902 # Set to "yes" if building a shared library automatically hardcodes DIR
30903 # into the library and all subsequent libraries and executables linked
30904 # against it.
30905 hardcode_automatic=$hardcode_automatic_GCJ
30906
30907 # Set to yes if linker adds runtime paths of dependent libraries
30908 # to runtime path list.
30909 inherit_rpath=$inherit_rpath_GCJ
30910
30911 # Whether libtool must link a program against all its dependency libraries.
30912 link_all_deplibs=$link_all_deplibs_GCJ
30913
30914 # Fix the shell variable \$srcfile for the compiler.
30915 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
30916
30917 # Set to "yes" if exported symbols are required.
30918 always_export_symbols=$always_export_symbols_GCJ
30919
30920 # The commands to list exported symbols.
30921 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30922
30923 # Symbols that should not be listed in the preloaded symbols.
30924 exclude_expsyms=$lt_exclude_expsyms_GCJ
30925
30926 # Symbols that must always be exported.
30927 include_expsyms=$lt_include_expsyms_GCJ
30928
30929 # Commands necessary for linking programs (against libraries) with templates.
30930 prelink_cmds=$lt_prelink_cmds_GCJ
30931
30932 # Specify filename containing input files.
30933 file_list_spec=$lt_file_list_spec_GCJ
30934
30935 # How to hardcode a shared library path into an executable.
30936 hardcode_action=$hardcode_action_GCJ
30937
30938 # Dependencies to place before and after the objects being linked to
30939 # create a shared library.
30940 predep_objects=$lt_predep_objects_GCJ
30941 postdep_objects=$lt_postdep_objects_GCJ
30942 predeps=$lt_predeps_GCJ
30943 postdeps=$lt_postdeps_GCJ
30944
30945 # The library search path used internally by the compiler when linking
30946 # a shared library.
30947 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
30948
30949 # ### END LIBTOOL TAG CONFIG: GCJ
30950 _LT_EOF
30951
30952  ;;
30953     default ) # Only add multilib support code if we just rebuilt top-level Makefile.
30954 case " $CONFIG_FILES " in
30955  *" Makefile "*)
30956    LD="${ORIGINAL_LD_FOR_MULTILIBS}"
30957    ac_file=Makefile . ${multi_basedir}/./libjava/../config-ml.in
30958    ;;
30959 esac
30960 for ac_multi_file in $CONFIG_FILES; do
30961   case $ac_multi_file in
30962   */Makefile)
30963     grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
30964   esac
30965 done
30966  ;;
30967   esac
30968 done
30969 _ACEOF
30970
30971 cat >>$CONFIG_STATUS <<\_ACEOF
30972
30973 { (exit 0); exit 0; }
30974 _ACEOF
30975 chmod +x $CONFIG_STATUS
30976 ac_clean_files=$ac_clean_files_save
30977
30978
30979 # configure is writing to config.log, and then calls config.status.
30980 # config.status does its own redirection, appending to config.log.
30981 # Unfortunately, on DOS this fails, as config.log is still kept open
30982 # by configure, so config.status won't be able to write to it; its
30983 # output is simply discarded.  So we exec the FD to /dev/null,
30984 # effectively closing config.log, so it can be properly (re)opened and
30985 # appended to by config.status.  When coming back to configure, we
30986 # need to make the FD available again.
30987 if test "$no_create" != yes; then
30988   ac_cs_success=:
30989   ac_config_status_args=
30990   test "$silent" = yes &&
30991     ac_config_status_args="$ac_config_status_args --quiet"
30992   exec 5>/dev/null
30993   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30994   exec 5>>config.log
30995   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30996   # would make configure fail if this is the last instruction.
30997   $ac_cs_success || { (exit 1); exit 1; }
30998 fi
30999
31000 #
31001 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31002 #
31003 if test "$no_recursion" != yes; then
31004
31005   # Remove --cache-file and --srcdir arguments so they do not pile up.
31006   ac_sub_configure_args=
31007   ac_prev=
31008   eval "set x $ac_configure_args"
31009   shift
31010   for ac_arg
31011   do
31012     if test -n "$ac_prev"; then
31013       ac_prev=
31014       continue
31015     fi
31016     case $ac_arg in
31017     -cache-file | --cache-file | --cache-fil | --cache-fi \
31018     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31019       ac_prev=cache_file ;;
31020     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31021     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31022     | --c=*)
31023       ;;
31024     --config-cache | -C)
31025       ;;
31026     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31027       ac_prev=srcdir ;;
31028     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31029       ;;
31030     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31031       ac_prev=prefix ;;
31032     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31033       ;;
31034     *)
31035       case $ac_arg in
31036       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31037       esac
31038       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31039     esac
31040   done
31041
31042   # Always prepend --prefix to ensure using the same prefix
31043   # in subdir configurations.
31044   ac_arg="--prefix=$prefix"
31045   case $ac_arg in
31046   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31047   esac
31048   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31049
31050   ac_popdir=`pwd`
31051   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31052
31053     # Do not complain, so a configure script can configure whichever
31054     # parts of a large source tree are present.
31055     test -d "$srcdir/$ac_dir" || continue
31056
31057     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31058 echo "$as_me: configuring in $ac_dir" >&6;}
31059     { if $as_mkdir_p; then
31060     mkdir -p "$ac_dir"
31061   else
31062     as_dir="$ac_dir"
31063     as_dirs=
31064     while test ! -d "$as_dir"; do
31065       as_dirs="$as_dir $as_dirs"
31066       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31068          X"$as_dir" : 'X\(//\)[^/]' \| \
31069          X"$as_dir" : 'X\(//\)$' \| \
31070          X"$as_dir" : 'X\(/\)' \| \
31071          .     : '\(.\)' 2>/dev/null ||
31072 echo X"$as_dir" |
31073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31074           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31075           /^X\(\/\/\)$/{ s//\1/; q; }
31076           /^X\(\/\).*/{ s//\1/; q; }
31077           s/.*/./; q'`
31078     done
31079     test ! -n "$as_dirs" || mkdir $as_dirs
31080   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31081 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31082    { (exit 1); exit 1; }; }; }
31083
31084     ac_builddir=.
31085
31086 if test "$ac_dir" != .; then
31087   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31088   # A "../" for each directory in $ac_dir_suffix.
31089   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31090 else
31091   ac_dir_suffix= ac_top_builddir=
31092 fi
31093
31094 case $srcdir in
31095   .)  # No --srcdir option.  We are building in place.
31096     ac_srcdir=.
31097     if test -z "$ac_top_builddir"; then
31098        ac_top_srcdir=.
31099     else
31100        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31101     fi ;;
31102   [\\/]* | ?:[\\/]* )  # Absolute path.
31103     ac_srcdir=$srcdir$ac_dir_suffix;
31104     ac_top_srcdir=$srcdir ;;
31105   *) # Relative path.
31106     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31107     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31108 esac
31109
31110 # Do not use `cd foo && pwd` to compute absolute paths, because
31111 # the directories may not exist.
31112 case `pwd` in
31113 .) ac_abs_builddir="$ac_dir";;
31114 *)
31115   case "$ac_dir" in
31116   .) ac_abs_builddir=`pwd`;;
31117   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31118   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31119   esac;;
31120 esac
31121 case $ac_abs_builddir in
31122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31123 *)
31124   case ${ac_top_builddir}. in
31125   .) ac_abs_top_builddir=$ac_abs_builddir;;
31126   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31127   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31128   esac;;
31129 esac
31130 case $ac_abs_builddir in
31131 .) ac_abs_srcdir=$ac_srcdir;;
31132 *)
31133   case $ac_srcdir in
31134   .) ac_abs_srcdir=$ac_abs_builddir;;
31135   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31136   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31137   esac;;
31138 esac
31139 case $ac_abs_builddir in
31140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31141 *)
31142   case $ac_top_srcdir in
31143   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31144   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31145   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31146   esac;;
31147 esac
31148
31149
31150     cd "$ac_dir"
31151
31152     # Check for guested configure; otherwise get Cygnus style configure.
31153     if test -f "$ac_srcdir/configure.gnu"; then
31154       ac_sub_configure=$ac_srcdir/configure.gnu
31155     elif test -f "$ac_srcdir/configure"; then
31156       ac_sub_configure=$ac_srcdir/configure
31157     elif test -f "$ac_srcdir/configure.in"; then
31158       # This should be Cygnus configure.
31159       ac_sub_configure=$ac_aux_dir/configure
31160     else
31161       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31163       ac_sub_configure=
31164     fi
31165
31166     # The recursion is here.
31167     if test -n "$ac_sub_configure"; then
31168       # Make the cache file name correct relative to the subdirectory.
31169       case $cache_file in
31170       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31171       *) # Relative path.
31172         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31173       esac
31174
31175       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31176 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31177       # The eval makes quoting arguments work.
31178       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31179            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31180         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31181 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31182    { (exit 1); exit 1; }; }
31183     fi
31184
31185     cd "$ac_popdir"
31186   done
31187 fi
31188