OSDN Git Service

* config/mips/mips.h (ISA_HAS_CINS): New macro.
[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 SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE 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 ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC 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 GCJVERSION dbexecdir gcjsubdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here python_mod_dir python_mod_dir_expanded MAKE INSTALL_AOT_RPM_TRUE INSTALL_AOT_RPM_FALSE CREATE_JAVA_HOME_TRUE CREATE_JAVA_HOME_FALSE gcc_suffix JAVA_VERSION BUILD_VERSION JVM_ROOT_DIR JVM_JAR_ROOT_DIR JVM_JAR_DIR JRE_DIR SDK_DIR JRE_LNK SDK_LNK SDK_BIN_DIR SDK_LIB_DIR SDK_INCLUDE_DIR JRE_BIN_DIR JRE_LIB_DIR GCJ_BIN_DIR CPU OS LIBDIR LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464 ac_pwd=`pwd`
465
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
485
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
503
504 ac_prev=
505 for ac_option
506 do
507   # If the previous option needs an argument, assign it.
508   if test -n "$ac_prev"; then
509     eval "$ac_prev=\$ac_option"
510     ac_prev=
511     continue
512   fi
513
514   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515
516   # Accept the important Cygnus configure options, so we can diagnose typos.
517
518   case $ac_option in
519
520   -bindir | --bindir | --bindi | --bind | --bin | --bi)
521     ac_prev=bindir ;;
522   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523     bindir=$ac_optarg ;;
524
525   -build | --build | --buil | --bui | --bu)
526     ac_prev=build_alias ;;
527   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528     build_alias=$ac_optarg ;;
529
530   -cache-file | --cache-file | --cache-fil | --cache-fi \
531   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532     ac_prev=cache_file ;;
533   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535     cache_file=$ac_optarg ;;
536
537   --config-cache | -C)
538     cache_file=config.cache ;;
539
540   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541     ac_prev=datadir ;;
542   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543   | --da=*)
544     datadir=$ac_optarg ;;
545
546   -disable-* | --disable-*)
547     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548     # Reject names that are not valid shell variable names.
549     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551    { (exit 1); exit 1; }; }
552     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553     eval "enable_$ac_feature=no" ;;
554
555   -enable-* | --enable-*)
556     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557     # Reject names that are not valid shell variable names.
558     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560    { (exit 1); exit 1; }; }
561     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562     case $ac_option in
563       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564       *) ac_optarg=yes ;;
565     esac
566     eval "enable_$ac_feature='$ac_optarg'" ;;
567
568   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570   | --exec | --exe | --ex)
571     ac_prev=exec_prefix ;;
572   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574   | --exec=* | --exe=* | --ex=*)
575     exec_prefix=$ac_optarg ;;
576
577   -gas | --gas | --ga | --g)
578     # Obsolete; use --with-gas.
579     with_gas=yes ;;
580
581   -help | --help | --hel | --he | -h)
582     ac_init_help=long ;;
583   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584     ac_init_help=recursive ;;
585   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586     ac_init_help=short ;;
587
588   -host | --host | --hos | --ho)
589     ac_prev=host_alias ;;
590   -host=* | --host=* | --hos=* | --ho=*)
591     host_alias=$ac_optarg ;;
592
593   -includedir | --includedir | --includedi | --included | --include \
594   | --includ | --inclu | --incl | --inc)
595     ac_prev=includedir ;;
596   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597   | --includ=* | --inclu=* | --incl=* | --inc=*)
598     includedir=$ac_optarg ;;
599
600   -infodir | --infodir | --infodi | --infod | --info | --inf)
601     ac_prev=infodir ;;
602   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603     infodir=$ac_optarg ;;
604
605   -libdir | --libdir | --libdi | --libd)
606     ac_prev=libdir ;;
607   -libdir=* | --libdir=* | --libdi=* | --libd=*)
608     libdir=$ac_optarg ;;
609
610   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611   | --libexe | --libex | --libe)
612     ac_prev=libexecdir ;;
613   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614   | --libexe=* | --libex=* | --libe=*)
615     libexecdir=$ac_optarg ;;
616
617   -localstatedir | --localstatedir | --localstatedi | --localstated \
618   | --localstate | --localstat | --localsta | --localst \
619   | --locals | --local | --loca | --loc | --lo)
620     ac_prev=localstatedir ;;
621   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624     localstatedir=$ac_optarg ;;
625
626   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627     ac_prev=mandir ;;
628   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629     mandir=$ac_optarg ;;
630
631   -nfp | --nfp | --nf)
632     # Obsolete; use --without-fp.
633     with_fp=no ;;
634
635   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636   | --no-cr | --no-c | -n)
637     no_create=yes ;;
638
639   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641     no_recursion=yes ;;
642
643   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645   | --oldin | --oldi | --old | --ol | --o)
646     ac_prev=oldincludedir ;;
647   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650     oldincludedir=$ac_optarg ;;
651
652   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653     ac_prev=prefix ;;
654   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655     prefix=$ac_optarg ;;
656
657   -program-prefix | --program-prefix | --program-prefi | --program-pref \
658   | --program-pre | --program-pr | --program-p)
659     ac_prev=program_prefix ;;
660   -program-prefix=* | --program-prefix=* | --program-prefi=* \
661   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662     program_prefix=$ac_optarg ;;
663
664   -program-suffix | --program-suffix | --program-suffi | --program-suff \
665   | --program-suf | --program-su | --program-s)
666     ac_prev=program_suffix ;;
667   -program-suffix=* | --program-suffix=* | --program-suffi=* \
668   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669     program_suffix=$ac_optarg ;;
670
671   -program-transform-name | --program-transform-name \
672   | --program-transform-nam | --program-transform-na \
673   | --program-transform-n | --program-transform- \
674   | --program-transform | --program-transfor \
675   | --program-transfo | --program-transf \
676   | --program-trans | --program-tran \
677   | --progr-tra | --program-tr | --program-t)
678     ac_prev=program_transform_name ;;
679   -program-transform-name=* | --program-transform-name=* \
680   | --program-transform-nam=* | --program-transform-na=* \
681   | --program-transform-n=* | --program-transform-=* \
682   | --program-transform=* | --program-transfor=* \
683   | --program-transfo=* | --program-transf=* \
684   | --program-trans=* | --program-tran=* \
685   | --progr-tra=* | --program-tr=* | --program-t=*)
686     program_transform_name=$ac_optarg ;;
687
688   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689   | -silent | --silent | --silen | --sile | --sil)
690     silent=yes ;;
691
692   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693     ac_prev=sbindir ;;
694   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695   | --sbi=* | --sb=*)
696     sbindir=$ac_optarg ;;
697
698   -sharedstatedir | --sharedstatedir | --sharedstatedi \
699   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700   | --sharedst | --shareds | --shared | --share | --shar \
701   | --sha | --sh)
702     ac_prev=sharedstatedir ;;
703   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706   | --sha=* | --sh=*)
707     sharedstatedir=$ac_optarg ;;
708
709   -site | --site | --sit)
710     ac_prev=site ;;
711   -site=* | --site=* | --sit=*)
712     site=$ac_optarg ;;
713
714   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715     ac_prev=srcdir ;;
716   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717     srcdir=$ac_optarg ;;
718
719   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720   | --syscon | --sysco | --sysc | --sys | --sy)
721     ac_prev=sysconfdir ;;
722   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724     sysconfdir=$ac_optarg ;;
725
726   -target | --target | --targe | --targ | --tar | --ta | --t)
727     ac_prev=target_alias ;;
728   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729     target_alias=$ac_optarg ;;
730
731   -v | -verbose | --verbose | --verbos | --verbo | --verb)
732     verbose=yes ;;
733
734   -version | --version | --versio | --versi | --vers | -V)
735     ac_init_version=: ;;
736
737   -with-* | --with-*)
738     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739     # Reject names that are not valid shell variable names.
740     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741       { echo "$as_me: error: invalid package name: $ac_package" >&2
742    { (exit 1); exit 1; }; }
743     ac_package=`echo $ac_package| sed 's/-/_/g'`
744     case $ac_option in
745       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746       *) ac_optarg=yes ;;
747     esac
748     eval "with_$ac_package='$ac_optarg'" ;;
749
750   -without-* | --without-*)
751     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752     # Reject names that are not valid shell variable names.
753     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754       { echo "$as_me: error: invalid package name: $ac_package" >&2
755    { (exit 1); exit 1; }; }
756     ac_package=`echo $ac_package | sed 's/-/_/g'`
757     eval "with_$ac_package=no" ;;
758
759   --x)
760     # Obsolete; use --with-x.
761     with_x=yes ;;
762
763   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764   | --x-incl | --x-inc | --x-in | --x-i)
765     ac_prev=x_includes ;;
766   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768     x_includes=$ac_optarg ;;
769
770   -x-libraries | --x-libraries | --x-librarie | --x-librari \
771   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772     ac_prev=x_libraries ;;
773   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775     x_libraries=$ac_optarg ;;
776
777   -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779    { (exit 1); exit 1; }; }
780     ;;
781
782   *=*)
783     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784     # Reject names that are not valid shell variable names.
785     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787    { (exit 1); exit 1; }; }
788     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789     eval "$ac_envvar='$ac_optarg'"
790     export $ac_envvar ;;
791
792   *)
793     # FIXME: should be removed in autoconf 3.0.
794     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798     ;;
799
800   esac
801 done
802
803 if test -n "$ac_prev"; then
804   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805   { echo "$as_me: error: missing argument to $ac_option" >&2
806    { (exit 1); exit 1; }; }
807 fi
808
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
811 do
812   eval ac_val=$`echo $ac_var`
813   case $ac_val in
814     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816    { (exit 1); exit 1; }; };;
817   esac
818 done
819
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822               localstatedir libdir includedir oldincludedir infodir mandir
823 do
824   eval ac_val=$`echo $ac_var`
825   case $ac_val in
826     [\\/$]* | ?:[\\/]* ) ;;
827     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828    { (exit 1); exit 1; }; };;
829   esac
830 done
831
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
838
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841   if test "x$build_alias" = x; then
842     cross_compiling=maybe
843     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844     If a cross compiler is detected then cross compile mode will be used." >&2
845   elif test "x$build_alias" != "x$host_alias"; then
846     cross_compiling=yes
847   fi
848 fi
849
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852
853 test "$silent" = yes && exec 6>/dev/null
854
855
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858   ac_srcdir_defaulted=yes
859   # Try the directory containing this script, then its parent.
860   ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862          X"$0" : 'X\(//\)[^/]' \| \
863          X"$0" : 'X\(//\)$' \| \
864          X"$0" : 'X\(/\)' \| \
865          .     : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869           /^X\(\/\/\)$/{ s//\1/; q; }
870           /^X\(\/\).*/{ s//\1/; q; }
871           s/.*/./; q'`
872   srcdir=$ac_confdir
873   if test ! -r $srcdir/$ac_unique_file; then
874     srcdir=..
875   fi
876 else
877   ac_srcdir_defaulted=no
878 fi
879 if test ! -r $srcdir/$ac_unique_file; then
880   if test "$ac_srcdir_defaulted" = yes; then
881     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882    { (exit 1); exit 1; }; }
883   else
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885    { (exit 1); exit 1; }; }
886   fi
887 fi
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890    { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
928
929 #
930 # Report the --help message.
931 #
932 if test "$ac_init_help" = "long"; then
933   # Omit some internal or obsolete options to make the list less imposing.
934   # This message is too long to be a string in the A/UX 3.1 sh.
935   cat <<_ACEOF
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937
938 Usage: $0 [OPTION]... [VAR=VALUE]...
939
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE.  See below for descriptions of some of the useful variables.
942
943 Defaults for the options are specified in brackets.
944
945 Configuration:
946   -h, --help              display this help and exit
947       --help=short        display options specific to this package
948       --help=recursive    display the short help of all the included packages
949   -V, --version           display version information and exit
950   -q, --quiet, --silent   do not print \`checking...' messages
951       --cache-file=FILE   cache test results in FILE [disabled]
952   -C, --config-cache      alias for \`--cache-file=config.cache'
953   -n, --no-create         do not create output files
954       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
955
956 _ACEOF
957
958   cat <<_ACEOF
959 Installation directories:
960   --prefix=PREFIX         install architecture-independent files in PREFIX
961                           [$ac_default_prefix]
962   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
963                           [PREFIX]
964
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
969
970 For better control, use the options below.
971
972 Fine tuning of the installation directories:
973   --bindir=DIR           user executables [EPREFIX/bin]
974   --sbindir=DIR          system admin executables [EPREFIX/sbin]
975   --libexecdir=DIR       program executables [EPREFIX/libexec]
976   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
977   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
978   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
979   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
980   --libdir=DIR           object code libraries [EPREFIX/lib]
981   --includedir=DIR       C header files [PREFIX/include]
982   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
983   --infodir=DIR          info documentation [PREFIX/info]
984   --mandir=DIR           man documentation [PREFIX/man]
985 _ACEOF
986
987   cat <<\_ACEOF
988
989 Program names:
990   --program-prefix=PREFIX            prepend PREFIX to installed program names
991   --program-suffix=SUFFIX            append SUFFIX to installed program names
992   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
993
994 X features:
995   --x-includes=DIR    X include files are in DIR
996   --x-libraries=DIR   X library files are in DIR
997
998 System types:
999   --build=BUILD     configure for building on BUILD [guessed]
1000   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1001   --target=TARGET   configure for building compilers for TARGET [HOST]
1002 _ACEOF
1003 fi
1004
1005 if test -n "$ac_init_help"; then
1006   case $ac_init_help in
1007      short | recursive ) echo "Configuration of libjava version-unused:";;
1008    esac
1009   cat <<\_ACEOF
1010
1011 Optional Features:
1012   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1013   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1014   --enable-multilib       build many library versions (default)
1015   --enable-version-specific-runtime-libs
1016                           specify that runtime libraries should be installed
1017                           in a compiler-specific directory
1018   --enable-plugin         build gcjwebplugin web browser plugin
1019   --enable-gconf-peer     compile GConf native peers for util.preferences
1020   --enable-java-maintainer-mode
1021                           allow rebuilding of .class and .h files
1022   --disable-dependency-tracking  speeds up one-time build
1023   --enable-dependency-tracking   do not reject slow dependency extractors
1024   --enable-maintainer-mode  enable make rules and dependencies not useful
1025                           (and sometimes confusing) to the casual installer
1026   --enable-libgcj-debug   enable runtime debugging code
1027   --enable-java-awt       list of AWT peer implementations to be built
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --disable-getenv-properties
1036                           don't set system properties from GCJ_PROPERTIES
1037   --enable-hash-synchronization
1038                           use global hash table for monitor locks
1039   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1040                           libgcj
1041   --enable-gc-debug       include full support for pointer backtracing etc.
1042   --enable-interpreter    enable interpreter
1043   --enable-sjlj-exceptions
1044                           force use of builtin_setjmp for exceptions
1045   --disable-java-net      disable java.net
1046   --disable-jvmpi         disable JVMPI support
1047   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1048   --disable-rpath         do not hardcode runtime library paths
1049   --enable-tls            Use thread-local storage [default=yes]
1050   --enable-aot-compile-rpm
1051                           enable installation of aot-compile-rpm [default=no]
1052   --enable-java-home      create a standard JDK-style directory layout in the
1053                           install tree [default=no]
1054
1055 Optional Packages:
1056   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1059   --with-target-subdir=SUBDIR
1060                           configure in a subdirectory
1061   --with-cross-host=HOST  configure with a cross compiler from HOST
1062   --with-newlib           configure with newlib
1063   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1064   --with-pic              try to use only PIC/non-PIC objects [default=use
1065                           both]
1066   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1067   --with-ecj-jar=FILE     use preinstalled ecj jar
1068   --with-java-home=DIRECTORY
1069                           value of java.home system property
1070   --with-win32-nlsapi=ansi or unicows or unicode
1071                           native MinGW libgcj Win32 OS API (default is ansi)
1072   --without-libffi        don't use libffi
1073   --with-ecos             enable runtime eCos target support
1074   --with-system-zlib      use installed libz
1075   --with-x                use the X Window System
1076   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1077   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1078   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1079   --with-python-dir       the location to install Python modules. This path
1080                           should NOT include the prefix.
1081   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1082   --with-arch-directory   the arch directory under jre/lib (defaults to
1083                           auto-detect)
1084   --with-os-directory     the os directory under include (defaults to
1085                           auto-detect)
1086   --with-origin-name      the JPackage origin name of this package (default is
1087                           gcj${gcc_suffix}
1088   --with-arch-suffix      the arch directory suffix (default is the empty
1089                           string
1090   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1091   --with-jvm-jar-dir      where to install jars (default is
1092                           ${prefix}/lib/jvm-exports)
1093
1094 Some influential environment variables:
1095   CC          C compiler command
1096   CFLAGS      C compiler flags
1097   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1098               nonstandard directory <lib dir>
1099   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100               headers in a nonstandard directory <include dir>
1101   CXX         C++ compiler command
1102   CXXFLAGS    C++ compiler flags
1103   CPP         C preprocessor
1104   CXXCPP      C++ preprocessor
1105
1106 Use these variables to override the choices made by `configure' or to help
1107 it to find libraries and programs with nonstandard names/locations.
1108
1109 _ACEOF
1110 fi
1111
1112 if test "$ac_init_help" = "recursive"; then
1113   # If there are subdirs, report their specific --help.
1114   ac_popdir=`pwd`
1115   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1116     test -d $ac_dir || continue
1117     ac_builddir=.
1118
1119 if test "$ac_dir" != .; then
1120   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1121   # A "../" for each directory in $ac_dir_suffix.
1122   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123 else
1124   ac_dir_suffix= ac_top_builddir=
1125 fi
1126
1127 case $srcdir in
1128   .)  # No --srcdir option.  We are building in place.
1129     ac_srcdir=.
1130     if test -z "$ac_top_builddir"; then
1131        ac_top_srcdir=.
1132     else
1133        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134     fi ;;
1135   [\\/]* | ?:[\\/]* )  # Absolute path.
1136     ac_srcdir=$srcdir$ac_dir_suffix;
1137     ac_top_srcdir=$srcdir ;;
1138   *) # Relative path.
1139     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1140     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141 esac
1142
1143 # Do not use `cd foo && pwd` to compute absolute paths, because
1144 # the directories may not exist.
1145 case `pwd` in
1146 .) ac_abs_builddir="$ac_dir";;
1147 *)
1148   case "$ac_dir" in
1149   .) ac_abs_builddir=`pwd`;;
1150   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1151   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152   esac;;
1153 esac
1154 case $ac_abs_builddir in
1155 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *)
1157   case ${ac_top_builddir}. in
1158   .) ac_abs_top_builddir=$ac_abs_builddir;;
1159   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1160   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161   esac;;
1162 esac
1163 case $ac_abs_builddir in
1164 .) ac_abs_srcdir=$ac_srcdir;;
1165 *)
1166   case $ac_srcdir in
1167   .) ac_abs_srcdir=$ac_abs_builddir;;
1168   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1169   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170   esac;;
1171 esac
1172 case $ac_abs_builddir in
1173 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *)
1175   case $ac_top_srcdir in
1176   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1177   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1178   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179   esac;;
1180 esac
1181
1182     cd $ac_dir
1183     # Check for guested configure; otherwise get Cygnus style configure.
1184     if test -f $ac_srcdir/configure.gnu; then
1185       echo
1186       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1187     elif test -f $ac_srcdir/configure; then
1188       echo
1189       $SHELL $ac_srcdir/configure  --help=recursive
1190     elif test -f $ac_srcdir/configure.ac ||
1191            test -f $ac_srcdir/configure.in; then
1192       echo
1193       $ac_configure --help
1194     else
1195       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196     fi
1197     cd $ac_popdir
1198   done
1199 fi
1200
1201 test -n "$ac_init_help" && exit 0
1202 if $ac_init_version; then
1203   cat <<\_ACEOF
1204 libjava configure version-unused
1205 generated by GNU Autoconf 2.59
1206
1207 Copyright (C) 2003 Free Software Foundation, Inc.
1208 This configure script is free software; the Free Software Foundation
1209 gives unlimited permission to copy, distribute and modify it.
1210 _ACEOF
1211   exit 0
1212 fi
1213 exec 5>config.log
1214 cat >&5 <<_ACEOF
1215 This file contains any messages produced by compilers while
1216 running configure, to aid debugging if configure makes a mistake.
1217
1218 It was created by libjava $as_me version-unused, which was
1219 generated by GNU Autoconf 2.59.  Invocation command line was
1220
1221   $ $0 $@
1222
1223 _ACEOF
1224 {
1225 cat <<_ASUNAME
1226 ## --------- ##
1227 ## Platform. ##
1228 ## --------- ##
1229
1230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235
1236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1238
1239 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1240 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1243 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1244 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1245 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1246
1247 _ASUNAME
1248
1249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250 for as_dir in $PATH
1251 do
1252   IFS=$as_save_IFS
1253   test -z "$as_dir" && as_dir=.
1254   echo "PATH: $as_dir"
1255 done
1256
1257 } >&5
1258
1259 cat >&5 <<_ACEOF
1260
1261
1262 ## ----------- ##
1263 ## Core tests. ##
1264 ## ----------- ##
1265
1266 _ACEOF
1267
1268
1269 # Keep a trace of the command line.
1270 # Strip out --no-create and --no-recursion so they do not pile up.
1271 # Strip out --silent because we don't want to record it for future runs.
1272 # Also quote any args containing shell meta-characters.
1273 # Make two passes to allow for proper duplicate-argument suppression.
1274 ac_configure_args=
1275 ac_configure_args0=
1276 ac_configure_args1=
1277 ac_sep=
1278 ac_must_keep_next=false
1279 for ac_pass in 1 2
1280 do
1281   for ac_arg
1282   do
1283     case $ac_arg in
1284     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286     | -silent | --silent | --silen | --sile | --sil)
1287       continue ;;
1288     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290     esac
1291     case $ac_pass in
1292     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293     2)
1294       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295       if test $ac_must_keep_next = true; then
1296         ac_must_keep_next=false # Got value, back to normal.
1297       else
1298         case $ac_arg in
1299           *=* | --config-cache | -C | -disable-* | --disable-* \
1300           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302           | -with-* | --with-* | -without-* | --without-* | --x)
1303             case "$ac_configure_args0 " in
1304               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305             esac
1306             ;;
1307           -* ) ac_must_keep_next=true ;;
1308         esac
1309       fi
1310       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311       # Get rid of the leading space.
1312       ac_sep=" "
1313       ;;
1314     esac
1315   done
1316 done
1317 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319
1320 # When interrupted or exit'd, cleanup temporary files, and complete
1321 # config.log.  We remove comments because anyway the quotes in there
1322 # would cause problems or look ugly.
1323 # WARNING: Be sure not to use single quotes in there, as some shells,
1324 # such as our DU 5.0 friend, will then `close' the trap.
1325 trap 'exit_status=$?
1326   # Save into config.log some information that might help in debugging.
1327   {
1328     echo
1329
1330     cat <<\_ASBOX
1331 ## ---------------- ##
1332 ## Cache variables. ##
1333 ## ---------------- ##
1334 _ASBOX
1335     echo
1336     # The following way of writing the cache mishandles newlines in values,
1337 {
1338   (set) 2>&1 |
1339     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340     *ac_space=\ *)
1341       sed -n \
1342         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1344       ;;
1345     *)
1346       sed -n \
1347         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1348       ;;
1349     esac;
1350 }
1351     echo
1352
1353     cat <<\_ASBOX
1354 ## ----------------- ##
1355 ## Output variables. ##
1356 ## ----------------- ##
1357 _ASBOX
1358     echo
1359     for ac_var in $ac_subst_vars
1360     do
1361       eval ac_val=$`echo $ac_var`
1362       echo "$ac_var='"'"'$ac_val'"'"'"
1363     done | sort
1364     echo
1365
1366     if test -n "$ac_subst_files"; then
1367       cat <<\_ASBOX
1368 ## ------------- ##
1369 ## Output files. ##
1370 ## ------------- ##
1371 _ASBOX
1372       echo
1373       for ac_var in $ac_subst_files
1374       do
1375         eval ac_val=$`echo $ac_var`
1376         echo "$ac_var='"'"'$ac_val'"'"'"
1377       done | sort
1378       echo
1379     fi
1380
1381     if test -s confdefs.h; then
1382       cat <<\_ASBOX
1383 ## ----------- ##
1384 ## confdefs.h. ##
1385 ## ----------- ##
1386 _ASBOX
1387       echo
1388       sed "/^$/d" confdefs.h | sort
1389       echo
1390     fi
1391     test "$ac_signal" != 0 &&
1392       echo "$as_me: caught signal $ac_signal"
1393     echo "$as_me: exit $exit_status"
1394   } >&5
1395   rm -f core *.core &&
1396   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1397     exit $exit_status
1398      ' 0
1399 for ac_signal in 1 2 13 15; do
1400   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401 done
1402 ac_signal=0
1403
1404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1405 rm -rf conftest* confdefs.h
1406 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407 echo >confdefs.h
1408
1409 # Predefined preprocessor variables.
1410
1411 cat >>confdefs.h <<_ACEOF
1412 #define PACKAGE_NAME "$PACKAGE_NAME"
1413 _ACEOF
1414
1415
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1418 _ACEOF
1419
1420
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1423 _ACEOF
1424
1425
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_STRING "$PACKAGE_STRING"
1428 _ACEOF
1429
1430
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1433 _ACEOF
1434
1435
1436 # Let the site file select an alternate cache file if it wants to.
1437 # Prefer explicitly selected file to automatically selected ones.
1438 if test -z "$CONFIG_SITE"; then
1439   if test "x$prefix" != xNONE; then
1440     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441   else
1442     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443   fi
1444 fi
1445 for ac_site_file in $CONFIG_SITE; do
1446   if test -r "$ac_site_file"; then
1447     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1448 echo "$as_me: loading site script $ac_site_file" >&6;}
1449     sed 's/^/| /' "$ac_site_file" >&5
1450     . "$ac_site_file"
1451   fi
1452 done
1453
1454 if test -r "$cache_file"; then
1455   # Some versions of bash will fail to source /dev/null (special
1456   # files actually), so we avoid doing that.
1457   if test -f "$cache_file"; then
1458     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1459 echo "$as_me: loading cache $cache_file" >&6;}
1460     case $cache_file in
1461       [\\/]* | ?:[\\/]* ) . $cache_file;;
1462       *)                      . ./$cache_file;;
1463     esac
1464   fi
1465 else
1466   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1467 echo "$as_me: creating cache $cache_file" >&6;}
1468   >$cache_file
1469 fi
1470
1471 # Check that the precious variables saved in the cache have kept the same
1472 # value.
1473 ac_cache_corrupted=false
1474 for ac_var in `(set) 2>&1 |
1475                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1476   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1477   eval ac_new_set=\$ac_env_${ac_var}_set
1478   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1479   eval ac_new_val="\$ac_env_${ac_var}_value"
1480   case $ac_old_set,$ac_new_set in
1481     set,)
1482       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1483 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1484       ac_cache_corrupted=: ;;
1485     ,set)
1486       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1487 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1488       ac_cache_corrupted=: ;;
1489     ,);;
1490     *)
1491       if test "x$ac_old_val" != "x$ac_new_val"; then
1492         # differences in whitespace do not lead to failure.
1493         ac_old_val_w=`echo x $ac_old_val`
1494         ac_new_val_w=`echo x $ac_new_val`
1495         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1496           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1497 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1498           ac_cache_corrupted=:
1499         else
1500           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1501 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1502           eval $ac_var=\$ac_old_val
1503         fi
1504         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1505 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1506         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1507 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1508       fi;;
1509   esac
1510   # Pass precious variables to config.status.
1511   if test "$ac_new_set" = set; then
1512     case $ac_new_val in
1513     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515     *) ac_arg=$ac_var=$ac_new_val ;;
1516     esac
1517     case " $ac_configure_args " in
1518       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1519       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1520     esac
1521   fi
1522 done
1523 if $ac_cache_corrupted; then
1524   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1525 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1526   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1527 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1528   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1529 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1530    { (exit 1); exit 1; }; }
1531 fi
1532
1533 ac_ext=c
1534 ac_cpp='$CPP $CPPFLAGS'
1535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571 ac_aux_dir=
1572 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1573   if test -f $ac_dir/install-sh; then
1574     ac_aux_dir=$ac_dir
1575     ac_install_sh="$ac_aux_dir/install-sh -c"
1576     break
1577   elif test -f $ac_dir/install.sh; then
1578     ac_aux_dir=$ac_dir
1579     ac_install_sh="$ac_aux_dir/install.sh -c"
1580     break
1581   elif test -f $ac_dir/shtool; then
1582     ac_aux_dir=$ac_dir
1583     ac_install_sh="$ac_aux_dir/shtool install -c"
1584     break
1585   fi
1586 done
1587 if test -z "$ac_aux_dir"; then
1588   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1589 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1590    { (exit 1); exit 1; }; }
1591 fi
1592 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1593 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1594 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1595
1596 # Make sure we can run config.sub.
1597 $ac_config_sub sun4 >/dev/null 2>&1 ||
1598   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1599 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1600    { (exit 1); exit 1; }; }
1601
1602 echo "$as_me:$LINENO: checking build system type" >&5
1603 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1604 if test "${ac_cv_build+set}" = set; then
1605   echo $ECHO_N "(cached) $ECHO_C" >&6
1606 else
1607   ac_cv_build_alias=$build_alias
1608 test -z "$ac_cv_build_alias" &&
1609   ac_cv_build_alias=`$ac_config_guess`
1610 test -z "$ac_cv_build_alias" &&
1611   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1612 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1613    { (exit 1); exit 1; }; }
1614 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1615   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1616 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1617    { (exit 1); exit 1; }; }
1618
1619 fi
1620 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1621 echo "${ECHO_T}$ac_cv_build" >&6
1622 build=$ac_cv_build
1623 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626
1627
1628  case ${build_alias} in
1629   "") build_noncanonical=${build} ;;
1630   *) build_noncanonical=${build_alias} ;;
1631 esac
1632
1633  case ${host_alias} in
1634   "") host_noncanonical=${build_noncanonical} ;;
1635   *) host_noncanonical=${host_alias} ;;
1636 esac
1637
1638  case ${target_alias} in
1639   "") target_noncanonical=${host_noncanonical} ;;
1640   *) target_noncanonical=${target_alias} ;;
1641 esac
1642
1643
1644 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1645 # have matching libraries, they should use host libraries: Makefile.tpl
1646 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1647 # However, they still use the build modules, because the corresponding
1648 # host modules (e.g. bison) are only built for the host when bootstrap
1649 # finishes. So:
1650 # - build_subdir is where we find build modules, and never changes.
1651 # - build_libsubdir is where we find build libraries, and can be overridden.
1652
1653 # Prefix 'build-' so this never conflicts with target_subdir.
1654 build_subdir="build-${build_noncanonical}"
1655
1656 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1657 if test "${with_build_libsubdir+set}" = set; then
1658   withval="$with_build_libsubdir"
1659   build_libsubdir="$withval"
1660 else
1661   build_libsubdir="$build_subdir"
1662 fi;
1663 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1664 if ( test $srcdir = . && test -d gcc ) \
1665    || test -d $srcdir/../host-${host_noncanonical}; then
1666   host_subdir="host-${host_noncanonical}"
1667 else
1668   host_subdir=.
1669 fi
1670 # No prefix.
1671 target_subdir=${target_noncanonical}
1672
1673
1674 # We use these options to decide which functions to include.
1675
1676 # Check whether --with-target-subdir or --without-target-subdir was given.
1677 if test "${with_target_subdir+set}" = set; then
1678   withval="$with_target_subdir"
1679
1680 fi;
1681
1682 # We may get other options which we don't document:
1683 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1684
1685 # Find the rest of the source tree framework.
1686 # Default to --enable-multilib
1687 # Check whether --enable-multilib or --disable-multilib was given.
1688 if test "${enable_multilib+set}" = set; then
1689   enableval="$enable_multilib"
1690   case "$enableval" in
1691   yes) multilib=yes ;;
1692   no)  multilib=no ;;
1693   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1694 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1695    { (exit 1); exit 1; }; } ;;
1696  esac
1697 else
1698   multilib=yes
1699 fi;
1700
1701 # We may get other options which we leave undocumented:
1702 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1703 # See config-ml.in if you want the gory details.
1704
1705 if test "$srcdir" = "."; then
1706   if test "$with_target_subdir" != "."; then
1707     multi_basedir="$srcdir/$with_multisrctop../.."
1708   else
1709     multi_basedir="$srcdir/$with_multisrctop.."
1710   fi
1711 else
1712   multi_basedir="$srcdir/.."
1713 fi
1714
1715
1716 # Even if the default multilib is not a cross compilation,
1717 # it may be that some of the other multilibs are.
1718 if test $cross_compiling = no && test $multilib = yes \
1719    && test "x${with_multisubdir}" != x ; then
1720    cross_compiling=maybe
1721 fi
1722
1723           ac_config_commands="$ac_config_commands default-1"
1724
1725
1726 echo "$as_me:$LINENO: checking host system type" >&5
1727 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1728 if test "${ac_cv_host+set}" = set; then
1729   echo $ECHO_N "(cached) $ECHO_C" >&6
1730 else
1731   ac_cv_host_alias=$host_alias
1732 test -z "$ac_cv_host_alias" &&
1733   ac_cv_host_alias=$ac_cv_build_alias
1734 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1735   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1736 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1737    { (exit 1); exit 1; }; }
1738
1739 fi
1740 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1741 echo "${ECHO_T}$ac_cv_host" >&6
1742 host=$ac_cv_host
1743 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1744 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1745 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1746
1747
1748 echo "$as_me:$LINENO: checking target system type" >&5
1749 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1750 if test "${ac_cv_target+set}" = set; then
1751   echo $ECHO_N "(cached) $ECHO_C" >&6
1752 else
1753   ac_cv_target_alias=$target_alias
1754 test "x$ac_cv_target_alias" = "x" &&
1755   ac_cv_target_alias=$ac_cv_host_alias
1756 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1757   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1758 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1759    { (exit 1); exit 1; }; }
1760
1761 fi
1762 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1763 echo "${ECHO_T}$ac_cv_target" >&6
1764 target=$ac_cv_target
1765 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1766 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1767 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1768
1769
1770 # The aliases save the names the user supplied, while $host etc.
1771 # will get canonicalized.
1772 test -n "$target_alias" &&
1773   test "$program_prefix$program_suffix$program_transform_name" = \
1774     NONENONEs,x,x, &&
1775   program_prefix=${target_alias}-
1776  case ${build_alias} in
1777   "") build_noncanonical=${build} ;;
1778   *) build_noncanonical=${build_alias} ;;
1779 esac
1780
1781  case ${target_alias} in
1782   "") target_noncanonical=${host_noncanonical} ;;
1783   *) target_noncanonical=${target_alias} ;;
1784 esac
1785
1786
1787
1788
1789 # This works around the fact that libtool configuration may change LD
1790 # for this particular configuration, but some shells, instead of
1791 # keeping the changes in LD private, export them just because LD is
1792 # exported.
1793 ORIGINAL_LD_FOR_MULTILIBS=$LD
1794
1795 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1796 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1797 LN_S=$as_ln_s
1798 if test "$LN_S" = "ln -s"; then
1799   echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 else
1802   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1803 echo "${ECHO_T}no, using $LN_S" >&6
1804 fi
1805
1806
1807 # This works around an automake problem.
1808 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1809
1810
1811
1812 # Check whether --with-cross-host or --without-cross-host was given.
1813 if test "${with_cross_host+set}" = set; then
1814   withval="$with_cross_host"
1815
1816 fi;
1817
1818
1819 # Check whether --with-newlib or --without-newlib was given.
1820 if test "${with_newlib+set}" = set; then
1821   withval="$with_newlib"
1822
1823 fi;
1824
1825 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1826 if test "${enable_version_specific_runtime_libs+set}" = set; then
1827   enableval="$enable_version_specific_runtime_libs"
1828   case "$enableval" in
1829       yes) version_specific_libs=yes ;;
1830       no)  version_specific_libs=no ;;
1831       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1832 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1833    { (exit 1); exit 1; }; };;
1834      esac
1835 else
1836   version_specific_libs=no
1837
1838 fi;
1839
1840 # Check whether --enable-plugin or --disable-plugin was given.
1841 if test "${enable_plugin+set}" = set; then
1842   enableval="$enable_plugin"
1843   case "$enableval" in
1844       yes) plugin_enabled=yes ;;
1845       no)  plugin_enabled=no ;;
1846       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1847 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1848    { (exit 1); exit 1; }; };;
1849      esac
1850 else
1851   plugin_enabled=no
1852
1853 fi;
1854
1855 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1856 if test "${enable_gconf_peer+set}" = set; then
1857   enableval="$enable_gconf_peer"
1858   case "$enableval" in
1859       yes) gconf_enabled=yes ;;
1860       no)  gconf_enabled=no ;;
1861       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1862 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1863    { (exit 1); exit 1; }; };;
1864      esac
1865 else
1866   gconf_enabled=no
1867
1868 fi;
1869
1870 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1871 if test "${enable_java_maintainer_mode+set}" = set; then
1872   enableval="$enable_java_maintainer_mode"
1873
1874 fi;
1875
1876
1877 if test "$enable_java_maintainer_mode" = yes; then
1878   JAVA_MAINTAINER_MODE_TRUE=
1879   JAVA_MAINTAINER_MODE_FALSE='#'
1880 else
1881   JAVA_MAINTAINER_MODE_TRUE='#'
1882   JAVA_MAINTAINER_MODE_FALSE=
1883 fi
1884
1885
1886 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1887
1888
1889 # (1) We use an abnormal CXX (without library references), so we
1890 # must cache it under a different name.
1891 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1892 # the non-multilib-adjusted value will be used in multilibs.
1893 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1894 # (4) As another side effect, automake doesn't automatically include them
1895 # in Makefile.in.
1896 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1897 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1898 # used in later tests.  This may not be necessary in libjava; I don't know.
1899
1900
1901 save_CXXFLAGS="$CXXFLAGS"
1902 CXXFLAGS="$CXXFLAGS -fno-builtin"
1903 ac_ext=c
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 if test -n "$ac_tool_prefix"; then
1909   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_CC+set}" = set; then
1914   echo $ECHO_N "(cached) $ECHO_C" >&6
1915 else
1916   if test -n "$CC"; then
1917   ac_cv_prog_CC="$CC" # Let the user override the test.
1918 else
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920 for as_dir in $PATH
1921 do
1922   IFS=$as_save_IFS
1923   test -z "$as_dir" && as_dir=.
1924   for ac_exec_ext in '' $ac_executable_extensions; do
1925   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1928     break 2
1929   fi
1930 done
1931 done
1932
1933 fi
1934 fi
1935 CC=$ac_cv_prog_CC
1936 if test -n "$CC"; then
1937   echo "$as_me:$LINENO: result: $CC" >&5
1938 echo "${ECHO_T}$CC" >&6
1939 else
1940   echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1942 fi
1943
1944 fi
1945 if test -z "$ac_cv_prog_CC"; then
1946   ac_ct_CC=$CC
1947   # Extract the first word of "gcc", so it can be a program name with args.
1948 set dummy gcc; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952   echo $ECHO_N "(cached) $ECHO_C" >&6
1953 else
1954   if test -n "$ac_ct_CC"; then
1955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956 else
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960   IFS=$as_save_IFS
1961   test -z "$as_dir" && as_dir=.
1962   for ac_exec_ext in '' $ac_executable_extensions; do
1963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964     ac_cv_prog_ac_ct_CC="gcc"
1965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966     break 2
1967   fi
1968 done
1969 done
1970
1971 fi
1972 fi
1973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974 if test -n "$ac_ct_CC"; then
1975   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976 echo "${ECHO_T}$ac_ct_CC" >&6
1977 else
1978   echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982   CC=$ac_ct_CC
1983 else
1984   CC="$ac_cv_prog_CC"
1985 fi
1986
1987 if test -z "$CC"; then
1988   if test -n "$ac_tool_prefix"; then
1989   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1990 set dummy ${ac_tool_prefix}cc; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_CC+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   if test -n "$CC"; then
1997   ac_cv_prog_CC="$CC" # Let the user override the test.
1998 else
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000 for as_dir in $PATH
2001 do
2002   IFS=$as_save_IFS
2003   test -z "$as_dir" && as_dir=.
2004   for ac_exec_ext in '' $ac_executable_extensions; do
2005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006     ac_cv_prog_CC="${ac_tool_prefix}cc"
2007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2008     break 2
2009   fi
2010 done
2011 done
2012
2013 fi
2014 fi
2015 CC=$ac_cv_prog_CC
2016 if test -n "$CC"; then
2017   echo "$as_me:$LINENO: result: $CC" >&5
2018 echo "${ECHO_T}$CC" >&6
2019 else
2020   echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2022 fi
2023
2024 fi
2025 if test -z "$ac_cv_prog_CC"; then
2026   ac_ct_CC=$CC
2027   # Extract the first word of "cc", so it can be a program name with args.
2028 set dummy cc; ac_word=$2
2029 echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032   echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034   if test -n "$ac_ct_CC"; then
2035   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036 else
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2044     ac_cv_prog_ac_ct_CC="cc"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050
2051 fi
2052 fi
2053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054 if test -n "$ac_ct_CC"; then
2055   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056 echo "${ECHO_T}$ac_ct_CC" >&6
2057 else
2058   echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6
2060 fi
2061
2062   CC=$ac_ct_CC
2063 else
2064   CC="$ac_cv_prog_CC"
2065 fi
2066
2067 fi
2068 if test -z "$CC"; then
2069   # Extract the first word of "cc", so it can be a program name with args.
2070 set dummy cc; ac_word=$2
2071 echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2073 if test "${ac_cv_prog_CC+set}" = set; then
2074   echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076   if test -n "$CC"; then
2077   ac_cv_prog_CC="$CC" # Let the user override the test.
2078 else
2079   ac_prog_rejected=no
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2088        ac_prog_rejected=yes
2089        continue
2090      fi
2091     ac_cv_prog_CC="cc"
2092     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093     break 2
2094   fi
2095 done
2096 done
2097
2098 if test $ac_prog_rejected = yes; then
2099   # We found a bogon in the path, so make sure we never use it.
2100   set dummy $ac_cv_prog_CC
2101   shift
2102   if test $# != 0; then
2103     # We chose a different compiler from the bogus one.
2104     # However, it has the same basename, so the bogon will be chosen
2105     # first if we set CC to just the basename; use the full file name.
2106     shift
2107     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2108   fi
2109 fi
2110 fi
2111 fi
2112 CC=$ac_cv_prog_CC
2113 if test -n "$CC"; then
2114   echo "$as_me:$LINENO: result: $CC" >&5
2115 echo "${ECHO_T}$CC" >&6
2116 else
2117   echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121 fi
2122 if test -z "$CC"; then
2123   if test -n "$ac_tool_prefix"; then
2124   for ac_prog in cl
2125   do
2126     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2127 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2128 echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   if test -n "$CC"; then
2134   ac_cv_prog_CC="$CC" # Let the user override the test.
2135 else
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137 for as_dir in $PATH
2138 do
2139   IFS=$as_save_IFS
2140   test -z "$as_dir" && as_dir=.
2141   for ac_exec_ext in '' $ac_executable_extensions; do
2142   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145     break 2
2146   fi
2147 done
2148 done
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6
2156 else
2157   echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6
2159 fi
2160
2161     test -n "$CC" && break
2162   done
2163 fi
2164 if test -z "$CC"; then
2165   ac_ct_CC=$CC
2166   for ac_prog in cl
2167 do
2168   # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173   echo $ECHO_N "(cached) $ECHO_C" >&6
2174 else
2175   if test -n "$ac_ct_CC"; then
2176   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183   for ac_exec_ext in '' $ac_executable_extensions; do
2184   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185     ac_cv_prog_ac_ct_CC="$ac_prog"
2186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190 done
2191
2192 fi
2193 fi
2194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195 if test -n "$ac_ct_CC"; then
2196   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197 echo "${ECHO_T}$ac_ct_CC" >&6
2198 else
2199   echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6
2201 fi
2202
2203   test -n "$ac_ct_CC" && break
2204 done
2205
2206   CC=$ac_ct_CC
2207 fi
2208
2209 fi
2210
2211
2212 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2213 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&2;}
2218    { (exit 1); exit 1; }; }; }
2219
2220 # Provide some information about the compiler.
2221 echo "$as_me:$LINENO:" \
2222      "checking for C compiler version" >&5
2223 ac_compiler=`set X $ac_compile; echo $2`
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2225   (eval $ac_compiler --version </dev/null >&5) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2230   (eval $ac_compiler -v </dev/null >&5) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2235   (eval $ac_compiler -V </dev/null >&5) 2>&5
2236   ac_status=$?
2237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238   (exit $ac_status); }
2239
2240 cat >conftest.$ac_ext <<_ACEOF
2241 /* confdefs.h.  */
2242 _ACEOF
2243 cat confdefs.h >>conftest.$ac_ext
2244 cat >>conftest.$ac_ext <<_ACEOF
2245 /* end confdefs.h.  */
2246
2247 int
2248 main ()
2249 {
2250
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 # FIXME: Cleanup?
2256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2257   (eval $ac_link) 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   gcc_no_link=no
2262 else
2263   gcc_no_link=yes
2264 fi
2265
2266 if test x$gcc_no_link = xyes; then
2267   # Setting cross_compile will disable run tests; it will
2268   # also disable AC_CHECK_FILE but that's generally
2269   # correct if we can't link.
2270   cross_compiling=yes
2271   EXEEXT=
2272 else
2273   cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h.  */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h.  */
2279
2280 int
2281 main ()
2282 {
2283
2284   ;
2285   return 0;
2286 }
2287 _ACEOF
2288 ac_clean_files_save=$ac_clean_files
2289 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2290 # Try to create an executable without -o first, disregard a.out.
2291 # It will help us diagnose broken compilers, and finding out an intuition
2292 # of exeext.
2293 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2294 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2295 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2296 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2297   (eval $ac_link_default) 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; then
2301   # Find the output, starting from the most likely.  This scheme is
2302 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2303 # resort.
2304
2305 # Be careful to initialize this variable, since it used to be cached.
2306 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2307 ac_cv_exeext=
2308 # b.out is created by i960 compilers.
2309 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2310 do
2311   test -f "$ac_file" || continue
2312   case $ac_file in
2313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2314         ;;
2315     conftest.$ac_ext )
2316         # This is the source file.
2317         ;;
2318     [ab].out )
2319         # We found the default executable, but exeext='' is most
2320         # certainly right.
2321         break;;
2322     *.* )
2323         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2324         # FIXME: I believe we export ac_cv_exeext for Libtool,
2325         # but it would be cool to find out if it's true.  Does anybody
2326         # maintain Libtool? --akim.
2327         export ac_cv_exeext
2328         break;;
2329     * )
2330         break;;
2331   esac
2332 done
2333 else
2334   echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2338 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2339 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2340 See \`config.log' for more details." >&5
2341 echo "$as_me: error: C compiler cannot create executables
2342 See \`config.log' for more details." >&2;}
2343    { (exit 77); exit 77; }; }; }
2344 fi
2345
2346 ac_exeext=$ac_cv_exeext
2347 echo "$as_me:$LINENO: result: $ac_file" >&5
2348 echo "${ECHO_T}$ac_file" >&6
2349
2350 # Check the compiler produces executables we can run.  If not, either
2351 # the compiler is broken, or we cross compile.
2352 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2353 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2354 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2355 # If not cross compiling, check that we can run a simple program.
2356 if test "$cross_compiling" != yes; then
2357   if { ac_try='./$ac_file'
2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359   (eval $ac_try) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; }; then
2363     cross_compiling=no
2364   else
2365     if test "$cross_compiling" = maybe; then
2366         cross_compiling=yes
2367     else
2368         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2369 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2370 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2371 If you meant to cross compile, use \`--host'.
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: cannot run C compiled programs.
2374 If you meant to cross compile, use \`--host'.
2375 See \`config.log' for more details." >&2;}
2376    { (exit 1); exit 1; }; }; }
2377     fi
2378   fi
2379 fi
2380 echo "$as_me:$LINENO: result: yes" >&5
2381 echo "${ECHO_T}yes" >&6
2382
2383 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2384 ac_clean_files=$ac_clean_files_save
2385 # Check the compiler produces executables we can run.  If not, either
2386 # the compiler is broken, or we cross compile.
2387 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2388 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2389 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2390 echo "${ECHO_T}$cross_compiling" >&6
2391
2392 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2393 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2395   (eval $ac_link) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; then
2399   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2400 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2401 # work properly (i.e., refer to `conftest.exe'), while it won't with
2402 # `rm'.
2403 for ac_file in conftest.exe conftest conftest.*; do
2404   test -f "$ac_file" || continue
2405   case $ac_file in
2406     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2407     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408           export ac_cv_exeext
2409           break;;
2410     * ) break;;
2411   esac
2412 done
2413 else
2414   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2415 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2416 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2417 See \`config.log' for more details." >&5
2418 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2419 See \`config.log' for more details." >&2;}
2420    { (exit 1); exit 1; }; }; }
2421 fi
2422
2423 rm -f conftest$ac_cv_exeext
2424 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2425 echo "${ECHO_T}$ac_cv_exeext" >&6
2426
2427 rm -f conftest.$ac_ext
2428 EXEEXT=$ac_cv_exeext
2429 ac_exeext=$EXEEXT
2430 fi
2431 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2432 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2433 if test "${ac_cv_objext+set}" = set; then
2434   echo $ECHO_N "(cached) $ECHO_C" >&6
2435 else
2436   cat >conftest.$ac_ext <<_ACEOF
2437 /* confdefs.h.  */
2438 _ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h.  */
2442
2443 int
2444 main ()
2445 {
2446
2447   ;
2448   return 0;
2449 }
2450 _ACEOF
2451 rm -f conftest.o conftest.obj
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453   (eval $ac_compile) 2>&5
2454   ac_status=$?
2455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456   (exit $ac_status); }; then
2457   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2458   case $ac_file in
2459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2460     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2461        break;;
2462   esac
2463 done
2464 else
2465   echo "$as_me: failed program was:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2467
2468 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }; }
2475 fi
2476
2477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478 fi
2479 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480 echo "${ECHO_T}$ac_cv_objext" >&6
2481 OBJEXT=$ac_cv_objext
2482 ac_objext=$OBJEXT
2483 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486   echo $ECHO_N "(cached) $ECHO_C" >&6
2487 else
2488   cat >conftest.$ac_ext <<_ACEOF
2489 /* confdefs.h.  */
2490 _ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h.  */
2494
2495 int
2496 main ()
2497 {
2498 #ifndef __GNUC__
2499        choke me
2500 #endif
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 rm -f conftest.$ac_objext
2507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508   (eval $ac_compile) 2>conftest.er1
2509   ac_status=$?
2510   grep -v '^ *+' conftest.er1 >conftest.err
2511   rm -f conftest.er1
2512   cat conftest.err >&5
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); } &&
2515          { ac_try='test -z "$ac_c_werror_flag"
2516                          || test ! -s conftest.err'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   ac_compiler_gnu=yes
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 ac_compiler_gnu=no
2534 fi
2535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2537
2538 fi
2539 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2540 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2541 GCC=`test $ac_compiler_gnu = yes && echo yes`
2542 ac_test_CFLAGS=${CFLAGS+set}
2543 ac_save_CFLAGS=$CFLAGS
2544 CFLAGS="-g"
2545 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2546 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2547 if test "${ac_cv_prog_cc_g+set}" = set; then
2548   echo $ECHO_N "(cached) $ECHO_C" >&6
2549 else
2550   cat >conftest.$ac_ext <<_ACEOF
2551 /* confdefs.h.  */
2552 _ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h.  */
2556
2557 int
2558 main ()
2559 {
2560
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567   (eval $ac_compile) 2>conftest.er1
2568   ac_status=$?
2569   grep -v '^ *+' conftest.er1 >conftest.err
2570   rm -f conftest.er1
2571   cat conftest.err >&5
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); } &&
2574          { ac_try='test -z "$ac_c_werror_flag"
2575                          || test ! -s conftest.err'
2576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577   (eval $ac_try) 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583   (eval $ac_try) 2>&5
2584   ac_status=$?
2585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586   (exit $ac_status); }; }; then
2587   ac_cv_prog_cc_g=yes
2588 else
2589   echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_cv_prog_cc_g=no
2593 fi
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2598 if test "$ac_test_CFLAGS" = set; then
2599   CFLAGS=$ac_save_CFLAGS
2600 elif test $ac_cv_prog_cc_g = yes; then
2601   if test "$GCC" = yes; then
2602     CFLAGS="-g -O2"
2603   else
2604     CFLAGS="-g"
2605   fi
2606 else
2607   if test "$GCC" = yes; then
2608     CFLAGS="-O2"
2609   else
2610     CFLAGS=
2611   fi
2612 fi
2613 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2614 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2615 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2616   echo $ECHO_N "(cached) $ECHO_C" >&6
2617 else
2618   ac_cv_prog_cc_stdc=no
2619 ac_save_CC=$CC
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626 #include <stdarg.h>
2627 #include <stdio.h>
2628 #include <sys/types.h>
2629 #include <sys/stat.h>
2630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2631 struct buf { int x; };
2632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2633 static char *e (p, i)
2634      char **p;
2635      int i;
2636 {
2637   return p[i];
2638 }
2639 static char *f (char * (*g) (char **, int), char **p, ...)
2640 {
2641   char *s;
2642   va_list v;
2643   va_start (v,p);
2644   s = g (p, va_arg (v,int));
2645   va_end (v);
2646   return s;
2647 }
2648
2649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2650    function prototypes and stuff, but not '\xHH' hex character constants.
2651    These don't provoke an error unfortunately, instead are silently treated
2652    as 'x'.  The following induces an error, until -std1 is added to get
2653    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2654    array size at least.  It's necessary to write '\x00'==0 to get something
2655    that's true only with -std1.  */
2656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2657
2658 int test (int i, double x);
2659 struct s1 {int (*f) (int a);};
2660 struct s2 {int (*f) (double a);};
2661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2662 int argc;
2663 char **argv;
2664 int
2665 main ()
2666 {
2667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 # Don't try gcc -ansi; that turns off useful extensions and
2673 # breaks some systems' header files.
2674 # AIX                   -qlanglvl=ansi
2675 # Ultrix and OSF/1      -std1
2676 # HP-UX 10.20 and later -Ae
2677 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2678 # SVR4                  -Xc -D__EXTENSIONS__
2679 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2680 do
2681   CC="$ac_save_CC $ac_arg"
2682   rm -f conftest.$ac_objext
2683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684   (eval $ac_compile) 2>conftest.er1
2685   ac_status=$?
2686   grep -v '^ *+' conftest.er1 >conftest.err
2687   rm -f conftest.er1
2688   cat conftest.err >&5
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); } &&
2691          { ac_try='test -z "$ac_c_werror_flag"
2692                          || test ! -s conftest.err'
2693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694   (eval $ac_try) 2>&5
2695   ac_status=$?
2696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697   (exit $ac_status); }; } &&
2698          { ac_try='test -s conftest.$ac_objext'
2699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700   (eval $ac_try) 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; }; then
2704   ac_cv_prog_cc_stdc=$ac_arg
2705 break
2706 else
2707   echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.$ac_ext >&5
2709
2710 fi
2711 rm -f conftest.err conftest.$ac_objext
2712 done
2713 rm -f conftest.$ac_ext conftest.$ac_objext
2714 CC=$ac_save_CC
2715
2716 fi
2717
2718 case "x$ac_cv_prog_cc_stdc" in
2719   x|xno)
2720     echo "$as_me:$LINENO: result: none needed" >&5
2721 echo "${ECHO_T}none needed" >&6 ;;
2722   *)
2723     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2724 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2725     CC="$CC $ac_cv_prog_cc_stdc" ;;
2726 esac
2727
2728 # Some people use a C++ compiler to compile C.  Since we use `exit',
2729 # in C++ we need to declare it.  In case someone uses the same compiler
2730 # for both compiling C and C++ we need to have the C++ compiler decide
2731 # the declaration of exit, since it's the most demanding environment.
2732 cat >conftest.$ac_ext <<_ACEOF
2733 #ifndef __cplusplus
2734   choke me
2735 #endif
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739   (eval $ac_compile) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_c_werror_flag"
2747                          || test ! -s conftest.err'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   for ac_declaration in \
2760    '' \
2761    'extern "C" void std::exit (int) throw (); using std::exit;' \
2762    'extern "C" void std::exit (int); using std::exit;' \
2763    'extern "C" void exit (int) throw ();' \
2764    'extern "C" void exit (int);' \
2765    'void exit (int);'
2766 do
2767   cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 $ac_declaration
2774 #include <stdlib.h>
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   :
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 continue
2811 fi
2812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813   cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 $ac_declaration
2820 int
2821 main ()
2822 {
2823 exit (42);
2824   ;
2825   return 0;
2826 }
2827 _ACEOF
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830   (eval $ac_compile) 2>conftest.er1
2831   ac_status=$?
2832   grep -v '^ *+' conftest.er1 >conftest.err
2833   rm -f conftest.er1
2834   cat conftest.err >&5
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); } &&
2837          { ac_try='test -z "$ac_c_werror_flag"
2838                          || test ! -s conftest.err'
2839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840   (eval $ac_try) 2>&5
2841   ac_status=$?
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); }; } &&
2844          { ac_try='test -s conftest.$ac_objext'
2845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846   (eval $ac_try) 2>&5
2847   ac_status=$?
2848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849   (exit $ac_status); }; }; then
2850   break
2851 else
2852   echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 fi
2856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2857 done
2858 rm -f conftest*
2859 if test -n "$ac_declaration"; then
2860   echo '#ifdef __cplusplus' >>confdefs.h
2861   echo $ac_declaration      >>confdefs.h
2862   echo '#endif'             >>confdefs.h
2863 fi
2864
2865 else
2866   echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2868
2869 fi
2870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2871 ac_ext=c
2872 ac_cpp='$CPP $CPPFLAGS'
2873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2876
2877 ac_ext=cc
2878 ac_cpp='$CXXCPP $CPPFLAGS'
2879 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2884   do
2885     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2887 echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889 if test "${ac_cv_prog_CXX+set}" = set; then
2890   echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892   if test -n "$CXX"; then
2893   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900   for ac_exec_ext in '' $ac_executable_extensions; do
2901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904     break 2
2905   fi
2906 done
2907 done
2908
2909 fi
2910 fi
2911 CXX=$ac_cv_prog_CXX
2912 if test -n "$CXX"; then
2913   echo "$as_me:$LINENO: result: $CXX" >&5
2914 echo "${ECHO_T}$CXX" >&6
2915 else
2916   echo "$as_me:$LINENO: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2918 fi
2919
2920     test -n "$CXX" && break
2921   done
2922 fi
2923 if test -z "$CXX"; then
2924   ac_ct_CXX=$CXX
2925   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2926 do
2927   # Extract the first word of "$ac_prog", so it can be a program name with args.
2928 set dummy $ac_prog; ac_word=$2
2929 echo "$as_me:$LINENO: checking for $ac_word" >&5
2930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2931 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2932   echo $ECHO_N "(cached) $ECHO_C" >&6
2933 else
2934   if test -n "$ac_ct_CXX"; then
2935   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2936 else
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940   IFS=$as_save_IFS
2941   test -z "$as_dir" && as_dir=.
2942   for ac_exec_ext in '' $ac_executable_extensions; do
2943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2944     ac_cv_prog_ac_ct_CXX="$ac_prog"
2945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946     break 2
2947   fi
2948 done
2949 done
2950
2951 fi
2952 fi
2953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2954 if test -n "$ac_ct_CXX"; then
2955   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2956 echo "${ECHO_T}$ac_ct_CXX" >&6
2957 else
2958   echo "$as_me:$LINENO: result: no" >&5
2959 echo "${ECHO_T}no" >&6
2960 fi
2961
2962   test -n "$ac_ct_CXX" && break
2963 done
2964 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2965
2966   CXX=$ac_ct_CXX
2967 fi
2968
2969
2970 # Provide some information about the compiler.
2971 echo "$as_me:$LINENO:" \
2972      "checking for C++ compiler version" >&5
2973 ac_compiler=`set X $ac_compile; echo $2`
2974 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2975   (eval $ac_compiler --version </dev/null >&5) 2>&5
2976   ac_status=$?
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); }
2979 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2980   (eval $ac_compiler -v </dev/null >&5) 2>&5
2981   ac_status=$?
2982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); }
2984 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2985   (eval $ac_compiler -V </dev/null >&5) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }
2989
2990 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2991 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2992 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2993   echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995   cat >conftest.$ac_ext <<_ACEOF
2996 /* confdefs.h.  */
2997 _ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h.  */
3001
3002 int
3003 main ()
3004 {
3005 #ifndef __GNUC__
3006        choke me
3007 #endif
3008
3009   ;
3010   return 0;
3011 }
3012 _ACEOF
3013 rm -f conftest.$ac_objext
3014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3015   (eval $ac_compile) 2>conftest.er1
3016   ac_status=$?
3017   grep -v '^ *+' conftest.er1 >conftest.err
3018   rm -f conftest.er1
3019   cat conftest.err >&5
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); } &&
3022          { ac_try='test -z "$ac_cxx_werror_flag"
3023                          || test ! -s conftest.err'
3024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025   (eval $ac_try) 2>&5
3026   ac_status=$?
3027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028   (exit $ac_status); }; } &&
3029          { ac_try='test -s conftest.$ac_objext'
3030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031   (eval $ac_try) 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; }; then
3035   ac_compiler_gnu=yes
3036 else
3037   echo "$as_me: failed program was:" >&5
3038 sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 ac_compiler_gnu=no
3041 fi
3042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3043 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3044
3045 fi
3046 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3047 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3048 GXX=`test $ac_compiler_gnu = yes && echo yes`
3049 ac_test_CXXFLAGS=${CXXFLAGS+set}
3050 ac_save_CXXFLAGS=$CXXFLAGS
3051 CXXFLAGS="-g"
3052 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3053 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3054 if test "${ac_cv_prog_cxx_g+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3074   (eval $ac_compile) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } &&
3081          { ac_try='test -z "$ac_cxx_werror_flag"
3082                          || test ! -s conftest.err'
3083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084   (eval $ac_try) 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090   (eval $ac_try) 2>&5
3091   ac_status=$?
3092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093   (exit $ac_status); }; }; then
3094   ac_cv_prog_cxx_g=yes
3095 else
3096   echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 ac_cv_prog_cxx_g=no
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 fi
3103 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3104 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3105 if test "$ac_test_CXXFLAGS" = set; then
3106   CXXFLAGS=$ac_save_CXXFLAGS
3107 elif test $ac_cv_prog_cxx_g = yes; then
3108   if test "$GXX" = yes; then
3109     CXXFLAGS="-g -O2"
3110   else
3111     CXXFLAGS="-g"
3112   fi
3113 else
3114   if test "$GXX" = yes; then
3115     CXXFLAGS="-O2"
3116   else
3117     CXXFLAGS=
3118   fi
3119 fi
3120 for ac_declaration in \
3121    '' \
3122    'extern "C" void std::exit (int) throw (); using std::exit;' \
3123    'extern "C" void std::exit (int); using std::exit;' \
3124    'extern "C" void exit (int) throw ();' \
3125    'extern "C" void exit (int);' \
3126    'void exit (int);'
3127 do
3128   cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h.  */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h.  */
3134 $ac_declaration
3135 #include <stdlib.h>
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   :
3167 else
3168   echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 continue
3172 fi
3173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3174   cat >conftest.$ac_ext <<_ACEOF
3175 /* confdefs.h.  */
3176 _ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h.  */
3180 $ac_declaration
3181 int
3182 main ()
3183 {
3184 exit (42);
3185   ;
3186   return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191   (eval $ac_compile) 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } &&
3198          { ac_try='test -z "$ac_cxx_werror_flag"
3199                          || test ! -s conftest.err'
3200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3201   (eval $ac_try) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }; } &&
3205          { ac_try='test -s conftest.$ac_objext'
3206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207   (eval $ac_try) 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   break
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 fi
3217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3218 done
3219 rm -f conftest*
3220 if test -n "$ac_declaration"; then
3221   echo '#ifdef __cplusplus' >>confdefs.h
3222   echo $ac_declaration      >>confdefs.h
3223   echo '#endif'             >>confdefs.h
3224 fi
3225
3226 ac_ext=c
3227 ac_cpp='$CPP $CPPFLAGS'
3228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
3232 CXXFLAGS="$save_CXXFLAGS"
3233
3234
3235
3236
3237
3238 am__api_version="1.9"
3239 # Find a good install program.  We prefer a C program (faster),
3240 # so one script is as good as another.  But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3245 # AIX /bin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # OS/2's system install, which has a completely different semantic
3251 # ./install, which can be erroneously created by make from ./install.sh.
3252 # Reject install programs that cannot install multiple files.
3253 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3255 if test -z "$INSTALL"; then
3256 if test "${ac_cv_path_install+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   # Account for people who put trailing slashes in PATH elements.
3265 case $as_dir/ in
3266   ./ | .// | /cC/* | \
3267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3269   /usr/ucb/* ) ;;
3270   *)
3271     # OSF1 and SCO ODT 3.0 have their own names for install.
3272     # Don't use installbsd from OSF since it installs stuff as root
3273     # by default.
3274     for ac_prog in ginstall scoinst install; do
3275       for ac_exec_ext in '' $ac_executable_extensions; do
3276         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3277           if test $ac_prog = install &&
3278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279             # AIX install.  It has an incompatible calling convention.
3280             :
3281           elif test $ac_prog = install &&
3282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283             # program-specific install script used by HP pwplus--don't use.
3284             :
3285           else
3286             rm -rf conftest.one conftest.two conftest.dir
3287             echo one > conftest.one
3288             echo two > conftest.two
3289             mkdir conftest.dir
3290             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291               test -s conftest.one && test -s conftest.two &&
3292               test -s conftest.dir/conftest.one &&
3293               test -s conftest.dir/conftest.two
3294             then
3295               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3296               break 3
3297             fi
3298           fi
3299         fi
3300       done
3301     done
3302     ;;
3303 esac
3304 done
3305
3306 rm -rf conftest.one conftest.two conftest.dir
3307
3308 fi
3309   if test "${ac_cv_path_install+set}" = set; then
3310     INSTALL=$ac_cv_path_install
3311   else
3312     # As a last resort, use the slow shell script.  Don't cache a
3313     # value for INSTALL within a source directory, because that will
3314     # break other packages using the cache if that directory is
3315     # removed, or if the value is a relative name.
3316     INSTALL=$ac_install_sh
3317   fi
3318 fi
3319 echo "$as_me:$LINENO: result: $INSTALL" >&5
3320 echo "${ECHO_T}$INSTALL" >&6
3321
3322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3323 # It thinks the first close brace ends the variable substitution.
3324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325
3326 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327
3328 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3329
3330 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3331 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3332 # Just in case
3333 sleep 1
3334 echo timestamp > conftest.file
3335 # Do `set' in a subshell so we don't clobber the current shell's
3336 # arguments.  Must try -L first in case configure is actually a
3337 # symlink; some systems play weird games with the mod time of symlinks
3338 # (eg FreeBSD returns the mod time of the symlink's containing
3339 # directory).
3340 if (
3341    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3342    if test "$*" = "X"; then
3343       # -L didn't work.
3344       set X `ls -t $srcdir/configure conftest.file`
3345    fi
3346    rm -f conftest.file
3347    if test "$*" != "X $srcdir/configure conftest.file" \
3348       && test "$*" != "X conftest.file $srcdir/configure"; then
3349
3350       # If neither matched, then we have a broken ls.  This can happen
3351       # if, for instance, CONFIG_SHELL is bash and it inherits a
3352       # broken ls alias from the environment.  This has actually
3353       # happened.  Such a system could not be considered "sane".
3354       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3355 alias in your environment" >&5
3356 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3357 alias in your environment" >&2;}
3358    { (exit 1); exit 1; }; }
3359    fi
3360
3361    test "$2" = conftest.file
3362    )
3363 then
3364    # Ok.
3365    :
3366 else
3367    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3368 Check your system clock" >&5
3369 echo "$as_me: error: newly created file is older than distributed files!
3370 Check your system clock" >&2;}
3371    { (exit 1); exit 1; }; }
3372 fi
3373 echo "$as_me:$LINENO: result: yes" >&5
3374 echo "${ECHO_T}yes" >&6
3375 test "$program_prefix" != NONE &&
3376   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3377 # Use a double $ so make ignores it.
3378 test "$program_suffix" != NONE &&
3379   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3380 # Double any \ or $.  echo might interpret backslashes.
3381 # By default was `s,x,x', remove it if useless.
3382 cat <<\_ACEOF >conftest.sed
3383 s/[\\$]/&&/g;s/;s,x,x,$//
3384 _ACEOF
3385 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3386 rm conftest.sed
3387
3388 # expand $ac_aux_dir to an absolute path
3389 am_aux_dir=`cd $ac_aux_dir && pwd`
3390
3391 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3392 # Use eval to expand $SHELL
3393 if eval "$MISSING --run true"; then
3394   am_missing_run="$MISSING --run "
3395 else
3396   am_missing_run=
3397   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3398 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3399 fi
3400
3401 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3402   # We used to keeping the `.' as first argument, in order to
3403   # allow $(mkdir_p) to be used without argument.  As in
3404   #   $(mkdir_p) $(somedir)
3405   # where $(somedir) is conditionally defined.  However this is wrong
3406   # for two reasons:
3407   #  1. if the package is installed by a user who cannot write `.'
3408   #     make install will fail,
3409   #  2. the above comment should most certainly read
3410   #     $(mkdir_p) $(DESTDIR)$(somedir)
3411   #     so it does not work when $(somedir) is undefined and
3412   #     $(DESTDIR) is not.
3413   #  To support the latter case, we have to write
3414   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3415   #  so the `.' trick is pointless.
3416   mkdir_p='mkdir -p --'
3417 else
3418   # On NextStep and OpenStep, the `mkdir' command does not
3419   # recognize any option.  It will interpret all options as
3420   # directories to create, and then abort because `.' already
3421   # exists.
3422   for d in ./-p ./--version;
3423   do
3424     test -d $d && rmdir $d
3425   done
3426   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3427   if test -f "$ac_aux_dir/mkinstalldirs"; then
3428     mkdir_p='$(mkinstalldirs)'
3429   else
3430     mkdir_p='$(install_sh) -d'
3431   fi
3432 fi
3433
3434 for ac_prog in gawk mawk nawk awk
3435 do
3436   # Extract the first word of "$ac_prog", so it can be a program name with args.
3437 set dummy $ac_prog; ac_word=$2
3438 echo "$as_me:$LINENO: checking for $ac_word" >&5
3439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3440 if test "${ac_cv_prog_AWK+set}" = set; then
3441   echo $ECHO_N "(cached) $ECHO_C" >&6
3442 else
3443   if test -n "$AWK"; then
3444   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3448 do
3449   IFS=$as_save_IFS
3450   test -z "$as_dir" && as_dir=.
3451   for ac_exec_ext in '' $ac_executable_extensions; do
3452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3453     ac_cv_prog_AWK="$ac_prog"
3454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3455     break 2
3456   fi
3457 done
3458 done
3459
3460 fi
3461 fi
3462 AWK=$ac_cv_prog_AWK
3463 if test -n "$AWK"; then
3464   echo "$as_me:$LINENO: result: $AWK" >&5
3465 echo "${ECHO_T}$AWK" >&6
3466 else
3467   echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3469 fi
3470
3471   test -n "$AWK" && break
3472 done
3473
3474 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3475 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3476 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3477 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   cat >conftest.make <<\_ACEOF
3481 all:
3482         @echo 'ac_maketemp="$(MAKE)"'
3483 _ACEOF
3484 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3485 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3486 if test -n "$ac_maketemp"; then
3487   eval ac_cv_prog_make_${ac_make}_set=yes
3488 else
3489   eval ac_cv_prog_make_${ac_make}_set=no
3490 fi
3491 rm -f conftest.make
3492 fi
3493 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3494   echo "$as_me:$LINENO: result: yes" >&5
3495 echo "${ECHO_T}yes" >&6
3496   SET_MAKE=
3497 else
3498   echo "$as_me:$LINENO: result: no" >&5
3499 echo "${ECHO_T}no" >&6
3500   SET_MAKE="MAKE=${MAKE-make}"
3501 fi
3502
3503 rm -rf .tst 2>/dev/null
3504 mkdir .tst 2>/dev/null
3505 if test -d .tst; then
3506   am__leading_dot=.
3507 else
3508   am__leading_dot=_
3509 fi
3510 rmdir .tst 2>/dev/null
3511
3512 DEPDIR="${am__leading_dot}deps"
3513
3514           ac_config_commands="$ac_config_commands depfiles"
3515
3516
3517 am_make=${MAKE-make}
3518 cat > confinc << 'END'
3519 am__doit:
3520         @echo done
3521 .PHONY: am__doit
3522 END
3523 # If we don't find an include directive, just comment out the code.
3524 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3526 am__include="#"
3527 am__quote=
3528 _am_result=none
3529 # First try GNU make style include.
3530 echo "include confinc" > confmf
3531 # We grep out `Entering directory' and `Leaving directory'
3532 # messages which can occur if `w' ends up in MAKEFLAGS.
3533 # In particular we don't look at `^make:' because GNU make might
3534 # be invoked under some other name (usually "gmake"), in which
3535 # case it prints its new name instead of `make'.
3536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3537    am__include=include
3538    am__quote=
3539    _am_result=GNU
3540 fi
3541 # Now try BSD make style include.
3542 if test "$am__include" = "#"; then
3543    echo '.include "confinc"' > confmf
3544    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3545       am__include=.include
3546       am__quote="\""
3547       _am_result=BSD
3548    fi
3549 fi
3550
3551
3552 echo "$as_me:$LINENO: result: $_am_result" >&5
3553 echo "${ECHO_T}$_am_result" >&6
3554 rm -f confinc confmf
3555
3556 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3557 if test "${enable_dependency_tracking+set}" = set; then
3558   enableval="$enable_dependency_tracking"
3559
3560 fi;
3561 if test "x$enable_dependency_tracking" != xno; then
3562   am_depcomp="$ac_aux_dir/depcomp"
3563   AMDEPBACKSLASH='\'
3564 fi
3565
3566
3567 if test "x$enable_dependency_tracking" != xno; then
3568   AMDEP_TRUE=
3569   AMDEP_FALSE='#'
3570 else
3571   AMDEP_TRUE='#'
3572   AMDEP_FALSE=
3573 fi
3574
3575
3576
3577 # test to see if srcdir already configured
3578 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3579    test -f $srcdir/config.status; then
3580   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3581 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3582    { (exit 1); exit 1; }; }
3583 fi
3584
3585 # test whether we have cygpath
3586 if test -z "$CYGPATH_W"; then
3587   if (cygpath --version) >/dev/null 2>/dev/null; then
3588     CYGPATH_W='cygpath -w'
3589   else
3590     CYGPATH_W=echo
3591   fi
3592 fi
3593
3594
3595 # Define the identity of the package.
3596  PACKAGE='libjava'
3597  VERSION='version-unused'
3598
3599
3600 cat >>confdefs.h <<_ACEOF
3601 #define PACKAGE "$PACKAGE"
3602 _ACEOF
3603
3604
3605 cat >>confdefs.h <<_ACEOF
3606 #define VERSION "$VERSION"
3607 _ACEOF
3608
3609 # Some tools Automake needs.
3610
3611 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3612
3613
3614 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3615
3616
3617 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3618
3619
3620 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3621
3622
3623 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3624
3625 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3626
3627 # Installed binaries are usually stripped using `strip' when the user
3628 # run `make install-strip'.  However `strip' might not be the right
3629 # tool to use in cross-compilation environments, therefore Automake
3630 # will honor the `STRIP' environment variable to overrule this program.
3631 if test "$cross_compiling" != no; then
3632   if test -n "$ac_tool_prefix"; then
3633   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}strip; ac_word=$2
3635 echo "$as_me:$LINENO: checking for $ac_word" >&5
3636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3637 if test "${ac_cv_prog_STRIP+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640   if test -n "$STRIP"; then
3641   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646   IFS=$as_save_IFS
3647   test -z "$as_dir" && as_dir=.
3648   for ac_exec_ext in '' $ac_executable_extensions; do
3649   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3651     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652     break 2
3653   fi
3654 done
3655 done
3656
3657 fi
3658 fi
3659 STRIP=$ac_cv_prog_STRIP
3660 if test -n "$STRIP"; then
3661   echo "$as_me:$LINENO: result: $STRIP" >&5
3662 echo "${ECHO_T}$STRIP" >&6
3663 else
3664   echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666 fi
3667
3668 fi
3669 if test -z "$ac_cv_prog_STRIP"; then
3670   ac_ct_STRIP=$STRIP
3671   # Extract the first word of "strip", so it can be a program name with args.
3672 set dummy strip; ac_word=$2
3673 echo "$as_me:$LINENO: checking for $ac_word" >&5
3674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3676   echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678   if test -n "$ac_ct_STRIP"; then
3679   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3680 else
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_prog_ac_ct_STRIP="strip"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3696 fi
3697 fi
3698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3699 if test -n "$ac_ct_STRIP"; then
3700   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3701 echo "${ECHO_T}$ac_ct_STRIP" >&6
3702 else
3703   echo "$as_me:$LINENO: result: no" >&5
3704 echo "${ECHO_T}no" >&6
3705 fi
3706
3707   STRIP=$ac_ct_STRIP
3708 else
3709   STRIP="$ac_cv_prog_STRIP"
3710 fi
3711
3712 fi
3713 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3714
3715 # We need awk for the "check" target.  The system "awk" is bad on
3716 # some platforms.
3717 # Always define AMTAR for backward compatibility.
3718
3719 AMTAR=${AMTAR-"${am_missing_run}tar"}
3720
3721 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3722
3723
3724
3725
3726 depcc="$CC"   am_compiler_list=
3727
3728 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3729 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3730 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3734   # We make a subdir and do the tests there.  Otherwise we can end up
3735   # making bogus files that we don't know about and never remove.  For
3736   # instance it was reported that on HP-UX the gcc test will end up
3737   # making a dummy file named `D' -- because `-MD' means `put the output
3738   # in D'.
3739   mkdir conftest.dir
3740   # Copy depcomp to subdir because otherwise we won't find it if we're
3741   # using a relative directory.
3742   cp "$am_depcomp" conftest.dir
3743   cd conftest.dir
3744   # We will build objects and dependencies in a subdirectory because
3745   # it helps to detect inapplicable dependency modes.  For instance
3746   # both Tru64's cc and ICC support -MD to output dependencies as a
3747   # side effect of compilation, but ICC will put the dependencies in
3748   # the current directory while Tru64 will put them in the object
3749   # directory.
3750   mkdir sub
3751
3752   am_cv_CC_dependencies_compiler_type=none
3753   if test "$am_compiler_list" = ""; then
3754      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3755   fi
3756   for depmode in $am_compiler_list; do
3757     # Setup a source with many dependencies, because some compilers
3758     # like to wrap large dependency lists on column 80 (with \), and
3759     # we should not choose a depcomp mode which is confused by this.
3760     #
3761     # We need to recreate these files for each test, as the compiler may
3762     # overwrite some of them when testing with obscure command lines.
3763     # This happens at least with the AIX C compiler.
3764     : > sub/conftest.c
3765     for i in 1 2 3 4 5 6; do
3766       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3767       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3768       # Solaris 8's {/usr,}/bin/sh.
3769       touch sub/conftst$i.h
3770     done
3771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3772
3773     case $depmode in
3774     nosideeffect)
3775       # after this tag, mechanisms are not by side-effect, so they'll
3776       # only be used when explicitly requested
3777       if test "x$enable_dependency_tracking" = xyes; then
3778         continue
3779       else
3780         break
3781       fi
3782       ;;
3783     none) break ;;
3784     esac
3785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3786     # mode.  It turns out that the SunPro C++ compiler does not properly
3787     # handle `-M -o', and we need to detect this.
3788     if depmode=$depmode \
3789        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3790        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3791        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3792          >/dev/null 2>conftest.err &&
3793        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3794        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3795        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3796       # icc doesn't choke on unknown options, it will just issue warnings
3797       # or remarks (even with -Werror).  So we grep stderr for any message
3798       # that says an option was ignored or not supported.
3799       # When given -MP, icc 7.0 and 7.1 complain thusly:
3800       #   icc: Command line warning: ignoring option '-M'; no argument required
3801       # The diagnosis changed in icc 8.0:
3802       #   icc: Command line remark: option '-MP' not supported
3803       if (grep 'ignoring option' conftest.err ||
3804           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3805         am_cv_CC_dependencies_compiler_type=$depmode
3806         break
3807       fi
3808     fi
3809   done
3810
3811   cd ..
3812   rm -rf conftest.dir
3813 else
3814   am_cv_CC_dependencies_compiler_type=none
3815 fi
3816
3817 fi
3818 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3819 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3820 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821
3822
3823
3824 if
3825   test "x$enable_dependency_tracking" != xno \
3826   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3827   am__fastdepCC_TRUE=
3828   am__fastdepCC_FALSE='#'
3829 else
3830   am__fastdepCC_TRUE='#'
3831   am__fastdepCC_FALSE=
3832 fi
3833
3834
3835 depcc="$CXX"  am_compiler_list=
3836
3837 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3838 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3839 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3843   # We make a subdir and do the tests there.  Otherwise we can end up
3844   # making bogus files that we don't know about and never remove.  For
3845   # instance it was reported that on HP-UX the gcc test will end up
3846   # making a dummy file named `D' -- because `-MD' means `put the output
3847   # in D'.
3848   mkdir conftest.dir
3849   # Copy depcomp to subdir because otherwise we won't find it if we're
3850   # using a relative directory.
3851   cp "$am_depcomp" conftest.dir
3852   cd conftest.dir
3853   # We will build objects and dependencies in a subdirectory because
3854   # it helps to detect inapplicable dependency modes.  For instance
3855   # both Tru64's cc and ICC support -MD to output dependencies as a
3856   # side effect of compilation, but ICC will put the dependencies in
3857   # the current directory while Tru64 will put them in the object
3858   # directory.
3859   mkdir sub
3860
3861   am_cv_CXX_dependencies_compiler_type=none
3862   if test "$am_compiler_list" = ""; then
3863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3864   fi
3865   for depmode in $am_compiler_list; do
3866     # Setup a source with many dependencies, because some compilers
3867     # like to wrap large dependency lists on column 80 (with \), and
3868     # we should not choose a depcomp mode which is confused by this.
3869     #
3870     # We need to recreate these files for each test, as the compiler may
3871     # overwrite some of them when testing with obscure command lines.
3872     # This happens at least with the AIX C compiler.
3873     : > sub/conftest.c
3874     for i in 1 2 3 4 5 6; do
3875       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3876       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3877       # Solaris 8's {/usr,}/bin/sh.
3878       touch sub/conftst$i.h
3879     done
3880     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3881
3882     case $depmode in
3883     nosideeffect)
3884       # after this tag, mechanisms are not by side-effect, so they'll
3885       # only be used when explicitly requested
3886       if test "x$enable_dependency_tracking" = xyes; then
3887         continue
3888       else
3889         break
3890       fi
3891       ;;
3892     none) break ;;
3893     esac
3894     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3895     # mode.  It turns out that the SunPro C++ compiler does not properly
3896     # handle `-M -o', and we need to detect this.
3897     if depmode=$depmode \
3898        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3899        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3900        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3901          >/dev/null 2>conftest.err &&
3902        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3904        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905       # icc doesn't choke on unknown options, it will just issue warnings
3906       # or remarks (even with -Werror).  So we grep stderr for any message
3907       # that says an option was ignored or not supported.
3908       # When given -MP, icc 7.0 and 7.1 complain thusly:
3909       #   icc: Command line warning: ignoring option '-M'; no argument required
3910       # The diagnosis changed in icc 8.0:
3911       #   icc: Command line remark: option '-MP' not supported
3912       if (grep 'ignoring option' conftest.err ||
3913           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914         am_cv_CXX_dependencies_compiler_type=$depmode
3915         break
3916       fi
3917     fi
3918   done
3919
3920   cd ..
3921   rm -rf conftest.dir
3922 else
3923   am_cv_CXX_dependencies_compiler_type=none
3924 fi
3925
3926 fi
3927 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3928 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3929 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3930
3931
3932
3933 if
3934   test "x$enable_dependency_tracking" != xno \
3935   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3936   am__fastdepCXX_TRUE=
3937   am__fastdepCXX_FALSE='#'
3938 else
3939   am__fastdepCXX_TRUE='#'
3940   am__fastdepCXX_FALSE=
3941 fi
3942
3943
3944
3945
3946 if test -n "$ac_tool_prefix"; then
3947   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3948 set dummy ${ac_tool_prefix}as; ac_word=$2
3949 echo "$as_me:$LINENO: checking for $ac_word" >&5
3950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3951 if test "${ac_cv_prog_AS+set}" = set; then
3952   echo $ECHO_N "(cached) $ECHO_C" >&6
3953 else
3954   if test -n "$AS"; then
3955   ac_cv_prog_AS="$AS" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3959 do
3960   IFS=$as_save_IFS
3961   test -z "$as_dir" && as_dir=.
3962   for ac_exec_ext in '' $ac_executable_extensions; do
3963   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3964     ac_cv_prog_AS="${ac_tool_prefix}as"
3965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966     break 2
3967   fi
3968 done
3969 done
3970
3971 fi
3972 fi
3973 AS=$ac_cv_prog_AS
3974 if test -n "$AS"; then
3975   echo "$as_me:$LINENO: result: $AS" >&5
3976 echo "${ECHO_T}$AS" >&6
3977 else
3978   echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3980 fi
3981
3982 fi
3983 if test -z "$ac_cv_prog_AS"; then
3984   ac_ct_AS=$AS
3985   # Extract the first word of "as", so it can be a program name with args.
3986 set dummy as; ac_word=$2
3987 echo "$as_me:$LINENO: checking for $ac_word" >&5
3988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3989 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   if test -n "$ac_ct_AS"; then
3993   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3994 else
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_prog_ac_ct_AS="as"
4003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007 done
4008
4009 fi
4010 fi
4011 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4012 if test -n "$ac_ct_AS"; then
4013   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4014 echo "${ECHO_T}$ac_ct_AS" >&6
4015 else
4016   echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6
4018 fi
4019
4020   AS=$ac_ct_AS
4021 else
4022   AS="$ac_cv_prog_AS"
4023 fi
4024
4025 if test -n "$ac_tool_prefix"; then
4026   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4027 set dummy ${ac_tool_prefix}ld; ac_word=$2
4028 echo "$as_me:$LINENO: checking for $ac_word" >&5
4029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4030 if test "${ac_cv_prog_LD+set}" = set; then
4031   echo $ECHO_N "(cached) $ECHO_C" >&6
4032 else
4033   if test -n "$LD"; then
4034   ac_cv_prog_LD="$LD" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   for ac_exec_ext in '' $ac_executable_extensions; do
4042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4043     ac_cv_prog_LD="${ac_tool_prefix}ld"
4044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4045     break 2
4046   fi
4047 done
4048 done
4049
4050 fi
4051 fi
4052 LD=$ac_cv_prog_LD
4053 if test -n "$LD"; then
4054   echo "$as_me:$LINENO: result: $LD" >&5
4055 echo "${ECHO_T}$LD" >&6
4056 else
4057   echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4059 fi
4060
4061 fi
4062 if test -z "$ac_cv_prog_LD"; then
4063   ac_ct_LD=$LD
4064   # Extract the first word of "ld", so it can be a program name with args.
4065 set dummy ld; ac_word=$2
4066 echo "$as_me:$LINENO: checking for $ac_word" >&5
4067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4068 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4069   echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071   if test -n "$ac_ct_LD"; then
4072   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_exec_ext in '' $ac_executable_extensions; do
4080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081     ac_cv_prog_ac_ct_LD="ld"
4082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083     break 2
4084   fi
4085 done
4086 done
4087
4088 fi
4089 fi
4090 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4091 if test -n "$ac_ct_LD"; then
4092   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4093 echo "${ECHO_T}$ac_ct_LD" >&6
4094 else
4095   echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6
4097 fi
4098
4099   LD=$ac_ct_LD
4100 else
4101   LD="$ac_cv_prog_LD"
4102 fi
4103
4104 if test -n "$ac_tool_prefix"; then
4105   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4106 set dummy ${ac_tool_prefix}ar; ac_word=$2
4107 echo "$as_me:$LINENO: checking for $ac_word" >&5
4108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4109 if test "${ac_cv_prog_AR+set}" = set; then
4110   echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112   if test -n "$AR"; then
4113   ac_cv_prog_AR="$AR" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_prog_AR="${ac_tool_prefix}ar"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129 fi
4130 fi
4131 AR=$ac_cv_prog_AR
4132 if test -n "$AR"; then
4133   echo "$as_me:$LINENO: result: $AR" >&5
4134 echo "${ECHO_T}$AR" >&6
4135 else
4136   echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6
4138 fi
4139
4140 fi
4141 if test -z "$ac_cv_prog_AR"; then
4142   ac_ct_AR=$AR
4143   # Extract the first word of "ar", so it can be a program name with args.
4144 set dummy ar; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   if test -n "$ac_ct_AR"; then
4151   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160     ac_cv_prog_ac_ct_AR="ar"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166
4167 fi
4168 fi
4169 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4170 if test -n "$ac_ct_AR"; then
4171   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4172 echo "${ECHO_T}$ac_ct_AR" >&6
4173 else
4174   echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4176 fi
4177
4178   AR=$ac_ct_AR
4179 else
4180   AR="$ac_cv_prog_AR"
4181 fi
4182
4183 if test -n "$ac_tool_prefix"; then
4184   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4186 echo "$as_me:$LINENO: checking for $ac_word" >&5
4187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4188 if test "${ac_cv_prog_RANLIB+set}" = set; then
4189   echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191   if test -n "$RANLIB"; then
4192   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197   IFS=$as_save_IFS
4198   test -z "$as_dir" && as_dir=.
4199   for ac_exec_ext in '' $ac_executable_extensions; do
4200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203     break 2
4204   fi
4205 done
4206 done
4207
4208 fi
4209 fi
4210 RANLIB=$ac_cv_prog_RANLIB
4211 if test -n "$RANLIB"; then
4212   echo "$as_me:$LINENO: result: $RANLIB" >&5
4213 echo "${ECHO_T}$RANLIB" >&6
4214 else
4215   echo "$as_me:$LINENO: result: no" >&5
4216 echo "${ECHO_T}no" >&6
4217 fi
4218
4219 fi
4220 if test -z "$ac_cv_prog_RANLIB"; then
4221   ac_ct_RANLIB=$RANLIB
4222   # Extract the first word of "ranlib", so it can be a program name with args.
4223 set dummy ranlib; ac_word=$2
4224 echo "$as_me:$LINENO: checking for $ac_word" >&5
4225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4227   echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229   if test -n "$ac_ct_RANLIB"; then
4230   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4231 else
4232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 for as_dir in $PATH
4234 do
4235   IFS=$as_save_IFS
4236   test -z "$as_dir" && as_dir=.
4237   for ac_exec_ext in '' $ac_executable_extensions; do
4238   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4239     ac_cv_prog_ac_ct_RANLIB="ranlib"
4240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241     break 2
4242   fi
4243 done
4244 done
4245
4246   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4247 fi
4248 fi
4249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4250 if test -n "$ac_ct_RANLIB"; then
4251   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4252 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4253 else
4254   echo "$as_me:$LINENO: result: no" >&5
4255 echo "${ECHO_T}no" >&6
4256 fi
4257
4258   RANLIB=$ac_ct_RANLIB
4259 else
4260   RANLIB="$ac_cv_prog_RANLIB"
4261 fi
4262
4263 for ac_prog in gawk mawk nawk awk
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_prog_AWK+set}" = set; then
4270   echo $ECHO_N "(cached) $ECHO_C" >&6
4271 else
4272   if test -n "$AWK"; then
4273   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280   for ac_exec_ext in '' $ac_executable_extensions; do
4281   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282     ac_cv_prog_AWK="$ac_prog"
4283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287 done
4288
4289 fi
4290 fi
4291 AWK=$ac_cv_prog_AWK
4292 if test -n "$AWK"; then
4293   echo "$as_me:$LINENO: result: $AWK" >&5
4294 echo "${ECHO_T}$AWK" >&6
4295 else
4296   echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298 fi
4299
4300   test -n "$AWK" && break
4301 done
4302
4303 for ac_prog in jar fastjar gjar
4304 do
4305   # Extract the first word of "$ac_prog", so it can be a program name with args.
4306 set dummy $ac_prog; ac_word=$2
4307 echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4309 if test "${ac_cv_prog_JAR+set}" = set; then
4310   echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312   if test -n "$JAR"; then
4313   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318   IFS=$as_save_IFS
4319   test -z "$as_dir" && as_dir=.
4320   for ac_exec_ext in '' $ac_executable_extensions; do
4321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4322     ac_cv_prog_JAR="$ac_prog"
4323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324     break 2
4325   fi
4326 done
4327 done
4328
4329 fi
4330 fi
4331 JAR=$ac_cv_prog_JAR
4332 if test -n "$JAR"; then
4333   echo "$as_me:$LINENO: result: $JAR" >&5
4334 echo "${ECHO_T}$JAR" >&6
4335 else
4336   echo "$as_me:$LINENO: result: no" >&5
4337 echo "${ECHO_T}no" >&6
4338 fi
4339
4340   test -n "$JAR" && break
4341 done
4342 test -n "$JAR" || JAR="no"
4343
4344 # Extract the first word of "zip", so it can be a program name with args.
4345 set dummy zip; ac_word=$2
4346 echo "$as_me:$LINENO: checking for $ac_word" >&5
4347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4348 if test "${ac_cv_path_ZIP+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   case $ZIP in
4352   [\\/]* | ?:[\\/]*)
4353   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4354   ;;
4355   *)
4356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359   IFS=$as_save_IFS
4360   test -z "$as_dir" && as_dir=.
4361   for ac_exec_ext in '' $ac_executable_extensions; do
4362   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4364     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365     break 2
4366   fi
4367 done
4368 done
4369
4370   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4371   ;;
4372 esac
4373 fi
4374 ZIP=$ac_cv_path_ZIP
4375
4376 if test -n "$ZIP"; then
4377   echo "$as_me:$LINENO: result: $ZIP" >&5
4378 echo "${ECHO_T}$ZIP" >&6
4379 else
4380   echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383
4384 # Extract the first word of "unzip", so it can be a program name with args.
4385 set dummy unzip; ac_word=$2
4386 echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4388 if test "${ac_cv_path_UNZIP+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   case $UNZIP in
4392   [\\/]* | ?:[\\/]*)
4393   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4394   ;;
4395   *)
4396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   for ac_exec_ext in '' $ac_executable_extensions; do
4402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408 done
4409
4410   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4411   ;;
4412 esac
4413 fi
4414 UNZIP=$ac_cv_path_UNZIP
4415
4416 if test -n "$UNZIP"; then
4417   echo "$as_me:$LINENO: result: $UNZIP" >&5
4418 echo "${ECHO_T}$UNZIP" >&6
4419 else
4420   echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6
4422 fi
4423
4424
4425 # We need a jar that supports -@.  This is a GNU extension.
4426 if test "$JAR" != no; then
4427    rm -f config-test.jar
4428    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4429    if test -f config-test.jar; then
4430      rm -f config-test.jar
4431    else
4432      JAR=no
4433    fi
4434 fi
4435
4436 # Prefer the jar we found, but fall back to our jar script.
4437 if test "$JAR" = no; then
4438   if test "$ZIP" = no; then
4439     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4440 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4441    { (exit 1); exit 1; }; }
4442   else
4443     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4444     JAR=`pwd`/scripts/jar
4445   fi
4446 fi
4447
4448 # Find a good install program.  We prefer a C program (faster),
4449 # so one script is as good as another.  But avoid the broken or
4450 # incompatible versions:
4451 # SysV /etc/install, /usr/sbin/install
4452 # SunOS /usr/etc/install
4453 # IRIX /sbin/install
4454 # AIX /bin/install
4455 # AmigaOS /C/install, which installs bootblocks on floppy discs
4456 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4457 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4458 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4459 # OS/2's system install, which has a completely different semantic
4460 # ./install, which can be erroneously created by make from ./install.sh.
4461 # Reject install programs that cannot install multiple files.
4462 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4463 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4464 if test -z "$INSTALL"; then
4465 if test "${ac_cv_path_install+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   # Account for people who put trailing slashes in PATH elements.
4474 case $as_dir/ in
4475   ./ | .// | /cC/* | \
4476   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4477   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4478   /usr/ucb/* ) ;;
4479   *)
4480     # OSF1 and SCO ODT 3.0 have their own names for install.
4481     # Don't use installbsd from OSF since it installs stuff as root
4482     # by default.
4483     for ac_prog in ginstall scoinst install; do
4484       for ac_exec_ext in '' $ac_executable_extensions; do
4485         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4486           if test $ac_prog = install &&
4487             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4488             # AIX install.  It has an incompatible calling convention.
4489             :
4490           elif test $ac_prog = install &&
4491             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4492             # program-specific install script used by HP pwplus--don't use.
4493             :
4494           else
4495             rm -rf conftest.one conftest.two conftest.dir
4496             echo one > conftest.one
4497             echo two > conftest.two
4498             mkdir conftest.dir
4499             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4500               test -s conftest.one && test -s conftest.two &&
4501               test -s conftest.dir/conftest.one &&
4502               test -s conftest.dir/conftest.two
4503             then
4504               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4505               break 3
4506             fi
4507           fi
4508         fi
4509       done
4510     done
4511     ;;
4512 esac
4513 done
4514
4515 rm -rf conftest.one conftest.two conftest.dir
4516
4517 fi
4518   if test "${ac_cv_path_install+set}" = set; then
4519     INSTALL=$ac_cv_path_install
4520   else
4521     # As a last resort, use the slow shell script.  Don't cache a
4522     # value for INSTALL within a source directory, because that will
4523     # break other packages using the cache if that directory is
4524     # removed, or if the value is a relative name.
4525     INSTALL=$ac_install_sh
4526   fi
4527 fi
4528 echo "$as_me:$LINENO: result: $INSTALL" >&5
4529 echo "${ECHO_T}$INSTALL" >&6
4530
4531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4532 # It thinks the first close brace ends the variable substitution.
4533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4534
4535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4536
4537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4538
4539
4540 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4541 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4542     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4543 if test "${enable_maintainer_mode+set}" = set; then
4544   enableval="$enable_maintainer_mode"
4545   USE_MAINTAINER_MODE=$enableval
4546 else
4547   USE_MAINTAINER_MODE=no
4548 fi;
4549   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4550 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4551
4552
4553 if test $USE_MAINTAINER_MODE = yes; then
4554   MAINTAINER_MODE_TRUE=
4555   MAINTAINER_MODE_FALSE='#'
4556 else
4557   MAINTAINER_MODE_TRUE='#'
4558   MAINTAINER_MODE_FALSE=
4559 fi
4560
4561   MAINT=$MAINTAINER_MODE_TRUE
4562
4563
4564
4565
4566
4567 # configure.host sets the following important variables
4568 #       libgcj_cflags    - host specific C compiler flags
4569 #       libgcj_cxxflags  - host specific C++ compiler flags
4570 #       libgcj_javaflags - host specific Java compiler flags
4571
4572 libgcj_cflags=
4573 libgcj_cxxflags=
4574 libgcj_javaflags=
4575
4576 . ${srcdir}/configure.host
4577
4578 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4579 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4580 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4584 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4585   acl_cv_prog_gnu_ld=yes
4586 else
4587   acl_cv_prog_gnu_ld=no
4588 fi
4589 fi
4590 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4591 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4592 with_gnu_ld=$acl_cv_prog_gnu_ld
4593
4594 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4595 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4596 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599
4600 acl_cv_prog_gnu_ld_symbolic=no
4601
4602 if test x"$with_gnu_ld" = x"yes"; then
4603   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4604     acl_cv_prog_gnu_ld_symbolic=yes
4605   fi
4606 fi
4607 fi
4608 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4609 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4610 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4611   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4612 else
4613   SYMBOLIC_LDFLAGS=''
4614 fi
4615
4616 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4617 if test -z "$libgcj_ld_symbolic"; then
4618   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4619 fi
4620
4621 LIBGCJ_CFLAGS="${libgcj_cflags}"
4622 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4623 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4624 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4625 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4626
4627
4628
4629
4630
4631
4632 # Only use libltdl for non-newlib builds.
4633 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4634    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4636 library_names_spec=
4637 libname_spec='lib$name'
4638 soname_spec=
4639 shrext=".so"
4640 postinstall_cmds=
4641 postuninstall_cmds=
4642 finish_cmds=
4643 finish_eval=
4644 shlibpath_var=
4645 shlibpath_overrides_runpath=unknown
4646 version_type=none
4647 dynamic_linker="$host_os ld.so"
4648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4649 if test "$GCC" = yes; then
4650   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4651   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4652     # if the path contains ";" then we assume it to be the separator
4653     # otherwise default to the standard path separator (i.e. ":") - it is
4654     # assumed that no part of a normal pathname contains ";" but that should
4655     # okay in the real world where ";" in dirpaths is itself problematic.
4656     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4657   else
4658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4659   fi
4660 else
4661   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4662 fi
4663 need_lib_prefix=unknown
4664 hardcode_into_libs=no
4665
4666 # when you set need_version to no, make sure it does not cause -set_version
4667 # flags to be left without arguments
4668 need_version=unknown
4669
4670 case $host_os in
4671 aix3*)
4672   version_type=linux
4673   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4674   shlibpath_var=LIBPATH
4675
4676   # AIX 3 has no versioning support, so we append a major version to the name.
4677   soname_spec='${libname}${release}${shared_ext}$major'
4678   ;;
4679
4680 aix[4-9]*)
4681   version_type=linux
4682   need_lib_prefix=no
4683   need_version=no
4684   hardcode_into_libs=yes
4685   if test "$host_cpu" = ia64; then
4686     # AIX 5 supports IA64
4687     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4688     shlibpath_var=LD_LIBRARY_PATH
4689   else
4690     # With GCC up to 2.95.x, collect2 would create an import file
4691     # for dependence libraries.  The import file would start with
4692     # the line `#! .'.  This would cause the generated library to
4693     # depend on `.', always an invalid library.  This was fixed in
4694     # development snapshots of GCC prior to 3.0.
4695     case $host_os in
4696       aix4 | aix4.[01] | aix4.[01].*)
4697       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4698            echo ' yes '
4699            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4700         :
4701       else
4702         can_build_shared=no
4703       fi
4704       ;;
4705     esac
4706     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4707     # soname into executable. Probably we can add versioning support to
4708     # collect2, so additional links can be useful in future.
4709     if test "$aix_use_runtimelinking" = yes; then
4710       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4711       # instead of lib<name>.a to let people know that these are not
4712       # typical AIX shared libraries.
4713       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4714     else
4715       # We preserve .a as extension for shared libraries through AIX4.2
4716       # and later when we are not doing run time linking.
4717       library_names_spec='${libname}${release}.a $libname.a'
4718       soname_spec='${libname}${release}${shared_ext}$major'
4719     fi
4720     shlibpath_var=LIBPATH
4721   fi
4722   ;;
4723
4724 amigaos*)
4725   library_names_spec='$libname.ixlibrary $libname.a'
4726   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4727   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'
4728   ;;
4729
4730 beos*)
4731   library_names_spec='${libname}${shared_ext}'
4732   dynamic_linker="$host_os ld.so"
4733   shlibpath_var=LIBRARY_PATH
4734   ;;
4735
4736 bsdi4*)
4737   version_type=linux
4738   need_version=no
4739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4740   soname_spec='${libname}${release}${shared_ext}$major'
4741   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4742   shlibpath_var=LD_LIBRARY_PATH
4743   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4744   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4745   # the default ld.so.conf also contains /usr/contrib/lib and
4746   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4747   # libtool to hard-code these into programs
4748   ;;
4749
4750 cygwin* | mingw* | pw32*)
4751   version_type=windows
4752   shrext=".dll"
4753   need_version=no
4754   need_lib_prefix=no
4755
4756   case $GCC,$host_os in
4757   yes,cygwin* | yes,mingw* | yes,pw32*)
4758     library_names_spec='$libname.dll.a'
4759     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4760     postinstall_cmds='base_file=`basename \${file}`~
4761       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4762       dldir=$destdir/`dirname \$dlpath`~
4763       test -d \$dldir || mkdir -p \$dldir~
4764       $install_prog $dir/$dlname \$dldir/$dlname'
4765     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4766       dlpath=$dir/\$dldll~
4767        $rm \$dlpath'
4768     shlibpath_overrides_runpath=yes
4769
4770     case $host_os in
4771     cygwin*)
4772       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4773       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4774       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4775       ;;
4776     mingw*)
4777       # MinGW DLLs use traditional 'lib' prefix
4778       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4779       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4780       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4781         # It is most probably a Windows format PATH printed by
4782         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4783         # path with ; separators, and with drive letters. We can handle the
4784         # drive letters (cygwin fileutils understands them), so leave them,
4785         # especially as we might pass files found there to a mingw objdump,
4786         # which wouldn't understand a cygwinified path. Ahh.
4787         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4788       else
4789         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4790       fi
4791       ;;
4792     pw32*)
4793       # pw32 DLLs use 'pw' prefix rather than 'lib'
4794       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4795       ;;
4796     esac
4797     ;;
4798
4799   *)
4800     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4801     ;;
4802   esac
4803   dynamic_linker='Win32 ld.exe'
4804   # FIXME: first we should search . and the directory the executable is in
4805   shlibpath_var=PATH
4806   ;;
4807
4808 darwin* | rhapsody*)
4809   dynamic_linker="$host_os dyld"
4810   version_type=darwin
4811   need_lib_prefix=no
4812   need_version=no
4813   # FIXME: Relying on posixy $() will cause problems for
4814   #        cross-compilation, but unfortunately the echo tests do not
4815   #        yet detect zsh echo's removal of \ escapes.
4816   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4817   soname_spec='${libname}${release}${major}$shared_ext'
4818   shlibpath_overrides_runpath=yes
4819   shlibpath_var=DYLD_LIBRARY_PATH
4820   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4821   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4822   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4823   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"`
4824   fi
4825   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4826   ;;
4827
4828 dgux*)
4829   version_type=linux
4830   need_lib_prefix=no
4831   need_version=no
4832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4833   soname_spec='${libname}${release}${shared_ext}$major'
4834   shlibpath_var=LD_LIBRARY_PATH
4835   ;;
4836
4837 freebsd1*)
4838   dynamic_linker=no
4839   ;;
4840
4841 freebsd*)
4842   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4843   version_type=freebsd-$objformat
4844   case $version_type in
4845     freebsd-elf*)
4846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4847       need_version=no
4848       need_lib_prefix=no
4849       ;;
4850     freebsd-*)
4851       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4852       need_version=yes
4853       ;;
4854   esac
4855   shlibpath_var=LD_LIBRARY_PATH
4856   case $host_os in
4857   freebsd2*)
4858     shlibpath_overrides_runpath=yes
4859     ;;
4860   freebsd3.01* | freebsdelf3.01*)
4861     shlibpath_overrides_runpath=yes
4862     hardcode_into_libs=yes
4863     ;;
4864   *) # from 3.2 on
4865     shlibpath_overrides_runpath=no
4866     hardcode_into_libs=yes
4867     ;;
4868   esac
4869   ;;
4870
4871 gnu*)
4872   version_type=linux
4873   need_lib_prefix=no
4874   need_version=no
4875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4876   soname_spec='${libname}${release}${shared_ext}$major'
4877   shlibpath_var=LD_LIBRARY_PATH
4878   hardcode_into_libs=yes
4879   ;;
4880
4881 hpux9* | hpux10* | hpux11*)
4882   # Give a soname corresponding to the major version so that dld.sl refuses to
4883   # link against other versions.
4884   version_type=sunos
4885   need_lib_prefix=no
4886   need_version=no
4887   case "$host_cpu" in
4888   ia64*)
4889     shrext='.so'
4890     hardcode_into_libs=yes
4891     dynamic_linker="$host_os dld.so"
4892     shlibpath_var=LD_LIBRARY_PATH
4893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4895     soname_spec='${libname}${release}${shared_ext}$major'
4896     if test "X$HPUX_IA64_MODE" = X32; then
4897       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4898     else
4899       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4900     fi
4901     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4902     ;;
4903    hppa*64*)
4904      shrext='.sl'
4905      hardcode_into_libs=yes
4906      dynamic_linker="$host_os dld.sl"
4907      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4908      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4910      soname_spec='${libname}${release}${shared_ext}$major'
4911      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4912      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4913      ;;
4914    *)
4915     shrext='.sl'
4916     dynamic_linker="$host_os dld.sl"
4917     shlibpath_var=SHLIB_PATH
4918     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4920     soname_spec='${libname}${release}${shared_ext}$major'
4921     ;;
4922   esac
4923   # HP-UX runs *really* slowly unless shared libraries are mode 555.
4924   postinstall_cmds='chmod 555 $lib'
4925   ;;
4926
4927 irix5* | irix6* | nonstopux*)
4928   case $host_os in
4929     nonstopux*) version_type=nonstopux ;;
4930     *)
4931         if test "$lt_cv_prog_gnu_ld" = yes; then
4932                 version_type=linux
4933         else
4934                 version_type=irix
4935         fi ;;
4936   esac
4937   need_lib_prefix=no
4938   need_version=no
4939   soname_spec='${libname}${release}${shared_ext}$major'
4940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4941   case $host_os in
4942   irix5* | nonstopux*)
4943     libsuff= shlibsuff=
4944     ;;
4945   *)
4946     case $LD in # libtool.m4 will add one of these switches to LD
4947     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4948       libsuff= shlibsuff= libmagic=32-bit;;
4949     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4950       libsuff=32 shlibsuff=N32 libmagic=N32;;
4951     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4952       libsuff=64 shlibsuff=64 libmagic=64-bit;;
4953     *) libsuff= shlibsuff= libmagic=never-match;;
4954     esac
4955     ;;
4956   esac
4957   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4958   shlibpath_overrides_runpath=no
4959   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4960   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4961   hardcode_into_libs=yes
4962   ;;
4963
4964 # No shared lib support for Linux oldld, aout, or coff.
4965 linux*oldld* | linux*aout* | linux*coff*)
4966   dynamic_linker=no
4967   ;;
4968
4969 # This must be Linux ELF.
4970 linux*|k*bsd*-gnu)
4971   version_type=linux
4972   need_lib_prefix=no
4973   need_version=no
4974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4975   soname_spec='${libname}${release}${shared_ext}$major'
4976   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4977   shlibpath_var=LD_LIBRARY_PATH
4978   shlibpath_overrides_runpath=no
4979   # This implies no fast_install, which is unacceptable.
4980   # Some rework will be needed to allow for fast_install
4981   # before this can be enabled.
4982   hardcode_into_libs=yes
4983
4984   # We used to test for /lib/ld.so.1 and disable shared libraries on
4985   # powerpc, because MkLinux only supported shared libraries with the
4986   # GNU dynamic linker.  Since this was broken with cross compilers,
4987   # most powerpc-linux boxes support dynamic linking these days and
4988   # people can always --disable-shared, the test was removed, and we
4989   # assume the GNU/Linux dynamic linker is in use.
4990   dynamic_linker='GNU/Linux ld.so'
4991   ;;
4992
4993 netbsd*)
4994   version_type=sunos
4995   need_lib_prefix=no
4996   need_version=no
4997   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4999     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5000     dynamic_linker='NetBSD (a.out) ld.so'
5001   else
5002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5003     soname_spec='${libname}${release}${shared_ext}$major'
5004     dynamic_linker='NetBSD ld.elf_so'
5005   fi
5006   shlibpath_var=LD_LIBRARY_PATH
5007   shlibpath_overrides_runpath=yes
5008   hardcode_into_libs=yes
5009   ;;
5010
5011 newsos6)
5012   version_type=linux
5013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5014   shlibpath_var=LD_LIBRARY_PATH
5015   shlibpath_overrides_runpath=yes
5016   ;;
5017
5018 nto-qnx)
5019   version_type=linux
5020   need_lib_prefix=no
5021   need_version=no
5022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5023   soname_spec='${libname}${release}${shared_ext}$major'
5024   shlibpath_var=LD_LIBRARY_PATH
5025   shlibpath_overrides_runpath=yes
5026   ;;
5027
5028 openbsd*)
5029   version_type=sunos
5030   need_lib_prefix=no
5031   need_version=no
5032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5033   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5034   shlibpath_var=LD_LIBRARY_PATH
5035   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5036     case $host_os in
5037       openbsd2.[89] | openbsd2.[89].*)
5038         shlibpath_overrides_runpath=no
5039         ;;
5040       *)
5041         shlibpath_overrides_runpath=yes
5042         ;;
5043       esac
5044   else
5045     shlibpath_overrides_runpath=yes
5046   fi
5047   ;;
5048
5049 os2*)
5050   libname_spec='$name'
5051   shrext=".dll"
5052   need_lib_prefix=no
5053   library_names_spec='$libname${shared_ext} $libname.a'
5054   dynamic_linker='OS/2 ld.exe'
5055   shlibpath_var=LIBPATH
5056   ;;
5057
5058 osf3* | osf4* | osf5*)
5059   version_type=osf
5060   need_lib_prefix=no
5061   need_version=no
5062   soname_spec='${libname}${release}${shared_ext}$major'
5063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5064   shlibpath_var=LD_LIBRARY_PATH
5065   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5066   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5067   ;;
5068
5069 sco3.2v5*)
5070   version_type=osf
5071   soname_spec='${libname}${release}${shared_ext}$major'
5072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5073   shlibpath_var=LD_LIBRARY_PATH
5074   ;;
5075
5076 solaris*)
5077   version_type=linux
5078   need_lib_prefix=no
5079   need_version=no
5080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5081   soname_spec='${libname}${release}${shared_ext}$major'
5082   shlibpath_var=LD_LIBRARY_PATH
5083   shlibpath_overrides_runpath=yes
5084   hardcode_into_libs=yes
5085   # ldd complains unless libraries are executable
5086   postinstall_cmds='chmod +x $lib'
5087   ;;
5088
5089 sunos4*)
5090   version_type=sunos
5091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5092   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5093   shlibpath_var=LD_LIBRARY_PATH
5094   shlibpath_overrides_runpath=yes
5095   if test "$with_gnu_ld" = yes; then
5096     need_lib_prefix=no
5097   fi
5098   need_version=yes
5099   ;;
5100
5101 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5102   version_type=linux
5103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5104   soname_spec='${libname}${release}${shared_ext}$major'
5105   shlibpath_var=LD_LIBRARY_PATH
5106   case $host_vendor in
5107     sni)
5108       shlibpath_overrides_runpath=no
5109       need_lib_prefix=no
5110       export_dynamic_flag_spec='${wl}-Blargedynsym'
5111       runpath_var=LD_RUN_PATH
5112       ;;
5113     siemens)
5114       need_lib_prefix=no
5115       ;;
5116     motorola)
5117       need_lib_prefix=no
5118       need_version=no
5119       shlibpath_overrides_runpath=no
5120       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5121       ;;
5122   esac
5123   ;;
5124
5125 sysv4*MP*)
5126   if test -d /usr/nec ;then
5127     version_type=linux
5128     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5129     soname_spec='$libname${shared_ext}.$major'
5130     shlibpath_var=LD_LIBRARY_PATH
5131   fi
5132   ;;
5133
5134 uts4*)
5135   version_type=linux
5136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5137   soname_spec='${libname}${release}${shared_ext}$major'
5138   shlibpath_var=LD_LIBRARY_PATH
5139   ;;
5140
5141 *)
5142   dynamic_linker=no
5143   ;;
5144 esac
5145 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5146 echo "${ECHO_T}$dynamic_linker" >&6
5147 test "$dynamic_linker" = no && can_build_shared=no
5148
5149
5150 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5151 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5152 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5153   echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155   libltdl_cv_shlibpath_var="$shlibpath_var"
5156 fi
5157 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5158 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5159 if test -n "$libltdl_cv_shlibpath_var"; then
5160
5161 cat >>confdefs.h <<_ACEOF
5162 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5163 _ACEOF
5164
5165 fi
5166
5167 fi
5168
5169                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5170
5171
5172 # See if the user has requested runtime debugging.
5173 LIBGCJDEBUG="disable"
5174
5175 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5176 if test "${enable_libgcj_debug+set}" = set; then
5177   enableval="$enable_libgcj_debug"
5178   if test "$enable_libgcj_debug" = yes; then
5179
5180 cat >>confdefs.h <<\_ACEOF
5181 #define DEBUG 1
5182 _ACEOF
5183
5184     LIBGCJDEBUG="enable"
5185   fi
5186 fi;
5187
5188
5189 # Check whether --with-escher or --without-escher was given.
5190 if test "${with_escher+set}" = set; then
5191   withval="$with_escher"
5192
5193 fi;
5194 case "$with_escher" in
5195 "")
5196         use_escher=false
5197         ;;
5198 "no")
5199         use_escher=false
5200         ;;
5201 "yes")
5202         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5203 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5204    { (exit 1); exit 1; }; }
5205         ;;
5206 *)
5207         use_escher=true
5208         ;;
5209 esac
5210
5211 # Determine which AWT peer libraries to build
5212 # Check whether --enable-java-awt or --disable-java-awt was given.
5213 if test "${enable_java_awt+set}" = set; then
5214   enableval="$enable_java_awt"
5215
5216 fi;
5217
5218 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5219 use_xlib_awt=""
5220 use_gtk_awt=""
5221 use_qt_awt=""
5222 use_x_awt=""
5223 # The default toolkit to use is the first one specified.
5224 TOOLKIT=
5225
5226
5227 for peer in $peerlibs ; do
5228   case $peer in
5229     xlib)
5230       if test "$no_x" = yes; then
5231         echo "*** xlib peers requested but no X library available" 1>&2
5232         exit 1
5233       else
5234         use_xlib_awt="yes"
5235         if test -z "$TOOLKIT"; then
5236            TOOLKIT=gnu.awt.xlib.XToolkit
5237         fi
5238       fi
5239       ;;
5240     gtk)
5241       if test "$no_x" = yes; then
5242          echo "*** gtk peers requested but no X library available" 1>&2
5243          exit 1
5244       else
5245          use_gtk_awt=yes
5246          if test -z "$TOOLKIT"; then
5247             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5248          fi
5249       fi
5250       ;;
5251     qt)
5252       if test "$no_x" = yes; then
5253          # Perhaps we should admit the possibility of embedded Qt.
5254          echo "*** Qt peers requested but no X library available" 1>&2
5255          exit 1
5256       else
5257          use_qt_awt=yes
5258          if test -z "$TOOLKIT"; then
5259             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5260          fi
5261       fi
5262       ;;
5263     x)
5264       use_x_awt=yes
5265       if test -z "$TOOLKIT"; then
5266          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5267       fi
5268       ;;
5269     no)
5270       use_xlib_awt=
5271       use_gtk_awt=
5272       use_qt_awt=
5273       use_x_awt=
5274       break
5275       ;;
5276     *)
5277       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5278       exit 1
5279   esac
5280 done
5281
5282
5283
5284 if test "$use_xlib_awt" = yes; then
5285   XLIB_AWT_TRUE=
5286   XLIB_AWT_FALSE='#'
5287 else
5288   XLIB_AWT_TRUE='#'
5289   XLIB_AWT_FALSE=
5290 fi
5291
5292
5293
5294 if test "$use_x_awt" = yes; then
5295   X_AWT_TRUE=
5296   X_AWT_FALSE='#'
5297 else
5298   X_AWT_TRUE='#'
5299   X_AWT_FALSE=
5300 fi
5301
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define AWT_TOOLKIT "$TOOLKIT"
5306 _ACEOF
5307
5308
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define LIBGCJ_PREFIX "$prefix"
5312 _ACEOF
5313
5314
5315 # Create standard.omit based on decisions we just made.
5316 cp $srcdir/standard.omit.in standard.omit
5317 if test "$use_xlib_awt" != yes; then
5318    echo gnu/awt/xlib >> standard.omit
5319    echo gnu/gcj/xlib >> standard.omit
5320 fi
5321 if test "$use_x_awt" != yes; then
5322    echo gnu/java/awt/peer/x >> standard.omit
5323 fi
5324
5325 # Tools that need to be compiled against classpath's tools classes
5326 : > vm-tools-packages
5327 for package in gnu/gcj/tools/gc_analyze ; do
5328     echo $package >> standard.omit
5329     echo $package >> vm-tools-packages
5330 done
5331
5332 if test -z "${with_multisubdir}"; then
5333    builddotdot=.
5334 else
5335    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5336 fi
5337
5338 NATIVE=yes
5339
5340 # Which gcj and host gcj (for ecjx) do we use?
5341 which_gcj=default
5342 host_exeext=${ac_exeext}
5343 GCJ_FOR_ECJX=
5344 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5345 if test -n "${with_cross_host}"; then
5346   # We are being configured with a cross compiler. We can't
5347   # use ac_exeext, because that is for the target platform.
5348   NATIVE=no
5349   cross_host_exeext=
5350   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5351   case "${with_cross_host}" in
5352      *mingw* | *cygwin*)
5353          cross_host_exeext=.exe
5354      ;;
5355   esac
5356   host_exeext=${cross_host_exeext}
5357   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5358      if test x"$build_noncanonical" = x"$with_cross_host"; then
5359         # Ordinary cross (host!=target and host=build)
5360         which_gcj=built
5361      else
5362         # Canadian cross (host!=target and host!=build)
5363         which_gcj=cross
5364      fi
5365   else
5366      which_gcj=cross
5367   fi
5368 else
5369   # We are being configured with a native or crossed-native compiler
5370   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5371      if test x"$build" = x"$host"; then
5372         # True native build (host=target and host=build)
5373         which_gcj=built
5374      else
5375         # Crossed-native build (host=target and host!=build)
5376         which_gcj=cross
5377      fi
5378   else
5379      which_gcj=path
5380   fi
5381 fi
5382 case "${which_gcj}" in
5383    built)
5384       GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5385       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5386    ;;
5387    cross)
5388       if test "x${with_newlib}" = "xyes"; then
5389          # FIXME (comment): Why is this needed?
5390          GCC_UNWIND_INCLUDE=
5391          GCJ="${target_noncanonical}-gcj"
5392       else
5393          GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5394       fi
5395       GCJH='$(target_noncanonical)-gcjh'
5396    ;;
5397    path)
5398       GCJ="gcj -B`${PWDCMD-pwd}`/"
5399       GCJH=gcjh
5400    ;;
5401 esac
5402 JAVAC="$GCJ -C"
5403 export JAVAC
5404
5405
5406
5407
5408
5409 # Create it, so that compile/link tests don't fail
5410 test -f libgcj.spec || touch libgcj.spec
5411
5412
5413
5414 # Set up to configure Classpath.
5415 # FIXME: no supported way to pass args in autoconf.
5416 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5417 # Disable tool wrappers to avoid ltdl.h configure check.
5418 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5419 ac_configure_args="$ac_configure_args --disable-load-library"
5420 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5421 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5422 dir1=`cd $srcdir && pwd`
5423 dir2=`pwd`
5424 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5425 ac_configure_args="$ac_configure_args --disable-core-jni"
5426 ac_configure_args="$ac_configure_args --disable-examples"
5427 ac_configure_args="$ac_configure_args --with-glibj=build"
5428 if test "$plugin_enabled" != yes; then
5429   ac_configure_args="$ac_configure_args --disable-plugin"
5430 fi
5431 if test "$gconf_enabled" != yes; then
5432   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5433   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5434 fi
5435 if test "$use_gtk_awt" != yes; then
5436   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5437 fi
5438 if test "$use_qt_awt" != yes; then
5439   ac_configure_args="$ac_configure_args --disable-qt-peer"
5440 else
5441   # We need this as qt is disabled by default in classpath.
5442   ac_configure_args="$ac_configure_args --enable-qt-peer"
5443 fi
5444 if test "$use_x_awt" != yes; then
5445   ac_configure_args="$ac_configure_args --without-escher"
5446 else
5447   # We need this as escher is disabled by default in classpath.
5448   if test "$use_escher" != true; then
5449     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5450 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5451    { (exit 1); exit 1; }; }
5452   else
5453     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5454   fi
5455 fi
5456 # -Werror causes unavoidable problems in code using alsa.
5457 ac_configure_args="$ac_configure_args --disable-regen-headers"
5458 ac_configure_args="$ac_configure_args --disable-Werror"
5459
5460 # Only use libltdl for non-newlib builds.
5461 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5462      case $enable_ltdl_convenience in
5463   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5464 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466   "") enable_ltdl_convenience=yes
5467       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5468   esac
5469   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5470   LTDLINCL='-I${top_srcdir}/''libltdl'
5471   # For backwards non-gettext consistent compatibility...
5472   INCLTDL="$LTDLINCL"
5473
5474    enable_dlopen=yes
5475
5476
5477
5478    DIRLTDL=libltdl
5479
5480 cat >>confdefs.h <<\_ACEOF
5481 #define USE_LTDL 1
5482 _ACEOF
5483
5484    # Sigh.  Libtool's macro doesn't do the right thing.
5485    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5486    # FIXME: this is a hack.
5487    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5488    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5489 fi
5490
5491
5492
5493
5494
5495 macro_version='2.1a'
5496 macro_revision='1.2435'
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 ltmain="$ac_aux_dir/ltmain.sh"
5510
5511 # Set options
5512
5513
5514 enable_win32_dll=no
5515
5516
5517 # Check whether --enable-shared or --disable-shared was given.
5518 if test "${enable_shared+set}" = set; then
5519   enableval="$enable_shared"
5520   p=${PACKAGE-default}
5521     case $enableval in
5522     yes) enable_shared=yes ;;
5523     no) enable_shared=no ;;
5524     *)
5525       enable_shared=no
5526       # Look at the argument we got.  We use all the common list separators.
5527       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5528       for pkg in $enableval; do
5529         IFS="$lt_save_ifs"
5530         if test "X$pkg" = "X$p"; then
5531           enable_shared=yes
5532         fi
5533       done
5534       IFS="$lt_save_ifs"
5535       ;;
5536     esac
5537 else
5538   enable_shared=yes
5539 fi;
5540
5541
5542
5543
5544
5545
5546
5547
5548 # Check whether --enable-static or --disable-static was given.
5549 if test "${enable_static+set}" = set; then
5550   enableval="$enable_static"
5551   p=${PACKAGE-default}
5552     case $enableval in
5553     yes) enable_static=yes ;;
5554     no) enable_static=no ;;
5555     *)
5556      enable_static=no
5557       # Look at the argument we got.  We use all the common list separators.
5558       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5559       for pkg in $enableval; do
5560         IFS="$lt_save_ifs"
5561         if test "X$pkg" = "X$p"; then
5562           enable_static=yes
5563         fi
5564       done
5565       IFS="$lt_save_ifs"
5566       ;;
5567     esac
5568 else
5569   enable_static=yes
5570 fi;
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 # Check whether --with-pic or --without-pic was given.
5581 if test "${with_pic+set}" = set; then
5582   withval="$with_pic"
5583   pic_mode="$withval"
5584 else
5585   pic_mode=default
5586 fi;
5587
5588 test -z "$pic_mode" && pic_mode=default
5589
5590
5591
5592
5593
5594
5595
5596 # Check whether --enable-fast-install or --disable-fast-install was given.
5597 if test "${enable_fast_install+set}" = set; then
5598   enableval="$enable_fast_install"
5599   p=${PACKAGE-default}
5600     case $enableval in
5601     yes) enable_fast_install=yes ;;
5602     no) enable_fast_install=no ;;
5603     *)
5604       enable_fast_install=no
5605       # Look at the argument we got.  We use all the common list separators.
5606       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607       for pkg in $enableval; do
5608         IFS="$lt_save_ifs"
5609         if test "X$pkg" = "X$p"; then
5610           enable_fast_install=yes
5611         fi
5612       done
5613       IFS="$lt_save_ifs"
5614       ;;
5615     esac
5616 else
5617   enable_fast_install=yes
5618 fi;
5619
5620
5621
5622
5623
5624
5625
5626
5627 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5628 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5629 if test "${lt_cv_path_SED+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   # Loop through the user's path and test for sed and gsed.
5633 # Then use that list of sed's as ones to test for truncation.
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639   for lt_ac_prog in sed gsed; do
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5642         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5643       fi
5644     done
5645   done
5646 done
5647 IFS=$as_save_IFS
5648 lt_ac_max=0
5649 lt_ac_count=0
5650 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5651 # along with /bin/sed that truncates output.
5652 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5653   test ! -f $lt_ac_sed && continue
5654   cat /dev/null > conftest.in
5655   lt_ac_count=0
5656   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5657   # Check for GNU sed and select it if it is found.
5658   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5659     lt_cv_path_SED=$lt_ac_sed
5660     break
5661   fi
5662   while true; do
5663     cat conftest.in conftest.in >conftest.tmp
5664     mv conftest.tmp conftest.in
5665     cp conftest.in conftest.nl
5666     echo >>conftest.nl
5667     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5668     cmp -s conftest.out conftest.nl || break
5669     # 10000 chars as input seems more than enough
5670     test $lt_ac_count -gt 10 && break
5671     lt_ac_count=`expr $lt_ac_count + 1`
5672     if test $lt_ac_count -gt $lt_ac_max; then
5673       lt_ac_max=$lt_ac_count
5674       lt_cv_path_SED=$lt_ac_sed
5675     fi
5676   done
5677 done
5678
5679 fi
5680
5681 SED=$lt_cv_path_SED
5682
5683 echo "$as_me:$LINENO: result: $SED" >&5
5684 echo "${ECHO_T}$SED" >&6
5685
5686 test -z "$SED" && SED=sed
5687 Xsed="$SED -e 1s/^X//"
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699 echo "$as_me:$LINENO: checking for egrep" >&5
5700 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5701 if test "${ac_cv_prog_egrep+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5705     then ac_cv_prog_egrep='grep -E'
5706     else ac_cv_prog_egrep='egrep'
5707     fi
5708 fi
5709 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5710 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5711  EGREP=$ac_cv_prog_egrep
5712
5713
5714 echo "$as_me:$LINENO: checking for fgrep" >&5
5715 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5716 if test "${ac_cv_prog_fgrep+set}" = set; then
5717   echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5720     then ac_cv_prog_fgrep='grep -F'
5721     else ac_cv_prog_fgrep='fgrep'
5722     fi
5723 fi
5724 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5725 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5726  FGREP=$ac_cv_prog_fgrep
5727
5728
5729 test -z "$GREP" && GREP=grep
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5750 if test "${with_gnu_ld+set}" = set; then
5751   withval="$with_gnu_ld"
5752   test "$withval" = no || with_gnu_ld=yes
5753 else
5754   with_gnu_ld=no
5755 fi;
5756 ac_prog=ld
5757 if test "$GCC" = yes; then
5758   # Check if gcc -print-prog-name=ld gives a path.
5759   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5760 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5761   case $host in
5762   *-*-mingw*)
5763     # gcc leaves a trailing carriage return which upsets mingw
5764     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5765   *)
5766     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5767   esac
5768   case $ac_prog in
5769     # Accept absolute paths.
5770     [\\/]* | ?:[\\/]*)
5771       re_direlt='/[^/][^/]*/\.\./'
5772       # Canonicalize the pathname of ld
5773       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5774       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5775         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5776       done
5777       test -z "$LD" && LD="$ac_prog"
5778       ;;
5779   "")
5780     # If it fails, then pretend we aren't using GCC.
5781     ac_prog=ld
5782     ;;
5783   *)
5784     # If it is relative, then search for the first ld in PATH.
5785     with_gnu_ld=unknown
5786     ;;
5787   esac
5788 elif test "$with_gnu_ld" = yes; then
5789   echo "$as_me:$LINENO: checking for GNU ld" >&5
5790 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5791 else
5792   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5793 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5794 fi
5795 if test "${lt_cv_path_LD+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   if test -z "$LD"; then
5799   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5800   for ac_dir in $PATH; do
5801     IFS="$lt_save_ifs"
5802     test -z "$ac_dir" && ac_dir=.
5803     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5804       lt_cv_path_LD="$ac_dir/$ac_prog"
5805       # Check to see if the program is GNU ld.  I'd rather use --version,
5806       # but apparently some variants of GNU ld only accept -v.
5807       # Break only if it was the GNU/non-GNU ld that we prefer.
5808       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5809       *GNU* | *'with BFD'*)
5810         test "$with_gnu_ld" != no && break
5811         ;;
5812       *)
5813         test "$with_gnu_ld" != yes && break
5814         ;;
5815       esac
5816     fi
5817   done
5818   IFS="$lt_save_ifs"
5819 else
5820   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5821 fi
5822 fi
5823
5824 LD="$lt_cv_path_LD"
5825 if test -n "$LD"; then
5826   echo "$as_me:$LINENO: result: $LD" >&5
5827 echo "${ECHO_T}$LD" >&6
5828 else
5829   echo "$as_me:$LINENO: result: no" >&5
5830 echo "${ECHO_T}no" >&6
5831 fi
5832 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5833 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5834    { (exit 1); exit 1; }; }
5835 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5836 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5837 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5841 case `$LD -v 2>&1 </dev/null` in
5842 *GNU* | *'with BFD'*)
5843   lt_cv_prog_gnu_ld=yes
5844   ;;
5845 *)
5846   lt_cv_prog_gnu_ld=no
5847   ;;
5848 esac
5849 fi
5850 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5851 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5852 with_gnu_ld=$lt_cv_prog_gnu_ld
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5864 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5865 if test "${lt_cv_path_NM+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   if test -n "$NM"; then
5869   # Let the user override the test.
5870   lt_cv_path_NM="$NM"
5871 else
5872   lt_nm_to_check="${ac_tool_prefix}nm"
5873   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5874     lt_nm_to_check="$lt_nm_to_check nm"
5875   fi
5876   for lt_tmp_nm in $lt_nm_to_check; do
5877     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5878     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5879       IFS="$lt_save_ifs"
5880       test -z "$ac_dir" && ac_dir=.
5881       tmp_nm="$ac_dir/$lt_tmp_nm"
5882       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5883         # Check to see if the nm accepts a BSD-compat flag.
5884         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5885         #   nm: unknown option "B" ignored
5886         # Tru64's nm complains that /dev/null is an invalid object file
5887         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5888         */dev/null* | *'Invalid file or object type'*)
5889           lt_cv_path_NM="$tmp_nm -B"
5890           break
5891           ;;
5892         *)
5893           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5894           */dev/null*)
5895             lt_cv_path_NM="$tmp_nm -p"
5896             break
5897             ;;
5898           *)
5899             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5900             continue # so that we can try to find one that supports BSD flags
5901             ;;
5902           esac
5903           ;;
5904         esac
5905       fi
5906     done
5907     IFS="$lt_save_ifs"
5908   done
5909   : ${lt_cv_path_NM=no}
5910 fi
5911 fi
5912 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5913 echo "${ECHO_T}$lt_cv_path_NM" >&6
5914 if test "$lt_cv_path_NM" != "no"; then
5915   NM="$lt_cv_path_NM"
5916 else
5917   # Didn't find any BSD compatible name lister, look for dumpbin.
5918   if test -n "$ac_tool_prefix"; then
5919   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5920   do
5921     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5923 echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5925 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   if test -n "$DUMPBIN"; then
5929   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934   IFS=$as_save_IFS
5935   test -z "$as_dir" && as_dir=.
5936   for ac_exec_ext in '' $ac_executable_extensions; do
5937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5938     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940     break 2
5941   fi
5942 done
5943 done
5944
5945 fi
5946 fi
5947 DUMPBIN=$ac_cv_prog_DUMPBIN
5948 if test -n "$DUMPBIN"; then
5949   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5950 echo "${ECHO_T}$DUMPBIN" >&6
5951 else
5952   echo "$as_me:$LINENO: result: no" >&5
5953 echo "${ECHO_T}no" >&6
5954 fi
5955
5956     test -n "$DUMPBIN" && break
5957   done
5958 fi
5959 if test -z "$DUMPBIN"; then
5960   ac_ct_DUMPBIN=$DUMPBIN
5961   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5962 do
5963   # Extract the first word of "$ac_prog", so it can be a program name with args.
5964 set dummy $ac_prog; ac_word=$2
5965 echo "$as_me:$LINENO: checking for $ac_word" >&5
5966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5968   echo $ECHO_N "(cached) $ECHO_C" >&6
5969 else
5970   if test -n "$ac_ct_DUMPBIN"; then
5971   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5972 else
5973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5980     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986
5987 fi
5988 fi
5989 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5990 if test -n "$ac_ct_DUMPBIN"; then
5991   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5992 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5993 else
5994   echo "$as_me:$LINENO: result: no" >&5
5995 echo "${ECHO_T}no" >&6
5996 fi
5997
5998   test -n "$ac_ct_DUMPBIN" && break
5999 done
6000 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
6001
6002   DUMPBIN=$ac_ct_DUMPBIN
6003 fi
6004
6005
6006   if test "$DUMPBIN" != ":"; then
6007     NM="$DUMPBIN"
6008   fi
6009 fi
6010 test -z "$NM" && NM=nm
6011
6012
6013
6014
6015
6016
6017 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6018 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6019 if test "${lt_cv_nm_interface+set}" = set; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022   lt_cv_nm_interface="BSD nm"
6023   echo "int some_variable = 0;" > conftest.$ac_ext
6024   (eval echo "\"\$as_me:6024: $ac_compile\"" >&5)
6025   (eval "$ac_compile" 2>conftest.err)
6026   cat conftest.err >&5
6027   (eval echo "\"\$as_me:6027: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6028   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6029   cat conftest.err >&5
6030   (eval echo "\"\$as_me:6030: output\"" >&5)
6031   cat conftest.out >&5
6032   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6033     lt_cv_nm_interface="MS dumpbin"
6034   fi
6035   rm -f conftest*
6036 fi
6037 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6038 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6039
6040 # find the maximum length of command line arguments
6041 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6042 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6043 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6044   echo $ECHO_N "(cached) $ECHO_C" >&6
6045 else
6046     i=0
6047   teststring="ABCD"
6048
6049   case $build_os in
6050   msdosdjgpp*)
6051     # On DJGPP, this test can blow up pretty badly due to problems in libc
6052     # (any single argument exceeding 2000 bytes causes a buffer overrun
6053     # during glob expansion).  Even if it were fixed, the result of this
6054     # check would be larger than it should be.
6055     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6056     ;;
6057
6058   gnu*)
6059     # Under GNU Hurd, this test is not required because there is
6060     # no limit to the length of command line arguments.
6061     # Libtool will interpret -1 as no limit whatsoever
6062     lt_cv_sys_max_cmd_len=-1;
6063     ;;
6064
6065   cygwin* | mingw*)
6066     # On Win9x/ME, this test blows up -- it succeeds, but takes
6067     # about 5 minutes as the teststring grows exponentially.
6068     # Worse, since 9x/ME are not pre-emptively multitasking,
6069     # you end up with a "frozen" computer, even though with patience
6070     # the test eventually succeeds (with a max line length of 256k).
6071     # Instead, let's just punt: use the minimum linelength reported by
6072     # all of the supported platforms: 8192 (on NT/2K/XP).
6073     lt_cv_sys_max_cmd_len=8192;
6074     ;;
6075
6076   amigaos*)
6077     # On AmigaOS with pdksh, this test takes hours, literally.
6078     # So we just punt and use a minimum line length of 8192.
6079     lt_cv_sys_max_cmd_len=8192;
6080     ;;
6081
6082   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6083     # This has been around since 386BSD, at least.  Likely further.
6084     if test -x /sbin/sysctl; then
6085       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6086     elif test -x /usr/sbin/sysctl; then
6087       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6088     else
6089       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6090     fi
6091     # And add a safety zone
6092     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6093     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6094     ;;
6095
6096   interix*)
6097     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6098     lt_cv_sys_max_cmd_len=196608
6099     ;;
6100
6101   osf*)
6102     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6103     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6104     # nice to cause kernel panics so lets avoid the loop below.
6105     # First set a reasonable default.
6106     lt_cv_sys_max_cmd_len=16384
6107     #
6108     if test -x /sbin/sysconfig; then
6109       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6110         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6111       esac
6112     fi
6113     ;;
6114   sco3.2v5*)
6115     lt_cv_sys_max_cmd_len=102400
6116     ;;
6117   sysv5* | sco5v6* | sysv4.2uw2*)
6118     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6119     if test -n "$kargmax"; then
6120       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6121     else
6122       lt_cv_sys_max_cmd_len=32768
6123     fi
6124     ;;
6125   *)
6126     lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6127     if test -n $lt_cv_sys_max_cmd_len; then
6128       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6129       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6130     else
6131       # Make teststring a little bigger before we do anything with it.
6132       # a 1K string should be a reasonable start.
6133       for i in 1 2 3 4 5 6 7 8 ; do
6134         teststring=$teststring$teststring
6135       done
6136       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6137       # If test is not a shell built-in, we'll probably end up computing a
6138       # maximum length that is only half of the actual maximum length, but
6139       # we can't tell.
6140       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6141                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6142               test $i != 17 # 1/2 MB should be enough
6143       do
6144         i=`expr $i + 1`
6145         teststring=$teststring$teststring
6146       done
6147       # Only check the string length outside the loop.
6148       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6149       teststring=
6150       # Add a significant safety factor because C++ compilers can tack on
6151       # massive amounts of additional arguments before passing them to the
6152       # linker.  It appears as though 1/2 is a usable value.
6153       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6154     fi
6155     ;;
6156   esac
6157
6158 fi
6159
6160 if test -n $lt_cv_sys_max_cmd_len ; then
6161   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6162 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6163 else
6164   echo "$as_me:$LINENO: result: none" >&5
6165 echo "${ECHO_T}none" >&6
6166 fi
6167 max_cmd_len=$lt_cv_sys_max_cmd_len
6168
6169
6170
6171
6172
6173
6174 : ${CP="cp -f"}
6175 : ${MV="mv -f"}
6176 : ${RM="rm -f"}
6177
6178 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6179 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6180 # Try some XSI features
6181 xsi_shell=no
6182 ( _lt_dummy="a/b/c"
6183   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6184       = c,a/b,, ) >/dev/null 2>&1 \
6185   && xsi_shell=yes
6186 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6187 echo "${ECHO_T}$xsi_shell" >&6
6188
6189
6190 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6191 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6192 lt_shell_append=no
6193 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6194     >/dev/null 2>&1 \
6195   && lt_shell_append=yes
6196 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6197 echo "${ECHO_T}$lt_shell_append" >&6
6198
6199
6200 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6201   lt_unset=unset
6202 else
6203   lt_unset=false
6204 fi
6205
6206
6207
6208
6209
6210 # test EBCDIC or ASCII
6211 case `echo X|tr X '\101'` in
6212  A) # ASCII based system
6213     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6214   lt_SP2NL='tr \040 \012'
6215   lt_NL2SP='tr \015\012 \040\040'
6216   ;;
6217  *) # EBCDIC based system
6218   lt_SP2NL='tr \100 \n'
6219   lt_NL2SP='tr \r\n \100\100'
6220   ;;
6221 esac
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6232 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6233 if test "${lt_cv_ld_reload_flag+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   lt_cv_ld_reload_flag='-r'
6237 fi
6238 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6239 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6240 reload_flag=$lt_cv_ld_reload_flag
6241 case $reload_flag in
6242 "" | " "*) ;;
6243 *) reload_flag=" $reload_flag" ;;
6244 esac
6245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246 case $host_os in
6247   darwin*)
6248     if test "$GCC" = yes; then
6249       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6250     else
6251       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6252     fi
6253     ;;
6254 esac
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6266 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6267 if test "${lt_cv_deplibs_check_method+set}" = set; then
6268   echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270   lt_cv_file_magic_cmd='$MAGIC_CMD'
6271 lt_cv_file_magic_test_file=
6272 lt_cv_deplibs_check_method='unknown'
6273 # Need to set the preceding variable on all platforms that support
6274 # interlibrary dependencies.
6275 # 'none' -- dependencies not supported.
6276 # `unknown' -- same as none, but documents that we really don't know.
6277 # 'pass_all' -- all dependencies passed with no checks.
6278 # 'test_compile' -- check by making test program.
6279 # 'file_magic [[regex]]' -- check by looking for files in library path
6280 # which responds to the $file_magic_cmd with a given extended regex.
6281 # If you have `file' or equivalent on your system and you're not sure
6282 # whether `pass_all' will *always* work, you probably want this one.
6283
6284 case $host_os in
6285 aix[4-9]*)
6286   lt_cv_deplibs_check_method=pass_all
6287   ;;
6288
6289 beos*)
6290   lt_cv_deplibs_check_method=pass_all
6291   ;;
6292
6293 bsdi[45]*)
6294   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6295   lt_cv_file_magic_cmd='/usr/bin/file -L'
6296   lt_cv_file_magic_test_file=/shlib/libc.so
6297   ;;
6298
6299 cygwin*)
6300   # func_win32_libid is a shell function defined in ltmain.sh
6301   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6302   lt_cv_file_magic_cmd='func_win32_libid'
6303   ;;
6304
6305 mingw* | pw32*)
6306   # Base MSYS/MinGW do not provide the 'file' command needed by
6307   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6308   # unless we find 'file', for example because we are cross-compiling.
6309   if ( file / ) >/dev/null 2>&1; then
6310     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311     lt_cv_file_magic_cmd='func_win32_libid'
6312   else
6313     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6314     lt_cv_file_magic_cmd='$OBJDUMP -f'
6315   fi
6316   ;;
6317
6318 darwin* | rhapsody*)
6319   lt_cv_deplibs_check_method=pass_all
6320   ;;
6321
6322 freebsd* | dragonfly*)
6323   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6324     case $host_cpu in
6325     i*86 )
6326       # Not sure whether the presence of OpenBSD here was a mistake.
6327       # Let's accept both of them until this is cleared up.
6328       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6329       lt_cv_file_magic_cmd=/usr/bin/file
6330       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6331       ;;
6332     esac
6333   else
6334     lt_cv_deplibs_check_method=pass_all
6335   fi
6336   ;;
6337
6338 gnu*)
6339   lt_cv_deplibs_check_method=pass_all
6340   ;;
6341
6342 hpux10.20* | hpux11*)
6343   lt_cv_file_magic_cmd=/usr/bin/file
6344   case $host_cpu in
6345   ia64*)
6346     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6347     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6348     ;;
6349   hppa*64*)
6350     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]'
6351     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6352     ;;
6353   *)
6354     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6355     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6356     ;;
6357   esac
6358   ;;
6359
6360 interix[3-9]*)
6361   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6362   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6363   ;;
6364
6365 irix5* | irix6* | nonstopux*)
6366   case $LD in
6367   *-32|*"-32 ") libmagic=32-bit;;
6368   *-n32|*"-n32 ") libmagic=N32;;
6369   *-64|*"-64 ") libmagic=64-bit;;
6370   *) libmagic=never-match;;
6371   esac
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374
6375 # This must be Linux ELF.
6376 linux* | k*bsd*-gnu)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 netbsd*)
6381   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6382     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6383   else
6384     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6385   fi
6386   ;;
6387
6388 newos6*)
6389   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6390   lt_cv_file_magic_cmd=/usr/bin/file
6391   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6392   ;;
6393
6394 *nto* | *qnx*)
6395   lt_cv_deplibs_check_method=pass_all
6396   ;;
6397
6398 openbsd*)
6399   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6400     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6401   else
6402     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6403   fi
6404   ;;
6405
6406 osf3* | osf4* | osf5*)
6407   lt_cv_deplibs_check_method=pass_all
6408   ;;
6409
6410 rdos*)
6411   lt_cv_deplibs_check_method=pass_all
6412   ;;
6413
6414 solaris*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417
6418 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6419   lt_cv_deplibs_check_method=pass_all
6420   ;;
6421
6422 sysv4 | sysv4.3*)
6423   case $host_vendor in
6424   motorola)
6425     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]'
6426     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6427     ;;
6428   ncr)
6429     lt_cv_deplibs_check_method=pass_all
6430     ;;
6431   sequent)
6432     lt_cv_file_magic_cmd='/bin/file'
6433     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6434     ;;
6435   sni)
6436     lt_cv_file_magic_cmd='/bin/file'
6437     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6438     lt_cv_file_magic_test_file=/lib/libc.so
6439     ;;
6440   siemens)
6441     lt_cv_deplibs_check_method=pass_all
6442     ;;
6443   pc)
6444     lt_cv_deplibs_check_method=pass_all
6445     ;;
6446   esac
6447   ;;
6448
6449 tpf*)
6450   lt_cv_deplibs_check_method=pass_all
6451   ;;
6452 esac
6453
6454 fi
6455 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6456 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6457 file_magic_cmd=$lt_cv_file_magic_cmd
6458 deplibs_check_method=$lt_cv_deplibs_check_method
6459 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 if test -n "$ac_tool_prefix"; then
6473   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6474 set dummy ${ac_tool_prefix}ar; ac_word=$2
6475 echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6477 if test "${ac_cv_prog_AR+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if test -n "$AR"; then
6481   ac_cv_prog_AR="$AR" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490     ac_cv_prog_AR="${ac_tool_prefix}ar"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496
6497 fi
6498 fi
6499 AR=$ac_cv_prog_AR
6500 if test -n "$AR"; then
6501   echo "$as_me:$LINENO: result: $AR" >&5
6502 echo "${ECHO_T}$AR" >&6
6503 else
6504   echo "$as_me:$LINENO: result: no" >&5
6505 echo "${ECHO_T}no" >&6
6506 fi
6507
6508 fi
6509 if test -z "$ac_cv_prog_AR"; then
6510   ac_ct_AR=$AR
6511   # Extract the first word of "ar", so it can be a program name with args.
6512 set dummy ar; ac_word=$2
6513 echo "$as_me:$LINENO: checking for $ac_word" >&5
6514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6515 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6516   echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518   if test -n "$ac_ct_AR"; then
6519   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6520 else
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 for as_dir in $PATH
6523 do
6524   IFS=$as_save_IFS
6525   test -z "$as_dir" && as_dir=.
6526   for ac_exec_ext in '' $ac_executable_extensions; do
6527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6528     ac_cv_prog_ac_ct_AR="ar"
6529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6530     break 2
6531   fi
6532 done
6533 done
6534
6535   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6536 fi
6537 fi
6538 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6539 if test -n "$ac_ct_AR"; then
6540   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6541 echo "${ECHO_T}$ac_ct_AR" >&6
6542 else
6543   echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6
6545 fi
6546
6547   AR=$ac_ct_AR
6548 else
6549   AR="$ac_cv_prog_AR"
6550 fi
6551
6552 test -z "$AR" && AR=ar
6553 test -z "$AR_FLAGS" && AR_FLAGS=cru
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565 if test -n "$ac_tool_prefix"; then
6566   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6567 set dummy ${ac_tool_prefix}strip; ac_word=$2
6568 echo "$as_me:$LINENO: checking for $ac_word" >&5
6569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6570 if test "${ac_cv_prog_STRIP+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   if test -n "$STRIP"; then
6574   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579   IFS=$as_save_IFS
6580   test -z "$as_dir" && as_dir=.
6581   for ac_exec_ext in '' $ac_executable_extensions; do
6582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6585     break 2
6586   fi
6587 done
6588 done
6589
6590 fi
6591 fi
6592 STRIP=$ac_cv_prog_STRIP
6593 if test -n "$STRIP"; then
6594   echo "$as_me:$LINENO: result: $STRIP" >&5
6595 echo "${ECHO_T}$STRIP" >&6
6596 else
6597   echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6
6599 fi
6600
6601 fi
6602 if test -z "$ac_cv_prog_STRIP"; then
6603   ac_ct_STRIP=$STRIP
6604   # Extract the first word of "strip", so it can be a program name with args.
6605 set dummy strip; ac_word=$2
6606 echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6608 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$ac_ct_STRIP"; then
6612   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6621     ac_cv_prog_ac_ct_STRIP="strip"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627
6628   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6629 fi
6630 fi
6631 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6632 if test -n "$ac_ct_STRIP"; then
6633   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6634 echo "${ECHO_T}$ac_ct_STRIP" >&6
6635 else
6636   echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6
6638 fi
6639
6640   STRIP=$ac_ct_STRIP
6641 else
6642   STRIP="$ac_cv_prog_STRIP"
6643 fi
6644
6645 test -z "$STRIP" && STRIP=:
6646
6647
6648
6649
6650
6651
6652 if test -n "$ac_tool_prefix"; then
6653   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6655 echo "$as_me:$LINENO: checking for $ac_word" >&5
6656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6657 if test "${ac_cv_prog_RANLIB+set}" = set; then
6658   echo $ECHO_N "(cached) $ECHO_C" >&6
6659 else
6660   if test -n "$RANLIB"; then
6661   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666   IFS=$as_save_IFS
6667   test -z "$as_dir" && as_dir=.
6668   for ac_exec_ext in '' $ac_executable_extensions; do
6669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672     break 2
6673   fi
6674 done
6675 done
6676
6677 fi
6678 fi
6679 RANLIB=$ac_cv_prog_RANLIB
6680 if test -n "$RANLIB"; then
6681   echo "$as_me:$LINENO: result: $RANLIB" >&5
6682 echo "${ECHO_T}$RANLIB" >&6
6683 else
6684   echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6
6686 fi
6687
6688 fi
6689 if test -z "$ac_cv_prog_RANLIB"; then
6690   ac_ct_RANLIB=$RANLIB
6691   # Extract the first word of "ranlib", so it can be a program name with args.
6692 set dummy ranlib; ac_word=$2
6693 echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6696   echo $ECHO_N "(cached) $ECHO_C" >&6
6697 else
6698   if test -n "$ac_ct_RANLIB"; then
6699   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708     ac_cv_prog_ac_ct_RANLIB="ranlib"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714
6715   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6716 fi
6717 fi
6718 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6719 if test -n "$ac_ct_RANLIB"; then
6720   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6721 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6722 else
6723   echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6
6725 fi
6726
6727   RANLIB=$ac_ct_RANLIB
6728 else
6729   RANLIB="$ac_cv_prog_RANLIB"
6730 fi
6731
6732 test -z "$RANLIB" && RANLIB=:
6733
6734
6735
6736
6737
6738
6739 # Determine commands to create old-style static archives.
6740 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6741 old_postinstall_cmds='chmod 644 $oldlib'
6742 old_postuninstall_cmds=
6743
6744 if test -n "$RANLIB"; then
6745   case $host_os in
6746   openbsd*)
6747     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6748     ;;
6749   *)
6750     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6751     ;;
6752   esac
6753   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6754 fi
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789 # If no C compiler was specified, use CC.
6790 LTCC=${LTCC-"$CC"}
6791
6792 # If no C compiler flags were specified, use CFLAGS.
6793 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6794
6795 # Allow CC to be a program name with arguments.
6796 compiler=$CC
6797
6798
6799 # Check for command to grab the raw symbol name followed by C symbol from nm.
6800 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6801 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6802 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805
6806 # These are sane defaults that work on at least a few old systems.
6807 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6808
6809 # Character class describing NM global symbol codes.
6810 symcode='[BCDEGRST]'
6811
6812 # Regexp to match symbols that can be accessed directly from C.
6813 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6814
6815 # Define system-specific variables.
6816 case $host_os in
6817 aix*)
6818   symcode='[BCDT]'
6819   ;;
6820 cygwin* | mingw* | pw32*)
6821   symcode='[ABCDGISTW]'
6822   ;;
6823 hpux*)
6824   if test "$host_cpu" = ia64; then
6825     symcode='[ABCDEGRST]'
6826   fi
6827   ;;
6828 irix* | nonstopux*)
6829   symcode='[BCDEGRST]'
6830   ;;
6831 osf*)
6832   symcode='[BCDEGQRST]'
6833   ;;
6834 solaris*)
6835   symcode='[BDRT]'
6836   ;;
6837 sco3.2v5*)
6838   symcode='[DT]'
6839   ;;
6840 sysv4.2uw2*)
6841   symcode='[DT]'
6842   ;;
6843 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6844   symcode='[ABDT]'
6845   ;;
6846 sysv4)
6847   symcode='[DFNSTU]'
6848   ;;
6849 esac
6850
6851 # If we're using GNU nm, then use its standard symbol codes.
6852 case `$NM -V 2>&1` in
6853 *GNU* | *'with BFD'*)
6854   symcode='[ABCDGIRSTW]' ;;
6855 esac
6856
6857 # Transform an extracted symbol line into a proper C declaration.
6858 # Some systems (esp. on ia64) link data and code symbols differently,
6859 # so use this general approach.
6860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6861
6862 # Transform an extracted symbol line into symbol name and symbol address
6863 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6864
6865 # Handle CRLF in mingw tool chain
6866 opt_cr=
6867 case $build_os in
6868 mingw*)
6869   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6870   ;;
6871 esac
6872
6873 # Try without a prefix underscore, then with it.
6874 for ac_symprfx in "" "_"; do
6875
6876   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6877   symxfrm="\\1 $ac_symprfx\\2 \\2"
6878
6879   # Write the raw and C identifiers.
6880   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6881     # Fake it for dumpbin and say T for any non-static function
6882     # and D for any global variable.
6883     # Also find C++ and __fastcall symbols from MSVC++,
6884     # which start with @ or ?.
6885     lt_cv_sys_global_symbol_pipe="$AWK '"\
6886 "     {last_section=section; section=\$ 3};"\
6887 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6888 "     \$ 0!~/External *\|/{next};"\
6889 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6890 "     {if(hide[section]) next};"\
6891 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6892 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6893 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6894 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6895 "     ' prfx=^$ac_symprfx"
6896   else
6897     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6898   fi
6899
6900   # Check to see that the pipe works correctly.
6901   pipe_works=no
6902
6903   rm -f conftest*
6904   cat > conftest.$ac_ext <<_LT_EOF
6905 #ifdef __cplusplus
6906 extern "C" {
6907 #endif
6908 char nm_test_var;
6909 void nm_test_func(void);
6910 void nm_test_func(void){}
6911 #ifdef __cplusplus
6912 }
6913 #endif
6914 int main(){nm_test_var='a';nm_test_func();return(0);}
6915 _LT_EOF
6916
6917   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918   (eval $ac_compile) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; then
6922     # Now try to grab the symbols.
6923     nlist=conftest.nm
6924     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6925   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6926   ac_status=$?
6927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928   (exit $ac_status); } && test -s "$nlist"; then
6929       # Try sorting and uniquifying the output.
6930       if sort "$nlist" | uniq > "$nlist"T; then
6931         mv -f "$nlist"T "$nlist"
6932       else
6933         rm -f "$nlist"T
6934       fi
6935
6936       # Make sure that we snagged all the symbols we need.
6937       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6938         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6939           cat <<_LT_EOF > conftest.$ac_ext
6940 #ifdef __cplusplus
6941 extern "C" {
6942 #endif
6943
6944 _LT_EOF
6945           # Now generate the symbol file.
6946           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6947
6948           cat <<_LT_EOF >> conftest.$ac_ext
6949
6950 /* The mapping between symbol names and symbols.  */
6951 const struct {
6952   const char *name;
6953   void       *address;
6954 }
6955 lt__PROGRAM__LTX_preloaded_symbols[] =
6956 {
6957   { "@PROGRAM@", (void *) 0 },
6958 _LT_EOF
6959           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6960           cat <<\_LT_EOF >> conftest.$ac_ext
6961   {0, (void *) 0}
6962 };
6963
6964 /* This works around a problem in FreeBSD linker */
6965 #ifdef FREEBSD_WORKAROUND
6966 static const void *lt_preloaded_setup() {
6967   return lt__PROGRAM__LTX_preloaded_symbols;
6968 }
6969 #endif
6970
6971 #ifdef __cplusplus
6972 }
6973 #endif
6974 _LT_EOF
6975           # Now try linking the two files.
6976           mv conftest.$ac_objext conftstm.$ac_objext
6977           lt_save_LIBS="$LIBS"
6978           lt_save_CFLAGS="$CFLAGS"
6979           LIBS="conftstm.$ac_objext"
6980           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6981           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982   (eval $ac_link) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6986             pipe_works=yes
6987           fi
6988           LIBS="$lt_save_LIBS"
6989           CFLAGS="$lt_save_CFLAGS"
6990         else
6991           echo "cannot find nm_test_func in $nlist" >&5
6992         fi
6993       else
6994         echo "cannot find nm_test_var in $nlist" >&5
6995       fi
6996     else
6997       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6998     fi
6999   else
7000     echo "$progname: failed program was:" >&5
7001     cat conftest.$ac_ext >&5
7002   fi
7003   rm -f conftest* conftst*
7004
7005   # Do not use the global_symbol_pipe unless it works.
7006   if test "$pipe_works" = yes; then
7007     break
7008   else
7009     lt_cv_sys_global_symbol_pipe=
7010   fi
7011 done
7012
7013 fi
7014
7015 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7016   lt_cv_sys_global_symbol_to_cdecl=
7017 fi
7018 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7019   echo "$as_me:$LINENO: result: failed" >&5
7020 echo "${ECHO_T}failed" >&6
7021 else
7022   echo "$as_me:$LINENO: result: ok" >&5
7023 echo "${ECHO_T}ok" >&6
7024 fi
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7044 if test "${enable_libtool_lock+set}" = set; then
7045   enableval="$enable_libtool_lock"
7046
7047 fi;
7048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7049
7050 # Some flags need to be propagated to the compiler or linker for good
7051 # libtool support.
7052 case $host in
7053 ia64-*-hpux*)
7054   # Find out which ABI we are using.
7055   echo 'int i;' > conftest.$ac_ext
7056   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>&5
7058   ac_status=$?
7059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060   (exit $ac_status); }; then
7061     case `/usr/bin/file conftest.$ac_objext` in
7062       *ELF-32*)
7063         HPUX_IA64_MODE="32"
7064         ;;
7065       *ELF-64*)
7066         HPUX_IA64_MODE="64"
7067         ;;
7068     esac
7069   fi
7070   rm -rf conftest*
7071   ;;
7072 *-*-irix6*)
7073   # Find out which ABI we are using.
7074   echo '#line 7074 "configure"' > conftest.$ac_ext
7075   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7076   (eval $ac_compile) 2>&5
7077   ac_status=$?
7078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079   (exit $ac_status); }; then
7080     if test "$lt_cv_prog_gnu_ld" = yes; then
7081       case `/usr/bin/file conftest.$ac_objext` in
7082         *32-bit*)
7083           LD="${LD-ld} -melf32bsmip"
7084           ;;
7085         *N32*)
7086           LD="${LD-ld} -melf32bmipn32"
7087           ;;
7088         *64-bit*)
7089           LD="${LD-ld} -melf64bmip"
7090         ;;
7091       esac
7092     else
7093       case `/usr/bin/file conftest.$ac_objext` in
7094         *32-bit*)
7095           LD="${LD-ld} -32"
7096           ;;
7097         *N32*)
7098           LD="${LD-ld} -n32"
7099           ;;
7100         *64-bit*)
7101           LD="${LD-ld} -64"
7102           ;;
7103       esac
7104     fi
7105   fi
7106   rm -rf conftest*
7107   ;;
7108
7109 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7110 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7111   # Find out which ABI we are using.
7112   echo 'int i;' > conftest.$ac_ext
7113   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114   (eval $ac_compile) 2>&5
7115   ac_status=$?
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); }; then
7118     case `/usr/bin/file conftest.o` in
7119       *32-bit*)
7120         case $host in
7121           x86_64-*kfreebsd*-gnu)
7122             LD="${LD-ld} -m elf_i386_fbsd"
7123             ;;
7124           x86_64-*linux*)
7125             LD="${LD-ld} -m elf_i386"
7126             ;;
7127           ppc64-*linux*|powerpc64-*linux*)
7128             LD="${LD-ld} -m elf32ppclinux"
7129             ;;
7130           s390x-*linux*)
7131             LD="${LD-ld} -m elf_s390"
7132             ;;
7133           sparc64-*linux*)
7134             LD="${LD-ld} -m elf32_sparc"
7135             ;;
7136         esac
7137         ;;
7138       *64-bit*)
7139         case $host in
7140           x86_64-*kfreebsd*-gnu)
7141             LD="${LD-ld} -m elf_x86_64_fbsd"
7142             ;;
7143           x86_64-*linux*)
7144             LD="${LD-ld} -m elf_x86_64"
7145             ;;
7146           ppc*-*linux*|powerpc*-*linux*)
7147             LD="${LD-ld} -m elf64ppc"
7148             ;;
7149           s390*-*linux*|s390*-*tpf*)
7150             LD="${LD-ld} -m elf64_s390"
7151             ;;
7152           sparc*-*linux*)
7153             LD="${LD-ld} -m elf64_sparc"
7154             ;;
7155         esac
7156         ;;
7157     esac
7158   fi
7159   rm -rf conftest*
7160   ;;
7161
7162 *-*-sco3.2v5*)
7163   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7164   SAVE_CFLAGS="$CFLAGS"
7165   CFLAGS="$CFLAGS -belf"
7166   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7167 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7168 if test "${lt_cv_cc_needs_belf+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   ac_ext=c
7172 ac_cpp='$CPP $CPPFLAGS'
7173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7176
7177      if test x$gcc_no_link = xyes; then
7178   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7180    { (exit 1); exit 1; }; }
7181 fi
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h.  */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h.  */
7188
7189 int
7190 main ()
7191 {
7192
7193   ;
7194   return 0;
7195 }
7196 _ACEOF
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199   (eval $ac_link) 2>conftest.er1
7200   ac_status=$?
7201   grep -v '^ *+' conftest.er1 >conftest.err
7202   rm -f conftest.er1
7203   cat conftest.err >&5
7204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205   (exit $ac_status); } &&
7206          { ac_try='test -z "$ac_c_werror_flag"
7207                          || test ! -s conftest.err'
7208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209   (eval $ac_try) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; } &&
7213          { ac_try='test -s conftest$ac_exeext'
7214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215   (eval $ac_try) 2>&5
7216   ac_status=$?
7217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218   (exit $ac_status); }; }; then
7219   lt_cv_cc_needs_belf=yes
7220 else
7221   echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224 lt_cv_cc_needs_belf=no
7225 fi
7226 rm -f conftest.err conftest.$ac_objext \
7227       conftest$ac_exeext conftest.$ac_ext
7228      ac_ext=c
7229 ac_cpp='$CPP $CPPFLAGS'
7230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7233
7234 fi
7235 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7236 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7237   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7238     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7239     CFLAGS="$SAVE_CFLAGS"
7240   fi
7241   ;;
7242 sparc*-*solaris*)
7243   # Find out which ABI we are using.
7244   echo 'int i;' > conftest.$ac_ext
7245   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7246   (eval $ac_compile) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; then
7250     case `/usr/bin/file conftest.o` in
7251     *64-bit*)
7252       case $lt_cv_prog_gnu_ld in
7253       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7254       *)    LD="${LD-ld} -64" ;;
7255       esac
7256       ;;
7257     esac
7258   fi
7259   rm -rf conftest*
7260   ;;
7261 esac
7262
7263 need_locks="$enable_libtool_lock"
7264
7265 ac_ext=c
7266 ac_cpp='$CPP $CPPFLAGS'
7267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7272 # On Suns, sometimes $CPP names a directory.
7273 if test -n "$CPP" && test -d "$CPP"; then
7274   CPP=
7275 fi
7276 if test -z "$CPP"; then
7277   if test "${ac_cv_prog_CPP+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280       # Double quotes because CPP needs to be expanded
7281     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7282     do
7283       ac_preproc_ok=false
7284 for ac_c_preproc_warn_flag in '' yes
7285 do
7286   # Use a header file that comes with gcc, so configuring glibc
7287   # with a fresh cross-compiler works.
7288   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7289   # <limits.h> exists even on freestanding compilers.
7290   # On the NeXT, cc -E runs the code through the compiler's parser,
7291   # not just through cpp. "Syntax error" is here to catch this case.
7292   cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h.  */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h.  */
7298 #ifdef __STDC__
7299 # include <limits.h>
7300 #else
7301 # include <assert.h>
7302 #endif
7303                      Syntax error
7304 _ACEOF
7305 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7306   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7307   ac_status=$?
7308   grep -v '^ *+' conftest.er1 >conftest.err
7309   rm -f conftest.er1
7310   cat conftest.err >&5
7311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312   (exit $ac_status); } >/dev/null; then
7313   if test -s conftest.err; then
7314     ac_cpp_err=$ac_c_preproc_warn_flag
7315     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7316   else
7317     ac_cpp_err=
7318   fi
7319 else
7320   ac_cpp_err=yes
7321 fi
7322 if test -z "$ac_cpp_err"; then
7323   :
7324 else
7325   echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7327
7328   # Broken: fails on valid input.
7329 continue
7330 fi
7331 rm -f conftest.err conftest.$ac_ext
7332
7333   # OK, works on sane cases.  Now check whether non-existent headers
7334   # can be detected and how.
7335   cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 #include <ac_nonexistent.h>
7342 _ACEOF
7343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7345   ac_status=$?
7346   grep -v '^ *+' conftest.er1 >conftest.err
7347   rm -f conftest.er1
7348   cat conftest.err >&5
7349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350   (exit $ac_status); } >/dev/null; then
7351   if test -s conftest.err; then
7352     ac_cpp_err=$ac_c_preproc_warn_flag
7353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7354   else
7355     ac_cpp_err=
7356   fi
7357 else
7358   ac_cpp_err=yes
7359 fi
7360 if test -z "$ac_cpp_err"; then
7361   # Broken: success on invalid input.
7362 continue
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367   # Passes both tests.
7368 ac_preproc_ok=:
7369 break
7370 fi
7371 rm -f conftest.err conftest.$ac_ext
7372
7373 done
7374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7375 rm -f conftest.err conftest.$ac_ext
7376 if $ac_preproc_ok; then
7377   break
7378 fi
7379
7380     done
7381     ac_cv_prog_CPP=$CPP
7382
7383 fi
7384   CPP=$ac_cv_prog_CPP
7385 else
7386   ac_cv_prog_CPP=$CPP
7387 fi
7388 echo "$as_me:$LINENO: result: $CPP" >&5
7389 echo "${ECHO_T}$CPP" >&6
7390 ac_preproc_ok=false
7391 for ac_c_preproc_warn_flag in '' yes
7392 do
7393   # Use a header file that comes with gcc, so configuring glibc
7394   # with a fresh cross-compiler works.
7395   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7396   # <limits.h> exists even on freestanding compilers.
7397   # On the NeXT, cc -E runs the code through the compiler's parser,
7398   # not just through cpp. "Syntax error" is here to catch this case.
7399   cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7410                      Syntax error
7411 _ACEOF
7412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7413   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7414   ac_status=$?
7415   grep -v '^ *+' conftest.er1 >conftest.err
7416   rm -f conftest.er1
7417   cat conftest.err >&5
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); } >/dev/null; then
7420   if test -s conftest.err; then
7421     ac_cpp_err=$ac_c_preproc_warn_flag
7422     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7423   else
7424     ac_cpp_err=
7425   fi
7426 else
7427   ac_cpp_err=yes
7428 fi
7429 if test -z "$ac_cpp_err"; then
7430   :
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435   # Broken: fails on valid input.
7436 continue
7437 fi
7438 rm -f conftest.err conftest.$ac_ext
7439
7440   # OK, works on sane cases.  Now check whether non-existent headers
7441   # can be detected and how.
7442   cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h.  */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h.  */
7448 #include <ac_nonexistent.h>
7449 _ACEOF
7450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7452   ac_status=$?
7453   grep -v '^ *+' conftest.er1 >conftest.err
7454   rm -f conftest.er1
7455   cat conftest.err >&5
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); } >/dev/null; then
7458   if test -s conftest.err; then
7459     ac_cpp_err=$ac_c_preproc_warn_flag
7460     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7461   else
7462     ac_cpp_err=
7463   fi
7464 else
7465   ac_cpp_err=yes
7466 fi
7467 if test -z "$ac_cpp_err"; then
7468   # Broken: success on invalid input.
7469 continue
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474   # Passes both tests.
7475 ac_preproc_ok=:
7476 break
7477 fi
7478 rm -f conftest.err conftest.$ac_ext
7479
7480 done
7481 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7482 rm -f conftest.err conftest.$ac_ext
7483 if $ac_preproc_ok; then
7484   :
7485 else
7486   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7487 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7489 See \`config.log' for more details." >&5
7490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7491 See \`config.log' for more details." >&2;}
7492    { (exit 1); exit 1; }; }; }
7493 fi
7494
7495 ac_ext=c
7496 ac_cpp='$CPP $CPPFLAGS'
7497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7500
7501
7502 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7504 if test "${ac_cv_header_stdc+set}" = set; then
7505   echo $ECHO_N "(cached) $ECHO_C" >&6
7506 else
7507   cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h.  */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h.  */
7513 #include <stdlib.h>
7514 #include <stdarg.h>
7515 #include <string.h>
7516 #include <float.h>
7517
7518 int
7519 main ()
7520 {
7521
7522   ;
7523   return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528   (eval $ac_compile) 2>conftest.er1
7529   ac_status=$?
7530   grep -v '^ *+' conftest.er1 >conftest.err
7531   rm -f conftest.er1
7532   cat conftest.err >&5
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); } &&
7535          { ac_try='test -z "$ac_c_werror_flag"
7536                          || test ! -s conftest.err'
7537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538   (eval $ac_try) 2>&5
7539   ac_status=$?
7540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); }; } &&
7542          { ac_try='test -s conftest.$ac_objext'
7543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7544   (eval $ac_try) 2>&5
7545   ac_status=$?
7546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547   (exit $ac_status); }; }; then
7548   ac_cv_header_stdc=yes
7549 else
7550   echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553 ac_cv_header_stdc=no
7554 fi
7555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7556
7557 if test $ac_cv_header_stdc = yes; then
7558   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7559   cat >conftest.$ac_ext <<_ACEOF
7560 /* confdefs.h.  */
7561 _ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h.  */
7565 #include <string.h>
7566
7567 _ACEOF
7568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7569   $EGREP "memchr" >/dev/null 2>&1; then
7570   :
7571 else
7572   ac_cv_header_stdc=no
7573 fi
7574 rm -f conftest*
7575
7576 fi
7577
7578 if test $ac_cv_header_stdc = yes; then
7579   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7580   cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h.  */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h.  */
7586 #include <stdlib.h>
7587
7588 _ACEOF
7589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7590   $EGREP "free" >/dev/null 2>&1; then
7591   :
7592 else
7593   ac_cv_header_stdc=no
7594 fi
7595 rm -f conftest*
7596
7597 fi
7598
7599 if test $ac_cv_header_stdc = yes; then
7600   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7601   if test "$cross_compiling" = yes; then
7602   :
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 #include <ctype.h>
7611 #if ((' ' & 0x0FF) == 0x020)
7612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7614 #else
7615 # define ISLOWER(c) \
7616                    (('a' <= (c) && (c) <= 'i') \
7617                      || ('j' <= (c) && (c) <= 'r') \
7618                      || ('s' <= (c) && (c) <= 'z'))
7619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7620 #endif
7621
7622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7623 int
7624 main ()
7625 {
7626   int i;
7627   for (i = 0; i < 256; i++)
7628     if (XOR (islower (i), ISLOWER (i))
7629         || toupper (i) != TOUPPER (i))
7630       exit(2);
7631   exit (0);
7632 }
7633 _ACEOF
7634 rm -f conftest$ac_exeext
7635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636   (eval $ac_link) 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   :
7646 else
7647   echo "$as_me: program exited with status $ac_status" >&5
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ( exit $ac_status )
7652 ac_cv_header_stdc=no
7653 fi
7654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7655 fi
7656 fi
7657 fi
7658 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7659 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7660 if test $ac_cv_header_stdc = yes; then
7661
7662 cat >>confdefs.h <<\_ACEOF
7663 #define STDC_HEADERS 1
7664 _ACEOF
7665
7666 fi
7667
7668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7679                   inttypes.h stdint.h unistd.h
7680 do
7681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7685   echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687   cat >conftest.$ac_ext <<_ACEOF
7688 /* confdefs.h.  */
7689 _ACEOF
7690 cat confdefs.h >>conftest.$ac_ext
7691 cat >>conftest.$ac_ext <<_ACEOF
7692 /* end confdefs.h.  */
7693 $ac_includes_default
7694
7695 #include <$ac_header>
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7699   (eval $ac_compile) 2>conftest.er1
7700   ac_status=$?
7701   grep -v '^ *+' conftest.er1 >conftest.err
7702   rm -f conftest.er1
7703   cat conftest.err >&5
7704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705   (exit $ac_status); } &&
7706          { ac_try='test -z "$ac_c_werror_flag"
7707                          || test ! -s conftest.err'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; } &&
7713          { ac_try='test -s conftest.$ac_objext'
7714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715   (eval $ac_try) 2>&5
7716   ac_status=$?
7717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718   (exit $ac_status); }; }; then
7719   eval "$as_ac_Header=yes"
7720 else
7721   echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7723
7724 eval "$as_ac_Header=no"
7725 fi
7726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731   cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733 _ACEOF
7734
7735 fi
7736
7737 done
7738
7739
7740
7741 for ac_header in dlfcn.h
7742 do
7743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7744 echo "$as_me:$LINENO: checking for $ac_header" >&5
7745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 $ac_includes_default
7756
7757 #include <$ac_header>
7758 _ACEOF
7759 rm -f conftest.$ac_objext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761   (eval $ac_compile) 2>conftest.er1
7762   ac_status=$?
7763   grep -v '^ *+' conftest.er1 >conftest.err
7764   rm -f conftest.er1
7765   cat conftest.err >&5
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); } &&
7768          { ac_try='test -z "$ac_c_werror_flag"
7769                          || test ! -s conftest.err'
7770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771   (eval $ac_try) 2>&5
7772   ac_status=$?
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); }; } &&
7775          { ac_try='test -s conftest.$ac_objext'
7776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777   (eval $ac_try) 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; }; then
7781   eval "$as_ac_Header=yes"
7782 else
7783   echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786 eval "$as_ac_Header=no"
7787 fi
7788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7793   cat >>confdefs.h <<_ACEOF
7794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7795 _ACEOF
7796
7797 fi
7798
7799 done
7800
7801
7802
7803 ac_ext=cc
7804 ac_cpp='$CXXCPP $CPPFLAGS'
7805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7808 if test -n "$ac_tool_prefix"; then
7809   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7810   do
7811     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7812 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7813 echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7815 if test "${ac_cv_prog_CXX+set}" = set; then
7816   echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818   if test -n "$CXX"; then
7819   ac_cv_prog_CXX="$CXX" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826   for ac_exec_ext in '' $ac_executable_extensions; do
7827   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833 done
7834
7835 fi
7836 fi
7837 CXX=$ac_cv_prog_CXX
7838 if test -n "$CXX"; then
7839   echo "$as_me:$LINENO: result: $CXX" >&5
7840 echo "${ECHO_T}$CXX" >&6
7841 else
7842   echo "$as_me:$LINENO: result: no" >&5
7843 echo "${ECHO_T}no" >&6
7844 fi
7845
7846     test -n "$CXX" && break
7847   done
7848 fi
7849 if test -z "$CXX"; then
7850   ac_ct_CXX=$CXX
7851   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7852 do
7853   # Extract the first word of "$ac_prog", so it can be a program name with args.
7854 set dummy $ac_prog; ac_word=$2
7855 echo "$as_me:$LINENO: checking for $ac_word" >&5
7856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7857 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7858   echo $ECHO_N "(cached) $ECHO_C" >&6
7859 else
7860   if test -n "$ac_ct_CXX"; then
7861   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868   for ac_exec_ext in '' $ac_executable_extensions; do
7869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870     ac_cv_prog_ac_ct_CXX="$ac_prog"
7871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875 done
7876
7877 fi
7878 fi
7879 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7880 if test -n "$ac_ct_CXX"; then
7881   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7882 echo "${ECHO_T}$ac_ct_CXX" >&6
7883 else
7884   echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 fi
7887
7888   test -n "$ac_ct_CXX" && break
7889 done
7890 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7891
7892   CXX=$ac_ct_CXX
7893 fi
7894
7895
7896 # Provide some information about the compiler.
7897 echo "$as_me:$LINENO:" \
7898      "checking for C++ compiler version" >&5
7899 ac_compiler=`set X $ac_compile; echo $2`
7900 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7901   (eval $ac_compiler --version </dev/null >&5) 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }
7905 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7906   (eval $ac_compiler -v </dev/null >&5) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); }
7910 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7911   (eval $ac_compiler -V </dev/null >&5) 2>&5
7912   ac_status=$?
7913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914   (exit $ac_status); }
7915
7916 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7917 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7918 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7919   echo $ECHO_N "(cached) $ECHO_C" >&6
7920 else
7921   cat >conftest.$ac_ext <<_ACEOF
7922 /* confdefs.h.  */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h.  */
7927
7928 int
7929 main ()
7930 {
7931 #ifndef __GNUC__
7932        choke me
7933 #endif
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941   (eval $ac_compile) 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } &&
7948          { ac_try='test -z "$ac_cxx_werror_flag"
7949                          || test ! -s conftest.err'
7950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951   (eval $ac_try) 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; } &&
7955          { ac_try='test -s conftest.$ac_objext'
7956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957   (eval $ac_try) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); }; }; then
7961   ac_compiler_gnu=yes
7962 else
7963   echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ac_compiler_gnu=no
7967 fi
7968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7970
7971 fi
7972 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7973 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7974 GXX=`test $ac_compiler_gnu = yes && echo yes`
7975 ac_test_CXXFLAGS=${CXXFLAGS+set}
7976 ac_save_CXXFLAGS=$CXXFLAGS
7977 CXXFLAGS="-g"
7978 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7979 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7980 if test "${ac_cv_prog_cxx_g+set}" = set; then
7981   echo $ECHO_N "(cached) $ECHO_C" >&6
7982 else
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989
7990 int
7991 main ()
7992 {
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000   (eval $ac_compile) 2>conftest.er1
8001   ac_status=$?
8002   grep -v '^ *+' conftest.er1 >conftest.err
8003   rm -f conftest.er1
8004   cat conftest.err >&5
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); } &&
8007          { ac_try='test -z "$ac_cxx_werror_flag"
8008                          || test ! -s conftest.err'
8009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010   (eval $ac_try) 2>&5
8011   ac_status=$?
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); }; } &&
8014          { ac_try='test -s conftest.$ac_objext'
8015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016   (eval $ac_try) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); }; }; then
8020   ac_cv_prog_cxx_g=yes
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_prog_cxx_g=no
8026 fi
8027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8028 fi
8029 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8030 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8031 if test "$ac_test_CXXFLAGS" = set; then
8032   CXXFLAGS=$ac_save_CXXFLAGS
8033 elif test $ac_cv_prog_cxx_g = yes; then
8034   if test "$GXX" = yes; then
8035     CXXFLAGS="-g -O2"
8036   else
8037     CXXFLAGS="-g"
8038   fi
8039 else
8040   if test "$GXX" = yes; then
8041     CXXFLAGS="-O2"
8042   else
8043     CXXFLAGS=
8044   fi
8045 fi
8046 for ac_declaration in \
8047    '' \
8048    'extern "C" void std::exit (int) throw (); using std::exit;' \
8049    'extern "C" void std::exit (int); using std::exit;' \
8050    'extern "C" void exit (int) throw ();' \
8051    'extern "C" void exit (int);' \
8052    'void exit (int);'
8053 do
8054   cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060 $ac_declaration
8061 #include <stdlib.h>
8062 int
8063 main ()
8064 {
8065 exit (42);
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8072   (eval $ac_compile) 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } &&
8079          { ac_try='test -z "$ac_cxx_werror_flag"
8080                          || test ! -s conftest.err'
8081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082   (eval $ac_try) 2>&5
8083   ac_status=$?
8084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085   (exit $ac_status); }; } &&
8086          { ac_try='test -s conftest.$ac_objext'
8087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088   (eval $ac_try) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; }; then
8092   :
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 continue
8098 fi
8099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8100   cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106 $ac_declaration
8107 int
8108 main ()
8109 {
8110 exit (42);
8111   ;
8112   return 0;
8113 }
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117   (eval $ac_compile) 2>conftest.er1
8118   ac_status=$?
8119   grep -v '^ *+' conftest.er1 >conftest.err
8120   rm -f conftest.er1
8121   cat conftest.err >&5
8122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123   (exit $ac_status); } &&
8124          { ac_try='test -z "$ac_cxx_werror_flag"
8125                          || test ! -s conftest.err'
8126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127   (eval $ac_try) 2>&5
8128   ac_status=$?
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); }; } &&
8131          { ac_try='test -s conftest.$ac_objext'
8132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133   (eval $ac_try) 2>&5
8134   ac_status=$?
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); }; }; then
8137   break
8138 else
8139   echo "$as_me: failed program was:" >&5
8140 sed 's/^/| /' conftest.$ac_ext >&5
8141
8142 fi
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 done
8145 rm -f conftest*
8146 if test -n "$ac_declaration"; then
8147   echo '#ifdef __cplusplus' >>confdefs.h
8148   echo $ac_declaration      >>confdefs.h
8149   echo '#endif'             >>confdefs.h
8150 fi
8151
8152 ac_ext=c
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8159     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8160     (test "X$CXX" != "Xg++"))) ; then
8161   ac_ext=cc
8162 ac_cpp='$CXXCPP $CPPFLAGS'
8163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8166 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8167 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8168 if test -z "$CXXCPP"; then
8169   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172       # Double quotes because CXXCPP needs to be expanded
8173     for CXXCPP in "$CXX -E" "/lib/cpp"
8174     do
8175       ac_preproc_ok=false
8176 for ac_cxx_preproc_warn_flag in '' yes
8177 do
8178   # Use a header file that comes with gcc, so configuring glibc
8179   # with a fresh cross-compiler works.
8180   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8181   # <limits.h> exists even on freestanding compilers.
8182   # On the NeXT, cc -E runs the code through the compiler's parser,
8183   # not just through cpp. "Syntax error" is here to catch this case.
8184   cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190 #ifdef __STDC__
8191 # include <limits.h>
8192 #else
8193 # include <assert.h>
8194 #endif
8195                      Syntax error
8196 _ACEOF
8197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } >/dev/null; then
8205   if test -s conftest.err; then
8206     ac_cpp_err=$ac_cxx_preproc_warn_flag
8207     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8208   else
8209     ac_cpp_err=
8210   fi
8211 else
8212   ac_cpp_err=yes
8213 fi
8214 if test -z "$ac_cpp_err"; then
8215   :
8216 else
8217   echo "$as_me: failed program was:" >&5
8218 sed 's/^/| /' conftest.$ac_ext >&5
8219
8220   # Broken: fails on valid input.
8221 continue
8222 fi
8223 rm -f conftest.err conftest.$ac_ext
8224
8225   # OK, works on sane cases.  Now check whether non-existent headers
8226   # can be detected and how.
8227   cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 #include <ac_nonexistent.h>
8234 _ACEOF
8235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8236   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8237   ac_status=$?
8238   grep -v '^ *+' conftest.er1 >conftest.err
8239   rm -f conftest.er1
8240   cat conftest.err >&5
8241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242   (exit $ac_status); } >/dev/null; then
8243   if test -s conftest.err; then
8244     ac_cpp_err=$ac_cxx_preproc_warn_flag
8245     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8246   else
8247     ac_cpp_err=
8248   fi
8249 else
8250   ac_cpp_err=yes
8251 fi
8252 if test -z "$ac_cpp_err"; then
8253   # Broken: success on invalid input.
8254 continue
8255 else
8256   echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8258
8259   # Passes both tests.
8260 ac_preproc_ok=:
8261 break
8262 fi
8263 rm -f conftest.err conftest.$ac_ext
8264
8265 done
8266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8267 rm -f conftest.err conftest.$ac_ext
8268 if $ac_preproc_ok; then
8269   break
8270 fi
8271
8272     done
8273     ac_cv_prog_CXXCPP=$CXXCPP
8274
8275 fi
8276   CXXCPP=$ac_cv_prog_CXXCPP
8277 else
8278   ac_cv_prog_CXXCPP=$CXXCPP
8279 fi
8280 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8281 echo "${ECHO_T}$CXXCPP" >&6
8282 ac_preproc_ok=false
8283 for ac_cxx_preproc_warn_flag in '' yes
8284 do
8285   # Use a header file that comes with gcc, so configuring glibc
8286   # with a fresh cross-compiler works.
8287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8288   # <limits.h> exists even on freestanding compilers.
8289   # On the NeXT, cc -E runs the code through the compiler's parser,
8290   # not just through cpp. "Syntax error" is here to catch this case.
8291   cat >conftest.$ac_ext <<_ACEOF
8292 /* confdefs.h.  */
8293 _ACEOF
8294 cat confdefs.h >>conftest.$ac_ext
8295 cat >>conftest.$ac_ext <<_ACEOF
8296 /* end confdefs.h.  */
8297 #ifdef __STDC__
8298 # include <limits.h>
8299 #else
8300 # include <assert.h>
8301 #endif
8302                      Syntax error
8303 _ACEOF
8304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8305   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8306   ac_status=$?
8307   grep -v '^ *+' conftest.er1 >conftest.err
8308   rm -f conftest.er1
8309   cat conftest.err >&5
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); } >/dev/null; then
8312   if test -s conftest.err; then
8313     ac_cpp_err=$ac_cxx_preproc_warn_flag
8314     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8315   else
8316     ac_cpp_err=
8317   fi
8318 else
8319   ac_cpp_err=yes
8320 fi
8321 if test -z "$ac_cpp_err"; then
8322   :
8323 else
8324   echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327   # Broken: fails on valid input.
8328 continue
8329 fi
8330 rm -f conftest.err conftest.$ac_ext
8331
8332   # OK, works on sane cases.  Now check whether non-existent headers
8333   # can be detected and how.
8334   cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 #include <ac_nonexistent.h>
8341 _ACEOF
8342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8343   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8344   ac_status=$?
8345   grep -v '^ *+' conftest.er1 >conftest.err
8346   rm -f conftest.er1
8347   cat conftest.err >&5
8348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349   (exit $ac_status); } >/dev/null; then
8350   if test -s conftest.err; then
8351     ac_cpp_err=$ac_cxx_preproc_warn_flag
8352     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8353   else
8354     ac_cpp_err=
8355   fi
8356 else
8357   ac_cpp_err=yes
8358 fi
8359 if test -z "$ac_cpp_err"; then
8360   # Broken: success on invalid input.
8361 continue
8362 else
8363   echo "$as_me: failed program was:" >&5
8364 sed 's/^/| /' conftest.$ac_ext >&5
8365
8366   # Passes both tests.
8367 ac_preproc_ok=:
8368 break
8369 fi
8370 rm -f conftest.err conftest.$ac_ext
8371
8372 done
8373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8374 rm -f conftest.err conftest.$ac_ext
8375 if $ac_preproc_ok; then
8376   :
8377 else
8378   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8379 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8380 _lt_caught_CXX_error=yes; }
8381 fi
8382
8383 ac_ext=c
8384 ac_cpp='$CPP $CPPFLAGS'
8385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8388
8389 else
8390   _lt_caught_CXX_error=yes
8391 fi
8392
8393
8394
8395
8396
8397 # This can be used to rebuild libtool when needed
8398 LIBTOOL_DEPS="$ltmain"
8399
8400 # Always use our own libtool.
8401 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427 test -z "$LN_S" && LN_S="ln -s"
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442 if test -n "${ZSH_VERSION+set}" ; then
8443    setopt NO_GLOB_SUBST
8444 fi
8445
8446 echo "$as_me:$LINENO: checking for objdir" >&5
8447 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8448 if test "${lt_cv_objdir+set}" = set; then
8449   echo $ECHO_N "(cached) $ECHO_C" >&6
8450 else
8451   rm -f .libs 2>/dev/null
8452 mkdir .libs 2>/dev/null
8453 if test -d .libs; then
8454   lt_cv_objdir=.libs
8455 else
8456   # MS-DOS does not allow filenames that begin with a dot.
8457   lt_cv_objdir=_libs
8458 fi
8459 rmdir .libs 2>/dev/null
8460 fi
8461 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8462 echo "${ECHO_T}$lt_cv_objdir" >&6
8463 objdir=$lt_cv_objdir
8464
8465
8466
8467
8468
8469 cat >>confdefs.h <<_ACEOF
8470 #define LT_OBJDIR "$lt_cv_objdir/"
8471 _ACEOF
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489 case $host_os in
8490 aix3*)
8491   # AIX sometimes has problems with the GCC collect2 program.  For some
8492   # reason, if we set the COLLECT_NAMES environment variable, the problems
8493   # vanish in a puff of smoke.
8494   if test "X${COLLECT_NAMES+set}" != Xset; then
8495     COLLECT_NAMES=
8496     export COLLECT_NAMES
8497   fi
8498   ;;
8499 esac
8500
8501 # Sed substitution that helps us do robust quoting.  It backslashifies
8502 # metacharacters that are still active within double-quoted strings.
8503 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8504
8505 # Same as above, but do not quote variable references.
8506 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8507
8508 # Sed substitution to delay expansion of an escaped shell variable in a
8509 # double_quote_subst'ed string.
8510 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8511
8512 # Sed substitution to delay expansion of an escaped single quote.
8513 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8514
8515 # Sed substitution to avoid accidental globbing in evaled expressions
8516 no_glob_subst='s/\*/\\\*/g'
8517
8518 # Global variables:
8519 ofile=libtool
8520 can_build_shared=yes
8521
8522 # All known linkers require a `.a' archive for static linking (except MSVC,
8523 # which needs '.lib').
8524 libext=a
8525
8526 with_gnu_ld="$lt_cv_prog_gnu_ld"
8527
8528 old_CC="$CC"
8529 old_CFLAGS="$CFLAGS"
8530
8531 # Set sane defaults for various variables
8532 test -z "$CC" && CC=cc
8533 test -z "$LTCC" && LTCC=$CC
8534 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8535 test -z "$LD" && LD=ld
8536 test -z "$ac_objext" && ac_objext=o
8537
8538 for cc_temp in $compiler""; do
8539   case $cc_temp in
8540     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8541     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8542     \-*) ;;
8543     *) break;;
8544   esac
8545 done
8546 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8547
8548
8549 # Only perform the check for file, if the check method requires it
8550 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8551 case $deplibs_check_method in
8552 file_magic*)
8553   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8554     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8555 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8556 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8557   echo $ECHO_N "(cached) $ECHO_C" >&6
8558 else
8559   case $MAGIC_CMD in
8560 [\\/*] |  ?:[\\/]*)
8561   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8562   ;;
8563 *)
8564   lt_save_MAGIC_CMD="$MAGIC_CMD"
8565   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8566   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8567   for ac_dir in $ac_dummy; do
8568     IFS="$lt_save_ifs"
8569     test -z "$ac_dir" && ac_dir=.
8570     if test -f $ac_dir/${ac_tool_prefix}file; then
8571       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8572       if test -n "$file_magic_test_file"; then
8573         case $deplibs_check_method in
8574         "file_magic "*)
8575           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8576           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8577           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8578             $EGREP "$file_magic_regex" > /dev/null; then
8579             :
8580           else
8581             cat <<_LT_EOF 1>&2
8582
8583 *** Warning: the command libtool uses to detect shared libraries,
8584 *** $file_magic_cmd, produces output that libtool cannot recognize.
8585 *** The result is that libtool may fail to recognize shared libraries
8586 *** as such.  This will affect the creation of libtool libraries that
8587 *** depend on shared libraries, but programs linked with such libtool
8588 *** libraries will work regardless of this problem.  Nevertheless, you
8589 *** may want to report the problem to your system manager and/or to
8590 *** bug-libtool@gnu.org
8591
8592 _LT_EOF
8593           fi ;;
8594         esac
8595       fi
8596       break
8597     fi
8598   done
8599   IFS="$lt_save_ifs"
8600   MAGIC_CMD="$lt_save_MAGIC_CMD"
8601   ;;
8602 esac
8603 fi
8604
8605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606 if test -n "$MAGIC_CMD"; then
8607   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8608 echo "${ECHO_T}$MAGIC_CMD" >&6
8609 else
8610   echo "$as_me:$LINENO: result: no" >&5
8611 echo "${ECHO_T}no" >&6
8612 fi
8613
8614
8615
8616
8617
8618 if test -z "$lt_cv_path_MAGIC_CMD"; then
8619   if test -n "$ac_tool_prefix"; then
8620     echo "$as_me:$LINENO: checking for file" >&5
8621 echo $ECHO_N "checking for file... $ECHO_C" >&6
8622 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8623   echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625   case $MAGIC_CMD in
8626 [\\/*] |  ?:[\\/]*)
8627   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8628   ;;
8629 *)
8630   lt_save_MAGIC_CMD="$MAGIC_CMD"
8631   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8632   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8633   for ac_dir in $ac_dummy; do
8634     IFS="$lt_save_ifs"
8635     test -z "$ac_dir" && ac_dir=.
8636     if test -f $ac_dir/file; then
8637       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8638       if test -n "$file_magic_test_file"; then
8639         case $deplibs_check_method in
8640         "file_magic "*)
8641           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8642           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8643           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8644             $EGREP "$file_magic_regex" > /dev/null; then
8645             :
8646           else
8647             cat <<_LT_EOF 1>&2
8648
8649 *** Warning: the command libtool uses to detect shared libraries,
8650 *** $file_magic_cmd, produces output that libtool cannot recognize.
8651 *** The result is that libtool may fail to recognize shared libraries
8652 *** as such.  This will affect the creation of libtool libraries that
8653 *** depend on shared libraries, but programs linked with such libtool
8654 *** libraries will work regardless of this problem.  Nevertheless, you
8655 *** may want to report the problem to your system manager and/or to
8656 *** bug-libtool@gnu.org
8657
8658 _LT_EOF
8659           fi ;;
8660         esac
8661       fi
8662       break
8663     fi
8664   done
8665   IFS="$lt_save_ifs"
8666   MAGIC_CMD="$lt_save_MAGIC_CMD"
8667   ;;
8668 esac
8669 fi
8670
8671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8672 if test -n "$MAGIC_CMD"; then
8673   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8674 echo "${ECHO_T}$MAGIC_CMD" >&6
8675 else
8676   echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6
8678 fi
8679
8680
8681   else
8682     MAGIC_CMD=:
8683   fi
8684 fi
8685
8686   fi
8687   ;;
8688 esac
8689
8690 # Use C for the default configuration in the libtool script
8691
8692 lt_save_CC="$CC"
8693 ac_ext=c
8694 ac_cpp='$CPP $CPPFLAGS'
8695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8698
8699
8700 # Source file extension for C test sources.
8701 ac_ext=c
8702
8703 # Object file extension for compiled C test sources.
8704 objext=o
8705 objext=$objext
8706
8707 # Code to be used in simple compile tests
8708 lt_simple_compile_test_code="int some_variable = 0;"
8709
8710 # Code to be used in simple link tests
8711 lt_simple_link_test_code='int main(){return(0);}'
8712
8713
8714
8715
8716
8717
8718
8719 # If no C compiler was specified, use CC.
8720 LTCC=${LTCC-"$CC"}
8721
8722 # If no C compiler flags were specified, use CFLAGS.
8723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8724
8725 # Allow CC to be a program name with arguments.
8726 compiler=$CC
8727
8728 # Save the default compiler, since it gets overwritten when the other
8729 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8730 compiler_DEFAULT=$CC
8731
8732 # save warnings/boilerplate of simple test code
8733 ac_outfile=conftest.$ac_objext
8734 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8735 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8736 _lt_compiler_boilerplate=`cat conftest.err`
8737 $RM conftest*
8738
8739 ac_outfile=conftest.$ac_objext
8740 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8741 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8742 _lt_linker_boilerplate=`cat conftest.err`
8743 $RM conftest*
8744
8745
8746 ## CAVEAT EMPTOR:
8747 ## There is no encapsulation within the following macros, do not change
8748 ## the running order or otherwise move them around unless you know exactly
8749 ## what you are doing...
8750 if test -n "$compiler"; then
8751
8752 lt_prog_compiler_no_builtin_flag=
8753
8754 if test "$GCC" = yes; then
8755   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8756
8757   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8758 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8759 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   lt_cv_prog_compiler_rtti_exceptions=no
8763    ac_outfile=conftest.$ac_objext
8764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8765    lt_compiler_flag="-fno-rtti -fno-exceptions"
8766    # Insert the option either (1) after the last *FLAGS variable, or
8767    # (2) before a word containing "conftest.", or (3) at the end.
8768    # Note that $ac_compile itself does not contain backslashes and begins
8769    # with a dollar sign (not a hyphen), so the echo should work correctly.
8770    # The option is referenced via a variable to avoid confusing sed.
8771    lt_compile=`echo "$ac_compile" | $SED \
8772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8774    -e 's:$: $lt_compiler_flag:'`
8775    (eval echo "\"\$as_me:8775: $lt_compile\"" >&5)
8776    (eval "$lt_compile" 2>conftest.err)
8777    ac_status=$?
8778    cat conftest.err >&5
8779    echo "$as_me:8779: \$? = $ac_status" >&5
8780    if (exit $ac_status) && test -s "$ac_outfile"; then
8781      # The compiler can only warn and ignore the option if not recognized
8782      # So say no if there are warnings other than the usual output.
8783      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8784      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8785      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8786        lt_cv_prog_compiler_rtti_exceptions=yes
8787      fi
8788    fi
8789    $RM conftest*
8790
8791 fi
8792 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8793 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8794
8795 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8796     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8797 else
8798     :
8799 fi
8800
8801 fi
8802
8803
8804
8805
8806
8807
8808   lt_prog_compiler_wl=
8809 lt_prog_compiler_pic=
8810 lt_prog_compiler_static=
8811
8812 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8813 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8814
8815   if test "$GCC" = yes; then
8816     lt_prog_compiler_wl='-Wl,'
8817     lt_prog_compiler_static='-static'
8818
8819     case $host_os in
8820       aix*)
8821       # All AIX code is PIC.
8822       if test "$host_cpu" = ia64; then
8823         # AIX 5 now supports IA64 processor
8824         lt_prog_compiler_static='-Bstatic'
8825       fi
8826       ;;
8827
8828     amigaos*)
8829       if test "$host_cpu" = m68k; then
8830         # FIXME: we need at least 68020 code to build shared libraries, but
8831         # adding the `-m68020' flag to GCC prevents building anything better,
8832         # like `-m68040'.
8833         lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8834       fi
8835       ;;
8836
8837     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8838       # PIC is the default for these OSes.
8839       ;;
8840
8841     mingw* | cygwin* | pw32* | os2*)
8842       # This hack is so that the source file can tell whether it is being
8843       # built for inclusion in a dll (and should export symbols for example).
8844       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8845       # (--disable-auto-import) libraries
8846       lt_prog_compiler_pic='-DDLL_EXPORT'
8847       ;;
8848
8849     darwin* | rhapsody*)
8850       # PIC is the default on this platform
8851       # Common symbols not allowed in MH_DYLIB files
8852       lt_prog_compiler_pic='-fno-common'
8853       ;;
8854
8855     hpux*)
8856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8857       # not for PA HP-UX.
8858       case $host_cpu in
8859       hppa*64*|ia64*)
8860         # +Z the default
8861         ;;
8862       *)
8863         lt_prog_compiler_pic='-fPIC'
8864         ;;
8865       esac
8866       ;;
8867
8868     interix[3-9]*)
8869       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8870       # Instead, we relocate shared libraries at runtime.
8871       ;;
8872
8873     msdosdjgpp*)
8874       # Just because we use GCC doesn't mean we suddenly get shared libraries
8875       # on systems that don't support them.
8876       lt_prog_compiler_can_build_shared=no
8877       enable_shared=no
8878       ;;
8879
8880     *nto* | *qnx*)
8881       # QNX uses GNU C++, but need to define -shared option too, otherwise
8882       # it will coredump.
8883       lt_prog_compiler_pic='-fPIC -shared'
8884       ;;
8885
8886     sysv4*MP*)
8887       if test -d /usr/nec; then
8888         lt_prog_compiler_pic=-Kconform_pic
8889       fi
8890       ;;
8891
8892     *)
8893       lt_prog_compiler_pic='-fPIC'
8894       ;;
8895     esac
8896   else
8897     # PORTME Check for flag to pass linker flags through the system compiler.
8898     case $host_os in
8899     aix*)
8900       lt_prog_compiler_wl='-Wl,'
8901       if test "$host_cpu" = ia64; then
8902         # AIX 5 now supports IA64 processor
8903         lt_prog_compiler_static='-Bstatic'
8904       else
8905         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8906       fi
8907       ;;
8908     darwin*)
8909       # PIC is the default on this platform
8910       # Common symbols not allowed in MH_DYLIB files
8911       case $cc_basename in
8912       xlc*)
8913         lt_prog_compiler_pic='-qnocommon'
8914         lt_prog_compiler_wl='-Wl,'
8915         ;;
8916       esac
8917       ;;
8918
8919     mingw* | cygwin* | pw32* | os2*)
8920       # This hack is so that the source file can tell whether it is being
8921       # built for inclusion in a dll (and should export symbols for example).
8922       lt_prog_compiler_pic='-DDLL_EXPORT'
8923       ;;
8924
8925     hpux9* | hpux10* | hpux11*)
8926       lt_prog_compiler_wl='-Wl,'
8927       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8928       # not for PA HP-UX.
8929       case $host_cpu in
8930       hppa*64*|ia64*)
8931         # +Z the default
8932         ;;
8933       *)
8934         lt_prog_compiler_pic='+Z'
8935         ;;
8936       esac
8937       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8938       lt_prog_compiler_static='${wl}-a ${wl}archive'
8939       ;;
8940
8941     irix5* | irix6* | nonstopux*)
8942       lt_prog_compiler_wl='-Wl,'
8943       # PIC (with -KPIC) is the default.
8944       lt_prog_compiler_static='-non_shared'
8945       ;;
8946
8947     linux* | k*bsd*-gnu)
8948       case $cc_basename in
8949       icc* | ecc*)
8950         lt_prog_compiler_wl='-Wl,'
8951         lt_prog_compiler_pic='-KPIC'
8952         lt_prog_compiler_static='-static'
8953         ;;
8954       pgcc* | pgf77* | pgf90* | pgf95*)
8955         # Portland Group compilers (*not* the Pentium gcc compiler,
8956         # which looks to be a dead project)
8957         lt_prog_compiler_wl='-Wl,'
8958         lt_prog_compiler_pic='-fpic'
8959         lt_prog_compiler_static='-Bstatic'
8960         ;;
8961       ccc*)
8962         lt_prog_compiler_wl='-Wl,'
8963         # All Alpha code is PIC.
8964         lt_prog_compiler_static='-non_shared'
8965         ;;
8966       *)
8967         case `$CC -V 2>&1 | sed 5q` in
8968         *Sun\ C*)
8969           # Sun C 5.9
8970           lt_prog_compiler_pic='-KPIC'
8971           lt_prog_compiler_static='-Bstatic'
8972           lt_prog_compiler_wl='-Wl,'
8973           ;;
8974         *Sun\ F*)
8975           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8976           lt_prog_compiler_pic='-KPIC'
8977           lt_prog_compiler_static='-Bstatic'
8978           lt_prog_compiler_wl=''
8979           ;;
8980         esac
8981         ;;
8982       esac
8983       ;;
8984
8985     newsos6)
8986       lt_prog_compiler_pic='-KPIC'
8987       lt_prog_compiler_static='-Bstatic'
8988       ;;
8989
8990     *nto* | *qnx*)
8991       # QNX uses GNU C++, but need to define -shared option too, otherwise
8992       # it will coredump.
8993       lt_prog_compiler_pic='-fPIC -shared'
8994       ;;
8995
8996     osf3* | osf4* | osf5*)
8997       lt_prog_compiler_wl='-Wl,'
8998       # All OSF/1 code is PIC.
8999       lt_prog_compiler_static='-non_shared'
9000       ;;
9001
9002     rdos*)
9003       lt_prog_compiler_static='-non_shared'
9004       ;;
9005
9006     solaris*)
9007       lt_prog_compiler_pic='-KPIC'
9008       lt_prog_compiler_static='-Bstatic'
9009       case $cc_basename in
9010       f77* | f90* | f95*)
9011         lt_prog_compiler_wl='-Qoption ld ';;
9012       *)
9013         lt_prog_compiler_wl='-Wl,';;
9014       esac
9015       ;;
9016
9017     sunos4*)
9018       lt_prog_compiler_wl='-Qoption ld '
9019       lt_prog_compiler_pic='-PIC'
9020       lt_prog_compiler_static='-Bstatic'
9021       ;;
9022
9023     sysv4 | sysv4.2uw2* | sysv4.3*)
9024       lt_prog_compiler_wl='-Wl,'
9025       lt_prog_compiler_pic='-KPIC'
9026       lt_prog_compiler_static='-Bstatic'
9027       ;;
9028
9029     sysv4*MP*)
9030       if test -d /usr/nec ;then
9031         lt_prog_compiler_pic='-Kconform_pic'
9032         lt_prog_compiler_static='-Bstatic'
9033       fi
9034       ;;
9035
9036     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9037       lt_prog_compiler_wl='-Wl,'
9038       lt_prog_compiler_pic='-KPIC'
9039       lt_prog_compiler_static='-Bstatic'
9040       ;;
9041
9042     unicos*)
9043       lt_prog_compiler_wl='-Wl,'
9044       lt_prog_compiler_can_build_shared=no
9045       ;;
9046
9047     uts4*)
9048       lt_prog_compiler_pic='-pic'
9049       lt_prog_compiler_static='-Bstatic'
9050       ;;
9051
9052     *)
9053       lt_prog_compiler_can_build_shared=no
9054       ;;
9055     esac
9056   fi
9057
9058 case $host_os in
9059   # For platforms which do not support PIC, -DPIC is meaningless:
9060   *djgpp*)
9061     lt_prog_compiler_pic=
9062     ;;
9063   *)
9064     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9065     ;;
9066 esac
9067 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9068 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9069
9070
9071
9072
9073
9074
9075 #
9076 # Check to make sure the PIC flag actually works.
9077 #
9078 if test -n "$lt_prog_compiler_pic"; then
9079   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9080 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9081 if test "${lt_prog_compiler_pic_works+set}" = set; then
9082   echo $ECHO_N "(cached) $ECHO_C" >&6
9083 else
9084   lt_prog_compiler_pic_works=no
9085    ac_outfile=conftest.$ac_objext
9086    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9087    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9088    # Insert the option either (1) after the last *FLAGS variable, or
9089    # (2) before a word containing "conftest.", or (3) at the end.
9090    # Note that $ac_compile itself does not contain backslashes and begins
9091    # with a dollar sign (not a hyphen), so the echo should work correctly.
9092    # The option is referenced via a variable to avoid confusing sed.
9093    lt_compile=`echo "$ac_compile" | $SED \
9094    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096    -e 's:$: $lt_compiler_flag:'`
9097    (eval echo "\"\$as_me:9097: $lt_compile\"" >&5)
9098    (eval "$lt_compile" 2>conftest.err)
9099    ac_status=$?
9100    cat conftest.err >&5
9101    echo "$as_me:9101: \$? = $ac_status" >&5
9102    if (exit $ac_status) && test -s "$ac_outfile"; then
9103      # The compiler can only warn and ignore the option if not recognized
9104      # So say no if there are warnings other than the usual output.
9105      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9106      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9108        lt_prog_compiler_pic_works=yes
9109      fi
9110    fi
9111    $RM conftest*
9112
9113 fi
9114 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9115 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9116
9117 if test x"$lt_prog_compiler_pic_works" = xyes; then
9118     case $lt_prog_compiler_pic in
9119      "" | " "*) ;;
9120      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9121      esac
9122 else
9123     lt_prog_compiler_pic=
9124      lt_prog_compiler_can_build_shared=no
9125 fi
9126
9127 fi
9128
9129
9130
9131
9132
9133
9134 #
9135 # Check to make sure the static flag actually works.
9136 #
9137 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9138 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9139 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9140 if test "${lt_prog_compiler_static_works+set}" = set; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 else
9143   lt_prog_compiler_static_works=no
9144    save_LDFLAGS="$LDFLAGS"
9145    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9146    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9147    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9148      # The linker can only warn and ignore the option if not recognized
9149      # So say no if there are warnings
9150      if test -s conftest.err; then
9151        # Append any errors to the config.log.
9152        cat conftest.err 1>&5
9153        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9154        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9155        if diff conftest.exp conftest.er2 >/dev/null; then
9156          lt_prog_compiler_static_works=yes
9157        fi
9158      else
9159        lt_prog_compiler_static_works=yes
9160      fi
9161    fi
9162    $RM conftest*
9163    LDFLAGS="$save_LDFLAGS"
9164
9165 fi
9166 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9167 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9168
9169 if test x"$lt_prog_compiler_static_works" = xyes; then
9170     :
9171 else
9172     lt_prog_compiler_static=
9173 fi
9174
9175
9176
9177
9178
9179
9180
9181   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9182 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9183 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   lt_cv_prog_compiler_c_o=no
9187    $RM -r conftest 2>/dev/null
9188    mkdir conftest
9189    cd conftest
9190    mkdir out
9191    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9192
9193    lt_compiler_flag="-o out/conftest2.$ac_objext"
9194    # Insert the option either (1) after the last *FLAGS variable, or
9195    # (2) before a word containing "conftest.", or (3) at the end.
9196    # Note that $ac_compile itself does not contain backslashes and begins
9197    # with a dollar sign (not a hyphen), so the echo should work correctly.
9198    lt_compile=`echo "$ac_compile" | $SED \
9199    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9200    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9201    -e 's:$: $lt_compiler_flag:'`
9202    (eval echo "\"\$as_me:9202: $lt_compile\"" >&5)
9203    (eval "$lt_compile" 2>out/conftest.err)
9204    ac_status=$?
9205    cat out/conftest.err >&5
9206    echo "$as_me:9206: \$? = $ac_status" >&5
9207    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9208    then
9209      # The compiler can only warn and ignore the option if not recognized
9210      # So say no if there are warnings
9211      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9212      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9213      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9214        lt_cv_prog_compiler_c_o=yes
9215      fi
9216    fi
9217    chmod u+w . 2>&5
9218    $RM conftest*
9219    # SGI C++ compiler will create directory out/ii_files/ for
9220    # template instantiation
9221    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9222    $RM out/* && rmdir out
9223    cd ..
9224    $RM -r conftest
9225    $RM conftest*
9226
9227 fi
9228 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9229 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9230
9231
9232
9233
9234
9235
9236   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9237 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9238 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9239   echo $ECHO_N "(cached) $ECHO_C" >&6
9240 else
9241   lt_cv_prog_compiler_c_o=no
9242    $RM -r conftest 2>/dev/null
9243    mkdir conftest
9244    cd conftest
9245    mkdir out
9246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247
9248    lt_compiler_flag="-o out/conftest2.$ac_objext"
9249    # Insert the option either (1) after the last *FLAGS variable, or
9250    # (2) before a word containing "conftest.", or (3) at the end.
9251    # Note that $ac_compile itself does not contain backslashes and begins
9252    # with a dollar sign (not a hyphen), so the echo should work correctly.
9253    lt_compile=`echo "$ac_compile" | $SED \
9254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9256    -e 's:$: $lt_compiler_flag:'`
9257    (eval echo "\"\$as_me:9257: $lt_compile\"" >&5)
9258    (eval "$lt_compile" 2>out/conftest.err)
9259    ac_status=$?
9260    cat out/conftest.err >&5
9261    echo "$as_me:9261: \$? = $ac_status" >&5
9262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9263    then
9264      # The compiler can only warn and ignore the option if not recognized
9265      # So say no if there are warnings
9266      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9269        lt_cv_prog_compiler_c_o=yes
9270      fi
9271    fi
9272    chmod u+w . 2>&5
9273    $RM conftest*
9274    # SGI C++ compiler will create directory out/ii_files/ for
9275    # template instantiation
9276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9277    $RM out/* && rmdir out
9278    cd ..
9279    $RM -r conftest
9280    $RM conftest*
9281
9282 fi
9283 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9284 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9285
9286
9287
9288
9289 hard_links="nottested"
9290 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9291   # do not overwrite the value of need_locks provided by the user
9292   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9293 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9294   hard_links=yes
9295   $RM conftest*
9296   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9297   touch conftest.a
9298   ln conftest.a conftest.b 2>&5 || hard_links=no
9299   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9300   echo "$as_me:$LINENO: result: $hard_links" >&5
9301 echo "${ECHO_T}$hard_links" >&6
9302   if test "$hard_links" = no; then
9303     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9304 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9305     need_locks=warn
9306   fi
9307 else
9308   need_locks=no
9309 fi
9310
9311
9312
9313
9314
9315
9316   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9317 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9318
9319   runpath_var=
9320   allow_undefined_flag=
9321   always_export_symbols=no
9322   archive_cmds=
9323   archive_expsym_cmds=
9324   compiler_needs_object=no
9325   enable_shared_with_static_runtimes=no
9326   export_dynamic_flag_spec=
9327   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9328   hardcode_automatic=no
9329   hardcode_direct=no
9330   hardcode_direct_absolute=no
9331   hardcode_libdir_flag_spec=
9332   hardcode_libdir_flag_spec_ld=
9333   hardcode_libdir_separator=
9334   hardcode_minus_L=no
9335   hardcode_shlibpath_var=unsupported
9336   inherit_rpath=no
9337   link_all_deplibs=unknown
9338   module_cmds=
9339   module_expsym_cmds=
9340   old_archive_from_new_cmds=
9341   old_archive_from_expsyms_cmds=
9342   thread_safe_flag_spec=
9343   whole_archive_flag_spec=
9344   # include_expsyms should be a list of space-separated symbols to be *always*
9345   # included in the symbol list
9346   include_expsyms=
9347   # exclude_expsyms can be an extended regexp of symbols to exclude
9348   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9349   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9350   # as well as any symbol that contains `d'.
9351   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9352   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9353   # platforms (ab)use it in PIC code, but their linkers get confused if
9354   # the symbol is explicitly referenced.  Since portable code cannot
9355   # rely on this symbol name, it's probably fine to never include it in
9356   # preloaded symbol tables.
9357   extract_expsyms_cmds=
9358
9359   case $host_os in
9360   cygwin* | mingw* | pw32*)
9361     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9362     # When not using gcc, we currently assume that we are using
9363     # Microsoft Visual C++.
9364     if test "$GCC" != yes; then
9365       with_gnu_ld=no
9366     fi
9367     ;;
9368   interix*)
9369     # we just hope/assume this is gcc and not c89 (= MSVC++)
9370     with_gnu_ld=yes
9371     ;;
9372   openbsd*)
9373     with_gnu_ld=no
9374     ;;
9375   esac
9376
9377   ld_shlibs=yes
9378   if test "$with_gnu_ld" = yes; then
9379     # If archive_cmds runs LD, not CC, wlarc should be empty
9380     wlarc='${wl}'
9381
9382     # Set some defaults for GNU ld with shared library support. These
9383     # are reset later if shared libraries are not supported. Putting them
9384     # here allows them to be overridden if necessary.
9385     runpath_var=LD_RUN_PATH
9386     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387     export_dynamic_flag_spec='${wl}--export-dynamic'
9388     # ancient GNU ld didn't support --whole-archive et. al.
9389     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9390       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9391     else
9392       whole_archive_flag_spec=
9393     fi
9394     supports_anon_versioning=no
9395     case `$LD -v 2>&1` in
9396       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9397       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9398       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9399       *\ 2.11.*) ;; # other 2.11 versions
9400       *) supports_anon_versioning=yes ;;
9401     esac
9402
9403     # See if GNU ld supports shared libraries.
9404     case $host_os in
9405     aix[3-9]*)
9406       # On AIX/PPC, the GNU linker is very broken
9407       if test "$host_cpu" != ia64; then
9408         ld_shlibs=no
9409         cat <<_LT_EOF 1>&2
9410
9411 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9412 *** to be unable to reliably create shared libraries on AIX.
9413 *** Therefore, libtool is disabling shared libraries support.  If you
9414 *** really care for shared libraries, you may want to modify your PATH
9415 *** so that a non-GNU linker is found, and then restart.
9416
9417 _LT_EOF
9418       fi
9419       ;;
9420
9421     amigaos*)
9422       if test "$host_cpu" = m68k; then
9423         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)'
9424         hardcode_libdir_flag_spec='-L$libdir'
9425         hardcode_minus_L=yes
9426       fi
9427
9428       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9429       # that the semantics of dynamic libraries on AmigaOS, at least up
9430       # to version 4, is to share data among multiple programs linked
9431       # with the same dynamic library.  Since this doesn't match the
9432       # behavior of shared libraries on other platforms, we can't use
9433       # them.
9434       ld_shlibs=no
9435       ;;
9436
9437     beos*)
9438       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439         allow_undefined_flag=unsupported
9440         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9441         # support --undefined.  This deserves some investigation.  FIXME
9442         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9443       else
9444         ld_shlibs=no
9445       fi
9446       ;;
9447
9448     cygwin* | mingw* | pw32*)
9449       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9450       # as there is no search path for DLLs.
9451       hardcode_libdir_flag_spec='-L$libdir'
9452       allow_undefined_flag=unsupported
9453       always_export_symbols=no
9454       enable_shared_with_static_runtimes=yes
9455       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9456
9457       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9458         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9459         # If the export-symbols file already is a .def file (1st line
9460         # is EXPORTS), use it as is; otherwise, prepend...
9461         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9462           cp $export_symbols $output_objdir/$soname.def;
9463         else
9464           echo EXPORTS > $output_objdir/$soname.def;
9465           cat $export_symbols >> $output_objdir/$soname.def;
9466         fi~
9467         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9468       else
9469         ld_shlibs=no
9470       fi
9471       ;;
9472
9473     interix[3-9]*)
9474       hardcode_direct=no
9475       hardcode_shlibpath_var=no
9476       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9477       export_dynamic_flag_spec='${wl}-E'
9478       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9479       # Instead, shared libraries are loaded at an image base (0x10000000 by
9480       # default) and relocated if they conflict, which is a slow very memory
9481       # consuming and fragmenting process.  To avoid this, we pick a random,
9482       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9483       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9484       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9485       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'
9486       ;;
9487
9488     gnu* | linux* | tpf* | k*bsd*-gnu)
9489       tmp_diet=no
9490       if test "$host_os" = linux-dietlibc; then
9491         case $cc_basename in
9492           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9493         esac
9494       fi
9495       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9496          && test "$tmp_diet" = no
9497       then
9498         tmp_addflag=
9499         case $cc_basename,$host_cpu in
9500         pgcc*)                          # Portland Group C compiler
9501           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'
9502           tmp_addflag=' $pic_flag'
9503           ;;
9504         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9505           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'
9506           tmp_addflag=' $pic_flag -Mnomain' ;;
9507         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9508           tmp_addflag=' -i_dynamic' ;;
9509         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9510           tmp_addflag=' -i_dynamic -nofor_main' ;;
9511         ifc* | ifort*)                  # Intel Fortran compiler
9512           tmp_addflag=' -nofor_main' ;;
9513         esac
9514         case `$CC -V 2>&1 | sed 5q` in
9515         *Sun\ C*)                       # Sun C 5.9
9516           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'
9517           compiler_needs_object=yes
9518           tmp_sharedflag='-G' ;;
9519         *Sun\ F*)                       # Sun Fortran 8.3
9520           tmp_sharedflag='-G' ;;
9521         *)
9522           tmp_sharedflag='-shared' ;;
9523         esac
9524         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525
9526         if test "x$supports_anon_versioning" = xyes; then
9527           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9528             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9529             echo "local: *; };" >> $output_objdir/$libname.ver~
9530             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9531         fi
9532       else
9533         ld_shlibs=no
9534       fi
9535       ;;
9536
9537     netbsd*)
9538       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9539         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9540         wlarc=
9541       else
9542         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544       fi
9545       ;;
9546
9547     solaris*)
9548       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9549         ld_shlibs=no
9550         cat <<_LT_EOF 1>&2
9551
9552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9553 *** create shared libraries on Solaris systems.  Therefore, libtool
9554 *** is disabling shared libraries support.  We urge you to upgrade GNU
9555 *** binutils to release 2.9.1 or newer.  Another option is to modify
9556 *** your PATH or compiler configuration so that the native linker is
9557 *** used, and then restart.
9558
9559 _LT_EOF
9560       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9561         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9563       else
9564         ld_shlibs=no
9565       fi
9566       ;;
9567
9568     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9569       case `$LD -v 2>&1` in
9570         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9571         ld_shlibs=no
9572         cat <<_LT_EOF 1>&2
9573
9574 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9575 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9576 *** is disabling shared libraries support.  We urge you to upgrade GNU
9577 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9578 *** your PATH or compiler configuration so that the native linker is
9579 *** used, and then restart.
9580
9581 _LT_EOF
9582         ;;
9583         *)
9584           # For security reasons, it is highly recommended that you always
9585           # use absolute paths for naming shared libraries, and exclude the
9586           # DT_RUNPATH tag from executables and libraries.  But doing so
9587           # requires that you compile everything twice, which is a pain.
9588           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9589             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9591             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9592           else
9593             ld_shlibs=no
9594           fi
9595         ;;
9596       esac
9597       ;;
9598
9599     sunos4*)
9600       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9601       wlarc=
9602       hardcode_direct=yes
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     *)
9607       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9608         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9609         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9610       else
9611         ld_shlibs=no
9612       fi
9613       ;;
9614     esac
9615
9616     if test "$ld_shlibs" = no; then
9617       runpath_var=
9618       hardcode_libdir_flag_spec=
9619       export_dynamic_flag_spec=
9620       whole_archive_flag_spec=
9621     fi
9622   else
9623     # PORTME fill in a description of your system's linker (not GNU ld)
9624     case $host_os in
9625     aix3*)
9626       allow_undefined_flag=unsupported
9627       always_export_symbols=yes
9628       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'
9629       # Note: this linker hardcodes the directories in LIBPATH if there
9630       # are no directories specified by -L.
9631       hardcode_minus_L=yes
9632       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9633         # Neither direct hardcoding nor static linking is supported with a
9634         # broken collect2.
9635         hardcode_direct=unsupported
9636       fi
9637       ;;
9638
9639     aix[4-9]*)
9640       if test "$host_cpu" = ia64; then
9641         # On IA64, the linker does run time linking by default, so we don't
9642         # have to do anything special.
9643         aix_use_runtimelinking=no
9644         exp_sym_flag='-Bexport'
9645         no_entry_flag=""
9646       else
9647         # If we're using GNU nm, then we don't want the "-C" option.
9648         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9649         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9650           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'
9651         else
9652           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'
9653         fi
9654         aix_use_runtimelinking=no
9655
9656         # Test if we are trying to use run time linking or normal
9657         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9658         # need to do runtime linking.
9659         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9660           for ld_flag in $LDFLAGS; do
9661           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9662             aix_use_runtimelinking=yes
9663             break
9664           fi
9665           done
9666           ;;
9667         esac
9668
9669         exp_sym_flag='-bexport'
9670         no_entry_flag='-bnoentry'
9671       fi
9672
9673       # When large executables or shared objects are built, AIX ld can
9674       # have problems creating the table of contents.  If linking a library
9675       # or program results in "error TOC overflow" add -mminimal-toc to
9676       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9677       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9678
9679       archive_cmds=''
9680       hardcode_direct=yes
9681       hardcode_direct_absolute=yes
9682       hardcode_libdir_separator=':'
9683       link_all_deplibs=yes
9684       file_list_spec='${wl}-f,'
9685
9686       if test "$GCC" = yes; then
9687         case $host_os in aix4.[012]|aix4.[012].*)
9688         # We only want to do this on AIX 4.2 and lower, the check
9689         # below for broken collect2 doesn't work under 4.3+
9690           collect2name=`${CC} -print-prog-name=collect2`
9691           if test -f "$collect2name" &&
9692            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9693           then
9694           # We have reworked collect2
9695           :
9696           else
9697           # We have old collect2
9698           hardcode_direct=unsupported
9699           # It fails to find uninstalled libraries when the uninstalled
9700           # path is not listed in the libpath.  Setting hardcode_minus_L
9701           # to unsupported forces relinking
9702           hardcode_minus_L=yes
9703           hardcode_libdir_flag_spec='-L$libdir'
9704           hardcode_libdir_separator=
9705           fi
9706           ;;
9707         esac
9708         shared_flag='-shared'
9709         if test "$aix_use_runtimelinking" = yes; then
9710           shared_flag="$shared_flag "'${wl}-G'
9711         fi
9712       else
9713         # not using gcc
9714         if test "$host_cpu" = ia64; then
9715         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9716         # chokes on -Wl,-G. The following line is correct:
9717           shared_flag='-G'
9718         else
9719           if test "$aix_use_runtimelinking" = yes; then
9720             shared_flag='${wl}-G'
9721           else
9722             shared_flag='${wl}-bM:SRE'
9723           fi
9724         fi
9725       fi
9726
9727       # It seems that -bexpall does not export symbols beginning with
9728       # underscore (_), so it is better to generate a list of symbols to export.
9729       always_export_symbols=yes
9730       if test "$aix_use_runtimelinking" = yes; then
9731         # Warning - without using the other runtime loading flags (-brtl),
9732         # -berok will link without error, but may produce a broken library.
9733         allow_undefined_flag='-berok'
9734         # Determine the default libpath from the value encoded in an
9735         # empty executable.
9736         if test x$gcc_no_link = xyes; then
9737   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9739    { (exit 1); exit 1; }; }
9740 fi
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h.  */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h.  */
9747
9748 int
9749 main ()
9750 {
9751
9752   ;
9753   return 0;
9754 }
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758   (eval $ac_link) 2>conftest.er1
9759   ac_status=$?
9760   grep -v '^ *+' conftest.er1 >conftest.err
9761   rm -f conftest.er1
9762   cat conftest.err >&5
9763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764   (exit $ac_status); } &&
9765          { ac_try='test -z "$ac_c_werror_flag"
9766                          || test ! -s conftest.err'
9767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768   (eval $ac_try) 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774   (eval $ac_try) 2>&5
9775   ac_status=$?
9776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777   (exit $ac_status); }; }; then
9778
9779 lt_aix_libpath_sed='
9780     /Import File Strings/,/^$/ {
9781         /^0/ {
9782             s/^0  *\(.*\)$/\1/
9783             p
9784         }
9785     }'
9786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787 # Check for a 64-bit object if we didn't find anything.
9788 if test -z "$aix_libpath"; then
9789   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9790 fi
9791 else
9792   echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9794
9795 fi
9796 rm -f conftest.err conftest.$ac_objext \
9797       conftest$ac_exeext conftest.$ac_ext
9798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9799
9800         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9801         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"
9802       else
9803         if test "$host_cpu" = ia64; then
9804           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9805           allow_undefined_flag="-z nodefs"
9806           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"
9807         else
9808          # Determine the default libpath from the value encoded in an
9809          # empty executable.
9810          if test x$gcc_no_link = xyes; then
9811   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9813    { (exit 1); exit 1; }; }
9814 fi
9815 cat >conftest.$ac_ext <<_ACEOF
9816 /* confdefs.h.  */
9817 _ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h.  */
9821
9822 int
9823 main ()
9824 {
9825
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832   (eval $ac_link) 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } &&
9839          { ac_try='test -z "$ac_c_werror_flag"
9840                          || test ! -s conftest.err'
9841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842   (eval $ac_try) 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; } &&
9846          { ac_try='test -s conftest$ac_exeext'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852
9853 lt_aix_libpath_sed='
9854     /Import File Strings/,/^$/ {
9855         /^0/ {
9856             s/^0  *\(.*\)$/\1/
9857             p
9858         }
9859     }'
9860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861 # Check for a 64-bit object if we didn't find anything.
9862 if test -z "$aix_libpath"; then
9863   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864 fi
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 fi
9870 rm -f conftest.err conftest.$ac_objext \
9871       conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9873
9874          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9875           # Warning - without using the other run time loading flags,
9876           # -berok will link without error, but may produce a broken library.
9877           no_undefined_flag=' ${wl}-bernotok'
9878           allow_undefined_flag=' ${wl}-berok'
9879           # Exported symbols can be pulled into shared objects from archives
9880           whole_archive_flag_spec='$convenience'
9881           archive_cmds_need_lc=yes
9882           # This is similar to how AIX traditionally builds its shared libraries.
9883           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'
9884         fi
9885       fi
9886       ;;
9887
9888     amigaos*)
9889       if test "$host_cpu" = m68k; then
9890         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)'
9891         hardcode_libdir_flag_spec='-L$libdir'
9892         hardcode_minus_L=yes
9893       fi
9894       # see comment about different semantics on the GNU ld section
9895       ld_shlibs=no
9896       ;;
9897
9898     bsdi[45]*)
9899       export_dynamic_flag_spec=-rdynamic
9900       ;;
9901
9902     cygwin* | mingw* | pw32*)
9903       # When not using gcc, we currently assume that we are using
9904       # Microsoft Visual C++.
9905       # hardcode_libdir_flag_spec is actually meaningless, as there is
9906       # no search path for DLLs.
9907       hardcode_libdir_flag_spec=' '
9908       allow_undefined_flag=unsupported
9909       # Tell ltmain to make .lib files, not .a files.
9910       libext=lib
9911       # Tell ltmain to make .dll files, not .so files.
9912       shrext_cmds=".dll"
9913       # FIXME: Setting linknames here is a bad hack.
9914       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9915       # The linker will automatically build a .lib file if we build a DLL.
9916       old_archive_from_new_cmds='true'
9917       # FIXME: Should let the user specify the lib program.
9918       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9919       fix_srcfile_path='`cygpath -w "$srcfile"`'
9920       enable_shared_with_static_runtimes=yes
9921       ;;
9922
9923     darwin* | rhapsody*)
9924       case $host_os in
9925       rhapsody* | darwin1.[012])
9926         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9927         ;;
9928       *) # Darwin 1.3 on
9929         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9930         10.[012])
9931           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9932           ;;
9933         10.*)
9934           allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9935           ;;
9936         esac
9937         ;;
9938       esac
9939       archive_cmds_need_lc=no
9940       hardcode_direct=no
9941       hardcode_automatic=yes
9942       hardcode_shlibpath_var=unsupported
9943       whole_archive_flag_spec=''
9944       link_all_deplibs=yes
9945       if test "$GCC" = yes ; then
9946         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9947   echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949   lt_cv_apple_cc_single_mod=no
9950         if test -z "${LT_MULTI_MODULE}"; then
9951           # By default we will add the -single_module flag. You can override
9952           # by either setting the environment variable LT_MULTI_MODULE
9953           # non-empty at configure time, or by adding -multi-module to the
9954           # link flags.
9955           echo "int foo(void){return 1;}" > conftest.c
9956           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9957               -dynamiclib ${wl}-single_module conftest.c
9958           if test -f libconftest.dylib; then
9959               lt_cv_apple_cc_single_mod=yes
9960               rm libconftest.dylib
9961           fi
9962           rm conftest.$ac_ext
9963         fi
9964 fi
9965
9966         output_verbose_link_cmd=echo
9967         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9968           archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9969           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}'
9970         else
9971           archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9972           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}'
9973         fi
9974         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9975         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}'
9976       else
9977         case $cc_basename in
9978         xlc*)
9979           output_verbose_link_cmd=echo
9980           archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9981           module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9982           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9983           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}'
9984           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}'
9985           ;;
9986         *)
9987           ld_shlibs=no
9988           ;;
9989         esac
9990       fi
9991       ;;
9992
9993     dgux*)
9994       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995       hardcode_libdir_flag_spec='-L$libdir'
9996       hardcode_shlibpath_var=no
9997       ;;
9998
9999     freebsd1*)
10000       ld_shlibs=no
10001       ;;
10002
10003     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10004     # support.  Future versions do this automatically, but an explicit c++rt0.o
10005     # does not break anything, and helps significantly (at the cost of a little
10006     # extra space).
10007     freebsd2.2*)
10008       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10009       hardcode_libdir_flag_spec='-R$libdir'
10010       hardcode_direct=yes
10011       hardcode_shlibpath_var=no
10012       ;;
10013
10014     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10015     freebsd2*)
10016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10017       hardcode_direct=yes
10018       hardcode_minus_L=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10023     freebsd* | dragonfly*)
10024       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10025       hardcode_libdir_flag_spec='-R$libdir'
10026       hardcode_direct=yes
10027       hardcode_shlibpath_var=no
10028       ;;
10029
10030     hpux9*)
10031       if test "$GCC" = yes; then
10032         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'
10033       else
10034         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'
10035       fi
10036       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10037       hardcode_libdir_separator=:
10038       hardcode_direct=yes
10039
10040       # hardcode_minus_L: Not really in the search PATH,
10041       # but as the default location of the library.
10042       hardcode_minus_L=yes
10043       export_dynamic_flag_spec='${wl}-E'
10044       ;;
10045
10046     hpux10*)
10047       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10048         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10049       else
10050         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10051       fi
10052       if test "$with_gnu_ld" = no; then
10053         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10054         hardcode_libdir_flag_spec_ld='+b $libdir'
10055         hardcode_libdir_separator=:
10056         hardcode_direct=yes
10057         hardcode_direct_absolute=yes
10058         export_dynamic_flag_spec='${wl}-E'
10059         # hardcode_minus_L: Not really in the search PATH,
10060         # but as the default location of the library.
10061         hardcode_minus_L=yes
10062       fi
10063       ;;
10064
10065     hpux11*)
10066       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10067         case $host_cpu in
10068         hppa*64*)
10069           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10070           ;;
10071         ia64*)
10072           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10073           ;;
10074         *)
10075           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10076           ;;
10077         esac
10078       else
10079         case $host_cpu in
10080         hppa*64*)
10081           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10082           ;;
10083         ia64*)
10084           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10085           ;;
10086         *)
10087           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10088           ;;
10089         esac
10090       fi
10091       if test "$with_gnu_ld" = no; then
10092         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10093         hardcode_libdir_separator=:
10094
10095         case $host_cpu in
10096         hppa*64*|ia64*)
10097           hardcode_direct=no
10098           hardcode_shlibpath_var=no
10099           ;;
10100         *)
10101           hardcode_direct=yes
10102           hardcode_direct_absolute=yes
10103           export_dynamic_flag_spec='${wl}-E'
10104
10105           # hardcode_minus_L: Not really in the search PATH,
10106           # but as the default location of the library.
10107           hardcode_minus_L=yes
10108           ;;
10109         esac
10110       fi
10111       ;;
10112
10113     irix5* | irix6* | nonstopux*)
10114       if test "$GCC" = yes; then
10115         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'
10116         # Try to use the -exported_symbol ld option, if it does not
10117         # work, assume that -exports_file does not work either and
10118         # implicitly export all symbols.
10119         save_LDFLAGS="$LDFLAGS"
10120         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10121         if test x$gcc_no_link = xyes; then
10122   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10123 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10124    { (exit 1); exit 1; }; }
10125 fi
10126 cat >conftest.$ac_ext <<_ACEOF
10127 int foo(void) {}
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10131   (eval $ac_link) 2>conftest.er1
10132   ac_status=$?
10133   grep -v '^ *+' conftest.er1 >conftest.err
10134   rm -f conftest.er1
10135   cat conftest.err >&5
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); } &&
10138          { ac_try='test -z "$ac_c_werror_flag"
10139                          || test ! -s conftest.err'
10140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10141   (eval $ac_try) 2>&5
10142   ac_status=$?
10143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144   (exit $ac_status); }; } &&
10145          { ac_try='test -s conftest$ac_exeext'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; }; then
10151   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'
10152
10153 else
10154   echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10156
10157 fi
10158 rm -f conftest.err conftest.$ac_objext \
10159       conftest$ac_exeext conftest.$ac_ext
10160         LDFLAGS="$save_LDFLAGS"
10161       else
10162         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'
10163         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'
10164       fi
10165       archive_cmds_need_lc='no'
10166       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167       hardcode_libdir_separator=:
10168       inherit_rpath=yes
10169       link_all_deplibs=yes
10170       ;;
10171
10172     netbsd*)
10173       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10174         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10175       else
10176         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10177       fi
10178       hardcode_libdir_flag_spec='-R$libdir'
10179       hardcode_direct=yes
10180       hardcode_shlibpath_var=no
10181       ;;
10182
10183     newsos6)
10184       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185       hardcode_direct=yes
10186       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10187       hardcode_libdir_separator=:
10188       hardcode_shlibpath_var=no
10189       ;;
10190
10191     *nto* | *qnx*)
10192       ;;
10193
10194     openbsd*)
10195       hardcode_direct=yes
10196       hardcode_shlibpath_var=no
10197       hardcode_direct_absolute=yes
10198       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10199         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10200         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10201         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10202         export_dynamic_flag_spec='${wl}-E'
10203       else
10204         case $host_os in
10205         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10206           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10207           hardcode_libdir_flag_spec='-R$libdir'
10208           ;;
10209         *)
10210           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10211           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10212           ;;
10213         esac
10214       fi
10215       ;;
10216
10217     os2*)
10218       hardcode_libdir_flag_spec='-L$libdir'
10219       hardcode_minus_L=yes
10220       allow_undefined_flag=unsupported
10221       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'
10222       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10223       ;;
10224
10225     osf3*)
10226       if test "$GCC" = yes; then
10227         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10228         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'
10229       else
10230         allow_undefined_flag=' -expect_unresolved \*'
10231         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'
10232       fi
10233       archive_cmds_need_lc='no'
10234       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235       hardcode_libdir_separator=:
10236       ;;
10237
10238     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10239       if test "$GCC" = yes; then
10240         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10241         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'
10242         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10243       else
10244         allow_undefined_flag=' -expect_unresolved \*'
10245         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'
10246         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~
10247         $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'
10248
10249         # Both c and cxx compiler support -rpath directly
10250         hardcode_libdir_flag_spec='-rpath $libdir'
10251       fi
10252       archive_cmds_need_lc='no'
10253       hardcode_libdir_separator=:
10254       ;;
10255
10256     solaris*)
10257       no_undefined_flag=' -z defs'
10258       if test "$GCC" = yes; then
10259         wlarc='${wl}'
10260         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10261         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10262           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10263       else
10264         case `$CC -V 2>&1` in
10265         *"Compilers 5.0"*)
10266           wlarc=''
10267           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10269           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10270           ;;
10271         *)
10272           wlarc='${wl}'
10273           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10274           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10275           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10276           ;;
10277         esac
10278       fi
10279       hardcode_libdir_flag_spec='-R$libdir'
10280       hardcode_shlibpath_var=no
10281       case $host_os in
10282       solaris2.[0-5] | solaris2.[0-5].*) ;;
10283       *)
10284         # The compiler driver will combine and reorder linker options,
10285         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10286         # but is careful enough not to reorder.
10287         # Supported since Solaris 2.6 (maybe 2.5.1?)
10288         if test "$GCC" = yes; then
10289           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10290         else
10291           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10292         fi
10293         ;;
10294       esac
10295       link_all_deplibs=yes
10296       ;;
10297
10298     sunos4*)
10299       if test "x$host_vendor" = xsequent; then
10300         # Use $CC to link under sequent, because it throws in some extra .o
10301         # files that make .init and .fini sections work.
10302         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10303       else
10304         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10305       fi
10306       hardcode_libdir_flag_spec='-L$libdir'
10307       hardcode_direct=yes
10308       hardcode_minus_L=yes
10309       hardcode_shlibpath_var=no
10310       ;;
10311
10312     sysv4)
10313       case $host_vendor in
10314         sni)
10315           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10316           hardcode_direct=yes # is this really true???
10317         ;;
10318         siemens)
10319           ## LD is ld it makes a PLAMLIB
10320           ## CC just makes a GrossModule.
10321           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10322           reload_cmds='$CC -r -o $output$reload_objs'
10323           hardcode_direct=no
10324         ;;
10325         motorola)
10326           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10328         ;;
10329       esac
10330       runpath_var='LD_RUN_PATH'
10331       hardcode_shlibpath_var=no
10332       ;;
10333
10334     sysv4.3*)
10335       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10336       hardcode_shlibpath_var=no
10337       export_dynamic_flag_spec='-Bexport'
10338       ;;
10339
10340     sysv4*MP*)
10341       if test -d /usr/nec; then
10342         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343         hardcode_shlibpath_var=no
10344         runpath_var=LD_RUN_PATH
10345         hardcode_runpath_var=yes
10346         ld_shlibs=yes
10347       fi
10348       ;;
10349
10350     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10351       no_undefined_flag='${wl}-z,text'
10352       archive_cmds_need_lc=no
10353       hardcode_shlibpath_var=no
10354       runpath_var='LD_RUN_PATH'
10355
10356       if test "$GCC" = yes; then
10357         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10359       else
10360         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10361         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10362       fi
10363       ;;
10364
10365     sysv5* | sco3.2v5* | sco5v6*)
10366       # Note: We can NOT use -z defs as we might desire, because we do not
10367       # link with -lc, and that would cause any symbols used from libc to
10368       # always be unresolved, which means just about no library would
10369       # ever link correctly.  If we're not using GNU ld we use -z text
10370       # though, which does catch some bad symbols but isn't as heavy-handed
10371       # as -z defs.
10372       no_undefined_flag='${wl}-z,text'
10373       allow_undefined_flag='${wl}-z,nodefs'
10374       archive_cmds_need_lc=no
10375       hardcode_shlibpath_var=no
10376       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10377       hardcode_libdir_separator=':'
10378       link_all_deplibs=yes
10379       export_dynamic_flag_spec='${wl}-Bexport'
10380       runpath_var='LD_RUN_PATH'
10381
10382       if test "$GCC" = yes; then
10383         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10384         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385       else
10386         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10387         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388       fi
10389       ;;
10390
10391     uts4*)
10392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393       hardcode_libdir_flag_spec='-L$libdir'
10394       hardcode_shlibpath_var=no
10395       ;;
10396
10397     *)
10398       ld_shlibs=no
10399       ;;
10400     esac
10401
10402     if test x$host_vendor = xsni; then
10403       case $host in
10404       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10405         export_dynamic_flag_spec='${wl}-Blargedynsym'
10406         ;;
10407       esac
10408     fi
10409   fi
10410
10411 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10412 echo "${ECHO_T}$ld_shlibs" >&6
10413 test "$ld_shlibs" = no && can_build_shared=no
10414
10415 with_gnu_ld=$with_gnu_ld
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431 #
10432 # Do we need to explicitly link libc?
10433 #
10434 case "x$archive_cmds_need_lc" in
10435 x|xyes)
10436   # Assume -lc should be added
10437   archive_cmds_need_lc=yes
10438
10439   if test "$enable_shared" = yes && test "$GCC" = yes; then
10440     case $archive_cmds in
10441     *'~'*)
10442       # FIXME: we may have to deal with multi-command sequences.
10443       ;;
10444     '$CC '*)
10445       # Test whether the compiler implicitly links with -lc since on some
10446       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10447       # to ld, don't add -lc before -lgcc.
10448       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10449 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10450       $RM conftest*
10451       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10452
10453       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10454   (eval $ac_compile) 2>&5
10455   ac_status=$?
10456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } 2>conftest.err; then
10458         soname=conftest
10459         lib=conftest
10460         libobjs=conftest.$ac_objext
10461         deplibs=
10462         wl=$lt_prog_compiler_wl
10463         pic_flag=$lt_prog_compiler_pic
10464         compiler_flags=-v
10465         linker_flags=-v
10466         verstring=
10467         output_objdir=.
10468         libname=conftest
10469         lt_save_allow_undefined_flag=$allow_undefined_flag
10470         allow_undefined_flag=
10471         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10472   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10473   ac_status=$?
10474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475   (exit $ac_status); }
10476         then
10477           archive_cmds_need_lc=no
10478         else
10479           archive_cmds_need_lc=yes
10480         fi
10481         allow_undefined_flag=$lt_save_allow_undefined_flag
10482       else
10483         cat conftest.err 1>&5
10484       fi
10485       $RM conftest*
10486       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10487 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10488       ;;
10489     esac
10490   fi
10491   ;;
10492 esac
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
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10651 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10652 withGCC=$GCC
10653 if test "$withGCC" = yes; then
10654   case $host_os in
10655     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10656     *) lt_awk_arg="/^libraries:/" ;;
10657   esac
10658   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10659   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10660     # if the path contains ";" then we assume it to be the separator
10661     # otherwise default to the standard path separator (i.e. ":") - it is
10662     # assumed that no part of a normal pathname contains ";" but that should
10663     # okay in the real world where ";" in dirpaths is itself problematic.
10664     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10665   else
10666     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10667   fi
10668   # Ok, now we have the path, separated by spaces, we can step through it
10669   # and add multilib dir if necessary.
10670   lt_tmp_lt_search_path_spec=
10671   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10672   for lt_sys_path in $lt_search_path_spec; do
10673     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10674       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10675     else
10676       test -d "$lt_sys_path" && \
10677         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10678     fi
10679   done
10680   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10681 BEGIN {RS=" "; FS="/|\n";} {
10682   lt_foo="";
10683   lt_count=0;
10684   for (lt_i = NF; lt_i > 0; lt_i--) {
10685     if ($lt_i != "" && $lt_i != ".") {
10686       if ($lt_i == "..") {
10687         lt_count++;
10688       } else {
10689         if (lt_count == 0) {
10690           lt_foo="/" $lt_i lt_foo;
10691         } else {
10692           lt_count--;
10693         }
10694       }
10695     }
10696   }
10697   if (lt_foo != "") { lt_freq[lt_foo]++; }
10698   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10699 }'`
10700   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10701 else
10702   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10703 fi
10704 library_names_spec=
10705 libname_spec='lib$name'
10706 soname_spec=
10707 shrext_cmds=".so"
10708 postinstall_cmds=
10709 postuninstall_cmds=
10710 finish_cmds=
10711 finish_eval=
10712 shlibpath_var=
10713 shlibpath_overrides_runpath=unknown
10714 version_type=none
10715 dynamic_linker="$host_os ld.so"
10716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10717 need_lib_prefix=unknown
10718 hardcode_into_libs=no
10719
10720 # when you set need_version to no, make sure it does not cause -set_version
10721 # flags to be left without arguments
10722 need_version=unknown
10723
10724 case $host_os in
10725 aix3*)
10726   version_type=linux
10727   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10728   shlibpath_var=LIBPATH
10729
10730   # AIX 3 has no versioning support, so we append a major version to the name.
10731   soname_spec='${libname}${release}${shared_ext}$major'
10732   ;;
10733
10734 aix[4-9]*)
10735   version_type=linux
10736   need_lib_prefix=no
10737   need_version=no
10738   hardcode_into_libs=yes
10739   if test "$host_cpu" = ia64; then
10740     # AIX 5 supports IA64
10741     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10742     shlibpath_var=LD_LIBRARY_PATH
10743   else
10744     # With GCC up to 2.95.x, collect2 would create an import file
10745     # for dependence libraries.  The import file would start with
10746     # the line `#! .'.  This would cause the generated library to
10747     # depend on `.', always an invalid library.  This was fixed in
10748     # development snapshots of GCC prior to 3.0.
10749     case $host_os in
10750       aix4 | aix4.[01] | aix4.[01].*)
10751       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10752            echo ' yes '
10753            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10754         :
10755       else
10756         can_build_shared=no
10757       fi
10758       ;;
10759     esac
10760     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10761     # soname into executable. Probably we can add versioning support to
10762     # collect2, so additional links can be useful in future.
10763     if test "$aix_use_runtimelinking" = yes; then
10764       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10765       # instead of lib<name>.a to let people know that these are not
10766       # typical AIX shared libraries.
10767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768     else
10769       # We preserve .a as extension for shared libraries through AIX4.2
10770       # and later when we are not doing run time linking.
10771       library_names_spec='${libname}${release}.a $libname.a'
10772       soname_spec='${libname}${release}${shared_ext}$major'
10773     fi
10774     shlibpath_var=LIBPATH
10775   fi
10776   ;;
10777
10778 amigaos*)
10779   if test "$host_cpu" = m68k; then
10780     library_names_spec='$libname.ixlibrary $libname.a'
10781     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10782     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'
10783   else
10784     dynamic_linker=no
10785   fi
10786   ;;
10787
10788 beos*)
10789   library_names_spec='${libname}${shared_ext}'
10790   dynamic_linker="$host_os ld.so"
10791   shlibpath_var=LIBRARY_PATH
10792   ;;
10793
10794 bsdi[45]*)
10795   version_type=linux
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10800   shlibpath_var=LD_LIBRARY_PATH
10801   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10802   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10803   # the default ld.so.conf also contains /usr/contrib/lib and
10804   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10805   # libtool to hard-code these into programs
10806   ;;
10807
10808 cygwin* | mingw* | pw32*)
10809   version_type=windows
10810   shrext_cmds=".dll"
10811   need_version=no
10812   need_lib_prefix=no
10813
10814   case $withGCC,$host_os in
10815   yes,cygwin* | yes,mingw* | yes,pw32*)
10816     library_names_spec='$libname.dll.a'
10817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818     postinstall_cmds='base_file=`basename \${file}`~
10819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820       dldir=$destdir/`dirname \$dlpath`~
10821       test -d \$dldir || mkdir -p \$dldir~
10822       $install_prog $dir/$dlname \$dldir/$dlname~
10823       chmod a+x \$dldir/$dlname~
10824       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10825         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10826       fi'
10827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828       dlpath=$dir/\$dldll~
10829        $RM \$dlpath'
10830     shlibpath_overrides_runpath=yes
10831
10832     case $host_os in
10833     cygwin*)
10834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10836       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10837       ;;
10838     mingw*)
10839       # MinGW DLLs use traditional 'lib' prefix
10840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10841       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10842       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10843         # It is most probably a Windows format PATH printed by
10844         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10845         # path with ; separators, and with drive letters. We can handle the
10846         # drive letters (cygwin fileutils understands them), so leave them,
10847         # especially as we might pass files found there to a mingw objdump,
10848         # which wouldn't understand a cygwinified path. Ahh.
10849         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10850       else
10851         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10852       fi
10853       ;;
10854     pw32*)
10855       # pw32 DLLs use 'pw' prefix rather than 'lib'
10856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10857       ;;
10858     esac
10859     ;;
10860
10861   *)
10862     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10863     ;;
10864   esac
10865   dynamic_linker='Win32 ld.exe'
10866   # FIXME: first we should search . and the directory the executable is in
10867   shlibpath_var=PATH
10868   ;;
10869
10870 darwin* | rhapsody*)
10871   dynamic_linker="$host_os dyld"
10872   version_type=darwin
10873   need_lib_prefix=no
10874   need_version=no
10875   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10876   soname_spec='${libname}${release}${major}$shared_ext'
10877   shlibpath_overrides_runpath=yes
10878   shlibpath_var=DYLD_LIBRARY_PATH
10879   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10880
10881   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10882   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10883   ;;
10884
10885 dgux*)
10886   version_type=linux
10887   need_lib_prefix=no
10888   need_version=no
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10890   soname_spec='${libname}${release}${shared_ext}$major'
10891   shlibpath_var=LD_LIBRARY_PATH
10892   ;;
10893
10894 freebsd1*)
10895   dynamic_linker=no
10896   ;;
10897
10898 freebsd* | dragonfly*)
10899   # DragonFly does not have aout.  When/if they implement a new
10900   # versioning mechanism, adjust this.
10901   if test -x /usr/bin/objformat; then
10902     objformat=`/usr/bin/objformat`
10903   else
10904     case $host_os in
10905     freebsd[123]*) objformat=aout ;;
10906     *) objformat=elf ;;
10907     esac
10908   fi
10909   version_type=freebsd-$objformat
10910   case $version_type in
10911     freebsd-elf*)
10912       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10913       need_version=no
10914       need_lib_prefix=no
10915       ;;
10916     freebsd-*)
10917       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10918       need_version=yes
10919       ;;
10920   esac
10921   shlibpath_var=LD_LIBRARY_PATH
10922   case $host_os in
10923   freebsd2*)
10924     shlibpath_overrides_runpath=yes
10925     ;;
10926   freebsd3.[01]* | freebsdelf3.[01]*)
10927     shlibpath_overrides_runpath=yes
10928     hardcode_into_libs=yes
10929     ;;
10930   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10931   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10932     shlibpath_overrides_runpath=no
10933     hardcode_into_libs=yes
10934     ;;
10935   *) # from 4.6 on, and DragonFly
10936     shlibpath_overrides_runpath=yes
10937     hardcode_into_libs=yes
10938     ;;
10939   esac
10940   ;;
10941
10942 gnu*)
10943   version_type=linux
10944   need_lib_prefix=no
10945   need_version=no
10946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10947   soname_spec='${libname}${release}${shared_ext}$major'
10948   shlibpath_var=LD_LIBRARY_PATH
10949   hardcode_into_libs=yes
10950   ;;
10951
10952 hpux9* | hpux10* | hpux11*)
10953   # Give a soname corresponding to the major version so that dld.sl refuses to
10954   # link against other versions.
10955   version_type=sunos
10956   need_lib_prefix=no
10957   need_version=no
10958   case $host_cpu in
10959   ia64*)
10960     shrext_cmds='.so'
10961     hardcode_into_libs=yes
10962     dynamic_linker="$host_os dld.so"
10963     shlibpath_var=LD_LIBRARY_PATH
10964     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10965     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966     soname_spec='${libname}${release}${shared_ext}$major'
10967     if test "X$HPUX_IA64_MODE" = X32; then
10968       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10969     else
10970       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10971     fi
10972     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10973     ;;
10974   hppa*64*)
10975     shrext_cmds='.sl'
10976     hardcode_into_libs=yes
10977     dynamic_linker="$host_os dld.sl"
10978     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10979     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10980     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981     soname_spec='${libname}${release}${shared_ext}$major'
10982     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10983     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10984     ;;
10985   *)
10986     shrext_cmds='.sl'
10987     dynamic_linker="$host_os dld.sl"
10988     shlibpath_var=SHLIB_PATH
10989     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10991     soname_spec='${libname}${release}${shared_ext}$major'
10992     ;;
10993   esac
10994   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10995   postinstall_cmds='chmod 555 $lib'
10996   ;;
10997
10998 interix[3-9]*)
10999   version_type=linux
11000   need_lib_prefix=no
11001   need_version=no
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11003   soname_spec='${libname}${release}${shared_ext}$major'
11004   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11005   shlibpath_var=LD_LIBRARY_PATH
11006   shlibpath_overrides_runpath=no
11007   hardcode_into_libs=yes
11008   ;;
11009
11010 irix5* | irix6* | nonstopux*)
11011   case $host_os in
11012     nonstopux*) version_type=nonstopux ;;
11013     *)
11014         if test "$lt_cv_prog_gnu_ld" = yes; then
11015                 version_type=linux
11016         else
11017                 version_type=irix
11018         fi ;;
11019   esac
11020   need_lib_prefix=no
11021   need_version=no
11022   soname_spec='${libname}${release}${shared_ext}$major'
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11024   case $host_os in
11025   irix5* | nonstopux*)
11026     libsuff= shlibsuff=
11027     ;;
11028   *)
11029     case $LD in # libtool.m4 will add one of these switches to LD
11030     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11031       libsuff= shlibsuff= libmagic=32-bit;;
11032     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11033       libsuff=32 shlibsuff=N32 libmagic=N32;;
11034     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11035       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11036     *) libsuff= shlibsuff= libmagic=never-match;;
11037     esac
11038     ;;
11039   esac
11040   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11041   shlibpath_overrides_runpath=no
11042   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11043   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11044   hardcode_into_libs=yes
11045   ;;
11046
11047 # No shared lib support for Linux oldld, aout, or coff.
11048 linux*oldld* | linux*aout* | linux*coff*)
11049   dynamic_linker=no
11050   ;;
11051
11052 # This must be Linux ELF.
11053 linux* | k*bsd*-gnu)
11054   version_type=linux
11055   need_lib_prefix=no
11056   need_version=no
11057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058   soname_spec='${libname}${release}${shared_ext}$major'
11059   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11060   shlibpath_var=LD_LIBRARY_PATH
11061   shlibpath_overrides_runpath=no
11062   # Some binutils ld are patched to set DT_RUNPATH
11063   save_LDFLAGS=$LDFLAGS
11064   save_libdir=$libdir
11065   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11066        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11067   if test x$gcc_no_link = xyes; then
11068   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11070    { (exit 1); exit 1; }; }
11071 fi
11072 cat >conftest.$ac_ext <<_ACEOF
11073 /* confdefs.h.  */
11074 _ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h.  */
11078
11079 int
11080 main ()
11081 {
11082
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11089   (eval $ac_link) 2>conftest.er1
11090   ac_status=$?
11091   grep -v '^ *+' conftest.er1 >conftest.err
11092   rm -f conftest.er1
11093   cat conftest.err >&5
11094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095   (exit $ac_status); } &&
11096          { ac_try='test -z "$ac_c_werror_flag"
11097                          || test ! -s conftest.err'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; } &&
11103          { ac_try='test -s conftest$ac_exeext'
11104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11105   (eval $ac_try) 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; }; then
11109   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11110   shlibpath_overrides_runpath=yes
11111 fi
11112
11113 else
11114   echo "$as_me: failed program was:" >&5
11115 sed 's/^/| /' conftest.$ac_ext >&5
11116
11117 fi
11118 rm -f conftest.err conftest.$ac_objext \
11119       conftest$ac_exeext conftest.$ac_ext
11120   LDFLAGS=$save_LDFLAGS
11121   libdir=$save_libdir
11122
11123   # This implies no fast_install, which is unacceptable.
11124   # Some rework will be needed to allow for fast_install
11125   # before this can be enabled.
11126   hardcode_into_libs=yes
11127
11128   # Append ld.so.conf contents to the search path
11129   if test -f /etc/ld.so.conf; then
11130     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' ' '`
11131     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11132   fi
11133
11134   # We used to test for /lib/ld.so.1 and disable shared libraries on
11135   # powerpc, because MkLinux only supported shared libraries with the
11136   # GNU dynamic linker.  Since this was broken with cross compilers,
11137   # most powerpc-linux boxes support dynamic linking these days and
11138   # people can always --disable-shared, the test was removed, and we
11139   # assume the GNU/Linux dynamic linker is in use.
11140   dynamic_linker='GNU/Linux ld.so'
11141   ;;
11142
11143 netbsd*)
11144   version_type=sunos
11145   need_lib_prefix=no
11146   need_version=no
11147   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11148     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11150     dynamic_linker='NetBSD (a.out) ld.so'
11151   else
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     dynamic_linker='NetBSD ld.elf_so'
11155   fi
11156   shlibpath_var=LD_LIBRARY_PATH
11157   shlibpath_overrides_runpath=yes
11158   hardcode_into_libs=yes
11159   ;;
11160
11161 newsos6)
11162   version_type=linux
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   shlibpath_overrides_runpath=yes
11166   ;;
11167
11168 *nto* | *qnx*)
11169   version_type=qnx
11170   need_lib_prefix=no
11171   need_version=no
11172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173   soname_spec='${libname}${release}${shared_ext}$major'
11174   shlibpath_var=LD_LIBRARY_PATH
11175   shlibpath_overrides_runpath=no
11176   hardcode_into_libs=yes
11177   dynamic_linker='ldqnx.so'
11178   ;;
11179
11180 openbsd*)
11181   version_type=sunos
11182   sys_lib_dlsearch_path_spec="/usr/lib"
11183   need_lib_prefix=no
11184   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11185   case $host_os in
11186     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11187     *)                          need_version=no  ;;
11188   esac
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11190   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11193     case $host_os in
11194       openbsd2.[89] | openbsd2.[89].*)
11195         shlibpath_overrides_runpath=no
11196         ;;
11197       *)
11198         shlibpath_overrides_runpath=yes
11199         ;;
11200       esac
11201   else
11202     shlibpath_overrides_runpath=yes
11203   fi
11204   ;;
11205
11206 os2*)
11207   libname_spec='$name'
11208   shrext_cmds=".dll"
11209   need_lib_prefix=no
11210   library_names_spec='$libname${shared_ext} $libname.a'
11211   dynamic_linker='OS/2 ld.exe'
11212   shlibpath_var=LIBPATH
11213   ;;
11214
11215 osf3* | osf4* | osf5*)
11216   version_type=osf
11217   need_lib_prefix=no
11218   need_version=no
11219   soname_spec='${libname}${release}${shared_ext}$major'
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221   shlibpath_var=LD_LIBRARY_PATH
11222   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11223   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11224   ;;
11225
11226 rdos*)
11227   dynamic_linker=no
11228   ;;
11229
11230 solaris*)
11231   version_type=linux
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   shlibpath_var=LD_LIBRARY_PATH
11237   shlibpath_overrides_runpath=yes
11238   hardcode_into_libs=yes
11239   # ldd complains unless libraries are executable
11240   postinstall_cmds='chmod +x $lib'
11241   ;;
11242
11243 sunos4*)
11244   version_type=sunos
11245   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11246   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11247   shlibpath_var=LD_LIBRARY_PATH
11248   shlibpath_overrides_runpath=yes
11249   if test "$with_gnu_ld" = yes; then
11250     need_lib_prefix=no
11251   fi
11252   need_version=yes
11253   ;;
11254
11255 sysv4 | sysv4.3*)
11256   version_type=linux
11257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258   soname_spec='${libname}${release}${shared_ext}$major'
11259   shlibpath_var=LD_LIBRARY_PATH
11260   case $host_vendor in
11261     sni)
11262       shlibpath_overrides_runpath=no
11263       need_lib_prefix=no
11264       runpath_var=LD_RUN_PATH
11265       ;;
11266     siemens)
11267       need_lib_prefix=no
11268       ;;
11269     motorola)
11270       need_lib_prefix=no
11271       need_version=no
11272       shlibpath_overrides_runpath=no
11273       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11274       ;;
11275   esac
11276   ;;
11277
11278 sysv4*MP*)
11279   if test -d /usr/nec ;then
11280     version_type=linux
11281     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11282     soname_spec='$libname${shared_ext}.$major'
11283     shlibpath_var=LD_LIBRARY_PATH
11284   fi
11285   ;;
11286
11287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11288   version_type=freebsd-elf
11289   need_lib_prefix=no
11290   need_version=no
11291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11292   soname_spec='${libname}${release}${shared_ext}$major'
11293   shlibpath_var=LD_LIBRARY_PATH
11294   shlibpath_overrides_runpath=yes
11295   hardcode_into_libs=yes
11296   if test "$with_gnu_ld" = yes; then
11297     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11298   else
11299     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11300     case $host_os in
11301       sco3.2v5*)
11302         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11303         ;;
11304     esac
11305   fi
11306   sys_lib_dlsearch_path_spec='/usr/lib'
11307   ;;
11308
11309 tpf*)
11310   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11311   version_type=linux
11312   need_lib_prefix=no
11313   need_version=no
11314   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11315   shlibpath_var=LD_LIBRARY_PATH
11316   shlibpath_overrides_runpath=no
11317   hardcode_into_libs=yes
11318   ;;
11319
11320 uts4*)
11321   version_type=linux
11322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   shlibpath_var=LD_LIBRARY_PATH
11325   ;;
11326
11327 *)
11328   dynamic_linker=no
11329   ;;
11330 esac
11331 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11332 echo "${ECHO_T}$dynamic_linker" >&6
11333 test "$dynamic_linker" = no && can_build_shared=no
11334
11335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11336 if test "$GCC" = yes; then
11337   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11338 fi
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11428 hardcode_action=
11429 if test -n "$hardcode_libdir_flag_spec" ||
11430    test -n "$runpath_var" ||
11431    test "X$hardcode_automatic" = "Xyes" ; then
11432
11433   # We can hardcode non-existent directories.
11434   if test "$hardcode_direct" != no &&
11435      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11436      # have to relink, otherwise we might link with an installed library
11437      # when we should be linking with a yet-to-be-installed one
11438      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11439      test "$hardcode_minus_L" != no; then
11440     # Linking always hardcodes the temporary library directory.
11441     hardcode_action=relink
11442   else
11443     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11444     hardcode_action=immediate
11445   fi
11446 else
11447   # We cannot hardcode anything, or else we can only hardcode existing
11448   # directories.
11449   hardcode_action=unsupported
11450 fi
11451 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11452 echo "${ECHO_T}$hardcode_action" >&6
11453
11454 if test "$hardcode_action" = relink ||
11455    test "$inherit_rpath" = yes; then
11456   # Fast installation is not supported
11457   enable_fast_install=no
11458 elif test "$shlibpath_overrides_runpath" = yes ||
11459      test "$enable_shared" = no; then
11460   # Fast installation is not necessary
11461   enable_fast_install=needless
11462 fi
11463
11464
11465
11466
11467
11468
11469   if test "x$enable_dlopen" != xyes; then
11470   enable_dlopen=unknown
11471   enable_dlopen_self=unknown
11472   enable_dlopen_self_static=unknown
11473 else
11474   lt_cv_dlopen=no
11475   lt_cv_dlopen_libs=
11476
11477   case $host_os in
11478   beos*)
11479     lt_cv_dlopen="load_add_on"
11480     lt_cv_dlopen_libs=
11481     lt_cv_dlopen_self=yes
11482     ;;
11483
11484   mingw* | pw32*)
11485     lt_cv_dlopen="LoadLibrary"
11486     lt_cv_dlopen_libs=
11487     ;;
11488
11489   cygwin*)
11490     lt_cv_dlopen="dlopen"
11491     lt_cv_dlopen_libs=
11492     ;;
11493
11494   darwin*)
11495   # if libdl is installed we need to link against it
11496     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11497 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11498 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11499   echo $ECHO_N "(cached) $ECHO_C" >&6
11500 else
11501   ac_check_lib_save_LIBS=$LIBS
11502 LIBS="-ldl  $LIBS"
11503 if test x$gcc_no_link = xyes; then
11504   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11506    { (exit 1); exit 1; }; }
11507 fi
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514
11515 /* Override any gcc2 internal prototype to avoid an error.  */
11516 #ifdef __cplusplus
11517 extern "C"
11518 #endif
11519 /* We use char because int might match the return type of a gcc2
11520    builtin and then its argument prototype would still apply.  */
11521 char dlopen ();
11522 int
11523 main ()
11524 {
11525 dlopen ();
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11532   (eval $ac_link) 2>conftest.er1
11533   ac_status=$?
11534   grep -v '^ *+' conftest.er1 >conftest.err
11535   rm -f conftest.er1
11536   cat conftest.err >&5
11537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538   (exit $ac_status); } &&
11539          { ac_try='test -z "$ac_c_werror_flag"
11540                          || test ! -s conftest.err'
11541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11542   (eval $ac_try) 2>&5
11543   ac_status=$?
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); }; } &&
11546          { ac_try='test -s conftest$ac_exeext'
11547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548   (eval $ac_try) 2>&5
11549   ac_status=$?
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); }; }; then
11552   ac_cv_lib_dl_dlopen=yes
11553 else
11554   echo "$as_me: failed program was:" >&5
11555 sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_cv_lib_dl_dlopen=no
11558 fi
11559 rm -f conftest.err conftest.$ac_objext \
11560       conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11562 fi
11563 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11565 if test $ac_cv_lib_dl_dlopen = yes; then
11566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11567 else
11568
11569     lt_cv_dlopen="dyld"
11570     lt_cv_dlopen_libs=
11571     lt_cv_dlopen_self=yes
11572
11573 fi
11574
11575     ;;
11576
11577   *)
11578     echo "$as_me:$LINENO: checking for shl_load" >&5
11579 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11580 if test "${ac_cv_func_shl_load+set}" = set; then
11581   echo $ECHO_N "(cached) $ECHO_C" >&6
11582 else
11583   if test x$gcc_no_link = xyes; then
11584   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11585 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11586    { (exit 1); exit 1; }; }
11587 fi
11588 cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11596 #define shl_load innocuous_shl_load
11597
11598 /* System header to define __stub macros and hopefully few prototypes,
11599     which can conflict with char shl_load (); below.
11600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11601     <limits.h> exists even on freestanding compilers.  */
11602
11603 #ifdef __STDC__
11604 # include <limits.h>
11605 #else
11606 # include <assert.h>
11607 #endif
11608
11609 #undef shl_load
11610
11611 /* Override any gcc2 internal prototype to avoid an error.  */
11612 #ifdef __cplusplus
11613 extern "C"
11614 {
11615 #endif
11616 /* We use char because int might match the return type of a gcc2
11617    builtin and then its argument prototype would still apply.  */
11618 char shl_load ();
11619 /* The GNU C library defines this for functions which it implements
11620     to always fail with ENOSYS.  Some functions are actually named
11621     something starting with __ and the normal name is an alias.  */
11622 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11623 choke me
11624 #else
11625 char (*f) () = shl_load;
11626 #endif
11627 #ifdef __cplusplus
11628 }
11629 #endif
11630
11631 int
11632 main ()
11633 {
11634 return f != shl_load;
11635   ;
11636   return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext conftest$ac_exeext
11640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641   (eval $ac_link) 2>conftest.er1
11642   ac_status=$?
11643   grep -v '^ *+' conftest.er1 >conftest.err
11644   rm -f conftest.er1
11645   cat conftest.err >&5
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); } &&
11648          { ac_try='test -z "$ac_c_werror_flag"
11649                          || test ! -s conftest.err'
11650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11651   (eval $ac_try) 2>&5
11652   ac_status=$?
11653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654   (exit $ac_status); }; } &&
11655          { ac_try='test -s conftest$ac_exeext'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; }; then
11661   ac_cv_func_shl_load=yes
11662 else
11663   echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11665
11666 ac_cv_func_shl_load=no
11667 fi
11668 rm -f conftest.err conftest.$ac_objext \
11669       conftest$ac_exeext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11672 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11673 if test $ac_cv_func_shl_load = yes; then
11674   lt_cv_dlopen="shl_load"
11675 else
11676   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11677 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11678 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11679   echo $ECHO_N "(cached) $ECHO_C" >&6
11680 else
11681   ac_check_lib_save_LIBS=$LIBS
11682 LIBS="-ldld  $LIBS"
11683 if test x$gcc_no_link = xyes; then
11684   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11685 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11686    { (exit 1); exit 1; }; }
11687 fi
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695 /* Override any gcc2 internal prototype to avoid an error.  */
11696 #ifdef __cplusplus
11697 extern "C"
11698 #endif
11699 /* We use char because int might match the return type of a gcc2
11700    builtin and then its argument prototype would still apply.  */
11701 char shl_load ();
11702 int
11703 main ()
11704 {
11705 shl_load ();
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712   (eval $ac_link) 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -z "$ac_c_werror_flag"
11720                          || test ! -s conftest.err'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; } &&
11726          { ac_try='test -s conftest$ac_exeext'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   ac_cv_lib_dld_shl_load=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_cv_lib_dld_shl_load=no
11738 fi
11739 rm -f conftest.err conftest.$ac_objext \
11740       conftest$ac_exeext conftest.$ac_ext
11741 LIBS=$ac_check_lib_save_LIBS
11742 fi
11743 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11745 if test $ac_cv_lib_dld_shl_load = yes; then
11746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11747 else
11748   echo "$as_me:$LINENO: checking for dlopen" >&5
11749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11750 if test "${ac_cv_func_dlopen+set}" = set; then
11751   echo $ECHO_N "(cached) $ECHO_C" >&6
11752 else
11753   if test x$gcc_no_link = xyes; then
11754   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11756    { (exit 1); exit 1; }; }
11757 fi
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11766 #define dlopen innocuous_dlopen
11767
11768 /* System header to define __stub macros and hopefully few prototypes,
11769     which can conflict with char dlopen (); below.
11770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771     <limits.h> exists even on freestanding compilers.  */
11772
11773 #ifdef __STDC__
11774 # include <limits.h>
11775 #else
11776 # include <assert.h>
11777 #endif
11778
11779 #undef dlopen
11780
11781 /* Override any gcc2 internal prototype to avoid an error.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 {
11785 #endif
11786 /* We use char because int might match the return type of a gcc2
11787    builtin and then its argument prototype would still apply.  */
11788 char dlopen ();
11789 /* The GNU C library defines this for functions which it implements
11790     to always fail with ENOSYS.  Some functions are actually named
11791     something starting with __ and the normal name is an alias.  */
11792 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11793 choke me
11794 #else
11795 char (*f) () = dlopen;
11796 #endif
11797 #ifdef __cplusplus
11798 }
11799 #endif
11800
11801 int
11802 main ()
11803 {
11804 return f != dlopen;
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811   (eval $ac_link) 2>conftest.er1
11812   ac_status=$?
11813   grep -v '^ *+' conftest.er1 >conftest.err
11814   rm -f conftest.er1
11815   cat conftest.err >&5
11816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817   (exit $ac_status); } &&
11818          { ac_try='test -z "$ac_c_werror_flag"
11819                          || test ! -s conftest.err'
11820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821   (eval $ac_try) 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; } &&
11825          { ac_try='test -s conftest$ac_exeext'
11826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827   (eval $ac_try) 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; }; then
11831   ac_cv_func_dlopen=yes
11832 else
11833   echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_cv_func_dlopen=no
11837 fi
11838 rm -f conftest.err conftest.$ac_objext \
11839       conftest$ac_exeext conftest.$ac_ext
11840 fi
11841 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11842 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11843 if test $ac_cv_func_dlopen = yes; then
11844   lt_cv_dlopen="dlopen"
11845 else
11846   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11847 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11848 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11849   echo $ECHO_N "(cached) $ECHO_C" >&6
11850 else
11851   ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-ldl  $LIBS"
11853 if test x$gcc_no_link = xyes; then
11854   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11855 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11856    { (exit 1); exit 1; }; }
11857 fi
11858 cat >conftest.$ac_ext <<_ACEOF
11859 /* confdefs.h.  */
11860 _ACEOF
11861 cat confdefs.h >>conftest.$ac_ext
11862 cat >>conftest.$ac_ext <<_ACEOF
11863 /* end confdefs.h.  */
11864
11865 /* Override any gcc2 internal prototype to avoid an error.  */
11866 #ifdef __cplusplus
11867 extern "C"
11868 #endif
11869 /* We use char because int might match the return type of a gcc2
11870    builtin and then its argument prototype would still apply.  */
11871 char dlopen ();
11872 int
11873 main ()
11874 {
11875 dlopen ();
11876   ;
11877   return 0;
11878 }
11879 _ACEOF
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882   (eval $ac_link) 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } &&
11889          { ac_try='test -z "$ac_c_werror_flag"
11890                          || test ! -s conftest.err'
11891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892   (eval $ac_try) 2>&5
11893   ac_status=$?
11894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895   (exit $ac_status); }; } &&
11896          { ac_try='test -s conftest$ac_exeext'
11897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898   (eval $ac_try) 2>&5
11899   ac_status=$?
11900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901   (exit $ac_status); }; }; then
11902   ac_cv_lib_dl_dlopen=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 ac_cv_lib_dl_dlopen=no
11908 fi
11909 rm -f conftest.err conftest.$ac_objext \
11910       conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11912 fi
11913 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11914 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11915 if test $ac_cv_lib_dl_dlopen = yes; then
11916   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917 else
11918   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11919 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11920 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11921   echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923   ac_check_lib_save_LIBS=$LIBS
11924 LIBS="-lsvld  $LIBS"
11925 if test x$gcc_no_link = xyes; then
11926   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11927 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11928    { (exit 1); exit 1; }; }
11929 fi
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h.  */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h.  */
11936
11937 /* Override any gcc2 internal prototype to avoid an error.  */
11938 #ifdef __cplusplus
11939 extern "C"
11940 #endif
11941 /* We use char because int might match the return type of a gcc2
11942    builtin and then its argument prototype would still apply.  */
11943 char dlopen ();
11944 int
11945 main ()
11946 {
11947 dlopen ();
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954   (eval $ac_link) 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } &&
11961          { ac_try='test -z "$ac_c_werror_flag"
11962                          || test ! -s conftest.err'
11963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964   (eval $ac_try) 2>&5
11965   ac_status=$?
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); }; } &&
11968          { ac_try='test -s conftest$ac_exeext'
11969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970   (eval $ac_try) 2>&5
11971   ac_status=$?
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); }; }; then
11974   ac_cv_lib_svld_dlopen=yes
11975 else
11976   echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 ac_cv_lib_svld_dlopen=no
11980 fi
11981 rm -f conftest.err conftest.$ac_objext \
11982       conftest$ac_exeext conftest.$ac_ext
11983 LIBS=$ac_check_lib_save_LIBS
11984 fi
11985 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11986 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11987 if test $ac_cv_lib_svld_dlopen = yes; then
11988   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11989 else
11990   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11991 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11992 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11993   echo $ECHO_N "(cached) $ECHO_C" >&6
11994 else
11995   ac_check_lib_save_LIBS=$LIBS
11996 LIBS="-ldld  $LIBS"
11997 if test x$gcc_no_link = xyes; then
11998   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12000    { (exit 1); exit 1; }; }
12001 fi
12002 cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008
12009 /* Override any gcc2 internal prototype to avoid an error.  */
12010 #ifdef __cplusplus
12011 extern "C"
12012 #endif
12013 /* We use char because int might match the return type of a gcc2
12014    builtin and then its argument prototype would still apply.  */
12015 char dld_link ();
12016 int
12017 main ()
12018 {
12019 dld_link ();
12020   ;
12021   return 0;
12022 }
12023 _ACEOF
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026   (eval $ac_link) 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } &&
12033          { ac_try='test -z "$ac_c_werror_flag"
12034                          || test ! -s conftest.err'
12035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036   (eval $ac_try) 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; } &&
12040          { ac_try='test -s conftest$ac_exeext'
12041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042   (eval $ac_try) 2>&5
12043   ac_status=$?
12044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045   (exit $ac_status); }; }; then
12046   ac_cv_lib_dld_dld_link=yes
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 ac_cv_lib_dld_dld_link=no
12052 fi
12053 rm -f conftest.err conftest.$ac_objext \
12054       conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12058 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12059 if test $ac_cv_lib_dld_dld_link = yes; then
12060   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12061 fi
12062
12063
12064 fi
12065
12066
12067 fi
12068
12069
12070 fi
12071
12072
12073 fi
12074
12075
12076 fi
12077
12078     ;;
12079   esac
12080
12081   if test "x$lt_cv_dlopen" != xno; then
12082     enable_dlopen=yes
12083   else
12084     enable_dlopen=no
12085   fi
12086
12087   case $lt_cv_dlopen in
12088   dlopen)
12089     save_CPPFLAGS="$CPPFLAGS"
12090     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12091
12092     save_LDFLAGS="$LDFLAGS"
12093     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12094
12095     save_LIBS="$LIBS"
12096     LIBS="$lt_cv_dlopen_libs $LIBS"
12097
12098     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12099 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12100 if test "${lt_cv_dlopen_self+set}" = set; then
12101   echo $ECHO_N "(cached) $ECHO_C" >&6
12102 else
12103           if test "$cross_compiling" = yes; then :
12104   lt_cv_dlopen_self=cross
12105 else
12106   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12107   lt_status=$lt_dlunknown
12108   cat > conftest.$ac_ext <<_LT_EOF
12109 #line 12109 "configure"
12110 #include "confdefs.h"
12111
12112 #if HAVE_DLFCN_H
12113 #include <dlfcn.h>
12114 #endif
12115
12116 #include <stdio.h>
12117
12118 #ifdef RTLD_GLOBAL
12119 #  define LT_DLGLOBAL           RTLD_GLOBAL
12120 #else
12121 #  ifdef DL_GLOBAL
12122 #    define LT_DLGLOBAL         DL_GLOBAL
12123 #  else
12124 #    define LT_DLGLOBAL         0
12125 #  endif
12126 #endif
12127
12128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12129    find out it does not work in some platform. */
12130 #ifndef LT_DLLAZY_OR_NOW
12131 #  ifdef RTLD_LAZY
12132 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12133 #  else
12134 #    ifdef DL_LAZY
12135 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12136 #    else
12137 #      ifdef RTLD_NOW
12138 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12139 #      else
12140 #        ifdef DL_NOW
12141 #          define LT_DLLAZY_OR_NOW      DL_NOW
12142 #        else
12143 #          define LT_DLLAZY_OR_NOW      0
12144 #        endif
12145 #      endif
12146 #    endif
12147 #  endif
12148 #endif
12149
12150 #ifdef __cplusplus
12151 extern "C" void exit (int);
12152 #endif
12153
12154 void fnord() { int i=42;}
12155 int main ()
12156 {
12157   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12158   int status = $lt_dlunknown;
12159
12160   if (self)
12161     {
12162       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12163       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12164       /* dlclose (self); */
12165     }
12166   else
12167     puts (dlerror ());
12168
12169     exit (status);
12170 }
12171 _LT_EOF
12172   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12173   (eval $ac_link) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12177     (./conftest; exit; ) >&5 2>/dev/null
12178     lt_status=$?
12179     case x$lt_status in
12180       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12181       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12182       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12183     esac
12184   else :
12185     # compilation failed
12186     lt_cv_dlopen_self=no
12187   fi
12188 fi
12189 rm -fr conftest*
12190
12191
12192 fi
12193 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12194 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12195
12196     if test "x$lt_cv_dlopen_self" = xyes; then
12197       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12198       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12199 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12200 if test "${lt_cv_dlopen_self_static+set}" = set; then
12201   echo $ECHO_N "(cached) $ECHO_C" >&6
12202 else
12203           if test "$cross_compiling" = yes; then :
12204   lt_cv_dlopen_self_static=cross
12205 else
12206   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12207   lt_status=$lt_dlunknown
12208   cat > conftest.$ac_ext <<_LT_EOF
12209 #line 12209 "configure"
12210 #include "confdefs.h"
12211
12212 #if HAVE_DLFCN_H
12213 #include <dlfcn.h>
12214 #endif
12215
12216 #include <stdio.h>
12217
12218 #ifdef RTLD_GLOBAL
12219 #  define LT_DLGLOBAL           RTLD_GLOBAL
12220 #else
12221 #  ifdef DL_GLOBAL
12222 #    define LT_DLGLOBAL         DL_GLOBAL
12223 #  else
12224 #    define LT_DLGLOBAL         0
12225 #  endif
12226 #endif
12227
12228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12229    find out it does not work in some platform. */
12230 #ifndef LT_DLLAZY_OR_NOW
12231 #  ifdef RTLD_LAZY
12232 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12233 #  else
12234 #    ifdef DL_LAZY
12235 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12236 #    else
12237 #      ifdef RTLD_NOW
12238 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12239 #      else
12240 #        ifdef DL_NOW
12241 #          define LT_DLLAZY_OR_NOW      DL_NOW
12242 #        else
12243 #          define LT_DLLAZY_OR_NOW      0
12244 #        endif
12245 #      endif
12246 #    endif
12247 #  endif
12248 #endif
12249
12250 #ifdef __cplusplus
12251 extern "C" void exit (int);
12252 #endif
12253
12254 void fnord() { int i=42;}
12255 int main ()
12256 {
12257   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12258   int status = $lt_dlunknown;
12259
12260   if (self)
12261     {
12262       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12263       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12264       /* dlclose (self); */
12265     }
12266   else
12267     puts (dlerror ());
12268
12269     exit (status);
12270 }
12271 _LT_EOF
12272   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12273   (eval $ac_link) 2>&5
12274   ac_status=$?
12275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12277     (./conftest; exit; ) >&5 2>/dev/null
12278     lt_status=$?
12279     case x$lt_status in
12280       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12281       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12282       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12283     esac
12284   else :
12285     # compilation failed
12286     lt_cv_dlopen_self_static=no
12287   fi
12288 fi
12289 rm -fr conftest*
12290
12291
12292 fi
12293 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12294 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12295     fi
12296
12297     CPPFLAGS="$save_CPPFLAGS"
12298     LDFLAGS="$save_LDFLAGS"
12299     LIBS="$save_LIBS"
12300     ;;
12301   esac
12302
12303   case $lt_cv_dlopen_self in
12304   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12305   *) enable_dlopen_self=unknown ;;
12306   esac
12307
12308   case $lt_cv_dlopen_self_static in
12309   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12310   *) enable_dlopen_self_static=unknown ;;
12311   esac
12312 fi
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330 striplib=
12331 old_striplib=
12332 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12333 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12334 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12335   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12336   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12337   echo "$as_me:$LINENO: result: yes" >&5
12338 echo "${ECHO_T}yes" >&6
12339 else
12340 # FIXME - insert some real tests, host_os isn't really good enough
12341   case $host_os in
12342   darwin*)
12343     if test -n "$STRIP" ; then
12344       striplib="$STRIP -x"
12345       old_striplib="$STRIP -S"
12346       echo "$as_me:$LINENO: result: yes" >&5
12347 echo "${ECHO_T}yes" >&6
12348     else
12349       echo "$as_me:$LINENO: result: no" >&5
12350 echo "${ECHO_T}no" >&6
12351     fi
12352     ;;
12353   *)
12354     echo "$as_me:$LINENO: result: no" >&5
12355 echo "${ECHO_T}no" >&6
12356     ;;
12357   esac
12358 fi
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371   # Report which library types will actually be built
12372   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12373 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12374   echo "$as_me:$LINENO: result: $can_build_shared" >&5
12375 echo "${ECHO_T}$can_build_shared" >&6
12376
12377   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12378 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12379   test "$can_build_shared" = "no" && enable_shared=no
12380
12381   # On AIX, shared libraries and static libraries use the same namespace, and
12382   # are all built from PIC.
12383   case $host_os in
12384   aix3*)
12385     test "$enable_shared" = yes && enable_static=no
12386     if test -n "$RANLIB"; then
12387       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12388       postinstall_cmds='$RANLIB $lib'
12389     fi
12390     ;;
12391
12392   aix[4-9]*)
12393     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12394       test "$enable_shared" = yes && enable_static=no
12395     fi
12396     ;;
12397   esac
12398   echo "$as_me:$LINENO: result: $enable_shared" >&5
12399 echo "${ECHO_T}$enable_shared" >&6
12400
12401   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12402 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12403   # Make sure either enable_shared or enable_static is yes.
12404   test "$enable_shared" = yes || enable_static=yes
12405   echo "$as_me:$LINENO: result: $enable_static" >&5
12406 echo "${ECHO_T}$enable_static" >&6
12407
12408
12409
12410
12411 fi
12412 ac_ext=c
12413 ac_cpp='$CPP $CPPFLAGS'
12414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12417
12418 CC="$lt_save_CC"
12419
12420
12421 ac_ext=cc
12422 ac_cpp='$CXXCPP $CPPFLAGS'
12423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12426
12427 archive_cmds_need_lc_CXX=no
12428 allow_undefined_flag_CXX=
12429 always_export_symbols_CXX=no
12430 archive_expsym_cmds_CXX=
12431 compiler_needs_object_CXX=no
12432 export_dynamic_flag_spec_CXX=
12433 hardcode_direct_CXX=no
12434 hardcode_direct_absolute_CXX=no
12435 hardcode_libdir_flag_spec_CXX=
12436 hardcode_libdir_flag_spec_ld_CXX=
12437 hardcode_libdir_separator_CXX=
12438 hardcode_minus_L_CXX=no
12439 hardcode_shlibpath_var_CXX=unsupported
12440 hardcode_automatic_CXX=no
12441 inherit_rpath_CXX=no
12442 module_cmds_CXX=
12443 module_expsym_cmds_CXX=
12444 link_all_deplibs_CXX=unknown
12445 old_archive_cmds_CXX=$old_archive_cmds
12446 no_undefined_flag_CXX=
12447 whole_archive_flag_spec_CXX=
12448 enable_shared_with_static_runtimes_CXX=no
12449
12450 # Source file extension for C++ test sources.
12451 ac_ext=cpp
12452
12453 # Object file extension for compiled C++ test sources.
12454 objext=o
12455 objext_CXX=$objext
12456
12457 # No sense in running all these tests if we already determined that
12458 # the CXX compiler isn't working.  Some variables (like enable_shared)
12459 # are currently assumed to apply to all compilers on this platform,
12460 # and will be corrupted by setting them based on a non-working compiler.
12461 if test "$_lt_caught_CXX_error" != yes; then
12462   # Code to be used in simple compile tests
12463   lt_simple_compile_test_code="int some_variable = 0;"
12464
12465   # Code to be used in simple link tests
12466   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12467
12468   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12469
12470
12471
12472
12473
12474
12475 # If no C compiler was specified, use CC.
12476 LTCC=${LTCC-"$CC"}
12477
12478 # If no C compiler flags were specified, use CFLAGS.
12479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12480
12481 # Allow CC to be a program name with arguments.
12482 compiler=$CC
12483
12484
12485   # save warnings/boilerplate of simple test code
12486   ac_outfile=conftest.$ac_objext
12487 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12488 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12489 _lt_compiler_boilerplate=`cat conftest.err`
12490 $RM conftest*
12491
12492   ac_outfile=conftest.$ac_objext
12493 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12494 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12495 _lt_linker_boilerplate=`cat conftest.err`
12496 $RM conftest*
12497
12498
12499   # Allow CC to be a program name with arguments.
12500   lt_save_CC=$CC
12501   lt_save_LD=$LD
12502   lt_save_GCC=$GCC
12503   GCC=$GXX
12504   lt_save_with_gnu_ld=$with_gnu_ld
12505   lt_save_path_LD=$lt_cv_path_LD
12506   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12507     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12508   else
12509     $as_unset lt_cv_prog_gnu_ld
12510   fi
12511   if test -n "${lt_cv_path_LDCXX+set}"; then
12512     lt_cv_path_LD=$lt_cv_path_LDCXX
12513   else
12514     $as_unset lt_cv_path_LD
12515   fi
12516   test -z "${LDCXX+set}" || LD=$LDCXX
12517   CC=${CXX-"c++"}
12518   compiler=$CC
12519   compiler_CXX=$CC
12520   for cc_temp in $compiler""; do
12521   case $cc_temp in
12522     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12523     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12524     \-*) ;;
12525     *) break;;
12526   esac
12527 done
12528 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12529
12530
12531   if test -n "$compiler"; then
12532     # We don't want -fno-exception when compiling C++ code, so set the
12533     # no_builtin_flag separately
12534     if test "$GXX" = yes; then
12535       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12536     else
12537       lt_prog_compiler_no_builtin_flag_CXX=
12538     fi
12539
12540     if test "$GXX" = yes; then
12541       # Set up default GNU C++ configuration
12542
12543
12544
12545 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12546 if test "${with_gnu_ld+set}" = set; then
12547   withval="$with_gnu_ld"
12548   test "$withval" = no || with_gnu_ld=yes
12549 else
12550   with_gnu_ld=no
12551 fi;
12552 ac_prog=ld
12553 if test "$GCC" = yes; then
12554   # Check if gcc -print-prog-name=ld gives a path.
12555   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12556 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12557   case $host in
12558   *-*-mingw*)
12559     # gcc leaves a trailing carriage return which upsets mingw
12560     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12561   *)
12562     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12563   esac
12564   case $ac_prog in
12565     # Accept absolute paths.
12566     [\\/]* | ?:[\\/]*)
12567       re_direlt='/[^/][^/]*/\.\./'
12568       # Canonicalize the pathname of ld
12569       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12570       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12571         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12572       done
12573       test -z "$LD" && LD="$ac_prog"
12574       ;;
12575   "")
12576     # If it fails, then pretend we aren't using GCC.
12577     ac_prog=ld
12578     ;;
12579   *)
12580     # If it is relative, then search for the first ld in PATH.
12581     with_gnu_ld=unknown
12582     ;;
12583   esac
12584 elif test "$with_gnu_ld" = yes; then
12585   echo "$as_me:$LINENO: checking for GNU ld" >&5
12586 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12587 else
12588   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12589 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12590 fi
12591 if test "${lt_cv_path_LD+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   if test -z "$LD"; then
12595   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12596   for ac_dir in $PATH; do
12597     IFS="$lt_save_ifs"
12598     test -z "$ac_dir" && ac_dir=.
12599     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12600       lt_cv_path_LD="$ac_dir/$ac_prog"
12601       # Check to see if the program is GNU ld.  I'd rather use --version,
12602       # but apparently some variants of GNU ld only accept -v.
12603       # Break only if it was the GNU/non-GNU ld that we prefer.
12604       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12605       *GNU* | *'with BFD'*)
12606         test "$with_gnu_ld" != no && break
12607         ;;
12608       *)
12609         test "$with_gnu_ld" != yes && break
12610         ;;
12611       esac
12612     fi
12613   done
12614   IFS="$lt_save_ifs"
12615 else
12616   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12617 fi
12618 fi
12619
12620 LD="$lt_cv_path_LD"
12621 if test -n "$LD"; then
12622   echo "$as_me:$LINENO: result: $LD" >&5
12623 echo "${ECHO_T}$LD" >&6
12624 else
12625   echo "$as_me:$LINENO: result: no" >&5
12626 echo "${ECHO_T}no" >&6
12627 fi
12628 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12629 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12630    { (exit 1); exit 1; }; }
12631 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12632 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 else
12636   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12637 case `$LD -v 2>&1 </dev/null` in
12638 *GNU* | *'with BFD'*)
12639   lt_cv_prog_gnu_ld=yes
12640   ;;
12641 *)
12642   lt_cv_prog_gnu_ld=no
12643   ;;
12644 esac
12645 fi
12646 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12647 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12648 with_gnu_ld=$lt_cv_prog_gnu_ld
12649
12650
12651
12652
12653
12654
12655
12656       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12657       # archiving commands below assume that GNU ld is being used.
12658       if test "$with_gnu_ld" = yes; then
12659         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12660         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'
12661
12662         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12663         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12664
12665         # If archive_cmds runs LD, not CC, wlarc should be empty
12666         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12667         #     investigate it a little bit more. (MM)
12668         wlarc='${wl}'
12669
12670         # ancient GNU ld didn't support --whole-archive et. al.
12671         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12672           $GREP 'no-whole-archive' > /dev/null; then
12673           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12674         else
12675           whole_archive_flag_spec_CXX=
12676         fi
12677       else
12678         with_gnu_ld=no
12679         wlarc=
12680
12681         # A generic and very simple default shared library creation
12682         # command for GNU C++ for the case where it uses the native
12683         # linker, instead of GNU ld.  If possible, this setting should
12684         # overridden to take advantage of the native linker features on
12685         # the platform it is being used on.
12686         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12687       fi
12688
12689       # Commands to make compiler produce verbose output that lists
12690       # what "hidden" libraries, object files and flags are used when
12691       # linking a shared library.
12692       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12693
12694     else
12695       GXX=no
12696       with_gnu_ld=no
12697       wlarc=
12698     fi
12699
12700     # PORTME: fill in a description of your system's C++ link characteristics
12701     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12703     ld_shlibs_CXX=yes
12704     case $host_os in
12705       aix3*)
12706         # FIXME: insert proper C++ library support
12707         ld_shlibs_CXX=no
12708         ;;
12709       aix[4-9]*)
12710         if test "$host_cpu" = ia64; then
12711           # On IA64, the linker does run time linking by default, so we don't
12712           # have to do anything special.
12713           aix_use_runtimelinking=no
12714           exp_sym_flag='-Bexport'
12715           no_entry_flag=""
12716         else
12717           aix_use_runtimelinking=no
12718
12719           # Test if we are trying to use run time linking or normal
12720           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12721           # need to do runtime linking.
12722           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12723             for ld_flag in $LDFLAGS; do
12724               case $ld_flag in
12725               *-brtl*)
12726                 aix_use_runtimelinking=yes
12727                 break
12728                 ;;
12729               esac
12730             done
12731             ;;
12732           esac
12733
12734           exp_sym_flag='-bexport'
12735           no_entry_flag='-bnoentry'
12736         fi
12737
12738         # When large executables or shared objects are built, AIX ld can
12739         # have problems creating the table of contents.  If linking a library
12740         # or program results in "error TOC overflow" add -mminimal-toc to
12741         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12742         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12743
12744         archive_cmds_CXX=''
12745         hardcode_direct_CXX=yes
12746         hardcode_direct_absolute_CXX=yes
12747         hardcode_libdir_separator_CXX=':'
12748         link_all_deplibs_CXX=yes
12749         file_list_spec_CXX='${wl}-f,'
12750
12751         if test "$GXX" = yes; then
12752           case $host_os in aix4.[012]|aix4.[012].*)
12753           # We only want to do this on AIX 4.2 and lower, the check
12754           # below for broken collect2 doesn't work under 4.3+
12755           collect2name=`${CC} -print-prog-name=collect2`
12756           if test -f "$collect2name" &&
12757              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12758           then
12759             # We have reworked collect2
12760             :
12761           else
12762             # We have old collect2
12763             hardcode_direct_CXX=unsupported
12764             # It fails to find uninstalled libraries when the uninstalled
12765             # path is not listed in the libpath.  Setting hardcode_minus_L
12766             # to unsupported forces relinking
12767             hardcode_minus_L_CXX=yes
12768             hardcode_libdir_flag_spec_CXX='-L$libdir'
12769             hardcode_libdir_separator_CXX=
12770           fi
12771           esac
12772           shared_flag='-shared'
12773           if test "$aix_use_runtimelinking" = yes; then
12774             shared_flag="$shared_flag "'${wl}-G'
12775           fi
12776         else
12777           # not using gcc
12778           if test "$host_cpu" = ia64; then
12779           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12780           # chokes on -Wl,-G. The following line is correct:
12781           shared_flag='-G'
12782           else
12783             if test "$aix_use_runtimelinking" = yes; then
12784               shared_flag='${wl}-G'
12785             else
12786               shared_flag='${wl}-bM:SRE'
12787             fi
12788           fi
12789         fi
12790
12791         # It seems that -bexpall does not export symbols beginning with
12792         # underscore (_), so it is better to generate a list of symbols to
12793         # export.
12794         always_export_symbols_CXX=yes
12795         if test "$aix_use_runtimelinking" = yes; then
12796           # Warning - without using the other runtime loading flags (-brtl),
12797           # -berok will link without error, but may produce a broken library.
12798           allow_undefined_flag_CXX='-berok'
12799           # Determine the default libpath from the value encoded in an empty
12800           # executable.
12801           if test x$gcc_no_link = xyes; then
12802   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12803 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12804    { (exit 1); exit 1; }; }
12805 fi
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812
12813 int
12814 main ()
12815 {
12816
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12823   (eval $ac_link) 2>conftest.er1
12824   ac_status=$?
12825   grep -v '^ *+' conftest.er1 >conftest.err
12826   rm -f conftest.er1
12827   cat conftest.err >&5
12828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829   (exit $ac_status); } &&
12830          { ac_try='test -z "$ac_cxx_werror_flag"
12831                          || test ! -s conftest.err'
12832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833   (eval $ac_try) 2>&5
12834   ac_status=$?
12835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836   (exit $ac_status); }; } &&
12837          { ac_try='test -s conftest$ac_exeext'
12838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839   (eval $ac_try) 2>&5
12840   ac_status=$?
12841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842   (exit $ac_status); }; }; then
12843
12844 lt_aix_libpath_sed='
12845     /Import File Strings/,/^$/ {
12846         /^0/ {
12847             s/^0  *\(.*\)$/\1/
12848             p
12849         }
12850     }'
12851 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12852 # Check for a 64-bit object if we didn't find anything.
12853 if test -z "$aix_libpath"; then
12854   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12855 fi
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 fi
12861 rm -f conftest.err conftest.$ac_objext \
12862       conftest$ac_exeext conftest.$ac_ext
12863 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12864
12865           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12866
12867           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"
12868         else
12869           if test "$host_cpu" = ia64; then
12870             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12871             allow_undefined_flag_CXX="-z nodefs"
12872             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"
12873           else
12874             # Determine the default libpath from the value encoded in an
12875             # empty executable.
12876             if test x$gcc_no_link = xyes; then
12877   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12878 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12879    { (exit 1); exit 1; }; }
12880 fi
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h.  */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h.  */
12887
12888 int
12889 main ()
12890 {
12891
12892   ;
12893   return 0;
12894 }
12895 _ACEOF
12896 rm -f conftest.$ac_objext conftest$ac_exeext
12897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12898   (eval $ac_link) 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } &&
12905          { ac_try='test -z "$ac_cxx_werror_flag"
12906                          || test ! -s conftest.err'
12907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12908   (eval $ac_try) 2>&5
12909   ac_status=$?
12910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911   (exit $ac_status); }; } &&
12912          { ac_try='test -s conftest$ac_exeext'
12913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914   (eval $ac_try) 2>&5
12915   ac_status=$?
12916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917   (exit $ac_status); }; }; then
12918
12919 lt_aix_libpath_sed='
12920     /Import File Strings/,/^$/ {
12921         /^0/ {
12922             s/^0  *\(.*\)$/\1/
12923             p
12924         }
12925     }'
12926 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12927 # Check for a 64-bit object if we didn't find anything.
12928 if test -z "$aix_libpath"; then
12929   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930 fi
12931 else
12932   echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12934
12935 fi
12936 rm -f conftest.err conftest.$ac_objext \
12937       conftest$ac_exeext conftest.$ac_ext
12938 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12939
12940             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12941             # Warning - without using the other run time loading flags,
12942             # -berok will link without error, but may produce a broken library.
12943             no_undefined_flag_CXX=' ${wl}-bernotok'
12944             allow_undefined_flag_CXX=' ${wl}-berok'
12945             # Exported symbols can be pulled into shared objects from archives
12946             whole_archive_flag_spec_CXX='$convenience'
12947             archive_cmds_need_lc_CXX=yes
12948             # This is similar to how AIX traditionally builds its shared
12949             # libraries.
12950             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'
12951           fi
12952         fi
12953         ;;
12954
12955       beos*)
12956         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12957           allow_undefined_flag_CXX=unsupported
12958           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12959           # support --undefined.  This deserves some investigation.  FIXME
12960           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12961         else
12962           ld_shlibs_CXX=no
12963         fi
12964         ;;
12965
12966       chorus*)
12967         case $cc_basename in
12968           *)
12969           # FIXME: insert proper C++ library support
12970           ld_shlibs_CXX=no
12971           ;;
12972         esac
12973         ;;
12974
12975       cygwin* | mingw* | pw32*)
12976         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12977         # as there is no search path for DLLs.
12978         hardcode_libdir_flag_spec_CXX='-L$libdir'
12979         allow_undefined_flag_CXX=unsupported
12980         always_export_symbols_CXX=no
12981         enable_shared_with_static_runtimes_CXX=yes
12982
12983         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12984           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'
12985           # If the export-symbols file already is a .def file (1st line
12986           # is EXPORTS), use it as is; otherwise, prepend...
12987           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12988             cp $export_symbols $output_objdir/$soname.def;
12989           else
12990             echo EXPORTS > $output_objdir/$soname.def;
12991             cat $export_symbols >> $output_objdir/$soname.def;
12992           fi~
12993           $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'
12994         else
12995           ld_shlibs_CXX=no
12996         fi
12997         ;;
12998       darwin* | rhapsody*)
12999         case $host_os in
13000           rhapsody* | darwin1.[012])
13001             allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13002             ;;
13003           *) # Darwin 1.3 on
13004             case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
13005               10.[012])
13006                 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13007                 ;;
13008               10.*)
13009                 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13010                 ;;
13011             esac
13012             ;;
13013         esac
13014         archive_cmds_need_lc_CXX=no
13015         hardcode_direct_CXX=no
13016         hardcode_automatic_CXX=yes
13017         hardcode_shlibpath_var_CXX=unsupported
13018         whole_archive_flag_spec_CXX=''
13019         link_all_deplibs_CXX=yes
13020
13021         if test "$GXX" = yes ; then
13022           if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   lt_cv_apple_cc_single_mod=no
13026           if test -z "${LT_MULTI_MODULE}"; then
13027             # By default we will add the -single_module flag. You can override
13028             # by either setting the environment variable LT_MULTI_MODULE
13029             # non-empty at configure time, or by adding -multi-module to the
13030             # link flags.
13031             echo "int foo(void){return 1;}" > conftest.c
13032             $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13033                 -dynamiclib ${wl}-single_module conftest.c
13034             if test -f libconftest.dylib; then
13035                 lt_cv_apple_cc_single_mod=yes
13036                 rm libconftest.dylib
13037             fi
13038             rm conftest.$ac_ext
13039           fi
13040 fi
13041
13042           output_verbose_link_cmd=echo
13043           if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
13044            archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13045             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}'
13046           else
13047             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'
13048             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}'
13049           fi
13050           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13051           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}'
13052         else
13053           case $cc_basename in
13054             xlc*)
13055               output_verbose_link_cmd=echo
13056               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'
13057               module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13058               # Don't fix this by using the ld -exported_symbols_list flag,
13059               # it doesn't exist in older darwin lds
13060               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}'
13061               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}'
13062               ;;
13063             *)
13064               ld_shlibs_CXX=no
13065               ;;
13066           esac
13067         fi
13068         ;;
13069
13070       dgux*)
13071         case $cc_basename in
13072           ec++*)
13073             # FIXME: insert proper C++ library support
13074             ld_shlibs_CXX=no
13075             ;;
13076           ghcx*)
13077             # Green Hills C++ Compiler
13078             # FIXME: insert proper C++ library support
13079             ld_shlibs_CXX=no
13080             ;;
13081           *)
13082             # FIXME: insert proper C++ library support
13083             ld_shlibs_CXX=no
13084             ;;
13085         esac
13086         ;;
13087
13088       freebsd[12]*)
13089         # C++ shared libraries reported to be fairly broken before
13090         # switch to ELF
13091         ld_shlibs_CXX=no
13092         ;;
13093
13094       freebsd-elf*)
13095         archive_cmds_need_lc_CXX=no
13096         ;;
13097
13098       freebsd* | dragonfly*)
13099         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13100         # conventions
13101         ld_shlibs_CXX=yes
13102         ;;
13103
13104       gnu*)
13105         ;;
13106
13107       hpux9*)
13108         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13109         hardcode_libdir_separator_CXX=:
13110         export_dynamic_flag_spec_CXX='${wl}-E'
13111         hardcode_direct_CXX=yes
13112         hardcode_minus_L_CXX=yes # Not in the search PATH,
13113                                              # but as the default
13114                                              # location of the library.
13115
13116         case $cc_basename in
13117           CC*)
13118             # FIXME: insert proper C++ library support
13119             ld_shlibs_CXX=no
13120             ;;
13121           aCC*)
13122             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'
13123             # Commands to make compiler produce verbose output that lists
13124             # what "hidden" libraries, object files and flags are used when
13125             # linking a shared library.
13126             #
13127             # There doesn't appear to be a way to prevent this compiler from
13128             # explicitly linking system object files so we need to strip them
13129             # from the output so that they don't get included in the library
13130             # dependencies.
13131             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'
13132             ;;
13133           *)
13134             if test "$GXX" = yes; then
13135               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'
13136             else
13137               # FIXME: insert proper C++ library support
13138               ld_shlibs_CXX=no
13139             fi
13140             ;;
13141         esac
13142         ;;
13143
13144       hpux10*|hpux11*)
13145         if test $with_gnu_ld = no; then
13146           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13147           hardcode_libdir_separator_CXX=:
13148
13149           case $host_cpu in
13150             hppa*64*|ia64*)
13151               ;;
13152             *)
13153               export_dynamic_flag_spec_CXX='${wl}-E'
13154               ;;
13155           esac
13156         fi
13157         case $host_cpu in
13158           hppa*64*|ia64*)
13159             hardcode_direct_CXX=no
13160             hardcode_shlibpath_var_CXX=no
13161             ;;
13162           *)
13163             hardcode_direct_CXX=yes
13164             hardcode_direct_absolute_CXX=yes
13165             hardcode_minus_L_CXX=yes # Not in the search PATH,
13166                                                  # but as the default
13167                                                  # location of the library.
13168             ;;
13169         esac
13170
13171         case $cc_basename in
13172           CC*)
13173             # FIXME: insert proper C++ library support
13174             ld_shlibs_CXX=no
13175             ;;
13176           aCC*)
13177             case $host_cpu in
13178               hppa*64*)
13179                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180                 ;;
13181               ia64*)
13182                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183                 ;;
13184               *)
13185                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13186                 ;;
13187             esac
13188             # Commands to make compiler produce verbose output that lists
13189             # what "hidden" libraries, object files and flags are used when
13190             # linking a shared library.
13191             #
13192             # There doesn't appear to be a way to prevent this compiler from
13193             # explicitly linking system object files so we need to strip them
13194             # from the output so that they don't get included in the library
13195             # dependencies.
13196             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'
13197             ;;
13198           *)
13199             if test "$GXX" = yes; then
13200               if test $with_gnu_ld = no; then
13201                 case $host_cpu in
13202                   hppa*64*)
13203                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13204                     ;;
13205                   ia64*)
13206                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207                     ;;
13208                   *)
13209                     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'
13210                     ;;
13211                 esac
13212               fi
13213             else
13214               # FIXME: insert proper C++ library support
13215               ld_shlibs_CXX=no
13216             fi
13217             ;;
13218         esac
13219         ;;
13220
13221       interix[3-9]*)
13222         hardcode_direct_CXX=no
13223         hardcode_shlibpath_var_CXX=no
13224         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13225         export_dynamic_flag_spec_CXX='${wl}-E'
13226         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13227         # Instead, shared libraries are loaded at an image base (0x10000000 by
13228         # default) and relocated if they conflict, which is a slow very memory
13229         # consuming and fragmenting process.  To avoid this, we pick a random,
13230         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13231         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13232         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'
13233         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'
13234         ;;
13235       irix5* | irix6*)
13236         case $cc_basename in
13237           CC*)
13238             # SGI C++
13239             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'
13240
13241             # Archives containing C++ object files must be created using
13242             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13243             # necessary to make sure instantiated templates are included
13244             # in the archive.
13245             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13246             ;;
13247           *)
13248             if test "$GXX" = yes; then
13249               if test "$with_gnu_ld" = no; then
13250                 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'
13251               else
13252                 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'
13253               fi
13254             fi
13255             link_all_deplibs_CXX=yes
13256             ;;
13257         esac
13258         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13259         hardcode_libdir_separator_CXX=:
13260         inherit_rpath_CXX=yes
13261         ;;
13262
13263       linux* | k*bsd*-gnu)
13264         case $cc_basename in
13265           KCC*)
13266             # Kuck and Associates, Inc. (KAI) C++ Compiler
13267
13268             # KCC will only create a shared library if the output file
13269             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13270             # to its proper name (with version) after linking.
13271             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'
13272             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'
13273             # Commands to make compiler produce verbose output that lists
13274             # what "hidden" libraries, object files and flags are used when
13275             # linking a shared library.
13276             #
13277             # There doesn't appear to be a way to prevent this compiler from
13278             # explicitly linking system object files so we need to strip them
13279             # from the output so that they don't get included in the library
13280             # dependencies.
13281             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'
13282
13283             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13284             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13285
13286             # Archives containing C++ object files must be created using
13287             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13288             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13289             ;;
13290           icpc* | ecpc* )
13291             # Intel C++
13292             with_gnu_ld=yes
13293             # version 8.0 and above of icpc choke on multiply defined symbols
13294             # if we add $predep_objects and $postdep_objects, however 7.1 and
13295             # earlier do not add the objects themselves.
13296             case `$CC -V 2>&1` in
13297               *"Version 7."*)
13298                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299                 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'
13300                 ;;
13301               *)  # Version 8.0 or newer
13302                 tmp_idyn=
13303                 case $host_cpu in
13304                   ia64*) tmp_idyn=' -i_dynamic';;
13305                 esac
13306                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13307                 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'
13308                 ;;
13309             esac
13310             archive_cmds_need_lc_CXX=no
13311             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13312             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13313             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13314             ;;
13315           pgCC*)
13316             # Portland Group C++ compiler
13317             case `$CC -V` in
13318             *pgCC\ [1-5]*)
13319               prelink_cmds_CXX='tpldir=Template.dir~
13320                 rm -rf $tpldir~
13321                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13322                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13323               old_archive_cmds_CXX='tpldir=Template.dir~
13324                 rm -rf $tpldir~
13325                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13326                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13327                 $RANLIB $oldlib'
13328               archive_cmds_CXX='tpldir=Template.dir~
13329                 rm -rf $tpldir~
13330                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13331                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13332               archive_expsym_cmds_CXX='tpldir=Template.dir~
13333                 rm -rf $tpldir~
13334                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13335                 $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'
13336               ;;
13337             *) # Version 6 will use weak symbols
13338               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13339               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'
13340               ;;
13341             esac
13342
13343             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13344             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13345             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'
13346             ;;
13347           cxx*)
13348             # Compaq C++
13349             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13350             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'
13351
13352             runpath_var=LD_RUN_PATH
13353             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13354             hardcode_libdir_separator_CXX=:
13355
13356             # Commands to make compiler produce verbose output that lists
13357             # what "hidden" libraries, object files and flags are used when
13358             # linking a shared library.
13359             #
13360             # There doesn't appear to be a way to prevent this compiler from
13361             # explicitly linking system object files so we need to strip them
13362             # from the output so that they don't get included in the library
13363             # dependencies.
13364             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'
13365             ;;
13366           *)
13367             case `$CC -V 2>&1 | sed 5q` in
13368             *Sun\ C*)
13369               # Sun C++ 5.9
13370               no_undefined_flag_CXX=' -zdefs'
13371               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372               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'
13373               hardcode_libdir_flag_spec_CXX='-R$libdir'
13374               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'
13375               compiler_needs_object_CXX=yes
13376
13377               # Not sure whether something based on
13378               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13379               # would be better.
13380               output_verbose_link_cmd='echo'
13381
13382               # Archives containing C++ object files must be created using
13383               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13384               # necessary to make sure instantiated templates are included
13385               # in the archive.
13386               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13387               ;;
13388             esac
13389             ;;
13390         esac
13391         ;;
13392
13393       lynxos*)
13394         # FIXME: insert proper C++ library support
13395         ld_shlibs_CXX=no
13396         ;;
13397
13398       m88k*)
13399         # FIXME: insert proper C++ library support
13400         ld_shlibs_CXX=no
13401         ;;
13402
13403       mvs*)
13404         case $cc_basename in
13405           cxx*)
13406             # FIXME: insert proper C++ library support
13407             ld_shlibs_CXX=no
13408             ;;
13409           *)
13410             # FIXME: insert proper C++ library support
13411             ld_shlibs_CXX=no
13412             ;;
13413         esac
13414         ;;
13415
13416       netbsd*)
13417         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13418           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13419           wlarc=
13420           hardcode_libdir_flag_spec_CXX='-R$libdir'
13421           hardcode_direct_CXX=yes
13422           hardcode_shlibpath_var_CXX=no
13423         fi
13424         # Workaround some broken pre-1.5 toolchains
13425         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13426         ;;
13427
13428       *nto* | *qnx*)
13429         ld_shlibs_CXX=yes
13430         ;;
13431
13432       openbsd2*)
13433         # C++ shared libraries are fairly broken
13434         ld_shlibs_CXX=no
13435         ;;
13436
13437       openbsd*)
13438         hardcode_direct_CXX=yes
13439         hardcode_shlibpath_var_CXX=no
13440         hardcode_direct_absolute_CXX=yes
13441         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13442         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13443         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13444           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13445           export_dynamic_flag_spec_CXX='${wl}-E'
13446           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13447         fi
13448         output_verbose_link_cmd=echo
13449         ;;
13450
13451       osf3* | osf4* | osf5*)
13452         case $cc_basename in
13453           KCC*)
13454             # Kuck and Associates, Inc. (KAI) C++ Compiler
13455
13456             # KCC will only create a shared library if the output file
13457             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13458             # to its proper name (with version) after linking.
13459             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'
13460
13461             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13462             hardcode_libdir_separator_CXX=:
13463
13464             # Archives containing C++ object files must be created using
13465             # the KAI C++ compiler.
13466             case $host in
13467               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13468               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13469             esac
13470             ;;
13471           RCC*)
13472             # Rational C++ 2.4.1
13473             # FIXME: insert proper C++ library support
13474             ld_shlibs_CXX=no
13475             ;;
13476           cxx*)
13477             case $host in
13478               osf3*)
13479                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13480                 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'
13481                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13482                 ;;
13483               *)
13484                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13485                 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'
13486                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13487                   echo "-hidden">> $lib.exp~
13488                   $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~
13489                   $RM $lib.exp'
13490                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13491                 ;;
13492             esac
13493
13494             hardcode_libdir_separator_CXX=:
13495
13496             # Commands to make compiler produce verbose output that lists
13497             # what "hidden" libraries, object files and flags are used when
13498             # linking a shared library.
13499             #
13500             # There doesn't appear to be a way to prevent this compiler from
13501             # explicitly linking system object files so we need to strip them
13502             # from the output so that they don't get included in the library
13503             # dependencies.
13504             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'
13505             ;;
13506           *)
13507             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13508               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13509               case $host in
13510                 osf3*)
13511                   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'
13512                   ;;
13513                 *)
13514                   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'
13515                   ;;
13516               esac
13517
13518               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13519               hardcode_libdir_separator_CXX=:
13520
13521               # Commands to make compiler produce verbose output that lists
13522               # what "hidden" libraries, object files and flags are used when
13523               # linking a shared library.
13524               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13525
13526             else
13527               # FIXME: insert proper C++ library support
13528               ld_shlibs_CXX=no
13529             fi
13530             ;;
13531         esac
13532         ;;
13533
13534       psos*)
13535         # FIXME: insert proper C++ library support
13536         ld_shlibs_CXX=no
13537         ;;
13538
13539       sunos4*)
13540         case $cc_basename in
13541           CC*)
13542             # Sun C++ 4.x
13543             # FIXME: insert proper C++ library support
13544             ld_shlibs_CXX=no
13545             ;;
13546           lcc*)
13547             # Lucid
13548             # FIXME: insert proper C++ library support
13549             ld_shlibs_CXX=no
13550             ;;
13551           *)
13552             # FIXME: insert proper C++ library support
13553             ld_shlibs_CXX=no
13554             ;;
13555         esac
13556         ;;
13557
13558       solaris*)
13559         case $cc_basename in
13560           CC*)
13561             # Sun C++ 4.2, 5.x and Centerline C++
13562             archive_cmds_need_lc_CXX=yes
13563             no_undefined_flag_CXX=' -zdefs'
13564             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13565             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13566               $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'
13567
13568             hardcode_libdir_flag_spec_CXX='-R$libdir'
13569             hardcode_shlibpath_var_CXX=no
13570             case $host_os in
13571               solaris2.[0-5] | solaris2.[0-5].*) ;;
13572               *)
13573                 # The compiler driver will combine and reorder linker options,
13574                 # but understands `-z linker_flag'.
13575                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13576                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13577                 ;;
13578             esac
13579             link_all_deplibs_CXX=yes
13580
13581             output_verbose_link_cmd='echo'
13582
13583             # Archives containing C++ object files must be created using
13584             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13585             # necessary to make sure instantiated templates are included
13586             # in the archive.
13587             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13588             ;;
13589           gcx*)
13590             # Green Hills C++ Compiler
13591             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13592
13593             # The C++ compiler must be used to create the archive.
13594             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13595             ;;
13596           *)
13597             # GNU C++ compiler with Solaris linker
13598             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13599               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13600               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13601                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13602                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13603                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13604
13605                 # Commands to make compiler produce verbose output that lists
13606                 # what "hidden" libraries, object files and flags are used when
13607                 # linking a shared library.
13608                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13609               else
13610                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13611                 # platform.
13612                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13613                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13614                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13615
13616                 # Commands to make compiler produce verbose output that lists
13617                 # what "hidden" libraries, object files and flags are used when
13618                 # linking a shared library.
13619                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13620               fi
13621
13622               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13623               case $host_os in
13624                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13625                 *)
13626                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13627                   ;;
13628               esac
13629             fi
13630             ;;
13631         esac
13632         ;;
13633
13634     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13635       no_undefined_flag_CXX='${wl}-z,text'
13636       archive_cmds_need_lc_CXX=no
13637       hardcode_shlibpath_var_CXX=no
13638       runpath_var='LD_RUN_PATH'
13639
13640       case $cc_basename in
13641         CC*)
13642           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644           ;;
13645         *)
13646           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13647           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13648           ;;
13649       esac
13650       ;;
13651
13652       sysv5* | sco3.2v5* | sco5v6*)
13653         # Note: We can NOT use -z defs as we might desire, because we do not
13654         # link with -lc, and that would cause any symbols used from libc to
13655         # always be unresolved, which means just about no library would
13656         # ever link correctly.  If we're not using GNU ld we use -z text
13657         # though, which does catch some bad symbols but isn't as heavy-handed
13658         # as -z defs.
13659         no_undefined_flag_CXX='${wl}-z,text'
13660         allow_undefined_flag_CXX='${wl}-z,nodefs'
13661         archive_cmds_need_lc_CXX=no
13662         hardcode_shlibpath_var_CXX=no
13663         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13664         hardcode_libdir_separator_CXX=':'
13665         link_all_deplibs_CXX=yes
13666         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13667         runpath_var='LD_RUN_PATH'
13668
13669         case $cc_basename in
13670           CC*)
13671             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673             ;;
13674           *)
13675             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677             ;;
13678         esac
13679       ;;
13680
13681       tandem*)
13682         case $cc_basename in
13683           NCC*)
13684             # NonStop-UX NCC 3.20
13685             # FIXME: insert proper C++ library support
13686             ld_shlibs_CXX=no
13687             ;;
13688           *)
13689             # FIXME: insert proper C++ library support
13690             ld_shlibs_CXX=no
13691             ;;
13692         esac
13693         ;;
13694
13695       vxworks*)
13696         # FIXME: insert proper C++ library support
13697         ld_shlibs_CXX=no
13698         ;;
13699
13700       *)
13701         # FIXME: insert proper C++ library support
13702         ld_shlibs_CXX=no
13703         ;;
13704     esac
13705
13706     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13707 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13708     test "$ld_shlibs_CXX" = no && can_build_shared=no
13709
13710     GCC_CXX="$GXX"
13711     LD_CXX="$LD"
13712
13713     ## CAVEAT EMPTOR:
13714     ## There is no encapsulation within the following macros, do not change
13715     ## the running order or otherwise move them around unless you know exactly
13716     ## what you are doing...
13717     # Dependencies to place before and after the object being linked:
13718 predep_objects_CXX=
13719 postdep_objects_CXX=
13720 predeps_CXX=
13721 postdeps_CXX=
13722 compiler_lib_search_path_CXX=
13723
13724 cat > conftest.$ac_ext <<_LT_EOF
13725 class Foo
13726 {
13727 public:
13728   Foo (void) { a = 0; }
13729 private:
13730   int a;
13731 };
13732 _LT_EOF
13733
13734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13735   (eval $ac_compile) 2>&5
13736   ac_status=$?
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); }; then
13739   # Parse the compiler output and extract the necessary
13740   # objects, libraries and library flags.
13741
13742   # Sentinel used to keep track of whether or not we are before
13743   # the conftest object file.
13744   pre_test_object_deps_done=no
13745
13746   # The `*' in the case matches for architectures that use `case' in
13747   # $output_verbose_cmd can trigger glob expansion during the loop
13748   # eval without this substitution.
13749   output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13750
13751   for p in `eval $output_verbose_link_cmd`; do
13752     case $p in
13753
13754     -L* | -R* | -l*)
13755        # Some compilers place space between "-{L,R}" and the path.
13756        # Remove the space.
13757        if test $p = "-L" ||
13758           test $p = "-R"; then
13759          prev=$p
13760          continue
13761        else
13762          prev=
13763        fi
13764
13765        if test "$pre_test_object_deps_done" = no; then
13766          case $p in
13767          -L* | -R*)
13768            # Internal compiler library paths should come after those
13769            # provided the user.  The postdeps already come after the
13770            # user supplied libs so there is no need to process them.
13771            if test -z "$compiler_lib_search_path_CXX"; then
13772              compiler_lib_search_path_CXX="${prev}${p}"
13773            else
13774              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13775            fi
13776            ;;
13777          # The "-l" case would never come before the object being
13778          # linked, so don't bother handling this case.
13779          esac
13780        else
13781          if test -z "$postdeps_CXX"; then
13782            postdeps_CXX="${prev}${p}"
13783          else
13784            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13785          fi
13786        fi
13787        ;;
13788
13789     *.$objext)
13790        # This assumes that the test object file only shows up
13791        # once in the compiler output.
13792        if test "$p" = "conftest.$objext"; then
13793          pre_test_object_deps_done=yes
13794          continue
13795        fi
13796
13797        if test "$pre_test_object_deps_done" = no; then
13798          if test -z "$predep_objects_CXX"; then
13799            predep_objects_CXX="$p"
13800          else
13801            predep_objects_CXX="$predep_objects_CXX $p"
13802          fi
13803        else
13804          if test -z "$postdep_objects_CXX"; then
13805            postdep_objects_CXX="$p"
13806          else
13807            postdep_objects_CXX="$postdep_objects_CXX $p"
13808          fi
13809        fi
13810        ;;
13811
13812     *) ;; # Ignore the rest.
13813
13814     esac
13815   done
13816
13817   # Clean up.
13818   rm -f a.out a.exe
13819 else
13820   echo "libtool.m4: error: problem compiling CXX test program"
13821 fi
13822
13823 $RM -f confest.$objext
13824
13825 # PORTME: override above test on systems where it is broken
13826 case $host_os in
13827 interix[3-9]*)
13828   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13829   # hack all around it, let's just trust "g++" to DTRT.
13830   predep_objects_CXX=
13831   postdep_objects_CXX=
13832   postdeps_CXX=
13833   ;;
13834
13835 linux*)
13836   case `$CC -V 2>&1 | sed 5q` in
13837   *Sun\ C*)
13838     # Sun C++ 5.9
13839
13840     # The more standards-conforming stlport4 library is
13841     # incompatible with the Cstd library. Avoid specifying
13842     # it if it's in CXXFLAGS. Ignore libCrun as
13843     # -library=stlport4 depends on it.
13844     case " $CXX $CXXFLAGS " in
13845     *" -library=stlport4 "*)
13846       solaris_use_stlport4=yes
13847       ;;
13848     esac
13849
13850     if test "$solaris_use_stlport4" != yes; then
13851       postdeps_CXX='-library=Cstd -library=Crun'
13852     fi
13853     ;;
13854   esac
13855   ;;
13856
13857 solaris*)
13858   case $cc_basename in
13859   CC*)
13860     # The more standards-conforming stlport4 library is
13861     # incompatible with the Cstd library. Avoid specifying
13862     # it if it's in CXXFLAGS. Ignore libCrun as
13863     # -library=stlport4 depends on it.
13864     case " $CXX $CXXFLAGS " in
13865     *" -library=stlport4 "*)
13866       solaris_use_stlport4=yes
13867       ;;
13868     esac
13869
13870     # Adding this requires a known-good setup of shared libraries for
13871     # Sun compiler versions before 5.6, else PIC objects from an old
13872     # archive will be linked into the output, leading to subtle bugs.
13873     if test "$solaris_use_stlport4" != yes; then
13874       postdeps_CXX='-library=Cstd -library=Crun'
13875     fi
13876     ;;
13877   esac
13878   ;;
13879 esac
13880
13881
13882 case " $postdeps_CXX " in
13883 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13884 esac
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911     lt_prog_compiler_wl_CXX=
13912 lt_prog_compiler_pic_CXX=
13913 lt_prog_compiler_static_CXX=
13914
13915 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13916 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13917
13918   # C++ specific cases for pic, static, wl, etc.
13919   if test "$GXX" = yes; then
13920     lt_prog_compiler_wl_CXX='-Wl,'
13921     lt_prog_compiler_static_CXX='-static'
13922
13923     case $host_os in
13924     aix*)
13925       # All AIX code is PIC.
13926       if test "$host_cpu" = ia64; then
13927         # AIX 5 now supports IA64 processor
13928         lt_prog_compiler_static_CXX='-Bstatic'
13929       fi
13930       ;;
13931     amigaos*)
13932       if test "$host_cpu" = m68k; then
13933         # FIXME: we need at least 68020 code to build shared libraries, but
13934         # adding the `-m68020' flag to GCC prevents building anything better,
13935         # like `-m68040'.
13936         lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13937       fi
13938       ;;
13939     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13940       # PIC is the default for these OSes.
13941       ;;
13942     mingw* | cygwin* | os2* | pw32*)
13943       # This hack is so that the source file can tell whether it is being
13944       # built for inclusion in a dll (and should export symbols for example).
13945       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13946       # (--disable-auto-import) libraries
13947       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13948       ;;
13949     darwin* | rhapsody*)
13950       # PIC is the default on this platform
13951       # Common symbols not allowed in MH_DYLIB files
13952       lt_prog_compiler_pic_CXX='-fno-common'
13953       ;;
13954     *djgpp*)
13955       # DJGPP does not support shared libraries at all
13956       lt_prog_compiler_pic_CXX=
13957       ;;
13958     interix[3-9]*)
13959       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13960       # Instead, we relocate shared libraries at runtime.
13961       ;;
13962     sysv4*MP*)
13963       if test -d /usr/nec; then
13964         lt_prog_compiler_pic_CXX=-Kconform_pic
13965       fi
13966       ;;
13967     hpux*)
13968       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13969       # not for PA HP-UX.
13970       case $host_cpu in
13971       hppa*64*|ia64*)
13972         ;;
13973       *)
13974         lt_prog_compiler_pic_CXX='-fPIC'
13975         ;;
13976       esac
13977       ;;
13978     *qnx* | *nto*)
13979       # QNX uses GNU C++, but need to define -shared option too, otherwise
13980       # it will coredump.
13981       lt_prog_compiler_pic_CXX='-fPIC -shared'
13982       ;;
13983     *)
13984       lt_prog_compiler_pic_CXX='-fPIC'
13985       ;;
13986     esac
13987   else
13988     case $host_os in
13989       aix[4-9]*)
13990         # All AIX code is PIC.
13991         if test "$host_cpu" = ia64; then
13992           # AIX 5 now supports IA64 processor
13993           lt_prog_compiler_static_CXX='-Bstatic'
13994         else
13995           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13996         fi
13997         ;;
13998       chorus*)
13999         case $cc_basename in
14000         cxch68*)
14001           # Green Hills C++ Compiler
14002           # _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"
14003           ;;
14004         esac
14005         ;;
14006       darwin*)
14007         # PIC is the default on this platform
14008         # Common symbols not allowed in MH_DYLIB files
14009         case $cc_basename in
14010           xlc*)
14011           lt_prog_compiler_pic_CXX='-qnocommon'
14012           lt_prog_compiler_wl_CXX='-Wl,'
14013           ;;
14014         esac
14015         ;;
14016       dgux*)
14017         case $cc_basename in
14018           ec++*)
14019             lt_prog_compiler_pic_CXX='-KPIC'
14020             ;;
14021           ghcx*)
14022             # Green Hills C++ Compiler
14023             lt_prog_compiler_pic_CXX='-pic'
14024             ;;
14025           *)
14026             ;;
14027         esac
14028         ;;
14029       freebsd* | dragonfly*)
14030         # FreeBSD uses GNU C++
14031         ;;
14032       hpux9* | hpux10* | hpux11*)
14033         case $cc_basename in
14034           CC*)
14035             lt_prog_compiler_wl_CXX='-Wl,'
14036             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14037             if test "$host_cpu" != ia64; then
14038               lt_prog_compiler_pic_CXX='+Z'
14039             fi
14040             ;;
14041           aCC*)
14042             lt_prog_compiler_wl_CXX='-Wl,'
14043             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14044             case $host_cpu in
14045             hppa*64*|ia64*)
14046               # +Z the default
14047               ;;
14048             *)
14049               lt_prog_compiler_pic_CXX='+Z'
14050               ;;
14051             esac
14052             ;;
14053           *)
14054             ;;
14055         esac
14056         ;;
14057       interix*)
14058         # This is c89, which is MS Visual C++ (no shared libs)
14059         # Anyone wants to do a port?
14060         ;;
14061       irix5* | irix6* | nonstopux*)
14062         case $cc_basename in
14063           CC*)
14064             lt_prog_compiler_wl_CXX='-Wl,'
14065             lt_prog_compiler_static_CXX='-non_shared'
14066             # CC pic flag -KPIC is the default.
14067             ;;
14068           *)
14069             ;;
14070         esac
14071         ;;
14072       linux* | k*bsd*-gnu)
14073         case $cc_basename in
14074           KCC*)
14075             # KAI C++ Compiler
14076             lt_prog_compiler_wl_CXX='--backend -Wl,'
14077             lt_prog_compiler_pic_CXX='-fPIC'
14078             ;;
14079           icpc* | ecpc* )
14080             # Intel C++
14081             lt_prog_compiler_wl_CXX='-Wl,'
14082             lt_prog_compiler_pic_CXX='-KPIC'
14083             lt_prog_compiler_static_CXX='-static'
14084             ;;
14085           pgCC*)
14086             # Portland Group C++ compiler
14087             lt_prog_compiler_wl_CXX='-Wl,'
14088             lt_prog_compiler_pic_CXX='-fpic'
14089             lt_prog_compiler_static_CXX='-Bstatic'
14090             ;;
14091           cxx*)
14092             # Compaq C++
14093             # Make sure the PIC flag is empty.  It appears that all Alpha
14094             # Linux and Compaq Tru64 Unix objects are PIC.
14095             lt_prog_compiler_pic_CXX=
14096             lt_prog_compiler_static_CXX='-non_shared'
14097             ;;
14098           *)
14099             case `$CC -V 2>&1 | sed 5q` in
14100             *Sun\ C*)
14101               # Sun C++ 5.9
14102               lt_prog_compiler_pic_CXX='-KPIC'
14103               lt_prog_compiler_static_CXX='-Bstatic'
14104               lt_prog_compiler_wl_CXX='-Qoption ld '
14105               ;;
14106             esac
14107             ;;
14108         esac
14109         ;;
14110       lynxos*)
14111         ;;
14112       m88k*)
14113         ;;
14114       mvs*)
14115         case $cc_basename in
14116           cxx*)
14117             lt_prog_compiler_pic_CXX='-W c,exportall'
14118             ;;
14119           *)
14120             ;;
14121         esac
14122         ;;
14123       netbsd*)
14124         ;;
14125       *qnx* | *nto*)
14126         # QNX uses GNU C++, but need to define -shared option too, otherwise
14127         # it will coredump.
14128         lt_prog_compiler_pic_CXX='-fPIC -shared'
14129         ;;
14130       osf3* | osf4* | osf5*)
14131         case $cc_basename in
14132           KCC*)
14133             lt_prog_compiler_wl_CXX='--backend -Wl,'
14134             ;;
14135           RCC*)
14136             # Rational C++ 2.4.1
14137             lt_prog_compiler_pic_CXX='-pic'
14138             ;;
14139           cxx*)
14140             # Digital/Compaq C++
14141             lt_prog_compiler_wl_CXX='-Wl,'
14142             # Make sure the PIC flag is empty.  It appears that all Alpha
14143             # Linux and Compaq Tru64 Unix objects are PIC.
14144             lt_prog_compiler_pic_CXX=
14145             lt_prog_compiler_static_CXX='-non_shared'
14146             ;;
14147           *)
14148             ;;
14149         esac
14150         ;;
14151       psos*)
14152         ;;
14153       solaris*)
14154         case $cc_basename in
14155           CC*)
14156             # Sun C++ 4.2, 5.x and Centerline C++
14157             lt_prog_compiler_pic_CXX='-KPIC'
14158             lt_prog_compiler_static_CXX='-Bstatic'
14159             lt_prog_compiler_wl_CXX='-Qoption ld '
14160             ;;
14161           gcx*)
14162             # Green Hills C++ Compiler
14163             lt_prog_compiler_pic_CXX='-PIC'
14164             ;;
14165           *)
14166             ;;
14167         esac
14168         ;;
14169       sunos4*)
14170         case $cc_basename in
14171           CC*)
14172             # Sun C++ 4.x
14173             lt_prog_compiler_pic_CXX='-pic'
14174             lt_prog_compiler_static_CXX='-Bstatic'
14175             ;;
14176           lcc*)
14177             # Lucid
14178             lt_prog_compiler_pic_CXX='-pic'
14179             ;;
14180           *)
14181             ;;
14182         esac
14183         ;;
14184       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14185         case $cc_basename in
14186           CC*)
14187             lt_prog_compiler_wl_CXX='-Wl,'
14188             lt_prog_compiler_pic_CXX='-KPIC'
14189             lt_prog_compiler_static_CXX='-Bstatic'
14190             ;;
14191         esac
14192         ;;
14193       tandem*)
14194         case $cc_basename in
14195           NCC*)
14196             # NonStop-UX NCC 3.20
14197             lt_prog_compiler_pic_CXX='-KPIC'
14198             ;;
14199           *)
14200             ;;
14201         esac
14202         ;;
14203       vxworks*)
14204         ;;
14205       *)
14206         lt_prog_compiler_can_build_shared_CXX=no
14207         ;;
14208     esac
14209   fi
14210
14211 case $host_os in
14212   # For platforms which do not support PIC, -DPIC is meaningless:
14213   *djgpp*)
14214     lt_prog_compiler_pic_CXX=
14215     ;;
14216   *)
14217     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14218     ;;
14219 esac
14220 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14221 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14222
14223
14224
14225 #
14226 # Check to make sure the PIC flag actually works.
14227 #
14228 if test -n "$lt_prog_compiler_pic_CXX"; then
14229   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14230 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14231 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14232   echo $ECHO_N "(cached) $ECHO_C" >&6
14233 else
14234   lt_prog_compiler_pic_works_CXX=no
14235    ac_outfile=conftest.$ac_objext
14236    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14237    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14238    # Insert the option either (1) after the last *FLAGS variable, or
14239    # (2) before a word containing "conftest.", or (3) at the end.
14240    # Note that $ac_compile itself does not contain backslashes and begins
14241    # with a dollar sign (not a hyphen), so the echo should work correctly.
14242    # The option is referenced via a variable to avoid confusing sed.
14243    lt_compile=`echo "$ac_compile" | $SED \
14244    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14245    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14246    -e 's:$: $lt_compiler_flag:'`
14247    (eval echo "\"\$as_me:14247: $lt_compile\"" >&5)
14248    (eval "$lt_compile" 2>conftest.err)
14249    ac_status=$?
14250    cat conftest.err >&5
14251    echo "$as_me:14251: \$? = $ac_status" >&5
14252    if (exit $ac_status) && test -s "$ac_outfile"; then
14253      # The compiler can only warn and ignore the option if not recognized
14254      # So say no if there are warnings other than the usual output.
14255      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14256      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14257      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14258        lt_prog_compiler_pic_works_CXX=yes
14259      fi
14260    fi
14261    $RM conftest*
14262
14263 fi
14264 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14265 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14266
14267 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14268     case $lt_prog_compiler_pic_CXX in
14269      "" | " "*) ;;
14270      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14271      esac
14272 else
14273     lt_prog_compiler_pic_CXX=
14274      lt_prog_compiler_can_build_shared_CXX=no
14275 fi
14276
14277 fi
14278
14279
14280
14281 #
14282 # Check to make sure the static flag actually works.
14283 #
14284 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14285 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14286 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14287 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14288   echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290   lt_prog_compiler_static_works_CXX=no
14291    save_LDFLAGS="$LDFLAGS"
14292    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14293    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14294    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14295      # The linker can only warn and ignore the option if not recognized
14296      # So say no if there are warnings
14297      if test -s conftest.err; then
14298        # Append any errors to the config.log.
14299        cat conftest.err 1>&5
14300        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14301        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14302        if diff conftest.exp conftest.er2 >/dev/null; then
14303          lt_prog_compiler_static_works_CXX=yes
14304        fi
14305      else
14306        lt_prog_compiler_static_works_CXX=yes
14307      fi
14308    fi
14309    $RM conftest*
14310    LDFLAGS="$save_LDFLAGS"
14311
14312 fi
14313 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14314 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14315
14316 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14317     :
14318 else
14319     lt_prog_compiler_static_CXX=
14320 fi
14321
14322
14323
14324
14325     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14326 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14327 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14328   echo $ECHO_N "(cached) $ECHO_C" >&6
14329 else
14330   lt_cv_prog_compiler_c_o_CXX=no
14331    $RM -r conftest 2>/dev/null
14332    mkdir conftest
14333    cd conftest
14334    mkdir out
14335    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14336
14337    lt_compiler_flag="-o out/conftest2.$ac_objext"
14338    # Insert the option either (1) after the last *FLAGS variable, or
14339    # (2) before a word containing "conftest.", or (3) at the end.
14340    # Note that $ac_compile itself does not contain backslashes and begins
14341    # with a dollar sign (not a hyphen), so the echo should work correctly.
14342    lt_compile=`echo "$ac_compile" | $SED \
14343    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14344    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14345    -e 's:$: $lt_compiler_flag:'`
14346    (eval echo "\"\$as_me:14346: $lt_compile\"" >&5)
14347    (eval "$lt_compile" 2>out/conftest.err)
14348    ac_status=$?
14349    cat out/conftest.err >&5
14350    echo "$as_me:14350: \$? = $ac_status" >&5
14351    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14352    then
14353      # The compiler can only warn and ignore the option if not recognized
14354      # So say no if there are warnings
14355      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14356      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14357      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14358        lt_cv_prog_compiler_c_o_CXX=yes
14359      fi
14360    fi
14361    chmod u+w . 2>&5
14362    $RM conftest*
14363    # SGI C++ compiler will create directory out/ii_files/ for
14364    # template instantiation
14365    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14366    $RM out/* && rmdir out
14367    cd ..
14368    $RM -r conftest
14369    $RM conftest*
14370
14371 fi
14372 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14373 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14374
14375
14376
14377     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14378 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14380   echo $ECHO_N "(cached) $ECHO_C" >&6
14381 else
14382   lt_cv_prog_compiler_c_o_CXX=no
14383    $RM -r conftest 2>/dev/null
14384    mkdir conftest
14385    cd conftest
14386    mkdir out
14387    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14388
14389    lt_compiler_flag="-o out/conftest2.$ac_objext"
14390    # Insert the option either (1) after the last *FLAGS variable, or
14391    # (2) before a word containing "conftest.", or (3) at the end.
14392    # Note that $ac_compile itself does not contain backslashes and begins
14393    # with a dollar sign (not a hyphen), so the echo should work correctly.
14394    lt_compile=`echo "$ac_compile" | $SED \
14395    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14396    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14397    -e 's:$: $lt_compiler_flag:'`
14398    (eval echo "\"\$as_me:14398: $lt_compile\"" >&5)
14399    (eval "$lt_compile" 2>out/conftest.err)
14400    ac_status=$?
14401    cat out/conftest.err >&5
14402    echo "$as_me:14402: \$? = $ac_status" >&5
14403    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14404    then
14405      # The compiler can only warn and ignore the option if not recognized
14406      # So say no if there are warnings
14407      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14408      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14409      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14410        lt_cv_prog_compiler_c_o_CXX=yes
14411      fi
14412    fi
14413    chmod u+w . 2>&5
14414    $RM conftest*
14415    # SGI C++ compiler will create directory out/ii_files/ for
14416    # template instantiation
14417    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14418    $RM out/* && rmdir out
14419    cd ..
14420    $RM -r conftest
14421    $RM conftest*
14422
14423 fi
14424 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14425 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14426
14427
14428
14429
14430 hard_links="nottested"
14431 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14432   # do not overwrite the value of need_locks provided by the user
14433   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14435   hard_links=yes
14436   $RM conftest*
14437   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14438   touch conftest.a
14439   ln conftest.a conftest.b 2>&5 || hard_links=no
14440   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14441   echo "$as_me:$LINENO: result: $hard_links" >&5
14442 echo "${ECHO_T}$hard_links" >&6
14443   if test "$hard_links" = no; then
14444     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14446     need_locks=warn
14447   fi
14448 else
14449   need_locks=no
14450 fi
14451
14452
14453
14454     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14455 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14456
14457   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14458   case $host_os in
14459   aix[4-9]*)
14460     # If we're using GNU nm, then we don't want the "-C" option.
14461     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14462     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14463       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'
14464     else
14465       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'
14466     fi
14467     ;;
14468   pw32*)
14469     export_symbols_cmds_CXX="$ltdll_cmds"
14470   ;;
14471   cygwin* | mingw*)
14472     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'
14473   ;;
14474   *)
14475     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476   ;;
14477   esac
14478
14479 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14480 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14481 test "$ld_shlibs_CXX" = no && can_build_shared=no
14482
14483 with_gnu_ld_CXX=$with_gnu_ld
14484
14485
14486
14487
14488
14489
14490 #
14491 # Do we need to explicitly link libc?
14492 #
14493 case "x$archive_cmds_need_lc_CXX" in
14494 x|xyes)
14495   # Assume -lc should be added
14496   archive_cmds_need_lc_CXX=yes
14497
14498   if test "$enable_shared" = yes && test "$GCC" = yes; then
14499     case $archive_cmds_CXX in
14500     *'~'*)
14501       # FIXME: we may have to deal with multi-command sequences.
14502       ;;
14503     '$CC '*)
14504       # Test whether the compiler implicitly links with -lc since on some
14505       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14506       # to ld, don't add -lc before -lgcc.
14507       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14508 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14509       $RM conftest*
14510       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14511
14512       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14513   (eval $ac_compile) 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); } 2>conftest.err; then
14517         soname=conftest
14518         lib=conftest
14519         libobjs=conftest.$ac_objext
14520         deplibs=
14521         wl=$lt_prog_compiler_wl_CXX
14522         pic_flag=$lt_prog_compiler_pic_CXX
14523         compiler_flags=-v
14524         linker_flags=-v
14525         verstring=
14526         output_objdir=.
14527         libname=conftest
14528         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14529         allow_undefined_flag_CXX=
14530         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14531   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14532   ac_status=$?
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); }
14535         then
14536           archive_cmds_need_lc_CXX=no
14537         else
14538           archive_cmds_need_lc_CXX=yes
14539         fi
14540         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14541       else
14542         cat conftest.err 1>&5
14543       fi
14544       $RM conftest*
14545       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14546 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14547       ;;
14548     esac
14549   fi
14550   ;;
14551 esac
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14617 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14618 withGCC=$GXX
14619 library_names_spec=
14620 libname_spec='lib$name'
14621 soname_spec=
14622 shrext_cmds=".so"
14623 postinstall_cmds=
14624 postuninstall_cmds=
14625 finish_cmds=
14626 finish_eval=
14627 shlibpath_var=
14628 shlibpath_overrides_runpath=unknown
14629 version_type=none
14630 dynamic_linker="$host_os ld.so"
14631 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14632 need_lib_prefix=unknown
14633 hardcode_into_libs=no
14634
14635 # when you set need_version to no, make sure it does not cause -set_version
14636 # flags to be left without arguments
14637 need_version=unknown
14638
14639 case $host_os in
14640 aix3*)
14641   version_type=linux
14642   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14643   shlibpath_var=LIBPATH
14644
14645   # AIX 3 has no versioning support, so we append a major version to the name.
14646   soname_spec='${libname}${release}${shared_ext}$major'
14647   ;;
14648
14649 aix[4-9]*)
14650   version_type=linux
14651   need_lib_prefix=no
14652   need_version=no
14653   hardcode_into_libs=yes
14654   if test "$host_cpu" = ia64; then
14655     # AIX 5 supports IA64
14656     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14657     shlibpath_var=LD_LIBRARY_PATH
14658   else
14659     # With GCC up to 2.95.x, collect2 would create an import file
14660     # for dependence libraries.  The import file would start with
14661     # the line `#! .'.  This would cause the generated library to
14662     # depend on `.', always an invalid library.  This was fixed in
14663     # development snapshots of GCC prior to 3.0.
14664     case $host_os in
14665       aix4 | aix4.[01] | aix4.[01].*)
14666       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14667            echo ' yes '
14668            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14669         :
14670       else
14671         can_build_shared=no
14672       fi
14673       ;;
14674     esac
14675     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14676     # soname into executable. Probably we can add versioning support to
14677     # collect2, so additional links can be useful in future.
14678     if test "$aix_use_runtimelinking" = yes; then
14679       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14680       # instead of lib<name>.a to let people know that these are not
14681       # typical AIX shared libraries.
14682       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14683     else
14684       # We preserve .a as extension for shared libraries through AIX4.2
14685       # and later when we are not doing run time linking.
14686       library_names_spec='${libname}${release}.a $libname.a'
14687       soname_spec='${libname}${release}${shared_ext}$major'
14688     fi
14689     shlibpath_var=LIBPATH
14690   fi
14691   ;;
14692
14693 amigaos*)
14694   if test "$host_cpu" = m68k; then
14695     library_names_spec='$libname.ixlibrary $libname.a'
14696     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14697     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'
14698   else
14699     dynamic_linker=no
14700   fi
14701   ;;
14702
14703 beos*)
14704   library_names_spec='${libname}${shared_ext}'
14705   dynamic_linker="$host_os ld.so"
14706   shlibpath_var=LIBRARY_PATH
14707   ;;
14708
14709 bsdi[45]*)
14710   version_type=linux
14711   need_version=no
14712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713   soname_spec='${libname}${release}${shared_ext}$major'
14714   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14715   shlibpath_var=LD_LIBRARY_PATH
14716   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14717   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14718   # the default ld.so.conf also contains /usr/contrib/lib and
14719   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14720   # libtool to hard-code these into programs
14721   ;;
14722
14723 cygwin* | mingw* | pw32*)
14724   version_type=windows
14725   shrext_cmds=".dll"
14726   need_version=no
14727   need_lib_prefix=no
14728
14729   case $withGCC,$host_os in
14730   yes,cygwin* | yes,mingw* | yes,pw32*)
14731     library_names_spec='$libname.dll.a'
14732     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14733     postinstall_cmds='base_file=`basename \${file}`~
14734       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14735       dldir=$destdir/`dirname \$dlpath`~
14736       test -d \$dldir || mkdir -p \$dldir~
14737       $install_prog $dir/$dlname \$dldir/$dlname~
14738       chmod a+x \$dldir/$dlname~
14739       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14740         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14741       fi'
14742     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14743       dlpath=$dir/\$dldll~
14744        $RM \$dlpath'
14745     shlibpath_overrides_runpath=yes
14746
14747     case $host_os in
14748     cygwin*)
14749       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14750       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14751       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14752       ;;
14753     mingw*)
14754       # MinGW DLLs use traditional 'lib' prefix
14755       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14756       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14757       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14758         # It is most probably a Windows format PATH printed by
14759         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14760         # path with ; separators, and with drive letters. We can handle the
14761         # drive letters (cygwin fileutils understands them), so leave them,
14762         # especially as we might pass files found there to a mingw objdump,
14763         # which wouldn't understand a cygwinified path. Ahh.
14764         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14765       else
14766         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14767       fi
14768       ;;
14769     pw32*)
14770       # pw32 DLLs use 'pw' prefix rather than 'lib'
14771       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14772       ;;
14773     esac
14774     ;;
14775
14776   *)
14777     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14778     ;;
14779   esac
14780   dynamic_linker='Win32 ld.exe'
14781   # FIXME: first we should search . and the directory the executable is in
14782   shlibpath_var=PATH
14783   ;;
14784
14785 darwin* | rhapsody*)
14786   dynamic_linker="$host_os dyld"
14787   version_type=darwin
14788   need_lib_prefix=no
14789   need_version=no
14790   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14791   soname_spec='${libname}${release}${major}$shared_ext'
14792   shlibpath_overrides_runpath=yes
14793   shlibpath_var=DYLD_LIBRARY_PATH
14794   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14795
14796   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14797   ;;
14798
14799 dgux*)
14800   version_type=linux
14801   need_lib_prefix=no
14802   need_version=no
14803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14804   soname_spec='${libname}${release}${shared_ext}$major'
14805   shlibpath_var=LD_LIBRARY_PATH
14806   ;;
14807
14808 freebsd1*)
14809   dynamic_linker=no
14810   ;;
14811
14812 freebsd* | dragonfly*)
14813   # DragonFly does not have aout.  When/if they implement a new
14814   # versioning mechanism, adjust this.
14815   if test -x /usr/bin/objformat; then
14816     objformat=`/usr/bin/objformat`
14817   else
14818     case $host_os in
14819     freebsd[123]*) objformat=aout ;;
14820     *) objformat=elf ;;
14821     esac
14822   fi
14823   version_type=freebsd-$objformat
14824   case $version_type in
14825     freebsd-elf*)
14826       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14827       need_version=no
14828       need_lib_prefix=no
14829       ;;
14830     freebsd-*)
14831       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14832       need_version=yes
14833       ;;
14834   esac
14835   shlibpath_var=LD_LIBRARY_PATH
14836   case $host_os in
14837   freebsd2*)
14838     shlibpath_overrides_runpath=yes
14839     ;;
14840   freebsd3.[01]* | freebsdelf3.[01]*)
14841     shlibpath_overrides_runpath=yes
14842     hardcode_into_libs=yes
14843     ;;
14844   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14845   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14846     shlibpath_overrides_runpath=no
14847     hardcode_into_libs=yes
14848     ;;
14849   *) # from 4.6 on, and DragonFly
14850     shlibpath_overrides_runpath=yes
14851     hardcode_into_libs=yes
14852     ;;
14853   esac
14854   ;;
14855
14856 gnu*)
14857   version_type=linux
14858   need_lib_prefix=no
14859   need_version=no
14860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14861   soname_spec='${libname}${release}${shared_ext}$major'
14862   shlibpath_var=LD_LIBRARY_PATH
14863   hardcode_into_libs=yes
14864   ;;
14865
14866 hpux9* | hpux10* | hpux11*)
14867   # Give a soname corresponding to the major version so that dld.sl refuses to
14868   # link against other versions.
14869   version_type=sunos
14870   need_lib_prefix=no
14871   need_version=no
14872   case $host_cpu in
14873   ia64*)
14874     shrext_cmds='.so'
14875     hardcode_into_libs=yes
14876     dynamic_linker="$host_os dld.so"
14877     shlibpath_var=LD_LIBRARY_PATH
14878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880     soname_spec='${libname}${release}${shared_ext}$major'
14881     if test "X$HPUX_IA64_MODE" = X32; then
14882       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14883     else
14884       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14885     fi
14886     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14887     ;;
14888   hppa*64*)
14889     shrext_cmds='.sl'
14890     hardcode_into_libs=yes
14891     dynamic_linker="$host_os dld.sl"
14892     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895     soname_spec='${libname}${release}${shared_ext}$major'
14896     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14898     ;;
14899   *)
14900     shrext_cmds='.sl'
14901     dynamic_linker="$host_os dld.sl"
14902     shlibpath_var=SHLIB_PATH
14903     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905     soname_spec='${libname}${release}${shared_ext}$major'
14906     ;;
14907   esac
14908   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14909   postinstall_cmds='chmod 555 $lib'
14910   ;;
14911
14912 interix[3-9]*)
14913   version_type=linux
14914   need_lib_prefix=no
14915   need_version=no
14916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14917   soname_spec='${libname}${release}${shared_ext}$major'
14918   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14919   shlibpath_var=LD_LIBRARY_PATH
14920   shlibpath_overrides_runpath=no
14921   hardcode_into_libs=yes
14922   ;;
14923
14924 irix5* | irix6* | nonstopux*)
14925   case $host_os in
14926     nonstopux*) version_type=nonstopux ;;
14927     *)
14928         if test "$lt_cv_prog_gnu_ld" = yes; then
14929                 version_type=linux
14930         else
14931                 version_type=irix
14932         fi ;;
14933   esac
14934   need_lib_prefix=no
14935   need_version=no
14936   soname_spec='${libname}${release}${shared_ext}$major'
14937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14938   case $host_os in
14939   irix5* | nonstopux*)
14940     libsuff= shlibsuff=
14941     ;;
14942   *)
14943     case $LD in # libtool.m4 will add one of these switches to LD
14944     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14945       libsuff= shlibsuff= libmagic=32-bit;;
14946     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14947       libsuff=32 shlibsuff=N32 libmagic=N32;;
14948     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14949       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14950     *) libsuff= shlibsuff= libmagic=never-match;;
14951     esac
14952     ;;
14953   esac
14954   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14955   shlibpath_overrides_runpath=no
14956   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14957   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14958   hardcode_into_libs=yes
14959   ;;
14960
14961 # No shared lib support for Linux oldld, aout, or coff.
14962 linux*oldld* | linux*aout* | linux*coff*)
14963   dynamic_linker=no
14964   ;;
14965
14966 # This must be Linux ELF.
14967 linux* | k*bsd*-gnu)
14968   version_type=linux
14969   need_lib_prefix=no
14970   need_version=no
14971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14972   soname_spec='${libname}${release}${shared_ext}$major'
14973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   shlibpath_overrides_runpath=no
14976   # Some binutils ld are patched to set DT_RUNPATH
14977   save_LDFLAGS=$LDFLAGS
14978   save_libdir=$libdir
14979   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14980        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14981   if test x$gcc_no_link = xyes; then
14982   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14983 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14984    { (exit 1); exit 1; }; }
14985 fi
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h.  */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h.  */
14992
14993 int
14994 main ()
14995 {
14996
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15003   (eval $ac_link) 2>conftest.er1
15004   ac_status=$?
15005   grep -v '^ *+' conftest.er1 >conftest.err
15006   rm -f conftest.er1
15007   cat conftest.err >&5
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); } &&
15010          { ac_try='test -z "$ac_cxx_werror_flag"
15011                          || test ! -s conftest.err'
15012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013   (eval $ac_try) 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; } &&
15017          { ac_try='test -s conftest$ac_exeext'
15018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019   (eval $ac_try) 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; }; then
15023   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
15024   shlibpath_overrides_runpath=yes
15025 fi
15026
15027 else
15028   echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15030
15031 fi
15032 rm -f conftest.err conftest.$ac_objext \
15033       conftest$ac_exeext conftest.$ac_ext
15034   LDFLAGS=$save_LDFLAGS
15035   libdir=$save_libdir
15036
15037   # This implies no fast_install, which is unacceptable.
15038   # Some rework will be needed to allow for fast_install
15039   # before this can be enabled.
15040   hardcode_into_libs=yes
15041
15042   # Append ld.so.conf contents to the search path
15043   if test -f /etc/ld.so.conf; then
15044     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' ' '`
15045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15046   fi
15047
15048   # We used to test for /lib/ld.so.1 and disable shared libraries on
15049   # powerpc, because MkLinux only supported shared libraries with the
15050   # GNU dynamic linker.  Since this was broken with cross compilers,
15051   # most powerpc-linux boxes support dynamic linking these days and
15052   # people can always --disable-shared, the test was removed, and we
15053   # assume the GNU/Linux dynamic linker is in use.
15054   dynamic_linker='GNU/Linux ld.so'
15055   ;;
15056
15057 netbsd*)
15058   version_type=sunos
15059   need_lib_prefix=no
15060   need_version=no
15061   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15063     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15064     dynamic_linker='NetBSD (a.out) ld.so'
15065   else
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     dynamic_linker='NetBSD ld.elf_so'
15069   fi
15070   shlibpath_var=LD_LIBRARY_PATH
15071   shlibpath_overrides_runpath=yes
15072   hardcode_into_libs=yes
15073   ;;
15074
15075 newsos6)
15076   version_type=linux
15077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078   shlibpath_var=LD_LIBRARY_PATH
15079   shlibpath_overrides_runpath=yes
15080   ;;
15081
15082 *nto* | *qnx*)
15083   version_type=qnx
15084   need_lib_prefix=no
15085   need_version=no
15086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087   soname_spec='${libname}${release}${shared_ext}$major'
15088   shlibpath_var=LD_LIBRARY_PATH
15089   shlibpath_overrides_runpath=no
15090   hardcode_into_libs=yes
15091   dynamic_linker='ldqnx.so'
15092   ;;
15093
15094 openbsd*)
15095   version_type=sunos
15096   sys_lib_dlsearch_path_spec="/usr/lib"
15097   need_lib_prefix=no
15098   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15099   case $host_os in
15100     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15101     *)                          need_version=no  ;;
15102   esac
15103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15105   shlibpath_var=LD_LIBRARY_PATH
15106   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15107     case $host_os in
15108       openbsd2.[89] | openbsd2.[89].*)
15109         shlibpath_overrides_runpath=no
15110         ;;
15111       *)
15112         shlibpath_overrides_runpath=yes
15113         ;;
15114       esac
15115   else
15116     shlibpath_overrides_runpath=yes
15117   fi
15118   ;;
15119
15120 os2*)
15121   libname_spec='$name'
15122   shrext_cmds=".dll"
15123   need_lib_prefix=no
15124   library_names_spec='$libname${shared_ext} $libname.a'
15125   dynamic_linker='OS/2 ld.exe'
15126   shlibpath_var=LIBPATH
15127   ;;
15128
15129 osf3* | osf4* | osf5*)
15130   version_type=osf
15131   need_lib_prefix=no
15132   need_version=no
15133   soname_spec='${libname}${release}${shared_ext}$major'
15134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135   shlibpath_var=LD_LIBRARY_PATH
15136   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15137   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15138   ;;
15139
15140 rdos*)
15141   dynamic_linker=no
15142   ;;
15143
15144 solaris*)
15145   version_type=linux
15146   need_lib_prefix=no
15147   need_version=no
15148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15149   soname_spec='${libname}${release}${shared_ext}$major'
15150   shlibpath_var=LD_LIBRARY_PATH
15151   shlibpath_overrides_runpath=yes
15152   hardcode_into_libs=yes
15153   # ldd complains unless libraries are executable
15154   postinstall_cmds='chmod +x $lib'
15155   ;;
15156
15157 sunos4*)
15158   version_type=sunos
15159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15161   shlibpath_var=LD_LIBRARY_PATH
15162   shlibpath_overrides_runpath=yes
15163   if test "$with_gnu_ld" = yes; then
15164     need_lib_prefix=no
15165   fi
15166   need_version=yes
15167   ;;
15168
15169 sysv4 | sysv4.3*)
15170   version_type=linux
15171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15172   soname_spec='${libname}${release}${shared_ext}$major'
15173   shlibpath_var=LD_LIBRARY_PATH
15174   case $host_vendor in
15175     sni)
15176       shlibpath_overrides_runpath=no
15177       need_lib_prefix=no
15178       runpath_var=LD_RUN_PATH
15179       ;;
15180     siemens)
15181       need_lib_prefix=no
15182       ;;
15183     motorola)
15184       need_lib_prefix=no
15185       need_version=no
15186       shlibpath_overrides_runpath=no
15187       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15188       ;;
15189   esac
15190   ;;
15191
15192 sysv4*MP*)
15193   if test -d /usr/nec ;then
15194     version_type=linux
15195     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15196     soname_spec='$libname${shared_ext}.$major'
15197     shlibpath_var=LD_LIBRARY_PATH
15198   fi
15199   ;;
15200
15201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15202   version_type=freebsd-elf
15203   need_lib_prefix=no
15204   need_version=no
15205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15206   soname_spec='${libname}${release}${shared_ext}$major'
15207   shlibpath_var=LD_LIBRARY_PATH
15208   shlibpath_overrides_runpath=yes
15209   hardcode_into_libs=yes
15210   if test "$with_gnu_ld" = yes; then
15211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15212   else
15213     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15214     case $host_os in
15215       sco3.2v5*)
15216         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15217         ;;
15218     esac
15219   fi
15220   sys_lib_dlsearch_path_spec='/usr/lib'
15221   ;;
15222
15223 tpf*)
15224   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15225   version_type=linux
15226   need_lib_prefix=no
15227   need_version=no
15228   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229   shlibpath_var=LD_LIBRARY_PATH
15230   shlibpath_overrides_runpath=no
15231   hardcode_into_libs=yes
15232   ;;
15233
15234 uts4*)
15235   version_type=linux
15236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237   soname_spec='${libname}${release}${shared_ext}$major'
15238   shlibpath_var=LD_LIBRARY_PATH
15239   ;;
15240
15241 *)
15242   dynamic_linker=no
15243   ;;
15244 esac
15245 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15246 echo "${ECHO_T}$dynamic_linker" >&6
15247 test "$dynamic_linker" = no && can_build_shared=no
15248
15249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15250 if test "$GCC" = yes; then
15251   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15252 fi
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15291 hardcode_action_CXX=
15292 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15293    test -n "$runpath_var_CXX" ||
15294    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15295
15296   # We can hardcode non-existent directories.
15297   if test "$hardcode_direct_CXX" != no &&
15298      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15299      # have to relink, otherwise we might link with an installed library
15300      # when we should be linking with a yet-to-be-installed one
15301      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15302      test "$hardcode_minus_L_CXX" != no; then
15303     # Linking always hardcodes the temporary library directory.
15304     hardcode_action_CXX=relink
15305   else
15306     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15307     hardcode_action_CXX=immediate
15308   fi
15309 else
15310   # We cannot hardcode anything, or else we can only hardcode existing
15311   # directories.
15312   hardcode_action_CXX=unsupported
15313 fi
15314 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15315 echo "${ECHO_T}$hardcode_action_CXX" >&6
15316
15317 if test "$hardcode_action_CXX" = relink ||
15318    test "$inherit_rpath_CXX" = yes; then
15319   # Fast installation is not supported
15320   enable_fast_install=no
15321 elif test "$shlibpath_overrides_runpath" = yes ||
15322      test "$enable_shared" = no; then
15323   # Fast installation is not necessary
15324   enable_fast_install=needless
15325 fi
15326
15327
15328
15329
15330
15331
15332
15333   fi # test -n "$compiler"
15334
15335   CC=$lt_save_CC
15336   LDCXX=$LD
15337   LD=$lt_save_LD
15338   GCC=$lt_save_GCC
15339   with_gnu_ld=$lt_save_with_gnu_ld
15340   lt_cv_path_LDCXX=$lt_cv_path_LD
15341   lt_cv_path_LD=$lt_save_path_LD
15342   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15343   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15344 fi # test "$_lt_caught_CXX_error" != yes
15345
15346 ac_ext=c
15347 ac_cpp='$CPP $CPPFLAGS'
15348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364                   ac_config_commands="$ac_config_commands libtool"
15365
15366
15367
15368
15369 # Only expand once:
15370
15371
15372
15373 for ac_prog in gcj
15374 do
15375   # Extract the first word of "$ac_prog", so it can be a program name with args.
15376 set dummy $ac_prog; ac_word=$2
15377 echo "$as_me:$LINENO: checking for $ac_word" >&5
15378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15379 if test "${ac_cv_prog_GCJ+set}" = set; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   if test -n "$GCJ"; then
15383   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15384 else
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15387 do
15388   IFS=$as_save_IFS
15389   test -z "$as_dir" && as_dir=.
15390   for ac_exec_ext in '' $ac_executable_extensions; do
15391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392     ac_cv_prog_GCJ="$ac_prog"
15393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15394     break 2
15395   fi
15396 done
15397 done
15398
15399 fi
15400 fi
15401 GCJ=$ac_cv_prog_GCJ
15402 if test -n "$GCJ"; then
15403   echo "$as_me:$LINENO: result: $GCJ" >&5
15404 echo "${ECHO_T}$GCJ" >&6
15405 else
15406   echo "$as_me:$LINENO: result: no" >&5
15407 echo "${ECHO_T}no" >&6
15408 fi
15409
15410   test -n "$GCJ" && break
15411 done
15412 test -n "$GCJ" || GCJ="gcj"
15413
15414 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15415 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15416    { (exit 1); exit 1; }; }
15417 if test "x${GCJFLAGS-unset}" = xunset; then
15418    GCJFLAGS="-g -O2"
15419 fi
15420
15421
15422 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15423
15424 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15426 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15427   echo $ECHO_N "(cached) $ECHO_C" >&6
15428 else
15429   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15430   # We make a subdir and do the tests there.  Otherwise we can end up
15431   # making bogus files that we don't know about and never remove.  For
15432   # instance it was reported that on HP-UX the gcc test will end up
15433   # making a dummy file named `D' -- because `-MD' means `put the output
15434   # in D'.
15435   mkdir conftest.dir
15436   # Copy depcomp to subdir because otherwise we won't find it if we're
15437   # using a relative directory.
15438   cp "$am_depcomp" conftest.dir
15439   cd conftest.dir
15440   # We will build objects and dependencies in a subdirectory because
15441   # it helps to detect inapplicable dependency modes.  For instance
15442   # both Tru64's cc and ICC support -MD to output dependencies as a
15443   # side effect of compilation, but ICC will put the dependencies in
15444   # the current directory while Tru64 will put them in the object
15445   # directory.
15446   mkdir sub
15447
15448   am_cv_GCJ_dependencies_compiler_type=none
15449   if test "$am_compiler_list" = ""; then
15450      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15451   fi
15452   for depmode in $am_compiler_list; do
15453     # Setup a source with many dependencies, because some compilers
15454     # like to wrap large dependency lists on column 80 (with \), and
15455     # we should not choose a depcomp mode which is confused by this.
15456     #
15457     # We need to recreate these files for each test, as the compiler may
15458     # overwrite some of them when testing with obscure command lines.
15459     # This happens at least with the AIX C compiler.
15460     : > sub/conftest.c
15461     for i in 1 2 3 4 5 6; do
15462       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15463       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15464       # Solaris 8's {/usr,}/bin/sh.
15465       touch sub/conftst$i.h
15466     done
15467     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15468
15469     case $depmode in
15470     nosideeffect)
15471       # after this tag, mechanisms are not by side-effect, so they'll
15472       # only be used when explicitly requested
15473       if test "x$enable_dependency_tracking" = xyes; then
15474         continue
15475       else
15476         break
15477       fi
15478       ;;
15479     none) break ;;
15480     esac
15481     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15482     # mode.  It turns out that the SunPro C++ compiler does not properly
15483     # handle `-M -o', and we need to detect this.
15484     if depmode=$depmode \
15485        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15486        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15487        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15488          >/dev/null 2>conftest.err &&
15489        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15490        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15491        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15492       # icc doesn't choke on unknown options, it will just issue warnings
15493       # or remarks (even with -Werror).  So we grep stderr for any message
15494       # that says an option was ignored or not supported.
15495       # When given -MP, icc 7.0 and 7.1 complain thusly:
15496       #   icc: Command line warning: ignoring option '-M'; no argument required
15497       # The diagnosis changed in icc 8.0:
15498       #   icc: Command line remark: option '-MP' not supported
15499       if (grep 'ignoring option' conftest.err ||
15500           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15501         am_cv_GCJ_dependencies_compiler_type=$depmode
15502         break
15503       fi
15504     fi
15505   done
15506
15507   cd ..
15508   rm -rf conftest.dir
15509 else
15510   am_cv_GCJ_dependencies_compiler_type=none
15511 fi
15512
15513 fi
15514 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15515 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15516 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15517
15518
15519
15520 if
15521   test "x$enable_dependency_tracking" != xno \
15522   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15523   am__fastdepGCJ_TRUE=
15524   am__fastdepGCJ_FALSE='#'
15525 else
15526   am__fastdepGCJ_TRUE='#'
15527   am__fastdepGCJ_FALSE=
15528 fi
15529
15530
15531
15532 for ac_prog in gcj
15533 do
15534   # Extract the first word of "$ac_prog", so it can be a program name with args.
15535 set dummy $ac_prog; ac_word=$2
15536 echo "$as_me:$LINENO: checking for $ac_word" >&5
15537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15538 if test "${ac_cv_prog_GCJ+set}" = set; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   if test -n "$GCJ"; then
15542   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15543 else
15544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15545 for as_dir in $PATH
15546 do
15547   IFS=$as_save_IFS
15548   test -z "$as_dir" && as_dir=.
15549   for ac_exec_ext in '' $ac_executable_extensions; do
15550   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15551     ac_cv_prog_GCJ="$ac_prog"
15552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15553     break 2
15554   fi
15555 done
15556 done
15557
15558 fi
15559 fi
15560 GCJ=$ac_cv_prog_GCJ
15561 if test -n "$GCJ"; then
15562   echo "$as_me:$LINENO: result: $GCJ" >&5
15563 echo "${ECHO_T}$GCJ" >&6
15564 else
15565   echo "$as_me:$LINENO: result: no" >&5
15566 echo "${ECHO_T}no" >&6
15567 fi
15568
15569   test -n "$GCJ" && break
15570 done
15571 test -n "$GCJ" || GCJ="gcj"
15572
15573 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15574 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15575    { (exit 1); exit 1; }; }
15576 if test "x${GCJFLAGS-unset}" = xunset; then
15577    GCJFLAGS="-g -O2"
15578 fi
15579
15580
15581 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
15582
15583 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15584 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15585 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15589   # We make a subdir and do the tests there.  Otherwise we can end up
15590   # making bogus files that we don't know about and never remove.  For
15591   # instance it was reported that on HP-UX the gcc test will end up
15592   # making a dummy file named `D' -- because `-MD' means `put the output
15593   # in D'.
15594   mkdir conftest.dir
15595   # Copy depcomp to subdir because otherwise we won't find it if we're
15596   # using a relative directory.
15597   cp "$am_depcomp" conftest.dir
15598   cd conftest.dir
15599   # We will build objects and dependencies in a subdirectory because
15600   # it helps to detect inapplicable dependency modes.  For instance
15601   # both Tru64's cc and ICC support -MD to output dependencies as a
15602   # side effect of compilation, but ICC will put the dependencies in
15603   # the current directory while Tru64 will put them in the object
15604   # directory.
15605   mkdir sub
15606
15607   am_cv_GCJ_dependencies_compiler_type=none
15608   if test "$am_compiler_list" = ""; then
15609      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15610   fi
15611   for depmode in $am_compiler_list; do
15612     # Setup a source with many dependencies, because some compilers
15613     # like to wrap large dependency lists on column 80 (with \), and
15614     # we should not choose a depcomp mode which is confused by this.
15615     #
15616     # We need to recreate these files for each test, as the compiler may
15617     # overwrite some of them when testing with obscure command lines.
15618     # This happens at least with the AIX C compiler.
15619     : > sub/conftest.c
15620     for i in 1 2 3 4 5 6; do
15621       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15622       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15623       # Solaris 8's {/usr,}/bin/sh.
15624       touch sub/conftst$i.h
15625     done
15626     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15627
15628     case $depmode in
15629     nosideeffect)
15630       # after this tag, mechanisms are not by side-effect, so they'll
15631       # only be used when explicitly requested
15632       if test "x$enable_dependency_tracking" = xyes; then
15633         continue
15634       else
15635         break
15636       fi
15637       ;;
15638     none) break ;;
15639     esac
15640     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15641     # mode.  It turns out that the SunPro C++ compiler does not properly
15642     # handle `-M -o', and we need to detect this.
15643     if depmode=$depmode \
15644        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15645        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15646        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15647          >/dev/null 2>conftest.err &&
15648        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15649        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15650        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15651       # icc doesn't choke on unknown options, it will just issue warnings
15652       # or remarks (even with -Werror).  So we grep stderr for any message
15653       # that says an option was ignored or not supported.
15654       # When given -MP, icc 7.0 and 7.1 complain thusly:
15655       #   icc: Command line warning: ignoring option '-M'; no argument required
15656       # The diagnosis changed in icc 8.0:
15657       #   icc: Command line remark: option '-MP' not supported
15658       if (grep 'ignoring option' conftest.err ||
15659           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15660         am_cv_GCJ_dependencies_compiler_type=$depmode
15661         break
15662       fi
15663     fi
15664   done
15665
15666   cd ..
15667   rm -rf conftest.dir
15668 else
15669   am_cv_GCJ_dependencies_compiler_type=none
15670 fi
15671
15672 fi
15673 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15674 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15675 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15676
15677
15678
15679 if
15680   test "x$enable_dependency_tracking" != xno \
15681   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15682   am__fastdepGCJ_TRUE=
15683   am__fastdepGCJ_FALSE='#'
15684 else
15685   am__fastdepGCJ_TRUE='#'
15686   am__fastdepGCJ_FALSE=
15687 fi
15688
15689
15690
15691
15692
15693
15694 # Source file extension for Java test sources.
15695 ac_ext=c
15696
15697 # Object file extension for compiled Java test sources.
15698 objext=o
15699 objext_GCJ=$objext
15700
15701 # Code to be used in simple compile tests
15702 lt_simple_compile_test_code="int some_variable = 0;"
15703
15704 # Code to be used in simple link tests
15705 lt_simple_link_test_code='int main(){return(0);}'
15706
15707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15708
15709
15710
15711
15712
15713
15714 # If no C compiler was specified, use CC.
15715 LTCC=${LTCC-"$CC"}
15716
15717 # If no C compiler flags were specified, use CFLAGS.
15718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15719
15720 # Allow CC to be a program name with arguments.
15721 compiler=$CC
15722
15723
15724 # save warnings/boilerplate of simple test code
15725 ac_outfile=conftest.$ac_objext
15726 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15728 _lt_compiler_boilerplate=`cat conftest.err`
15729 $RM conftest*
15730
15731 ac_outfile=conftest.$ac_objext
15732 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15734 _lt_linker_boilerplate=`cat conftest.err`
15735 $RM conftest*
15736
15737
15738 # Allow CC to be a program name with arguments.
15739 compiler=$CC
15740 compiler_GCJ=$CC
15741 for cc_temp in $compiler""; do
15742   case $cc_temp in
15743     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15744     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15745     \-*) ;;
15746     *) break;;
15747   esac
15748 done
15749 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15750
15751
15752 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15753 archive_cmds_need_lc_GCJ=no
15754
15755 old_archive_cmds_GCJ=$old_archive_cmds
15756
15757 ## CAVEAT EMPTOR:
15758 ## There is no encapsulation within the following macros, do not change
15759 ## the running order or otherwise move them around unless you know exactly
15760 ## what you are doing...
15761 if test -n "$compiler"; then
15762
15763 lt_prog_compiler_no_builtin_flag_GCJ=
15764
15765 if test "$GCC" = yes; then
15766   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15767
15768   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15769 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15770 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15771   echo $ECHO_N "(cached) $ECHO_C" >&6
15772 else
15773   lt_cv_prog_compiler_rtti_exceptions=no
15774    ac_outfile=conftest.$ac_objext
15775    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15776    lt_compiler_flag="-fno-rtti -fno-exceptions"
15777    # Insert the option either (1) after the last *FLAGS variable, or
15778    # (2) before a word containing "conftest.", or (3) at the end.
15779    # Note that $ac_compile itself does not contain backslashes and begins
15780    # with a dollar sign (not a hyphen), so the echo should work correctly.
15781    # The option is referenced via a variable to avoid confusing sed.
15782    lt_compile=`echo "$ac_compile" | $SED \
15783    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15784    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15785    -e 's:$: $lt_compiler_flag:'`
15786    (eval echo "\"\$as_me:15786: $lt_compile\"" >&5)
15787    (eval "$lt_compile" 2>conftest.err)
15788    ac_status=$?
15789    cat conftest.err >&5
15790    echo "$as_me:15790: \$? = $ac_status" >&5
15791    if (exit $ac_status) && test -s "$ac_outfile"; then
15792      # The compiler can only warn and ignore the option if not recognized
15793      # So say no if there are warnings other than the usual output.
15794      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15795      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15796      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15797        lt_cv_prog_compiler_rtti_exceptions=yes
15798      fi
15799    fi
15800    $RM conftest*
15801
15802 fi
15803 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15804 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15805
15806 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15807     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15808 else
15809     :
15810 fi
15811
15812 fi
15813
15814
15815
15816   lt_prog_compiler_wl_GCJ=
15817 lt_prog_compiler_pic_GCJ=
15818 lt_prog_compiler_static_GCJ=
15819
15820 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15821 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15822
15823   if test "$GCC" = yes; then
15824     lt_prog_compiler_wl_GCJ='-Wl,'
15825     lt_prog_compiler_static_GCJ='-static'
15826
15827     case $host_os in
15828       aix*)
15829       # All AIX code is PIC.
15830       if test "$host_cpu" = ia64; then
15831         # AIX 5 now supports IA64 processor
15832         lt_prog_compiler_static_GCJ='-Bstatic'
15833       fi
15834       ;;
15835
15836     amigaos*)
15837       if test "$host_cpu" = m68k; then
15838         # FIXME: we need at least 68020 code to build shared libraries, but
15839         # adding the `-m68020' flag to GCC prevents building anything better,
15840         # like `-m68040'.
15841         lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15842       fi
15843       ;;
15844
15845     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15846       # PIC is the default for these OSes.
15847       ;;
15848
15849     mingw* | cygwin* | pw32* | os2*)
15850       # This hack is so that the source file can tell whether it is being
15851       # built for inclusion in a dll (and should export symbols for example).
15852       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15853       # (--disable-auto-import) libraries
15854
15855       ;;
15856
15857     darwin* | rhapsody*)
15858       # PIC is the default on this platform
15859       # Common symbols not allowed in MH_DYLIB files
15860       lt_prog_compiler_pic_GCJ='-fno-common'
15861       ;;
15862
15863     hpux*)
15864       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15865       # not for PA HP-UX.
15866       case $host_cpu in
15867       hppa*64*|ia64*)
15868         # +Z the default
15869         ;;
15870       *)
15871         lt_prog_compiler_pic_GCJ='-fPIC'
15872         ;;
15873       esac
15874       ;;
15875
15876     interix[3-9]*)
15877       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15878       # Instead, we relocate shared libraries at runtime.
15879       ;;
15880
15881     msdosdjgpp*)
15882       # Just because we use GCC doesn't mean we suddenly get shared libraries
15883       # on systems that don't support them.
15884       lt_prog_compiler_can_build_shared_GCJ=no
15885       enable_shared=no
15886       ;;
15887
15888     *nto* | *qnx*)
15889       # QNX uses GNU C++, but need to define -shared option too, otherwise
15890       # it will coredump.
15891       lt_prog_compiler_pic_GCJ='-fPIC -shared'
15892       ;;
15893
15894     sysv4*MP*)
15895       if test -d /usr/nec; then
15896         lt_prog_compiler_pic_GCJ=-Kconform_pic
15897       fi
15898       ;;
15899
15900     *)
15901       lt_prog_compiler_pic_GCJ='-fPIC'
15902       ;;
15903     esac
15904   else
15905     # PORTME Check for flag to pass linker flags through the system compiler.
15906     case $host_os in
15907     aix*)
15908       lt_prog_compiler_wl_GCJ='-Wl,'
15909       if test "$host_cpu" = ia64; then
15910         # AIX 5 now supports IA64 processor
15911         lt_prog_compiler_static_GCJ='-Bstatic'
15912       else
15913         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15914       fi
15915       ;;
15916     darwin*)
15917       # PIC is the default on this platform
15918       # Common symbols not allowed in MH_DYLIB files
15919       case $cc_basename in
15920       xlc*)
15921         lt_prog_compiler_pic_GCJ='-qnocommon'
15922         lt_prog_compiler_wl_GCJ='-Wl,'
15923         ;;
15924       esac
15925       ;;
15926
15927     mingw* | cygwin* | pw32* | os2*)
15928       # This hack is so that the source file can tell whether it is being
15929       # built for inclusion in a dll (and should export symbols for example).
15930
15931       ;;
15932
15933     hpux9* | hpux10* | hpux11*)
15934       lt_prog_compiler_wl_GCJ='-Wl,'
15935       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15936       # not for PA HP-UX.
15937       case $host_cpu in
15938       hppa*64*|ia64*)
15939         # +Z the default
15940         ;;
15941       *)
15942         lt_prog_compiler_pic_GCJ='+Z'
15943         ;;
15944       esac
15945       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15946       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15947       ;;
15948
15949     irix5* | irix6* | nonstopux*)
15950       lt_prog_compiler_wl_GCJ='-Wl,'
15951       # PIC (with -KPIC) is the default.
15952       lt_prog_compiler_static_GCJ='-non_shared'
15953       ;;
15954
15955     linux* | k*bsd*-gnu)
15956       case $cc_basename in
15957       icc* | ecc*)
15958         lt_prog_compiler_wl_GCJ='-Wl,'
15959         lt_prog_compiler_pic_GCJ='-KPIC'
15960         lt_prog_compiler_static_GCJ='-static'
15961         ;;
15962       pgcc* | pgf77* | pgf90* | pgf95*)
15963         # Portland Group compilers (*not* the Pentium gcc compiler,
15964         # which looks to be a dead project)
15965         lt_prog_compiler_wl_GCJ='-Wl,'
15966         lt_prog_compiler_pic_GCJ='-fpic'
15967         lt_prog_compiler_static_GCJ='-Bstatic'
15968         ;;
15969       ccc*)
15970         lt_prog_compiler_wl_GCJ='-Wl,'
15971         # All Alpha code is PIC.
15972         lt_prog_compiler_static_GCJ='-non_shared'
15973         ;;
15974       *)
15975         case `$CC -V 2>&1 | sed 5q` in
15976         *Sun\ C*)
15977           # Sun C 5.9
15978           lt_prog_compiler_pic_GCJ='-KPIC'
15979           lt_prog_compiler_static_GCJ='-Bstatic'
15980           lt_prog_compiler_wl_GCJ='-Wl,'
15981           ;;
15982         *Sun\ F*)
15983           # Sun Fortran 8.3 passes all unrecognized flags to the linker
15984           lt_prog_compiler_pic_GCJ='-KPIC'
15985           lt_prog_compiler_static_GCJ='-Bstatic'
15986           lt_prog_compiler_wl_GCJ=''
15987           ;;
15988         esac
15989         ;;
15990       esac
15991       ;;
15992
15993     newsos6)
15994       lt_prog_compiler_pic_GCJ='-KPIC'
15995       lt_prog_compiler_static_GCJ='-Bstatic'
15996       ;;
15997
15998     *nto* | *qnx*)
15999       # QNX uses GNU C++, but need to define -shared option too, otherwise
16000       # it will coredump.
16001       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16002       ;;
16003
16004     osf3* | osf4* | osf5*)
16005       lt_prog_compiler_wl_GCJ='-Wl,'
16006       # All OSF/1 code is PIC.
16007       lt_prog_compiler_static_GCJ='-non_shared'
16008       ;;
16009
16010     rdos*)
16011       lt_prog_compiler_static_GCJ='-non_shared'
16012       ;;
16013
16014     solaris*)
16015       lt_prog_compiler_pic_GCJ='-KPIC'
16016       lt_prog_compiler_static_GCJ='-Bstatic'
16017       case $cc_basename in
16018       f77* | f90* | f95*)
16019         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16020       *)
16021         lt_prog_compiler_wl_GCJ='-Wl,';;
16022       esac
16023       ;;
16024
16025     sunos4*)
16026       lt_prog_compiler_wl_GCJ='-Qoption ld '
16027       lt_prog_compiler_pic_GCJ='-PIC'
16028       lt_prog_compiler_static_GCJ='-Bstatic'
16029       ;;
16030
16031     sysv4 | sysv4.2uw2* | sysv4.3*)
16032       lt_prog_compiler_wl_GCJ='-Wl,'
16033       lt_prog_compiler_pic_GCJ='-KPIC'
16034       lt_prog_compiler_static_GCJ='-Bstatic'
16035       ;;
16036
16037     sysv4*MP*)
16038       if test -d /usr/nec ;then
16039         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16040         lt_prog_compiler_static_GCJ='-Bstatic'
16041       fi
16042       ;;
16043
16044     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16045       lt_prog_compiler_wl_GCJ='-Wl,'
16046       lt_prog_compiler_pic_GCJ='-KPIC'
16047       lt_prog_compiler_static_GCJ='-Bstatic'
16048       ;;
16049
16050     unicos*)
16051       lt_prog_compiler_wl_GCJ='-Wl,'
16052       lt_prog_compiler_can_build_shared_GCJ=no
16053       ;;
16054
16055     uts4*)
16056       lt_prog_compiler_pic_GCJ='-pic'
16057       lt_prog_compiler_static_GCJ='-Bstatic'
16058       ;;
16059
16060     *)
16061       lt_prog_compiler_can_build_shared_GCJ=no
16062       ;;
16063     esac
16064   fi
16065
16066 case $host_os in
16067   # For platforms which do not support PIC, -DPIC is meaningless:
16068   *djgpp*)
16069     lt_prog_compiler_pic_GCJ=
16070     ;;
16071   *)
16072     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16073     ;;
16074 esac
16075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16076 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16077
16078
16079
16080 #
16081 # Check to make sure the PIC flag actually works.
16082 #
16083 if test -n "$lt_prog_compiler_pic_GCJ"; then
16084   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16085 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16086 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16087   echo $ECHO_N "(cached) $ECHO_C" >&6
16088 else
16089   lt_prog_compiler_pic_works_GCJ=no
16090    ac_outfile=conftest.$ac_objext
16091    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16092    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16093    # Insert the option either (1) after the last *FLAGS variable, or
16094    # (2) before a word containing "conftest.", or (3) at the end.
16095    # Note that $ac_compile itself does not contain backslashes and begins
16096    # with a dollar sign (not a hyphen), so the echo should work correctly.
16097    # The option is referenced via a variable to avoid confusing sed.
16098    lt_compile=`echo "$ac_compile" | $SED \
16099    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16101    -e 's:$: $lt_compiler_flag:'`
16102    (eval echo "\"\$as_me:16102: $lt_compile\"" >&5)
16103    (eval "$lt_compile" 2>conftest.err)
16104    ac_status=$?
16105    cat conftest.err >&5
16106    echo "$as_me:16106: \$? = $ac_status" >&5
16107    if (exit $ac_status) && test -s "$ac_outfile"; then
16108      # The compiler can only warn and ignore the option if not recognized
16109      # So say no if there are warnings other than the usual output.
16110      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16111      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16112      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16113        lt_prog_compiler_pic_works_GCJ=yes
16114      fi
16115    fi
16116    $RM conftest*
16117
16118 fi
16119 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16120 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16121
16122 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16123     case $lt_prog_compiler_pic_GCJ in
16124      "" | " "*) ;;
16125      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16126      esac
16127 else
16128     lt_prog_compiler_pic_GCJ=
16129      lt_prog_compiler_can_build_shared_GCJ=no
16130 fi
16131
16132 fi
16133
16134
16135
16136 #
16137 # Check to make sure the static flag actually works.
16138 #
16139 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16140 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16141 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16142 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   lt_prog_compiler_static_works_GCJ=no
16146    save_LDFLAGS="$LDFLAGS"
16147    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16148    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16149    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16150      # The linker can only warn and ignore the option if not recognized
16151      # So say no if there are warnings
16152      if test -s conftest.err; then
16153        # Append any errors to the config.log.
16154        cat conftest.err 1>&5
16155        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16156        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16157        if diff conftest.exp conftest.er2 >/dev/null; then
16158          lt_prog_compiler_static_works_GCJ=yes
16159        fi
16160      else
16161        lt_prog_compiler_static_works_GCJ=yes
16162      fi
16163    fi
16164    $RM conftest*
16165    LDFLAGS="$save_LDFLAGS"
16166
16167 fi
16168 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16169 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16170
16171 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16172     :
16173 else
16174     lt_prog_compiler_static_GCJ=
16175 fi
16176
16177
16178
16179
16180   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16181 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16182 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   lt_cv_prog_compiler_c_o_GCJ=no
16186    $RM -r conftest 2>/dev/null
16187    mkdir conftest
16188    cd conftest
16189    mkdir out
16190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16191
16192    lt_compiler_flag="-o out/conftest2.$ac_objext"
16193    # Insert the option either (1) after the last *FLAGS variable, or
16194    # (2) before a word containing "conftest.", or (3) at the end.
16195    # Note that $ac_compile itself does not contain backslashes and begins
16196    # with a dollar sign (not a hyphen), so the echo should work correctly.
16197    lt_compile=`echo "$ac_compile" | $SED \
16198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16200    -e 's:$: $lt_compiler_flag:'`
16201    (eval echo "\"\$as_me:16201: $lt_compile\"" >&5)
16202    (eval "$lt_compile" 2>out/conftest.err)
16203    ac_status=$?
16204    cat out/conftest.err >&5
16205    echo "$as_me:16205: \$? = $ac_status" >&5
16206    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16207    then
16208      # The compiler can only warn and ignore the option if not recognized
16209      # So say no if there are warnings
16210      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16211      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16212      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16213        lt_cv_prog_compiler_c_o_GCJ=yes
16214      fi
16215    fi
16216    chmod u+w . 2>&5
16217    $RM conftest*
16218    # SGI C++ compiler will create directory out/ii_files/ for
16219    # template instantiation
16220    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16221    $RM out/* && rmdir out
16222    cd ..
16223    $RM -r conftest
16224    $RM conftest*
16225
16226 fi
16227 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16228 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16229
16230
16231
16232   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16233 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16234 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16235   echo $ECHO_N "(cached) $ECHO_C" >&6
16236 else
16237   lt_cv_prog_compiler_c_o_GCJ=no
16238    $RM -r conftest 2>/dev/null
16239    mkdir conftest
16240    cd conftest
16241    mkdir out
16242    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16243
16244    lt_compiler_flag="-o out/conftest2.$ac_objext"
16245    # Insert the option either (1) after the last *FLAGS variable, or
16246    # (2) before a word containing "conftest.", or (3) at the end.
16247    # Note that $ac_compile itself does not contain backslashes and begins
16248    # with a dollar sign (not a hyphen), so the echo should work correctly.
16249    lt_compile=`echo "$ac_compile" | $SED \
16250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16252    -e 's:$: $lt_compiler_flag:'`
16253    (eval echo "\"\$as_me:16253: $lt_compile\"" >&5)
16254    (eval "$lt_compile" 2>out/conftest.err)
16255    ac_status=$?
16256    cat out/conftest.err >&5
16257    echo "$as_me:16257: \$? = $ac_status" >&5
16258    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16259    then
16260      # The compiler can only warn and ignore the option if not recognized
16261      # So say no if there are warnings
16262      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16263      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16264      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16265        lt_cv_prog_compiler_c_o_GCJ=yes
16266      fi
16267    fi
16268    chmod u+w . 2>&5
16269    $RM conftest*
16270    # SGI C++ compiler will create directory out/ii_files/ for
16271    # template instantiation
16272    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16273    $RM out/* && rmdir out
16274    cd ..
16275    $RM -r conftest
16276    $RM conftest*
16277
16278 fi
16279 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16280 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16281
16282
16283
16284
16285 hard_links="nottested"
16286 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16287   # do not overwrite the value of need_locks provided by the user
16288   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16289 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16290   hard_links=yes
16291   $RM conftest*
16292   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16293   touch conftest.a
16294   ln conftest.a conftest.b 2>&5 || hard_links=no
16295   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16296   echo "$as_me:$LINENO: result: $hard_links" >&5
16297 echo "${ECHO_T}$hard_links" >&6
16298   if test "$hard_links" = no; then
16299     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16300 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16301     need_locks=warn
16302   fi
16303 else
16304   need_locks=no
16305 fi
16306
16307
16308
16309   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16310 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16311
16312   runpath_var=
16313   allow_undefined_flag_GCJ=
16314   always_export_symbols_GCJ=no
16315   archive_cmds_GCJ=
16316   archive_expsym_cmds_GCJ=
16317   compiler_needs_object_GCJ=no
16318   enable_shared_with_static_runtimes_GCJ=no
16319   export_dynamic_flag_spec_GCJ=
16320   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16321   hardcode_automatic_GCJ=no
16322   hardcode_direct_GCJ=no
16323   hardcode_direct_absolute_GCJ=no
16324   hardcode_libdir_flag_spec_GCJ=
16325   hardcode_libdir_flag_spec_ld_GCJ=
16326   hardcode_libdir_separator_GCJ=
16327   hardcode_minus_L_GCJ=no
16328   hardcode_shlibpath_var_GCJ=unsupported
16329   inherit_rpath_GCJ=no
16330   link_all_deplibs_GCJ=unknown
16331   module_cmds_GCJ=
16332   module_expsym_cmds_GCJ=
16333   old_archive_from_new_cmds_GCJ=
16334   old_archive_from_expsyms_cmds_GCJ=
16335   thread_safe_flag_spec_GCJ=
16336   whole_archive_flag_spec_GCJ=
16337   # include_expsyms should be a list of space-separated symbols to be *always*
16338   # included in the symbol list
16339   include_expsyms_GCJ=
16340   # exclude_expsyms can be an extended regexp of symbols to exclude
16341   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16342   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16343   # as well as any symbol that contains `d'.
16344   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16345   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16346   # platforms (ab)use it in PIC code, but their linkers get confused if
16347   # the symbol is explicitly referenced.  Since portable code cannot
16348   # rely on this symbol name, it's probably fine to never include it in
16349   # preloaded symbol tables.
16350   extract_expsyms_cmds=
16351
16352   case $host_os in
16353   cygwin* | mingw* | pw32*)
16354     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16355     # When not using gcc, we currently assume that we are using
16356     # Microsoft Visual C++.
16357     if test "$GCC" != yes; then
16358       with_gnu_ld=no
16359     fi
16360     ;;
16361   interix*)
16362     # we just hope/assume this is gcc and not c89 (= MSVC++)
16363     with_gnu_ld=yes
16364     ;;
16365   openbsd*)
16366     with_gnu_ld=no
16367     ;;
16368   esac
16369
16370   ld_shlibs_GCJ=yes
16371   if test "$with_gnu_ld" = yes; then
16372     # If archive_cmds runs LD, not CC, wlarc should be empty
16373     wlarc='${wl}'
16374
16375     # Set some defaults for GNU ld with shared library support. These
16376     # are reset later if shared libraries are not supported. Putting them
16377     # here allows them to be overridden if necessary.
16378     runpath_var=LD_RUN_PATH
16379     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16380     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16381     # ancient GNU ld didn't support --whole-archive et. al.
16382     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16383       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16384     else
16385       whole_archive_flag_spec_GCJ=
16386     fi
16387     supports_anon_versioning=no
16388     case `$LD -v 2>&1` in
16389       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16390       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16391       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16392       *\ 2.11.*) ;; # other 2.11 versions
16393       *) supports_anon_versioning=yes ;;
16394     esac
16395
16396     # See if GNU ld supports shared libraries.
16397     case $host_os in
16398     aix[3-9]*)
16399       # On AIX/PPC, the GNU linker is very broken
16400       if test "$host_cpu" != ia64; then
16401         ld_shlibs_GCJ=no
16402         cat <<_LT_EOF 1>&2
16403
16404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16405 *** to be unable to reliably create shared libraries on AIX.
16406 *** Therefore, libtool is disabling shared libraries support.  If you
16407 *** really care for shared libraries, you may want to modify your PATH
16408 *** so that a non-GNU linker is found, and then restart.
16409
16410 _LT_EOF
16411       fi
16412       ;;
16413
16414     amigaos*)
16415       if test "$host_cpu" = m68k; then
16416         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)'
16417         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16418         hardcode_minus_L_GCJ=yes
16419       fi
16420
16421       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16422       # that the semantics of dynamic libraries on AmigaOS, at least up
16423       # to version 4, is to share data among multiple programs linked
16424       # with the same dynamic library.  Since this doesn't match the
16425       # behavior of shared libraries on other platforms, we can't use
16426       # them.
16427       ld_shlibs_GCJ=no
16428       ;;
16429
16430     beos*)
16431       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16432         allow_undefined_flag_GCJ=unsupported
16433         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16434         # support --undefined.  This deserves some investigation.  FIXME
16435         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16436       else
16437         ld_shlibs_GCJ=no
16438       fi
16439       ;;
16440
16441     cygwin* | mingw* | pw32*)
16442       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16443       # as there is no search path for DLLs.
16444       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445       allow_undefined_flag_GCJ=unsupported
16446       always_export_symbols_GCJ=no
16447       enable_shared_with_static_runtimes_GCJ=yes
16448       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16449
16450       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16451         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16452         # If the export-symbols file already is a .def file (1st line
16453         # is EXPORTS), use it as is; otherwise, prepend...
16454         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16455           cp $export_symbols $output_objdir/$soname.def;
16456         else
16457           echo EXPORTS > $output_objdir/$soname.def;
16458           cat $export_symbols >> $output_objdir/$soname.def;
16459         fi~
16460         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16461       else
16462         ld_shlibs_GCJ=no
16463       fi
16464       ;;
16465
16466     interix[3-9]*)
16467       hardcode_direct_GCJ=no
16468       hardcode_shlibpath_var_GCJ=no
16469       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16470       export_dynamic_flag_spec_GCJ='${wl}-E'
16471       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16472       # Instead, shared libraries are loaded at an image base (0x10000000 by
16473       # default) and relocated if they conflict, which is a slow very memory
16474       # consuming and fragmenting process.  To avoid this, we pick a random,
16475       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16476       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16477       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'
16478       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'
16479       ;;
16480
16481     gnu* | linux* | tpf* | k*bsd*-gnu)
16482       tmp_diet=no
16483       if test "$host_os" = linux-dietlibc; then
16484         case $cc_basename in
16485           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
16486         esac
16487       fi
16488       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16489          && test "$tmp_diet" = no
16490       then
16491         tmp_addflag=
16492         case $cc_basename,$host_cpu in
16493         pgcc*)                          # Portland Group C compiler
16494           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'
16495           tmp_addflag=' $pic_flag'
16496           ;;
16497         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16498           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'
16499           tmp_addflag=' $pic_flag -Mnomain' ;;
16500         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
16501           tmp_addflag=' -i_dynamic' ;;
16502         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16503           tmp_addflag=' -i_dynamic -nofor_main' ;;
16504         ifc* | ifort*)                  # Intel Fortran compiler
16505           tmp_addflag=' -nofor_main' ;;
16506         esac
16507         case `$CC -V 2>&1 | sed 5q` in
16508         *Sun\ C*)                       # Sun C 5.9
16509           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'
16510           compiler_needs_object_GCJ=yes
16511           tmp_sharedflag='-G' ;;
16512         *Sun\ F*)                       # Sun Fortran 8.3
16513           tmp_sharedflag='-G' ;;
16514         *)
16515           tmp_sharedflag='-shared' ;;
16516         esac
16517         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16518
16519         if test "x$supports_anon_versioning" = xyes; then
16520           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16521             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16522             echo "local: *; };" >> $output_objdir/$libname.ver~
16523             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16524         fi
16525       else
16526         ld_shlibs_GCJ=no
16527       fi
16528       ;;
16529
16530     netbsd*)
16531       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16532         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16533         wlarc=
16534       else
16535         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16536         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16537       fi
16538       ;;
16539
16540     solaris*)
16541       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16542         ld_shlibs_GCJ=no
16543         cat <<_LT_EOF 1>&2
16544
16545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16546 *** create shared libraries on Solaris systems.  Therefore, libtool
16547 *** is disabling shared libraries support.  We urge you to upgrade GNU
16548 *** binutils to release 2.9.1 or newer.  Another option is to modify
16549 *** your PATH or compiler configuration so that the native linker is
16550 *** used, and then restart.
16551
16552 _LT_EOF
16553       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16554         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16555         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16556       else
16557         ld_shlibs_GCJ=no
16558       fi
16559       ;;
16560
16561     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16562       case `$LD -v 2>&1` in
16563         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16564         ld_shlibs_GCJ=no
16565         cat <<_LT_EOF 1>&2
16566
16567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16568 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16569 *** is disabling shared libraries support.  We urge you to upgrade GNU
16570 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16571 *** your PATH or compiler configuration so that the native linker is
16572 *** used, and then restart.
16573
16574 _LT_EOF
16575         ;;
16576         *)
16577           # For security reasons, it is highly recommended that you always
16578           # use absolute paths for naming shared libraries, and exclude the
16579           # DT_RUNPATH tag from executables and libraries.  But doing so
16580           # requires that you compile everything twice, which is a pain.
16581           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16582             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16583             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16584             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16585           else
16586             ld_shlibs_GCJ=no
16587           fi
16588         ;;
16589       esac
16590       ;;
16591
16592     sunos4*)
16593       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16594       wlarc=
16595       hardcode_direct_GCJ=yes
16596       hardcode_shlibpath_var_GCJ=no
16597       ;;
16598
16599     *)
16600       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16601         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16602         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16603       else
16604         ld_shlibs_GCJ=no
16605       fi
16606       ;;
16607     esac
16608
16609     if test "$ld_shlibs_GCJ" = no; then
16610       runpath_var=
16611       hardcode_libdir_flag_spec_GCJ=
16612       export_dynamic_flag_spec_GCJ=
16613       whole_archive_flag_spec_GCJ=
16614     fi
16615   else
16616     # PORTME fill in a description of your system's linker (not GNU ld)
16617     case $host_os in
16618     aix3*)
16619       allow_undefined_flag_GCJ=unsupported
16620       always_export_symbols_GCJ=yes
16621       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'
16622       # Note: this linker hardcodes the directories in LIBPATH if there
16623       # are no directories specified by -L.
16624       hardcode_minus_L_GCJ=yes
16625       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16626         # Neither direct hardcoding nor static linking is supported with a
16627         # broken collect2.
16628         hardcode_direct_GCJ=unsupported
16629       fi
16630       ;;
16631
16632     aix[4-9]*)
16633       if test "$host_cpu" = ia64; then
16634         # On IA64, the linker does run time linking by default, so we don't
16635         # have to do anything special.
16636         aix_use_runtimelinking=no
16637         exp_sym_flag='-Bexport'
16638         no_entry_flag=""
16639       else
16640         # If we're using GNU nm, then we don't want the "-C" option.
16641         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16642         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16643           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'
16644         else
16645           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'
16646         fi
16647         aix_use_runtimelinking=no
16648
16649         # Test if we are trying to use run time linking or normal
16650         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16651         # need to do runtime linking.
16652         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16653           for ld_flag in $LDFLAGS; do
16654           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16655             aix_use_runtimelinking=yes
16656             break
16657           fi
16658           done
16659           ;;
16660         esac
16661
16662         exp_sym_flag='-bexport'
16663         no_entry_flag='-bnoentry'
16664       fi
16665
16666       # When large executables or shared objects are built, AIX ld can
16667       # have problems creating the table of contents.  If linking a library
16668       # or program results in "error TOC overflow" add -mminimal-toc to
16669       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16670       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16671
16672       archive_cmds_GCJ=''
16673       hardcode_direct_GCJ=yes
16674       hardcode_direct_absolute_GCJ=yes
16675       hardcode_libdir_separator_GCJ=':'
16676       link_all_deplibs_GCJ=yes
16677       file_list_spec_GCJ='${wl}-f,'
16678
16679       if test "$GCC" = yes; then
16680         case $host_os in aix4.[012]|aix4.[012].*)
16681         # We only want to do this on AIX 4.2 and lower, the check
16682         # below for broken collect2 doesn't work under 4.3+
16683           collect2name=`${CC} -print-prog-name=collect2`
16684           if test -f "$collect2name" &&
16685            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16686           then
16687           # We have reworked collect2
16688           :
16689           else
16690           # We have old collect2
16691           hardcode_direct_GCJ=unsupported
16692           # It fails to find uninstalled libraries when the uninstalled
16693           # path is not listed in the libpath.  Setting hardcode_minus_L
16694           # to unsupported forces relinking
16695           hardcode_minus_L_GCJ=yes
16696           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697           hardcode_libdir_separator_GCJ=
16698           fi
16699           ;;
16700         esac
16701         shared_flag='-shared'
16702         if test "$aix_use_runtimelinking" = yes; then
16703           shared_flag="$shared_flag "'${wl}-G'
16704         fi
16705       else
16706         # not using gcc
16707         if test "$host_cpu" = ia64; then
16708         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16709         # chokes on -Wl,-G. The following line is correct:
16710           shared_flag='-G'
16711         else
16712           if test "$aix_use_runtimelinking" = yes; then
16713             shared_flag='${wl}-G'
16714           else
16715             shared_flag='${wl}-bM:SRE'
16716           fi
16717         fi
16718       fi
16719
16720       # It seems that -bexpall does not export symbols beginning with
16721       # underscore (_), so it is better to generate a list of symbols to export.
16722       always_export_symbols_GCJ=yes
16723       if test "$aix_use_runtimelinking" = yes; then
16724         # Warning - without using the other runtime loading flags (-brtl),
16725         # -berok will link without error, but may produce a broken library.
16726         allow_undefined_flag_GCJ='-berok'
16727         # Determine the default libpath from the value encoded in an
16728         # empty executable.
16729         if test x$gcc_no_link = xyes; then
16730   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16732    { (exit 1); exit 1; }; }
16733 fi
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h.  */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h.  */
16740
16741 int
16742 main ()
16743 {
16744
16745   ;
16746   return 0;
16747 }
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751   (eval $ac_link) 2>conftest.er1
16752   ac_status=$?
16753   grep -v '^ *+' conftest.er1 >conftest.err
16754   rm -f conftest.er1
16755   cat conftest.err >&5
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); } &&
16758          { ac_try='test -z "$ac_c_werror_flag"
16759                          || test ! -s conftest.err'
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); }; } &&
16765          { ac_try='test -s conftest$ac_exeext'
16766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767   (eval $ac_try) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; }; then
16771
16772 lt_aix_libpath_sed='
16773     /Import File Strings/,/^$/ {
16774         /^0/ {
16775             s/^0  *\(.*\)$/\1/
16776             p
16777         }
16778     }'
16779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16780 # Check for a 64-bit object if we didn't find anything.
16781 if test -z "$aix_libpath"; then
16782   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16783 fi
16784 else
16785   echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 fi
16789 rm -f conftest.err conftest.$ac_objext \
16790       conftest$ac_exeext conftest.$ac_ext
16791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16792
16793         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16794         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"
16795       else
16796         if test "$host_cpu" = ia64; then
16797           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16798           allow_undefined_flag_GCJ="-z nodefs"
16799           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"
16800         else
16801          # Determine the default libpath from the value encoded in an
16802          # empty executable.
16803          if test x$gcc_no_link = xyes; then
16804   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16806    { (exit 1); exit 1; }; }
16807 fi
16808 cat >conftest.$ac_ext <<_ACEOF
16809 /* confdefs.h.  */
16810 _ACEOF
16811 cat confdefs.h >>conftest.$ac_ext
16812 cat >>conftest.$ac_ext <<_ACEOF
16813 /* end confdefs.h.  */
16814
16815 int
16816 main ()
16817 {
16818
16819   ;
16820   return 0;
16821 }
16822 _ACEOF
16823 rm -f conftest.$ac_objext conftest$ac_exeext
16824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16825   (eval $ac_link) 2>conftest.er1
16826   ac_status=$?
16827   grep -v '^ *+' conftest.er1 >conftest.err
16828   rm -f conftest.er1
16829   cat conftest.err >&5
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); } &&
16832          { ac_try='test -z "$ac_c_werror_flag"
16833                          || test ! -s conftest.err'
16834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835   (eval $ac_try) 2>&5
16836   ac_status=$?
16837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); }; } &&
16839          { ac_try='test -s conftest$ac_exeext'
16840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841   (eval $ac_try) 2>&5
16842   ac_status=$?
16843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844   (exit $ac_status); }; }; then
16845
16846 lt_aix_libpath_sed='
16847     /Import File Strings/,/^$/ {
16848         /^0/ {
16849             s/^0  *\(.*\)$/\1/
16850             p
16851         }
16852     }'
16853 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16854 # Check for a 64-bit object if we didn't find anything.
16855 if test -z "$aix_libpath"; then
16856   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16857 fi
16858 else
16859   echo "$as_me: failed program was:" >&5
16860 sed 's/^/| /' conftest.$ac_ext >&5
16861
16862 fi
16863 rm -f conftest.err conftest.$ac_objext \
16864       conftest$ac_exeext conftest.$ac_ext
16865 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16866
16867          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16868           # Warning - without using the other run time loading flags,
16869           # -berok will link without error, but may produce a broken library.
16870           no_undefined_flag_GCJ=' ${wl}-bernotok'
16871           allow_undefined_flag_GCJ=' ${wl}-berok'
16872           # Exported symbols can be pulled into shared objects from archives
16873           whole_archive_flag_spec_GCJ='$convenience'
16874           archive_cmds_need_lc_GCJ=yes
16875           # This is similar to how AIX traditionally builds its shared libraries.
16876           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'
16877         fi
16878       fi
16879       ;;
16880
16881     amigaos*)
16882       if test "$host_cpu" = m68k; then
16883         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)'
16884         hardcode_libdir_flag_spec_GCJ='-L$libdir'
16885         hardcode_minus_L_GCJ=yes
16886       fi
16887       # see comment about different semantics on the GNU ld section
16888       ld_shlibs_GCJ=no
16889       ;;
16890
16891     bsdi[45]*)
16892       export_dynamic_flag_spec_GCJ=-rdynamic
16893       ;;
16894
16895     cygwin* | mingw* | pw32*)
16896       # When not using gcc, we currently assume that we are using
16897       # Microsoft Visual C++.
16898       # hardcode_libdir_flag_spec is actually meaningless, as there is
16899       # no search path for DLLs.
16900       hardcode_libdir_flag_spec_GCJ=' '
16901       allow_undefined_flag_GCJ=unsupported
16902       # Tell ltmain to make .lib files, not .a files.
16903       libext=lib
16904       # Tell ltmain to make .dll files, not .so files.
16905       shrext_cmds=".dll"
16906       # FIXME: Setting linknames here is a bad hack.
16907       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16908       # The linker will automatically build a .lib file if we build a DLL.
16909       old_archive_from_new_cmds_GCJ='true'
16910       # FIXME: Should let the user specify the lib program.
16911       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16912       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16913       enable_shared_with_static_runtimes_GCJ=yes
16914       ;;
16915
16916     darwin* | rhapsody*)
16917       case $host_os in
16918       rhapsody* | darwin1.[012])
16919         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16920         ;;
16921       *) # Darwin 1.3 on
16922         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16923         10.[012])
16924           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16925           ;;
16926         10.*)
16927           allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16928           ;;
16929         esac
16930         ;;
16931       esac
16932       archive_cmds_need_lc_GCJ=no
16933       hardcode_direct_GCJ=no
16934       hardcode_automatic_GCJ=yes
16935       hardcode_shlibpath_var_GCJ=unsupported
16936       whole_archive_flag_spec_GCJ=''
16937       link_all_deplibs_GCJ=yes
16938       if test "$GCC" = yes ; then
16939         if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16940   echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942   lt_cv_apple_cc_single_mod=no
16943         if test -z "${LT_MULTI_MODULE}"; then
16944           # By default we will add the -single_module flag. You can override
16945           # by either setting the environment variable LT_MULTI_MODULE
16946           # non-empty at configure time, or by adding -multi-module to the
16947           # link flags.
16948           echo "int foo(void){return 1;}" > conftest.c
16949           $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16950               -dynamiclib ${wl}-single_module conftest.c
16951           if test -f libconftest.dylib; then
16952               lt_cv_apple_cc_single_mod=yes
16953               rm libconftest.dylib
16954           fi
16955           rm conftest.$ac_ext
16956         fi
16957 fi
16958
16959         output_verbose_link_cmd=echo
16960         if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16961           archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16962           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}'
16963         else
16964           archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16965           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}'
16966         fi
16967         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16968         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}'
16969       else
16970         case $cc_basename in
16971         xlc*)
16972           output_verbose_link_cmd=echo
16973           archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16974           module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16975           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16976           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}'
16977           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}'
16978           ;;
16979         *)
16980           ld_shlibs_GCJ=no
16981           ;;
16982         esac
16983       fi
16984       ;;
16985
16986     dgux*)
16987       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16989       hardcode_shlibpath_var_GCJ=no
16990       ;;
16991
16992     freebsd1*)
16993       ld_shlibs_GCJ=no
16994       ;;
16995
16996     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16997     # support.  Future versions do this automatically, but an explicit c++rt0.o
16998     # does not break anything, and helps significantly (at the cost of a little
16999     # extra space).
17000     freebsd2.2*)
17001       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17002       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17003       hardcode_direct_GCJ=yes
17004       hardcode_shlibpath_var_GCJ=no
17005       ;;
17006
17007     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17008     freebsd2*)
17009       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17010       hardcode_direct_GCJ=yes
17011       hardcode_minus_L_GCJ=yes
17012       hardcode_shlibpath_var_GCJ=no
17013       ;;
17014
17015     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17016     freebsd* | dragonfly*)
17017       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17018       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17019       hardcode_direct_GCJ=yes
17020       hardcode_shlibpath_var_GCJ=no
17021       ;;
17022
17023     hpux9*)
17024       if test "$GCC" = yes; then
17025         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'
17026       else
17027         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'
17028       fi
17029       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17030       hardcode_libdir_separator_GCJ=:
17031       hardcode_direct_GCJ=yes
17032
17033       # hardcode_minus_L: Not really in the search PATH,
17034       # but as the default location of the library.
17035       hardcode_minus_L_GCJ=yes
17036       export_dynamic_flag_spec_GCJ='${wl}-E'
17037       ;;
17038
17039     hpux10*)
17040       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17041         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17042       else
17043         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17044       fi
17045       if test "$with_gnu_ld" = no; then
17046         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17047         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17048         hardcode_libdir_separator_GCJ=:
17049         hardcode_direct_GCJ=yes
17050         hardcode_direct_absolute_GCJ=yes
17051         export_dynamic_flag_spec_GCJ='${wl}-E'
17052         # hardcode_minus_L: Not really in the search PATH,
17053         # but as the default location of the library.
17054         hardcode_minus_L_GCJ=yes
17055       fi
17056       ;;
17057
17058     hpux11*)
17059       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17060         case $host_cpu in
17061         hppa*64*)
17062           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17063           ;;
17064         ia64*)
17065           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17066           ;;
17067         *)
17068           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17069           ;;
17070         esac
17071       else
17072         case $host_cpu in
17073         hppa*64*)
17074           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17075           ;;
17076         ia64*)
17077           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17078           ;;
17079         *)
17080           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17081           ;;
17082         esac
17083       fi
17084       if test "$with_gnu_ld" = no; then
17085         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17086         hardcode_libdir_separator_GCJ=:
17087
17088         case $host_cpu in
17089         hppa*64*|ia64*)
17090           hardcode_direct_GCJ=no
17091           hardcode_shlibpath_var_GCJ=no
17092           ;;
17093         *)
17094           hardcode_direct_GCJ=yes
17095           hardcode_direct_absolute_GCJ=yes
17096           export_dynamic_flag_spec_GCJ='${wl}-E'
17097
17098           # hardcode_minus_L: Not really in the search PATH,
17099           # but as the default location of the library.
17100           hardcode_minus_L_GCJ=yes
17101           ;;
17102         esac
17103       fi
17104       ;;
17105
17106     irix5* | irix6* | nonstopux*)
17107       if test "$GCC" = yes; then
17108         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'
17109         # Try to use the -exported_symbol ld option, if it does not
17110         # work, assume that -exports_file does not work either and
17111         # implicitly export all symbols.
17112         save_LDFLAGS="$LDFLAGS"
17113         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17114         if test x$gcc_no_link = xyes; then
17115   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17116 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17117    { (exit 1); exit 1; }; }
17118 fi
17119 cat >conftest.$ac_ext <<_ACEOF
17120 int foo(void) {}
17121 _ACEOF
17122 rm -f conftest.$ac_objext conftest$ac_exeext
17123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17124   (eval $ac_link) 2>conftest.er1
17125   ac_status=$?
17126   grep -v '^ *+' conftest.er1 >conftest.err
17127   rm -f conftest.er1
17128   cat conftest.err >&5
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); } &&
17131          { ac_try='test -z "$ac_c_werror_flag"
17132                          || test ! -s conftest.err'
17133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134   (eval $ac_try) 2>&5
17135   ac_status=$?
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); }; } &&
17138          { ac_try='test -s conftest$ac_exeext'
17139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140   (eval $ac_try) 2>&5
17141   ac_status=$?
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); }; }; then
17144   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'
17145
17146 else
17147   echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17149
17150 fi
17151 rm -f conftest.err conftest.$ac_objext \
17152       conftest$ac_exeext conftest.$ac_ext
17153         LDFLAGS="$save_LDFLAGS"
17154       else
17155         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'
17156         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'
17157       fi
17158       archive_cmds_need_lc_GCJ='no'
17159       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17160       hardcode_libdir_separator_GCJ=:
17161       inherit_rpath_GCJ=yes
17162       link_all_deplibs_GCJ=yes
17163       ;;
17164
17165     netbsd*)
17166       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17167         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17168       else
17169         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17170       fi
17171       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17172       hardcode_direct_GCJ=yes
17173       hardcode_shlibpath_var_GCJ=no
17174       ;;
17175
17176     newsos6)
17177       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17178       hardcode_direct_GCJ=yes
17179       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17180       hardcode_libdir_separator_GCJ=:
17181       hardcode_shlibpath_var_GCJ=no
17182       ;;
17183
17184     *nto* | *qnx*)
17185       ;;
17186
17187     openbsd*)
17188       hardcode_direct_GCJ=yes
17189       hardcode_shlibpath_var_GCJ=no
17190       hardcode_direct_absolute_GCJ=yes
17191       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17192         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17193         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17194         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17195         export_dynamic_flag_spec_GCJ='${wl}-E'
17196       else
17197         case $host_os in
17198         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17199           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17200           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17201           ;;
17202         *)
17203           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17204           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17205           ;;
17206         esac
17207       fi
17208       ;;
17209
17210     os2*)
17211       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17212       hardcode_minus_L_GCJ=yes
17213       allow_undefined_flag_GCJ=unsupported
17214       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'
17215       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17216       ;;
17217
17218     osf3*)
17219       if test "$GCC" = yes; then
17220         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17221         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'
17222       else
17223         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17224         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'
17225       fi
17226       archive_cmds_need_lc_GCJ='no'
17227       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17228       hardcode_libdir_separator_GCJ=:
17229       ;;
17230
17231     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17232       if test "$GCC" = yes; then
17233         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17234         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'
17235         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17236       else
17237         allow_undefined_flag_GCJ=' -expect_unresolved \*'
17238         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'
17239         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~
17240         $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'
17241
17242         # Both c and cxx compiler support -rpath directly
17243         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17244       fi
17245       archive_cmds_need_lc_GCJ='no'
17246       hardcode_libdir_separator_GCJ=:
17247       ;;
17248
17249     solaris*)
17250       no_undefined_flag_GCJ=' -z defs'
17251       if test "$GCC" = yes; then
17252         wlarc='${wl}'
17253         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17254         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17255           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17256       else
17257         case `$CC -V 2>&1` in
17258         *"Compilers 5.0"*)
17259           wlarc=''
17260           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17261           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17262           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17263           ;;
17264         *)
17265           wlarc='${wl}'
17266           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17267           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17268           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17269           ;;
17270         esac
17271       fi
17272       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17273       hardcode_shlibpath_var_GCJ=no
17274       case $host_os in
17275       solaris2.[0-5] | solaris2.[0-5].*) ;;
17276       *)
17277         # The compiler driver will combine and reorder linker options,
17278         # but understands `-z linker_flag'.  GCC discards it without `$wl',
17279         # but is careful enough not to reorder.
17280         # Supported since Solaris 2.6 (maybe 2.5.1?)
17281         if test "$GCC" = yes; then
17282           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17283         else
17284           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17285         fi
17286         ;;
17287       esac
17288       link_all_deplibs_GCJ=yes
17289       ;;
17290
17291     sunos4*)
17292       if test "x$host_vendor" = xsequent; then
17293         # Use $CC to link under sequent, because it throws in some extra .o
17294         # files that make .init and .fini sections work.
17295         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17296       else
17297         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17298       fi
17299       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17300       hardcode_direct_GCJ=yes
17301       hardcode_minus_L_GCJ=yes
17302       hardcode_shlibpath_var_GCJ=no
17303       ;;
17304
17305     sysv4)
17306       case $host_vendor in
17307         sni)
17308           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17309           hardcode_direct_GCJ=yes # is this really true???
17310         ;;
17311         siemens)
17312           ## LD is ld it makes a PLAMLIB
17313           ## CC just makes a GrossModule.
17314           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17315           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17316           hardcode_direct_GCJ=no
17317         ;;
17318         motorola)
17319           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17320           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17321         ;;
17322       esac
17323       runpath_var='LD_RUN_PATH'
17324       hardcode_shlibpath_var_GCJ=no
17325       ;;
17326
17327     sysv4.3*)
17328       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17329       hardcode_shlibpath_var_GCJ=no
17330       export_dynamic_flag_spec_GCJ='-Bexport'
17331       ;;
17332
17333     sysv4*MP*)
17334       if test -d /usr/nec; then
17335         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17336         hardcode_shlibpath_var_GCJ=no
17337         runpath_var=LD_RUN_PATH
17338         hardcode_runpath_var=yes
17339         ld_shlibs_GCJ=yes
17340       fi
17341       ;;
17342
17343     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17344       no_undefined_flag_GCJ='${wl}-z,text'
17345       archive_cmds_need_lc_GCJ=no
17346       hardcode_shlibpath_var_GCJ=no
17347       runpath_var='LD_RUN_PATH'
17348
17349       if test "$GCC" = yes; then
17350         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17352       else
17353         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355       fi
17356       ;;
17357
17358     sysv5* | sco3.2v5* | sco5v6*)
17359       # Note: We can NOT use -z defs as we might desire, because we do not
17360       # link with -lc, and that would cause any symbols used from libc to
17361       # always be unresolved, which means just about no library would
17362       # ever link correctly.  If we're not using GNU ld we use -z text
17363       # though, which does catch some bad symbols but isn't as heavy-handed
17364       # as -z defs.
17365       no_undefined_flag_GCJ='${wl}-z,text'
17366       allow_undefined_flag_GCJ='${wl}-z,nodefs'
17367       archive_cmds_need_lc_GCJ=no
17368       hardcode_shlibpath_var_GCJ=no
17369       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17370       hardcode_libdir_separator_GCJ=':'
17371       link_all_deplibs_GCJ=yes
17372       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17373       runpath_var='LD_RUN_PATH'
17374
17375       if test "$GCC" = yes; then
17376         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17378       else
17379         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381       fi
17382       ;;
17383
17384     uts4*)
17385       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17386       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17387       hardcode_shlibpath_var_GCJ=no
17388       ;;
17389
17390     *)
17391       ld_shlibs_GCJ=no
17392       ;;
17393     esac
17394
17395     if test x$host_vendor = xsni; then
17396       case $host in
17397       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17398         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17399         ;;
17400       esac
17401     fi
17402   fi
17403
17404 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17405 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17406 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17407
17408 with_gnu_ld_GCJ=$with_gnu_ld
17409
17410
17411
17412
17413
17414
17415 #
17416 # Do we need to explicitly link libc?
17417 #
17418 case "x$archive_cmds_need_lc_GCJ" in
17419 x|xyes)
17420   # Assume -lc should be added
17421   archive_cmds_need_lc_GCJ=yes
17422
17423   if test "$enable_shared" = yes && test "$GCC" = yes; then
17424     case $archive_cmds_GCJ in
17425     *'~'*)
17426       # FIXME: we may have to deal with multi-command sequences.
17427       ;;
17428     '$CC '*)
17429       # Test whether the compiler implicitly links with -lc since on some
17430       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17431       # to ld, don't add -lc before -lgcc.
17432       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17434       $RM conftest*
17435       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17436
17437       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17438   (eval $ac_compile) 2>&5
17439   ac_status=$?
17440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441   (exit $ac_status); } 2>conftest.err; then
17442         soname=conftest
17443         lib=conftest
17444         libobjs=conftest.$ac_objext
17445         deplibs=
17446         wl=$lt_prog_compiler_wl_GCJ
17447         pic_flag=$lt_prog_compiler_pic_GCJ
17448         compiler_flags=-v
17449         linker_flags=-v
17450         verstring=
17451         output_objdir=.
17452         libname=conftest
17453         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17454         allow_undefined_flag_GCJ=
17455         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17456   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17457   ac_status=$?
17458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459   (exit $ac_status); }
17460         then
17461           archive_cmds_need_lc_GCJ=no
17462         else
17463           archive_cmds_need_lc_GCJ=yes
17464         fi
17465         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17466       else
17467         cat conftest.err 1>&5
17468       fi
17469       $RM conftest*
17470       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17471 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17472       ;;
17473     esac
17474   fi
17475   ;;
17476 esac
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17542 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17543 withGCC=$GCC
17544 library_names_spec=
17545 libname_spec='lib$name'
17546 soname_spec=
17547 shrext_cmds=".so"
17548 postinstall_cmds=
17549 postuninstall_cmds=
17550 finish_cmds=
17551 finish_eval=
17552 shlibpath_var=
17553 shlibpath_overrides_runpath=unknown
17554 version_type=none
17555 dynamic_linker="$host_os ld.so"
17556 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17557 need_lib_prefix=unknown
17558 hardcode_into_libs=no
17559
17560 # when you set need_version to no, make sure it does not cause -set_version
17561 # flags to be left without arguments
17562 need_version=unknown
17563
17564 case $host_os in
17565 aix3*)
17566   version_type=linux
17567   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17568   shlibpath_var=LIBPATH
17569
17570   # AIX 3 has no versioning support, so we append a major version to the name.
17571   soname_spec='${libname}${release}${shared_ext}$major'
17572   ;;
17573
17574 aix[4-9]*)
17575   version_type=linux
17576   need_lib_prefix=no
17577   need_version=no
17578   hardcode_into_libs=yes
17579   if test "$host_cpu" = ia64; then
17580     # AIX 5 supports IA64
17581     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17582     shlibpath_var=LD_LIBRARY_PATH
17583   else
17584     # With GCC up to 2.95.x, collect2 would create an import file
17585     # for dependence libraries.  The import file would start with
17586     # the line `#! .'.  This would cause the generated library to
17587     # depend on `.', always an invalid library.  This was fixed in
17588     # development snapshots of GCC prior to 3.0.
17589     case $host_os in
17590       aix4 | aix4.[01] | aix4.[01].*)
17591       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17592            echo ' yes '
17593            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17594         :
17595       else
17596         can_build_shared=no
17597       fi
17598       ;;
17599     esac
17600     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17601     # soname into executable. Probably we can add versioning support to
17602     # collect2, so additional links can be useful in future.
17603     if test "$aix_use_runtimelinking" = yes; then
17604       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17605       # instead of lib<name>.a to let people know that these are not
17606       # typical AIX shared libraries.
17607       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608     else
17609       # We preserve .a as extension for shared libraries through AIX4.2
17610       # and later when we are not doing run time linking.
17611       library_names_spec='${libname}${release}.a $libname.a'
17612       soname_spec='${libname}${release}${shared_ext}$major'
17613     fi
17614     shlibpath_var=LIBPATH
17615   fi
17616   ;;
17617
17618 amigaos*)
17619   if test "$host_cpu" = m68k; then
17620     library_names_spec='$libname.ixlibrary $libname.a'
17621     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17622     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'
17623   else
17624     dynamic_linker=no
17625   fi
17626   ;;
17627
17628 beos*)
17629   library_names_spec='${libname}${shared_ext}'
17630   dynamic_linker="$host_os ld.so"
17631   shlibpath_var=LIBRARY_PATH
17632   ;;
17633
17634 bsdi[45]*)
17635   version_type=linux
17636   need_version=no
17637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17638   soname_spec='${libname}${release}${shared_ext}$major'
17639   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17640   shlibpath_var=LD_LIBRARY_PATH
17641   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17642   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17643   # the default ld.so.conf also contains /usr/contrib/lib and
17644   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17645   # libtool to hard-code these into programs
17646   ;;
17647
17648 cygwin* | mingw* | pw32*)
17649   version_type=windows
17650   shrext_cmds=".dll"
17651   need_version=no
17652   need_lib_prefix=no
17653
17654   case $withGCC,$host_os in
17655   yes,cygwin* | yes,mingw* | yes,pw32*)
17656     library_names_spec='$libname.dll.a'
17657     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17658     postinstall_cmds='base_file=`basename \${file}`~
17659       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17660       dldir=$destdir/`dirname \$dlpath`~
17661       test -d \$dldir || mkdir -p \$dldir~
17662       $install_prog $dir/$dlname \$dldir/$dlname~
17663       chmod a+x \$dldir/$dlname~
17664       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17665         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17666       fi'
17667     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17668       dlpath=$dir/\$dldll~
17669        $RM \$dlpath'
17670     shlibpath_overrides_runpath=yes
17671
17672     case $host_os in
17673     cygwin*)
17674       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17675       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17677       ;;
17678     mingw*)
17679       # MinGW DLLs use traditional 'lib' prefix
17680       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17681       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17682       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17683         # It is most probably a Windows format PATH printed by
17684         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17685         # path with ; separators, and with drive letters. We can handle the
17686         # drive letters (cygwin fileutils understands them), so leave them,
17687         # especially as we might pass files found there to a mingw objdump,
17688         # which wouldn't understand a cygwinified path. Ahh.
17689         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17690       else
17691         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17692       fi
17693       ;;
17694     pw32*)
17695       # pw32 DLLs use 'pw' prefix rather than 'lib'
17696       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17697       ;;
17698     esac
17699     ;;
17700
17701   *)
17702     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17703     ;;
17704   esac
17705   dynamic_linker='Win32 ld.exe'
17706   # FIXME: first we should search . and the directory the executable is in
17707   shlibpath_var=PATH
17708   ;;
17709
17710 darwin* | rhapsody*)
17711   dynamic_linker="$host_os dyld"
17712   version_type=darwin
17713   need_lib_prefix=no
17714   need_version=no
17715   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17716   soname_spec='${libname}${release}${major}$shared_ext'
17717   shlibpath_overrides_runpath=yes
17718   shlibpath_var=DYLD_LIBRARY_PATH
17719   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17720
17721   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17722   ;;
17723
17724 dgux*)
17725   version_type=linux
17726   need_lib_prefix=no
17727   need_version=no
17728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17729   soname_spec='${libname}${release}${shared_ext}$major'
17730   shlibpath_var=LD_LIBRARY_PATH
17731   ;;
17732
17733 freebsd1*)
17734   dynamic_linker=no
17735   ;;
17736
17737 freebsd* | dragonfly*)
17738   # DragonFly does not have aout.  When/if they implement a new
17739   # versioning mechanism, adjust this.
17740   if test -x /usr/bin/objformat; then
17741     objformat=`/usr/bin/objformat`
17742   else
17743     case $host_os in
17744     freebsd[123]*) objformat=aout ;;
17745     *) objformat=elf ;;
17746     esac
17747   fi
17748   version_type=freebsd-$objformat
17749   case $version_type in
17750     freebsd-elf*)
17751       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17752       need_version=no
17753       need_lib_prefix=no
17754       ;;
17755     freebsd-*)
17756       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17757       need_version=yes
17758       ;;
17759   esac
17760   shlibpath_var=LD_LIBRARY_PATH
17761   case $host_os in
17762   freebsd2*)
17763     shlibpath_overrides_runpath=yes
17764     ;;
17765   freebsd3.[01]* | freebsdelf3.[01]*)
17766     shlibpath_overrides_runpath=yes
17767     hardcode_into_libs=yes
17768     ;;
17769   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17770   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17771     shlibpath_overrides_runpath=no
17772     hardcode_into_libs=yes
17773     ;;
17774   *) # from 4.6 on, and DragonFly
17775     shlibpath_overrides_runpath=yes
17776     hardcode_into_libs=yes
17777     ;;
17778   esac
17779   ;;
17780
17781 gnu*)
17782   version_type=linux
17783   need_lib_prefix=no
17784   need_version=no
17785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17786   soname_spec='${libname}${release}${shared_ext}$major'
17787   shlibpath_var=LD_LIBRARY_PATH
17788   hardcode_into_libs=yes
17789   ;;
17790
17791 hpux9* | hpux10* | hpux11*)
17792   # Give a soname corresponding to the major version so that dld.sl refuses to
17793   # link against other versions.
17794   version_type=sunos
17795   need_lib_prefix=no
17796   need_version=no
17797   case $host_cpu in
17798   ia64*)
17799     shrext_cmds='.so'
17800     hardcode_into_libs=yes
17801     dynamic_linker="$host_os dld.so"
17802     shlibpath_var=LD_LIBRARY_PATH
17803     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17804     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17805     soname_spec='${libname}${release}${shared_ext}$major'
17806     if test "X$HPUX_IA64_MODE" = X32; then
17807       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17808     else
17809       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17810     fi
17811     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17812     ;;
17813   hppa*64*)
17814     shrext_cmds='.sl'
17815     hardcode_into_libs=yes
17816     dynamic_linker="$host_os dld.sl"
17817     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17818     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17820     soname_spec='${libname}${release}${shared_ext}$major'
17821     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17822     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17823     ;;
17824   *)
17825     shrext_cmds='.sl'
17826     dynamic_linker="$host_os dld.sl"
17827     shlibpath_var=SHLIB_PATH
17828     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830     soname_spec='${libname}${release}${shared_ext}$major'
17831     ;;
17832   esac
17833   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17834   postinstall_cmds='chmod 555 $lib'
17835   ;;
17836
17837 interix[3-9]*)
17838   version_type=linux
17839   need_lib_prefix=no
17840   need_version=no
17841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17842   soname_spec='${libname}${release}${shared_ext}$major'
17843   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17844   shlibpath_var=LD_LIBRARY_PATH
17845   shlibpath_overrides_runpath=no
17846   hardcode_into_libs=yes
17847   ;;
17848
17849 irix5* | irix6* | nonstopux*)
17850   case $host_os in
17851     nonstopux*) version_type=nonstopux ;;
17852     *)
17853         if test "$lt_cv_prog_gnu_ld" = yes; then
17854                 version_type=linux
17855         else
17856                 version_type=irix
17857         fi ;;
17858   esac
17859   need_lib_prefix=no
17860   need_version=no
17861   soname_spec='${libname}${release}${shared_ext}$major'
17862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17863   case $host_os in
17864   irix5* | nonstopux*)
17865     libsuff= shlibsuff=
17866     ;;
17867   *)
17868     case $LD in # libtool.m4 will add one of these switches to LD
17869     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17870       libsuff= shlibsuff= libmagic=32-bit;;
17871     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17872       libsuff=32 shlibsuff=N32 libmagic=N32;;
17873     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17874       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17875     *) libsuff= shlibsuff= libmagic=never-match;;
17876     esac
17877     ;;
17878   esac
17879   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17880   shlibpath_overrides_runpath=no
17881   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17882   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17883   hardcode_into_libs=yes
17884   ;;
17885
17886 # No shared lib support for Linux oldld, aout, or coff.
17887 linux*oldld* | linux*aout* | linux*coff*)
17888   dynamic_linker=no
17889   ;;
17890
17891 # This must be Linux ELF.
17892 linux* | k*bsd*-gnu)
17893   version_type=linux
17894   need_lib_prefix=no
17895   need_version=no
17896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17897   soname_spec='${libname}${release}${shared_ext}$major'
17898   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17899   shlibpath_var=LD_LIBRARY_PATH
17900   shlibpath_overrides_runpath=no
17901   # Some binutils ld are patched to set DT_RUNPATH
17902   save_LDFLAGS=$LDFLAGS
17903   save_libdir=$libdir
17904   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17905        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17906   if test x$gcc_no_link = xyes; then
17907   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17908 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17909    { (exit 1); exit 1; }; }
17910 fi
17911 cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917
17918 int
17919 main ()
17920 {
17921
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext conftest$ac_exeext
17927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17928   (eval $ac_link) 2>conftest.er1
17929   ac_status=$?
17930   grep -v '^ *+' conftest.er1 >conftest.err
17931   rm -f conftest.er1
17932   cat conftest.err >&5
17933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934   (exit $ac_status); } &&
17935          { ac_try='test -z "$ac_c_werror_flag"
17936                          || test ! -s conftest.err'
17937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938   (eval $ac_try) 2>&5
17939   ac_status=$?
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); }; } &&
17942          { ac_try='test -s conftest$ac_exeext'
17943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17944   (eval $ac_try) 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; }; then
17948   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17949   shlibpath_overrides_runpath=yes
17950 fi
17951
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956 fi
17957 rm -f conftest.err conftest.$ac_objext \
17958       conftest$ac_exeext conftest.$ac_ext
17959   LDFLAGS=$save_LDFLAGS
17960   libdir=$save_libdir
17961
17962   # This implies no fast_install, which is unacceptable.
17963   # Some rework will be needed to allow for fast_install
17964   # before this can be enabled.
17965   hardcode_into_libs=yes
17966
17967   # Append ld.so.conf contents to the search path
17968   if test -f /etc/ld.so.conf; then
17969     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' ' '`
17970     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17971   fi
17972
17973   # We used to test for /lib/ld.so.1 and disable shared libraries on
17974   # powerpc, because MkLinux only supported shared libraries with the
17975   # GNU dynamic linker.  Since this was broken with cross compilers,
17976   # most powerpc-linux boxes support dynamic linking these days and
17977   # people can always --disable-shared, the test was removed, and we
17978   # assume the GNU/Linux dynamic linker is in use.
17979   dynamic_linker='GNU/Linux ld.so'
17980   ;;
17981
17982 netbsd*)
17983   version_type=sunos
17984   need_lib_prefix=no
17985   need_version=no
17986   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17987     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17988     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17989     dynamic_linker='NetBSD (a.out) ld.so'
17990   else
17991     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17992     soname_spec='${libname}${release}${shared_ext}$major'
17993     dynamic_linker='NetBSD ld.elf_so'
17994   fi
17995   shlibpath_var=LD_LIBRARY_PATH
17996   shlibpath_overrides_runpath=yes
17997   hardcode_into_libs=yes
17998   ;;
17999
18000 newsos6)
18001   version_type=linux
18002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003   shlibpath_var=LD_LIBRARY_PATH
18004   shlibpath_overrides_runpath=yes
18005   ;;
18006
18007 *nto* | *qnx*)
18008   version_type=qnx
18009   need_lib_prefix=no
18010   need_version=no
18011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012   soname_spec='${libname}${release}${shared_ext}$major'
18013   shlibpath_var=LD_LIBRARY_PATH
18014   shlibpath_overrides_runpath=no
18015   hardcode_into_libs=yes
18016   dynamic_linker='ldqnx.so'
18017   ;;
18018
18019 openbsd*)
18020   version_type=sunos
18021   sys_lib_dlsearch_path_spec="/usr/lib"
18022   need_lib_prefix=no
18023   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18024   case $host_os in
18025     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18026     *)                          need_version=no  ;;
18027   esac
18028   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18029   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18030   shlibpath_var=LD_LIBRARY_PATH
18031   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18032     case $host_os in
18033       openbsd2.[89] | openbsd2.[89].*)
18034         shlibpath_overrides_runpath=no
18035         ;;
18036       *)
18037         shlibpath_overrides_runpath=yes
18038         ;;
18039       esac
18040   else
18041     shlibpath_overrides_runpath=yes
18042   fi
18043   ;;
18044
18045 os2*)
18046   libname_spec='$name'
18047   shrext_cmds=".dll"
18048   need_lib_prefix=no
18049   library_names_spec='$libname${shared_ext} $libname.a'
18050   dynamic_linker='OS/2 ld.exe'
18051   shlibpath_var=LIBPATH
18052   ;;
18053
18054 osf3* | osf4* | osf5*)
18055   version_type=osf
18056   need_lib_prefix=no
18057   need_version=no
18058   soname_spec='${libname}${release}${shared_ext}$major'
18059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18060   shlibpath_var=LD_LIBRARY_PATH
18061   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18062   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18063   ;;
18064
18065 rdos*)
18066   dynamic_linker=no
18067   ;;
18068
18069 solaris*)
18070   version_type=linux
18071   need_lib_prefix=no
18072   need_version=no
18073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074   soname_spec='${libname}${release}${shared_ext}$major'
18075   shlibpath_var=LD_LIBRARY_PATH
18076   shlibpath_overrides_runpath=yes
18077   hardcode_into_libs=yes
18078   # ldd complains unless libraries are executable
18079   postinstall_cmds='chmod +x $lib'
18080   ;;
18081
18082 sunos4*)
18083   version_type=sunos
18084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18085   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18086   shlibpath_var=LD_LIBRARY_PATH
18087   shlibpath_overrides_runpath=yes
18088   if test "$with_gnu_ld" = yes; then
18089     need_lib_prefix=no
18090   fi
18091   need_version=yes
18092   ;;
18093
18094 sysv4 | sysv4.3*)
18095   version_type=linux
18096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18097   soname_spec='${libname}${release}${shared_ext}$major'
18098   shlibpath_var=LD_LIBRARY_PATH
18099   case $host_vendor in
18100     sni)
18101       shlibpath_overrides_runpath=no
18102       need_lib_prefix=no
18103       runpath_var=LD_RUN_PATH
18104       ;;
18105     siemens)
18106       need_lib_prefix=no
18107       ;;
18108     motorola)
18109       need_lib_prefix=no
18110       need_version=no
18111       shlibpath_overrides_runpath=no
18112       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18113       ;;
18114   esac
18115   ;;
18116
18117 sysv4*MP*)
18118   if test -d /usr/nec ;then
18119     version_type=linux
18120     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18121     soname_spec='$libname${shared_ext}.$major'
18122     shlibpath_var=LD_LIBRARY_PATH
18123   fi
18124   ;;
18125
18126 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18127   version_type=freebsd-elf
18128   need_lib_prefix=no
18129   need_version=no
18130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18131   soname_spec='${libname}${release}${shared_ext}$major'
18132   shlibpath_var=LD_LIBRARY_PATH
18133   shlibpath_overrides_runpath=yes
18134   hardcode_into_libs=yes
18135   if test "$with_gnu_ld" = yes; then
18136     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18137   else
18138     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18139     case $host_os in
18140       sco3.2v5*)
18141         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18142         ;;
18143     esac
18144   fi
18145   sys_lib_dlsearch_path_spec='/usr/lib'
18146   ;;
18147
18148 tpf*)
18149   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18150   version_type=linux
18151   need_lib_prefix=no
18152   need_version=no
18153   library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18154   shlibpath_var=LD_LIBRARY_PATH
18155   shlibpath_overrides_runpath=no
18156   hardcode_into_libs=yes
18157   ;;
18158
18159 uts4*)
18160   version_type=linux
18161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18162   soname_spec='${libname}${release}${shared_ext}$major'
18163   shlibpath_var=LD_LIBRARY_PATH
18164   ;;
18165
18166 *)
18167   dynamic_linker=no
18168   ;;
18169 esac
18170 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18171 echo "${ECHO_T}$dynamic_linker" >&6
18172 test "$dynamic_linker" = no && can_build_shared=no
18173
18174 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18175 if test "$GCC" = yes; then
18176   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18177 fi
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18215 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18216 hardcode_action_GCJ=
18217 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18218    test -n "$runpath_var_GCJ" ||
18219    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18220
18221   # We can hardcode non-existent directories.
18222   if test "$hardcode_direct_GCJ" != no &&
18223      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18224      # have to relink, otherwise we might link with an installed library
18225      # when we should be linking with a yet-to-be-installed one
18226      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18227      test "$hardcode_minus_L_GCJ" != no; then
18228     # Linking always hardcodes the temporary library directory.
18229     hardcode_action_GCJ=relink
18230   else
18231     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18232     hardcode_action_GCJ=immediate
18233   fi
18234 else
18235   # We cannot hardcode anything, or else we can only hardcode existing
18236   # directories.
18237   hardcode_action_GCJ=unsupported
18238 fi
18239 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18240 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18241
18242 if test "$hardcode_action_GCJ" = relink ||
18243    test "$inherit_rpath_GCJ" = yes; then
18244   # Fast installation is not supported
18245   enable_fast_install=no
18246 elif test "$shlibpath_overrides_runpath" = yes ||
18247      test "$enable_shared" = no; then
18248   # Fast installation is not necessary
18249   enable_fast_install=needless
18250 fi
18251
18252
18253
18254
18255
18256
18257
18258 fi
18259
18260 compiler_GCJ=${GCJ-gcj}
18261 ac_ext=c
18262 ac_cpp='$CPP $CPPFLAGS'
18263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18266
18267
18268 if test "x$CC" != xcc; then
18269   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18270 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18271 else
18272   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18273 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18274 fi
18275 set dummy $CC; ac_cc=`echo $2 |
18276                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18277 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286
18287 int
18288 main ()
18289 {
18290
18291   ;
18292   return 0;
18293 }
18294 _ACEOF
18295 # Make sure it works both with $CC and with simple cc.
18296 # We do the test twice because some compilers refuse to overwrite an
18297 # existing .o file with -o, though they will create one.
18298 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18299 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300   (eval $ac_try) 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); } &&
18304    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18305   (eval $ac_try) 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); };
18309 then
18310   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18311   if test "x$CC" != xcc; then
18312     # Test first that cc exists at all.
18313     if { ac_try='cc -c conftest.$ac_ext >&5'
18314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315   (eval $ac_try) 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18320       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321   (eval $ac_try) 2>&5
18322   ac_status=$?
18323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324   (exit $ac_status); } &&
18325          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); };
18330       then
18331         # cc works too.
18332         :
18333       else
18334         # cc exists but doesn't like -o.
18335         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18336       fi
18337     fi
18338   fi
18339 else
18340   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18341 fi
18342 rm -f conftest*
18343
18344 fi
18345 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18346   echo "$as_me:$LINENO: result: yes" >&5
18347 echo "${ECHO_T}yes" >&6
18348 else
18349   echo "$as_me:$LINENO: result: no" >&5
18350 echo "${ECHO_T}no" >&6
18351
18352 cat >>confdefs.h <<\_ACEOF
18353 #define NO_MINUS_C_MINUS_O 1
18354 _ACEOF
18355
18356 fi
18357
18358 # FIXME: we rely on the cache variable name because
18359 # there is no other way.
18360 set dummy $CC
18361 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18362 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18363    # Losing compiler, so override with the script.
18364    # FIXME: It is wrong to rewrite CC.
18365    # But if we don't then we get into trouble of one sort or another.
18366    # A longer-term fix would be to have automake use am__CC in this case,
18367    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18368    CC="$am_aux_dir/compile $CC"
18369 fi
18370
18371
18372
18373
18374 subdirs="$subdirs classpath libltdl"
18375
18376
18377 # The -no-testsuite modules omit the test subdir.
18378
18379
18380 if test -d $srcdir/testsuite; then
18381   TESTSUBDIR_TRUE=
18382   TESTSUBDIR_FALSE='#'
18383 else
18384   TESTSUBDIR_TRUE='#'
18385   TESTSUBDIR_FALSE=
18386 fi
18387
18388
18389 # Should the runtime set system properties by examining the
18390 # environment variable GCJ_PROPERTIES?
18391 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18392 if test "${enable_getenv_properties+set}" = set; then
18393   enableval="$enable_getenv_properties"
18394
18395 fi;
18396
18397 # Whether GCJ_PROPERTIES is used depends on the target.
18398 if test -z "$enable_getenv_properties"; then
18399    enable_getenv_properties=${enable_getenv_properties_default-yes}
18400 fi
18401 if test "$enable_getenv_properties" = no; then
18402
18403 cat >>confdefs.h <<\_ACEOF
18404 #define DISABLE_GETENV_PROPERTIES 1
18405 _ACEOF
18406
18407 fi
18408
18409 # Whether we should use arguments to main()
18410 if test -z "$enable_main_args"; then
18411    enable_main_args=${enable_main_args_default-yes}
18412 fi
18413 if test "$enable_main_args" = no; then
18414
18415 cat >>confdefs.h <<\_ACEOF
18416 #define DISABLE_MAIN_ARGS 1
18417 _ACEOF
18418
18419 fi
18420
18421
18422 # Should we use hashtable-based synchronization?
18423 # Currently works only for Linux X86/ia64
18424 # Typically faster and more space-efficient
18425 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18426 if test "${enable_hash_synchronization+set}" = set; then
18427   enableval="$enable_hash_synchronization"
18428
18429 fi;
18430
18431 if test -z "$enable_hash_synchronization"; then
18432    enable_hash_synchronization=$enable_hash_synchronization_default
18433 fi
18434
18435
18436 install_ecj_jar=no
18437 ECJ_BUILD_JAR=
18438 ECJ_JAR=
18439
18440 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18441 if test "${with_ecj_jar+set}" = set; then
18442   withval="$with_ecj_jar"
18443   ECJ_JAR=$withval
18444 else
18445   if test -f $multi_basedir/ecj.jar; then
18446            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18447            ECJ_JAR='$(jardir)/ecj.jar'
18448            install_ecj_jar=yes
18449          fi
18450 fi;
18451
18452
18453
18454
18455 if test "$ECJ_JAR" != ""; then
18456   BUILD_ECJ1_TRUE=
18457   BUILD_ECJ1_FALSE='#'
18458 else
18459   BUILD_ECJ1_TRUE='#'
18460   BUILD_ECJ1_FALSE=
18461 fi
18462
18463
18464
18465 if test $install_ecj_jar = yes; then
18466   INSTALL_ECJ_JAR_TRUE=
18467   INSTALL_ECJ_JAR_FALSE='#'
18468 else
18469   INSTALL_ECJ_JAR_TRUE='#'
18470   INSTALL_ECJ_JAR_FALSE=
18471 fi
18472
18473
18474
18475 # Check whether --with-java-home or --without-java-home was given.
18476 if test "${with_java_home+set}" = set; then
18477   withval="$with_java_home"
18478   JAVA_HOME="${withval}"
18479 else
18480   JAVA_HOME=""
18481 fi;
18482
18483
18484 if test ! -z "$JAVA_HOME"; then
18485   JAVA_HOME_SET_TRUE=
18486   JAVA_HOME_SET_FALSE='#'
18487 else
18488   JAVA_HOME_SET_TRUE='#'
18489   JAVA_HOME_SET_FALSE=
18490 fi
18491
18492
18493
18494 suppress_libgcj_bc=no
18495 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18496 if test "${enable_libgcj_bc+set}" = set; then
18497   enableval="$enable_libgcj_bc"
18498   if test "$enable_libgcj_bc" = "no"; then
18499      suppress_libgcj_bc=yes
18500    fi
18501 fi;
18502
18503
18504 if test "$suppress_libgcj_bc" = "yes"; then
18505   SUPPRESS_LIBGCJ_BC_TRUE=
18506   SUPPRESS_LIBGCJ_BC_FALSE='#'
18507 else
18508   SUPPRESS_LIBGCJ_BC_TRUE='#'
18509   SUPPRESS_LIBGCJ_BC_FALSE=
18510 fi
18511
18512
18513 # What is the native OS API for MinGW?
18514
18515 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18516 if test "${with_win32_nlsapi+set}" = set; then
18517   withval="$with_win32_nlsapi"
18518   case "${withval}" in
18519   ansi) with_win32_nlsapi=ansi ;;
18520   unicows) with_win32_nlsapi=unicows ;;
18521   unicode) with_win32_nlsapi=unicode ;;
18522   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18523 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18524    { (exit 1); exit 1; }; } ;;
18525 esac
18526 else
18527   with_win32_nlsapi=ansi
18528 fi;
18529
18530 case "${with_win32_nlsapi}" in
18531   unicows | unicode)
18532
18533 cat >>confdefs.h <<\_ACEOF
18534 #define MINGW_LIBGCJ_UNICODE 1
18535 _ACEOF
18536
18537     ;;
18538 esac
18539
18540 # configure.host sets slow_pthread_self if the synchronization code should
18541 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18542 if test "${slow_pthread_self}" = "yes"; then
18543
18544 cat >>confdefs.h <<\_ACEOF
18545 #define SLOW_PTHREAD_SELF 1
18546 _ACEOF
18547
18548 fi
18549
18550 # Check for gc debugging.  This option is handled both here and in the GC.
18551 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18552 if test "${enable_gc_debug+set}" = set; then
18553   enableval="$enable_gc_debug"
18554    if test "$enable_gc_debug" = "yes"; then
18555
18556 cat >>confdefs.h <<\_ACEOF
18557 #define LIBGCJ_GC_DEBUG 1
18558 _ACEOF
18559
18560   fi
18561 fi;
18562
18563 # See if the user has the interpreter included.
18564 # Check whether --enable-interpreter or --disable-interpreter was given.
18565 if test "${enable_interpreter+set}" = set; then
18566   enableval="$enable_interpreter"
18567   if test "$enable_interpreter" = yes; then
18568     # This can also be set in configure.host.
18569     libgcj_interpreter=yes
18570   elif test "$enable_interpreter" = no; then
18571     libgcj_interpreter=no
18572   fi
18573 fi;
18574
18575 if test "$libgcj_interpreter" = yes; then
18576
18577 cat >>confdefs.h <<\_ACEOF
18578 #define INTERPRETER 1
18579 _ACEOF
18580
18581 fi
18582 INTERPRETER="$libgcj_interpreter"
18583
18584
18585
18586 if test "$libgcj_interpreter" = yes; then
18587   INTERPRETER_TRUE=
18588   INTERPRETER_FALSE='#'
18589 else
18590   INTERPRETER_TRUE='#'
18591   INTERPRETER_FALSE=
18592 fi
18593
18594
18595 echo "$as_me:$LINENO: checking for exception model to use" >&5
18596 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18597 ac_ext=cc
18598 ac_cpp='$CXXCPP $CPPFLAGS'
18599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18602
18603 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18604 if test "${enable_sjlj_exceptions+set}" = set; then
18605   enableval="$enable_sjlj_exceptions"
18606   :
18607 else
18608   cat > conftest.$ac_ext << EOF
18609 #line 18609 "configure"
18610 struct S { ~S(); };
18611 void bar();
18612 void foo()
18613 {
18614   S s;
18615   bar();
18616 }
18617 EOF
18618 old_CXXFLAGS="$CXXFLAGS"
18619 CXXFLAGS=-S
18620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18621   (eval $ac_compile) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; then
18625   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18626     enable_sjlj_exceptions=yes
18627   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18628     enable_sjlj_exceptions=no
18629   fi
18630 fi
18631 CXXFLAGS="$old_CXXFLAGS"
18632 rm -f conftest*
18633 fi;
18634 if test x$enable_sjlj_exceptions = xyes; then
18635
18636 cat >>confdefs.h <<\_ACEOF
18637 #define SJLJ_EXCEPTIONS 1
18638 _ACEOF
18639
18640   ac_exception_model_name=sjlj
18641 elif test x$enable_sjlj_exceptions = xno; then
18642   ac_exception_model_name="call frame"
18643 else
18644   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18645 echo "$as_me: error: unable to detect exception model" >&2;}
18646    { (exit 1); exit 1; }; }
18647 fi
18648 ac_ext=c
18649 ac_cpp='$CPP $CPPFLAGS'
18650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18653
18654 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18655 echo "${ECHO_T}$ac_exception_model_name" >&6
18656
18657 # If we are non using SJLJ exceptions, and this host does not have support
18658 # for unwinding from a signal handler, enable checked dereferences and divides.
18659 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18660   CHECKREFSPEC=-fcheck-references
18661   DIVIDESPEC=-fuse-divide-subroutine
18662   EXCEPTIONSPEC=
18663 fi
18664
18665 # See if the user wants to disable java.net.  This is the mildly
18666 # ugly way that we admit that target-side configuration sucks.
18667 # Check whether --enable-java-net or --disable-java-net was given.
18668 if test "${enable_java_net+set}" = set; then
18669   enableval="$enable_java_net"
18670
18671 fi;
18672
18673 # Whether java.net is built by default can depend on the target.
18674 if test -z "$enable_java_net"; then
18675    enable_java_net=${enable_java_net_default-yes}
18676 fi
18677 if test "$enable_java_net" = no; then
18678
18679 cat >>confdefs.h <<\_ACEOF
18680 #define DISABLE_JAVA_NET 1
18681 _ACEOF
18682
18683 fi
18684
18685 # See if the user wants to configure without libffi.  Some
18686 # architectures don't support it, and default values are set in
18687 # configure.host.
18688
18689 # Check whether --with-libffi or --without-libffi was given.
18690 if test "${with_libffi+set}" = set; then
18691   withval="$with_libffi"
18692   :
18693 else
18694   with_libffi=${with_libffi_default-yes}
18695 fi;
18696
18697 LIBFFI=
18698 LIBFFIINCS=
18699 if test "$with_libffi" != no; then
18700
18701 cat >>confdefs.h <<\_ACEOF
18702 #define USE_LIBFFI 1
18703 _ACEOF
18704
18705    LIBFFI=../libffi/libffi_convenience.la
18706    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18707 fi
18708
18709
18710
18711 # See if the user wants to disable JVMPI support.
18712 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18713 if test "${enable_jvmpi+set}" = set; then
18714   enableval="$enable_jvmpi"
18715
18716 fi;
18717
18718 if test "$enable_jvmpi" != no; then
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define ENABLE_JVMPI 1
18722 _ACEOF
18723
18724 fi
18725
18726 # If the target is an eCos system, use the appropriate eCos
18727 # I/O routines.
18728 # FIXME: this should not be a local option but a global target
18729 # system; at present there is no eCos target.
18730 TARGET_ECOS=${PROCESS-"no"}
18731
18732 # Check whether --with-ecos or --without-ecos was given.
18733 if test "${with_ecos+set}" = set; then
18734   withval="$with_ecos"
18735   TARGET_ECOS="$with_ecos"
18736
18737 fi;
18738
18739 case "$TARGET_ECOS" in
18740    no) case "$host" in
18741       *mingw*)
18742             PLATFORM=Win32
18743             PLATFORMNET=Win32
18744             PLATFORMH=win32.h
18745
18746 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18747 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18748 LD_PROG=`$CC --print-prog-name=ld`
18749 LD_VERSION=`$LD_PROG --version`
18750 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18751 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18752 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18753   LD_OK="ok"
18754 else
18755   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18756     LD_OK="ok"
18757   fi
18758 fi
18759 if test "x$LD_OK" != x; then
18760   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18761 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18762 else
18763   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18764 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18765   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18766 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18767
18768 cat >>confdefs.h <<\_ACEOF
18769 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18770 _ACEOF
18771
18772 fi
18773       ;;
18774       *)
18775             PLATFORM=Posix
18776             PLATFORMNET=Posix
18777             PLATFORMH=posix.h
18778       ;;
18779       esac
18780       ;;
18781    *)
18782       PLATFORM=Ecos
18783       PLATFORMNET=NoNet
18784
18785 cat >>confdefs.h <<\_ACEOF
18786 #define ECOS 1
18787 _ACEOF
18788
18789       PLATFORMH=posix.h
18790       ;;
18791 esac
18792
18793           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18794
18795
18796 cat >conftest.$ac_ext <<_ACEOF
18797 /* confdefs.h.  */
18798 _ACEOF
18799 cat confdefs.h >>conftest.$ac_ext
18800 cat >>conftest.$ac_ext <<_ACEOF
18801 /* end confdefs.h.  */
18802 #include <stdint.h>
18803
18804 _ACEOF
18805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18806   $EGREP "uint32_t" >/dev/null 2>&1; then
18807
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_INT32_DEFINED 1
18810 _ACEOF
18811
18812 fi
18813 rm -f conftest*
18814
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821 #include <inttypes.h>
18822
18823 _ACEOF
18824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18825   $EGREP "uint32_t" >/dev/null 2>&1; then
18826
18827 cat >>confdefs.h <<\_ACEOF
18828 #define HAVE_INT32_DEFINED 1
18829 _ACEOF
18830
18831 fi
18832 rm -f conftest*
18833
18834 cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840 #include <sys/types.h>
18841
18842 _ACEOF
18843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18844   $EGREP "u_int32_t" >/dev/null 2>&1; then
18845
18846 cat >>confdefs.h <<\_ACEOF
18847 #define HAVE_BSD_INT32_DEFINED 1
18848 _ACEOF
18849
18850 fi
18851 rm -f conftest*
18852
18853 cat >conftest.$ac_ext <<_ACEOF
18854 /* confdefs.h.  */
18855 _ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h.  */
18859 #include <sys/config.h>
18860
18861 _ACEOF
18862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18863   $EGREP "u_int32_t" >/dev/null 2>&1; then
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define HAVE_BSD_INT32_DEFINED 1
18867 _ACEOF
18868
18869 fi
18870 rm -f conftest*
18871
18872
18873
18874
18875 if test "$PLATFORM" = Win32; then
18876   USING_WIN32_PLATFORM_TRUE=
18877   USING_WIN32_PLATFORM_FALSE='#'
18878 else
18879   USING_WIN32_PLATFORM_TRUE='#'
18880   USING_WIN32_PLATFORM_FALSE=
18881 fi
18882
18883
18884
18885 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18886   USING_POSIX_PLATFORM_TRUE=
18887   USING_POSIX_PLATFORM_FALSE='#'
18888 else
18889   USING_POSIX_PLATFORM_TRUE='#'
18890   USING_POSIX_PLATFORM_FALSE=
18891 fi
18892
18893
18894 case "$host" in
18895   *-darwin*) DARWIN_CRT=true ;;
18896   *) DARWIN_CRT=false ;;
18897 esac
18898
18899
18900 if $DARWIN_CRT; then
18901   USING_DARWIN_CRT_TRUE=
18902   USING_DARWIN_CRT_FALSE='#'
18903 else
18904   USING_DARWIN_CRT_TRUE='#'
18905   USING_DARWIN_CRT_FALSE=
18906 fi
18907
18908
18909 # This may not be defined in a non-ANS conformant embedded system.
18910 # FIXME: Should these case a runtime exception in that case?
18911 cat >conftest.$ac_ext <<_ACEOF
18912 /* confdefs.h.  */
18913 _ACEOF
18914 cat confdefs.h >>conftest.$ac_ext
18915 cat >>conftest.$ac_ext <<_ACEOF
18916 /* end confdefs.h.  */
18917 #include <time.h>
18918
18919 _ACEOF
18920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18921   $EGREP "localtime" >/dev/null 2>&1; then
18922
18923 cat >>confdefs.h <<\_ACEOF
18924 #define HAVE_LOCALTIME 1
18925 _ACEOF
18926
18927 fi
18928 rm -f conftest*
18929
18930
18931 # Create the subdirectory for natFile.cc, or the attempt
18932 # to create the link will fail.
18933 test -d java || mkdir java
18934 test -d java/io || mkdir java/io
18935 test -d gnu || mkdir gnu
18936           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18937
18938
18939 # Likewise for natConcreteProcess.cc.
18940 test -d java/lang || mkdir java/lang
18941           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18942
18943
18944 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18945 test -d java/net || mkdir java/net
18946           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18947
18948           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18949
18950
18951 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18952 test -d gnu/java || mkdir gnu/java
18953 test -d gnu/java/net || mkdir gnu/java/net
18954           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18955
18956           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18957
18958
18959 # Likewise for natVMPipe.cc and natVMSelector.cc.
18960 test -d gnu/java/nio || mkdir gnu/java/nio
18961           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18962
18963           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18964
18965
18966 # Likewise for natFileChannelImpl.cc
18967 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18968           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18969
18970
18971 case "${host}" in
18972     *mingw*)
18973       SYSTEMSPEC="-lgdi32 -lws2_32"
18974       if test "${with_win32_nlsapi}" = "unicows"; then
18975         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18976       fi
18977     ;;
18978     *)
18979       SYSTEMSPEC=
18980     ;;
18981 esac
18982
18983
18984
18985 # Check whether --with-system-zlib or --without-system-zlib was given.
18986 if test "${with_system_zlib+set}" = set; then
18987   withval="$with_system_zlib"
18988
18989 fi;
18990 ZLIBSPEC=
18991
18992 ZLIBTESTSPEC=
18993
18994
18995 echo "$as_me:$LINENO: checking for X" >&5
18996 echo $ECHO_N "checking for X... $ECHO_C" >&6
18997
18998
18999 # Check whether --with-x or --without-x was given.
19000 if test "${with_x+set}" = set; then
19001   withval="$with_x"
19002
19003 fi;
19004 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19005 if test "x$with_x" = xno; then
19006   # The user explicitly disabled X.
19007   have_x=disabled
19008 else
19009   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19010     # Both variables are already set.
19011     have_x=yes
19012   else
19013     if test "${ac_cv_have_x+set}" = set; then
19014   echo $ECHO_N "(cached) $ECHO_C" >&6
19015 else
19016   # One or both of the vars are not set, and there is no cached value.
19017 ac_x_includes=no ac_x_libraries=no
19018 rm -fr conftest.dir
19019 if mkdir conftest.dir; then
19020   cd conftest.dir
19021   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19022   cat >Imakefile <<'_ACEOF'
19023 acfindx:
19024         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19025 _ACEOF
19026   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19027     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19028     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19029     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19030     for ac_extension in a so sl; do
19031       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19032          test -f $ac_im_libdir/libX11.$ac_extension; then
19033         ac_im_usrlibdir=$ac_im_libdir; break
19034       fi
19035     done
19036     # Screen out bogus values from the imake configuration.  They are
19037     # bogus both because they are the default anyway, and because
19038     # using them would break gcc on systems where it needs fixed includes.
19039     case $ac_im_incroot in
19040         /usr/include) ;;
19041         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19042     esac
19043     case $ac_im_usrlibdir in
19044         /usr/lib | /lib) ;;
19045         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19046     esac
19047   fi
19048   cd ..
19049   rm -fr conftest.dir
19050 fi
19051
19052 # Standard set of common directories for X headers.
19053 # Check X11 before X11Rn because it is often a symlink to the current release.
19054 ac_x_header_dirs='
19055 /usr/X11/include
19056 /usr/X11R6/include
19057 /usr/X11R5/include
19058 /usr/X11R4/include
19059
19060 /usr/include/X11
19061 /usr/include/X11R6
19062 /usr/include/X11R5
19063 /usr/include/X11R4
19064
19065 /usr/local/X11/include
19066 /usr/local/X11R6/include
19067 /usr/local/X11R5/include
19068 /usr/local/X11R4/include
19069
19070 /usr/local/include/X11
19071 /usr/local/include/X11R6
19072 /usr/local/include/X11R5
19073 /usr/local/include/X11R4
19074
19075 /usr/X386/include
19076 /usr/x386/include
19077 /usr/XFree86/include/X11
19078
19079 /usr/include
19080 /usr/local/include
19081 /usr/unsupported/include
19082 /usr/athena/include
19083 /usr/local/x11r5/include
19084 /usr/lpp/Xamples/include
19085
19086 /usr/openwin/include
19087 /usr/openwin/share/include'
19088
19089 if test "$ac_x_includes" = no; then
19090   # Guess where to find include files, by looking for Intrinsic.h.
19091   # First, try using that file with no special directory specified.
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098 #include <X11/Intrinsic.h>
19099 _ACEOF
19100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } >/dev/null; then
19108   if test -s conftest.err; then
19109     ac_cpp_err=$ac_c_preproc_warn_flag
19110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19111   else
19112     ac_cpp_err=
19113   fi
19114 else
19115   ac_cpp_err=yes
19116 fi
19117 if test -z "$ac_cpp_err"; then
19118   # We can compile using X headers with no special include directory.
19119 ac_x_includes=
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124   for ac_dir in $ac_x_header_dirs; do
19125   if test -r "$ac_dir/X11/Intrinsic.h"; then
19126     ac_x_includes=$ac_dir
19127     break
19128   fi
19129 done
19130 fi
19131 rm -f conftest.err conftest.$ac_ext
19132 fi # $ac_x_includes = no
19133
19134 if test "$ac_x_libraries" = no; then
19135   # Check for the libraries.
19136   # See if we find them without any special options.
19137   # Don't add to $LIBS permanently.
19138   ac_save_LIBS=$LIBS
19139   LIBS="-lXt $LIBS"
19140   if test x$gcc_no_link = xyes; then
19141   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19143    { (exit 1); exit 1; }; }
19144 fi
19145 cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151 #include <X11/Intrinsic.h>
19152 int
19153 main ()
19154 {
19155 XtMalloc (0)
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162   (eval $ac_link) 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } &&
19169          { ac_try='test -z "$ac_c_werror_flag"
19170                          || test ! -s conftest.err'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest$ac_exeext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182   LIBS=$ac_save_LIBS
19183 # We can link X programs with no special library path.
19184 ac_x_libraries=
19185 else
19186   echo "$as_me: failed program was:" >&5
19187 sed 's/^/| /' conftest.$ac_ext >&5
19188
19189 LIBS=$ac_save_LIBS
19190 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19191 do
19192   # Don't even attempt the hair of trying to link an X program!
19193   for ac_extension in a so sl; do
19194     if test -r $ac_dir/libXt.$ac_extension; then
19195       ac_x_libraries=$ac_dir
19196       break 2
19197     fi
19198   done
19199 done
19200 fi
19201 rm -f conftest.err conftest.$ac_objext \
19202       conftest$ac_exeext conftest.$ac_ext
19203 fi # $ac_x_libraries = no
19204
19205 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19206   # Didn't find X anywhere.  Cache the known absence of X.
19207   ac_cv_have_x="have_x=no"
19208 else
19209   # Record where we found X for the cache.
19210   ac_cv_have_x="have_x=yes \
19211                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19212 fi
19213 fi
19214
19215   fi
19216   eval "$ac_cv_have_x"
19217 fi # $with_x != no
19218
19219 if test "$have_x" != yes; then
19220   echo "$as_me:$LINENO: result: $have_x" >&5
19221 echo "${ECHO_T}$have_x" >&6
19222   no_x=yes
19223 else
19224   # If each of the values was on the command line, it overrides each guess.
19225   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19226   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19227   # Update the cache value to reflect the command line values.
19228   ac_cv_have_x="have_x=yes \
19229                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19230   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19231 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19232 fi
19233
19234 if test "$no_x" = yes; then
19235   # Not all programs may use this symbol, but it does not hurt to define it.
19236
19237 cat >>confdefs.h <<\_ACEOF
19238 #define X_DISPLAY_MISSING 1
19239 _ACEOF
19240
19241   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19242 else
19243   if test -n "$x_includes"; then
19244     X_CFLAGS="$X_CFLAGS -I$x_includes"
19245   fi
19246
19247   # It would also be nice to do this for all -L options, not just this one.
19248   if test -n "$x_libraries"; then
19249     X_LIBS="$X_LIBS -L$x_libraries"
19250     # For Solaris; some versions of Sun CC require a space after -R and
19251     # others require no space.  Words are not sufficient . . . .
19252     case `(uname -sr) 2>/dev/null` in
19253     "SunOS 5"*)
19254       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19255 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19256       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19257       if test x$gcc_no_link = xyes; then
19258   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19259 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19260    { (exit 1); exit 1; }; }
19261 fi
19262 cat >conftest.$ac_ext <<_ACEOF
19263 /* confdefs.h.  */
19264 _ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h.  */
19268
19269 int
19270 main ()
19271 {
19272
19273   ;
19274   return 0;
19275 }
19276 _ACEOF
19277 rm -f conftest.$ac_objext conftest$ac_exeext
19278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19279   (eval $ac_link) 2>conftest.er1
19280   ac_status=$?
19281   grep -v '^ *+' conftest.er1 >conftest.err
19282   rm -f conftest.er1
19283   cat conftest.err >&5
19284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285   (exit $ac_status); } &&
19286          { ac_try='test -z "$ac_c_werror_flag"
19287                          || test ! -s conftest.err'
19288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19289   (eval $ac_try) 2>&5
19290   ac_status=$?
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); }; } &&
19293          { ac_try='test -s conftest$ac_exeext'
19294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19295   (eval $ac_try) 2>&5
19296   ac_status=$?
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); }; }; then
19299   ac_R_nospace=yes
19300 else
19301   echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19303
19304 ac_R_nospace=no
19305 fi
19306 rm -f conftest.err conftest.$ac_objext \
19307       conftest$ac_exeext conftest.$ac_ext
19308       if test $ac_R_nospace = yes; then
19309         echo "$as_me:$LINENO: result: no" >&5
19310 echo "${ECHO_T}no" >&6
19311         X_LIBS="$X_LIBS -R$x_libraries"
19312       else
19313         LIBS="$ac_xsave_LIBS -R $x_libraries"
19314         if test x$gcc_no_link = xyes; then
19315   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19317    { (exit 1); exit 1; }; }
19318 fi
19319 cat >conftest.$ac_ext <<_ACEOF
19320 /* confdefs.h.  */
19321 _ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h.  */
19325
19326 int
19327 main ()
19328 {
19329
19330   ;
19331   return 0;
19332 }
19333 _ACEOF
19334 rm -f conftest.$ac_objext conftest$ac_exeext
19335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19336   (eval $ac_link) 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } &&
19343          { ac_try='test -z "$ac_c_werror_flag"
19344                          || test ! -s conftest.err'
19345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19346   (eval $ac_try) 2>&5
19347   ac_status=$?
19348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349   (exit $ac_status); }; } &&
19350          { ac_try='test -s conftest$ac_exeext'
19351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19352   (eval $ac_try) 2>&5
19353   ac_status=$?
19354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355   (exit $ac_status); }; }; then
19356   ac_R_space=yes
19357 else
19358   echo "$as_me: failed program was:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19360
19361 ac_R_space=no
19362 fi
19363 rm -f conftest.err conftest.$ac_objext \
19364       conftest$ac_exeext conftest.$ac_ext
19365         if test $ac_R_space = yes; then
19366           echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6
19368           X_LIBS="$X_LIBS -R $x_libraries"
19369         else
19370           echo "$as_me:$LINENO: result: neither works" >&5
19371 echo "${ECHO_T}neither works" >&6
19372         fi
19373       fi
19374       LIBS=$ac_xsave_LIBS
19375     esac
19376   fi
19377
19378   # Check for system-dependent libraries X programs must link with.
19379   # Do this before checking for the system-independent R6 libraries
19380   # (-lICE), since we may need -lsocket or whatever for X linking.
19381
19382   if test "$ISC" = yes; then
19383     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19384   else
19385     # Martyn Johnson says this is needed for Ultrix, if the X
19386     # libraries were built with DECnet support.  And Karl Berry says
19387     # the Alpha needs dnet_stub (dnet does not exist).
19388     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19389     if test x$gcc_no_link = xyes; then
19390   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19392    { (exit 1); exit 1; }; }
19393 fi
19394 cat >conftest.$ac_ext <<_ACEOF
19395 /* confdefs.h.  */
19396 _ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h.  */
19400
19401 /* Override any gcc2 internal prototype to avoid an error.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 /* We use char because int might match the return type of a gcc2
19406    builtin and then its argument prototype would still apply.  */
19407 char XOpenDisplay ();
19408 int
19409 main ()
19410 {
19411 XOpenDisplay ();
19412   ;
19413   return 0;
19414 }
19415 _ACEOF
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418   (eval $ac_link) 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_c_werror_flag"
19426                          || test ! -s conftest.err'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; } &&
19432          { ac_try='test -s conftest$ac_exeext'
19433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434   (eval $ac_try) 2>&5
19435   ac_status=$?
19436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437   (exit $ac_status); }; }; then
19438   :
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19444 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19445 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19446   echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448   ac_check_lib_save_LIBS=$LIBS
19449 LIBS="-ldnet  $LIBS"
19450 if test x$gcc_no_link = xyes; then
19451   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19453    { (exit 1); exit 1; }; }
19454 fi
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h.  */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h.  */
19461
19462 /* Override any gcc2 internal prototype to avoid an error.  */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 /* We use char because int might match the return type of a gcc2
19467    builtin and then its argument prototype would still apply.  */
19468 char dnet_ntoa ();
19469 int
19470 main ()
19471 {
19472 dnet_ntoa ();
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479   (eval $ac_link) 2>conftest.er1
19480   ac_status=$?
19481   grep -v '^ *+' conftest.er1 >conftest.err
19482   rm -f conftest.er1
19483   cat conftest.err >&5
19484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485   (exit $ac_status); } &&
19486          { ac_try='test -z "$ac_c_werror_flag"
19487                          || test ! -s conftest.err'
19488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489   (eval $ac_try) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); }; } &&
19493          { ac_try='test -s conftest$ac_exeext'
19494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495   (eval $ac_try) 2>&5
19496   ac_status=$?
19497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498   (exit $ac_status); }; }; then
19499   ac_cv_lib_dnet_dnet_ntoa=yes
19500 else
19501   echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504 ac_cv_lib_dnet_dnet_ntoa=no
19505 fi
19506 rm -f conftest.err conftest.$ac_objext \
19507       conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19509 fi
19510 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19511 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19512 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19513   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19514 fi
19515
19516     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19517       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19518 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19519 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19520   echo $ECHO_N "(cached) $ECHO_C" >&6
19521 else
19522   ac_check_lib_save_LIBS=$LIBS
19523 LIBS="-ldnet_stub  $LIBS"
19524 if test x$gcc_no_link = xyes; then
19525   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19526 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19527    { (exit 1); exit 1; }; }
19528 fi
19529 cat >conftest.$ac_ext <<_ACEOF
19530 /* confdefs.h.  */
19531 _ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h.  */
19535
19536 /* Override any gcc2 internal prototype to avoid an error.  */
19537 #ifdef __cplusplus
19538 extern "C"
19539 #endif
19540 /* We use char because int might match the return type of a gcc2
19541    builtin and then its argument prototype would still apply.  */
19542 char dnet_ntoa ();
19543 int
19544 main ()
19545 {
19546 dnet_ntoa ();
19547   ;
19548   return 0;
19549 }
19550 _ACEOF
19551 rm -f conftest.$ac_objext conftest$ac_exeext
19552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19553   (eval $ac_link) 2>conftest.er1
19554   ac_status=$?
19555   grep -v '^ *+' conftest.er1 >conftest.err
19556   rm -f conftest.er1
19557   cat conftest.err >&5
19558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559   (exit $ac_status); } &&
19560          { ac_try='test -z "$ac_c_werror_flag"
19561                          || test ! -s conftest.err'
19562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563   (eval $ac_try) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; } &&
19567          { ac_try='test -s conftest$ac_exeext'
19568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569   (eval $ac_try) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; }; then
19573   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19574 else
19575   echo "$as_me: failed program was:" >&5
19576 sed 's/^/| /' conftest.$ac_ext >&5
19577
19578 ac_cv_lib_dnet_stub_dnet_ntoa=no
19579 fi
19580 rm -f conftest.err conftest.$ac_objext \
19581       conftest$ac_exeext conftest.$ac_ext
19582 LIBS=$ac_check_lib_save_LIBS
19583 fi
19584 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19585 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19586 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19587   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19588 fi
19589
19590     fi
19591 fi
19592 rm -f conftest.err conftest.$ac_objext \
19593       conftest$ac_exeext conftest.$ac_ext
19594     LIBS="$ac_xsave_LIBS"
19595
19596     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19597     # to get the SysV transport functions.
19598     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19599     # needs -lnsl.
19600     # The nsl library prevents programs from opening the X display
19601     # on Irix 5.2, according to T.E. Dickey.
19602     # The functions gethostbyname, getservbyname, and inet_addr are
19603     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19604     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19605 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19606 if test "${ac_cv_func_gethostbyname+set}" = set; then
19607   echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609   if test x$gcc_no_link = xyes; then
19610   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19612    { (exit 1); exit 1; }; }
19613 fi
19614 cat >conftest.$ac_ext <<_ACEOF
19615 /* confdefs.h.  */
19616 _ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h.  */
19620 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19622 #define gethostbyname innocuous_gethostbyname
19623
19624 /* System header to define __stub macros and hopefully few prototypes,
19625     which can conflict with char gethostbyname (); below.
19626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19627     <limits.h> exists even on freestanding compilers.  */
19628
19629 #ifdef __STDC__
19630 # include <limits.h>
19631 #else
19632 # include <assert.h>
19633 #endif
19634
19635 #undef gethostbyname
19636
19637 /* Override any gcc2 internal prototype to avoid an error.  */
19638 #ifdef __cplusplus
19639 extern "C"
19640 {
19641 #endif
19642 /* We use char because int might match the return type of a gcc2
19643    builtin and then its argument prototype would still apply.  */
19644 char gethostbyname ();
19645 /* The GNU C library defines this for functions which it implements
19646     to always fail with ENOSYS.  Some functions are actually named
19647     something starting with __ and the normal name is an alias.  */
19648 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19649 choke me
19650 #else
19651 char (*f) () = gethostbyname;
19652 #endif
19653 #ifdef __cplusplus
19654 }
19655 #endif
19656
19657 int
19658 main ()
19659 {
19660 return f != gethostbyname;
19661   ;
19662   return 0;
19663 }
19664 _ACEOF
19665 rm -f conftest.$ac_objext conftest$ac_exeext
19666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19667   (eval $ac_link) 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } &&
19674          { ac_try='test -z "$ac_c_werror_flag"
19675                          || test ! -s conftest.err'
19676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19677   (eval $ac_try) 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; } &&
19681          { ac_try='test -s conftest$ac_exeext'
19682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683   (eval $ac_try) 2>&5
19684   ac_status=$?
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); }; }; then
19687   ac_cv_func_gethostbyname=yes
19688 else
19689   echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692 ac_cv_func_gethostbyname=no
19693 fi
19694 rm -f conftest.err conftest.$ac_objext \
19695       conftest$ac_exeext conftest.$ac_ext
19696 fi
19697 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19698 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19699
19700     if test $ac_cv_func_gethostbyname = no; then
19701       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19702 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19703 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lnsl  $LIBS"
19708 if test x$gcc_no_link = xyes; then
19709   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19711    { (exit 1); exit 1; }; }
19712 fi
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719
19720 /* Override any gcc2 internal prototype to avoid an error.  */
19721 #ifdef __cplusplus
19722 extern "C"
19723 #endif
19724 /* We use char because int might match the return type of a gcc2
19725    builtin and then its argument prototype would still apply.  */
19726 char gethostbyname ();
19727 int
19728 main ()
19729 {
19730 gethostbyname ();
19731   ;
19732   return 0;
19733 }
19734 _ACEOF
19735 rm -f conftest.$ac_objext conftest$ac_exeext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737   (eval $ac_link) 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } &&
19744          { ac_try='test -z "$ac_c_werror_flag"
19745                          || test ! -s conftest.err'
19746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747   (eval $ac_try) 2>&5
19748   ac_status=$?
19749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750   (exit $ac_status); }; } &&
19751          { ac_try='test -s conftest$ac_exeext'
19752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753   (eval $ac_try) 2>&5
19754   ac_status=$?
19755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756   (exit $ac_status); }; }; then
19757   ac_cv_lib_nsl_gethostbyname=yes
19758 else
19759   echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_cv_lib_nsl_gethostbyname=no
19763 fi
19764 rm -f conftest.err conftest.$ac_objext \
19765       conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19767 fi
19768 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19769 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19770 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19771   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19772 fi
19773
19774       if test $ac_cv_lib_nsl_gethostbyname = no; then
19775         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19776 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19777 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19778   echo $ECHO_N "(cached) $ECHO_C" >&6
19779 else
19780   ac_check_lib_save_LIBS=$LIBS
19781 LIBS="-lbsd  $LIBS"
19782 if test x$gcc_no_link = xyes; then
19783   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19784 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19785    { (exit 1); exit 1; }; }
19786 fi
19787 cat >conftest.$ac_ext <<_ACEOF
19788 /* confdefs.h.  */
19789 _ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h.  */
19793
19794 /* Override any gcc2 internal prototype to avoid an error.  */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 /* We use char because int might match the return type of a gcc2
19799    builtin and then its argument prototype would still apply.  */
19800 char gethostbyname ();
19801 int
19802 main ()
19803 {
19804 gethostbyname ();
19805   ;
19806   return 0;
19807 }
19808 _ACEOF
19809 rm -f conftest.$ac_objext conftest$ac_exeext
19810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19811   (eval $ac_link) 2>conftest.er1
19812   ac_status=$?
19813   grep -v '^ *+' conftest.er1 >conftest.err
19814   rm -f conftest.er1
19815   cat conftest.err >&5
19816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817   (exit $ac_status); } &&
19818          { ac_try='test -z "$ac_c_werror_flag"
19819                          || test ! -s conftest.err'
19820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821   (eval $ac_try) 2>&5
19822   ac_status=$?
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); }; } &&
19825          { ac_try='test -s conftest$ac_exeext'
19826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827   (eval $ac_try) 2>&5
19828   ac_status=$?
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); }; }; then
19831   ac_cv_lib_bsd_gethostbyname=yes
19832 else
19833   echo "$as_me: failed program was:" >&5
19834 sed 's/^/| /' conftest.$ac_ext >&5
19835
19836 ac_cv_lib_bsd_gethostbyname=no
19837 fi
19838 rm -f conftest.err conftest.$ac_objext \
19839       conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19841 fi
19842 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19843 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19844 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19845   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19846 fi
19847
19848       fi
19849     fi
19850
19851     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19852     # socket/setsockopt and other routines are undefined under SCO ODT
19853     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19854     # on later versions), says Simon Leinen: it contains gethostby*
19855     # variants that don't use the name server (or something).  -lsocket
19856     # must be given before -lnsl if both are needed.  We assume that
19857     # if connect needs -lnsl, so does gethostbyname.
19858     echo "$as_me:$LINENO: checking for connect" >&5
19859 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19860 if test "${ac_cv_func_connect+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   if test x$gcc_no_link = xyes; then
19864   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19865 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19866    { (exit 1); exit 1; }; }
19867 fi
19868 cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h.  */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h.  */
19874 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19876 #define connect innocuous_connect
19877
19878 /* System header to define __stub macros and hopefully few prototypes,
19879     which can conflict with char connect (); below.
19880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19881     <limits.h> exists even on freestanding compilers.  */
19882
19883 #ifdef __STDC__
19884 # include <limits.h>
19885 #else
19886 # include <assert.h>
19887 #endif
19888
19889 #undef connect
19890
19891 /* Override any gcc2 internal prototype to avoid an error.  */
19892 #ifdef __cplusplus
19893 extern "C"
19894 {
19895 #endif
19896 /* We use char because int might match the return type of a gcc2
19897    builtin and then its argument prototype would still apply.  */
19898 char connect ();
19899 /* The GNU C library defines this for functions which it implements
19900     to always fail with ENOSYS.  Some functions are actually named
19901     something starting with __ and the normal name is an alias.  */
19902 #if defined (__stub_connect) || defined (__stub___connect)
19903 choke me
19904 #else
19905 char (*f) () = connect;
19906 #endif
19907 #ifdef __cplusplus
19908 }
19909 #endif
19910
19911 int
19912 main ()
19913 {
19914 return f != connect;
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921   (eval $ac_link) 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } &&
19928          { ac_try='test -z "$ac_c_werror_flag"
19929                          || test ! -s conftest.err'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; } &&
19935          { ac_try='test -s conftest$ac_exeext'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   ac_cv_func_connect=yes
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ac_cv_func_connect=no
19947 fi
19948 rm -f conftest.err conftest.$ac_objext \
19949       conftest$ac_exeext conftest.$ac_ext
19950 fi
19951 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19952 echo "${ECHO_T}$ac_cv_func_connect" >&6
19953
19954     if test $ac_cv_func_connect = no; then
19955       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19956 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19957 if test "${ac_cv_lib_socket_connect+set}" = set; then
19958   echo $ECHO_N "(cached) $ECHO_C" >&6
19959 else
19960   ac_check_lib_save_LIBS=$LIBS
19961 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19962 if test x$gcc_no_link = xyes; then
19963   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19965    { (exit 1); exit 1; }; }
19966 fi
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h.  */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h.  */
19973
19974 /* Override any gcc2 internal prototype to avoid an error.  */
19975 #ifdef __cplusplus
19976 extern "C"
19977 #endif
19978 /* We use char because int might match the return type of a gcc2
19979    builtin and then its argument prototype would still apply.  */
19980 char connect ();
19981 int
19982 main ()
19983 {
19984 connect ();
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991   (eval $ac_link) 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } &&
19998          { ac_try='test -z "$ac_c_werror_flag"
19999                          || test ! -s conftest.err'
20000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001   (eval $ac_try) 2>&5
20002   ac_status=$?
20003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004   (exit $ac_status); }; } &&
20005          { ac_try='test -s conftest$ac_exeext'
20006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20007   (eval $ac_try) 2>&5
20008   ac_status=$?
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); }; }; then
20011   ac_cv_lib_socket_connect=yes
20012 else
20013   echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ac_cv_lib_socket_connect=no
20017 fi
20018 rm -f conftest.err conftest.$ac_objext \
20019       conftest$ac_exeext conftest.$ac_ext
20020 LIBS=$ac_check_lib_save_LIBS
20021 fi
20022 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20023 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20024 if test $ac_cv_lib_socket_connect = yes; then
20025   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20026 fi
20027
20028     fi
20029
20030     # Guillermo Gomez says -lposix is necessary on A/UX.
20031     echo "$as_me:$LINENO: checking for remove" >&5
20032 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20033 if test "${ac_cv_func_remove+set}" = set; then
20034   echo $ECHO_N "(cached) $ECHO_C" >&6
20035 else
20036   if test x$gcc_no_link = xyes; then
20037   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20039    { (exit 1); exit 1; }; }
20040 fi
20041 cat >conftest.$ac_ext <<_ACEOF
20042 /* confdefs.h.  */
20043 _ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h.  */
20047 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20049 #define remove innocuous_remove
20050
20051 /* System header to define __stub macros and hopefully few prototypes,
20052     which can conflict with char remove (); below.
20053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20054     <limits.h> exists even on freestanding compilers.  */
20055
20056 #ifdef __STDC__
20057 # include <limits.h>
20058 #else
20059 # include <assert.h>
20060 #endif
20061
20062 #undef remove
20063
20064 /* Override any gcc2 internal prototype to avoid an error.  */
20065 #ifdef __cplusplus
20066 extern "C"
20067 {
20068 #endif
20069 /* We use char because int might match the return type of a gcc2
20070    builtin and then its argument prototype would still apply.  */
20071 char remove ();
20072 /* The GNU C library defines this for functions which it implements
20073     to always fail with ENOSYS.  Some functions are actually named
20074     something starting with __ and the normal name is an alias.  */
20075 #if defined (__stub_remove) || defined (__stub___remove)
20076 choke me
20077 #else
20078 char (*f) () = remove;
20079 #endif
20080 #ifdef __cplusplus
20081 }
20082 #endif
20083
20084 int
20085 main ()
20086 {
20087 return f != remove;
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext conftest$ac_exeext
20093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20094   (eval $ac_link) 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } &&
20101          { ac_try='test -z "$ac_c_werror_flag"
20102                          || test ! -s conftest.err'
20103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104   (eval $ac_try) 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); }; } &&
20108          { ac_try='test -s conftest$ac_exeext'
20109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110   (eval $ac_try) 2>&5
20111   ac_status=$?
20112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113   (exit $ac_status); }; }; then
20114   ac_cv_func_remove=yes
20115 else
20116   echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_cv_func_remove=no
20120 fi
20121 rm -f conftest.err conftest.$ac_objext \
20122       conftest$ac_exeext conftest.$ac_ext
20123 fi
20124 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20125 echo "${ECHO_T}$ac_cv_func_remove" >&6
20126
20127     if test $ac_cv_func_remove = no; then
20128       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20129 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20130 if test "${ac_cv_lib_posix_remove+set}" = set; then
20131   echo $ECHO_N "(cached) $ECHO_C" >&6
20132 else
20133   ac_check_lib_save_LIBS=$LIBS
20134 LIBS="-lposix  $LIBS"
20135 if test x$gcc_no_link = xyes; then
20136   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20138    { (exit 1); exit 1; }; }
20139 fi
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h.  */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h.  */
20146
20147 /* Override any gcc2 internal prototype to avoid an error.  */
20148 #ifdef __cplusplus
20149 extern "C"
20150 #endif
20151 /* We use char because int might match the return type of a gcc2
20152    builtin and then its argument prototype would still apply.  */
20153 char remove ();
20154 int
20155 main ()
20156 {
20157 remove ();
20158   ;
20159   return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20164   (eval $ac_link) 2>conftest.er1
20165   ac_status=$?
20166   grep -v '^ *+' conftest.er1 >conftest.err
20167   rm -f conftest.er1
20168   cat conftest.err >&5
20169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170   (exit $ac_status); } &&
20171          { ac_try='test -z "$ac_c_werror_flag"
20172                          || test ! -s conftest.err'
20173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174   (eval $ac_try) 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; } &&
20178          { ac_try='test -s conftest$ac_exeext'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; }; then
20184   ac_cv_lib_posix_remove=yes
20185 else
20186   echo "$as_me: failed program was:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20188
20189 ac_cv_lib_posix_remove=no
20190 fi
20191 rm -f conftest.err conftest.$ac_objext \
20192       conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20194 fi
20195 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20196 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20197 if test $ac_cv_lib_posix_remove = yes; then
20198   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20199 fi
20200
20201     fi
20202
20203     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20204     echo "$as_me:$LINENO: checking for shmat" >&5
20205 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20206 if test "${ac_cv_func_shmat+set}" = set; then
20207   echo $ECHO_N "(cached) $ECHO_C" >&6
20208 else
20209   if test x$gcc_no_link = xyes; then
20210   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20211 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20212    { (exit 1); exit 1; }; }
20213 fi
20214 cat >conftest.$ac_ext <<_ACEOF
20215 /* confdefs.h.  */
20216 _ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h.  */
20220 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20222 #define shmat innocuous_shmat
20223
20224 /* System header to define __stub macros and hopefully few prototypes,
20225     which can conflict with char shmat (); below.
20226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20227     <limits.h> exists even on freestanding compilers.  */
20228
20229 #ifdef __STDC__
20230 # include <limits.h>
20231 #else
20232 # include <assert.h>
20233 #endif
20234
20235 #undef shmat
20236
20237 /* Override any gcc2 internal prototype to avoid an error.  */
20238 #ifdef __cplusplus
20239 extern "C"
20240 {
20241 #endif
20242 /* We use char because int might match the return type of a gcc2
20243    builtin and then its argument prototype would still apply.  */
20244 char shmat ();
20245 /* The GNU C library defines this for functions which it implements
20246     to always fail with ENOSYS.  Some functions are actually named
20247     something starting with __ and the normal name is an alias.  */
20248 #if defined (__stub_shmat) || defined (__stub___shmat)
20249 choke me
20250 #else
20251 char (*f) () = shmat;
20252 #endif
20253 #ifdef __cplusplus
20254 }
20255 #endif
20256
20257 int
20258 main ()
20259 {
20260 return f != shmat;
20261   ;
20262   return 0;
20263 }
20264 _ACEOF
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267   (eval $ac_link) 2>conftest.er1
20268   ac_status=$?
20269   grep -v '^ *+' conftest.er1 >conftest.err
20270   rm -f conftest.er1
20271   cat conftest.err >&5
20272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273   (exit $ac_status); } &&
20274          { ac_try='test -z "$ac_c_werror_flag"
20275                          || test ! -s conftest.err'
20276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20277   (eval $ac_try) 2>&5
20278   ac_status=$?
20279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280   (exit $ac_status); }; } &&
20281          { ac_try='test -s conftest$ac_exeext'
20282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20283   (eval $ac_try) 2>&5
20284   ac_status=$?
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); }; }; then
20287   ac_cv_func_shmat=yes
20288 else
20289   echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20291
20292 ac_cv_func_shmat=no
20293 fi
20294 rm -f conftest.err conftest.$ac_objext \
20295       conftest$ac_exeext conftest.$ac_ext
20296 fi
20297 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20298 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20299
20300     if test $ac_cv_func_shmat = no; then
20301       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20302 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20303 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20304   echo $ECHO_N "(cached) $ECHO_C" >&6
20305 else
20306   ac_check_lib_save_LIBS=$LIBS
20307 LIBS="-lipc  $LIBS"
20308 if test x$gcc_no_link = xyes; then
20309   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20310 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20311    { (exit 1); exit 1; }; }
20312 fi
20313 cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319
20320 /* Override any gcc2 internal prototype to avoid an error.  */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 /* We use char because int might match the return type of a gcc2
20325    builtin and then its argument prototype would still apply.  */
20326 char shmat ();
20327 int
20328 main ()
20329 {
20330 shmat ();
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337   (eval $ac_link) 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } &&
20344          { ac_try='test -z "$ac_c_werror_flag"
20345                          || test ! -s conftest.err'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest$ac_exeext'
20352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353   (eval $ac_try) 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; }; then
20357   ac_cv_lib_ipc_shmat=yes
20358 else
20359   echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ac_cv_lib_ipc_shmat=no
20363 fi
20364 rm -f conftest.err conftest.$ac_objext \
20365       conftest$ac_exeext conftest.$ac_ext
20366 LIBS=$ac_check_lib_save_LIBS
20367 fi
20368 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20369 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20370 if test $ac_cv_lib_ipc_shmat = yes; then
20371   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20372 fi
20373
20374     fi
20375   fi
20376
20377   # Check for libraries that X11R6 Xt/Xaw programs need.
20378   ac_save_LDFLAGS=$LDFLAGS
20379   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20380   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20381   # check for ICE first), but we must link in the order -lSM -lICE or
20382   # we get undefined symbols.  So assume we have SM if we have ICE.
20383   # These have to be linked with before -lX11, unlike the other
20384   # libraries we check for below, so use a different variable.
20385   # John Interrante, Karl Berry
20386   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20387 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20388 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   ac_check_lib_save_LIBS=$LIBS
20392 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20393 if test x$gcc_no_link = xyes; then
20394   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20395 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20396    { (exit 1); exit 1; }; }
20397 fi
20398 cat >conftest.$ac_ext <<_ACEOF
20399 /* confdefs.h.  */
20400 _ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h.  */
20404
20405 /* Override any gcc2 internal prototype to avoid an error.  */
20406 #ifdef __cplusplus
20407 extern "C"
20408 #endif
20409 /* We use char because int might match the return type of a gcc2
20410    builtin and then its argument prototype would still apply.  */
20411 char IceConnectionNumber ();
20412 int
20413 main ()
20414 {
20415 IceConnectionNumber ();
20416   ;
20417   return 0;
20418 }
20419 _ACEOF
20420 rm -f conftest.$ac_objext conftest$ac_exeext
20421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20422   (eval $ac_link) 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } &&
20429          { ac_try='test -z "$ac_c_werror_flag"
20430                          || test ! -s conftest.err'
20431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20432   (eval $ac_try) 2>&5
20433   ac_status=$?
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); }; } &&
20436          { ac_try='test -s conftest$ac_exeext'
20437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438   (eval $ac_try) 2>&5
20439   ac_status=$?
20440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441   (exit $ac_status); }; }; then
20442   ac_cv_lib_ICE_IceConnectionNumber=yes
20443 else
20444   echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447 ac_cv_lib_ICE_IceConnectionNumber=no
20448 fi
20449 rm -f conftest.err conftest.$ac_objext \
20450       conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_check_lib_save_LIBS
20452 fi
20453 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20454 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20455 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20456   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20457 fi
20458
20459   LDFLAGS=$ac_save_LDFLAGS
20460
20461 fi
20462
20463
20464 # FIXME: this should be _libs on some hosts.
20465 libsubdir=.libs
20466
20467 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20468
20469 LIBSTDCXXSPEC=
20470 # extra LD Flags which are required for targets
20471 case "${host}" in
20472 *-*-darwin[0-7].*)
20473     # For now we have to disable it on darwin[8-9] because it slows down
20474     # the linking phase. A possible bug in ld?
20475     # on Darwin -single_module speeds up loading of the dynamic libraries.
20476     extra_ldflags_libjava=-Wl,-single_module
20477     ;;
20478 *-*-darwin[9]*)
20479     extra_gij_ldflags=-Wl,-allow_stack_execute
20480     ;;
20481 arm*linux*eabi)
20482     # Some of the ARM unwinder code is actually in libstdc++.  We
20483     # could in principle replicate it in libgcj, but it's better to
20484     # have a dependency on libstdc++.
20485     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20486     LIBSTDCXXSPEC=-lstdc++
20487     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20488     ;;
20489 esac
20490
20491
20492
20493
20494
20495
20496
20497 # Allow the GC to be disabled.  Can be useful when debugging.
20498 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20499 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20500 # Check whether --enable-java-gc or --disable-java-gc was given.
20501 if test "${enable_java_gc+set}" = set; then
20502   enableval="$enable_java_gc"
20503   GC=$enableval
20504 else
20505   GC=boehm
20506 fi;
20507 GCLIBS=
20508 GCINCS=
20509 GCDEPS=
20510 GCSPEC=
20511 JC1GCSPEC=
20512 GCTESTSPEC=
20513 case "$GC" in
20514  boehm)
20515     echo "$as_me:$LINENO: result: boehm" >&5
20516 echo "${ECHO_T}boehm" >&6
20517     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20518     JC1GCSPEC='-fuse-boehm-gc'
20519     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20520     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20521     GCOBJS=boehm.lo
20522     GCHDR=boehm-gc.h
20523     # The POSIX thread support needs to know this.
20524
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE_BOEHM_GC 1
20527 _ACEOF
20528
20529     ;;
20530  no)
20531     echo "$as_me:$LINENO: result: none" >&5
20532 echo "${ECHO_T}none" >&6
20533     GCHDR=no-gc.h
20534     ;;
20535  *)
20536     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20537 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20538    { (exit 1); exit 1; }; }
20539     ;;
20540 esac
20541
20542
20543
20544
20545
20546
20547           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20548
20549
20550
20551 if test "$GC" = boehm; then
20552   USING_BOEHMGC_TRUE=
20553   USING_BOEHMGC_FALSE='#'
20554 else
20555   USING_BOEHMGC_TRUE='#'
20556   USING_BOEHMGC_FALSE=
20557 fi
20558
20559
20560
20561 if test "$GC" = no; then
20562   USING_NOGC_TRUE=
20563   USING_NOGC_FALSE='#'
20564 else
20565   USING_NOGC_TRUE='#'
20566   USING_NOGC_FALSE=
20567 fi
20568
20569
20570
20571 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20572 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20573 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20574 echo "$as_me:$LINENO: result: $THREADS" >&5
20575 echo "${ECHO_T}$THREADS" >&6
20576
20577 case "$THREADS" in
20578  no | none | single)
20579     THREADS=none
20580     ;;
20581  posix | posix95 | pthreads)
20582     THREADS=posix
20583     case "$host" in
20584      *-*-linux*)
20585
20586 cat >>confdefs.h <<\_ACEOF
20587 #define LINUX_THREADS 1
20588 _ACEOF
20589
20590         ;;
20591     esac
20592     ;;
20593  win32)
20594     ;;
20595  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20596     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20597 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20598    { (exit 1); exit 1; }; }
20599     ;;
20600  *)
20601     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20602 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20603    { (exit 1); exit 1; }; }
20604     ;;
20605 esac
20606
20607 THREADCXXFLAGS=
20608 THREADLDFLAGS=
20609 THREADLIBS=
20610 THREADINCS=
20611 THREADDEPS=
20612 THREADH=
20613 THREADSPEC=
20614 THREADSTARTFILESPEC=
20615 case "$THREADS" in
20616  posix)
20617     case "$host" in
20618      *-*-cygwin*)
20619         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20620         ;;
20621      *-*-freebsd[1234]*)
20622         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20623         # merely adds pthread_* functions) but it does have a -pthread switch
20624         # which is required at link-time to select -lc_r *instead* of -lc.
20625         THREADLDFLAGS=-pthread
20626         # Don't set THREADSPEC here as might be expected since -pthread is
20627         # not processed when found within a spec file, it must come from
20628         # the command line.  For now, the user must provide the -pthread
20629         # switch to link code compiled with gcj.  In future, consider adding
20630         # support for weak references to pthread_* functions ala gthr.h API.
20631         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20632         ;;
20633      *-*-freebsd*)
20634         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20635         # systems which support threads and -lpthread.
20636         THREADLDFLAGS=-pthread
20637         THREADSPEC=-lpthread
20638         ;;
20639      alpha*-dec-osf* | hppa*-hp-hpux*)
20640         THREADCXXFLAGS=-pthread
20641         # boehm-gc needs some functions from librt, so link that too.
20642         THREADLIBS='-lpthread -lrt'
20643         THREADSPEC='-lpthread -lrt'
20644         ;;
20645      *)
20646         THREADLIBS=-lpthread
20647         THREADSPEC=-lpthread
20648         ;;
20649     esac
20650     THREADH=posix-threads.h
20651     # MIT pthreads doesn't seem to have the mutexattr functions.
20652     # But for now we don't check for it.  We just assume you aren't
20653     # using MIT pthreads.
20654
20655 cat >>confdefs.h <<\_ACEOF
20656 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20657 _ACEOF
20658
20659
20660     # If we're using the Boehm GC, then we happen to know that it
20661     # defines _REENTRANT, so we don't bother.  Eww.
20662     if test "$GC" != boehm; then
20663
20664 cat >>confdefs.h <<\_ACEOF
20665 #define _REENTRANT 1
20666 _ACEOF
20667
20668     fi
20669
20670 cat >>confdefs.h <<\_ACEOF
20671 #define _POSIX_PTHREAD_SEMANTICS 1
20672 _ACEOF
20673
20674     ;;
20675
20676  win32)
20677     THREADH=win32-threads.h
20678     THREADCXXFLAGS=-mthreads
20679     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20680     # But we do not want the executables created to be dependent on
20681     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20682     # exception handling contexts.  The following kludge achieves this effect
20683     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20684     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20685     # A workaround is to explicitly use -mthreads while linking Java programs.
20686     # See PR libgcj/28263.
20687     #
20688     # FIXME: In Java we are able to detect thread death at the end of
20689     # Thread.run() so we should be able to clean up the exception handling
20690     # contexts ourselves.
20691     THREADSTARTFILESPEC='crtmt%O%s'
20692     ;;
20693
20694  none)
20695     THREADH=no-threads.h
20696     ;;
20697 esac
20698           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709 if test "$THREADS" = posix; then
20710   USING_POSIX_THREADS_TRUE=
20711   USING_POSIX_THREADS_FALSE='#'
20712 else
20713   USING_POSIX_THREADS_TRUE='#'
20714   USING_POSIX_THREADS_FALSE=
20715 fi
20716
20717
20718
20719 if test "$THREADS" = win32; then
20720   USING_WIN32_THREADS_TRUE=
20721   USING_WIN32_THREADS_FALSE='#'
20722 else
20723   USING_WIN32_THREADS_TRUE='#'
20724   USING_WIN32_THREADS_FALSE=
20725 fi
20726
20727
20728
20729 if test "$THREADS" = none; then
20730   USING_NO_THREADS_TRUE=
20731   USING_NO_THREADS_FALSE='#'
20732 else
20733   USING_NO_THREADS_TRUE='#'
20734   USING_NO_THREADS_FALSE=
20735 fi
20736
20737
20738
20739 if test "$use_libgcj_bc" = yes; then
20740   USE_LIBGCJ_BC_TRUE=
20741   USE_LIBGCJ_BC_FALSE='#'
20742 else
20743   USE_LIBGCJ_BC_TRUE='#'
20744   USE_LIBGCJ_BC_FALSE=
20745 fi
20746
20747
20748 if test -d sysdep; then true; else mkdir sysdep; fi
20749           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20750
20751           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20752
20753           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20754
20755
20756 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20757 if test "$use_libgcj_bc" = yes; then
20758   LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20759 fi
20760
20761
20762 HASH_SYNC_SPEC=
20763 # Hash synchronization is only useful with posix threads right now.
20764 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20765    HASH_SYNC_SPEC=-fhash-synchronization
20766
20767 cat >>confdefs.h <<\_ACEOF
20768 #define JV_HASH_SYNCHRONIZATION 1
20769 _ACEOF
20770
20771 fi
20772
20773
20774
20775
20776 if test "$GCC" = yes; then
20777   USING_GCC_TRUE=
20778   USING_GCC_FALSE='#'
20779 else
20780   USING_GCC_TRUE='#'
20781   USING_GCC_FALSE=
20782 fi
20783
20784
20785 # We're in the tree with gcc, and need to include some of its headers.
20786 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20787
20788 if test "x${with_newlib}" = "xyes"; then
20789    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20790    # may not work correctly, because the compiler may not be able to
20791    # link executables.
20792
20793    # We assume newlib.  This lets us hard-code the functions we know
20794    # we'll have.
20795
20796 cat >>confdefs.h <<\_ACEOF
20797 #define HAVE_MEMMOVE 1
20798 _ACEOF
20799
20800
20801 cat >>confdefs.h <<\_ACEOF
20802 #define HAVE_MEMCPY 1
20803 _ACEOF
20804
20805
20806 cat >>confdefs.h <<\_ACEOF
20807 #define HAVE_TIME 1
20808 _ACEOF
20809
20810
20811 cat >>confdefs.h <<\_ACEOF
20812 #define HAVE_GMTIME_R 1
20813 _ACEOF
20814
20815
20816 cat >>confdefs.h <<\_ACEOF
20817 #define HAVE_LOCALTIME_R 1
20818 _ACEOF
20819
20820
20821 cat >>confdefs.h <<\_ACEOF
20822 #define HAVE_USLEEP_DECL 1
20823 _ACEOF
20824
20825    # This is only for POSIX threads.
20826
20827 cat >>confdefs.h <<\_ACEOF
20828 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20829 _ACEOF
20830
20831
20832    # Assume we do not have getuid and friends.
20833
20834 cat >>confdefs.h <<\_ACEOF
20835 #define NO_GETUID 1
20836 _ACEOF
20837
20838    PLATFORMNET=NoNet
20839 else
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870 for ac_func in strerror_r select fstat open fsync sleep opendir \
20871                    localtime_r getpwuid_r getcwd \
20872                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20873                    nl_langinfo setlocale \
20874                    inet_pton uname inet_ntoa \
20875                    getrlimit sigaction ftruncate mmap \
20876                    getifaddrs
20877 do
20878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20879 echo "$as_me:$LINENO: checking for $ac_func" >&5
20880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20881 if eval "test \"\${$as_ac_var+set}\" = set"; then
20882   echo $ECHO_N "(cached) $ECHO_C" >&6
20883 else
20884   if test x$gcc_no_link = xyes; then
20885   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20887    { (exit 1); exit 1; }; }
20888 fi
20889 cat >conftest.$ac_ext <<_ACEOF
20890 /* confdefs.h.  */
20891 _ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h.  */
20895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20896    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20897 #define $ac_func innocuous_$ac_func
20898
20899 /* System header to define __stub macros and hopefully few prototypes,
20900     which can conflict with char $ac_func (); below.
20901     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20902     <limits.h> exists even on freestanding compilers.  */
20903
20904 #ifdef __STDC__
20905 # include <limits.h>
20906 #else
20907 # include <assert.h>
20908 #endif
20909
20910 #undef $ac_func
20911
20912 /* Override any gcc2 internal prototype to avoid an error.  */
20913 #ifdef __cplusplus
20914 extern "C"
20915 {
20916 #endif
20917 /* We use char because int might match the return type of a gcc2
20918    builtin and then its argument prototype would still apply.  */
20919 char $ac_func ();
20920 /* The GNU C library defines this for functions which it implements
20921     to always fail with ENOSYS.  Some functions are actually named
20922     something starting with __ and the normal name is an alias.  */
20923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20924 choke me
20925 #else
20926 char (*f) () = $ac_func;
20927 #endif
20928 #ifdef __cplusplus
20929 }
20930 #endif
20931
20932 int
20933 main ()
20934 {
20935 return f != $ac_func;
20936   ;
20937   return 0;
20938 }
20939 _ACEOF
20940 rm -f conftest.$ac_objext conftest$ac_exeext
20941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942   (eval $ac_link) 2>conftest.er1
20943   ac_status=$?
20944   grep -v '^ *+' conftest.er1 >conftest.err
20945   rm -f conftest.er1
20946   cat conftest.err >&5
20947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948   (exit $ac_status); } &&
20949          { ac_try='test -z "$ac_c_werror_flag"
20950                          || test ! -s conftest.err'
20951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952   (eval $ac_try) 2>&5
20953   ac_status=$?
20954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955   (exit $ac_status); }; } &&
20956          { ac_try='test -s conftest$ac_exeext'
20957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20958   (eval $ac_try) 2>&5
20959   ac_status=$?
20960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961   (exit $ac_status); }; }; then
20962   eval "$as_ac_var=yes"
20963 else
20964   echo "$as_me: failed program was:" >&5
20965 sed 's/^/| /' conftest.$ac_ext >&5
20966
20967 eval "$as_ac_var=no"
20968 fi
20969 rm -f conftest.err conftest.$ac_objext \
20970       conftest$ac_exeext conftest.$ac_ext
20971 fi
20972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20974 if test `eval echo '${'$as_ac_var'}'` = yes; then
20975   cat >>confdefs.h <<_ACEOF
20976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20977 _ACEOF
20978
20979 fi
20980 done
20981
20982
20983
20984 for ac_func in inet_aton inet_addr
20985 do
20986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20987 echo "$as_me:$LINENO: checking for $ac_func" >&5
20988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20989 if eval "test \"\${$as_ac_var+set}\" = set"; then
20990   echo $ECHO_N "(cached) $ECHO_C" >&6
20991 else
20992   if test x$gcc_no_link = xyes; then
20993   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20995    { (exit 1); exit 1; }; }
20996 fi
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h.  */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h.  */
21003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21005 #define $ac_func innocuous_$ac_func
21006
21007 /* System header to define __stub macros and hopefully few prototypes,
21008     which can conflict with char $ac_func (); below.
21009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21010     <limits.h> exists even on freestanding compilers.  */
21011
21012 #ifdef __STDC__
21013 # include <limits.h>
21014 #else
21015 # include <assert.h>
21016 #endif
21017
21018 #undef $ac_func
21019
21020 /* Override any gcc2 internal prototype to avoid an error.  */
21021 #ifdef __cplusplus
21022 extern "C"
21023 {
21024 #endif
21025 /* We use char because int might match the return type of a gcc2
21026    builtin and then its argument prototype would still apply.  */
21027 char $ac_func ();
21028 /* The GNU C library defines this for functions which it implements
21029     to always fail with ENOSYS.  Some functions are actually named
21030     something starting with __ and the normal name is an alias.  */
21031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21032 choke me
21033 #else
21034 char (*f) () = $ac_func;
21035 #endif
21036 #ifdef __cplusplus
21037 }
21038 #endif
21039
21040 int
21041 main ()
21042 {
21043 return f != $ac_func;
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 rm -f conftest.$ac_objext conftest$ac_exeext
21049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21050   (eval $ac_link) 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } &&
21057          { ac_try='test -z "$ac_c_werror_flag"
21058                          || test ! -s conftest.err'
21059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21060   (eval $ac_try) 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; } &&
21064          { ac_try='test -s conftest$ac_exeext'
21065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066   (eval $ac_try) 2>&5
21067   ac_status=$?
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); }; }; then
21070   eval "$as_ac_var=yes"
21071 else
21072   echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21074
21075 eval "$as_ac_var=no"
21076 fi
21077 rm -f conftest.err conftest.$ac_objext \
21078       conftest$ac_exeext conftest.$ac_ext
21079 fi
21080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21082 if test `eval echo '${'$as_ac_var'}'` = yes; then
21083   cat >>confdefs.h <<_ACEOF
21084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21085 _ACEOF
21086  break
21087 fi
21088 done
21089
21090
21091
21092
21093 for ac_header in unistd.h dlfcn.h sys/resource.h
21094 do
21095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21097   echo "$as_me:$LINENO: checking for $ac_header" >&5
21098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21100   echo $ECHO_N "(cached) $ECHO_C" >&6
21101 fi
21102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21104 else
21105   # Is the header compilable?
21106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 $ac_includes_default
21115 #include <$ac_header>
21116 _ACEOF
21117 rm -f conftest.$ac_objext
21118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21119   (eval $ac_compile) 2>conftest.er1
21120   ac_status=$?
21121   grep -v '^ *+' conftest.er1 >conftest.err
21122   rm -f conftest.er1
21123   cat conftest.err >&5
21124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125   (exit $ac_status); } &&
21126          { ac_try='test -z "$ac_c_werror_flag"
21127                          || test ! -s conftest.err'
21128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129   (eval $ac_try) 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; } &&
21133          { ac_try='test -s conftest.$ac_objext'
21134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21135   (eval $ac_try) 2>&5
21136   ac_status=$?
21137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138   (exit $ac_status); }; }; then
21139   ac_header_compiler=yes
21140 else
21141   echo "$as_me: failed program was:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21143
21144 ac_header_compiler=no
21145 fi
21146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148 echo "${ECHO_T}$ac_header_compiler" >&6
21149
21150 # Is the header present?
21151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21153 cat >conftest.$ac_ext <<_ACEOF
21154 /* confdefs.h.  */
21155 _ACEOF
21156 cat confdefs.h >>conftest.$ac_ext
21157 cat >>conftest.$ac_ext <<_ACEOF
21158 /* end confdefs.h.  */
21159 #include <$ac_header>
21160 _ACEOF
21161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21163   ac_status=$?
21164   grep -v '^ *+' conftest.er1 >conftest.err
21165   rm -f conftest.er1
21166   cat conftest.err >&5
21167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168   (exit $ac_status); } >/dev/null; then
21169   if test -s conftest.err; then
21170     ac_cpp_err=$ac_c_preproc_warn_flag
21171     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21172   else
21173     ac_cpp_err=
21174   fi
21175 else
21176   ac_cpp_err=yes
21177 fi
21178 if test -z "$ac_cpp_err"; then
21179   ac_header_preproc=yes
21180 else
21181   echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21183
21184   ac_header_preproc=no
21185 fi
21186 rm -f conftest.err conftest.$ac_ext
21187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21188 echo "${ECHO_T}$ac_header_preproc" >&6
21189
21190 # So?  What about this header?
21191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21192   yes:no: )
21193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21197     ac_header_preproc=yes
21198     ;;
21199   no:yes:* )
21200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21212     (
21213       cat <<\_ASBOX
21214 ## ---------------------------------- ##
21215 ## Report this to the libjava lists.  ##
21216 ## ---------------------------------- ##
21217 _ASBOX
21218     ) |
21219       sed "s/^/$as_me: WARNING:     /" >&2
21220     ;;
21221 esac
21222 echo "$as_me:$LINENO: checking for $ac_header" >&5
21223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21225   echo $ECHO_N "(cached) $ECHO_C" >&6
21226 else
21227   eval "$as_ac_Header=\$ac_header_preproc"
21228 fi
21229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21231
21232 fi
21233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21234   cat >>confdefs.h <<_ACEOF
21235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21236 _ACEOF
21237
21238 fi
21239
21240 done
21241
21242    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21243    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21244 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21245 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21246   echo $ECHO_N "(cached) $ECHO_C" >&6
21247 else
21248   ac_check_lib_save_LIBS=$LIBS
21249 LIBS="-ldl  $LIBS"
21250 if test x$gcc_no_link = xyes; then
21251   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21253    { (exit 1); exit 1; }; }
21254 fi
21255 cat >conftest.$ac_ext <<_ACEOF
21256 /* confdefs.h.  */
21257 _ACEOF
21258 cat confdefs.h >>conftest.$ac_ext
21259 cat >>conftest.$ac_ext <<_ACEOF
21260 /* end confdefs.h.  */
21261
21262 /* Override any gcc2 internal prototype to avoid an error.  */
21263 #ifdef __cplusplus
21264 extern "C"
21265 #endif
21266 /* We use char because int might match the return type of a gcc2
21267    builtin and then its argument prototype would still apply.  */
21268 char dladdr ();
21269 int
21270 main ()
21271 {
21272 dladdr ();
21273   ;
21274   return 0;
21275 }
21276 _ACEOF
21277 rm -f conftest.$ac_objext conftest$ac_exeext
21278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21279   (eval $ac_link) 2>conftest.er1
21280   ac_status=$?
21281   grep -v '^ *+' conftest.er1 >conftest.err
21282   rm -f conftest.er1
21283   cat conftest.err >&5
21284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285   (exit $ac_status); } &&
21286          { ac_try='test -z "$ac_c_werror_flag"
21287                          || test ! -s conftest.err'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; } &&
21293          { ac_try='test -s conftest$ac_exeext'
21294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295   (eval $ac_try) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; }; then
21299   ac_cv_lib_dl_dladdr=yes
21300 else
21301   echo "$as_me: failed program was:" >&5
21302 sed 's/^/| /' conftest.$ac_ext >&5
21303
21304 ac_cv_lib_dl_dladdr=no
21305 fi
21306 rm -f conftest.err conftest.$ac_objext \
21307       conftest$ac_exeext conftest.$ac_ext
21308 LIBS=$ac_check_lib_save_LIBS
21309 fi
21310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21311 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21312 if test $ac_cv_lib_dl_dladdr = yes; then
21313
21314
21315 cat >>confdefs.h <<\_ACEOF
21316 #define HAVE_DLADDR 1
21317 _ACEOF
21318
21319 else
21320
21321        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21322 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21323 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21324   echo $ECHO_N "(cached) $ECHO_C" >&6
21325 else
21326   ac_check_lib_save_LIBS=$LIBS
21327 LIBS="-ldld  $LIBS"
21328 if test x$gcc_no_link = xyes; then
21329   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21331    { (exit 1); exit 1; }; }
21332 fi
21333 cat >conftest.$ac_ext <<_ACEOF
21334 /* confdefs.h.  */
21335 _ACEOF
21336 cat confdefs.h >>conftest.$ac_ext
21337 cat >>conftest.$ac_ext <<_ACEOF
21338 /* end confdefs.h.  */
21339
21340 /* Override any gcc2 internal prototype to avoid an error.  */
21341 #ifdef __cplusplus
21342 extern "C"
21343 #endif
21344 /* We use char because int might match the return type of a gcc2
21345    builtin and then its argument prototype would still apply.  */
21346 char dladdr ();
21347 int
21348 main ()
21349 {
21350 dladdr ();
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext conftest$ac_exeext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21357   (eval $ac_link) 2>conftest.er1
21358   ac_status=$?
21359   grep -v '^ *+' conftest.er1 >conftest.err
21360   rm -f conftest.er1
21361   cat conftest.err >&5
21362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363   (exit $ac_status); } &&
21364          { ac_try='test -z "$ac_c_werror_flag"
21365                          || test ! -s conftest.err'
21366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367   (eval $ac_try) 2>&5
21368   ac_status=$?
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); }; } &&
21371          { ac_try='test -s conftest$ac_exeext'
21372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373   (eval $ac_try) 2>&5
21374   ac_status=$?
21375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376   (exit $ac_status); }; }; then
21377   ac_cv_lib_dld_dladdr=yes
21378 else
21379   echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_cv_lib_dld_dladdr=no
21383 fi
21384 rm -f conftest.err conftest.$ac_objext \
21385       conftest$ac_exeext conftest.$ac_ext
21386 LIBS=$ac_check_lib_save_LIBS
21387 fi
21388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21389 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21390 if test $ac_cv_lib_dld_dladdr = yes; then
21391
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define HAVE_DLADDR 1
21395 _ACEOF
21396
21397 fi
21398
21399 fi
21400
21401
21402    if test x"$cross_compiling" = x"no"; then
21403      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21404 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21405 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21406   echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408   test "$cross_compiling" = yes &&
21409   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21410 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21411    { (exit 1); exit 1; }; }
21412 if test -r "/proc/self/exe"; then
21413   ac_cv_file__proc_self_exe=yes
21414 else
21415   ac_cv_file__proc_self_exe=no
21416 fi
21417 fi
21418 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21419 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21420 if test $ac_cv_file__proc_self_exe = yes; then
21421
21422 cat >>confdefs.h <<_ACEOF
21423 #define HAVE__PROC_SELF_EXE 1
21424 _ACEOF
21425
21426
21427
21428 cat >>confdefs.h <<\_ACEOF
21429 #define HAVE_PROC_SELF_EXE 1
21430 _ACEOF
21431
21432 fi
21433
21434      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21435 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21436 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21437   echo $ECHO_N "(cached) $ECHO_C" >&6
21438 else
21439   test "$cross_compiling" = yes &&
21440   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21441 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21442    { (exit 1); exit 1; }; }
21443 if test -r "/proc/self/maps"; then
21444   ac_cv_file__proc_self_maps=yes
21445 else
21446   ac_cv_file__proc_self_maps=no
21447 fi
21448 fi
21449 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21450 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21451 if test $ac_cv_file__proc_self_maps = yes; then
21452
21453 cat >>confdefs.h <<_ACEOF
21454 #define HAVE__PROC_SELF_MAPS 1
21455 _ACEOF
21456
21457
21458
21459 cat >>confdefs.h <<\_ACEOF
21460 #define HAVE_PROC_SELF_MAPS 1
21461 _ACEOF
21462
21463 fi
21464
21465    else
21466      case $host in
21467      *-linux*)
21468
21469 cat >>confdefs.h <<\_ACEOF
21470 #define HAVE_PROC_SELF_EXE 1
21471 _ACEOF
21472
21473
21474 cat >>confdefs.h <<\_ACEOF
21475 #define HAVE_PROC_SELF_MAPS 1
21476 _ACEOF
21477
21478        ;;
21479      esac
21480    fi
21481
21482
21483       if test "X$prefix" = "XNONE"; then
21484     acl_final_prefix="$ac_default_prefix"
21485   else
21486     acl_final_prefix="$prefix"
21487   fi
21488   if test "X$exec_prefix" = "XNONE"; then
21489     acl_final_exec_prefix='${prefix}'
21490   else
21491     acl_final_exec_prefix="$exec_prefix"
21492   fi
21493   acl_save_prefix="$prefix"
21494   prefix="$acl_final_prefix"
21495   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21496   prefix="$acl_save_prefix"
21497
21498
21499 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21500 if test "${with_gnu_ld+set}" = set; then
21501   withval="$with_gnu_ld"
21502   test "$withval" = no || with_gnu_ld=yes
21503 else
21504   with_gnu_ld=no
21505 fi;
21506 # Prepare PATH_SEPARATOR.
21507 # The user is always right.
21508 if test "${PATH_SEPARATOR+set}" != set; then
21509   echo "#! /bin/sh" >conf$$.sh
21510   echo  "exit 0"   >>conf$$.sh
21511   chmod +x conf$$.sh
21512   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21513     PATH_SEPARATOR=';'
21514   else
21515     PATH_SEPARATOR=:
21516   fi
21517   rm -f conf$$.sh
21518 fi
21519 ac_prog=ld
21520 if test "$GCC" = yes; then
21521   # Check if gcc -print-prog-name=ld gives a path.
21522   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21523 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21524   case $host in
21525   *-*-mingw*)
21526     # gcc leaves a trailing carriage return which upsets mingw
21527     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21528   *)
21529     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21530   esac
21531   case $ac_prog in
21532     # Accept absolute paths.
21533     [\\/]* | [A-Za-z]:[\\/]*)
21534       re_direlt='/[^/][^/]*/\.\./'
21535       # Canonicalize the path of ld
21536       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21537       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21538         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21539       done
21540       test -z "$LD" && LD="$ac_prog"
21541       ;;
21542   "")
21543     # If it fails, then pretend we aren't using GCC.
21544     ac_prog=ld
21545     ;;
21546   *)
21547     # If it is relative, then search for the first ld in PATH.
21548     with_gnu_ld=unknown
21549     ;;
21550   esac
21551 elif test "$with_gnu_ld" = yes; then
21552   echo "$as_me:$LINENO: checking for GNU ld" >&5
21553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21554 else
21555   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21557 fi
21558 if test "${acl_cv_path_LD+set}" = set; then
21559   echo $ECHO_N "(cached) $ECHO_C" >&6
21560 else
21561   if test -z "$LD"; then
21562   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21563   for ac_dir in $PATH; do
21564     test -z "$ac_dir" && ac_dir=.
21565     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21566       acl_cv_path_LD="$ac_dir/$ac_prog"
21567       # Check to see if the program is GNU ld.  I'd rather use --version,
21568       # but apparently some GNU ld's only accept -v.
21569       # Break only if it was the GNU/non-GNU ld that we prefer.
21570       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21571         test "$with_gnu_ld" != no && break
21572       else
21573         test "$with_gnu_ld" != yes && break
21574       fi
21575     fi
21576   done
21577   IFS="$ac_save_ifs"
21578 else
21579   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21580 fi
21581 fi
21582
21583 LD="$acl_cv_path_LD"
21584 if test -n "$LD"; then
21585   echo "$as_me:$LINENO: result: $LD" >&5
21586 echo "${ECHO_T}$LD" >&6
21587 else
21588   echo "$as_me:$LINENO: result: no" >&5
21589 echo "${ECHO_T}no" >&6
21590 fi
21591 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21592 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21593    { (exit 1); exit 1; }; }
21594 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21595 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21596 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21600 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21601   acl_cv_prog_gnu_ld=yes
21602 else
21603   acl_cv_prog_gnu_ld=no
21604 fi
21605 fi
21606 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21607 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21608 with_gnu_ld=$acl_cv_prog_gnu_ld
21609
21610
21611
21612                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21613 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21614 if test "${acl_cv_rpath+set}" = set; then
21615   echo $ECHO_N "(cached) $ECHO_C" >&6
21616 else
21617
21618     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21619     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21620     . ./conftest.sh
21621     rm -f ./conftest.sh
21622     acl_cv_rpath=done
21623
21624 fi
21625 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21626 echo "${ECHO_T}$acl_cv_rpath" >&6
21627   wl="$acl_cv_wl"
21628   libext="$acl_cv_libext"
21629   shlibext="$acl_cv_shlibext"
21630   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21631   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21632   hardcode_direct="$acl_cv_hardcode_direct"
21633   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21634     # Check whether --enable-rpath or --disable-rpath was given.
21635 if test "${enable_rpath+set}" = set; then
21636   enableval="$enable_rpath"
21637   :
21638 else
21639   enable_rpath=yes
21640 fi;
21641
21642
21643
21644
21645
21646
21647
21648     use_additional=yes
21649
21650   acl_save_prefix="$prefix"
21651   prefix="$acl_final_prefix"
21652   acl_save_exec_prefix="$exec_prefix"
21653   exec_prefix="$acl_final_exec_prefix"
21654
21655     eval additional_includedir=\"$includedir\"
21656     eval additional_libdir=\"$libdir\"
21657
21658   exec_prefix="$acl_save_exec_prefix"
21659   prefix="$acl_save_prefix"
21660
21661
21662 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21663 if test "${with_libiconv_prefix+set}" = set; then
21664   withval="$with_libiconv_prefix"
21665
21666     if test "X$withval" = "Xno"; then
21667       use_additional=no
21668     else
21669       if test "X$withval" = "X"; then
21670
21671   acl_save_prefix="$prefix"
21672   prefix="$acl_final_prefix"
21673   acl_save_exec_prefix="$exec_prefix"
21674   exec_prefix="$acl_final_exec_prefix"
21675
21676           eval additional_includedir=\"$includedir\"
21677           eval additional_libdir=\"$libdir\"
21678
21679   exec_prefix="$acl_save_exec_prefix"
21680   prefix="$acl_save_prefix"
21681
21682       else
21683         additional_includedir="$withval/include"
21684         additional_libdir="$withval/lib"
21685       fi
21686     fi
21687
21688 fi;
21689       LIBICONV=
21690   LTLIBICONV=
21691   INCICONV=
21692   rpathdirs=
21693   ltrpathdirs=
21694   names_already_handled=
21695   names_next_round='iconv '
21696   while test -n "$names_next_round"; do
21697     names_this_round="$names_next_round"
21698     names_next_round=
21699     for name in $names_this_round; do
21700       already_handled=
21701       for n in $names_already_handled; do
21702         if test "$n" = "$name"; then
21703           already_handled=yes
21704           break
21705         fi
21706       done
21707       if test -z "$already_handled"; then
21708         names_already_handled="$names_already_handled $name"
21709                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21710         eval value=\"\$HAVE_LIB$uppername\"
21711         if test -n "$value"; then
21712           if test "$value" = yes; then
21713             eval value=\"\$LIB$uppername\"
21714             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21715             eval value=\"\$LTLIB$uppername\"
21716             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21717           else
21718                                     :
21719           fi
21720         else
21721                               found_dir=
21722           found_la=
21723           found_so=
21724           found_a=
21725           if test $use_additional = yes; then
21726             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21727               found_dir="$additional_libdir"
21728               found_so="$additional_libdir/lib$name.$shlibext"
21729               if test -f "$additional_libdir/lib$name.la"; then
21730                 found_la="$additional_libdir/lib$name.la"
21731               fi
21732             else
21733               if test -f "$additional_libdir/lib$name.$libext"; then
21734                 found_dir="$additional_libdir"
21735                 found_a="$additional_libdir/lib$name.$libext"
21736                 if test -f "$additional_libdir/lib$name.la"; then
21737                   found_la="$additional_libdir/lib$name.la"
21738                 fi
21739               fi
21740             fi
21741           fi
21742           if test "X$found_dir" = "X"; then
21743             for x in $LDFLAGS $LTLIBICONV; 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               case "$x" in
21754                 -L*)
21755                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21756                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21757                     found_dir="$dir"
21758                     found_so="$dir/lib$name.$shlibext"
21759                     if test -f "$dir/lib$name.la"; then
21760                       found_la="$dir/lib$name.la"
21761                     fi
21762                   else
21763                     if test -f "$dir/lib$name.$libext"; then
21764                       found_dir="$dir"
21765                       found_a="$dir/lib$name.$libext"
21766                       if test -f "$dir/lib$name.la"; then
21767                         found_la="$dir/lib$name.la"
21768                       fi
21769                     fi
21770                   fi
21771                   ;;
21772               esac
21773               if test "X$found_dir" != "X"; then
21774                 break
21775               fi
21776             done
21777           fi
21778           if test "X$found_dir" != "X"; then
21779                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21780             if test "X$found_so" != "X"; then
21781                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21782                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21783               else
21784                                                                                 haveit=
21785                 for x in $ltrpathdirs; do
21786                   if test "X$x" = "X$found_dir"; then
21787                     haveit=yes
21788                     break
21789                   fi
21790                 done
21791                 if test -z "$haveit"; then
21792                   ltrpathdirs="$ltrpathdirs $found_dir"
21793                 fi
21794                                 if test "$hardcode_direct" = yes; then
21795                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21796                 else
21797                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21798                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21799                                                             haveit=
21800                     for x in $rpathdirs; do
21801                       if test "X$x" = "X$found_dir"; then
21802                         haveit=yes
21803                         break
21804                       fi
21805                     done
21806                     if test -z "$haveit"; then
21807                       rpathdirs="$rpathdirs $found_dir"
21808                     fi
21809                   else
21810                                                                                 haveit=
21811                     for x in $LDFLAGS $LIBICONV; do
21812
21813   acl_save_prefix="$prefix"
21814   prefix="$acl_final_prefix"
21815   acl_save_exec_prefix="$exec_prefix"
21816   exec_prefix="$acl_final_exec_prefix"
21817   eval x=\"$x\"
21818   exec_prefix="$acl_save_exec_prefix"
21819   prefix="$acl_save_prefix"
21820
21821                       if test "X$x" = "X-L$found_dir"; then
21822                         haveit=yes
21823                         break
21824                       fi
21825                     done
21826                     if test -z "$haveit"; then
21827                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21828                     fi
21829                     if test "$hardcode_minus_L" != no; then
21830                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21831                     else
21832                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21833                     fi
21834                   fi
21835                 fi
21836               fi
21837             else
21838               if test "X$found_a" != "X"; then
21839                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21840               else
21841                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21842               fi
21843             fi
21844                         additional_includedir=
21845             case "$found_dir" in
21846               */lib | */lib/)
21847                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21848                 additional_includedir="$basedir/include"
21849                 ;;
21850             esac
21851             if test "X$additional_includedir" != "X"; then
21852                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21853                 haveit=
21854                 if test "X$additional_includedir" = "X/usr/local/include"; then
21855                   if test -n "$GCC"; then
21856                     case $host_os in
21857                       linux*) haveit=yes;;
21858                     esac
21859                   fi
21860                 fi
21861                 if test -z "$haveit"; then
21862                   for x in $CPPFLAGS $INCICONV; do
21863
21864   acl_save_prefix="$prefix"
21865   prefix="$acl_final_prefix"
21866   acl_save_exec_prefix="$exec_prefix"
21867   exec_prefix="$acl_final_exec_prefix"
21868   eval x=\"$x\"
21869   exec_prefix="$acl_save_exec_prefix"
21870   prefix="$acl_save_prefix"
21871
21872                     if test "X$x" = "X-I$additional_includedir"; then
21873                       haveit=yes
21874                       break
21875                     fi
21876                   done
21877                   if test -z "$haveit"; then
21878                     if test -d "$additional_includedir"; then
21879                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21880                     fi
21881                   fi
21882                 fi
21883               fi
21884             fi
21885                         if test -n "$found_la"; then
21886                                                         save_libdir="$libdir"
21887               case "$found_la" in
21888                 */* | *\\*) . "$found_la" ;;
21889                 *) . "./$found_la" ;;
21890               esac
21891               libdir="$save_libdir"
21892                             for dep in $dependency_libs; do
21893                 case "$dep" in
21894                   -L*)
21895                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21896                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21897                       haveit=
21898                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21899                         if test -n "$GCC"; then
21900                           case $host_os in
21901                             linux*) haveit=yes;;
21902                           esac
21903                         fi
21904                       fi
21905                       if test -z "$haveit"; then
21906                         haveit=
21907                         for x in $LDFLAGS $LIBICONV; do
21908
21909   acl_save_prefix="$prefix"
21910   prefix="$acl_final_prefix"
21911   acl_save_exec_prefix="$exec_prefix"
21912   exec_prefix="$acl_final_exec_prefix"
21913   eval x=\"$x\"
21914   exec_prefix="$acl_save_exec_prefix"
21915   prefix="$acl_save_prefix"
21916
21917                           if test "X$x" = "X-L$additional_libdir"; then
21918                             haveit=yes
21919                             break
21920                           fi
21921                         done
21922                         if test -z "$haveit"; then
21923                           if test -d "$additional_libdir"; then
21924                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21925                           fi
21926                         fi
21927                         haveit=
21928                         for x in $LDFLAGS $LTLIBICONV; do
21929
21930   acl_save_prefix="$prefix"
21931   prefix="$acl_final_prefix"
21932   acl_save_exec_prefix="$exec_prefix"
21933   exec_prefix="$acl_final_exec_prefix"
21934   eval x=\"$x\"
21935   exec_prefix="$acl_save_exec_prefix"
21936   prefix="$acl_save_prefix"
21937
21938                           if test "X$x" = "X-L$additional_libdir"; then
21939                             haveit=yes
21940                             break
21941                           fi
21942                         done
21943                         if test -z "$haveit"; then
21944                           if test -d "$additional_libdir"; then
21945                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21946                           fi
21947                         fi
21948                       fi
21949                     fi
21950                     ;;
21951                   -R*)
21952                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21953                     if test "$enable_rpath" != no; then
21954                                                                   haveit=
21955                       for x in $rpathdirs; do
21956                         if test "X$x" = "X$dir"; then
21957                           haveit=yes
21958                           break
21959                         fi
21960                       done
21961                       if test -z "$haveit"; then
21962                         rpathdirs="$rpathdirs $dir"
21963                       fi
21964                                                                   haveit=
21965                       for x in $ltrpathdirs; do
21966                         if test "X$x" = "X$dir"; then
21967                           haveit=yes
21968                           break
21969                         fi
21970                       done
21971                       if test -z "$haveit"; then
21972                         ltrpathdirs="$ltrpathdirs $dir"
21973                       fi
21974                     fi
21975                     ;;
21976                   -l*)
21977                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21978                     ;;
21979                   *.la)
21980                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21981                     ;;
21982                   *)
21983                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21984                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21985                     ;;
21986                 esac
21987               done
21988             fi
21989           else
21990                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21991             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21992           fi
21993         fi
21994       fi
21995     done
21996   done
21997   if test "X$rpathdirs" != "X"; then
21998     if test -n "$hardcode_libdir_separator"; then
21999                         alldirs=
22000       for found_dir in $rpathdirs; do
22001         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22002       done
22003             acl_save_libdir="$libdir"
22004       libdir="$alldirs"
22005       eval flag=\"$hardcode_libdir_flag_spec\"
22006       libdir="$acl_save_libdir"
22007       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22008     else
22009             for found_dir in $rpathdirs; do
22010         acl_save_libdir="$libdir"
22011         libdir="$found_dir"
22012         eval flag=\"$hardcode_libdir_flag_spec\"
22013         libdir="$acl_save_libdir"
22014         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22015       done
22016     fi
22017   fi
22018   if test "X$ltrpathdirs" != "X"; then
22019             for found_dir in $ltrpathdirs; do
22020       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22021     done
22022   fi
22023
22024
22025
22026
22027
22028
22029
22030           am_save_CPPFLAGS="$CPPFLAGS"
22031
22032   for element in $INCICONV; do
22033     haveit=
22034     for x in $CPPFLAGS; do
22035
22036   acl_save_prefix="$prefix"
22037   prefix="$acl_final_prefix"
22038   acl_save_exec_prefix="$exec_prefix"
22039   exec_prefix="$acl_final_exec_prefix"
22040   eval x=\"$x\"
22041   exec_prefix="$acl_save_exec_prefix"
22042   prefix="$acl_save_prefix"
22043
22044       if test "X$x" = "X$element"; then
22045         haveit=yes
22046         break
22047       fi
22048     done
22049     if test -z "$haveit"; then
22050       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22051     fi
22052   done
22053
22054
22055   echo "$as_me:$LINENO: checking for iconv" >&5
22056 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22057 if test "${am_cv_func_iconv+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060
22061     am_cv_func_iconv="no, consider installing GNU libiconv"
22062     am_cv_lib_iconv=no
22063     if test x$gcc_no_link = xyes; then
22064   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22066    { (exit 1); exit 1; }; }
22067 fi
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h.  */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h.  */
22074 #include <stdlib.h>
22075 #include <iconv.h>
22076 int
22077 main ()
22078 {
22079 iconv_t cd = iconv_open("","");
22080        iconv(cd,NULL,NULL,NULL,NULL);
22081        iconv_close(cd);
22082   ;
22083   return 0;
22084 }
22085 _ACEOF
22086 rm -f conftest.$ac_objext conftest$ac_exeext
22087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088   (eval $ac_link) 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } &&
22095          { ac_try='test -z "$ac_c_werror_flag"
22096                          || test ! -s conftest.err'
22097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098   (eval $ac_try) 2>&5
22099   ac_status=$?
22100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101   (exit $ac_status); }; } &&
22102          { ac_try='test -s conftest$ac_exeext'
22103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104   (eval $ac_try) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; }; then
22108   am_cv_func_iconv=yes
22109 else
22110   echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 fi
22114 rm -f conftest.err conftest.$ac_objext \
22115       conftest$ac_exeext conftest.$ac_ext
22116     if test "$am_cv_func_iconv" != yes; then
22117       am_save_LIBS="$LIBS"
22118       LIBS="$LIBS $LIBICONV"
22119       if test x$gcc_no_link = xyes; then
22120   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22121 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22122    { (exit 1); exit 1; }; }
22123 fi
22124 cat >conftest.$ac_ext <<_ACEOF
22125 /* confdefs.h.  */
22126 _ACEOF
22127 cat confdefs.h >>conftest.$ac_ext
22128 cat >>conftest.$ac_ext <<_ACEOF
22129 /* end confdefs.h.  */
22130 #include <stdlib.h>
22131 #include <iconv.h>
22132 int
22133 main ()
22134 {
22135 iconv_t cd = iconv_open("","");
22136          iconv(cd,NULL,NULL,NULL,NULL);
22137          iconv_close(cd);
22138   ;
22139   return 0;
22140 }
22141 _ACEOF
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22144   (eval $ac_link) 2>conftest.er1
22145   ac_status=$?
22146   grep -v '^ *+' conftest.er1 >conftest.err
22147   rm -f conftest.er1
22148   cat conftest.err >&5
22149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150   (exit $ac_status); } &&
22151          { ac_try='test -z "$ac_c_werror_flag"
22152                          || test ! -s conftest.err'
22153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154   (eval $ac_try) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; } &&
22158          { ac_try='test -s conftest$ac_exeext'
22159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160   (eval $ac_try) 2>&5
22161   ac_status=$?
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); }; }; then
22164   am_cv_lib_iconv=yes
22165         am_cv_func_iconv=yes
22166 else
22167   echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170 fi
22171 rm -f conftest.err conftest.$ac_objext \
22172       conftest$ac_exeext conftest.$ac_ext
22173       LIBS="$am_save_LIBS"
22174     fi
22175
22176 fi
22177 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22178 echo "${ECHO_T}$am_cv_func_iconv" >&6
22179   if test "$am_cv_func_iconv" = yes; then
22180
22181 cat >>confdefs.h <<\_ACEOF
22182 #define HAVE_ICONV 1
22183 _ACEOF
22184
22185   fi
22186   if test "$am_cv_lib_iconv" = yes; then
22187     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22188 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22189     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22190 echo "${ECHO_T}$LIBICONV" >&6
22191   else
22192             CPPFLAGS="$am_save_CPPFLAGS"
22193     LIBICONV=
22194     LTLIBICONV=
22195   fi
22196
22197
22198
22199   if test "$am_cv_func_iconv" = yes; then
22200     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22201 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22202     if test "${am_cv_proto_iconv+set}" = set; then
22203   echo $ECHO_N "(cached) $ECHO_C" >&6
22204 else
22205
22206       cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212
22213 #include <stdlib.h>
22214 #include <iconv.h>
22215 extern
22216 #ifdef __cplusplus
22217 "C"
22218 #endif
22219 #if defined(__STDC__) || defined(__cplusplus)
22220 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22221 #else
22222 size_t iconv();
22223 #endif
22224
22225 int
22226 main ()
22227 {
22228
22229   ;
22230   return 0;
22231 }
22232 _ACEOF
22233 rm -f conftest.$ac_objext
22234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22235   (eval $ac_compile) 2>conftest.er1
22236   ac_status=$?
22237   grep -v '^ *+' conftest.er1 >conftest.err
22238   rm -f conftest.er1
22239   cat conftest.err >&5
22240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241   (exit $ac_status); } &&
22242          { ac_try='test -z "$ac_c_werror_flag"
22243                          || test ! -s conftest.err'
22244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22245   (eval $ac_try) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); }; } &&
22249          { ac_try='test -s conftest.$ac_objext'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   am_cv_proto_iconv_arg1=""
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 am_cv_proto_iconv_arg1="const"
22261 fi
22262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22263       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);"
22264 fi
22265
22266     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22267     echo "$as_me:$LINENO: result: ${ac_t:-
22268          }$am_cv_proto_iconv" >&5
22269 echo "${ECHO_T}${ac_t:-
22270          }$am_cv_proto_iconv" >&6
22271
22272 cat >>confdefs.h <<_ACEOF
22273 #define ICONV_CONST $am_cv_proto_iconv_arg1
22274 _ACEOF
22275
22276   fi
22277
22278
22279   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22280 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22281 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284   if test x$gcc_no_link = xyes; then
22285   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22286 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22287    { (exit 1); exit 1; }; }
22288 fi
22289 cat >conftest.$ac_ext <<_ACEOF
22290 /* confdefs.h.  */
22291 _ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h.  */
22295 #include <locale.h>
22296 int
22297 main ()
22298 {
22299 return LC_MESSAGES
22300   ;
22301   return 0;
22302 }
22303 _ACEOF
22304 rm -f conftest.$ac_objext conftest$ac_exeext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22306   (eval $ac_link) 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } &&
22313          { ac_try='test -z "$ac_c_werror_flag"
22314                          || test ! -s conftest.err'
22315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316   (eval $ac_try) 2>&5
22317   ac_status=$?
22318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319   (exit $ac_status); }; } &&
22320          { ac_try='test -s conftest$ac_exeext'
22321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322   (eval $ac_try) 2>&5
22323   ac_status=$?
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); }; }; then
22326   am_cv_val_LC_MESSAGES=yes
22327 else
22328   echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22330
22331 am_cv_val_LC_MESSAGES=no
22332 fi
22333 rm -f conftest.err conftest.$ac_objext \
22334       conftest$ac_exeext conftest.$ac_ext
22335 fi
22336 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22337 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22338   if test $am_cv_val_LC_MESSAGES = yes; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_LC_MESSAGES 1
22342 _ACEOF
22343
22344   fi
22345
22346    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22347 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22348 if test "${ac_cv_struct_tm+set}" = set; then
22349   echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351   cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <sys/types.h>
22358 #include <time.h>
22359
22360 int
22361 main ()
22362 {
22363 struct tm *tp; tp->tm_sec;
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext
22369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22370   (eval $ac_compile) 2>conftest.er1
22371   ac_status=$?
22372   grep -v '^ *+' conftest.er1 >conftest.err
22373   rm -f conftest.er1
22374   cat conftest.err >&5
22375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376   (exit $ac_status); } &&
22377          { ac_try='test -z "$ac_c_werror_flag"
22378                          || test ! -s conftest.err'
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); }; } &&
22384          { ac_try='test -s conftest.$ac_objext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   ac_cv_struct_tm=time.h
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ac_cv_struct_tm=sys/time.h
22396 fi
22397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22398 fi
22399 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22400 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22401 if test $ac_cv_struct_tm = sys/time.h; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define TM_IN_SYS_TIME 1
22405 _ACEOF
22406
22407 fi
22408
22409 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22410 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22411 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 #include <sys/types.h>
22421 #include <$ac_cv_struct_tm>
22422
22423
22424 int
22425 main ()
22426 {
22427 static struct tm ac_aggr;
22428 if (ac_aggr.tm_zone)
22429 return 0;
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22436   (eval $ac_compile) 2>conftest.er1
22437   ac_status=$?
22438   grep -v '^ *+' conftest.er1 >conftest.err
22439   rm -f conftest.er1
22440   cat conftest.err >&5
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); } &&
22443          { ac_try='test -z "$ac_c_werror_flag"
22444                          || test ! -s conftest.err'
22445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446   (eval $ac_try) 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; } &&
22450          { ac_try='test -s conftest.$ac_objext'
22451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452   (eval $ac_try) 2>&5
22453   ac_status=$?
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); }; }; then
22456   ac_cv_member_struct_tm_tm_zone=yes
22457 else
22458   echo "$as_me: failed program was:" >&5
22459 sed 's/^/| /' conftest.$ac_ext >&5
22460
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467 #include <sys/types.h>
22468 #include <$ac_cv_struct_tm>
22469
22470
22471 int
22472 main ()
22473 {
22474 static struct tm ac_aggr;
22475 if (sizeof ac_aggr.tm_zone)
22476 return 0;
22477   ;
22478   return 0;
22479 }
22480 _ACEOF
22481 rm -f conftest.$ac_objext
22482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22483   (eval $ac_compile) 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } &&
22490          { ac_try='test -z "$ac_c_werror_flag"
22491                          || test ! -s conftest.err'
22492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22493   (eval $ac_try) 2>&5
22494   ac_status=$?
22495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); }; } &&
22497          { ac_try='test -s conftest.$ac_objext'
22498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22499   (eval $ac_try) 2>&5
22500   ac_status=$?
22501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502   (exit $ac_status); }; }; then
22503   ac_cv_member_struct_tm_tm_zone=yes
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508 ac_cv_member_struct_tm_tm_zone=no
22509 fi
22510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22511 fi
22512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22513 fi
22514 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22515 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22516 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22517
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_STRUCT_TM_TM_ZONE 1
22520 _ACEOF
22521
22522
22523 fi
22524
22525 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22526
22527 cat >>confdefs.h <<\_ACEOF
22528 #define HAVE_TM_ZONE 1
22529 _ACEOF
22530
22531 else
22532   echo "$as_me:$LINENO: checking for tzname" >&5
22533 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22534 if test "${ac_cv_var_tzname+set}" = set; then
22535   echo $ECHO_N "(cached) $ECHO_C" >&6
22536 else
22537   if test x$gcc_no_link = xyes; then
22538   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22539 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22540    { (exit 1); exit 1; }; }
22541 fi
22542 cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 #include <time.h>
22549 #ifndef tzname /* For SGI.  */
22550 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22551 #endif
22552
22553 int
22554 main ()
22555 {
22556 atoi(*tzname);
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext conftest$ac_exeext
22562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22563   (eval $ac_link) 2>conftest.er1
22564   ac_status=$?
22565   grep -v '^ *+' conftest.er1 >conftest.err
22566   rm -f conftest.er1
22567   cat conftest.err >&5
22568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569   (exit $ac_status); } &&
22570          { ac_try='test -z "$ac_c_werror_flag"
22571                          || test ! -s conftest.err'
22572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573   (eval $ac_try) 2>&5
22574   ac_status=$?
22575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576   (exit $ac_status); }; } &&
22577          { ac_try='test -s conftest$ac_exeext'
22578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22579   (eval $ac_try) 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); }; }; then
22583   ac_cv_var_tzname=yes
22584 else
22585   echo "$as_me: failed program was:" >&5
22586 sed 's/^/| /' conftest.$ac_ext >&5
22587
22588 ac_cv_var_tzname=no
22589 fi
22590 rm -f conftest.err conftest.$ac_objext \
22591       conftest$ac_exeext conftest.$ac_ext
22592 fi
22593 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22594 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22595   if test $ac_cv_var_tzname = yes; then
22596
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_TZNAME 1
22599 _ACEOF
22600
22601   fi
22602 fi
22603
22604
22605
22606 for ac_func in gethostbyname_r
22607 do
22608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22609 echo "$as_me:$LINENO: checking for $ac_func" >&5
22610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22611 if eval "test \"\${$as_ac_var+set}\" = set"; then
22612   echo $ECHO_N "(cached) $ECHO_C" >&6
22613 else
22614   if test x$gcc_no_link = xyes; then
22615   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22616 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22617    { (exit 1); exit 1; }; }
22618 fi
22619 cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h.  */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h.  */
22625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22627 #define $ac_func innocuous_$ac_func
22628
22629 /* System header to define __stub macros and hopefully few prototypes,
22630     which can conflict with char $ac_func (); below.
22631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22632     <limits.h> exists even on freestanding compilers.  */
22633
22634 #ifdef __STDC__
22635 # include <limits.h>
22636 #else
22637 # include <assert.h>
22638 #endif
22639
22640 #undef $ac_func
22641
22642 /* Override any gcc2 internal prototype to avoid an error.  */
22643 #ifdef __cplusplus
22644 extern "C"
22645 {
22646 #endif
22647 /* We use char because int might match the return type of a gcc2
22648    builtin and then its argument prototype would still apply.  */
22649 char $ac_func ();
22650 /* The GNU C library defines this for functions which it implements
22651     to always fail with ENOSYS.  Some functions are actually named
22652     something starting with __ and the normal name is an alias.  */
22653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22654 choke me
22655 #else
22656 char (*f) () = $ac_func;
22657 #endif
22658 #ifdef __cplusplus
22659 }
22660 #endif
22661
22662 int
22663 main ()
22664 {
22665 return f != $ac_func;
22666   ;
22667   return 0;
22668 }
22669 _ACEOF
22670 rm -f conftest.$ac_objext conftest$ac_exeext
22671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22672   (eval $ac_link) 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } &&
22679          { ac_try='test -z "$ac_c_werror_flag"
22680                          || test ! -s conftest.err'
22681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682   (eval $ac_try) 2>&5
22683   ac_status=$?
22684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685   (exit $ac_status); }; } &&
22686          { ac_try='test -s conftest$ac_exeext'
22687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22688   (eval $ac_try) 2>&5
22689   ac_status=$?
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); }; }; then
22692   eval "$as_ac_var=yes"
22693 else
22694   echo "$as_me: failed program was:" >&5
22695 sed 's/^/| /' conftest.$ac_ext >&5
22696
22697 eval "$as_ac_var=no"
22698 fi
22699 rm -f conftest.err conftest.$ac_objext \
22700       conftest$ac_exeext conftest.$ac_ext
22701 fi
22702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22703 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22704 if test `eval echo '${'$as_ac_var'}'` = yes; then
22705   cat >>confdefs.h <<_ACEOF
22706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22707 _ACEOF
22708
22709
22710 cat >>confdefs.h <<\_ACEOF
22711 #define HAVE_GETHOSTBYNAME_R 1
22712 _ACEOF
22713
22714      # There are two different kinds of gethostbyname_r.
22715      # We look for the one that returns `int'.
22716      # Hopefully this check is robust enough.
22717      cat >conftest.$ac_ext <<_ACEOF
22718 /* confdefs.h.  */
22719 _ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h.  */
22723 #include <netdb.h>
22724
22725 _ACEOF
22726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22727   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22728
22729
22730 cat >>confdefs.h <<\_ACEOF
22731 #define GETHOSTBYNAME_R_RETURNS_INT 1
22732 _ACEOF
22733
22734 fi
22735 rm -f conftest*
22736
22737
22738      case " $GCINCS " in
22739      *" -D_REENTRANT "*) ;;
22740      *)
22741                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22742 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22743 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22744   echo $ECHO_N "(cached) $ECHO_C" >&6
22745 else
22746    ac_ext=cc
22747 ac_cpp='$CXXCPP $CPPFLAGS'
22748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22751
22752           cat >conftest.$ac_ext <<_ACEOF
22753 /* confdefs.h.  */
22754 _ACEOF
22755 cat confdefs.h >>conftest.$ac_ext
22756 cat >>conftest.$ac_ext <<_ACEOF
22757 /* end confdefs.h.  */
22758 #include <netdb.h>
22759 int
22760 main ()
22761 {
22762 gethostbyname_r("", 0, 0);
22763   ;
22764   return 0;
22765 }
22766 _ACEOF
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769   (eval $ac_compile) 2>conftest.er1
22770   ac_status=$?
22771   grep -v '^ *+' conftest.er1 >conftest.err
22772   rm -f conftest.er1
22773   cat conftest.err >&5
22774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775   (exit $ac_status); } &&
22776          { ac_try='test -z "$ac_cxx_werror_flag"
22777                          || test ! -s conftest.err'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; } &&
22783          { ac_try='test -s conftest.$ac_objext'
22784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22785   (eval $ac_try) 2>&5
22786   ac_status=$?
22787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788   (exit $ac_status); }; }; then
22789   libjava_cv_gethostbyname_r_needs_reentrant=no
22790 else
22791   echo "$as_me: failed program was:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22793
22794                 CPPFLAGS_SAVE="$CPPFLAGS"
22795                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22796                 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h.  */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h.  */
22802 #include <netdb.h>
22803 int
22804 main ()
22805 {
22806 gethostbyname_r("", 0, 0);
22807   ;
22808   return 0;
22809 }
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22813   (eval $ac_compile) 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } &&
22820          { ac_try='test -z "$ac_cxx_werror_flag"
22821                          || test ! -s conftest.err'
22822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823   (eval $ac_try) 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); }; } &&
22827          { ac_try='test -s conftest.$ac_objext'
22828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829   (eval $ac_try) 2>&5
22830   ac_status=$?
22831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832   (exit $ac_status); }; }; then
22833   libjava_cv_gethostbyname_r_needs_reentrant=yes
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838 libjava_cv_gethostbyname_r_needs_reentrant=fail
22839 fi
22840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22841                 CPPFLAGS="$CPPFLAGS_SAVE"
22842
22843 fi
22844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22845           ac_ext=c
22846 ac_cpp='$CPP $CPPFLAGS'
22847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22850
22851
22852 fi
22853 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22854 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22855         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22856
22857 cat >>confdefs.h <<\_ACEOF
22858 #define _REENTRANT 1
22859 _ACEOF
22860
22861         fi
22862      ;;
22863      esac
22864
22865      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22866 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22867 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22868   echo $ECHO_N "(cached) $ECHO_C" >&6
22869 else
22870         cat >conftest.$ac_ext <<_ACEOF
22871 /* confdefs.h.  */
22872 _ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h.  */
22876
22877 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22878 # define _REENTRANT 1
22879 #endif
22880 #include <netdb.h>
22881 int
22882 main ()
22883 {
22884 struct hostent_data data;
22885   ;
22886   return 0;
22887 }
22888 _ACEOF
22889 rm -f conftest.$ac_objext
22890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22891   (eval $ac_compile) 2>conftest.er1
22892   ac_status=$?
22893   grep -v '^ *+' conftest.er1 >conftest.err
22894   rm -f conftest.er1
22895   cat conftest.err >&5
22896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897   (exit $ac_status); } &&
22898          { ac_try='test -z "$ac_c_werror_flag"
22899                          || test ! -s conftest.err'
22900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901   (eval $ac_try) 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); }; } &&
22905          { ac_try='test -s conftest.$ac_objext'
22906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22907   (eval $ac_try) 2>&5
22908   ac_status=$?
22909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22910   (exit $ac_status); }; }; then
22911   libjava_cv_struct_hostent_data=yes
22912 else
22913   echo "$as_me: failed program was:" >&5
22914 sed 's/^/| /' conftest.$ac_ext >&5
22915
22916 libjava_cv_struct_hostent_data=no
22917 fi
22918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22919 fi
22920 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22921 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22922      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22923
22924 cat >>confdefs.h <<\_ACEOF
22925 #define HAVE_STRUCT_HOSTENT_DATA 1
22926 _ACEOF
22927
22928      fi
22929
22930 fi
22931 done
22932
22933
22934    # FIXME: libjava source code expects to find a prototype for
22935    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22936    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22937    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22938    # linkage check is enough, yet C++ code requires proper prototypes.)
22939    cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h.  */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h.  */
22945 #include <netdb.h>
22946
22947 _ACEOF
22948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22949   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22950
22951
22952 for ac_func in gethostbyaddr_r
22953 do
22954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22955 echo "$as_me:$LINENO: checking for $ac_func" >&5
22956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22957 if eval "test \"\${$as_ac_var+set}\" = set"; then
22958   echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960   if test x$gcc_no_link = xyes; then
22961   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22962 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22963    { (exit 1); exit 1; }; }
22964 fi
22965 cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22973 #define $ac_func innocuous_$ac_func
22974
22975 /* System header to define __stub macros and hopefully few prototypes,
22976     which can conflict with char $ac_func (); below.
22977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22978     <limits.h> exists even on freestanding compilers.  */
22979
22980 #ifdef __STDC__
22981 # include <limits.h>
22982 #else
22983 # include <assert.h>
22984 #endif
22985
22986 #undef $ac_func
22987
22988 /* Override any gcc2 internal prototype to avoid an error.  */
22989 #ifdef __cplusplus
22990 extern "C"
22991 {
22992 #endif
22993 /* We use char because int might match the return type of a gcc2
22994    builtin and then its argument prototype would still apply.  */
22995 char $ac_func ();
22996 /* The GNU C library defines this for functions which it implements
22997     to always fail with ENOSYS.  Some functions are actually named
22998     something starting with __ and the normal name is an alias.  */
22999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23000 choke me
23001 #else
23002 char (*f) () = $ac_func;
23003 #endif
23004 #ifdef __cplusplus
23005 }
23006 #endif
23007
23008 int
23009 main ()
23010 {
23011 return f != $ac_func;
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 rm -f conftest.$ac_objext conftest$ac_exeext
23017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23018   (eval $ac_link) 2>conftest.er1
23019   ac_status=$?
23020   grep -v '^ *+' conftest.er1 >conftest.err
23021   rm -f conftest.er1
23022   cat conftest.err >&5
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); } &&
23025          { ac_try='test -z "$ac_c_werror_flag"
23026                          || test ! -s conftest.err'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; } &&
23032          { ac_try='test -s conftest$ac_exeext'
23033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034   (eval $ac_try) 2>&5
23035   ac_status=$?
23036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037   (exit $ac_status); }; }; then
23038   eval "$as_ac_var=yes"
23039 else
23040   echo "$as_me: failed program was:" >&5
23041 sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 eval "$as_ac_var=no"
23044 fi
23045 rm -f conftest.err conftest.$ac_objext \
23046       conftest$ac_exeext conftest.$ac_ext
23047 fi
23048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23050 if test `eval echo '${'$as_ac_var'}'` = yes; then
23051   cat >>confdefs.h <<_ACEOF
23052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23053 _ACEOF
23054
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_GETHOSTBYADDR_R 1
23058 _ACEOF
23059
23060      # There are two different kinds of gethostbyaddr_r.
23061      # We look for the one that returns `int'.
23062      # Hopefully this check is robust enough.
23063      cat >conftest.$ac_ext <<_ACEOF
23064 /* confdefs.h.  */
23065 _ACEOF
23066 cat confdefs.h >>conftest.$ac_ext
23067 cat >>conftest.$ac_ext <<_ACEOF
23068 /* end confdefs.h.  */
23069 #include <netdb.h>
23070
23071 _ACEOF
23072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23073   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23074
23075
23076 cat >>confdefs.h <<\_ACEOF
23077 #define GETHOSTBYADDR_R_RETURNS_INT 1
23078 _ACEOF
23079
23080 fi
23081 rm -f conftest*
23082
23083 fi
23084 done
23085
23086 fi
23087 rm -f conftest*
23088
23089
23090
23091 for ac_func in gethostname
23092 do
23093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23094 echo "$as_me:$LINENO: checking for $ac_func" >&5
23095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23096 if eval "test \"\${$as_ac_var+set}\" = set"; then
23097   echo $ECHO_N "(cached) $ECHO_C" >&6
23098 else
23099   if test x$gcc_no_link = xyes; then
23100   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23101 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23102    { (exit 1); exit 1; }; }
23103 fi
23104 cat >conftest.$ac_ext <<_ACEOF
23105 /* confdefs.h.  */
23106 _ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h.  */
23110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23112 #define $ac_func innocuous_$ac_func
23113
23114 /* System header to define __stub macros and hopefully few prototypes,
23115     which can conflict with char $ac_func (); below.
23116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23117     <limits.h> exists even on freestanding compilers.  */
23118
23119 #ifdef __STDC__
23120 # include <limits.h>
23121 #else
23122 # include <assert.h>
23123 #endif
23124
23125 #undef $ac_func
23126
23127 /* Override any gcc2 internal prototype to avoid an error.  */
23128 #ifdef __cplusplus
23129 extern "C"
23130 {
23131 #endif
23132 /* We use char because int might match the return type of a gcc2
23133    builtin and then its argument prototype would still apply.  */
23134 char $ac_func ();
23135 /* The GNU C library defines this for functions which it implements
23136     to always fail with ENOSYS.  Some functions are actually named
23137     something starting with __ and the normal name is an alias.  */
23138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23139 choke me
23140 #else
23141 char (*f) () = $ac_func;
23142 #endif
23143 #ifdef __cplusplus
23144 }
23145 #endif
23146
23147 int
23148 main ()
23149 {
23150 return f != $ac_func;
23151   ;
23152   return 0;
23153 }
23154 _ACEOF
23155 rm -f conftest.$ac_objext conftest$ac_exeext
23156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157   (eval $ac_link) 2>conftest.er1
23158   ac_status=$?
23159   grep -v '^ *+' conftest.er1 >conftest.err
23160   rm -f conftest.er1
23161   cat conftest.err >&5
23162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163   (exit $ac_status); } &&
23164          { ac_try='test -z "$ac_c_werror_flag"
23165                          || test ! -s conftest.err'
23166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167   (eval $ac_try) 2>&5
23168   ac_status=$?
23169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170   (exit $ac_status); }; } &&
23171          { ac_try='test -s conftest$ac_exeext'
23172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173   (eval $ac_try) 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; }; then
23177   eval "$as_ac_var=yes"
23178 else
23179   echo "$as_me: failed program was:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23181
23182 eval "$as_ac_var=no"
23183 fi
23184 rm -f conftest.err conftest.$ac_objext \
23185       conftest$ac_exeext conftest.$ac_ext
23186 fi
23187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23188 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23189 if test `eval echo '${'$as_ac_var'}'` = yes; then
23190   cat >>confdefs.h <<_ACEOF
23191 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23192 _ACEOF
23193
23194
23195 cat >>confdefs.h <<\_ACEOF
23196 #define HAVE_GETHOSTNAME 1
23197 _ACEOF
23198
23199      cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 #include <unistd.h>
23206
23207 _ACEOF
23208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23209   $EGREP "gethostname" >/dev/null 2>&1; then
23210
23211
23212 cat >>confdefs.h <<\_ACEOF
23213 #define HAVE_GETHOSTNAME_DECL 1
23214 _ACEOF
23215
23216 fi
23217 rm -f conftest*
23218
23219 fi
23220 done
23221
23222
23223
23224 for ac_func in usleep
23225 do
23226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 echo "$as_me:$LINENO: checking for $ac_func" >&5
23228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23229 if eval "test \"\${$as_ac_var+set}\" = set"; then
23230   echo $ECHO_N "(cached) $ECHO_C" >&6
23231 else
23232   if test x$gcc_no_link = xyes; then
23233   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23234 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23235    { (exit 1); exit 1; }; }
23236 fi
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23245 #define $ac_func innocuous_$ac_func
23246
23247 /* System header to define __stub macros and hopefully few prototypes,
23248     which can conflict with char $ac_func (); below.
23249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23250     <limits.h> exists even on freestanding compilers.  */
23251
23252 #ifdef __STDC__
23253 # include <limits.h>
23254 #else
23255 # include <assert.h>
23256 #endif
23257
23258 #undef $ac_func
23259
23260 /* Override any gcc2 internal prototype to avoid an error.  */
23261 #ifdef __cplusplus
23262 extern "C"
23263 {
23264 #endif
23265 /* We use char because int might match the return type of a gcc2
23266    builtin and then its argument prototype would still apply.  */
23267 char $ac_func ();
23268 /* The GNU C library defines this for functions which it implements
23269     to always fail with ENOSYS.  Some functions are actually named
23270     something starting with __ and the normal name is an alias.  */
23271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23272 choke me
23273 #else
23274 char (*f) () = $ac_func;
23275 #endif
23276 #ifdef __cplusplus
23277 }
23278 #endif
23279
23280 int
23281 main ()
23282 {
23283 return f != $ac_func;
23284   ;
23285   return 0;
23286 }
23287 _ACEOF
23288 rm -f conftest.$ac_objext conftest$ac_exeext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23290   (eval $ac_link) 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } &&
23297          { ac_try='test -z "$ac_c_werror_flag"
23298                          || test ! -s conftest.err'
23299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300   (eval $ac_try) 2>&5
23301   ac_status=$?
23302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303   (exit $ac_status); }; } &&
23304          { ac_try='test -s conftest$ac_exeext'
23305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306   (eval $ac_try) 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); }; }; then
23310   eval "$as_ac_var=yes"
23311 else
23312   echo "$as_me: failed program was:" >&5
23313 sed 's/^/| /' conftest.$ac_ext >&5
23314
23315 eval "$as_ac_var=no"
23316 fi
23317 rm -f conftest.err conftest.$ac_objext \
23318       conftest$ac_exeext conftest.$ac_ext
23319 fi
23320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23322 if test `eval echo '${'$as_ac_var'}'` = yes; then
23323   cat >>confdefs.h <<_ACEOF
23324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23325 _ACEOF
23326
23327      cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h.  */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h.  */
23333 #include <unistd.h>
23334
23335 _ACEOF
23336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23337   $EGREP "usleep" >/dev/null 2>&1; then
23338
23339
23340 cat >>confdefs.h <<\_ACEOF
23341 #define HAVE_USLEEP_DECL 1
23342 _ACEOF
23343
23344 fi
23345 rm -f conftest*
23346
23347 fi
23348 done
23349
23350
23351    # Look for these functions in the thread library, but only bother
23352    # if using POSIX threads.
23353    if test "$THREADS" = posix; then
23354       save_LIBS="$LIBS"
23355       LIBS="$LIBS $THREADLIBS"
23356
23357       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23358       # Solaris 7 the name librt is preferred.
23359
23360 for ac_func in sched_yield
23361 do
23362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23363 echo "$as_me:$LINENO: checking for $ac_func" >&5
23364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23365 if eval "test \"\${$as_ac_var+set}\" = set"; then
23366   echo $ECHO_N "(cached) $ECHO_C" >&6
23367 else
23368   if test x$gcc_no_link = xyes; then
23369   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23370 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23371    { (exit 1); exit 1; }; }
23372 fi
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h.  */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h.  */
23379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23381 #define $ac_func innocuous_$ac_func
23382
23383 /* System header to define __stub macros and hopefully few prototypes,
23384     which can conflict with char $ac_func (); below.
23385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23386     <limits.h> exists even on freestanding compilers.  */
23387
23388 #ifdef __STDC__
23389 # include <limits.h>
23390 #else
23391 # include <assert.h>
23392 #endif
23393
23394 #undef $ac_func
23395
23396 /* Override any gcc2 internal prototype to avoid an error.  */
23397 #ifdef __cplusplus
23398 extern "C"
23399 {
23400 #endif
23401 /* We use char because int might match the return type of a gcc2
23402    builtin and then its argument prototype would still apply.  */
23403 char $ac_func ();
23404 /* The GNU C library defines this for functions which it implements
23405     to always fail with ENOSYS.  Some functions are actually named
23406     something starting with __ and the normal name is an alias.  */
23407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23408 choke me
23409 #else
23410 char (*f) () = $ac_func;
23411 #endif
23412 #ifdef __cplusplus
23413 }
23414 #endif
23415
23416 int
23417 main ()
23418 {
23419 return f != $ac_func;
23420   ;
23421   return 0;
23422 }
23423 _ACEOF
23424 rm -f conftest.$ac_objext conftest$ac_exeext
23425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23426   (eval $ac_link) 2>conftest.er1
23427   ac_status=$?
23428   grep -v '^ *+' conftest.er1 >conftest.err
23429   rm -f conftest.er1
23430   cat conftest.err >&5
23431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23432   (exit $ac_status); } &&
23433          { ac_try='test -z "$ac_c_werror_flag"
23434                          || test ! -s conftest.err'
23435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436   (eval $ac_try) 2>&5
23437   ac_status=$?
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); }; } &&
23440          { ac_try='test -s conftest$ac_exeext'
23441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23442   (eval $ac_try) 2>&5
23443   ac_status=$?
23444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445   (exit $ac_status); }; }; then
23446   eval "$as_ac_var=yes"
23447 else
23448   echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450
23451 eval "$as_ac_var=no"
23452 fi
23453 rm -f conftest.err conftest.$ac_objext \
23454       conftest$ac_exeext conftest.$ac_ext
23455 fi
23456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23458 if test `eval echo '${'$as_ac_var'}'` = yes; then
23459   cat >>confdefs.h <<_ACEOF
23460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23461 _ACEOF
23462
23463 else
23464
23465         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23466 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23467 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23468   echo $ECHO_N "(cached) $ECHO_C" >&6
23469 else
23470   ac_check_lib_save_LIBS=$LIBS
23471 LIBS="-lrt  $LIBS"
23472 if test x$gcc_no_link = xyes; then
23473   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23475    { (exit 1); exit 1; }; }
23476 fi
23477 cat >conftest.$ac_ext <<_ACEOF
23478 /* confdefs.h.  */
23479 _ACEOF
23480 cat confdefs.h >>conftest.$ac_ext
23481 cat >>conftest.$ac_ext <<_ACEOF
23482 /* end confdefs.h.  */
23483
23484 /* Override any gcc2 internal prototype to avoid an error.  */
23485 #ifdef __cplusplus
23486 extern "C"
23487 #endif
23488 /* We use char because int might match the return type of a gcc2
23489    builtin and then its argument prototype would still apply.  */
23490 char sched_yield ();
23491 int
23492 main ()
23493 {
23494 sched_yield ();
23495   ;
23496   return 0;
23497 }
23498 _ACEOF
23499 rm -f conftest.$ac_objext conftest$ac_exeext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23501   (eval $ac_link) 2>conftest.er1
23502   ac_status=$?
23503   grep -v '^ *+' conftest.er1 >conftest.err
23504   rm -f conftest.er1
23505   cat conftest.err >&5
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); } &&
23508          { ac_try='test -z "$ac_c_werror_flag"
23509                          || test ! -s conftest.err'
23510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511   (eval $ac_try) 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; } &&
23515          { ac_try='test -s conftest$ac_exeext'
23516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517   (eval $ac_try) 2>&5
23518   ac_status=$?
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); }; }; then
23521   ac_cv_lib_rt_sched_yield=yes
23522 else
23523   echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23525
23526 ac_cv_lib_rt_sched_yield=no
23527 fi
23528 rm -f conftest.err conftest.$ac_objext \
23529       conftest$ac_exeext conftest.$ac_ext
23530 LIBS=$ac_check_lib_save_LIBS
23531 fi
23532 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23533 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23534 if test $ac_cv_lib_rt_sched_yield = yes; then
23535
23536           cat >>confdefs.h <<\_ACEOF
23537 #define HAVE_SCHED_YIELD 1
23538 _ACEOF
23539
23540           THREADLIBS="$THREADLIBS -lrt"
23541           THREADSPEC="$THREADSPEC -lrt"
23542 else
23543
23544           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23545 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23546 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23547   echo $ECHO_N "(cached) $ECHO_C" >&6
23548 else
23549   ac_check_lib_save_LIBS=$LIBS
23550 LIBS="-lposix4  $LIBS"
23551 if test x$gcc_no_link = xyes; then
23552   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23553 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23554    { (exit 1); exit 1; }; }
23555 fi
23556 cat >conftest.$ac_ext <<_ACEOF
23557 /* confdefs.h.  */
23558 _ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h.  */
23562
23563 /* Override any gcc2 internal prototype to avoid an error.  */
23564 #ifdef __cplusplus
23565 extern "C"
23566 #endif
23567 /* We use char because int might match the return type of a gcc2
23568    builtin and then its argument prototype would still apply.  */
23569 char sched_yield ();
23570 int
23571 main ()
23572 {
23573 sched_yield ();
23574   ;
23575   return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23580   (eval $ac_link) 2>conftest.er1
23581   ac_status=$?
23582   grep -v '^ *+' conftest.er1 >conftest.err
23583   rm -f conftest.er1
23584   cat conftest.err >&5
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); } &&
23587          { ac_try='test -z "$ac_c_werror_flag"
23588                          || test ! -s conftest.err'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; } &&
23594          { ac_try='test -s conftest$ac_exeext'
23595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596   (eval $ac_try) 2>&5
23597   ac_status=$?
23598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599   (exit $ac_status); }; }; then
23600   ac_cv_lib_posix4_sched_yield=yes
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605 ac_cv_lib_posix4_sched_yield=no
23606 fi
23607 rm -f conftest.err conftest.$ac_objext \
23608       conftest$ac_exeext conftest.$ac_ext
23609 LIBS=$ac_check_lib_save_LIBS
23610 fi
23611 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23612 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23613 if test $ac_cv_lib_posix4_sched_yield = yes; then
23614
23615             cat >>confdefs.h <<\_ACEOF
23616 #define HAVE_SCHED_YIELD 1
23617 _ACEOF
23618
23619             THREADLIBS="$THREADLIBS -lposix4"
23620             THREADSPEC="$THREADSPEC -lposix4"
23621 fi
23622
23623 fi
23624
23625 fi
23626 done
23627
23628
23629       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23630 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23631 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23632   echo $ECHO_N "(cached) $ECHO_C" >&6
23633 else
23634   ac_check_lib_save_LIBS=$LIBS
23635 LIBS="-lrt  $LIBS"
23636 if test x$gcc_no_link = xyes; then
23637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23639    { (exit 1); exit 1; }; }
23640 fi
23641 cat >conftest.$ac_ext <<_ACEOF
23642 /* confdefs.h.  */
23643 _ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h.  */
23647
23648 /* Override any gcc2 internal prototype to avoid an error.  */
23649 #ifdef __cplusplus
23650 extern "C"
23651 #endif
23652 /* We use char because int might match the return type of a gcc2
23653    builtin and then its argument prototype would still apply.  */
23654 char clock_gettime ();
23655 int
23656 main ()
23657 {
23658 clock_gettime ();
23659   ;
23660   return 0;
23661 }
23662 _ACEOF
23663 rm -f conftest.$ac_objext conftest$ac_exeext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23665   (eval $ac_link) 2>conftest.er1
23666   ac_status=$?
23667   grep -v '^ *+' conftest.er1 >conftest.err
23668   rm -f conftest.er1
23669   cat conftest.err >&5
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); } &&
23672          { ac_try='test -z "$ac_c_werror_flag"
23673                          || test ! -s conftest.err'
23674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675   (eval $ac_try) 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; } &&
23679          { ac_try='test -s conftest$ac_exeext'
23680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681   (eval $ac_try) 2>&5
23682   ac_status=$?
23683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684   (exit $ac_status); }; }; then
23685   ac_cv_lib_rt_clock_gettime=yes
23686 else
23687   echo "$as_me: failed program was:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23689
23690 ac_cv_lib_rt_clock_gettime=no
23691 fi
23692 rm -f conftest.err conftest.$ac_objext \
23693       conftest$ac_exeext conftest.$ac_ext
23694 LIBS=$ac_check_lib_save_LIBS
23695 fi
23696 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23697 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23698 if test $ac_cv_lib_rt_clock_gettime = yes; then
23699
23700
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_CLOCK_GETTIME 1
23703 _ACEOF
23704
23705          case "$THREADSPEC" in
23706            *-lrt*) ;;
23707            *)
23708              THREADSPEC="$THREADSPEC -lrt"
23709              THREADLIBS="$THREADLIBS -lrt"
23710              ;;
23711          esac
23712 fi
23713
23714
23715       LIBS="$save_LIBS"
23716
23717       # We can save a little space at runtime if the mutex has m_count
23718       # or __m_count.  This is a nice hack for Linux.
23719       cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h.  */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h.  */
23725 #include <pthread.h>
23726 int
23727 main ()
23728 {
23729
23730           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23731
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738   (eval $ac_compile) 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } &&
23745          { ac_try='test -z "$ac_c_werror_flag"
23746                          || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest.$ac_objext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758
23759 cat >>confdefs.h <<\_ACEOF
23760 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23761 _ACEOF
23762
23763 else
23764   echo "$as_me: failed program was:" >&5
23765 sed 's/^/| /' conftest.$ac_ext >&5
23766
23767
23768         cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774 #include <pthread.h>
23775 int
23776 main ()
23777 {
23778
23779             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23780
23781   ;
23782   return 0;
23783 }
23784 _ACEOF
23785 rm -f conftest.$ac_objext
23786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23787   (eval $ac_compile) 2>conftest.er1
23788   ac_status=$?
23789   grep -v '^ *+' conftest.er1 >conftest.err
23790   rm -f conftest.er1
23791   cat conftest.err >&5
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } &&
23794          { ac_try='test -z "$ac_c_werror_flag"
23795                          || test ! -s conftest.err'
23796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797   (eval $ac_try) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); }; } &&
23801          { ac_try='test -s conftest.$ac_objext'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807
23808 cat >>confdefs.h <<\_ACEOF
23809 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23810 _ACEOF
23811
23812 else
23813   echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23815
23816 fi
23817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23818 fi
23819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23820    fi
23821
23822    # We require a way to get the time.
23823    time_found=no
23824
23825
23826
23827 for ac_func in gettimeofday time ftime
23828 do
23829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23830 echo "$as_me:$LINENO: checking for $ac_func" >&5
23831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23832 if eval "test \"\${$as_ac_var+set}\" = set"; then
23833   echo $ECHO_N "(cached) $ECHO_C" >&6
23834 else
23835   if test x$gcc_no_link = xyes; then
23836   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23837 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23838    { (exit 1); exit 1; }; }
23839 fi
23840 cat >conftest.$ac_ext <<_ACEOF
23841 /* confdefs.h.  */
23842 _ACEOF
23843 cat confdefs.h >>conftest.$ac_ext
23844 cat >>conftest.$ac_ext <<_ACEOF
23845 /* end confdefs.h.  */
23846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23848 #define $ac_func innocuous_$ac_func
23849
23850 /* System header to define __stub macros and hopefully few prototypes,
23851     which can conflict with char $ac_func (); below.
23852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23853     <limits.h> exists even on freestanding compilers.  */
23854
23855 #ifdef __STDC__
23856 # include <limits.h>
23857 #else
23858 # include <assert.h>
23859 #endif
23860
23861 #undef $ac_func
23862
23863 /* Override any gcc2 internal prototype to avoid an error.  */
23864 #ifdef __cplusplus
23865 extern "C"
23866 {
23867 #endif
23868 /* We use char because int might match the return type of a gcc2
23869    builtin and then its argument prototype would still apply.  */
23870 char $ac_func ();
23871 /* The GNU C library defines this for functions which it implements
23872     to always fail with ENOSYS.  Some functions are actually named
23873     something starting with __ and the normal name is an alias.  */
23874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23875 choke me
23876 #else
23877 char (*f) () = $ac_func;
23878 #endif
23879 #ifdef __cplusplus
23880 }
23881 #endif
23882
23883 int
23884 main ()
23885 {
23886 return f != $ac_func;
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23893   (eval $ac_link) 2>conftest.er1
23894   ac_status=$?
23895   grep -v '^ *+' conftest.er1 >conftest.err
23896   rm -f conftest.er1
23897   cat conftest.err >&5
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); } &&
23900          { ac_try='test -z "$ac_c_werror_flag"
23901                          || test ! -s conftest.err'
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); }; } &&
23907          { ac_try='test -s conftest$ac_exeext'
23908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909   (eval $ac_try) 2>&5
23910   ac_status=$?
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); }; }; then
23913   eval "$as_ac_var=yes"
23914 else
23915   echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918 eval "$as_ac_var=no"
23919 fi
23920 rm -f conftest.err conftest.$ac_objext \
23921       conftest$ac_exeext conftest.$ac_ext
23922 fi
23923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23925 if test `eval echo '${'$as_ac_var'}'` = yes; then
23926   cat >>confdefs.h <<_ACEOF
23927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23928 _ACEOF
23929  time_found=yes
23930 fi
23931 done
23932
23933    if test "$time_found" = no; then
23934       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23935 echo "$as_me: error: no function found to get the time" >&2;}
23936    { (exit 1); exit 1; }; }
23937    fi
23938
23939
23940 for ac_func in memmove
23941 do
23942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23943 echo "$as_me:$LINENO: checking for $ac_func" >&5
23944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23945 if eval "test \"\${$as_ac_var+set}\" = set"; then
23946   echo $ECHO_N "(cached) $ECHO_C" >&6
23947 else
23948   if test x$gcc_no_link = xyes; then
23949   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23951    { (exit 1); exit 1; }; }
23952 fi
23953 cat >conftest.$ac_ext <<_ACEOF
23954 /* confdefs.h.  */
23955 _ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h.  */
23959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23961 #define $ac_func innocuous_$ac_func
23962
23963 /* System header to define __stub macros and hopefully few prototypes,
23964     which can conflict with char $ac_func (); below.
23965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23966     <limits.h> exists even on freestanding compilers.  */
23967
23968 #ifdef __STDC__
23969 # include <limits.h>
23970 #else
23971 # include <assert.h>
23972 #endif
23973
23974 #undef $ac_func
23975
23976 /* Override any gcc2 internal prototype to avoid an error.  */
23977 #ifdef __cplusplus
23978 extern "C"
23979 {
23980 #endif
23981 /* We use char because int might match the return type of a gcc2
23982    builtin and then its argument prototype would still apply.  */
23983 char $ac_func ();
23984 /* The GNU C library defines this for functions which it implements
23985     to always fail with ENOSYS.  Some functions are actually named
23986     something starting with __ and the normal name is an alias.  */
23987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23988 choke me
23989 #else
23990 char (*f) () = $ac_func;
23991 #endif
23992 #ifdef __cplusplus
23993 }
23994 #endif
23995
23996 int
23997 main ()
23998 {
23999 return f != $ac_func;
24000   ;
24001   return 0;
24002 }
24003 _ACEOF
24004 rm -f conftest.$ac_objext conftest$ac_exeext
24005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24006   (eval $ac_link) 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } &&
24013          { ac_try='test -z "$ac_c_werror_flag"
24014                          || test ! -s conftest.err'
24015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24016   (eval $ac_try) 2>&5
24017   ac_status=$?
24018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24019   (exit $ac_status); }; } &&
24020          { ac_try='test -s conftest$ac_exeext'
24021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24022   (eval $ac_try) 2>&5
24023   ac_status=$?
24024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025   (exit $ac_status); }; }; then
24026   eval "$as_ac_var=yes"
24027 else
24028   echo "$as_me: failed program was:" >&5
24029 sed 's/^/| /' conftest.$ac_ext >&5
24030
24031 eval "$as_ac_var=no"
24032 fi
24033 rm -f conftest.err conftest.$ac_objext \
24034       conftest$ac_exeext conftest.$ac_ext
24035 fi
24036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24038 if test `eval echo '${'$as_ac_var'}'` = yes; then
24039   cat >>confdefs.h <<_ACEOF
24040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24041 _ACEOF
24042
24043 fi
24044 done
24045
24046
24047    # We require memcpy.
24048    memcpy_found=no
24049
24050 for ac_func in memcpy
24051 do
24052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24053 echo "$as_me:$LINENO: checking for $ac_func" >&5
24054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24055 if eval "test \"\${$as_ac_var+set}\" = set"; then
24056   echo $ECHO_N "(cached) $ECHO_C" >&6
24057 else
24058   if test x$gcc_no_link = xyes; then
24059   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24060 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24061    { (exit 1); exit 1; }; }
24062 fi
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24070    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24071 #define $ac_func innocuous_$ac_func
24072
24073 /* System header to define __stub macros and hopefully few prototypes,
24074     which can conflict with char $ac_func (); below.
24075     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24076     <limits.h> exists even on freestanding compilers.  */
24077
24078 #ifdef __STDC__
24079 # include <limits.h>
24080 #else
24081 # include <assert.h>
24082 #endif
24083
24084 #undef $ac_func
24085
24086 /* Override any gcc2 internal prototype to avoid an error.  */
24087 #ifdef __cplusplus
24088 extern "C"
24089 {
24090 #endif
24091 /* We use char because int might match the return type of a gcc2
24092    builtin and then its argument prototype would still apply.  */
24093 char $ac_func ();
24094 /* The GNU C library defines this for functions which it implements
24095     to always fail with ENOSYS.  Some functions are actually named
24096     something starting with __ and the normal name is an alias.  */
24097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24098 choke me
24099 #else
24100 char (*f) () = $ac_func;
24101 #endif
24102 #ifdef __cplusplus
24103 }
24104 #endif
24105
24106 int
24107 main ()
24108 {
24109 return f != $ac_func;
24110   ;
24111   return 0;
24112 }
24113 _ACEOF
24114 rm -f conftest.$ac_objext conftest$ac_exeext
24115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24116   (eval $ac_link) 2>conftest.er1
24117   ac_status=$?
24118   grep -v '^ *+' conftest.er1 >conftest.err
24119   rm -f conftest.er1
24120   cat conftest.err >&5
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } &&
24123          { ac_try='test -z "$ac_c_werror_flag"
24124                          || test ! -s conftest.err'
24125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24126   (eval $ac_try) 2>&5
24127   ac_status=$?
24128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129   (exit $ac_status); }; } &&
24130          { ac_try='test -s conftest$ac_exeext'
24131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132   (eval $ac_try) 2>&5
24133   ac_status=$?
24134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135   (exit $ac_status); }; }; then
24136   eval "$as_ac_var=yes"
24137 else
24138   echo "$as_me: failed program was:" >&5
24139 sed 's/^/| /' conftest.$ac_ext >&5
24140
24141 eval "$as_ac_var=no"
24142 fi
24143 rm -f conftest.err conftest.$ac_objext \
24144       conftest$ac_exeext conftest.$ac_ext
24145 fi
24146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24148 if test `eval echo '${'$as_ac_var'}'` = yes; then
24149   cat >>confdefs.h <<_ACEOF
24150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24151 _ACEOF
24152  memcpy_found=yes
24153 fi
24154 done
24155
24156    if test "$memcpy_found" = no; then
24157       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24158 echo "$as_me: error: memcpy is required" >&2;}
24159    { (exit 1); exit 1; }; }
24160    fi
24161    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24162    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24163 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24164 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24165   echo $ECHO_N "(cached) $ECHO_C" >&6
24166 else
24167   ac_check_lib_save_LIBS=$LIBS
24168 LIBS="-ldl  $LIBS"
24169 if test x$gcc_no_link = xyes; then
24170   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24171 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24172    { (exit 1); exit 1; }; }
24173 fi
24174 cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180
24181 /* Override any gcc2 internal prototype to avoid an error.  */
24182 #ifdef __cplusplus
24183 extern "C"
24184 #endif
24185 /* We use char because int might match the return type of a gcc2
24186    builtin and then its argument prototype would still apply.  */
24187 char dlopen ();
24188 int
24189 main ()
24190 {
24191 dlopen ();
24192   ;
24193   return 0;
24194 }
24195 _ACEOF
24196 rm -f conftest.$ac_objext conftest$ac_exeext
24197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24198   (eval $ac_link) 2>conftest.er1
24199   ac_status=$?
24200   grep -v '^ *+' conftest.er1 >conftest.err
24201   rm -f conftest.er1
24202   cat conftest.err >&5
24203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204   (exit $ac_status); } &&
24205          { ac_try='test -z "$ac_c_werror_flag"
24206                          || test ! -s conftest.err'
24207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24208   (eval $ac_try) 2>&5
24209   ac_status=$?
24210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211   (exit $ac_status); }; } &&
24212          { ac_try='test -s conftest$ac_exeext'
24213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24214   (eval $ac_try) 2>&5
24215   ac_status=$?
24216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217   (exit $ac_status); }; }; then
24218   ac_cv_lib_dl_dlopen=yes
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223 ac_cv_lib_dl_dlopen=no
24224 fi
24225 rm -f conftest.err conftest.$ac_objext \
24226       conftest$ac_exeext conftest.$ac_ext
24227 LIBS=$ac_check_lib_save_LIBS
24228 fi
24229 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24231 if test $ac_cv_lib_dl_dlopen = yes; then
24232
24233
24234 cat >>confdefs.h <<\_ACEOF
24235 #define HAVE_DLOPEN 1
24236 _ACEOF
24237
24238 else
24239
24240        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24241 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24242 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24243   echo $ECHO_N "(cached) $ECHO_C" >&6
24244 else
24245   ac_check_lib_save_LIBS=$LIBS
24246 LIBS="-ldld  $LIBS"
24247 if test x$gcc_no_link = xyes; then
24248   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24250    { (exit 1); exit 1; }; }
24251 fi
24252 cat >conftest.$ac_ext <<_ACEOF
24253 /* confdefs.h.  */
24254 _ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h.  */
24258
24259 /* Override any gcc2 internal prototype to avoid an error.  */
24260 #ifdef __cplusplus
24261 extern "C"
24262 #endif
24263 /* We use char because int might match the return type of a gcc2
24264    builtin and then its argument prototype would still apply.  */
24265 char dlopen ();
24266 int
24267 main ()
24268 {
24269 dlopen ();
24270   ;
24271   return 0;
24272 }
24273 _ACEOF
24274 rm -f conftest.$ac_objext conftest$ac_exeext
24275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24276   (eval $ac_link) 2>conftest.er1
24277   ac_status=$?
24278   grep -v '^ *+' conftest.er1 >conftest.err
24279   rm -f conftest.er1
24280   cat conftest.err >&5
24281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24282   (exit $ac_status); } &&
24283          { ac_try='test -z "$ac_c_werror_flag"
24284                          || test ! -s conftest.err'
24285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24286   (eval $ac_try) 2>&5
24287   ac_status=$?
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); }; } &&
24290          { ac_try='test -s conftest$ac_exeext'
24291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292   (eval $ac_try) 2>&5
24293   ac_status=$?
24294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295   (exit $ac_status); }; }; then
24296   ac_cv_lib_dld_dlopen=yes
24297 else
24298   echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300
24301 ac_cv_lib_dld_dlopen=no
24302 fi
24303 rm -f conftest.err conftest.$ac_objext \
24304       conftest$ac_exeext conftest.$ac_ext
24305 LIBS=$ac_check_lib_save_LIBS
24306 fi
24307 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24308 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24309 if test $ac_cv_lib_dld_dlopen = yes; then
24310
24311
24312 cat >>confdefs.h <<\_ACEOF
24313 #define HAVE_DLOPEN 1
24314 _ACEOF
24315
24316 fi
24317
24318 fi
24319
24320
24321    # Some library-finding code we stole from Tcl.
24322    #--------------------------------------------------------------------
24323    #    Check for the existence of the -lsocket and -lnsl libraries.
24324    #    The order here is important, so that they end up in the right
24325    #    order in the command line generated by make.  Here are some
24326    #    special considerations:
24327    #    1. Use "connect" and "accept" to check for -lsocket, and
24328    #       "gethostbyname" to check for -lnsl.
24329    #    2. Use each function name only once:  can't redo a check because
24330    #       autoconf caches the results of the last check and won't redo it.
24331    #    3. Use -lnsl and -lsocket only if they supply procedures that
24332    #       aren't already present in the normal libraries.  This is because
24333    #       IRIX 5.2 has libraries, but they aren't needed and they're
24334    #       bogus:  they goof up name resolution if used.
24335    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24336    #       To get around this problem, check for both libraries together
24337    #       if -lsocket doesn't work by itself.
24338    #--------------------------------------------------------------------
24339
24340    echo "$as_me:$LINENO: checking for socket libraries" >&5
24341 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24342 if test "${gcj_cv_lib_sockets+set}" = set; then
24343   echo $ECHO_N "(cached) $ECHO_C" >&6
24344 else
24345   gcj_cv_lib_sockets=
24346      gcj_checkBoth=0
24347      unset ac_cv_func_connect
24348      echo "$as_me:$LINENO: checking for connect" >&5
24349 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24350 if test "${ac_cv_func_connect+set}" = set; then
24351   echo $ECHO_N "(cached) $ECHO_C" >&6
24352 else
24353   if test x$gcc_no_link = xyes; then
24354   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24355 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24356    { (exit 1); exit 1; }; }
24357 fi
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h.  */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h.  */
24364 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24366 #define connect innocuous_connect
24367
24368 /* System header to define __stub macros and hopefully few prototypes,
24369     which can conflict with char connect (); below.
24370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24371     <limits.h> exists even on freestanding compilers.  */
24372
24373 #ifdef __STDC__
24374 # include <limits.h>
24375 #else
24376 # include <assert.h>
24377 #endif
24378
24379 #undef connect
24380
24381 /* Override any gcc2 internal prototype to avoid an error.  */
24382 #ifdef __cplusplus
24383 extern "C"
24384 {
24385 #endif
24386 /* We use char because int might match the return type of a gcc2
24387    builtin and then its argument prototype would still apply.  */
24388 char connect ();
24389 /* The GNU C library defines this for functions which it implements
24390     to always fail with ENOSYS.  Some functions are actually named
24391     something starting with __ and the normal name is an alias.  */
24392 #if defined (__stub_connect) || defined (__stub___connect)
24393 choke me
24394 #else
24395 char (*f) () = connect;
24396 #endif
24397 #ifdef __cplusplus
24398 }
24399 #endif
24400
24401 int
24402 main ()
24403 {
24404 return f != connect;
24405   ;
24406   return 0;
24407 }
24408 _ACEOF
24409 rm -f conftest.$ac_objext conftest$ac_exeext
24410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24411   (eval $ac_link) 2>conftest.er1
24412   ac_status=$?
24413   grep -v '^ *+' conftest.er1 >conftest.err
24414   rm -f conftest.er1
24415   cat conftest.err >&5
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); } &&
24418          { ac_try='test -z "$ac_c_werror_flag"
24419                          || test ! -s conftest.err'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; } &&
24425          { ac_try='test -s conftest$ac_exeext'
24426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427   (eval $ac_try) 2>&5
24428   ac_status=$?
24429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430   (exit $ac_status); }; }; then
24431   ac_cv_func_connect=yes
24432 else
24433   echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436 ac_cv_func_connect=no
24437 fi
24438 rm -f conftest.err conftest.$ac_objext \
24439       conftest$ac_exeext conftest.$ac_ext
24440 fi
24441 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24442 echo "${ECHO_T}$ac_cv_func_connect" >&6
24443 if test $ac_cv_func_connect = yes; then
24444   gcj_checkSocket=0
24445 else
24446   gcj_checkSocket=1
24447 fi
24448
24449      if test "$gcj_checkSocket" = 1; then
24450          unset ac_cv_func_connect
24451          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24452 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24453 if test "${ac_cv_lib_socket_main+set}" = set; then
24454   echo $ECHO_N "(cached) $ECHO_C" >&6
24455 else
24456   ac_check_lib_save_LIBS=$LIBS
24457 LIBS="-lsocket  $LIBS"
24458 if test x$gcc_no_link = xyes; then
24459   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24460 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24461    { (exit 1); exit 1; }; }
24462 fi
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h.  */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h.  */
24469
24470
24471 int
24472 main ()
24473 {
24474 main ();
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext conftest$ac_exeext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24481   (eval $ac_link) 2>conftest.er1
24482   ac_status=$?
24483   grep -v '^ *+' conftest.er1 >conftest.err
24484   rm -f conftest.er1
24485   cat conftest.err >&5
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); } &&
24488          { ac_try='test -z "$ac_c_werror_flag"
24489                          || test ! -s conftest.err'
24490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; } &&
24495          { ac_try='test -s conftest$ac_exeext'
24496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497   (eval $ac_try) 2>&5
24498   ac_status=$?
24499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); }; }; then
24501   ac_cv_lib_socket_main=yes
24502 else
24503   echo "$as_me: failed program was:" >&5
24504 sed 's/^/| /' conftest.$ac_ext >&5
24505
24506 ac_cv_lib_socket_main=no
24507 fi
24508 rm -f conftest.err conftest.$ac_objext \
24509       conftest$ac_exeext conftest.$ac_ext
24510 LIBS=$ac_check_lib_save_LIBS
24511 fi
24512 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24513 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24514 if test $ac_cv_lib_socket_main = yes; then
24515   gcj_cv_lib_sockets="-lsocket"
24516 else
24517   gcj_checkBoth=1
24518 fi
24519
24520      fi
24521      if test "$gcj_checkBoth" = 1; then
24522          gcj_oldLibs=$LIBS
24523          LIBS="$LIBS -lsocket -lnsl"
24524          unset ac_cv_func_accept
24525          echo "$as_me:$LINENO: checking for accept" >&5
24526 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24527 if test "${ac_cv_func_accept+set}" = set; then
24528   echo $ECHO_N "(cached) $ECHO_C" >&6
24529 else
24530   if test x$gcc_no_link = xyes; then
24531   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24533    { (exit 1); exit 1; }; }
24534 fi
24535 cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24542    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24543 #define accept innocuous_accept
24544
24545 /* System header to define __stub macros and hopefully few prototypes,
24546     which can conflict with char accept (); below.
24547     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24548     <limits.h> exists even on freestanding compilers.  */
24549
24550 #ifdef __STDC__
24551 # include <limits.h>
24552 #else
24553 # include <assert.h>
24554 #endif
24555
24556 #undef accept
24557
24558 /* Override any gcc2 internal prototype to avoid an error.  */
24559 #ifdef __cplusplus
24560 extern "C"
24561 {
24562 #endif
24563 /* We use char because int might match the return type of a gcc2
24564    builtin and then its argument prototype would still apply.  */
24565 char accept ();
24566 /* The GNU C library defines this for functions which it implements
24567     to always fail with ENOSYS.  Some functions are actually named
24568     something starting with __ and the normal name is an alias.  */
24569 #if defined (__stub_accept) || defined (__stub___accept)
24570 choke me
24571 #else
24572 char (*f) () = accept;
24573 #endif
24574 #ifdef __cplusplus
24575 }
24576 #endif
24577
24578 int
24579 main ()
24580 {
24581 return f != accept;
24582   ;
24583   return 0;
24584 }
24585 _ACEOF
24586 rm -f conftest.$ac_objext conftest$ac_exeext
24587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24588   (eval $ac_link) 2>conftest.er1
24589   ac_status=$?
24590   grep -v '^ *+' conftest.er1 >conftest.err
24591   rm -f conftest.er1
24592   cat conftest.err >&5
24593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594   (exit $ac_status); } &&
24595          { ac_try='test -z "$ac_c_werror_flag"
24596                          || test ! -s conftest.err'
24597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24598   (eval $ac_try) 2>&5
24599   ac_status=$?
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); }; } &&
24602          { ac_try='test -s conftest$ac_exeext'
24603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24604   (eval $ac_try) 2>&5
24605   ac_status=$?
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); }; }; then
24608   ac_cv_func_accept=yes
24609 else
24610   echo "$as_me: failed program was:" >&5
24611 sed 's/^/| /' conftest.$ac_ext >&5
24612
24613 ac_cv_func_accept=no
24614 fi
24615 rm -f conftest.err conftest.$ac_objext \
24616       conftest$ac_exeext conftest.$ac_ext
24617 fi
24618 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24619 echo "${ECHO_T}$ac_cv_func_accept" >&6
24620 if test $ac_cv_func_accept = yes; then
24621   gcj_checkNsl=0
24622                         gcj_cv_lib_sockets="-lsocket -lnsl"
24623 fi
24624
24625          unset ac_cv_func_accept
24626          LIBS=$gcj_oldLibs
24627      fi
24628      unset ac_cv_func_gethostbyname
24629      gcj_oldLibs=$LIBS
24630      LIBS="$LIBS $gcj_cv_lib_sockets"
24631      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24632 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24633 if test "${ac_cv_func_gethostbyname+set}" = set; then
24634   echo $ECHO_N "(cached) $ECHO_C" >&6
24635 else
24636   if test x$gcc_no_link = xyes; then
24637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24639    { (exit 1); exit 1; }; }
24640 fi
24641 cat >conftest.$ac_ext <<_ACEOF
24642 /* confdefs.h.  */
24643 _ACEOF
24644 cat confdefs.h >>conftest.$ac_ext
24645 cat >>conftest.$ac_ext <<_ACEOF
24646 /* end confdefs.h.  */
24647 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24649 #define gethostbyname innocuous_gethostbyname
24650
24651 /* System header to define __stub macros and hopefully few prototypes,
24652     which can conflict with char gethostbyname (); below.
24653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24654     <limits.h> exists even on freestanding compilers.  */
24655
24656 #ifdef __STDC__
24657 # include <limits.h>
24658 #else
24659 # include <assert.h>
24660 #endif
24661
24662 #undef gethostbyname
24663
24664 /* Override any gcc2 internal prototype to avoid an error.  */
24665 #ifdef __cplusplus
24666 extern "C"
24667 {
24668 #endif
24669 /* We use char because int might match the return type of a gcc2
24670    builtin and then its argument prototype would still apply.  */
24671 char gethostbyname ();
24672 /* The GNU C library defines this for functions which it implements
24673     to always fail with ENOSYS.  Some functions are actually named
24674     something starting with __ and the normal name is an alias.  */
24675 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24676 choke me
24677 #else
24678 char (*f) () = gethostbyname;
24679 #endif
24680 #ifdef __cplusplus
24681 }
24682 #endif
24683
24684 int
24685 main ()
24686 {
24687 return f != gethostbyname;
24688   ;
24689   return 0;
24690 }
24691 _ACEOF
24692 rm -f conftest.$ac_objext conftest$ac_exeext
24693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24694   (eval $ac_link) 2>conftest.er1
24695   ac_status=$?
24696   grep -v '^ *+' conftest.er1 >conftest.err
24697   rm -f conftest.er1
24698   cat conftest.err >&5
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } &&
24701          { ac_try='test -z "$ac_c_werror_flag"
24702                          || test ! -s conftest.err'
24703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24704   (eval $ac_try) 2>&5
24705   ac_status=$?
24706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707   (exit $ac_status); }; } &&
24708          { ac_try='test -s conftest$ac_exeext'
24709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710   (eval $ac_try) 2>&5
24711   ac_status=$?
24712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713   (exit $ac_status); }; }; then
24714   ac_cv_func_gethostbyname=yes
24715 else
24716   echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24718
24719 ac_cv_func_gethostbyname=no
24720 fi
24721 rm -f conftest.err conftest.$ac_objext \
24722       conftest$ac_exeext conftest.$ac_ext
24723 fi
24724 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24725 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24726 if test $ac_cv_func_gethostbyname = yes; then
24727   :
24728 else
24729   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24730 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24731 if test "${ac_cv_lib_nsl_main+set}" = set; then
24732   echo $ECHO_N "(cached) $ECHO_C" >&6
24733 else
24734   ac_check_lib_save_LIBS=$LIBS
24735 LIBS="-lnsl  $LIBS"
24736 if test x$gcc_no_link = xyes; then
24737   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24739    { (exit 1); exit 1; }; }
24740 fi
24741 cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h.  */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h.  */
24747
24748
24749 int
24750 main ()
24751 {
24752 main ();
24753   ;
24754   return 0;
24755 }
24756 _ACEOF
24757 rm -f conftest.$ac_objext conftest$ac_exeext
24758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24759   (eval $ac_link) 2>conftest.er1
24760   ac_status=$?
24761   grep -v '^ *+' conftest.er1 >conftest.err
24762   rm -f conftest.er1
24763   cat conftest.err >&5
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); } &&
24766          { ac_try='test -z "$ac_c_werror_flag"
24767                          || test ! -s conftest.err'
24768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769   (eval $ac_try) 2>&5
24770   ac_status=$?
24771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); }; } &&
24773          { ac_try='test -s conftest$ac_exeext'
24774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775   (eval $ac_try) 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; }; then
24779   ac_cv_lib_nsl_main=yes
24780 else
24781   echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24783
24784 ac_cv_lib_nsl_main=no
24785 fi
24786 rm -f conftest.err conftest.$ac_objext \
24787       conftest$ac_exeext conftest.$ac_ext
24788 LIBS=$ac_check_lib_save_LIBS
24789 fi
24790 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24791 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24792 if test $ac_cv_lib_nsl_main = yes; then
24793   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24794 fi
24795
24796 fi
24797
24798      unset ac_cv_func_gethostbyname
24799      LIBS=$gcj_oldLIBS
24800
24801 fi
24802 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24803 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24804    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24805
24806    if test "$with_system_zlib" = yes; then
24807       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24808 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24809 if test "${ac_cv_lib_z_deflate+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lz  $LIBS"
24814 if test x$gcc_no_link = xyes; then
24815   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24817    { (exit 1); exit 1; }; }
24818 fi
24819 cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825
24826 /* Override any gcc2 internal prototype to avoid an error.  */
24827 #ifdef __cplusplus
24828 extern "C"
24829 #endif
24830 /* We use char because int might match the return type of a gcc2
24831    builtin and then its argument prototype would still apply.  */
24832 char deflate ();
24833 int
24834 main ()
24835 {
24836 deflate ();
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext conftest$ac_exeext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24843   (eval $ac_link) 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } &&
24850          { ac_try='test -z "$ac_c_werror_flag"
24851                          || test ! -s conftest.err'
24852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853   (eval $ac_try) 2>&5
24854   ac_status=$?
24855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856   (exit $ac_status); }; } &&
24857          { ac_try='test -s conftest$ac_exeext'
24858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859   (eval $ac_try) 2>&5
24860   ac_status=$?
24861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862   (exit $ac_status); }; }; then
24863   ac_cv_lib_z_deflate=yes
24864 else
24865   echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ac_cv_lib_z_deflate=no
24869 fi
24870 rm -f conftest.err conftest.$ac_objext \
24871       conftest$ac_exeext conftest.$ac_ext
24872 LIBS=$ac_check_lib_save_LIBS
24873 fi
24874 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24875 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24876 if test $ac_cv_lib_z_deflate = yes; then
24877   ZLIBSPEC=-lz
24878 else
24879   ZLIBSPEC=
24880 fi
24881
24882    fi
24883
24884    # Test for Gtk stuff, if asked for.
24885    if test "$use_gtk_awt" = yes; then
24886
24887   succeeded=no
24888
24889   if test -z "$PKG_CONFIG"; then
24890     # Extract the first word of "pkg-config", so it can be a program name with args.
24891 set dummy pkg-config; ac_word=$2
24892 echo "$as_me:$LINENO: checking for $ac_word" >&5
24893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24895   echo $ECHO_N "(cached) $ECHO_C" >&6
24896 else
24897   case $PKG_CONFIG in
24898   [\\/]* | ?:[\\/]*)
24899   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24900   ;;
24901   *)
24902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24903 for as_dir in $PATH
24904 do
24905   IFS=$as_save_IFS
24906   test -z "$as_dir" && as_dir=.
24907   for ac_exec_ext in '' $ac_executable_extensions; do
24908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24909     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24911     break 2
24912   fi
24913 done
24914 done
24915
24916   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24917   ;;
24918 esac
24919 fi
24920 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24921
24922 if test -n "$PKG_CONFIG"; then
24923   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24924 echo "${ECHO_T}$PKG_CONFIG" >&6
24925 else
24926   echo "$as_me:$LINENO: result: no" >&5
24927 echo "${ECHO_T}no" >&6
24928 fi
24929
24930   fi
24931
24932   if test "$PKG_CONFIG" = "no" ; then
24933      echo "*** The pkg-config script could not be found. Make sure it is"
24934      echo "*** in your path, or set the PKG_CONFIG environment variable"
24935      echo "*** to the full path to pkg-config."
24936      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24937   else
24938      PKG_CONFIG_MIN_VERSION=0.9.0
24939      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24940         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24941 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24942
24943         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24944             echo "$as_me:$LINENO: result: yes" >&5
24945 echo "${ECHO_T}yes" >&6
24946             succeeded=yes
24947
24948             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24949 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24950             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24951             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24952 echo "${ECHO_T}$GTK_CFLAGS" >&6
24953
24954             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24955 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24956             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24957             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24958 echo "${ECHO_T}$GTK_LIBS" >&6
24959         else
24960             GTK_CFLAGS=""
24961             GTK_LIBS=""
24962             ## If we have a custom action on failure, don't print errors, but
24963             ## do set a variable so people can do so.
24964             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24965             echo $GTK_PKG_ERRORS
24966         fi
24967
24968
24969
24970      else
24971         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24972         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24973      fi
24974   fi
24975
24976   if test $succeeded = yes; then
24977      :
24978   else
24979      { { 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
24980 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;}
24981    { (exit 1); exit 1; }; }
24982   fi
24983
24984
24985
24986
24987
24988   succeeded=no
24989
24990   if test -z "$PKG_CONFIG"; then
24991     # Extract the first word of "pkg-config", so it can be a program name with args.
24992 set dummy pkg-config; ac_word=$2
24993 echo "$as_me:$LINENO: checking for $ac_word" >&5
24994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24995 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24996   echo $ECHO_N "(cached) $ECHO_C" >&6
24997 else
24998   case $PKG_CONFIG in
24999   [\\/]* | ?:[\\/]*)
25000   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25001   ;;
25002   *)
25003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25004 for as_dir in $PATH
25005 do
25006   IFS=$as_save_IFS
25007   test -z "$as_dir" && as_dir=.
25008   for ac_exec_ext in '' $ac_executable_extensions; do
25009   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25010     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25012     break 2
25013   fi
25014 done
25015 done
25016
25017   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25018   ;;
25019 esac
25020 fi
25021 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25022
25023 if test -n "$PKG_CONFIG"; then
25024   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25025 echo "${ECHO_T}$PKG_CONFIG" >&6
25026 else
25027   echo "$as_me:$LINENO: result: no" >&5
25028 echo "${ECHO_T}no" >&6
25029 fi
25030
25031   fi
25032
25033   if test "$PKG_CONFIG" = "no" ; then
25034      echo "*** The pkg-config script could not be found. Make sure it is"
25035      echo "*** in your path, or set the PKG_CONFIG environment variable"
25036      echo "*** to the full path to pkg-config."
25037      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25038   else
25039      PKG_CONFIG_MIN_VERSION=0.9.0
25040      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25041         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25042 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25043
25044         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25045             echo "$as_me:$LINENO: result: yes" >&5
25046 echo "${ECHO_T}yes" >&6
25047             succeeded=yes
25048
25049             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25050 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25051             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25052             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25053 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25054
25055             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25056 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25057             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25058             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25059 echo "${ECHO_T}$GLIB_LIBS" >&6
25060         else
25061             GLIB_CFLAGS=""
25062             GLIB_LIBS=""
25063             ## If we have a custom action on failure, don't print errors, but
25064             ## do set a variable so people can do so.
25065             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25066             echo $GLIB_PKG_ERRORS
25067         fi
25068
25069
25070
25071      else
25072         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25073         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25074      fi
25075   fi
25076
25077   if test $succeeded = yes; then
25078      :
25079   else
25080      { { 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
25081 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;}
25082    { (exit 1); exit 1; }; }
25083   fi
25084
25085
25086
25087
25088
25089   succeeded=no
25090
25091   if test -z "$PKG_CONFIG"; then
25092     # Extract the first word of "pkg-config", so it can be a program name with args.
25093 set dummy pkg-config; ac_word=$2
25094 echo "$as_me:$LINENO: checking for $ac_word" >&5
25095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25097   echo $ECHO_N "(cached) $ECHO_C" >&6
25098 else
25099   case $PKG_CONFIG in
25100   [\\/]* | ?:[\\/]*)
25101   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25102   ;;
25103   *)
25104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25105 for as_dir in $PATH
25106 do
25107   IFS=$as_save_IFS
25108   test -z "$as_dir" && as_dir=.
25109   for ac_exec_ext in '' $ac_executable_extensions; do
25110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25111     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25113     break 2
25114   fi
25115 done
25116 done
25117
25118   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25119   ;;
25120 esac
25121 fi
25122 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25123
25124 if test -n "$PKG_CONFIG"; then
25125   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25126 echo "${ECHO_T}$PKG_CONFIG" >&6
25127 else
25128   echo "$as_me:$LINENO: result: no" >&5
25129 echo "${ECHO_T}no" >&6
25130 fi
25131
25132   fi
25133
25134   if test "$PKG_CONFIG" = "no" ; then
25135      echo "*** The pkg-config script could not be found. Make sure it is"
25136      echo "*** in your path, or set the PKG_CONFIG environment variable"
25137      echo "*** to the full path to pkg-config."
25138      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25139   else
25140      PKG_CONFIG_MIN_VERSION=0.9.0
25141      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25142         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25143 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25144
25145         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25146             echo "$as_me:$LINENO: result: yes" >&5
25147 echo "${ECHO_T}yes" >&6
25148             succeeded=yes
25149
25150             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25151 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25152             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25153             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25154 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25155
25156             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25157 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25158             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25159             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25160 echo "${ECHO_T}$LIBART_LIBS" >&6
25161         else
25162             LIBART_CFLAGS=""
25163             LIBART_LIBS=""
25164             ## If we have a custom action on failure, don't print errors, but
25165             ## do set a variable so people can do so.
25166             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25167             echo $LIBART_PKG_ERRORS
25168         fi
25169
25170
25171
25172      else
25173         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25174         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25175      fi
25176   fi
25177
25178   if test $succeeded = yes; then
25179      :
25180   else
25181      { { 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
25182 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;}
25183    { (exit 1); exit 1; }; }
25184   fi
25185
25186
25187
25188
25189       # We require the XTest Extension to support java.awt.Robot.
25190       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25191 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25192 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25193   echo $ECHO_N "(cached) $ECHO_C" >&6
25194 else
25195   ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lXtst ${X_LIBS} $LIBS"
25197 if test x$gcc_no_link = xyes; then
25198   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25200    { (exit 1); exit 1; }; }
25201 fi
25202 cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h.  */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h.  */
25208
25209 /* Override any gcc2 internal prototype to avoid an error.  */
25210 #ifdef __cplusplus
25211 extern "C"
25212 #endif
25213 /* We use char because int might match the return type of a gcc2
25214    builtin and then its argument prototype would still apply.  */
25215 char XTestQueryExtension ();
25216 int
25217 main ()
25218 {
25219 XTestQueryExtension ();
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 rm -f conftest.$ac_objext conftest$ac_exeext
25225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25226   (eval $ac_link) 2>conftest.er1
25227   ac_status=$?
25228   grep -v '^ *+' conftest.er1 >conftest.err
25229   rm -f conftest.er1
25230   cat conftest.err >&5
25231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25232   (exit $ac_status); } &&
25233          { ac_try='test -z "$ac_c_werror_flag"
25234                          || test ! -s conftest.err'
25235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236   (eval $ac_try) 2>&5
25237   ac_status=$?
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); }; } &&
25240          { ac_try='test -s conftest$ac_exeext'
25241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; }; then
25246   ac_cv_lib_Xtst_XTestQueryExtension=yes
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251 ac_cv_lib_Xtst_XTestQueryExtension=no
25252 fi
25253 rm -f conftest.err conftest.$ac_objext \
25254       conftest$ac_exeext conftest.$ac_ext
25255 LIBS=$ac_check_lib_save_LIBS
25256 fi
25257 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25258 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25259 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25260   true
25261 else
25262   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25263 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25264    { (exit 1); exit 1; }; }
25265 fi
25266
25267    fi
25268
25269    # On Solaris, and maybe other architectures, the Boehm collector
25270    # requires -ldl.
25271    if test "$GC" = boehm; then
25272       case "${host}" in
25273           mips-sgi-irix6*)
25274             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25275             # libgcj.spec is used, so override here
25276             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25277           ;;
25278           *)
25279             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25280 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25281 if test "${ac_cv_lib_dl_main+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284   ac_check_lib_save_LIBS=$LIBS
25285 LIBS="-ldl  $LIBS"
25286 if test x$gcc_no_link = xyes; then
25287   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25288 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25289    { (exit 1); exit 1; }; }
25290 fi
25291 cat >conftest.$ac_ext <<_ACEOF
25292 /* confdefs.h.  */
25293 _ACEOF
25294 cat confdefs.h >>conftest.$ac_ext
25295 cat >>conftest.$ac_ext <<_ACEOF
25296 /* end confdefs.h.  */
25297
25298
25299 int
25300 main ()
25301 {
25302 main ();
25303   ;
25304   return 0;
25305 }
25306 _ACEOF
25307 rm -f conftest.$ac_objext conftest$ac_exeext
25308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25309   (eval $ac_link) 2>conftest.er1
25310   ac_status=$?
25311   grep -v '^ *+' conftest.er1 >conftest.err
25312   rm -f conftest.er1
25313   cat conftest.err >&5
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); } &&
25316          { ac_try='test -z "$ac_c_werror_flag"
25317                          || test ! -s conftest.err'
25318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319   (eval $ac_try) 2>&5
25320   ac_status=$?
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); }; } &&
25323          { ac_try='test -s conftest$ac_exeext'
25324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325   (eval $ac_try) 2>&5
25326   ac_status=$?
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); }; }; then
25329   ac_cv_lib_dl_main=yes
25330 else
25331   echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334 ac_cv_lib_dl_main=no
25335 fi
25336 rm -f conftest.err conftest.$ac_objext \
25337       conftest$ac_exeext conftest.$ac_ext
25338 LIBS=$ac_check_lib_save_LIBS
25339 fi
25340 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25341 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25342 if test $ac_cv_lib_dl_main = yes; then
25343   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25344 fi
25345
25346           ;;
25347       esac
25348    fi
25349 fi
25350
25351 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25352 case $build in
25353     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25354     *)         CLASSPATH_SEPARATOR=':' ;;
25355 esac
25356
25357
25358 # We must search the source tree for java.lang, since we still don't
25359 # have libgcj.jar nor java/lang/*.class
25360 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25361 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25362
25363 # Since some classes depend on this one, we need its source available
25364 # before we can do any GCJ compilation test :-(
25365 if test ! -f gnu/classpath/Configuration.java; then
25366   test -d gnu || mkdir gnu
25367   test -d gnu/classpath || mkdir gnu/classpath
25368   # Note that it is not crucial that all the values here be correct.
25369   sed -e "s,@prefix@,$prefix," \
25370       -e "s,@VERSION@,$VERSION," \
25371       -e "s,@LIBDEBUG@,false," \
25372       -e "s,@INIT_LOAD_LIBRARY@,false," \
25373       -e "s,@@,$LIBGCJDEBUG," \
25374       -e "s,@default_toolkit@,$TOOLKIT," \
25375       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25376       -e "s,@GTK_CAIRO_ENABLED@,false," \
25377       -e "s,@ECJ_JAR@,," \
25378         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25379         > gnu/classpath/Configuration.java
25380   # We do not want to redirect the output of the grep below to /dev/null,
25381   # but we add /dev/null to the input list so that grep will print the
25382   # filename of Configuration.java in case it finds any matches.
25383   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25384     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25385 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25386    { (exit 1); exit 1; }; }
25387   fi
25388 fi
25389
25390
25391 for ac_prog in gcj
25392 do
25393   # Extract the first word of "$ac_prog", so it can be a program name with args.
25394 set dummy $ac_prog; ac_word=$2
25395 echo "$as_me:$LINENO: checking for $ac_word" >&5
25396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25397 if test "${ac_cv_prog_GCJ+set}" = set; then
25398   echo $ECHO_N "(cached) $ECHO_C" >&6
25399 else
25400   if test -n "$GCJ"; then
25401   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25402 else
25403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25404 for as_dir in $PATH
25405 do
25406   IFS=$as_save_IFS
25407   test -z "$as_dir" && as_dir=.
25408   for ac_exec_ext in '' $ac_executable_extensions; do
25409   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25410     ac_cv_prog_GCJ="$ac_prog"
25411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25412     break 2
25413   fi
25414 done
25415 done
25416
25417 fi
25418 fi
25419 GCJ=$ac_cv_prog_GCJ
25420 if test -n "$GCJ"; then
25421   echo "$as_me:$LINENO: result: $GCJ" >&5
25422 echo "${ECHO_T}$GCJ" >&6
25423 else
25424   echo "$as_me:$LINENO: result: no" >&5
25425 echo "${ECHO_T}no" >&6
25426 fi
25427
25428   test -n "$GCJ" && break
25429 done
25430 test -n "$GCJ" || GCJ="gcj"
25431
25432 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25433 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25434    { (exit 1); exit 1; }; }
25435 if test "x${GCJFLAGS-unset}" = xunset; then
25436    GCJFLAGS="-g -O2"
25437 fi
25438
25439
25440 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25441
25442 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25443 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25444 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25448   # We make a subdir and do the tests there.  Otherwise we can end up
25449   # making bogus files that we don't know about and never remove.  For
25450   # instance it was reported that on HP-UX the gcc test will end up
25451   # making a dummy file named `D' -- because `-MD' means `put the output
25452   # in D'.
25453   mkdir conftest.dir
25454   # Copy depcomp to subdir because otherwise we won't find it if we're
25455   # using a relative directory.
25456   cp "$am_depcomp" conftest.dir
25457   cd conftest.dir
25458   # We will build objects and dependencies in a subdirectory because
25459   # it helps to detect inapplicable dependency modes.  For instance
25460   # both Tru64's cc and ICC support -MD to output dependencies as a
25461   # side effect of compilation, but ICC will put the dependencies in
25462   # the current directory while Tru64 will put them in the object
25463   # directory.
25464   mkdir sub
25465
25466   am_cv_GCJ_dependencies_compiler_type=none
25467   if test "$am_compiler_list" = ""; then
25468      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25469   fi
25470   for depmode in $am_compiler_list; do
25471     # Setup a source with many dependencies, because some compilers
25472     # like to wrap large dependency lists on column 80 (with \), and
25473     # we should not choose a depcomp mode which is confused by this.
25474     #
25475     # We need to recreate these files for each test, as the compiler may
25476     # overwrite some of them when testing with obscure command lines.
25477     # This happens at least with the AIX C compiler.
25478     : > sub/conftest.c
25479     for i in 1 2 3 4 5 6; do
25480       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25481       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25482       # Solaris 8's {/usr,}/bin/sh.
25483       touch sub/conftst$i.h
25484     done
25485     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25486
25487     case $depmode in
25488     nosideeffect)
25489       # after this tag, mechanisms are not by side-effect, so they'll
25490       # only be used when explicitly requested
25491       if test "x$enable_dependency_tracking" = xyes; then
25492         continue
25493       else
25494         break
25495       fi
25496       ;;
25497     none) break ;;
25498     esac
25499     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25500     # mode.  It turns out that the SunPro C++ compiler does not properly
25501     # handle `-M -o', and we need to detect this.
25502     if depmode=$depmode \
25503        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25504        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25505        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25506          >/dev/null 2>conftest.err &&
25507        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25508        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25509        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25510       # icc doesn't choke on unknown options, it will just issue warnings
25511       # or remarks (even with -Werror).  So we grep stderr for any message
25512       # that says an option was ignored or not supported.
25513       # When given -MP, icc 7.0 and 7.1 complain thusly:
25514       #   icc: Command line warning: ignoring option '-M'; no argument required
25515       # The diagnosis changed in icc 8.0:
25516       #   icc: Command line remark: option '-MP' not supported
25517       if (grep 'ignoring option' conftest.err ||
25518           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25519         am_cv_GCJ_dependencies_compiler_type=$depmode
25520         break
25521       fi
25522     fi
25523   done
25524
25525   cd ..
25526   rm -rf conftest.dir
25527 else
25528   am_cv_GCJ_dependencies_compiler_type=none
25529 fi
25530
25531 fi
25532 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25533 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25534 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25535
25536
25537
25538 if
25539   test "x$enable_dependency_tracking" != xno \
25540   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25541   am__fastdepGCJ_TRUE=
25542   am__fastdepGCJ_FALSE='#'
25543 else
25544   am__fastdepGCJ_TRUE='#'
25545   am__fastdepGCJ_FALSE=
25546 fi
25547
25548
25549
25550
25551 # Now remove it.
25552 rm -f gnu/classpath/Configuration.java
25553
25554 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25555
25556 echo "$as_me:$LINENO: checking for void *" >&5
25557 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25558 if test "${ac_cv_type_void_p+set}" = set; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 $ac_includes_default
25568 int
25569 main ()
25570 {
25571 if ((void * *) 0)
25572   return 0;
25573 if (sizeof (void *))
25574   return 0;
25575   ;
25576   return 0;
25577 }
25578 _ACEOF
25579 rm -f conftest.$ac_objext
25580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25581   (eval $ac_compile) 2>conftest.er1
25582   ac_status=$?
25583   grep -v '^ *+' conftest.er1 >conftest.err
25584   rm -f conftest.er1
25585   cat conftest.err >&5
25586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25587   (exit $ac_status); } &&
25588          { ac_try='test -z "$ac_c_werror_flag"
25589                          || test ! -s conftest.err'
25590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591   (eval $ac_try) 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; } &&
25595          { ac_try='test -s conftest.$ac_objext'
25596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25597   (eval $ac_try) 2>&5
25598   ac_status=$?
25599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600   (exit $ac_status); }; }; then
25601   ac_cv_type_void_p=yes
25602 else
25603   echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 ac_cv_type_void_p=no
25607 fi
25608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25609 fi
25610 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25611 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25612
25613 echo "$as_me:$LINENO: checking size of void *" >&5
25614 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25615 if test "${ac_cv_sizeof_void_p+set}" = set; then
25616   echo $ECHO_N "(cached) $ECHO_C" >&6
25617 else
25618   if test "$ac_cv_type_void_p" = yes; then
25619   # The cast to unsigned long works around a bug in the HP C Compiler
25620   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25621   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25622   # This bug is HP SR number 8606223364.
25623   if test "$cross_compiling" = yes; then
25624   # Depending upon the size, compute the lo and hi bounds.
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h.  */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h.  */
25631 $ac_includes_default
25632 int
25633 main ()
25634 {
25635 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25636 test_array [0] = 0
25637
25638   ;
25639   return 0;
25640 }
25641 _ACEOF
25642 rm -f conftest.$ac_objext
25643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25644   (eval $ac_compile) 2>conftest.er1
25645   ac_status=$?
25646   grep -v '^ *+' conftest.er1 >conftest.err
25647   rm -f conftest.er1
25648   cat conftest.err >&5
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); } &&
25651          { ac_try='test -z "$ac_c_werror_flag"
25652                          || test ! -s conftest.err'
25653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654   (eval $ac_try) 2>&5
25655   ac_status=$?
25656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657   (exit $ac_status); }; } &&
25658          { ac_try='test -s conftest.$ac_objext'
25659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660   (eval $ac_try) 2>&5
25661   ac_status=$?
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); }; }; then
25664   ac_lo=0 ac_mid=0
25665   while :; do
25666     cat >conftest.$ac_ext <<_ACEOF
25667 /* confdefs.h.  */
25668 _ACEOF
25669 cat confdefs.h >>conftest.$ac_ext
25670 cat >>conftest.$ac_ext <<_ACEOF
25671 /* end confdefs.h.  */
25672 $ac_includes_default
25673 int
25674 main ()
25675 {
25676 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25677 test_array [0] = 0
25678
25679   ;
25680   return 0;
25681 }
25682 _ACEOF
25683 rm -f conftest.$ac_objext
25684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25685   (eval $ac_compile) 2>conftest.er1
25686   ac_status=$?
25687   grep -v '^ *+' conftest.er1 >conftest.err
25688   rm -f conftest.er1
25689   cat conftest.err >&5
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); } &&
25692          { ac_try='test -z "$ac_c_werror_flag"
25693                          || test ! -s conftest.err'
25694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25695   (eval $ac_try) 2>&5
25696   ac_status=$?
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); }; } &&
25699          { ac_try='test -s conftest.$ac_objext'
25700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25701   (eval $ac_try) 2>&5
25702   ac_status=$?
25703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25704   (exit $ac_status); }; }; then
25705   ac_hi=$ac_mid; break
25706 else
25707   echo "$as_me: failed program was:" >&5
25708 sed 's/^/| /' conftest.$ac_ext >&5
25709
25710 ac_lo=`expr $ac_mid + 1`
25711                     if test $ac_lo -le $ac_mid; then
25712                       ac_lo= ac_hi=
25713                       break
25714                     fi
25715                     ac_mid=`expr 2 '*' $ac_mid + 1`
25716 fi
25717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25718   done
25719 else
25720   echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25722
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h.  */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h.  */
25729 $ac_includes_default
25730 int
25731 main ()
25732 {
25733 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25734 test_array [0] = 0
25735
25736   ;
25737   return 0;
25738 }
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742   (eval $ac_compile) 2>conftest.er1
25743   ac_status=$?
25744   grep -v '^ *+' conftest.er1 >conftest.err
25745   rm -f conftest.er1
25746   cat conftest.err >&5
25747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748   (exit $ac_status); } &&
25749          { ac_try='test -z "$ac_c_werror_flag"
25750                          || test ! -s conftest.err'
25751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752   (eval $ac_try) 2>&5
25753   ac_status=$?
25754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755   (exit $ac_status); }; } &&
25756          { ac_try='test -s conftest.$ac_objext'
25757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758   (eval $ac_try) 2>&5
25759   ac_status=$?
25760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761   (exit $ac_status); }; }; then
25762   ac_hi=-1 ac_mid=-1
25763   while :; do
25764     cat >conftest.$ac_ext <<_ACEOF
25765 /* confdefs.h.  */
25766 _ACEOF
25767 cat confdefs.h >>conftest.$ac_ext
25768 cat >>conftest.$ac_ext <<_ACEOF
25769 /* end confdefs.h.  */
25770 $ac_includes_default
25771 int
25772 main ()
25773 {
25774 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25775 test_array [0] = 0
25776
25777   ;
25778   return 0;
25779 }
25780 _ACEOF
25781 rm -f conftest.$ac_objext
25782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25783   (eval $ac_compile) 2>conftest.er1
25784   ac_status=$?
25785   grep -v '^ *+' conftest.er1 >conftest.err
25786   rm -f conftest.er1
25787   cat conftest.err >&5
25788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789   (exit $ac_status); } &&
25790          { ac_try='test -z "$ac_c_werror_flag"
25791                          || test ! -s conftest.err'
25792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25793   (eval $ac_try) 2>&5
25794   ac_status=$?
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); }; } &&
25797          { ac_try='test -s conftest.$ac_objext'
25798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25799   (eval $ac_try) 2>&5
25800   ac_status=$?
25801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802   (exit $ac_status); }; }; then
25803   ac_lo=$ac_mid; break
25804 else
25805   echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 ac_hi=`expr '(' $ac_mid ')' - 1`
25809                        if test $ac_mid -le $ac_hi; then
25810                          ac_lo= ac_hi=
25811                          break
25812                        fi
25813                        ac_mid=`expr 2 '*' $ac_mid`
25814 fi
25815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25816   done
25817 else
25818   echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821 ac_lo= ac_hi=
25822 fi
25823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25824 fi
25825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25826 # Binary search between lo and hi bounds.
25827 while test "x$ac_lo" != "x$ac_hi"; do
25828   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25829   cat >conftest.$ac_ext <<_ACEOF
25830 /* confdefs.h.  */
25831 _ACEOF
25832 cat confdefs.h >>conftest.$ac_ext
25833 cat >>conftest.$ac_ext <<_ACEOF
25834 /* end confdefs.h.  */
25835 $ac_includes_default
25836 int
25837 main ()
25838 {
25839 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25840 test_array [0] = 0
25841
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest.$ac_objext
25847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25848   (eval $ac_compile) 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } &&
25855          { ac_try='test -z "$ac_c_werror_flag"
25856                          || test ! -s conftest.err'
25857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858   (eval $ac_try) 2>&5
25859   ac_status=$?
25860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861   (exit $ac_status); }; } &&
25862          { ac_try='test -s conftest.$ac_objext'
25863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25864   (eval $ac_try) 2>&5
25865   ac_status=$?
25866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25867   (exit $ac_status); }; }; then
25868   ac_hi=$ac_mid
25869 else
25870   echo "$as_me: failed program was:" >&5
25871 sed 's/^/| /' conftest.$ac_ext >&5
25872
25873 ac_lo=`expr '(' $ac_mid ')' + 1`
25874 fi
25875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25876 done
25877 case $ac_lo in
25878 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25879 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25880 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25881 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25882 See \`config.log' for more details." >&5
25883 echo "$as_me: error: cannot compute sizeof (void *), 77
25884 See \`config.log' for more details." >&2;}
25885    { (exit 1); exit 1; }; }; } ;;
25886 esac
25887 else
25888   if test "$cross_compiling" = yes; then
25889   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25890 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25891 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25892 See \`config.log' for more details." >&5
25893 echo "$as_me: error: cannot run test program while cross compiling
25894 See \`config.log' for more details." >&2;}
25895    { (exit 1); exit 1; }; }; }
25896 else
25897   cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h.  */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h.  */
25903 $ac_includes_default
25904 long longval () { return (long) (sizeof (void *)); }
25905 unsigned long ulongval () { return (long) (sizeof (void *)); }
25906 #include <stdio.h>
25907 #include <stdlib.h>
25908 int
25909 main ()
25910 {
25911
25912   FILE *f = fopen ("conftest.val", "w");
25913   if (! f)
25914     exit (1);
25915   if (((long) (sizeof (void *))) < 0)
25916     {
25917       long i = longval ();
25918       if (i != ((long) (sizeof (void *))))
25919         exit (1);
25920       fprintf (f, "%ld\n", i);
25921     }
25922   else
25923     {
25924       unsigned long i = ulongval ();
25925       if (i != ((long) (sizeof (void *))))
25926         exit (1);
25927       fprintf (f, "%lu\n", i);
25928     }
25929   exit (ferror (f) || fclose (f) != 0);
25930
25931   ;
25932   return 0;
25933 }
25934 _ACEOF
25935 rm -f conftest$ac_exeext
25936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25937   (eval $ac_link) 2>&5
25938   ac_status=$?
25939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942   (eval $ac_try) 2>&5
25943   ac_status=$?
25944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945   (exit $ac_status); }; }; then
25946   ac_cv_sizeof_void_p=`cat conftest.val`
25947 else
25948   echo "$as_me: program exited with status $ac_status" >&5
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952 ( exit $ac_status )
25953 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25954 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25955 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25956 See \`config.log' for more details." >&5
25957 echo "$as_me: error: cannot compute sizeof (void *), 77
25958 See \`config.log' for more details." >&2;}
25959    { (exit 1); exit 1; }; }; }
25960 fi
25961 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25962 fi
25963 fi
25964 rm -f conftest.val
25965 else
25966   ac_cv_sizeof_void_p=0
25967 fi
25968 fi
25969 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25970 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25971 cat >>confdefs.h <<_ACEOF
25972 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25973 _ACEOF
25974
25975
25976
25977 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25978 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25979 if test "${ac_cv_c_bigendian+set}" = set; then
25980   echo $ECHO_N "(cached) $ECHO_C" >&6
25981 else
25982   # See if sys/param.h defines the BYTE_ORDER macro.
25983 cat >conftest.$ac_ext <<_ACEOF
25984 /* confdefs.h.  */
25985 _ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h.  */
25989 #include <sys/types.h>
25990 #include <sys/param.h>
25991
25992 int
25993 main ()
25994 {
25995 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25996  bogus endian macros
25997 #endif
25998
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 rm -f conftest.$ac_objext
26004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26005   (eval $ac_compile) 2>conftest.er1
26006   ac_status=$?
26007   grep -v '^ *+' conftest.er1 >conftest.err
26008   rm -f conftest.er1
26009   cat conftest.err >&5
26010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26011   (exit $ac_status); } &&
26012          { ac_try='test -z "$ac_c_werror_flag"
26013                          || test ! -s conftest.err'
26014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015   (eval $ac_try) 2>&5
26016   ac_status=$?
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); }; } &&
26019          { ac_try='test -s conftest.$ac_objext'
26020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021   (eval $ac_try) 2>&5
26022   ac_status=$?
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); }; }; then
26025   # It does; now see whether it defined to BIG_ENDIAN or not.
26026 cat >conftest.$ac_ext <<_ACEOF
26027 /* confdefs.h.  */
26028 _ACEOF
26029 cat confdefs.h >>conftest.$ac_ext
26030 cat >>conftest.$ac_ext <<_ACEOF
26031 /* end confdefs.h.  */
26032 #include <sys/types.h>
26033 #include <sys/param.h>
26034
26035 int
26036 main ()
26037 {
26038 #if BYTE_ORDER != BIG_ENDIAN
26039  not big endian
26040 #endif
26041
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048   (eval $ac_compile) 2>conftest.er1
26049   ac_status=$?
26050   grep -v '^ *+' conftest.er1 >conftest.err
26051   rm -f conftest.er1
26052   cat conftest.err >&5
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); } &&
26055          { ac_try='test -z "$ac_c_werror_flag"
26056                          || test ! -s conftest.err'
26057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058   (eval $ac_try) 2>&5
26059   ac_status=$?
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); }; } &&
26062          { ac_try='test -s conftest.$ac_objext'
26063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064   (eval $ac_try) 2>&5
26065   ac_status=$?
26066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067   (exit $ac_status); }; }; then
26068   ac_cv_c_bigendian=yes
26069 else
26070   echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073 ac_cv_c_bigendian=no
26074 fi
26075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26076 else
26077   echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26079
26080 # It does not; compile a test program.
26081 if test "$cross_compiling" = yes; then
26082   # try to guess the endianness by grepping values into an object file
26083   ac_cv_c_bigendian=unknown
26084   cat >conftest.$ac_ext <<_ACEOF
26085 /* confdefs.h.  */
26086 _ACEOF
26087 cat confdefs.h >>conftest.$ac_ext
26088 cat >>conftest.$ac_ext <<_ACEOF
26089 /* end confdefs.h.  */
26090 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26091 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26092 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26093 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26094 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26095 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26096 int
26097 main ()
26098 {
26099  _ascii (); _ebcdic ();
26100   ;
26101   return 0;
26102 }
26103 _ACEOF
26104 rm -f conftest.$ac_objext
26105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26106   (eval $ac_compile) 2>conftest.er1
26107   ac_status=$?
26108   grep -v '^ *+' conftest.er1 >conftest.err
26109   rm -f conftest.er1
26110   cat conftest.err >&5
26111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112   (exit $ac_status); } &&
26113          { ac_try='test -z "$ac_c_werror_flag"
26114                          || test ! -s conftest.err'
26115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116   (eval $ac_try) 2>&5
26117   ac_status=$?
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); }; } &&
26120          { ac_try='test -s conftest.$ac_objext'
26121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26122   (eval $ac_try) 2>&5
26123   ac_status=$?
26124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26125   (exit $ac_status); }; }; then
26126   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26127   ac_cv_c_bigendian=yes
26128 fi
26129 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26130   if test "$ac_cv_c_bigendian" = unknown; then
26131     ac_cv_c_bigendian=no
26132   else
26133     # finding both strings is unlikely to happen, but who knows?
26134     ac_cv_c_bigendian=unknown
26135   fi
26136 fi
26137 else
26138   echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26140
26141 fi
26142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26143 else
26144   cat >conftest.$ac_ext <<_ACEOF
26145 /* confdefs.h.  */
26146 _ACEOF
26147 cat confdefs.h >>conftest.$ac_ext
26148 cat >>conftest.$ac_ext <<_ACEOF
26149 /* end confdefs.h.  */
26150 int
26151 main ()
26152 {
26153   /* Are we little or big endian?  From Harbison&Steele.  */
26154   union
26155   {
26156     long l;
26157     char c[sizeof (long)];
26158   } u;
26159   u.l = 1;
26160   exit (u.c[sizeof (long) - 1] == 1);
26161 }
26162 _ACEOF
26163 rm -f conftest$ac_exeext
26164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26165   (eval $ac_link) 2>&5
26166   ac_status=$?
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26170   (eval $ac_try) 2>&5
26171   ac_status=$?
26172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26173   (exit $ac_status); }; }; then
26174   ac_cv_c_bigendian=no
26175 else
26176   echo "$as_me: program exited with status $ac_status" >&5
26177 echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26179
26180 ( exit $ac_status )
26181 ac_cv_c_bigendian=yes
26182 fi
26183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26184 fi
26185 fi
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 fi
26188 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26189 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26190 case $ac_cv_c_bigendian in
26191   yes)
26192
26193 cat >>confdefs.h <<\_ACEOF
26194 #define WORDS_BIGENDIAN 1
26195 _ACEOF
26196  ;;
26197   no)
26198      ;;
26199   *)
26200     { { echo "$as_me:$LINENO: error: unknown endianness
26201 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26202 echo "$as_me: error: unknown endianness
26203 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26204    { (exit 1); exit 1; }; } ;;
26205 esac
26206
26207
26208 ZLIBS=
26209 SYS_ZLIBS=
26210 ZINCS=
26211
26212 if test -z "$ZLIBSPEC"; then
26213    # Use zlib from the GCC tree.
26214    ZINCS='-I$(top_srcdir)/../zlib'
26215    ZLIBS=../zlib/libzgcj_convenience.la
26216 else
26217    # System's zlib.
26218    SYS_ZLIBS="$ZLIBSPEC"
26219 fi
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231 if test "$NATIVE" = yes; then
26232   NATIVE_TRUE=
26233   NATIVE_FALSE='#'
26234 else
26235   NATIVE_TRUE='#'
26236   NATIVE_FALSE=
26237 fi
26238
26239
26240
26241 if test "$enable_shared" = yes; then
26242   ENABLE_SHARED_TRUE=
26243   ENABLE_SHARED_FALSE='#'
26244 else
26245   ENABLE_SHARED_TRUE='#'
26246   ENABLE_SHARED_FALSE=
26247 fi
26248
26249
26250
26251 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26252   NEEDS_DATA_START_TRUE=
26253   NEEDS_DATA_START_FALSE='#'
26254 else
26255   NEEDS_DATA_START_TRUE='#'
26256   NEEDS_DATA_START_FALSE=
26257 fi
26258
26259
26260
26261 # Process the option "--enable-version-specific-runtime-libs"
26262 # Calculate toolexeclibdir
26263 case ${version_specific_libs} in
26264   yes)
26265     # Need the gcc compiler version to know where to install libraries
26266     # and header files if --enable-version-specific-runtime-libs option
26267     # is selected.
26268     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26269     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26270     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26271     toolexeclibdir=$toolexecmainlibdir
26272     ;;
26273   no)
26274     if test -n "$with_cross_host" &&
26275        test x"$with_cross_host" != x"no"; then
26276       # Install a library built with a cross compiler in tooldir, not libdir.
26277       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26278       toolexecmainlibdir='$(toolexecdir)/lib'
26279     else
26280       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26281       toolexecmainlibdir='$(libdir)'
26282     fi
26283     multi_os_directory=`$CC -print-multi-os-directory`
26284     case $multi_os_directory in
26285       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26286       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26287     esac
26288     ;;
26289 esac
26290
26291
26292
26293
26294 # Determine gcj and libgcj version number.
26295 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26296 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26297 GCJVERSION=$gcjversion
26298
26299
26300 cat >>confdefs.h <<_ACEOF
26301 #define GCJVERSION "$GCJVERSION"
26302 _ACEOF
26303
26304
26305 # Determine where the standard .db file and GNU Classpath JNI
26306 # libraries are found.
26307 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26308 multi_os_directory=`$CC -print-multi-os-directory`
26309 case $multi_os_directory in
26310   .)
26311    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26312    ;;
26313   *)
26314    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26315    ;;
26316 esac
26317
26318
26319
26320
26321 cat >>confdefs.h <<\_ACEOF
26322 #define JV_VERSION "1.5.0"
26323 _ACEOF
26324
26325
26326 cat >>confdefs.h <<\_ACEOF
26327 #define JV_API_VERSION "1.5"
26328 _ACEOF
26329
26330
26331
26332 case "${with_gxx_include_dir}" in
26333   yes)
26334     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26335 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26336    { (exit 1); exit 1; }; }
26337     ;;
26338   no | "")
26339     case "${enable_version_specific_runtime_libs}" in
26340       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26341       *)
26342         libstdcxx_incdir='c++/$(gcc_version)'
26343         gxx_include_dir='include/$(libstdcxx_incdir)'
26344         if test -n "$with_cross_host" &&
26345            test x"$with_cross_host" != x"no"; then
26346           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26347         else
26348           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26349         fi;;
26350     esac ;;
26351   *) gxx_include_dir=${with_gxx_include_dir} ;;
26352 esac
26353
26354
26355
26356
26357 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26358 # On that system, sys/ioctl.h will not include sys/filio.h unless
26359 # BSD_COMP is defined; just including sys/filio.h is simpler.
26360 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26361 # for now.  If you change this, you also must update natFile.cc.
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26386                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26387                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26388                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26389                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26390 do
26391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26393   echo "$as_me:$LINENO: checking for $ac_header" >&5
26394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26396   echo $ECHO_N "(cached) $ECHO_C" >&6
26397 fi
26398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26400 else
26401   # Is the header compilable?
26402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26404 cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h.  */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h.  */
26410 $ac_includes_default
26411 #include <$ac_header>
26412 _ACEOF
26413 rm -f conftest.$ac_objext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26415   (eval $ac_compile) 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } &&
26422          { ac_try='test -z "$ac_c_werror_flag"
26423                          || test ! -s conftest.err'
26424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425   (eval $ac_try) 2>&5
26426   ac_status=$?
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); }; } &&
26429          { ac_try='test -s conftest.$ac_objext'
26430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431   (eval $ac_try) 2>&5
26432   ac_status=$?
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); }; }; then
26435   ac_header_compiler=yes
26436 else
26437   echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440 ac_header_compiler=no
26441 fi
26442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26444 echo "${ECHO_T}$ac_header_compiler" >&6
26445
26446 # Is the header present?
26447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26449 cat >conftest.$ac_ext <<_ACEOF
26450 /* confdefs.h.  */
26451 _ACEOF
26452 cat confdefs.h >>conftest.$ac_ext
26453 cat >>conftest.$ac_ext <<_ACEOF
26454 /* end confdefs.h.  */
26455 #include <$ac_header>
26456 _ACEOF
26457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26459   ac_status=$?
26460   grep -v '^ *+' conftest.er1 >conftest.err
26461   rm -f conftest.er1
26462   cat conftest.err >&5
26463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26464   (exit $ac_status); } >/dev/null; then
26465   if test -s conftest.err; then
26466     ac_cpp_err=$ac_c_preproc_warn_flag
26467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26468   else
26469     ac_cpp_err=
26470   fi
26471 else
26472   ac_cpp_err=yes
26473 fi
26474 if test -z "$ac_cpp_err"; then
26475   ac_header_preproc=yes
26476 else
26477   echo "$as_me: failed program was:" >&5
26478 sed 's/^/| /' conftest.$ac_ext >&5
26479
26480   ac_header_preproc=no
26481 fi
26482 rm -f conftest.err conftest.$ac_ext
26483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26484 echo "${ECHO_T}$ac_header_preproc" >&6
26485
26486 # So?  What about this header?
26487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26488   yes:no: )
26489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26493     ac_header_preproc=yes
26494     ;;
26495   no:yes:* )
26496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26508     (
26509       cat <<\_ASBOX
26510 ## ---------------------------------- ##
26511 ## Report this to the libjava lists.  ##
26512 ## ---------------------------------- ##
26513 _ASBOX
26514     ) |
26515       sed "s/^/$as_me: WARNING:     /" >&2
26516     ;;
26517 esac
26518 echo "$as_me:$LINENO: checking for $ac_header" >&5
26519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26521   echo $ECHO_N "(cached) $ECHO_C" >&6
26522 else
26523   eval "$as_ac_Header=\$ac_header_preproc"
26524 fi
26525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26527
26528 fi
26529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26530   cat >>confdefs.h <<_ACEOF
26531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26532 _ACEOF
26533
26534 fi
26535
26536 done
26537
26538
26539 for ac_header in inttypes.h
26540 do
26541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26542 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26543   echo "$as_me:$LINENO: checking for $ac_header" >&5
26544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26546   echo $ECHO_N "(cached) $ECHO_C" >&6
26547 fi
26548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26550 else
26551   # Is the header compilable?
26552 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26554 cat >conftest.$ac_ext <<_ACEOF
26555 /* confdefs.h.  */
26556 _ACEOF
26557 cat confdefs.h >>conftest.$ac_ext
26558 cat >>conftest.$ac_ext <<_ACEOF
26559 /* end confdefs.h.  */
26560 $ac_includes_default
26561 #include <$ac_header>
26562 _ACEOF
26563 rm -f conftest.$ac_objext
26564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26565   (eval $ac_compile) 2>conftest.er1
26566   ac_status=$?
26567   grep -v '^ *+' conftest.er1 >conftest.err
26568   rm -f conftest.er1
26569   cat conftest.err >&5
26570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26571   (exit $ac_status); } &&
26572          { ac_try='test -z "$ac_c_werror_flag"
26573                          || test ! -s conftest.err'
26574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26575   (eval $ac_try) 2>&5
26576   ac_status=$?
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); }; } &&
26579          { ac_try='test -s conftest.$ac_objext'
26580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26581   (eval $ac_try) 2>&5
26582   ac_status=$?
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); }; }; then
26585   ac_header_compiler=yes
26586 else
26587   echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26589
26590 ac_header_compiler=no
26591 fi
26592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26593 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26594 echo "${ECHO_T}$ac_header_compiler" >&6
26595
26596 # Is the header present?
26597 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26599 cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h.  */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h.  */
26605 #include <$ac_header>
26606 _ACEOF
26607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } >/dev/null; then
26615   if test -s conftest.err; then
26616     ac_cpp_err=$ac_c_preproc_warn_flag
26617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26618   else
26619     ac_cpp_err=
26620   fi
26621 else
26622   ac_cpp_err=yes
26623 fi
26624 if test -z "$ac_cpp_err"; then
26625   ac_header_preproc=yes
26626 else
26627   echo "$as_me: failed program was:" >&5
26628 sed 's/^/| /' conftest.$ac_ext >&5
26629
26630   ac_header_preproc=no
26631 fi
26632 rm -f conftest.err conftest.$ac_ext
26633 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26634 echo "${ECHO_T}$ac_header_preproc" >&6
26635
26636 # So?  What about this header?
26637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26638   yes:no: )
26639     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26641     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26643     ac_header_preproc=yes
26644     ;;
26645   no:yes:* )
26646     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26648     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26649 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26650     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26652     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26653 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26656     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26658     (
26659       cat <<\_ASBOX
26660 ## ---------------------------------- ##
26661 ## Report this to the libjava lists.  ##
26662 ## ---------------------------------- ##
26663 _ASBOX
26664     ) |
26665       sed "s/^/$as_me: WARNING:     /" >&2
26666     ;;
26667 esac
26668 echo "$as_me:$LINENO: checking for $ac_header" >&5
26669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26671   echo $ECHO_N "(cached) $ECHO_C" >&6
26672 else
26673   eval "$as_ac_Header=\$ac_header_preproc"
26674 fi
26675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26677
26678 fi
26679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26680   cat >>confdefs.h <<_ACEOF
26681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26682 _ACEOF
26683
26684
26685 cat >>confdefs.h <<\_ACEOF
26686 #define HAVE_INTTYPES_H 1
26687 _ACEOF
26688
26689
26690 cat >>confdefs.h <<\_ACEOF
26691 #define JV_HAVE_INTTYPES_H 1
26692 _ACEOF
26693
26694
26695 fi
26696
26697 done
26698
26699
26700 echo "$as_me:$LINENO: checking for ssize_t" >&5
26701 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26702 if test "${ac_cv_type_ssize_t+set}" = set; then
26703   echo $ECHO_N "(cached) $ECHO_C" >&6
26704 else
26705   cat >conftest.$ac_ext <<_ACEOF
26706 /* confdefs.h.  */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h.  */
26711 $ac_includes_default
26712 int
26713 main ()
26714 {
26715 if ((ssize_t *) 0)
26716   return 0;
26717 if (sizeof (ssize_t))
26718   return 0;
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   ac_cv_type_ssize_t=yes
26746 else
26747   echo "$as_me: failed program was:" >&5
26748 sed 's/^/| /' conftest.$ac_ext >&5
26749
26750 ac_cv_type_ssize_t=no
26751 fi
26752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26753 fi
26754 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26755 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26756 if test $ac_cv_type_ssize_t = yes; then
26757   :
26758 else
26759
26760 cat >>confdefs.h <<_ACEOF
26761 #define ssize_t int
26762 _ACEOF
26763
26764 fi
26765
26766 echo "$as_me:$LINENO: checking for magic_t" >&5
26767 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26768 if test "${ac_cv_type_magic_t+set}" = set; then
26769   echo $ECHO_N "(cached) $ECHO_C" >&6
26770 else
26771   cat >conftest.$ac_ext <<_ACEOF
26772 /* confdefs.h.  */
26773 _ACEOF
26774 cat confdefs.h >>conftest.$ac_ext
26775 cat >>conftest.$ac_ext <<_ACEOF
26776 /* end confdefs.h.  */
26777
26778 #ifdef HAVE_MAGIC_H
26779 #include <magic.h>
26780 #endif
26781
26782 int
26783 main ()
26784 {
26785 if ((magic_t *) 0)
26786   return 0;
26787 if (sizeof (magic_t))
26788   return 0;
26789   ;
26790   return 0;
26791 }
26792 _ACEOF
26793 rm -f conftest.$ac_objext
26794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26795   (eval $ac_compile) 2>conftest.er1
26796   ac_status=$?
26797   grep -v '^ *+' conftest.er1 >conftest.err
26798   rm -f conftest.er1
26799   cat conftest.err >&5
26800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801   (exit $ac_status); } &&
26802          { ac_try='test -z "$ac_c_werror_flag"
26803                          || test ! -s conftest.err'
26804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805   (eval $ac_try) 2>&5
26806   ac_status=$?
26807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808   (exit $ac_status); }; } &&
26809          { ac_try='test -s conftest.$ac_objext'
26810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26811   (eval $ac_try) 2>&5
26812   ac_status=$?
26813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26814   (exit $ac_status); }; }; then
26815   ac_cv_type_magic_t=yes
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820 ac_cv_type_magic_t=no
26821 fi
26822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26823 fi
26824 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26825 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26826 if test $ac_cv_type_magic_t = yes; then
26827
26828
26829 cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_MAGIC_T 1
26831 _ACEOF
26832
26833 fi
26834
26835
26836 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26837 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26838 cat >conftest.$ac_ext <<_ACEOF
26839 /* confdefs.h.  */
26840 _ACEOF
26841 cat confdefs.h >>conftest.$ac_ext
26842 cat >>conftest.$ac_ext <<_ACEOF
26843 /* end confdefs.h.  */
26844 #include <sys/types.h>
26845 #if STDC_HEADERS
26846 #include <stdlib.h>
26847 #include <stddef.h>
26848 #endif
26849 #if HAVE_NETINET_IN_H
26850 #include <netinet/in.h>
26851 #endif
26852 int
26853 main ()
26854 {
26855 in_addr_t foo;
26856   ;
26857   return 0;
26858 }
26859 _ACEOF
26860 rm -f conftest.$ac_objext
26861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26862   (eval $ac_compile) 2>conftest.er1
26863   ac_status=$?
26864   grep -v '^ *+' conftest.er1 >conftest.err
26865   rm -f conftest.er1
26866   cat conftest.err >&5
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); } &&
26869          { ac_try='test -z "$ac_c_werror_flag"
26870                          || test ! -s conftest.err'
26871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872   (eval $ac_try) 2>&5
26873   ac_status=$?
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); }; } &&
26876          { ac_try='test -s conftest.$ac_objext'
26877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26878   (eval $ac_try) 2>&5
26879   ac_status=$?
26880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26881   (exit $ac_status); }; }; then
26882
26883 cat >>confdefs.h <<\_ACEOF
26884 #define HAVE_IN_ADDR_T 1
26885 _ACEOF
26886
26887    echo "$as_me:$LINENO: result: yes" >&5
26888 echo "${ECHO_T}yes" >&6
26889 else
26890   echo "$as_me: failed program was:" >&5
26891 sed 's/^/| /' conftest.$ac_ext >&5
26892
26893 echo "$as_me:$LINENO: result: no" >&5
26894 echo "${ECHO_T}no" >&6
26895 fi
26896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26897
26898 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26899 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26900 cat >conftest.$ac_ext <<_ACEOF
26901 /* confdefs.h.  */
26902 _ACEOF
26903 cat confdefs.h >>conftest.$ac_ext
26904 cat >>conftest.$ac_ext <<_ACEOF
26905 /* end confdefs.h.  */
26906 #include <netinet/in.h>
26907 int
26908 main ()
26909 {
26910 struct ip_mreq mreq;
26911   ;
26912   return 0;
26913 }
26914 _ACEOF
26915 rm -f conftest.$ac_objext
26916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26917   (eval $ac_compile) 2>conftest.er1
26918   ac_status=$?
26919   grep -v '^ *+' conftest.er1 >conftest.err
26920   rm -f conftest.er1
26921   cat conftest.err >&5
26922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26923   (exit $ac_status); } &&
26924          { ac_try='test -z "$ac_c_werror_flag"
26925                          || test ! -s conftest.err'
26926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26927   (eval $ac_try) 2>&5
26928   ac_status=$?
26929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930   (exit $ac_status); }; } &&
26931          { ac_try='test -s conftest.$ac_objext'
26932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26933   (eval $ac_try) 2>&5
26934   ac_status=$?
26935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); }; }; then
26937
26938 cat >>confdefs.h <<\_ACEOF
26939 #define HAVE_STRUCT_IP_MREQ 1
26940 _ACEOF
26941
26942    echo "$as_me:$LINENO: result: yes" >&5
26943 echo "${ECHO_T}yes" >&6
26944 else
26945   echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 echo "$as_me:$LINENO: result: no" >&5
26949 echo "${ECHO_T}no" >&6
26950 fi
26951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952
26953 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26954 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26955 cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 #include <netinet/in.h>
26962 int
26963 main ()
26964 {
26965 struct ipv6_mreq mreq6;
26966   ;
26967   return 0;
26968 }
26969 _ACEOF
26970 rm -f conftest.$ac_objext
26971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26972   (eval $ac_compile) 2>conftest.er1
26973   ac_status=$?
26974   grep -v '^ *+' conftest.er1 >conftest.err
26975   rm -f conftest.er1
26976   cat conftest.err >&5
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); } &&
26979          { ac_try='test -z "$ac_c_werror_flag"
26980                          || test ! -s conftest.err'
26981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26982   (eval $ac_try) 2>&5
26983   ac_status=$?
26984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985   (exit $ac_status); }; } &&
26986          { ac_try='test -s conftest.$ac_objext'
26987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26988   (eval $ac_try) 2>&5
26989   ac_status=$?
26990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26991   (exit $ac_status); }; }; then
26992
26993 cat >>confdefs.h <<\_ACEOF
26994 #define HAVE_STRUCT_IPV6_MREQ 1
26995 _ACEOF
26996
26997    echo "$as_me:$LINENO: result: yes" >&5
26998 echo "${ECHO_T}yes" >&6
26999 else
27000   echo "$as_me: failed program was:" >&5
27001 sed 's/^/| /' conftest.$ac_ext >&5
27002
27003 echo "$as_me:$LINENO: result: no" >&5
27004 echo "${ECHO_T}no" >&6
27005 fi
27006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27007
27008 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27009 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27010 cat >conftest.$ac_ext <<_ACEOF
27011 /* confdefs.h.  */
27012 _ACEOF
27013 cat confdefs.h >>conftest.$ac_ext
27014 cat >>conftest.$ac_ext <<_ACEOF
27015 /* end confdefs.h.  */
27016 #include <netinet/in.h>
27017 int
27018 main ()
27019 {
27020 struct sockaddr_in6 addr6;
27021   ;
27022   return 0;
27023 }
27024 _ACEOF
27025 rm -f conftest.$ac_objext
27026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27027   (eval $ac_compile) 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } &&
27034          { ac_try='test -z "$ac_c_werror_flag"
27035                          || test ! -s conftest.err'
27036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27037   (eval $ac_try) 2>&5
27038   ac_status=$?
27039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040   (exit $ac_status); }; } &&
27041          { ac_try='test -s conftest.$ac_objext'
27042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043   (eval $ac_try) 2>&5
27044   ac_status=$?
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); }; }; then
27047
27048 cat >>confdefs.h <<\_ACEOF
27049 #define HAVE_INET6 1
27050 _ACEOF
27051
27052    echo "$as_me:$LINENO: result: yes" >&5
27053 echo "${ECHO_T}yes" >&6
27054 else
27055   echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058 echo "$as_me:$LINENO: result: no" >&5
27059 echo "${ECHO_T}no" >&6
27060 fi
27061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27062
27063 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27064 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27065 cat >conftest.$ac_ext <<_ACEOF
27066 /* confdefs.h.  */
27067 _ACEOF
27068 cat confdefs.h >>conftest.$ac_ext
27069 cat >>conftest.$ac_ext <<_ACEOF
27070 /* end confdefs.h.  */
27071 #define _POSIX_PII_SOCKET
27072 #include <sys/types.h>
27073 #include <sys/socket.h>
27074 int
27075 main ()
27076 {
27077 socklen_t x = 5;
27078   ;
27079   return 0;
27080 }
27081 _ACEOF
27082 rm -f conftest.$ac_objext
27083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27084   (eval $ac_compile) 2>conftest.er1
27085   ac_status=$?
27086   grep -v '^ *+' conftest.er1 >conftest.err
27087   rm -f conftest.er1
27088   cat conftest.err >&5
27089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090   (exit $ac_status); } &&
27091          { ac_try='test -z "$ac_c_werror_flag"
27092                          || test ! -s conftest.err'
27093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27094   (eval $ac_try) 2>&5
27095   ac_status=$?
27096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097   (exit $ac_status); }; } &&
27098          { ac_try='test -s conftest.$ac_objext'
27099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100   (eval $ac_try) 2>&5
27101   ac_status=$?
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); }; }; then
27104
27105 cat >>confdefs.h <<\_ACEOF
27106 #define HAVE_SOCKLEN_T 1
27107 _ACEOF
27108
27109    echo "$as_me:$LINENO: result: yes" >&5
27110 echo "${ECHO_T}yes" >&6
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115 echo "$as_me:$LINENO: result: no" >&5
27116 echo "${ECHO_T}no" >&6
27117 fi
27118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27119
27120 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27121 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27122 cat >conftest.$ac_ext <<_ACEOF
27123 /* confdefs.h.  */
27124 _ACEOF
27125 cat confdefs.h >>conftest.$ac_ext
27126 cat >>conftest.$ac_ext <<_ACEOF
27127 /* end confdefs.h.  */
27128 #include <time.h>
27129 int
27130 main ()
27131 {
27132 struct tm tim; tim.tm_gmtoff = 0;
27133   ;
27134   return 0;
27135 }
27136 _ACEOF
27137 rm -f conftest.$ac_objext
27138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27139   (eval $ac_compile) 2>conftest.er1
27140   ac_status=$?
27141   grep -v '^ *+' conftest.er1 >conftest.err
27142   rm -f conftest.er1
27143   cat conftest.err >&5
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); } &&
27146          { ac_try='test -z "$ac_c_werror_flag"
27147                          || test ! -s conftest.err'
27148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149   (eval $ac_try) 2>&5
27150   ac_status=$?
27151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152   (exit $ac_status); }; } &&
27153          { ac_try='test -s conftest.$ac_objext'
27154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155   (eval $ac_try) 2>&5
27156   ac_status=$?
27157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); }; }; then
27159
27160 cat >>confdefs.h <<\_ACEOF
27161 #define STRUCT_TM_HAS_GMTOFF 1
27162 _ACEOF
27163
27164    echo "$as_me:$LINENO: result: yes" >&5
27165 echo "${ECHO_T}yes" >&6
27166 else
27167   echo "$as_me: failed program was:" >&5
27168 sed 's/^/| /' conftest.$ac_ext >&5
27169
27170 echo "$as_me:$LINENO: result: no" >&5
27171 echo "${ECHO_T}no" >&6
27172    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27173 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27174                cat >conftest.$ac_ext <<_ACEOF
27175 /* confdefs.h.  */
27176 _ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h.  */
27180 #include <time.h>
27181 int
27182 main ()
27183 {
27184 void i(){long z2 = 2*timezone;}
27185   ;
27186   return 0;
27187 }
27188 _ACEOF
27189 rm -f conftest.$ac_objext
27190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27191   (eval $ac_compile) 2>conftest.er1
27192   ac_status=$?
27193   grep -v '^ *+' conftest.er1 >conftest.err
27194   rm -f conftest.er1
27195   cat conftest.err >&5
27196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197   (exit $ac_status); } &&
27198          { ac_try='test -z "$ac_c_werror_flag"
27199                          || test ! -s conftest.err'
27200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27201   (eval $ac_try) 2>&5
27202   ac_status=$?
27203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204   (exit $ac_status); }; } &&
27205          { ac_try='test -s conftest.$ac_objext'
27206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27207   (eval $ac_try) 2>&5
27208   ac_status=$?
27209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210   (exit $ac_status); }; }; then
27211
27212 cat >>confdefs.h <<\_ACEOF
27213 #define HAVE_TIMEZONE 1
27214 _ACEOF
27215
27216       echo "$as_me:$LINENO: result: yes" >&5
27217 echo "${ECHO_T}yes" >&6
27218 else
27219   echo "$as_me: failed program was:" >&5
27220 sed 's/^/| /' conftest.$ac_ext >&5
27221
27222 echo "$as_me:$LINENO: result: no" >&5
27223 echo "${ECHO_T}no" >&6
27224        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27225 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27226               cat >conftest.$ac_ext <<_ACEOF
27227 /* confdefs.h.  */
27228 _ACEOF
27229 cat confdefs.h >>conftest.$ac_ext
27230 cat >>conftest.$ac_ext <<_ACEOF
27231 /* end confdefs.h.  */
27232 #include <time.h>
27233 int
27234 main ()
27235 {
27236 long z2 = _timezone;
27237   ;
27238   return 0;
27239 }
27240 _ACEOF
27241 rm -f conftest.$ac_objext
27242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27243   (eval $ac_compile) 2>conftest.er1
27244   ac_status=$?
27245   grep -v '^ *+' conftest.er1 >conftest.err
27246   rm -f conftest.er1
27247   cat conftest.err >&5
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); } &&
27250          { ac_try='test -z "$ac_c_werror_flag"
27251                          || test ! -s conftest.err'
27252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27253   (eval $ac_try) 2>&5
27254   ac_status=$?
27255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256   (exit $ac_status); }; } &&
27257          { ac_try='test -s conftest.$ac_objext'
27258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27259   (eval $ac_try) 2>&5
27260   ac_status=$?
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); }; }; then
27263
27264 cat >>confdefs.h <<\_ACEOF
27265 #define HAVE_UNDERSCORE_TIMEZONE 1
27266 _ACEOF
27267
27268           echo "$as_me:$LINENO: result: yes" >&5
27269 echo "${ECHO_T}yes" >&6
27270 else
27271   echo "$as_me: failed program was:" >&5
27272 sed 's/^/| /' conftest.$ac_ext >&5
27273
27274 echo "$as_me:$LINENO: result: no" >&5
27275 echo "${ECHO_T}no" >&6
27276 fi
27277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27278 fi
27279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27280 fi
27281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27282
27283 for ac_prog in perl
27284 do
27285   # Extract the first word of "$ac_prog", so it can be a program name with args.
27286 set dummy $ac_prog; ac_word=$2
27287 echo "$as_me:$LINENO: checking for $ac_word" >&5
27288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27289 if test "${ac_cv_prog_PERL+set}" = set; then
27290   echo $ECHO_N "(cached) $ECHO_C" >&6
27291 else
27292   if test -n "$PERL"; then
27293   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27294 else
27295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27296 for as_dir in $PATH
27297 do
27298   IFS=$as_save_IFS
27299   test -z "$as_dir" && as_dir=.
27300   for ac_exec_ext in '' $ac_executable_extensions; do
27301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27302     ac_cv_prog_PERL="$ac_prog"
27303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27304     break 2
27305   fi
27306 done
27307 done
27308
27309 fi
27310 fi
27311 PERL=$ac_cv_prog_PERL
27312 if test -n "$PERL"; then
27313   echo "$as_me:$LINENO: result: $PERL" >&5
27314 echo "${ECHO_T}$PERL" >&6
27315 else
27316   echo "$as_me:$LINENO: result: no" >&5
27317 echo "${ECHO_T}no" >&6
27318 fi
27319
27320   test -n "$PERL" && break
27321 done
27322 test -n "$PERL" || PERL="false"
27323
27324
27325 SYSDEP_SOURCES=
27326 SIGNAL_HANDLER_AUX=
27327
27328 case "${host}" in
27329  i?86-*-linux*)
27330     SIGNAL_HANDLER=include/i386-signal.h
27331     ;;
27332  sparc*-sun-solaris*)
27333     SIGNAL_HANDLER=include/sparc-signal.h
27334     ;;
27335 # ia64-*)
27336 #    SYSDEP_SOURCES=sysdep/ia64.c
27337 #    test -d sysdep || mkdir sysdep
27338 #    ;;
27339  hppa*-*-linux*)
27340     SIGNAL_HANDLER=include/pa-signal.h
27341     ;;
27342  hppa*-hp-hpux*)
27343     SIGNAL_HANDLER=include/hppa-signal.h
27344     ;;
27345  ia64-*-linux*)
27346     SIGNAL_HANDLER=include/dwarf2-signal.h
27347     ;;
27348  powerpc*-*-linux*)
27349     SIGNAL_HANDLER=include/powerpc-signal.h
27350     ;;
27351  alpha*-*-linux*)
27352     SIGNAL_HANDLER=include/dwarf2-signal.h
27353     ;;
27354  s390*-*-linux*)
27355     SIGNAL_HANDLER=include/s390-signal.h
27356     ;;
27357  x86_64*-*-linux*)
27358     SIGNAL_HANDLER=include/x86_64-signal.h
27359     SIGNAL_HANDLER_AUX=include/i386-signal.h
27360     ;;
27361  sparc*-*-linux*)
27362     SIGNAL_HANDLER=include/dwarf2-signal.h
27363     ;;
27364  sh*-*-linux*)
27365     SIGNAL_HANDLER=include/sh-signal.h
27366     ;;
27367  *mingw*)
27368     SIGNAL_HANDLER=include/win32-signal.h
27369     ;;
27370  mips*-*-linux*)
27371     SIGNAL_HANDLER=include/mips-signal.h
27372     ;;
27373  m68*-*-linux*)
27374     SIGNAL_HANDLER=include/dwarf2-signal.h
27375     ;;
27376  powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27377     SIGNAL_HANDLER=include/darwin-signal.h
27378     ;;
27379  *)
27380     SIGNAL_HANDLER=include/default-signal.h
27381     ;;
27382 esac
27383
27384 # If we're using sjlj exceptions, forget what we just learned.
27385 if test "$enable_sjlj_exceptions" = yes; then
27386    SIGNAL_HANDLER=include/default-signal.h
27387    SIGNAL_HANDLER_AUX=
27388 fi
27389
27390
27391
27392 if test -z "$SIGNAL_HANDLER_AUX"; then
27393   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27394 fi
27395
27396                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27397
27398
27399 if test "${multilib}" = "yes"; then
27400   multilib_arg="--enable-multilib"
27401 else
27402   multilib_arg=
27403 fi
27404
27405 # See if we support thread-local storage.
27406
27407    # Check whether --enable-tls or --disable-tls was given.
27408 if test "${enable_tls+set}" = set; then
27409   enableval="$enable_tls"
27410
27411       case "$enableval" in
27412        yes|no) ;;
27413        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27414 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27415    { (exit 1); exit 1; }; } ;;
27416       esac
27417
27418 else
27419   enable_tls=yes
27420 fi;
27421
27422   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27423 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27424 if test "${gcc_cv_have_tls+set}" = set; then
27425   echo $ECHO_N "(cached) $ECHO_C" >&6
27426 else
27427
27428     if test "$cross_compiling" = yes; then
27429                 if test x$gcc_no_link = xyes; then
27430   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27432    { (exit 1); exit 1; }; }
27433 fi
27434 cat >conftest.$ac_ext <<_ACEOF
27435 __thread int a; int b; int main() { return a = b; }
27436 _ACEOF
27437 rm -f conftest.$ac_objext conftest$ac_exeext
27438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27439   (eval $ac_link) 2>conftest.er1
27440   ac_status=$?
27441   grep -v '^ *+' conftest.er1 >conftest.err
27442   rm -f conftest.er1
27443   cat conftest.err >&5
27444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445   (exit $ac_status); } &&
27446          { ac_try='test -z "$ac_c_werror_flag"
27447                          || test ! -s conftest.err'
27448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27449   (eval $ac_try) 2>&5
27450   ac_status=$?
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); }; } &&
27453          { ac_try='test -s conftest$ac_exeext'
27454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27455   (eval $ac_try) 2>&5
27456   ac_status=$?
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); }; }; then
27459   gcc_cv_have_tls=yes
27460 else
27461   echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27463
27464 gcc_cv_have_tls=no
27465 fi
27466 rm -f conftest.err conftest.$ac_objext \
27467       conftest$ac_exeext conftest.$ac_ext
27468
27469
27470 else
27471   cat >conftest.$ac_ext <<_ACEOF
27472 __thread int a; int b; int main() { return a = b; }
27473 _ACEOF
27474 rm -f conftest$ac_exeext
27475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27476   (eval $ac_link) 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481   (eval $ac_try) 2>&5
27482   ac_status=$?
27483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484   (exit $ac_status); }; }; then
27485                       chktls_save_LDFLAGS="$LDFLAGS"
27486       LDFLAGS="-static $LDFLAGS"
27487       if test x$gcc_no_link = xyes; then
27488   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27490    { (exit 1); exit 1; }; }
27491 fi
27492 cat >conftest.$ac_ext <<_ACEOF
27493 int main() { return 0; }
27494 _ACEOF
27495 rm -f conftest.$ac_objext conftest$ac_exeext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27497   (eval $ac_link) 2>conftest.er1
27498   ac_status=$?
27499   grep -v '^ *+' conftest.er1 >conftest.err
27500   rm -f conftest.er1
27501   cat conftest.err >&5
27502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503   (exit $ac_status); } &&
27504          { ac_try='test -z "$ac_c_werror_flag"
27505                          || test ! -s conftest.err'
27506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507   (eval $ac_try) 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest$ac_exeext'
27512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513   (eval $ac_try) 2>&5
27514   ac_status=$?
27515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516   (exit $ac_status); }; }; then
27517   if test "$cross_compiling" = yes; then
27518   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27521 See \`config.log' for more details." >&5
27522 echo "$as_me: error: cannot run test program while cross compiling
27523 See \`config.log' for more details." >&2;}
27524    { (exit 1); exit 1; }; }; }
27525 else
27526   cat >conftest.$ac_ext <<_ACEOF
27527 __thread int a; int b; int main() { return a = b; }
27528 _ACEOF
27529 rm -f conftest$ac_exeext
27530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27531   (eval $ac_link) 2>&5
27532   ac_status=$?
27533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27536   (eval $ac_try) 2>&5
27537   ac_status=$?
27538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539   (exit $ac_status); }; }; then
27540   gcc_cv_have_tls=yes
27541 else
27542   echo "$as_me: program exited with status $ac_status" >&5
27543 echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546 ( exit $ac_status )
27547 gcc_cv_have_tls=no
27548 fi
27549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27550 fi
27551 else
27552   echo "$as_me: failed program was:" >&5
27553 sed 's/^/| /' conftest.$ac_ext >&5
27554
27555 gcc_cv_have_tls=yes
27556 fi
27557 rm -f conftest.err conftest.$ac_objext \
27558       conftest$ac_exeext conftest.$ac_ext
27559       LDFLAGS="$chktls_save_LDFLAGS"
27560       if test $gcc_cv_have_tls = yes; then
27561                                                 chktls_save_CFLAGS="$CFLAGS"
27562         thread_CFLAGS=failed
27563         for flag in '' '-pthread' '-lpthread'; do
27564           CFLAGS="$flag $chktls_save_CFLAGS"
27565           if test x$gcc_no_link = xyes; then
27566   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27567 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27568    { (exit 1); exit 1; }; }
27569 fi
27570 cat >conftest.$ac_ext <<_ACEOF
27571 /* confdefs.h.  */
27572 _ACEOF
27573 cat confdefs.h >>conftest.$ac_ext
27574 cat >>conftest.$ac_ext <<_ACEOF
27575 /* end confdefs.h.  */
27576 #include <pthread.h>
27577                 void *g(void *d) { return NULL; }
27578 int
27579 main ()
27580 {
27581 pthread_t t; pthread_create(&t,NULL,g,NULL);
27582   ;
27583   return 0;
27584 }
27585 _ACEOF
27586 rm -f conftest.$ac_objext conftest$ac_exeext
27587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27588   (eval $ac_link) 2>conftest.er1
27589   ac_status=$?
27590   grep -v '^ *+' conftest.er1 >conftest.err
27591   rm -f conftest.er1
27592   cat conftest.err >&5
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); } &&
27595          { ac_try='test -z "$ac_c_werror_flag"
27596                          || test ! -s conftest.err'
27597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27598   (eval $ac_try) 2>&5
27599   ac_status=$?
27600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); }; } &&
27602          { ac_try='test -s conftest$ac_exeext'
27603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27604   (eval $ac_try) 2>&5
27605   ac_status=$?
27606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607   (exit $ac_status); }; }; then
27608   thread_CFLAGS="$flag"
27609 else
27610   echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27612
27613 fi
27614 rm -f conftest.err conftest.$ac_objext \
27615       conftest$ac_exeext conftest.$ac_ext
27616           if test "X$thread_CFLAGS" != Xfailed; then
27617             break
27618           fi
27619         done
27620         CFLAGS="$chktls_save_CFLAGS"
27621         if test "X$thread_CFLAGS" != Xfailed; then
27622           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27623           if test "$cross_compiling" = yes; then
27624   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27625 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27626 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27627 See \`config.log' for more details." >&5
27628 echo "$as_me: error: cannot run test program while cross compiling
27629 See \`config.log' for more details." >&2;}
27630    { (exit 1); exit 1; }; }; }
27631 else
27632   cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 #include <pthread.h>
27639                 __thread int a;
27640                 static int *a_in_other_thread;
27641                 static void *
27642                 thread_func (void *arg)
27643                 {
27644                   a_in_other_thread = &a;
27645                   return (void *)0;
27646                 }
27647 int
27648 main ()
27649 {
27650 pthread_t thread;
27651                 void *thread_retval;
27652                 int *a_in_main_thread;
27653                 if (pthread_create (&thread, (pthread_attr_t *)0,
27654                                     thread_func, (void *)0))
27655                   return 0;
27656                 a_in_main_thread = &a;
27657                 if (pthread_join (thread, &thread_retval))
27658                   return 0;
27659                 return (a_in_other_thread == a_in_main_thread);
27660   ;
27661   return 0;
27662 }
27663 _ACEOF
27664 rm -f conftest$ac_exeext
27665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666   (eval $ac_link) 2>&5
27667   ac_status=$?
27668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671   (eval $ac_try) 2>&5
27672   ac_status=$?
27673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674   (exit $ac_status); }; }; then
27675   gcc_cv_have_tls=yes
27676 else
27677   echo "$as_me: program exited with status $ac_status" >&5
27678 echo "$as_me: failed program was:" >&5
27679 sed 's/^/| /' conftest.$ac_ext >&5
27680
27681 ( exit $ac_status )
27682 gcc_cv_have_tls=no
27683 fi
27684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27685 fi
27686           CFLAGS="$chktls_save_CFLAGS"
27687         fi
27688       fi
27689 else
27690   echo "$as_me: program exited with status $ac_status" >&5
27691 echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694 ( exit $ac_status )
27695 gcc_cv_have_tls=no
27696 fi
27697 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27698 fi
27699 fi
27700 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27701 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27702   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27703
27704 cat >>confdefs.h <<\_ACEOF
27705 #define HAVE_TLS 1
27706 _ACEOF
27707
27708   fi
27709
27710 # For _Unwind_GetIPInfo.
27711
27712
27713
27714   ac_ext=cc
27715 ac_cpp='$CXXCPP $CPPFLAGS'
27716 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27717 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27718 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27719
27720   ac_save_CXXFLAGS="$CXXFLAGS"
27721   CXXFLAGS="$CXXFLAGS -fno-exceptions"
27722   echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27723 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27724   if test "${gcc_cv_getipinfo+set}" = set; then
27725   echo $ECHO_N "(cached) $ECHO_C" >&6
27726 else
27727
27728   if test x$gcc_no_link = xyes; then
27729   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27730 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27731    { (exit 1); exit 1; }; }
27732 fi
27733 cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 extern "C" { extern void _Unwind_GetIPInfo(); }
27740 int
27741 main ()
27742 {
27743 _Unwind_GetIPInfo();
27744   ;
27745   return 0;
27746 }
27747 _ACEOF
27748 rm -f conftest.$ac_objext conftest$ac_exeext
27749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27750   (eval $ac_link) 2>conftest.er1
27751   ac_status=$?
27752   grep -v '^ *+' conftest.er1 >conftest.err
27753   rm -f conftest.er1
27754   cat conftest.err >&5
27755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756   (exit $ac_status); } &&
27757          { ac_try='test -z "$ac_cxx_werror_flag"
27758                          || test ! -s conftest.err'
27759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27760   (eval $ac_try) 2>&5
27761   ac_status=$?
27762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); }; } &&
27764          { ac_try='test -s conftest$ac_exeext'
27765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766   (eval $ac_try) 2>&5
27767   ac_status=$?
27768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769   (exit $ac_status); }; }; then
27770   gcc_cv_getipinfo=yes
27771 else
27772   echo "$as_me: failed program was:" >&5
27773 sed 's/^/| /' conftest.$ac_ext >&5
27774
27775 gcc_cv_getipinfo=no
27776 fi
27777 rm -f conftest.err conftest.$ac_objext \
27778       conftest$ac_exeext conftest.$ac_ext
27779
27780 fi
27781
27782   if test $gcc_cv_getipinfo = yes; then
27783
27784 cat >>confdefs.h <<\_ACEOF
27785 #define HAVE_GETIPINFO 1
27786 _ACEOF
27787
27788   fi
27789   echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27790 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27791   CXXFLAGS="$ac_save_CXXFLAGS"
27792   ac_ext=c
27793 ac_cpp='$CPP $CPPFLAGS'
27794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27797
27798
27799
27800 # See if linker supports anonymous version scripts.
27801 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27802 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27803 if test "${libjava_cv_anon_version_script+set}" = set; then
27804   echo $ECHO_N "(cached) $ECHO_C" >&6
27805 else
27806   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27807    libjava_cv_anon_version_script=no
27808    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27809    echo '{ global: globalsymb*; local: *; };' > conftest.map
27810    if test x$gcc_no_link = xyes; then
27811   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27812 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27813    { (exit 1); exit 1; }; }
27814 fi
27815 cat >conftest.$ac_ext <<_ACEOF
27816 /* confdefs.h.  */
27817 _ACEOF
27818 cat confdefs.h >>conftest.$ac_ext
27819 cat >>conftest.$ac_ext <<_ACEOF
27820 /* end confdefs.h.  */
27821 void globalsymbol (void) {} void localsymbol (void) {}
27822 int
27823 main ()
27824 {
27825
27826   ;
27827   return 0;
27828 }
27829 _ACEOF
27830 rm -f conftest.$ac_objext conftest$ac_exeext
27831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27832   (eval $ac_link) 2>conftest.er1
27833   ac_status=$?
27834   grep -v '^ *+' conftest.er1 >conftest.err
27835   rm -f conftest.er1
27836   cat conftest.err >&5
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); } &&
27839          { ac_try='test -z "$ac_c_werror_flag"
27840                          || test ! -s conftest.err'
27841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27842   (eval $ac_try) 2>&5
27843   ac_status=$?
27844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27845   (exit $ac_status); }; } &&
27846          { ac_try='test -s conftest$ac_exeext'
27847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27848   (eval $ac_try) 2>&5
27849   ac_status=$?
27850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27851   (exit $ac_status); }; }; then
27852   libjava_cv_anon_version_script=yes
27853 else
27854   echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27856
27857 fi
27858 rm -f conftest.err conftest.$ac_objext \
27859       conftest$ac_exeext conftest.$ac_ext
27860    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27861
27862 fi
27863 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27864 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27865
27866
27867 if test "$libjava_cv_anon_version_script" = yes; then
27868   ANONVERSCRIPT_TRUE=
27869   ANONVERSCRIPT_FALSE='#'
27870 else
27871   ANONVERSCRIPT_TRUE='#'
27872   ANONVERSCRIPT_FALSE=
27873 fi
27874
27875
27876 # Check if linker supports static linking on a per library basis
27877 LD_START_STATIC_SPEC=
27878 LD_FINISH_STATIC_SPEC=
27879 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27880   if $LD --help 2>&1 | grep -q -e -non_shared ; then
27881     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27882     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27883   fi
27884 fi
27885
27886
27887
27888 here=`${PWDCMD-pwd}`
27889
27890
27891 # We get this from the environment.
27892
27893
27894
27895 # Check whether --with-python-dir or --without-python-dir was given.
27896 if test "${with_python_dir+set}" = set; then
27897   withval="$with_python_dir"
27898   with_python_dir=$withval
27899 else
27900   with_python_dir=""
27901 fi;
27902
27903 if test "x${with_python_dir}" = "x"
27904 then
27905   # Needed for installing Python modules during make install.
27906   python_mod_dir="\${prefix}/share/python"
27907   # Needed for substituting into aot-compile*
27908   python_mod_dir_expanded="${prefix}/share/python"
27909 else
27910   python_mod_dir="\${prefix}${with_python_dir}"
27911   python_mod_dir_expanded="${prefix}${with_python_dir}"
27912 fi
27913 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
27914 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
27915
27916
27917
27918 # needed for aot-compile-rpm
27919 MAKE=`which make`
27920
27921
27922 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
27923 if test "${enable_aot_compile_rpm+set}" = set; then
27924   enableval="$enable_aot_compile_rpm"
27925   case "${enableval}" in
27926     yes) AOT_RPM_ENABLED=yes ;;
27927     no)  AOT_RPM_ENABLED=no ;;
27928     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
27929 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
27930    { (exit 1); exit 1; }; } ;;
27931   esac
27932 else
27933   AOT_RPM_ENABLED=no
27934
27935 fi;
27936
27937
27938 if test "x${AOT_RPM_ENABLED}" == xyes; then
27939   INSTALL_AOT_RPM_TRUE=
27940   INSTALL_AOT_RPM_FALSE='#'
27941 else
27942   INSTALL_AOT_RPM_TRUE='#'
27943   INSTALL_AOT_RPM_FALSE=
27944 fi
27945
27946
27947 # Check whether --enable-java-home or --disable-java-home was given.
27948 if test "${enable_java_home+set}" = set; then
27949   enableval="$enable_java_home"
27950   case "${enableval}" in
27951     yes) JAVA_HOME_ENABLED=yes ;;
27952     no)  JAVA_HOME_ENABLED=no ;;
27953     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
27954 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
27955    { (exit 1); exit 1; }; } ;;
27956   esac
27957 else
27958   JAVA_HOME_ENABLED=no
27959
27960 fi;
27961
27962
27963 if test "x${JAVA_HOME_ENABLED}" == xyes; then
27964   CREATE_JAVA_HOME_TRUE=
27965   CREATE_JAVA_HOME_FALSE='#'
27966 else
27967   CREATE_JAVA_HOME_TRUE='#'
27968   CREATE_JAVA_HOME_FALSE=
27969 fi
27970
27971
27972 # Only do these checks if java-home above is enabled.
27973 if test "x${JAVA_HOME_ENABLED}" == xyes
27974 then
27975
27976
27977 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
27978 if test "${with_gcc_suffix+set}" = set; then
27979   withval="$with_gcc_suffix"
27980   gcc_suffix=$withval
27981 else
27982   gcc_suffix=""
27983 fi;
27984   echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
27985 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
27986
27987
27988
27989 # Check whether --with-arch-directory or --without-arch-directory was given.
27990 if test "${with_arch_directory+set}" = set; then
27991   withval="$with_arch_directory"
27992   host_cpu=$withval
27993 else
27994   host_cpu=""
27995 fi;
27996
27997
27998 # Check whether --with-os-directory or --without-os-directory was given.
27999 if test "${with_os_directory+set}" = set; then
28000   withval="$with_os_directory"
28001   host_os=$withval
28002 else
28003   host_os=""
28004 fi;
28005
28006
28007 # Check whether --with-origin-name or --without-origin-name was given.
28008 if test "${with_origin_name+set}" = set; then
28009   withval="$with_origin_name"
28010   origin_name=$withval
28011 else
28012   origin_name=gcj${gcc_suffix}
28013 fi;
28014   echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28015 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28016
28017
28018 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28019 if test "${with_arch_suffix+set}" = set; then
28020   withval="$with_arch_suffix"
28021   arch_suffix=$withval
28022 else
28023   arch_suffix=""
28024 fi;
28025   echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28026 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28027
28028
28029 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28030 if test "${with_jvm_root_dir+set}" = set; then
28031   withval="$with_jvm_root_dir"
28032   jvm_root_dir=$withval
28033 else
28034   jvm_root_dir="\${prefix}/lib/jvm"
28035 fi;
28036   echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28037 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28038
28039
28040 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28041 if test "${with_jvm_jar_dir+set}" = set; then
28042   withval="$with_jvm_jar_dir"
28043   jvm_jar_dir=$withval
28044 else
28045   jvm_jar_dir=\${prefix}/lib/jvm-exports
28046 fi;
28047   echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28048 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28049
28050   JAVA_VERSION=1.5.0
28051   BUILD_VERSION=0
28052
28053
28054   echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28055 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28056
28057   jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28058   sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28059   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28060   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28061
28062   JVM_ROOT_DIR=${jvm_root_dir}
28063
28064   echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28065 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28066
28067   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28068
28069   echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28070 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28071
28072   JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28073
28074   echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28075 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28076
28077   JRE_DIR=${jre_dir}
28078
28079
28080   SDK_DIR=${sdk_dir}
28081
28082
28083   JRE_LNK=${jre_lnk}
28084
28085
28086   SDK_LNK=${sdk_lnk}
28087
28088
28089   SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28090
28091   echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28092 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28093
28094   SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28095
28096   echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28097 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28098
28099   SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28100
28101   echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28102 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28103
28104   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28105
28106   echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28107 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28108
28109   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28110
28111   echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28112 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28113
28114   # Find gcj prefix using gcj found in PATH.
28115   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28116
28117   # Where do the gcj binaries live?
28118   # For jhbuild based builds, they all live in a sibling of bin called
28119   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
28120   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28121
28122   echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28123 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28124
28125   echo host is ${host}
28126   if test "x${host_cpu}" = "x"
28127   then
28128     case ${host} in
28129       *-mingw* | *-cygwin*)
28130         host_cpu=x86;;
28131       i486-* | i586-* | i686-*)
28132         host_cpu=i386;;
28133       *)
28134         host_cpu=${host_cpu};;
28135     esac
28136   fi
28137   echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28138 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28139   CPU=${host_cpu}
28140
28141
28142   if test "x${host_os}" = "x"
28143   then
28144     case ${host} in
28145       *-mingw* | *-cygwin*)
28146         host_os=win32;;
28147       *-linux*)
28148         host_os=linux;;
28149       *)
28150         host_os=${host_os};;
28151     esac
28152   fi
28153   echo os directory: ${host_os}
28154   OS=${host_os}
28155
28156
28157   # make an expanded $libdir, for substituting into
28158   # scripts (and other non-Makefile things).
28159   LIBDIR=$libdir
28160   if test "x${exec_prefix}" = "xNONE"
28161   then
28162       lib_exec_prefix=$prefix
28163   else
28164       lib_exec_prefix=$exec_prefix
28165   fi
28166   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28167
28168 fi
28169
28170                                                                                                               ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/rebuild-gcj-db"
28171
28172
28173 if test ${multilib} = yes; then
28174   multilib_arg="--enable-multilib"
28175 else
28176   multilib_arg=
28177 fi
28178
28179           ac_config_files="$ac_config_files scripts/jar"
28180
28181 cat >confcache <<\_ACEOF
28182 # This file is a shell script that caches the results of configure
28183 # tests run on this system so they can be shared between configure
28184 # scripts and configure runs, see configure's option --config-cache.
28185 # It is not useful on other systems.  If it contains results you don't
28186 # want to keep, you may remove or edit it.
28187 #
28188 # config.status only pays attention to the cache file if you give it
28189 # the --recheck option to rerun configure.
28190 #
28191 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28192 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28193 # following values.
28194
28195 _ACEOF
28196
28197 # The following way of writing the cache mishandles newlines in values,
28198 # but we know of no workaround that is simple, portable, and efficient.
28199 # So, don't put newlines in cache variables' values.
28200 # Ultrix sh set writes to stderr and can't be redirected directly,
28201 # and sets the high bit in the cache file unless we assign to the vars.
28202 {
28203   (set) 2>&1 |
28204     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28205     *ac_space=\ *)
28206       # `set' does not quote correctly, so add quotes (double-quote
28207       # substitution turns \\\\ into \\, and sed turns \\ into \).
28208       sed -n \
28209         "s/'/'\\\\''/g;
28210           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28211       ;;
28212     *)
28213       # `set' quotes correctly as required by POSIX, so do not add quotes.
28214       sed -n \
28215         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28216       ;;
28217     esac;
28218 } |
28219   sed '
28220      t clear
28221      : clear
28222      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28223      t end
28224      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28225      : end' >>confcache
28226 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28227   if test -w $cache_file; then
28228     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28229     cat confcache >$cache_file
28230   else
28231     echo "not updating unwritable cache $cache_file"
28232   fi
28233 fi
28234 rm -f confcache
28235
28236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28237 # Let make expand exec_prefix.
28238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28239
28240 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28241 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28242 # trailing colons and then remove the whole line if VPATH becomes empty
28243 # (actually we leave an empty line to preserve line numbers).
28244 if test "x$srcdir" = x.; then
28245   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28246 s/:*\$(srcdir):*/:/;
28247 s/:*\${srcdir}:*/:/;
28248 s/:*@srcdir@:*/:/;
28249 s/^\([^=]*=[     ]*\):*/\1/;
28250 s/:*$//;
28251 s/^[^=]*=[       ]*$//;
28252 }'
28253 fi
28254
28255 DEFS=-DHAVE_CONFIG_H
28256
28257 ac_libobjs=
28258 ac_ltlibobjs=
28259 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28260   # 1. Remove the extension, and $U if already installed.
28261   ac_i=`echo "$ac_i" |
28262          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28263   # 2. Add them.
28264   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28265   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28266 done
28267 LIBOBJS=$ac_libobjs
28268
28269 LTLIBOBJS=$ac_ltlibobjs
28270
28271
28272 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28273   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28274 Usually this means the macro was only invoked conditionally." >&5
28275 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28276 Usually this means the macro was only invoked conditionally." >&2;}
28277    { (exit 1); exit 1; }; }
28278 fi
28279 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28280   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28281 Usually this means the macro was only invoked conditionally." >&5
28282 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28283 Usually this means the macro was only invoked conditionally." >&2;}
28284    { (exit 1); exit 1; }; }
28285 fi
28286 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28287   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28288 Usually this means the macro was only invoked conditionally." >&5
28289 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28290 Usually this means the macro was only invoked conditionally." >&2;}
28291    { (exit 1); exit 1; }; }
28292 fi
28293 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28294   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28295 Usually this means the macro was only invoked conditionally." >&5
28296 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28297 Usually this means the macro was only invoked conditionally." >&2;}
28298    { (exit 1); exit 1; }; }
28299 fi
28300 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28301   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28302 Usually this means the macro was only invoked conditionally." >&5
28303 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28304 Usually this means the macro was only invoked conditionally." >&2;}
28305    { (exit 1); exit 1; }; }
28306 fi
28307 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28308   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28309 Usually this means the macro was only invoked conditionally." >&5
28310 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28311 Usually this means the macro was only invoked conditionally." >&2;}
28312    { (exit 1); exit 1; }; }
28313 fi
28314 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28315   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28316 Usually this means the macro was only invoked conditionally." >&5
28317 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28318 Usually this means the macro was only invoked conditionally." >&2;}
28319    { (exit 1); exit 1; }; }
28320 fi
28321 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28322   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28323 Usually this means the macro was only invoked conditionally." >&5
28324 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28325 Usually this means the macro was only invoked conditionally." >&2;}
28326    { (exit 1); exit 1; }; }
28327 fi
28328 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28329   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28330 Usually this means the macro was only invoked conditionally." >&5
28331 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28332 Usually this means the macro was only invoked conditionally." >&2;}
28333    { (exit 1); exit 1; }; }
28334 fi
28335 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28336   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28337 Usually this means the macro was only invoked conditionally." >&5
28338 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28339 Usually this means the macro was only invoked conditionally." >&2;}
28340    { (exit 1); exit 1; }; }
28341 fi
28342 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28343   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28344 Usually this means the macro was only invoked conditionally." >&5
28345 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28346 Usually this means the macro was only invoked conditionally." >&2;}
28347    { (exit 1); exit 1; }; }
28348 fi
28349 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28350   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28351 Usually this means the macro was only invoked conditionally." >&5
28352 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28353 Usually this means the macro was only invoked conditionally." >&2;}
28354    { (exit 1); exit 1; }; }
28355 fi
28356 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28357   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28358 Usually this means the macro was only invoked conditionally." >&5
28359 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28360 Usually this means the macro was only invoked conditionally." >&2;}
28361    { (exit 1); exit 1; }; }
28362 fi
28363 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28364   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28365 Usually this means the macro was only invoked conditionally." >&5
28366 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28367 Usually this means the macro was only invoked conditionally." >&2;}
28368    { (exit 1); exit 1; }; }
28369 fi
28370 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28371   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28372 Usually this means the macro was only invoked conditionally." >&5
28373 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28374 Usually this means the macro was only invoked conditionally." >&2;}
28375    { (exit 1); exit 1; }; }
28376 fi
28377 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28378   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28379 Usually this means the macro was only invoked conditionally." >&5
28380 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28381 Usually this means the macro was only invoked conditionally." >&2;}
28382    { (exit 1); exit 1; }; }
28383 fi
28384 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28385   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28386 Usually this means the macro was only invoked conditionally." >&5
28387 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28388 Usually this means the macro was only invoked conditionally." >&2;}
28389    { (exit 1); exit 1; }; }
28390 fi
28391 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28392   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28393 Usually this means the macro was only invoked conditionally." >&5
28394 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28395 Usually this means the macro was only invoked conditionally." >&2;}
28396    { (exit 1); exit 1; }; }
28397 fi
28398 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28399   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28400 Usually this means the macro was only invoked conditionally." >&5
28401 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28402 Usually this means the macro was only invoked conditionally." >&2;}
28403    { (exit 1); exit 1; }; }
28404 fi
28405 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28406   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28407 Usually this means the macro was only invoked conditionally." >&5
28408 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28409 Usually this means the macro was only invoked conditionally." >&2;}
28410    { (exit 1); exit 1; }; }
28411 fi
28412 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28413   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28414 Usually this means the macro was only invoked conditionally." >&5
28415 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28416 Usually this means the macro was only invoked conditionally." >&2;}
28417    { (exit 1); exit 1; }; }
28418 fi
28419 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28420   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28421 Usually this means the macro was only invoked conditionally." >&5
28422 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28423 Usually this means the macro was only invoked conditionally." >&2;}
28424    { (exit 1); exit 1; }; }
28425 fi
28426 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28427   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28428 Usually this means the macro was only invoked conditionally." >&5
28429 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28430 Usually this means the macro was only invoked conditionally." >&2;}
28431    { (exit 1); exit 1; }; }
28432 fi
28433 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28434   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28435 Usually this means the macro was only invoked conditionally." >&5
28436 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28437 Usually this means the macro was only invoked conditionally." >&2;}
28438    { (exit 1); exit 1; }; }
28439 fi
28440 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28441   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28442 Usually this means the macro was only invoked conditionally." >&5
28443 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28444 Usually this means the macro was only invoked conditionally." >&2;}
28445    { (exit 1); exit 1; }; }
28446 fi
28447 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28448   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28449 Usually this means the macro was only invoked conditionally." >&5
28450 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28451 Usually this means the macro was only invoked conditionally." >&2;}
28452    { (exit 1); exit 1; }; }
28453 fi
28454 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28455   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28456 Usually this means the macro was only invoked conditionally." >&5
28457 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28458 Usually this means the macro was only invoked conditionally." >&2;}
28459    { (exit 1); exit 1; }; }
28460 fi
28461 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28462   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28463 Usually this means the macro was only invoked conditionally." >&5
28464 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28465 Usually this means the macro was only invoked conditionally." >&2;}
28466    { (exit 1); exit 1; }; }
28467 fi
28468 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28469   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28470 Usually this means the macro was only invoked conditionally." >&5
28471 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28472 Usually this means the macro was only invoked conditionally." >&2;}
28473    { (exit 1); exit 1; }; }
28474 fi
28475 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28476   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28477 Usually this means the macro was only invoked conditionally." >&5
28478 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28479 Usually this means the macro was only invoked conditionally." >&2;}
28480    { (exit 1); exit 1; }; }
28481 fi
28482 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28483   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28484 Usually this means the macro was only invoked conditionally." >&5
28485 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28486 Usually this means the macro was only invoked conditionally." >&2;}
28487    { (exit 1); exit 1; }; }
28488 fi
28489 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28490   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28491 Usually this means the macro was only invoked conditionally." >&5
28492 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28493 Usually this means the macro was only invoked conditionally." >&2;}
28494    { (exit 1); exit 1; }; }
28495 fi
28496
28497 : ${CONFIG_STATUS=./config.status}
28498 ac_clean_files_save=$ac_clean_files
28499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28500 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28501 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28502 cat >$CONFIG_STATUS <<_ACEOF
28503 #! $SHELL
28504 # Generated by $as_me.
28505 # Run this file to recreate the current configuration.
28506 # Compiler output produced by configure, useful for debugging
28507 # configure, is in config.log if it exists.
28508
28509 debug=false
28510 ac_cs_recheck=false
28511 ac_cs_silent=false
28512 SHELL=\${CONFIG_SHELL-$SHELL}
28513 _ACEOF
28514
28515 cat >>$CONFIG_STATUS <<\_ACEOF
28516 ## --------------------- ##
28517 ## M4sh Initialization.  ##
28518 ## --------------------- ##
28519
28520 # Be Bourne compatible
28521 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28522   emulate sh
28523   NULLCMD=:
28524   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28525   # is contrary to our usage.  Disable this feature.
28526   alias -g '${1+"$@"}'='"$@"'
28527 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28528   set -o posix
28529 fi
28530 DUALCASE=1; export DUALCASE # for MKS sh
28531
28532 # Support unset when possible.
28533 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28534   as_unset=unset
28535 else
28536   as_unset=false
28537 fi
28538
28539
28540 # Work around bugs in pre-3.0 UWIN ksh.
28541 $as_unset ENV MAIL MAILPATH
28542 PS1='$ '
28543 PS2='> '
28544 PS4='+ '
28545
28546 # NLS nuisances.
28547 for as_var in \
28548   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28549   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28550   LC_TELEPHONE LC_TIME
28551 do
28552   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28553     eval $as_var=C; export $as_var
28554   else
28555     $as_unset $as_var
28556   fi
28557 done
28558
28559 # Required to use basename.
28560 if expr a : '\(a\)' >/dev/null 2>&1; then
28561   as_expr=expr
28562 else
28563   as_expr=false
28564 fi
28565
28566 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28567   as_basename=basename
28568 else
28569   as_basename=false
28570 fi
28571
28572
28573 # Name of the executable.
28574 as_me=`$as_basename "$0" ||
28575 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28576          X"$0" : 'X\(//\)$' \| \
28577          X"$0" : 'X\(/\)$' \| \
28578          .     : '\(.\)' 2>/dev/null ||
28579 echo X/"$0" |
28580     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28581           /^X\/\(\/\/\)$/{ s//\1/; q; }
28582           /^X\/\(\/\).*/{ s//\1/; q; }
28583           s/.*/./; q'`
28584
28585
28586 # PATH needs CR, and LINENO needs CR and PATH.
28587 # Avoid depending upon Character Ranges.
28588 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28589 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28590 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28591 as_cr_digits='0123456789'
28592 as_cr_alnum=$as_cr_Letters$as_cr_digits
28593
28594 # The user is always right.
28595 if test "${PATH_SEPARATOR+set}" != set; then
28596   echo "#! /bin/sh" >conf$$.sh
28597   echo  "exit 0"   >>conf$$.sh
28598   chmod +x conf$$.sh
28599   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28600     PATH_SEPARATOR=';'
28601   else
28602     PATH_SEPARATOR=:
28603   fi
28604   rm -f conf$$.sh
28605 fi
28606
28607
28608   as_lineno_1=$LINENO
28609   as_lineno_2=$LINENO
28610   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28611   test "x$as_lineno_1" != "x$as_lineno_2" &&
28612   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28613   # Find who we are.  Look in the path if we contain no path at all
28614   # relative or not.
28615   case $0 in
28616     *[\\/]* ) as_myself=$0 ;;
28617     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28618 for as_dir in $PATH
28619 do
28620   IFS=$as_save_IFS
28621   test -z "$as_dir" && as_dir=.
28622   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28623 done
28624
28625        ;;
28626   esac
28627   # We did not find ourselves, most probably we were run as `sh COMMAND'
28628   # in which case we are not to be found in the path.
28629   if test "x$as_myself" = x; then
28630     as_myself=$0
28631   fi
28632   if test ! -f "$as_myself"; then
28633     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28634 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28635    { (exit 1); exit 1; }; }
28636   fi
28637   case $CONFIG_SHELL in
28638   '')
28639     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28640 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28641 do
28642   IFS=$as_save_IFS
28643   test -z "$as_dir" && as_dir=.
28644   for as_base in sh bash ksh sh5; do
28645          case $as_dir in
28646          /*)
28647            if ("$as_dir/$as_base" -c '
28648   as_lineno_1=$LINENO
28649   as_lineno_2=$LINENO
28650   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28651   test "x$as_lineno_1" != "x$as_lineno_2" &&
28652   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28653              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28654              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28655              CONFIG_SHELL=$as_dir/$as_base
28656              export CONFIG_SHELL
28657              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28658            fi;;
28659          esac
28660        done
28661 done
28662 ;;
28663   esac
28664
28665   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28666   # uniformly replaced by the line number.  The first 'sed' inserts a
28667   # line-number line before each line; the second 'sed' does the real
28668   # work.  The second script uses 'N' to pair each line-number line
28669   # with the numbered line, and appends trailing '-' during
28670   # substitution so that $LINENO is not a special case at line end.
28671   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28672   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28673   sed '=' <$as_myself |
28674     sed '
28675       N
28676       s,$,-,
28677       : loop
28678       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28679       t loop
28680       s,-$,,
28681       s,^['$as_cr_digits']*\n,,
28682     ' >$as_me.lineno &&
28683   chmod +x $as_me.lineno ||
28684     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28685 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28686    { (exit 1); exit 1; }; }
28687
28688   # Don't try to exec as it changes $[0], causing all sort of problems
28689   # (the dirname of $[0] is not the place where we might find the
28690   # original and so on.  Autoconf is especially sensible to this).
28691   . ./$as_me.lineno
28692   # Exit status is that of the last command.
28693   exit
28694 }
28695
28696
28697 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28698   *c*,-n*) ECHO_N= ECHO_C='
28699 ' ECHO_T='      ' ;;
28700   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28701   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28702 esac
28703
28704 if expr a : '\(a\)' >/dev/null 2>&1; then
28705   as_expr=expr
28706 else
28707   as_expr=false
28708 fi
28709
28710 rm -f conf$$ conf$$.exe conf$$.file
28711 echo >conf$$.file
28712 if ln -s conf$$.file conf$$ 2>/dev/null; then
28713   # We could just check for DJGPP; but this test a) works b) is more generic
28714   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28715   if test -f conf$$.exe; then
28716     # Don't use ln at all; we don't have any links
28717     as_ln_s='cp -p'
28718   else
28719     as_ln_s='ln -s'
28720   fi
28721 elif ln conf$$.file conf$$ 2>/dev/null; then
28722   as_ln_s=ln
28723 else
28724   as_ln_s='cp -p'
28725 fi
28726 rm -f conf$$ conf$$.exe conf$$.file
28727
28728 if mkdir -p . 2>/dev/null; then
28729   as_mkdir_p=:
28730 else
28731   test -d ./-p && rmdir ./-p
28732   as_mkdir_p=false
28733 fi
28734
28735 as_executable_p="test -f"
28736
28737 # Sed expression to map a string onto a valid CPP name.
28738 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28739
28740 # Sed expression to map a string onto a valid variable name.
28741 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28742
28743
28744 # IFS
28745 # We need space, tab and new line, in precisely that order.
28746 as_nl='
28747 '
28748 IFS="   $as_nl"
28749
28750 # CDPATH.
28751 $as_unset CDPATH
28752
28753 exec 6>&1
28754
28755 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28756 # report actual input values of CONFIG_FILES etc. instead of their
28757 # values after options handling.  Logging --version etc. is OK.
28758 exec 5>>config.log
28759 {
28760   echo
28761   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28762 ## Running $as_me. ##
28763 _ASBOX
28764 } >&5
28765 cat >&5 <<_CSEOF
28766
28767 This file was extended by libjava $as_me version-unused, which was
28768 generated by GNU Autoconf 2.59.  Invocation command line was
28769
28770   CONFIG_FILES    = $CONFIG_FILES
28771   CONFIG_HEADERS  = $CONFIG_HEADERS
28772   CONFIG_LINKS    = $CONFIG_LINKS
28773   CONFIG_COMMANDS = $CONFIG_COMMANDS
28774   $ $0 $@
28775
28776 _CSEOF
28777 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28778 echo >&5
28779 _ACEOF
28780
28781 # Files that config.status was made for.
28782 if test -n "$ac_config_files"; then
28783   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28784 fi
28785
28786 if test -n "$ac_config_headers"; then
28787   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28788 fi
28789
28790 if test -n "$ac_config_links"; then
28791   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28792 fi
28793
28794 if test -n "$ac_config_commands"; then
28795   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28796 fi
28797
28798 cat >>$CONFIG_STATUS <<\_ACEOF
28799
28800 ac_cs_usage="\
28801 \`$as_me' instantiates files from templates according to the
28802 current configuration.
28803
28804 Usage: $0 [OPTIONS] [FILE]...
28805
28806   -h, --help       print this help, then exit
28807   -V, --version    print version number, then exit
28808   -q, --quiet      do not print progress messages
28809   -d, --debug      don't remove temporary files
28810       --recheck    update $as_me by reconfiguring in the same conditions
28811   --file=FILE[:TEMPLATE]
28812                    instantiate the configuration file FILE
28813   --header=FILE[:TEMPLATE]
28814                    instantiate the configuration header FILE
28815
28816 Configuration files:
28817 $config_files
28818
28819 Configuration headers:
28820 $config_headers
28821
28822 Configuration links:
28823 $config_links
28824
28825 Configuration commands:
28826 $config_commands
28827
28828 Report bugs to <bug-autoconf@gnu.org>."
28829 _ACEOF
28830
28831 cat >>$CONFIG_STATUS <<_ACEOF
28832 ac_cs_version="\\
28833 libjava config.status version-unused
28834 configured by $0, generated by GNU Autoconf 2.59,
28835   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28836
28837 Copyright (C) 2003 Free Software Foundation, Inc.
28838 This config.status script is free software; the Free Software Foundation
28839 gives unlimited permission to copy, distribute and modify it."
28840 srcdir=$srcdir
28841 INSTALL="$INSTALL"
28842 _ACEOF
28843
28844 cat >>$CONFIG_STATUS <<\_ACEOF
28845 # If no file are specified by the user, then we need to provide default
28846 # value.  By we need to know if files were specified by the user.
28847 ac_need_defaults=:
28848 while test $# != 0
28849 do
28850   case $1 in
28851   --*=*)
28852     ac_option=`expr "x$1" : 'x\([^=]*\)='`
28853     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28854     ac_shift=:
28855     ;;
28856   -*)
28857     ac_option=$1
28858     ac_optarg=$2
28859     ac_shift=shift
28860     ;;
28861   *) # This is not an option, so the user has probably given explicit
28862      # arguments.
28863      ac_option=$1
28864      ac_need_defaults=false;;
28865   esac
28866
28867   case $ac_option in
28868   # Handling of the options.
28869 _ACEOF
28870 cat >>$CONFIG_STATUS <<\_ACEOF
28871   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28872     ac_cs_recheck=: ;;
28873   --version | --vers* | -V )
28874     echo "$ac_cs_version"; exit 0 ;;
28875   --he | --h)
28876     # Conflict between --help and --header
28877     { { echo "$as_me:$LINENO: error: ambiguous option: $1
28878 Try \`$0 --help' for more information." >&5
28879 echo "$as_me: error: ambiguous option: $1
28880 Try \`$0 --help' for more information." >&2;}
28881    { (exit 1); exit 1; }; };;
28882   --help | --hel | -h )
28883     echo "$ac_cs_usage"; exit 0 ;;
28884   --debug | --d* | -d )
28885     debug=: ;;
28886   --file | --fil | --fi | --f )
28887     $ac_shift
28888     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28889     ac_need_defaults=false;;
28890   --header | --heade | --head | --hea )
28891     $ac_shift
28892     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28893     ac_need_defaults=false;;
28894   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28895   | -silent | --silent | --silen | --sile | --sil | --si | --s)
28896     ac_cs_silent=: ;;
28897
28898   # This is an error.
28899   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28900 Try \`$0 --help' for more information." >&5
28901 echo "$as_me: error: unrecognized option: $1
28902 Try \`$0 --help' for more information." >&2;}
28903    { (exit 1); exit 1; }; } ;;
28904
28905   *) ac_config_targets="$ac_config_targets $1" ;;
28906
28907   esac
28908   shift
28909 done
28910
28911 ac_configure_extra_args=
28912
28913 if $ac_cs_silent; then
28914   exec 6>/dev/null
28915   ac_configure_extra_args="$ac_configure_extra_args --silent"
28916 fi
28917
28918 _ACEOF
28919 cat >>$CONFIG_STATUS <<_ACEOF
28920 if \$ac_cs_recheck; then
28921   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28922   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28923 fi
28924
28925 _ACEOF
28926
28927 cat >>$CONFIG_STATUS <<_ACEOF
28928 #
28929 # INIT-COMMANDS section.
28930 #
28931
28932
28933 srcdir="$srcdir"
28934 host="$host"
28935 target="$target"
28936 with_multisubdir="$with_multisubdir"
28937 with_multisrctop="$with_multisrctop"
28938 with_target_subdir="$with_target_subdir"
28939 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28940 multi_basedir="$multi_basedir"
28941 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28942 CC="$CC"
28943 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28944
28945
28946 # The HP-UX ksh and POSIX shell print the target directory to stdout
28947 # if CDPATH is set.
28948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28949
28950 sed_quote_subst='$sed_quote_subst'
28951 double_quote_subst='$double_quote_subst'
28952 delay_variable_subst='$delay_variable_subst'
28953 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28954 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28955 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28956 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28957 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28958 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28959 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28960 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28961 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28962 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28963 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28964 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28965 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28966 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28967 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28968 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28969 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28970 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28971 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28972 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28973 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28974 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28975 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28976 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28977 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28978 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28979 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28980 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28981 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28982 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28983 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28984 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28985 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28986 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28987 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28988 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28989 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28990 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28991 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28992 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28993 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28994 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28995 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28996 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"`'
28997 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28998 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28999 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29000 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29001 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29002 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29003 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29004 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29005 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29006 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29007 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29008 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29009 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29010 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29011 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29012 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29013 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29014 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29015 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29016 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29017 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29018 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29019 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29020 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29021 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29022 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29023 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29024 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29025 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29026 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29027 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29028 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29029 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29030 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29031 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29032 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29033 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29034 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29035 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29036 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29037 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29038 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29039 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29040 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29041 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29042 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29043 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29044 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29045 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29046 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29047 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29048 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29049 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29050 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29051 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29052 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29053 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29054 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29055 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29056 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29057 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29058 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29059 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29060 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29061 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29062 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29063 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29064 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29065 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29066 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29067 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29068 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29069 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29070 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29071 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29072 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29073 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29074 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29075 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29076 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29077 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29078 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29079 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29080 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29081 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29082 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29083 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29084 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29085 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29086 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29087 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29088 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29089 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29090 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29091 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29092 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29093 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29094 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29095 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29096 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29097 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29098 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29099 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29100 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29101 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29102 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29103 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29104 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29105 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29106 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29107 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29108 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29109 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29110 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29111 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29112 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29113 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29114 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29115 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29116 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29117 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29118 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29119 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29120 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29121 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29122 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29123 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29124 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29125 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29126 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29127 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29128 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29129 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29130 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29131 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29132 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29133 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29134 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29135 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29136 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29137 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29138 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29139 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29140 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29141 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29142 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29143 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29144 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29145 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29146 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29147 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29148 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29149 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29150 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29151 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29152 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29153 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29154 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29155 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29156 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29157 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29158 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29159 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29160 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29161
29162 LTCC='$LTCC'
29163 LTCFLAGS='$LTCFLAGS'
29164 compiler='$compiler_DEFAULT'
29165
29166 # Quote evaled strings.
29167 for var in SED \
29168 GREP \
29169 EGREP \
29170 FGREP \
29171 LD \
29172 NM \
29173 LN_S \
29174 lt_SP2NL \
29175 lt_NL2SP \
29176 reload_flag \
29177 deplibs_check_method \
29178 file_magic_cmd \
29179 AR \
29180 AR_FLAGS \
29181 STRIP \
29182 RANLIB \
29183 CC \
29184 CFLAGS \
29185 compiler \
29186 lt_cv_sys_global_symbol_pipe \
29187 lt_cv_sys_global_symbol_to_cdecl \
29188 lt_cv_sys_global_symbol_to_c_name_address \
29189 SHELL \
29190 ECHO \
29191 lt_prog_compiler_no_builtin_flag \
29192 lt_prog_compiler_wl \
29193 lt_prog_compiler_pic \
29194 lt_prog_compiler_static \
29195 lt_cv_prog_compiler_c_o \
29196 need_locks \
29197 shrext_cmds \
29198 export_dynamic_flag_spec \
29199 whole_archive_flag_spec \
29200 compiler_needs_object \
29201 with_gnu_ld \
29202 allow_undefined_flag \
29203 no_undefined_flag \
29204 hardcode_libdir_flag_spec \
29205 hardcode_libdir_flag_spec_ld \
29206 hardcode_libdir_separator \
29207 fix_srcfile_path \
29208 exclude_expsyms \
29209 include_expsyms \
29210 file_list_spec \
29211 variables_saved_for_relink \
29212 libname_spec \
29213 library_names_spec \
29214 soname_spec \
29215 finish_eval \
29216 old_striplib \
29217 striplib \
29218 predep_objects \
29219 postdep_objects \
29220 predeps \
29221 postdeps \
29222 compiler_lib_search_path \
29223 LD_CXX \
29224 LD_GCJ \
29225 compiler_CXX \
29226 compiler_GCJ \
29227 lt_prog_compiler_no_builtin_flag_CXX \
29228 lt_prog_compiler_no_builtin_flag_GCJ \
29229 lt_prog_compiler_wl_CXX \
29230 lt_prog_compiler_wl_GCJ \
29231 lt_prog_compiler_pic_CXX \
29232 lt_prog_compiler_pic_GCJ \
29233 lt_prog_compiler_static_CXX \
29234 lt_prog_compiler_static_GCJ \
29235 lt_cv_prog_compiler_c_o_CXX \
29236 lt_cv_prog_compiler_c_o_GCJ \
29237 export_dynamic_flag_spec_CXX \
29238 export_dynamic_flag_spec_GCJ \
29239 whole_archive_flag_spec_CXX \
29240 whole_archive_flag_spec_GCJ \
29241 compiler_needs_object_CXX \
29242 compiler_needs_object_GCJ \
29243 with_gnu_ld_CXX \
29244 with_gnu_ld_GCJ \
29245 allow_undefined_flag_CXX \
29246 allow_undefined_flag_GCJ \
29247 no_undefined_flag_CXX \
29248 no_undefined_flag_GCJ \
29249 hardcode_libdir_flag_spec_CXX \
29250 hardcode_libdir_flag_spec_GCJ \
29251 hardcode_libdir_flag_spec_ld_CXX \
29252 hardcode_libdir_flag_spec_ld_GCJ \
29253 hardcode_libdir_separator_CXX \
29254 hardcode_libdir_separator_GCJ \
29255 fix_srcfile_path_CXX \
29256 fix_srcfile_path_GCJ \
29257 exclude_expsyms_CXX \
29258 exclude_expsyms_GCJ \
29259 include_expsyms_CXX \
29260 include_expsyms_GCJ \
29261 file_list_spec_CXX \
29262 file_list_spec_GCJ \
29263 predep_objects_CXX \
29264 predep_objects_GCJ \
29265 postdep_objects_CXX \
29266 postdep_objects_GCJ \
29267 predeps_CXX \
29268 predeps_GCJ \
29269 postdeps_CXX \
29270 postdeps_GCJ \
29271 compiler_lib_search_path_CXX \
29272 compiler_lib_search_path_GCJ; do
29273     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29274     *[\\\\\\\`\\"\\\$]*)
29275       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29276       ;;
29277     *)
29278       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29279       ;;
29280     esac
29281 done
29282
29283 # Double-quote double-evaled strings.
29284 for var in reload_cmds \
29285 old_postinstall_cmds \
29286 old_postuninstall_cmds \
29287 old_archive_cmds \
29288 extract_expsyms_cmds \
29289 old_archive_from_new_cmds \
29290 old_archive_from_expsyms_cmds \
29291 archive_cmds \
29292 archive_expsym_cmds \
29293 module_cmds \
29294 module_expsym_cmds \
29295 export_symbols_cmds \
29296 prelink_cmds \
29297 postinstall_cmds \
29298 postuninstall_cmds \
29299 finish_cmds \
29300 sys_lib_search_path_spec \
29301 sys_lib_dlsearch_path_spec \
29302 old_archive_cmds_CXX \
29303 old_archive_cmds_GCJ \
29304 old_archive_from_new_cmds_CXX \
29305 old_archive_from_new_cmds_GCJ \
29306 old_archive_from_expsyms_cmds_CXX \
29307 old_archive_from_expsyms_cmds_GCJ \
29308 archive_cmds_CXX \
29309 archive_cmds_GCJ \
29310 archive_expsym_cmds_CXX \
29311 archive_expsym_cmds_GCJ \
29312 module_cmds_CXX \
29313 module_cmds_GCJ \
29314 module_expsym_cmds_CXX \
29315 module_expsym_cmds_GCJ \
29316 export_symbols_cmds_CXX \
29317 export_symbols_cmds_GCJ \
29318 prelink_cmds_CXX \
29319 prelink_cmds_GCJ; do
29320     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29321     *[\\\\\\\`\\"\\\$]*)
29322       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29323       ;;
29324     *)
29325       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29326       ;;
29327     esac
29328 done
29329
29330 # Fix-up fallback echo if it was mangled by the above quoting rules.
29331 case \$lt_ECHO in
29332 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29333   ;;
29334 esac
29335
29336 ac_aux_dir='$ac_aux_dir'
29337 xsi_shell='$xsi_shell'
29338 lt_shell_append='$lt_shell_append'
29339
29340 # See if we are running on zsh, and set the options which allow our
29341 # commands through without removal of \ escapes INIT.
29342 if test -n "\${ZSH_VERSION+set}" ; then
29343    setopt NO_GLOB_SUBST
29344 fi
29345
29346
29347     PACKAGE='$PACKAGE'
29348     VERSION='$VERSION'
29349     TIMESTAMP='$TIMESTAMP'
29350     RM='$RM'
29351     ofile='$ofile'
29352
29353
29354
29355
29356
29357
29358
29359
29360 _ACEOF
29361
29362
29363
29364 cat >>$CONFIG_STATUS <<\_ACEOF
29365 for ac_config_target in $ac_config_targets
29366 do
29367   case "$ac_config_target" in
29368   # Handling of arguments.
29369   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29370   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29371   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29372   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29373   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29374   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29375   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29376   "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29377   "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29378   "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29379   "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29380   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29381   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29382   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29383   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29384   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29385   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29386   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29387   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29388   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29389   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29390   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29391   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29392   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29393   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29394   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29395   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29396   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29397   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29398   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29399   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29400   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29401   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29402   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29403   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29404 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29405    { (exit 1); exit 1; }; };;
29406   esac
29407 done
29408
29409 # If the user did not use the arguments to specify the items to instantiate,
29410 # then the envvar interface is used.  Set only those that are not.
29411 # We use the long form for the default assignment because of an extremely
29412 # bizarre bug on SunOS 4.1.3.
29413 if $ac_need_defaults; then
29414   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29415   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29416   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29417   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29418 fi
29419
29420 # Have a temporary directory for convenience.  Make it in the build tree
29421 # simply because there is no reason to put it here, and in addition,
29422 # creating and moving files from /tmp can sometimes cause problems.
29423 # Create a temporary directory, and hook for its removal unless debugging.
29424 $debug ||
29425 {
29426   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29427   trap '{ (exit 1); exit 1; }' 1 2 13 15
29428 }
29429
29430 # Create a (secure) tmp directory for tmp files.
29431
29432 {
29433   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29434   test -n "$tmp" && test -d "$tmp"
29435 }  ||
29436 {
29437   tmp=./confstat$$-$RANDOM
29438   (umask 077 && mkdir $tmp)
29439 } ||
29440 {
29441    echo "$me: cannot create a temporary directory in ." >&2
29442    { (exit 1); exit 1; }
29443 }
29444
29445 _ACEOF
29446
29447 cat >>$CONFIG_STATUS <<_ACEOF
29448
29449 #
29450 # CONFIG_FILES section.
29451 #
29452
29453 # No need to generate the scripts if there are no CONFIG_FILES.
29454 # This happens for instance when ./config.status config.h
29455 if test -n "\$CONFIG_FILES"; then
29456   # Protect against being on the right side of a sed subst in config.status.
29457   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29458    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29459 s,@SHELL@,$SHELL,;t t
29460 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29461 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29462 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29463 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29464 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29465 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29466 s,@exec_prefix@,$exec_prefix,;t t
29467 s,@prefix@,$prefix,;t t
29468 s,@program_transform_name@,$program_transform_name,;t t
29469 s,@bindir@,$bindir,;t t
29470 s,@sbindir@,$sbindir,;t t
29471 s,@libexecdir@,$libexecdir,;t t
29472 s,@datadir@,$datadir,;t t
29473 s,@sysconfdir@,$sysconfdir,;t t
29474 s,@sharedstatedir@,$sharedstatedir,;t t
29475 s,@localstatedir@,$localstatedir,;t t
29476 s,@libdir@,$libdir,;t t
29477 s,@includedir@,$includedir,;t t
29478 s,@oldincludedir@,$oldincludedir,;t t
29479 s,@infodir@,$infodir,;t t
29480 s,@mandir@,$mandir,;t t
29481 s,@build_alias@,$build_alias,;t t
29482 s,@host_alias@,$host_alias,;t t
29483 s,@target_alias@,$target_alias,;t t
29484 s,@DEFS@,$DEFS,;t t
29485 s,@ECHO_C@,$ECHO_C,;t t
29486 s,@ECHO_N@,$ECHO_N,;t t
29487 s,@ECHO_T@,$ECHO_T,;t t
29488 s,@LIBS@,$LIBS,;t t
29489 s,@build@,$build,;t t
29490 s,@build_cpu@,$build_cpu,;t t
29491 s,@build_vendor@,$build_vendor,;t t
29492 s,@build_os@,$build_os,;t t
29493 s,@build_libsubdir@,$build_libsubdir,;t t
29494 s,@build_subdir@,$build_subdir,;t t
29495 s,@host_subdir@,$host_subdir,;t t
29496 s,@target_subdir@,$target_subdir,;t t
29497 s,@multi_basedir@,$multi_basedir,;t t
29498 s,@host@,$host,;t t
29499 s,@host_cpu@,$host_cpu,;t t
29500 s,@host_vendor@,$host_vendor,;t t
29501 s,@host_os@,$host_os,;t t
29502 s,@target@,$target,;t t
29503 s,@target_cpu@,$target_cpu,;t t
29504 s,@target_vendor@,$target_vendor,;t t
29505 s,@target_os@,$target_os,;t t
29506 s,@target_noncanonical@,$target_noncanonical,;t t
29507 s,@LN_S@,$LN_S,;t t
29508 s,@mkinstalldirs@,$mkinstalldirs,;t t
29509 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29510 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29511 s,@CC@,$CC,;t t
29512 s,@ac_ct_CC@,$ac_ct_CC,;t t
29513 s,@EXEEXT@,$EXEEXT,;t t
29514 s,@OBJEXT@,$OBJEXT,;t t
29515 s,@CXX@,$CXX,;t t
29516 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29517 s,@CFLAGS@,$CFLAGS,;t t
29518 s,@CXXFLAGS@,$CXXFLAGS,;t t
29519 s,@LDFLAGS@,$LDFLAGS,;t t
29520 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29521 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29522 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29523 s,@CYGPATH_W@,$CYGPATH_W,;t t
29524 s,@PACKAGE@,$PACKAGE,;t t
29525 s,@VERSION@,$VERSION,;t t
29526 s,@ACLOCAL@,$ACLOCAL,;t t
29527 s,@AUTOCONF@,$AUTOCONF,;t t
29528 s,@AUTOMAKE@,$AUTOMAKE,;t t
29529 s,@AUTOHEADER@,$AUTOHEADER,;t t
29530 s,@MAKEINFO@,$MAKEINFO,;t t
29531 s,@install_sh@,$install_sh,;t t
29532 s,@STRIP@,$STRIP,;t t
29533 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29534 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29535 s,@mkdir_p@,$mkdir_p,;t t
29536 s,@AWK@,$AWK,;t t
29537 s,@SET_MAKE@,$SET_MAKE,;t t
29538 s,@am__leading_dot@,$am__leading_dot,;t t
29539 s,@AMTAR@,$AMTAR,;t t
29540 s,@am__tar@,$am__tar,;t t
29541 s,@am__untar@,$am__untar,;t t
29542 s,@DEPDIR@,$DEPDIR,;t t
29543 s,@am__include@,$am__include,;t t
29544 s,@am__quote@,$am__quote,;t t
29545 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29546 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29547 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29548 s,@CCDEPMODE@,$CCDEPMODE,;t t
29549 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29550 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29551 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29552 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29553 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29554 s,@AS@,$AS,;t t
29555 s,@ac_ct_AS@,$ac_ct_AS,;t t
29556 s,@LD@,$LD,;t t
29557 s,@ac_ct_LD@,$ac_ct_LD,;t t
29558 s,@AR@,$AR,;t t
29559 s,@ac_ct_AR@,$ac_ct_AR,;t t
29560 s,@RANLIB@,$RANLIB,;t t
29561 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29562 s,@JAR@,$JAR,;t t
29563 s,@ZIP@,$ZIP,;t t
29564 s,@UNZIP@,$UNZIP,;t t
29565 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29566 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29567 s,@MAINT@,$MAINT,;t t
29568 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29569 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29570 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29571 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29572 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29573 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29574 s,@TOOLKIT@,$TOOLKIT,;t t
29575 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29576 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29577 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29578 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29579 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29580 s,@GCJH@,$GCJH,;t t
29581 s,@host_exeext@,$host_exeext,;t t
29582 s,@INCLTDL@,$INCLTDL,;t t
29583 s,@LIBLTDL@,$LIBLTDL,;t t
29584 s,@DIRLTDL@,$DIRLTDL,;t t
29585 s,@LIBTOOL@,$LIBTOOL,;t t
29586 s,@SED@,$SED,;t t
29587 s,@EGREP@,$EGREP,;t t
29588 s,@FGREP@,$FGREP,;t t
29589 s,@GREP@,$GREP,;t t
29590 s,@DUMPBIN@,$DUMPBIN,;t t
29591 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29592 s,@NM@,$NM,;t t
29593 s,@lt_ECHO@,$lt_ECHO,;t t
29594 s,@CPP@,$CPP,;t t
29595 s,@CPPFLAGS@,$CPPFLAGS,;t t
29596 s,@CXXCPP@,$CXXCPP,;t t
29597 s,@GCJ@,$GCJ,;t t
29598 s,@GCJFLAGS@,$GCJFLAGS,;t t
29599 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29600 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29601 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29602 s,@subdirs@,$subdirs,;t t
29603 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29604 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29605 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29606 s,@ECJ_JAR@,$ECJ_JAR,;t t
29607 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29608 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29609 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29610 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29611 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29612 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29613 s,@JAVA_HOME@,$JAVA_HOME,;t t
29614 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29615 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29616 s,@INTERPRETER@,$INTERPRETER,;t t
29617 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29618 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29619 s,@LIBFFI@,$LIBFFI,;t t
29620 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29621 s,@PLATFORM@,$PLATFORM,;t t
29622 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29623 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29624 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29625 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29626 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29627 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29628 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29629 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29630 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29631 s,@X_CFLAGS@,$X_CFLAGS,;t t
29632 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29633 s,@X_LIBS@,$X_LIBS,;t t
29634 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29635 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29636 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29637 s,@extra_ldflags@,$extra_ldflags,;t t
29638 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29639 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29640 s,@GCLIBS@,$GCLIBS,;t t
29641 s,@GCINCS@,$GCINCS,;t t
29642 s,@GCDEPS@,$GCDEPS,;t t
29643 s,@GCSPEC@,$GCSPEC,;t t
29644 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29645 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29646 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29647 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29648 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29649 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29650 s,@THREADLIBS@,$THREADLIBS,;t t
29651 s,@THREADINCS@,$THREADINCS,;t t
29652 s,@THREADDEPS@,$THREADDEPS,;t t
29653 s,@THREADSPEC@,$THREADSPEC,;t t
29654 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29655 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29656 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29657 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29658 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29659 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29660 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29661 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29662 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29663 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29664 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29665 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29666 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29667 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29668 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29669 s,@LIBICONV@,$LIBICONV,;t t
29670 s,@LTLIBICONV@,$LTLIBICONV,;t t
29671 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29672 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29673 s,@GTK_LIBS@,$GTK_LIBS,;t t
29674 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29675 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29676 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29677 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29678 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29679 s,@ZLIBS@,$ZLIBS,;t t
29680 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29681 s,@ZINCS@,$ZINCS,;t t
29682 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29683 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29684 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29685 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29686 s,@IEEESPEC@,$IEEESPEC,;t t
29687 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29688 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29689 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29690 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29691 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29692 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29693 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29694 s,@toolexecdir@,$toolexecdir,;t t
29695 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29696 s,@toolexeclibdir@,$toolexeclibdir,;t t
29697 s,@GCJVERSION@,$GCJVERSION,;t t
29698 s,@dbexecdir@,$dbexecdir,;t t
29699 s,@gcjsubdir@,$gcjsubdir,;t t
29700 s,@gxx_include_dir@,$gxx_include_dir,;t t
29701 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29702 s,@PERL@,$PERL,;t t
29703 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29704 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29705 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29706 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29707 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29708 s,@here@,$here,;t t
29709 s,@python_mod_dir@,$python_mod_dir,;t t
29710 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29711 s,@MAKE@,$MAKE,;t t
29712 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29713 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29714 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29715 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29716 s,@gcc_suffix@,$gcc_suffix,;t t
29717 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29718 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29719 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29720 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29721 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29722 s,@JRE_DIR@,$JRE_DIR,;t t
29723 s,@SDK_DIR@,$SDK_DIR,;t t
29724 s,@JRE_LNK@,$JRE_LNK,;t t
29725 s,@SDK_LNK@,$SDK_LNK,;t t
29726 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29727 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29728 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29729 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29730 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29731 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29732 s,@CPU@,$CPU,;t t
29733 s,@OS@,$OS,;t t
29734 s,@LIBDIR@,$LIBDIR,;t t
29735 s,@LIBOBJS@,$LIBOBJS,;t t
29736 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29737 CEOF
29738
29739 _ACEOF
29740
29741   cat >>$CONFIG_STATUS <<\_ACEOF
29742   # Split the substitutions into bite-sized pieces for seds with
29743   # small command number limits, like on Digital OSF/1 and HP-UX.
29744   ac_max_sed_lines=48
29745   ac_sed_frag=1 # Number of current file.
29746   ac_beg=1 # First line for current file.
29747   ac_end=$ac_max_sed_lines # Line after last line for current file.
29748   ac_more_lines=:
29749   ac_sed_cmds=
29750   while $ac_more_lines; do
29751     if test $ac_beg -gt 1; then
29752       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29753     else
29754       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29755     fi
29756     if test ! -s $tmp/subs.frag; then
29757       ac_more_lines=false
29758     else
29759       # The purpose of the label and of the branching condition is to
29760       # speed up the sed processing (if there are no `@' at all, there
29761       # is no need to browse any of the substitutions).
29762       # These are the two extra sed commands mentioned above.
29763       (echo ':t
29764   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29765       if test -z "$ac_sed_cmds"; then
29766         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29767       else
29768         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29769       fi
29770       ac_sed_frag=`expr $ac_sed_frag + 1`
29771       ac_beg=$ac_end
29772       ac_end=`expr $ac_end + $ac_max_sed_lines`
29773     fi
29774   done
29775   if test -z "$ac_sed_cmds"; then
29776     ac_sed_cmds=cat
29777   fi
29778 fi # test -n "$CONFIG_FILES"
29779
29780 _ACEOF
29781 cat >>$CONFIG_STATUS <<\_ACEOF
29782 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29783   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29784   case $ac_file in
29785   - | *:- | *:-:* ) # input from stdin
29786         cat >$tmp/stdin
29787         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29788         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29789   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29790         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29791   * )   ac_file_in=$ac_file.in ;;
29792   esac
29793
29794   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29795   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29797          X"$ac_file" : 'X\(//\)[^/]' \| \
29798          X"$ac_file" : 'X\(//\)$' \| \
29799          X"$ac_file" : 'X\(/\)' \| \
29800          .     : '\(.\)' 2>/dev/null ||
29801 echo X"$ac_file" |
29802     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29803           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29804           /^X\(\/\/\)$/{ s//\1/; q; }
29805           /^X\(\/\).*/{ s//\1/; q; }
29806           s/.*/./; q'`
29807   { if $as_mkdir_p; then
29808     mkdir -p "$ac_dir"
29809   else
29810     as_dir="$ac_dir"
29811     as_dirs=
29812     while test ! -d "$as_dir"; do
29813       as_dirs="$as_dir $as_dirs"
29814       as_dir=`(dirname "$as_dir") 2>/dev/null ||
29815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29816          X"$as_dir" : 'X\(//\)[^/]' \| \
29817          X"$as_dir" : 'X\(//\)$' \| \
29818          X"$as_dir" : 'X\(/\)' \| \
29819          .     : '\(.\)' 2>/dev/null ||
29820 echo X"$as_dir" |
29821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29823           /^X\(\/\/\)$/{ s//\1/; q; }
29824           /^X\(\/\).*/{ s//\1/; q; }
29825           s/.*/./; q'`
29826     done
29827     test ! -n "$as_dirs" || mkdir $as_dirs
29828   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29830    { (exit 1); exit 1; }; }; }
29831
29832   ac_builddir=.
29833
29834 if test "$ac_dir" != .; then
29835   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29836   # A "../" for each directory in $ac_dir_suffix.
29837   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29838 else
29839   ac_dir_suffix= ac_top_builddir=
29840 fi
29841
29842 case $srcdir in
29843   .)  # No --srcdir option.  We are building in place.
29844     ac_srcdir=.
29845     if test -z "$ac_top_builddir"; then
29846        ac_top_srcdir=.
29847     else
29848        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29849     fi ;;
29850   [\\/]* | ?:[\\/]* )  # Absolute path.
29851     ac_srcdir=$srcdir$ac_dir_suffix;
29852     ac_top_srcdir=$srcdir ;;
29853   *) # Relative path.
29854     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29855     ac_top_srcdir=$ac_top_builddir$srcdir ;;
29856 esac
29857
29858 # Do not use `cd foo && pwd` to compute absolute paths, because
29859 # the directories may not exist.
29860 case `pwd` in
29861 .) ac_abs_builddir="$ac_dir";;
29862 *)
29863   case "$ac_dir" in
29864   .) ac_abs_builddir=`pwd`;;
29865   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29866   *) ac_abs_builddir=`pwd`/"$ac_dir";;
29867   esac;;
29868 esac
29869 case $ac_abs_builddir in
29870 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29871 *)
29872   case ${ac_top_builddir}. in
29873   .) ac_abs_top_builddir=$ac_abs_builddir;;
29874   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29875   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29876   esac;;
29877 esac
29878 case $ac_abs_builddir in
29879 .) ac_abs_srcdir=$ac_srcdir;;
29880 *)
29881   case $ac_srcdir in
29882   .) ac_abs_srcdir=$ac_abs_builddir;;
29883   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29884   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29885   esac;;
29886 esac
29887 case $ac_abs_builddir in
29888 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29889 *)
29890   case $ac_top_srcdir in
29891   .) ac_abs_top_srcdir=$ac_abs_builddir;;
29892   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29893   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29894   esac;;
29895 esac
29896
29897
29898   case $INSTALL in
29899   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29900   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29901   esac
29902
29903   if test x"$ac_file" != x-; then
29904     { echo "$as_me:$LINENO: creating $ac_file" >&5
29905 echo "$as_me: creating $ac_file" >&6;}
29906     rm -f "$ac_file"
29907   fi
29908   # Let's still pretend it is `configure' which instantiates (i.e., don't
29909   # use $as_me), people would be surprised to read:
29910   #    /* config.h.  Generated by config.status.  */
29911   if test x"$ac_file" = x-; then
29912     configure_input=
29913   else
29914     configure_input="$ac_file.  "
29915   fi
29916   configure_input=$configure_input"Generated from `echo $ac_file_in |
29917                                      sed 's,.*/,,'` by configure."
29918
29919   # First look for the input files in the build tree, otherwise in the
29920   # src tree.
29921   ac_file_inputs=`IFS=:
29922     for f in $ac_file_in; do
29923       case $f in
29924       -) echo $tmp/stdin ;;
29925       [\\/$]*)
29926          # Absolute (can't be DOS-style, as IFS=:)
29927          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29928 echo "$as_me: error: cannot find input file: $f" >&2;}
29929    { (exit 1); exit 1; }; }
29930          echo "$f";;
29931       *) # Relative
29932          if test -f "$f"; then
29933            # Build tree
29934            echo "$f"
29935          elif test -f "$srcdir/$f"; then
29936            # Source tree
29937            echo "$srcdir/$f"
29938          else
29939            # /dev/null tree
29940            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29941 echo "$as_me: error: cannot find input file: $f" >&2;}
29942    { (exit 1); exit 1; }; }
29943          fi;;
29944       esac
29945     done` || { (exit 1); exit 1; }
29946 _ACEOF
29947 cat >>$CONFIG_STATUS <<_ACEOF
29948   sed "$ac_vpsub
29949 $extrasub
29950 _ACEOF
29951 cat >>$CONFIG_STATUS <<\_ACEOF
29952 :t
29953 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29954 s,@configure_input@,$configure_input,;t t
29955 s,@srcdir@,$ac_srcdir,;t t
29956 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29957 s,@top_srcdir@,$ac_top_srcdir,;t t
29958 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29959 s,@builddir@,$ac_builddir,;t t
29960 s,@abs_builddir@,$ac_abs_builddir,;t t
29961 s,@top_builddir@,$ac_top_builddir,;t t
29962 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29963 s,@INSTALL@,$ac_INSTALL,;t t
29964 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29965   rm -f $tmp/stdin
29966   if test x"$ac_file" != x-; then
29967     mv $tmp/out $ac_file
29968   else
29969     cat $tmp/out
29970     rm -f $tmp/out
29971   fi
29972
29973   # Run the commands associated with the file.
29974   case $ac_file in
29975     scripts/jar ) chmod +x scripts/jar ;;
29976   esac
29977 done
29978 _ACEOF
29979 cat >>$CONFIG_STATUS <<\_ACEOF
29980
29981 #
29982 # CONFIG_HEADER section.
29983 #
29984
29985 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29986 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29987 #
29988 # ac_d sets the value in "#define NAME VALUE" lines.
29989 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
29990 ac_dB='[         ].*$,\1#\2'
29991 ac_dC=' '
29992 ac_dD=',;t'
29993 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29994 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
29995 ac_uB='$,\1#\2define\3'
29996 ac_uC=' '
29997 ac_uD=',;t'
29998
29999 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30000   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30001   case $ac_file in
30002   - | *:- | *:-:* ) # input from stdin
30003         cat >$tmp/stdin
30004         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30005         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30006   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30007         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30008   * )   ac_file_in=$ac_file.in ;;
30009   esac
30010
30011   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30012 echo "$as_me: creating $ac_file" >&6;}
30013
30014   # First look for the input files in the build tree, otherwise in the
30015   # src tree.
30016   ac_file_inputs=`IFS=:
30017     for f in $ac_file_in; do
30018       case $f in
30019       -) echo $tmp/stdin ;;
30020       [\\/$]*)
30021          # Absolute (can't be DOS-style, as IFS=:)
30022          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30023 echo "$as_me: error: cannot find input file: $f" >&2;}
30024    { (exit 1); exit 1; }; }
30025          # Do quote $f, to prevent DOS paths from being IFS'd.
30026          echo "$f";;
30027       *) # Relative
30028          if test -f "$f"; then
30029            # Build tree
30030            echo "$f"
30031          elif test -f "$srcdir/$f"; then
30032            # Source tree
30033            echo "$srcdir/$f"
30034          else
30035            # /dev/null tree
30036            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30037 echo "$as_me: error: cannot find input file: $f" >&2;}
30038    { (exit 1); exit 1; }; }
30039          fi;;
30040       esac
30041     done` || { (exit 1); exit 1; }
30042   # Remove the trailing spaces.
30043   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30044
30045 _ACEOF
30046
30047 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30048 # `conftest.undefs', that substitutes the proper values into
30049 # config.h.in to produce config.h.  The first handles `#define'
30050 # templates, and the second `#undef' templates.
30051 # And first: Protect against being on the right side of a sed subst in
30052 # config.status.  Protect against being in an unquoted here document
30053 # in config.status.
30054 rm -f conftest.defines conftest.undefs
30055 # Using a here document instead of a string reduces the quoting nightmare.
30056 # Putting comments in sed scripts is not portable.
30057 #
30058 # `end' is used to avoid that the second main sed command (meant for
30059 # 0-ary CPP macros) applies to n-ary macro definitions.
30060 # See the Autoconf documentation for `clear'.
30061 cat >confdef2sed.sed <<\_ACEOF
30062 s/[\\&,]/\\&/g
30063 s,[\\$`],\\&,g
30064 t clear
30065 : clear
30066 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30067 t end
30068 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30069 : end
30070 _ACEOF
30071 # If some macros were called several times there might be several times
30072 # the same #defines, which is useless.  Nevertheless, we may not want to
30073 # sort them, since we want the *last* AC-DEFINE to be honored.
30074 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30075 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30076 rm -f confdef2sed.sed
30077
30078 # This sed command replaces #undef with comments.  This is necessary, for
30079 # example, in the case of _POSIX_SOURCE, which is predefined and required
30080 # on some systems where configure will not decide to define it.
30081 cat >>conftest.undefs <<\_ACEOF
30082 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30083 _ACEOF
30084
30085 # Break up conftest.defines because some shells have a limit on the size
30086 # of here documents, and old seds have small limits too (100 cmds).
30087 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30088 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30089 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30090 echo '  :' >>$CONFIG_STATUS
30091 rm -f conftest.tail
30092 while grep . conftest.defines >/dev/null
30093 do
30094   # Write a limited-size here document to $tmp/defines.sed.
30095   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30096   # Speed up: don't consider the non `#define' lines.
30097   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30098   # Work around the forget-to-reset-the-flag bug.
30099   echo 't clr' >>$CONFIG_STATUS
30100   echo ': clr' >>$CONFIG_STATUS
30101   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30102   echo 'CEOF
30103   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30104   rm -f $tmp/in
30105   mv $tmp/out $tmp/in
30106 ' >>$CONFIG_STATUS
30107   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30108   rm -f conftest.defines
30109   mv conftest.tail conftest.defines
30110 done
30111 rm -f conftest.defines
30112 echo '  fi # grep' >>$CONFIG_STATUS
30113 echo >>$CONFIG_STATUS
30114
30115 # Break up conftest.undefs because some shells have a limit on the size
30116 # of here documents, and old seds have small limits too (100 cmds).
30117 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30118 rm -f conftest.tail
30119 while grep . conftest.undefs >/dev/null
30120 do
30121   # Write a limited-size here document to $tmp/undefs.sed.
30122   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30123   # Speed up: don't consider the non `#undef'
30124   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30125   # Work around the forget-to-reset-the-flag bug.
30126   echo 't clr' >>$CONFIG_STATUS
30127   echo ': clr' >>$CONFIG_STATUS
30128   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30129   echo 'CEOF
30130   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30131   rm -f $tmp/in
30132   mv $tmp/out $tmp/in
30133 ' >>$CONFIG_STATUS
30134   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30135   rm -f conftest.undefs
30136   mv conftest.tail conftest.undefs
30137 done
30138 rm -f conftest.undefs
30139
30140 cat >>$CONFIG_STATUS <<\_ACEOF
30141   # Let's still pretend it is `configure' which instantiates (i.e., don't
30142   # use $as_me), people would be surprised to read:
30143   #    /* config.h.  Generated by config.status.  */
30144   if test x"$ac_file" = x-; then
30145     echo "/* Generated by configure.  */" >$tmp/config.h
30146   else
30147     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30148   fi
30149   cat $tmp/in >>$tmp/config.h
30150   rm -f $tmp/in
30151   if test x"$ac_file" != x-; then
30152     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30153       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30154 echo "$as_me: $ac_file is unchanged" >&6;}
30155     else
30156       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30158          X"$ac_file" : 'X\(//\)[^/]' \| \
30159          X"$ac_file" : 'X\(//\)$' \| \
30160          X"$ac_file" : 'X\(/\)' \| \
30161          .     : '\(.\)' 2>/dev/null ||
30162 echo X"$ac_file" |
30163     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30164           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30165           /^X\(\/\/\)$/{ s//\1/; q; }
30166           /^X\(\/\).*/{ s//\1/; q; }
30167           s/.*/./; q'`
30168       { if $as_mkdir_p; then
30169     mkdir -p "$ac_dir"
30170   else
30171     as_dir="$ac_dir"
30172     as_dirs=
30173     while test ! -d "$as_dir"; do
30174       as_dirs="$as_dir $as_dirs"
30175       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30177          X"$as_dir" : 'X\(//\)[^/]' \| \
30178          X"$as_dir" : 'X\(//\)$' \| \
30179          X"$as_dir" : 'X\(/\)' \| \
30180          .     : '\(.\)' 2>/dev/null ||
30181 echo X"$as_dir" |
30182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30183           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30184           /^X\(\/\/\)$/{ s//\1/; q; }
30185           /^X\(\/\).*/{ s//\1/; q; }
30186           s/.*/./; q'`
30187     done
30188     test ! -n "$as_dirs" || mkdir $as_dirs
30189   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30191    { (exit 1); exit 1; }; }; }
30192
30193       rm -f $ac_file
30194       mv $tmp/config.h $ac_file
30195     fi
30196   else
30197     cat $tmp/config.h
30198     rm -f $tmp/config.h
30199   fi
30200 # Compute $ac_file's index in $config_headers.
30201 _am_stamp_count=1
30202 for _am_header in $config_headers :; do
30203   case $_am_header in
30204     $ac_file | $ac_file:* )
30205       break ;;
30206     * )
30207       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30208   esac
30209 done
30210 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30211 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30212          X$ac_file : 'X\(//\)[^/]' \| \
30213          X$ac_file : 'X\(//\)$' \| \
30214          X$ac_file : 'X\(/\)' \| \
30215          .     : '\(.\)' 2>/dev/null ||
30216 echo X$ac_file |
30217     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30218           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30219           /^X\(\/\/\)$/{ s//\1/; q; }
30220           /^X\(\/\).*/{ s//\1/; q; }
30221           s/.*/./; q'`/stamp-h$_am_stamp_count
30222 done
30223 _ACEOF
30224 cat >>$CONFIG_STATUS <<\_ACEOF
30225
30226 #
30227 # CONFIG_LINKS section.
30228 #
30229
30230 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30231   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30232   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30233
30234   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30235 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30236
30237   if test ! -r $srcdir/$ac_source; then
30238     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30239 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30240    { (exit 1); exit 1; }; }
30241   fi
30242   rm -f $ac_dest
30243
30244   # Make relative symlinks.
30245   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30246 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30247          X"$ac_dest" : 'X\(//\)[^/]' \| \
30248          X"$ac_dest" : 'X\(//\)$' \| \
30249          X"$ac_dest" : 'X\(/\)' \| \
30250          .     : '\(.\)' 2>/dev/null ||
30251 echo X"$ac_dest" |
30252     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30253           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30254           /^X\(\/\/\)$/{ s//\1/; q; }
30255           /^X\(\/\).*/{ s//\1/; q; }
30256           s/.*/./; q'`
30257   { if $as_mkdir_p; then
30258     mkdir -p "$ac_dest_dir"
30259   else
30260     as_dir="$ac_dest_dir"
30261     as_dirs=
30262     while test ! -d "$as_dir"; do
30263       as_dirs="$as_dir $as_dirs"
30264       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30266          X"$as_dir" : 'X\(//\)[^/]' \| \
30267          X"$as_dir" : 'X\(//\)$' \| \
30268          X"$as_dir" : 'X\(/\)' \| \
30269          .     : '\(.\)' 2>/dev/null ||
30270 echo X"$as_dir" |
30271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30272           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30273           /^X\(\/\/\)$/{ s//\1/; q; }
30274           /^X\(\/\).*/{ s//\1/; q; }
30275           s/.*/./; q'`
30276     done
30277     test ! -n "$as_dirs" || mkdir $as_dirs
30278   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30279 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30280    { (exit 1); exit 1; }; }; }
30281
30282   ac_builddir=.
30283
30284 if test "$ac_dest_dir" != .; then
30285   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30286   # A "../" for each directory in $ac_dir_suffix.
30287   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30288 else
30289   ac_dir_suffix= ac_top_builddir=
30290 fi
30291
30292 case $srcdir in
30293   .)  # No --srcdir option.  We are building in place.
30294     ac_srcdir=.
30295     if test -z "$ac_top_builddir"; then
30296        ac_top_srcdir=.
30297     else
30298        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30299     fi ;;
30300   [\\/]* | ?:[\\/]* )  # Absolute path.
30301     ac_srcdir=$srcdir$ac_dir_suffix;
30302     ac_top_srcdir=$srcdir ;;
30303   *) # Relative path.
30304     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30305     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30306 esac
30307
30308 # Do not use `cd foo && pwd` to compute absolute paths, because
30309 # the directories may not exist.
30310 case `pwd` in
30311 .) ac_abs_builddir="$ac_dest_dir";;
30312 *)
30313   case "$ac_dest_dir" in
30314   .) ac_abs_builddir=`pwd`;;
30315   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30316   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30317   esac;;
30318 esac
30319 case $ac_abs_builddir in
30320 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30321 *)
30322   case ${ac_top_builddir}. in
30323   .) ac_abs_top_builddir=$ac_abs_builddir;;
30324   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30325   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30326   esac;;
30327 esac
30328 case $ac_abs_builddir in
30329 .) ac_abs_srcdir=$ac_srcdir;;
30330 *)
30331   case $ac_srcdir in
30332   .) ac_abs_srcdir=$ac_abs_builddir;;
30333   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30334   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30335   esac;;
30336 esac
30337 case $ac_abs_builddir in
30338 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30339 *)
30340   case $ac_top_srcdir in
30341   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30342   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30343   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30344   esac;;
30345 esac
30346
30347
30348   case $srcdir in
30349   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30350       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30351   esac
30352
30353   # Try a symlink, then a hard link, then a copy.
30354   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30355     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30356     cp -p $srcdir/$ac_source $ac_dest ||
30357     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30358 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30359    { (exit 1); exit 1; }; }
30360 done
30361 _ACEOF
30362 cat >>$CONFIG_STATUS <<\_ACEOF
30363
30364 #
30365 # CONFIG_COMMANDS section.
30366 #
30367 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30368   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30369   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30370   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30371 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30372          X"$ac_dest" : 'X\(//\)[^/]' \| \
30373          X"$ac_dest" : 'X\(//\)$' \| \
30374          X"$ac_dest" : 'X\(/\)' \| \
30375          .     : '\(.\)' 2>/dev/null ||
30376 echo X"$ac_dest" |
30377     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30378           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30379           /^X\(\/\/\)$/{ s//\1/; q; }
30380           /^X\(\/\).*/{ s//\1/; q; }
30381           s/.*/./; q'`
30382   { if $as_mkdir_p; then
30383     mkdir -p "$ac_dir"
30384   else
30385     as_dir="$ac_dir"
30386     as_dirs=
30387     while test ! -d "$as_dir"; do
30388       as_dirs="$as_dir $as_dirs"
30389       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30390 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30391          X"$as_dir" : 'X\(//\)[^/]' \| \
30392          X"$as_dir" : 'X\(//\)$' \| \
30393          X"$as_dir" : 'X\(/\)' \| \
30394          .     : '\(.\)' 2>/dev/null ||
30395 echo X"$as_dir" |
30396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30398           /^X\(\/\/\)$/{ s//\1/; q; }
30399           /^X\(\/\).*/{ s//\1/; q; }
30400           s/.*/./; q'`
30401     done
30402     test ! -n "$as_dirs" || mkdir $as_dirs
30403   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30404 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30405    { (exit 1); exit 1; }; }; }
30406
30407   ac_builddir=.
30408
30409 if test "$ac_dir" != .; then
30410   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30411   # A "../" for each directory in $ac_dir_suffix.
30412   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30413 else
30414   ac_dir_suffix= ac_top_builddir=
30415 fi
30416
30417 case $srcdir in
30418   .)  # No --srcdir option.  We are building in place.
30419     ac_srcdir=.
30420     if test -z "$ac_top_builddir"; then
30421        ac_top_srcdir=.
30422     else
30423        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30424     fi ;;
30425   [\\/]* | ?:[\\/]* )  # Absolute path.
30426     ac_srcdir=$srcdir$ac_dir_suffix;
30427     ac_top_srcdir=$srcdir ;;
30428   *) # Relative path.
30429     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30430     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30431 esac
30432
30433 # Do not use `cd foo && pwd` to compute absolute paths, because
30434 # the directories may not exist.
30435 case `pwd` in
30436 .) ac_abs_builddir="$ac_dir";;
30437 *)
30438   case "$ac_dir" in
30439   .) ac_abs_builddir=`pwd`;;
30440   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30441   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30442   esac;;
30443 esac
30444 case $ac_abs_builddir in
30445 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30446 *)
30447   case ${ac_top_builddir}. in
30448   .) ac_abs_top_builddir=$ac_abs_builddir;;
30449   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30450   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30451   esac;;
30452 esac
30453 case $ac_abs_builddir in
30454 .) ac_abs_srcdir=$ac_srcdir;;
30455 *)
30456   case $ac_srcdir in
30457   .) ac_abs_srcdir=$ac_abs_builddir;;
30458   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30459   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30460   esac;;
30461 esac
30462 case $ac_abs_builddir in
30463 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30464 *)
30465   case $ac_top_srcdir in
30466   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30467   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30468   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30469   esac;;
30470 esac
30471
30472
30473   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30474 echo "$as_me: executing $ac_dest commands" >&6;}
30475   case $ac_dest in
30476     default-1 )
30477 # Only add multilib support code if we just rebuilt the top-level
30478 # Makefile.
30479 case " $CONFIG_FILES " in
30480  *" Makefile "*)
30481    ac_file=Makefile . ${multi_basedir}/config-ml.in
30482    ;;
30483 esac ;;
30484     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30485   # Strip MF so we end up with the name of the file.
30486   mf=`echo "$mf" | sed -e 's/:.*$//'`
30487   # Check whether this is an Automake generated Makefile or not.
30488   # We used to match only the files named `Makefile.in', but
30489   # some people rename them; so instead we look at the file content.
30490   # Grep'ing the first line is not enough: some people post-process
30491   # each Makefile.in and add a new line on top of each file to say so.
30492   # So let's grep whole file.
30493   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30494     dirpart=`(dirname "$mf") 2>/dev/null ||
30495 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30496          X"$mf" : 'X\(//\)[^/]' \| \
30497          X"$mf" : 'X\(//\)$' \| \
30498          X"$mf" : 'X\(/\)' \| \
30499          .     : '\(.\)' 2>/dev/null ||
30500 echo X"$mf" |
30501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30502           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30503           /^X\(\/\/\)$/{ s//\1/; q; }
30504           /^X\(\/\).*/{ s//\1/; q; }
30505           s/.*/./; q'`
30506   else
30507     continue
30508   fi
30509   # Extract the definition of DEPDIR, am__include, and am__quote
30510   # from the Makefile without running `make'.
30511   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30512   test -z "$DEPDIR" && continue
30513   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30514   test -z "am__include" && continue
30515   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30516   # When using ansi2knr, U may be empty or an underscore; expand it
30517   U=`sed -n 's/^U = //p' < "$mf"`
30518   # Find all dependency output files, they are included files with
30519   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30520   # simplest approach to changing $(DEPDIR) to its actual value in the
30521   # expansion.
30522   for file in `sed -n "
30523     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30524        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30525     # Make sure the directory exists.
30526     test -f "$dirpart/$file" && continue
30527     fdir=`(dirname "$file") 2>/dev/null ||
30528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30529          X"$file" : 'X\(//\)[^/]' \| \
30530          X"$file" : 'X\(//\)$' \| \
30531          X"$file" : 'X\(/\)' \| \
30532          .     : '\(.\)' 2>/dev/null ||
30533 echo X"$file" |
30534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30535           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30536           /^X\(\/\/\)$/{ s//\1/; q; }
30537           /^X\(\/\).*/{ s//\1/; q; }
30538           s/.*/./; q'`
30539     { if $as_mkdir_p; then
30540     mkdir -p $dirpart/$fdir
30541   else
30542     as_dir=$dirpart/$fdir
30543     as_dirs=
30544     while test ! -d "$as_dir"; do
30545       as_dirs="$as_dir $as_dirs"
30546       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30548          X"$as_dir" : 'X\(//\)[^/]' \| \
30549          X"$as_dir" : 'X\(//\)$' \| \
30550          X"$as_dir" : 'X\(/\)' \| \
30551          .     : '\(.\)' 2>/dev/null ||
30552 echo X"$as_dir" |
30553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30554           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30555           /^X\(\/\/\)$/{ s//\1/; q; }
30556           /^X\(\/\).*/{ s//\1/; q; }
30557           s/.*/./; q'`
30558     done
30559     test ! -n "$as_dirs" || mkdir $as_dirs
30560   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30561 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30562    { (exit 1); exit 1; }; }; }
30563
30564     # echo "creating $dirpart/$file"
30565     echo '# dummy' > "$dirpart/$file"
30566   done
30567 done
30568  ;;
30569     libtool )
30570
30571     # See if we are running on zsh, and set the options which allow our
30572     # commands through without removal of \ escapes.
30573     if test -n "${ZSH_VERSION+set}" ; then
30574       setopt NO_GLOB_SUBST
30575     fi
30576
30577     cfgfile="${ofile}T"
30578     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30579     $RM "$cfgfile"
30580
30581     cat <<_LT_EOF >> "$cfgfile"
30582 #! $SHELL
30583
30584 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30585 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30587 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30588 #
30589 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30590 # 2006, 2007 Free Software Foundation, Inc.
30591 #
30592 # This file is part of GNU Libtool:
30593 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30594 #
30595 # This program is free software; you can redistribute it and/or modify
30596 # it under the terms of the GNU General Public License as published by
30597 # the Free Software Foundation; either version 2 of the License, or
30598 # (at your option) any later version.
30599 #
30600 # This program is distributed in the hope that it will be useful, but
30601 # WITHOUT ANY WARRANTY; without even the implied warranty of
30602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
30603 # General Public License for more details.
30604 #
30605 # You should have received a copy of the GNU General Public License
30606 # along with this program; if not, a copy can be downloaded from
30607 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30608 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30609 # MA 02110-1301, USA.
30610 #
30611 # As a special exception to the GNU General Public License, if you
30612 # distribute this file as part of a program that contains a
30613 # configuration script generated by Autoconf, you may include it under
30614 # the same distribution terms that you use for the rest of that program.
30615
30616
30617 # The names of the tagged configurations supported by this script.
30618 available_tags="CXX GCJ "
30619
30620 # ### BEGIN LIBTOOL CONFIG
30621
30622 # Which release of libtool.m4 was used?
30623 macro_version=$macro_version
30624 macro_revision=$macro_revision
30625
30626 # Whether or not to build shared libraries.
30627 build_libtool_libs=$enable_shared
30628
30629 # Whether or not to build static libraries.
30630 build_old_libs=$enable_static
30631
30632 # What type of objects to build.
30633 pic_mode=$pic_mode
30634
30635 # Whether or not to optimize for fast installation.
30636 fast_install=$enable_fast_install
30637
30638 # The host system.
30639 host_alias=$host_alias
30640 host=$host
30641 host_os=$host_os
30642
30643 # The build system.
30644 build_alias=$build_alias
30645 build=$build
30646 build_os=$build_os
30647
30648 # A sed program that does not truncate output.
30649 SED=$lt_SED
30650
30651 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30652 Xsed="\$SED -e 1s/^X//"
30653
30654 # A grep program that handles long lines.
30655 GREP=$lt_GREP
30656
30657 # An ERE matcher.
30658 EGREP=$lt_EGREP
30659
30660 # A literal string matcher.
30661 FGREP=$lt_FGREP
30662
30663 # A BSD- or MS-compatible name lister.
30664 NM=$lt_NM
30665
30666 # Whether we need soft or hard links.
30667 LN_S=$lt_LN_S
30668
30669 # What is the maximum length of a command?
30670 max_cmd_len=$max_cmd_len
30671
30672 # Object file suffix (normally "o").
30673 objext=$ac_objext
30674
30675 # Executable file suffix (normally "").
30676 exeext=$exeext
30677
30678 # whether the shell understands "unset".
30679 lt_unset=$lt_unset
30680
30681 # turn spaces into newlines.
30682 SP2NL=$lt_lt_SP2NL
30683
30684 # turn newlines into spaces.
30685 NL2SP=$lt_lt_NL2SP
30686
30687 # How to create reloadable object files.
30688 reload_flag=$lt_reload_flag
30689 reload_cmds=$lt_reload_cmds
30690
30691 # Method to check whether dependent libraries are shared objects.
30692 deplibs_check_method=$lt_deplibs_check_method
30693
30694 # Command to use when deplibs_check_method == "file_magic".
30695 file_magic_cmd=$lt_file_magic_cmd
30696
30697 # The archiver.
30698 AR=$lt_AR
30699 AR_FLAGS=$lt_AR_FLAGS
30700
30701 # A symbol stripping program.
30702 STRIP=$lt_STRIP
30703
30704 # Commands used to install an old-style archive.
30705 RANLIB=$lt_RANLIB
30706 old_postinstall_cmds=$lt_old_postinstall_cmds
30707 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30708
30709 # A C compiler.
30710 LTCC=$lt_CC
30711
30712 # LTCC compiler flags.
30713 LTCFLAGS=$lt_CFLAGS
30714
30715 # Take the output of nm and produce a listing of raw symbols and C names.
30716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30717
30718 # Transform the output of nm in a proper C declaration.
30719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30720
30721 # Transform the output of nm in a C name address pair.
30722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30723
30724 # The name of the directory that contains temporary libtool files.
30725 objdir=$objdir
30726
30727 # Shell to use when invoking shell scripts.
30728 SHELL=$lt_SHELL
30729
30730 # An echo program that does not interpret backslashes.
30731 ECHO=$lt_ECHO
30732
30733 # Used to examine libraries when file_magic_cmd begins with "file".
30734 MAGIC_CMD=$MAGIC_CMD
30735
30736 # Must we lock files when doing compilation?
30737 need_locks=$lt_need_locks
30738
30739 # Old archive suffix (normally "a").
30740 libext=$libext
30741
30742 # Shared library suffix (normally ".so").
30743 shrext_cmds=$lt_shrext_cmds
30744
30745 # The commands to extract the exported symbol list from a shared archive.
30746 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30747
30748 # Variables whose values should be saved in libtool wrapper scripts and
30749 # restored at link time.
30750 variables_saved_for_relink=$lt_variables_saved_for_relink
30751
30752 # Do we need the "lib" prefix for modules?
30753 need_lib_prefix=$need_lib_prefix
30754
30755 # Do we need a version for libraries?
30756 need_version=$need_version
30757
30758 # Library versioning type.
30759 version_type=$version_type
30760
30761 # Shared library runtime path variable.
30762 runpath_var=$runpath_var
30763
30764 # Shared library path variable.
30765 shlibpath_var=$shlibpath_var
30766
30767 # Is shlibpath searched before the hard-coded library search path?
30768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30769
30770 # Format of library name prefix.
30771 libname_spec=$lt_libname_spec
30772
30773 # List of archive names.  First name is the real one, the rest are links.
30774 # The last name is the one that the linker finds with -lNAME
30775 library_names_spec=$lt_library_names_spec
30776
30777 # The coded name of the library, if different from the real name.
30778 soname_spec=$lt_soname_spec
30779
30780 # Command to use after installation of a shared archive.
30781 postinstall_cmds=$lt_postinstall_cmds
30782
30783 # Command to use after uninstallation of a shared archive.
30784 postuninstall_cmds=$lt_postuninstall_cmds
30785
30786 # Commands used to finish a libtool library installation in a directory.
30787 finish_cmds=$lt_finish_cmds
30788
30789 # As "finish_cmds", except a single script fragment to be evaled but
30790 # not shown.
30791 finish_eval=$lt_finish_eval
30792
30793 # Whether we should hardcode library paths into libraries.
30794 hardcode_into_libs=$hardcode_into_libs
30795
30796 # Compile-time system search path for libraries.
30797 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30798
30799 # Run-time system search path for libraries.
30800 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30801
30802 # Whether dlopen is supported.
30803 dlopen_support=$enable_dlopen
30804
30805 # Whether dlopen of programs is supported.
30806 dlopen_self=$enable_dlopen_self
30807
30808 # Whether dlopen of statically linked programs is supported.
30809 dlopen_self_static=$enable_dlopen_self_static
30810
30811 # Commands to strip libraries.
30812 old_striplib=$lt_old_striplib
30813 striplib=$lt_striplib
30814
30815
30816 # The linker used to build libraries.
30817 LD=$lt_LD
30818
30819 # Commands used to build an old-style archive.
30820 old_archive_cmds=$lt_old_archive_cmds
30821
30822 # A language specific compiler.
30823 CC=$lt_compiler
30824
30825 # Is the compiler the GNU compiler?
30826 with_gcc=$GCC
30827
30828 # Compiler flag to turn off builtin functions.
30829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30830
30831 # How to pass a linker flag through the compiler.
30832 wl=$lt_lt_prog_compiler_wl
30833
30834 # Additional compiler flags for building library objects.
30835 pic_flag=$lt_lt_prog_compiler_pic
30836
30837 # Compiler flag to prevent dynamic linking.
30838 link_static_flag=$lt_lt_prog_compiler_static
30839
30840 # Does compiler simultaneously support -c and -o options?
30841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30842
30843 # Whether or not to add -lc for building shared libraries.
30844 build_libtool_need_lc=$archive_cmds_need_lc
30845
30846 # Whether or not to disallow shared libs when runtime libs are static.
30847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30848
30849 # Compiler flag to allow reflexive dlopens.
30850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30851
30852 # Compiler flag to generate shared objects directly from archives.
30853 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30854
30855 # Whether the compiler copes with passing no objects directly.
30856 compiler_needs_object=$lt_compiler_needs_object
30857
30858 # Create an old-style archive from a shared archive.
30859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30860
30861 # Create a temporary old-style archive to link instead of a shared archive.
30862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30863
30864 # Commands used to build a shared archive.
30865 archive_cmds=$lt_archive_cmds
30866 archive_expsym_cmds=$lt_archive_expsym_cmds
30867
30868 # Commands used to build a loadable module if different from building
30869 # a shared archive.
30870 module_cmds=$lt_module_cmds
30871 module_expsym_cmds=$lt_module_expsym_cmds
30872
30873 # Whether we are building with GNU ld or not.
30874 with_gnu_ld=$lt_with_gnu_ld
30875
30876 # Flag that allows shared libraries with undefined symbols to be built.
30877 allow_undefined_flag=$lt_allow_undefined_flag
30878
30879 # Flag that enforces no undefined symbols.
30880 no_undefined_flag=$lt_no_undefined_flag
30881
30882 # Flag to hardcode \$libdir into a binary during linking.
30883 # This must work even if \$libdir does not exist
30884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30885
30886 # If ld is used when linking, flag to hardcode \$libdir into a binary
30887 # during linking.  This must work even if \$libdir does not exist.
30888 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30889
30890 # Whether we need a single "-rpath" flag with a separated argument.
30891 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30892
30893 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30894 # DIR into the resulting binary.
30895 hardcode_direct=$hardcode_direct
30896
30897 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30898 # DIR into the resulting binary and the resulting library dependency is
30899 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30900 # library is relocated.
30901 hardcode_direct_absolute=$hardcode_direct_absolute
30902
30903 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30904 # into the resulting binary.
30905 hardcode_minus_L=$hardcode_minus_L
30906
30907 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30908 # into the resulting binary.
30909 hardcode_shlibpath_var=$hardcode_shlibpath_var
30910
30911 # Set to "yes" if building a shared library automatically hardcodes DIR
30912 # into the library and all subsequent libraries and executables linked
30913 # against it.
30914 hardcode_automatic=$hardcode_automatic
30915
30916 # Set to yes if linker adds runtime paths of dependent libraries
30917 # to runtime path list.
30918 inherit_rpath=$inherit_rpath
30919
30920 # Whether libtool must link a program against all its dependency libraries.
30921 link_all_deplibs=$link_all_deplibs
30922
30923 # Fix the shell variable \$srcfile for the compiler.
30924 fix_srcfile_path=$lt_fix_srcfile_path
30925
30926 # Set to "yes" if exported symbols are required.
30927 always_export_symbols=$always_export_symbols
30928
30929 # The commands to list exported symbols.
30930 export_symbols_cmds=$lt_export_symbols_cmds
30931
30932 # Symbols that should not be listed in the preloaded symbols.
30933 exclude_expsyms=$lt_exclude_expsyms
30934
30935 # Symbols that must always be exported.
30936 include_expsyms=$lt_include_expsyms
30937
30938 # Commands necessary for linking programs (against libraries) with templates.
30939 prelink_cmds=$lt_prelink_cmds
30940
30941 # Specify filename containing input files.
30942 file_list_spec=$lt_file_list_spec
30943
30944 # How to hardcode a shared library path into an executable.
30945 hardcode_action=$hardcode_action
30946
30947 # Dependencies to place before and after the objects being linked to
30948 # create a shared library.
30949 predep_objects=$lt_predep_objects
30950 postdep_objects=$lt_postdep_objects
30951 predeps=$lt_predeps
30952 postdeps=$lt_postdeps
30953
30954 # The library search path used internally by the compiler when linking
30955 # a shared library.
30956 compiler_lib_search_path=$lt_compiler_lib_search_path
30957
30958 # ### END LIBTOOL CONFIG
30959
30960 _LT_EOF
30961
30962   case $host_os in
30963   aix3*)
30964     cat <<\_LT_EOF >> "$cfgfile"
30965 # AIX sometimes has problems with the GCC collect2 program.  For some
30966 # reason, if we set the COLLECT_NAMES environment variable, the problems
30967 # vanish in a puff of smoke.
30968 if test "X${COLLECT_NAMES+set}" != Xset; then
30969   COLLECT_NAMES=
30970   export COLLECT_NAMES
30971 fi
30972 _LT_EOF
30973     ;;
30974   esac
30975
30976
30977 ltmain="$ac_aux_dir/ltmain.sh"
30978
30979
30980   # We use sed instead of cat because bash on DJGPP gets confused if
30981   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
30982   # text mode, it properly converts lines to CR/LF.  This bash problem
30983   # is reportedly fixed, but why not run on old versions too?
30984   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30985     || (rm -f "$cfgfile"; exit 1)
30986
30987   case $xsi_shell in
30988   yes)
30989     cat << \_LT_EOF >> "$cfgfile"
30990 # func_dirname file append nondir_replacement
30991 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
30992 # otherwise set result to NONDIR_REPLACEMENT.
30993 func_dirname ()
30994 {
30995   case ${1} in
30996     */*) func_dirname_result="${1%/*}${2}" ;;
30997     *  ) func_dirname_result="${3}" ;;
30998   esac
30999 }
31000
31001 # func_basename file
31002 func_basename ()
31003 {
31004   func_basename_result="${1##*/}"
31005 }
31006
31007 # func_stripname prefix suffix name
31008 # strip PREFIX and SUFFIX off of NAME.
31009 # PREFIX and SUFFIX must not contain globbing or regex special
31010 # characters, hashes, percent signs, but SUFFIX may contain a leading
31011 # dot (in which case that matches only a dot).
31012 func_stripname ()
31013 {
31014   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31015   # positional parameters, so assign one to ordinary parameter first.
31016   func_stripname_result=${3}
31017   func_stripname_result=${func_stripname_result#"${1}"}
31018   func_stripname_result=${func_stripname_result%"${2}"}
31019 }
31020
31021 # func_opt_split
31022 func_opt_split ()
31023 {
31024   func_opt_split_opt=${1%%=*}
31025   func_opt_split_arg=${1#*=}
31026 }
31027
31028 # func_lo2o object
31029 func_lo2o ()
31030 {
31031   case ${1} in
31032     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31033     *)    func_lo2o_result=${1} ;;
31034   esac
31035 }
31036 _LT_EOF
31037     ;;
31038   *) # Bourne compatible functions.
31039     cat << \_LT_EOF >> "$cfgfile"
31040 # func_dirname file append nondir_replacement
31041 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31042 # otherwise set result to NONDIR_REPLACEMENT.
31043 func_dirname ()
31044 {
31045   # Extract subdirectory from the argument.
31046   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31047   if test "X$func_dirname_result" = "X${1}"; then
31048     func_dirname_result="${3}"
31049   else
31050     func_dirname_result="$func_dirname_result${2}"
31051   fi
31052 }
31053
31054 # func_basename file
31055 func_basename ()
31056 {
31057   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31058 }
31059
31060 # func_stripname prefix suffix name
31061 # strip PREFIX and SUFFIX off of NAME.
31062 # PREFIX and SUFFIX must not contain globbing or regex special
31063 # characters, hashes, percent signs, but SUFFIX may contain a leading
31064 # dot (in which case that matches only a dot).
31065 # func_strip_suffix prefix name
31066 func_stripname ()
31067 {
31068   case ${2} in
31069     .*) func_stripname_result=`$ECHO "X${3}" \
31070            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31071     *)  func_stripname_result=`$ECHO "X${3}" \
31072            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31073   esac
31074 }
31075
31076 # sed scripts:
31077 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31078 my_sed_long_arg='1s/^-[^=]*=//'
31079
31080 # func_opt_split
31081 func_opt_split ()
31082 {
31083   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31084   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31085 }
31086
31087 # func_lo2o object
31088 func_lo2o ()
31089 {
31090   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31091 }
31092 _LT_EOF
31093 esac
31094
31095 case $lt_shell_append in
31096   yes)
31097     cat << \_LT_EOF >> "$cfgfile"
31098
31099 # func_append var value
31100 # Append VALUE to the end of shell variable VAR.
31101 func_append ()
31102 {
31103   eval "$1+=\$2"
31104 }
31105 _LT_EOF
31106     ;;
31107   *)
31108     cat << \_LT_EOF >> "$cfgfile"
31109
31110 # func_append var value
31111 # Append VALUE to the end of shell variable VAR.
31112 func_append ()
31113 {
31114   eval "$1=\$$1\$2"
31115 }
31116 _LT_EOF
31117     ;;
31118   esac
31119
31120
31121   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31122     || (rm -f "$cfgfile"; exit 1)
31123
31124   mv -f "$cfgfile" "$ofile" ||
31125     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31126   chmod +x "$ofile"
31127
31128
31129     cat <<_LT_EOF >> "$ofile"
31130
31131 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31132
31133 # The linker used to build libraries.
31134 LD=$lt_LD_CXX
31135
31136 # Commands used to build an old-style archive.
31137 old_archive_cmds=$lt_old_archive_cmds_CXX
31138
31139 # A language specific compiler.
31140 CC=$lt_compiler_CXX
31141
31142 # Is the compiler the GNU compiler?
31143 with_gcc=$GCC_CXX
31144
31145 # Compiler flag to turn off builtin functions.
31146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31147
31148 # How to pass a linker flag through the compiler.
31149 wl=$lt_lt_prog_compiler_wl_CXX
31150
31151 # Additional compiler flags for building library objects.
31152 pic_flag=$lt_lt_prog_compiler_pic_CXX
31153
31154 # Compiler flag to prevent dynamic linking.
31155 link_static_flag=$lt_lt_prog_compiler_static_CXX
31156
31157 # Does compiler simultaneously support -c and -o options?
31158 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31159
31160 # Whether or not to add -lc for building shared libraries.
31161 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31162
31163 # Whether or not to disallow shared libs when runtime libs are static.
31164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31165
31166 # Compiler flag to allow reflexive dlopens.
31167 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31168
31169 # Compiler flag to generate shared objects directly from archives.
31170 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31171
31172 # Whether the compiler copes with passing no objects directly.
31173 compiler_needs_object=$lt_compiler_needs_object_CXX
31174
31175 # Create an old-style archive from a shared archive.
31176 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31177
31178 # Create a temporary old-style archive to link instead of a shared archive.
31179 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31180
31181 # Commands used to build a shared archive.
31182 archive_cmds=$lt_archive_cmds_CXX
31183 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31184
31185 # Commands used to build a loadable module if different from building
31186 # a shared archive.
31187 module_cmds=$lt_module_cmds_CXX
31188 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31189
31190 # Whether we are building with GNU ld or not.
31191 with_gnu_ld=$lt_with_gnu_ld_CXX
31192
31193 # Flag that allows shared libraries with undefined symbols to be built.
31194 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31195
31196 # Flag that enforces no undefined symbols.
31197 no_undefined_flag=$lt_no_undefined_flag_CXX
31198
31199 # Flag to hardcode \$libdir into a binary during linking.
31200 # This must work even if \$libdir does not exist
31201 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31202
31203 # If ld is used when linking, flag to hardcode \$libdir into a binary
31204 # during linking.  This must work even if \$libdir does not exist.
31205 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31206
31207 # Whether we need a single "-rpath" flag with a separated argument.
31208 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31209
31210 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31211 # DIR into the resulting binary.
31212 hardcode_direct=$hardcode_direct_CXX
31213
31214 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31215 # DIR into the resulting binary and the resulting library dependency is
31216 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31217 # library is relocated.
31218 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31219
31220 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31221 # into the resulting binary.
31222 hardcode_minus_L=$hardcode_minus_L_CXX
31223
31224 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31225 # into the resulting binary.
31226 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31227
31228 # Set to "yes" if building a shared library automatically hardcodes DIR
31229 # into the library and all subsequent libraries and executables linked
31230 # against it.
31231 hardcode_automatic=$hardcode_automatic_CXX
31232
31233 # Set to yes if linker adds runtime paths of dependent libraries
31234 # to runtime path list.
31235 inherit_rpath=$inherit_rpath_CXX
31236
31237 # Whether libtool must link a program against all its dependency libraries.
31238 link_all_deplibs=$link_all_deplibs_CXX
31239
31240 # Fix the shell variable \$srcfile for the compiler.
31241 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31242
31243 # Set to "yes" if exported symbols are required.
31244 always_export_symbols=$always_export_symbols_CXX
31245
31246 # The commands to list exported symbols.
31247 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31248
31249 # Symbols that should not be listed in the preloaded symbols.
31250 exclude_expsyms=$lt_exclude_expsyms_CXX
31251
31252 # Symbols that must always be exported.
31253 include_expsyms=$lt_include_expsyms_CXX
31254
31255 # Commands necessary for linking programs (against libraries) with templates.
31256 prelink_cmds=$lt_prelink_cmds_CXX
31257
31258 # Specify filename containing input files.
31259 file_list_spec=$lt_file_list_spec_CXX
31260
31261 # How to hardcode a shared library path into an executable.
31262 hardcode_action=$hardcode_action_CXX
31263
31264 # Dependencies to place before and after the objects being linked to
31265 # create a shared library.
31266 predep_objects=$lt_predep_objects_CXX
31267 postdep_objects=$lt_postdep_objects_CXX
31268 predeps=$lt_predeps_CXX
31269 postdeps=$lt_postdeps_CXX
31270
31271 # The library search path used internally by the compiler when linking
31272 # a shared library.
31273 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31274
31275 # ### END LIBTOOL TAG CONFIG: CXX
31276 _LT_EOF
31277
31278
31279     cat <<_LT_EOF >> "$ofile"
31280
31281 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31282
31283 # The linker used to build libraries.
31284 LD=$lt_LD_GCJ
31285
31286 # Commands used to build an old-style archive.
31287 old_archive_cmds=$lt_old_archive_cmds_GCJ
31288
31289 # A language specific compiler.
31290 CC=$lt_compiler_GCJ
31291
31292 # Is the compiler the GNU compiler?
31293 with_gcc=$GCC_GCJ
31294
31295 # Compiler flag to turn off builtin functions.
31296 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31297
31298 # How to pass a linker flag through the compiler.
31299 wl=$lt_lt_prog_compiler_wl_GCJ
31300
31301 # Additional compiler flags for building library objects.
31302 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31303
31304 # Compiler flag to prevent dynamic linking.
31305 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31306
31307 # Does compiler simultaneously support -c and -o options?
31308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31309
31310 # Whether or not to add -lc for building shared libraries.
31311 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31312
31313 # Whether or not to disallow shared libs when runtime libs are static.
31314 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31315
31316 # Compiler flag to allow reflexive dlopens.
31317 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31318
31319 # Compiler flag to generate shared objects directly from archives.
31320 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31321
31322 # Whether the compiler copes with passing no objects directly.
31323 compiler_needs_object=$lt_compiler_needs_object_GCJ
31324
31325 # Create an old-style archive from a shared archive.
31326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31327
31328 # Create a temporary old-style archive to link instead of a shared archive.
31329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31330
31331 # Commands used to build a shared archive.
31332 archive_cmds=$lt_archive_cmds_GCJ
31333 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31334
31335 # Commands used to build a loadable module if different from building
31336 # a shared archive.
31337 module_cmds=$lt_module_cmds_GCJ
31338 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31339
31340 # Whether we are building with GNU ld or not.
31341 with_gnu_ld=$lt_with_gnu_ld_GCJ
31342
31343 # Flag that allows shared libraries with undefined symbols to be built.
31344 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31345
31346 # Flag that enforces no undefined symbols.
31347 no_undefined_flag=$lt_no_undefined_flag_GCJ
31348
31349 # Flag to hardcode \$libdir into a binary during linking.
31350 # This must work even if \$libdir does not exist
31351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31352
31353 # If ld is used when linking, flag to hardcode \$libdir into a binary
31354 # during linking.  This must work even if \$libdir does not exist.
31355 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31356
31357 # Whether we need a single "-rpath" flag with a separated argument.
31358 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31359
31360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31361 # DIR into the resulting binary.
31362 hardcode_direct=$hardcode_direct_GCJ
31363
31364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31365 # DIR into the resulting binary and the resulting library dependency is
31366 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31367 # library is relocated.
31368 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31369
31370 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31371 # into the resulting binary.
31372 hardcode_minus_L=$hardcode_minus_L_GCJ
31373
31374 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31375 # into the resulting binary.
31376 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31377
31378 # Set to "yes" if building a shared library automatically hardcodes DIR
31379 # into the library and all subsequent libraries and executables linked
31380 # against it.
31381 hardcode_automatic=$hardcode_automatic_GCJ
31382
31383 # Set to yes if linker adds runtime paths of dependent libraries
31384 # to runtime path list.
31385 inherit_rpath=$inherit_rpath_GCJ
31386
31387 # Whether libtool must link a program against all its dependency libraries.
31388 link_all_deplibs=$link_all_deplibs_GCJ
31389
31390 # Fix the shell variable \$srcfile for the compiler.
31391 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31392
31393 # Set to "yes" if exported symbols are required.
31394 always_export_symbols=$always_export_symbols_GCJ
31395
31396 # The commands to list exported symbols.
31397 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31398
31399 # Symbols that should not be listed in the preloaded symbols.
31400 exclude_expsyms=$lt_exclude_expsyms_GCJ
31401
31402 # Symbols that must always be exported.
31403 include_expsyms=$lt_include_expsyms_GCJ
31404
31405 # Commands necessary for linking programs (against libraries) with templates.
31406 prelink_cmds=$lt_prelink_cmds_GCJ
31407
31408 # Specify filename containing input files.
31409 file_list_spec=$lt_file_list_spec_GCJ
31410
31411 # How to hardcode a shared library path into an executable.
31412 hardcode_action=$hardcode_action_GCJ
31413
31414 # Dependencies to place before and after the objects being linked to
31415 # create a shared library.
31416 predep_objects=$lt_predep_objects_GCJ
31417 postdep_objects=$lt_postdep_objects_GCJ
31418 predeps=$lt_predeps_GCJ
31419 postdeps=$lt_postdeps_GCJ
31420
31421 # The library search path used internally by the compiler when linking
31422 # a shared library.
31423 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31424
31425 # ### END LIBTOOL TAG CONFIG: GCJ
31426 _LT_EOF
31427
31428  ;;
31429   esac
31430 done
31431 _ACEOF
31432
31433 cat >>$CONFIG_STATUS <<\_ACEOF
31434
31435 { (exit 0); exit 0; }
31436 _ACEOF
31437 chmod +x $CONFIG_STATUS
31438 ac_clean_files=$ac_clean_files_save
31439
31440
31441 # configure is writing to config.log, and then calls config.status.
31442 # config.status does its own redirection, appending to config.log.
31443 # Unfortunately, on DOS this fails, as config.log is still kept open
31444 # by configure, so config.status won't be able to write to it; its
31445 # output is simply discarded.  So we exec the FD to /dev/null,
31446 # effectively closing config.log, so it can be properly (re)opened and
31447 # appended to by config.status.  When coming back to configure, we
31448 # need to make the FD available again.
31449 if test "$no_create" != yes; then
31450   ac_cs_success=:
31451   ac_config_status_args=
31452   test "$silent" = yes &&
31453     ac_config_status_args="$ac_config_status_args --quiet"
31454   exec 5>/dev/null
31455   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31456   exec 5>>config.log
31457   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31458   # would make configure fail if this is the last instruction.
31459   $ac_cs_success || { (exit 1); exit 1; }
31460 fi
31461
31462 #
31463 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31464 #
31465 if test "$no_recursion" != yes; then
31466
31467   # Remove --cache-file and --srcdir arguments so they do not pile up.
31468   ac_sub_configure_args=
31469   ac_prev=
31470   eval "set x $ac_configure_args"
31471   shift
31472   for ac_arg
31473   do
31474     if test -n "$ac_prev"; then
31475       ac_prev=
31476       continue
31477     fi
31478     case $ac_arg in
31479     -cache-file | --cache-file | --cache-fil | --cache-fi \
31480     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31481       ac_prev=cache_file ;;
31482     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31483     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31484     | --c=*)
31485       ;;
31486     --config-cache | -C)
31487       ;;
31488     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31489       ac_prev=srcdir ;;
31490     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31491       ;;
31492     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31493       ac_prev=prefix ;;
31494     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31495       ;;
31496     *)
31497       case $ac_arg in
31498       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31499       esac
31500       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31501     esac
31502   done
31503
31504   # Always prepend --prefix to ensure using the same prefix
31505   # in subdir configurations.
31506   ac_arg="--prefix=$prefix"
31507   case $ac_arg in
31508   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31509   esac
31510   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31511
31512   ac_popdir=`pwd`
31513   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31514
31515     # Do not complain, so a configure script can configure whichever
31516     # parts of a large source tree are present.
31517     test -d "$srcdir/$ac_dir" || continue
31518
31519     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31520 echo "$as_me: configuring in $ac_dir" >&6;}
31521     { if $as_mkdir_p; then
31522     mkdir -p "$ac_dir"
31523   else
31524     as_dir="$ac_dir"
31525     as_dirs=
31526     while test ! -d "$as_dir"; do
31527       as_dirs="$as_dir $as_dirs"
31528       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31530          X"$as_dir" : 'X\(//\)[^/]' \| \
31531          X"$as_dir" : 'X\(//\)$' \| \
31532          X"$as_dir" : 'X\(/\)' \| \
31533          .     : '\(.\)' 2>/dev/null ||
31534 echo X"$as_dir" |
31535     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31536           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31537           /^X\(\/\/\)$/{ s//\1/; q; }
31538           /^X\(\/\).*/{ s//\1/; q; }
31539           s/.*/./; q'`
31540     done
31541     test ! -n "$as_dirs" || mkdir $as_dirs
31542   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31543 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31544    { (exit 1); exit 1; }; }; }
31545
31546     ac_builddir=.
31547
31548 if test "$ac_dir" != .; then
31549   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31550   # A "../" for each directory in $ac_dir_suffix.
31551   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31552 else
31553   ac_dir_suffix= ac_top_builddir=
31554 fi
31555
31556 case $srcdir in
31557   .)  # No --srcdir option.  We are building in place.
31558     ac_srcdir=.
31559     if test -z "$ac_top_builddir"; then
31560        ac_top_srcdir=.
31561     else
31562        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31563     fi ;;
31564   [\\/]* | ?:[\\/]* )  # Absolute path.
31565     ac_srcdir=$srcdir$ac_dir_suffix;
31566     ac_top_srcdir=$srcdir ;;
31567   *) # Relative path.
31568     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31569     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31570 esac
31571
31572 # Do not use `cd foo && pwd` to compute absolute paths, because
31573 # the directories may not exist.
31574 case `pwd` in
31575 .) ac_abs_builddir="$ac_dir";;
31576 *)
31577   case "$ac_dir" in
31578   .) ac_abs_builddir=`pwd`;;
31579   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31580   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31581   esac;;
31582 esac
31583 case $ac_abs_builddir in
31584 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31585 *)
31586   case ${ac_top_builddir}. in
31587   .) ac_abs_top_builddir=$ac_abs_builddir;;
31588   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31589   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31590   esac;;
31591 esac
31592 case $ac_abs_builddir in
31593 .) ac_abs_srcdir=$ac_srcdir;;
31594 *)
31595   case $ac_srcdir in
31596   .) ac_abs_srcdir=$ac_abs_builddir;;
31597   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31598   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31599   esac;;
31600 esac
31601 case $ac_abs_builddir in
31602 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31603 *)
31604   case $ac_top_srcdir in
31605   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31606   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31607   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31608   esac;;
31609 esac
31610
31611
31612     cd "$ac_dir"
31613
31614     # Check for guested configure; otherwise get Cygnus style configure.
31615     if test -f "$ac_srcdir/configure.gnu"; then
31616       ac_sub_configure=$ac_srcdir/configure.gnu
31617     elif test -f "$ac_srcdir/configure"; then
31618       ac_sub_configure=$ac_srcdir/configure
31619     elif test -f "$ac_srcdir/configure.in"; then
31620       # This should be Cygnus configure.
31621       ac_sub_configure=$ac_aux_dir/configure
31622     else
31623       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31624 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31625       ac_sub_configure=
31626     fi
31627
31628     # The recursion is here.
31629     if test -n "$ac_sub_configure"; then
31630       # Make the cache file name correct relative to the subdirectory.
31631       case $cache_file in
31632       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31633       *) # Relative path.
31634         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31635       esac
31636
31637       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31638 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31639       # The eval makes quoting arguments work.
31640       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31641            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31642         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31643 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31644    { (exit 1); exit 1; }; }
31645     fi
31646
31647     cd "$ac_popdir"
31648   done
31649 fi
31650