OSDN Git Service

9206e9153ca0e7a95fdafa4b2b9ea7e2ad7bdff7
[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 ANTLR_JAR CREATE_GJDOC_TRUE CREATE_GJDOC_FALSE 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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE BUILD_LIBGCJ_REDUCED_REFLECTION_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 INSTALL_BINARIES_TRUE INSTALL_BINARIES_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 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   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1021                           default=yes
1022   --enable-java-maintainer-mode
1023                           allow rebuilding of .class and .h files
1024   --disable-dependency-tracking  speeds up one-time build
1025   --enable-dependency-tracking   do not reject slow dependency extractors
1026   --enable-maintainer-mode  enable make rules and dependencies not useful
1027                           (and sometimes confusing) to the casual installer
1028   --enable-libgcj-debug   enable runtime debugging code
1029   --enable-java-awt       list of AWT peer implementations to be built
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037   --disable-getenv-properties
1038                           don't set system properties from GCJ_PROPERTIES
1039   --enable-hash-synchronization
1040                           use global hash table for monitor locks
1041   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1042                           libgcj
1043   --enable-reduced-reflection
1044                           enable or disable(default) -freduced-reflection when
1045                           building portions of libgcj
1046   --enable-gc-debug       include full support for pointer backtracing etc.
1047   --enable-interpreter    enable interpreter
1048   --enable-sjlj-exceptions
1049                           force use of builtin_setjmp for exceptions
1050   --disable-java-net      disable java.net
1051   --disable-jvmpi         disable JVMPI support
1052   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1053   --disable-rpath         do not hardcode runtime library paths
1054   --enable-tls            Use thread-local storage [default=yes]
1055   --enable-aot-compile-rpm
1056                           enable installation of aot-compile-rpm [default=no]
1057   --enable-java-home      create a standard JDK-style directory layout in the
1058                           install tree [default=no]
1059
1060 Optional Packages:
1061   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1062   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1063   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1064   --with-target-subdir=SUBDIR
1065                           configure in a subdirectory
1066   --with-cross-host=HOST  configure with a cross compiler from HOST
1067   --with-newlib           configure with newlib
1068   --with-antlr-jar=file   Use ANTLR from the specified jar file
1069   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1070   --with-pic              try to use only PIC/non-PIC objects [default=use
1071                           both]
1072   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1073   --with-ecj-jar=FILE     use preinstalled ecj jar
1074   --with-java-home=DIRECTORY
1075                           value of java.home system property
1076   --with-win32-nlsapi=ansi or unicows or unicode
1077                           native MinGW libgcj Win32 OS API (default is ansi)
1078   --without-libffi        don't use libffi
1079   --with-ecos             enable runtime eCos target support
1080   --with-system-zlib      use installed libz
1081   --with-x                use the X Window System
1082   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1083   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1084   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1085   --with-system-libunwind use installed libunwind
1086   --with-python-dir       the location to install Python modules. This path
1087                           should NOT include the prefix.
1088   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1089   --with-arch-directory   the arch directory under jre/lib (defaults to
1090                           auto-detect)
1091   --with-os-directory     the os directory under include (defaults to
1092                           auto-detect)
1093   --with-origin-name      the JPackage origin name of this package (default is
1094                           gcj${gcc_suffix}
1095   --with-arch-suffix      the arch directory suffix (default is the empty
1096                           string
1097   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1098   --with-jvm-jar-dir      where to install jars (default is
1099                           ${prefix}/lib/jvm-exports)
1100
1101 Some influential environment variables:
1102   CC          C compiler command
1103   CFLAGS      C compiler flags
1104   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1105               nonstandard directory <lib dir>
1106   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107               headers in a nonstandard directory <include dir>
1108   CXX         C++ compiler command
1109   CXXFLAGS    C++ compiler flags
1110   CPP         C preprocessor
1111   CXXCPP      C++ preprocessor
1112
1113 Use these variables to override the choices made by `configure' or to help
1114 it to find libraries and programs with nonstandard names/locations.
1115
1116 _ACEOF
1117 fi
1118
1119 if test "$ac_init_help" = "recursive"; then
1120   # If there are subdirs, report their specific --help.
1121   ac_popdir=`pwd`
1122   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1123     test -d $ac_dir || continue
1124     ac_builddir=.
1125
1126 if test "$ac_dir" != .; then
1127   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1128   # A "../" for each directory in $ac_dir_suffix.
1129   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130 else
1131   ac_dir_suffix= ac_top_builddir=
1132 fi
1133
1134 case $srcdir in
1135   .)  # No --srcdir option.  We are building in place.
1136     ac_srcdir=.
1137     if test -z "$ac_top_builddir"; then
1138        ac_top_srcdir=.
1139     else
1140        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141     fi ;;
1142   [\\/]* | ?:[\\/]* )  # Absolute path.
1143     ac_srcdir=$srcdir$ac_dir_suffix;
1144     ac_top_srcdir=$srcdir ;;
1145   *) # Relative path.
1146     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1147     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 esac
1149
1150 # Do not use `cd foo && pwd` to compute absolute paths, because
1151 # the directories may not exist.
1152 case `pwd` in
1153 .) ac_abs_builddir="$ac_dir";;
1154 *)
1155   case "$ac_dir" in
1156   .) ac_abs_builddir=`pwd`;;
1157   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1158   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159   esac;;
1160 esac
1161 case $ac_abs_builddir in
1162 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *)
1164   case ${ac_top_builddir}. in
1165   .) ac_abs_top_builddir=$ac_abs_builddir;;
1166   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1167   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168   esac;;
1169 esac
1170 case $ac_abs_builddir in
1171 .) ac_abs_srcdir=$ac_srcdir;;
1172 *)
1173   case $ac_srcdir in
1174   .) ac_abs_srcdir=$ac_abs_builddir;;
1175   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1176   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177   esac;;
1178 esac
1179 case $ac_abs_builddir in
1180 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *)
1182   case $ac_top_srcdir in
1183   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1184   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1185   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1186   esac;;
1187 esac
1188
1189     cd $ac_dir
1190     # Check for guested configure; otherwise get Cygnus style configure.
1191     if test -f $ac_srcdir/configure.gnu; then
1192       echo
1193       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1194     elif test -f $ac_srcdir/configure; then
1195       echo
1196       $SHELL $ac_srcdir/configure  --help=recursive
1197     elif test -f $ac_srcdir/configure.ac ||
1198            test -f $ac_srcdir/configure.in; then
1199       echo
1200       $ac_configure --help
1201     else
1202       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1203     fi
1204     cd $ac_popdir
1205   done
1206 fi
1207
1208 test -n "$ac_init_help" && exit 0
1209 if $ac_init_version; then
1210   cat <<\_ACEOF
1211 libjava configure version-unused
1212 generated by GNU Autoconf 2.59
1213
1214 Copyright (C) 2003 Free Software Foundation, Inc.
1215 This configure script is free software; the Free Software Foundation
1216 gives unlimited permission to copy, distribute and modify it.
1217 _ACEOF
1218   exit 0
1219 fi
1220 exec 5>config.log
1221 cat >&5 <<_ACEOF
1222 This file contains any messages produced by compilers while
1223 running configure, to aid debugging if configure makes a mistake.
1224
1225 It was created by libjava $as_me version-unused, which was
1226 generated by GNU Autoconf 2.59.  Invocation command line was
1227
1228   $ $0 $@
1229
1230 _ACEOF
1231 {
1232 cat <<_ASUNAME
1233 ## --------- ##
1234 ## Platform. ##
1235 ## --------- ##
1236
1237 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1238 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1239 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1240 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1241 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1242
1243 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1244 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1245
1246 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1247 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1248 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1249 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1250 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1251 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1252 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1253
1254 _ASUNAME
1255
1256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257 for as_dir in $PATH
1258 do
1259   IFS=$as_save_IFS
1260   test -z "$as_dir" && as_dir=.
1261   echo "PATH: $as_dir"
1262 done
1263
1264 } >&5
1265
1266 cat >&5 <<_ACEOF
1267
1268
1269 ## ----------- ##
1270 ## Core tests. ##
1271 ## ----------- ##
1272
1273 _ACEOF
1274
1275
1276 # Keep a trace of the command line.
1277 # Strip out --no-create and --no-recursion so they do not pile up.
1278 # Strip out --silent because we don't want to record it for future runs.
1279 # Also quote any args containing shell meta-characters.
1280 # Make two passes to allow for proper duplicate-argument suppression.
1281 ac_configure_args=
1282 ac_configure_args0=
1283 ac_configure_args1=
1284 ac_sep=
1285 ac_must_keep_next=false
1286 for ac_pass in 1 2
1287 do
1288   for ac_arg
1289   do
1290     case $ac_arg in
1291     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1292     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293     | -silent | --silent | --silen | --sile | --sil)
1294       continue ;;
1295     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1296       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297     esac
1298     case $ac_pass in
1299     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1300     2)
1301       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1302       if test $ac_must_keep_next = true; then
1303         ac_must_keep_next=false # Got value, back to normal.
1304       else
1305         case $ac_arg in
1306           *=* | --config-cache | -C | -disable-* | --disable-* \
1307           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1308           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1309           | -with-* | --with-* | -without-* | --without-* | --x)
1310             case "$ac_configure_args0 " in
1311               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312             esac
1313             ;;
1314           -* ) ac_must_keep_next=true ;;
1315         esac
1316       fi
1317       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1318       # Get rid of the leading space.
1319       ac_sep=" "
1320       ;;
1321     esac
1322   done
1323 done
1324 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1325 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1326
1327 # When interrupted or exit'd, cleanup temporary files, and complete
1328 # config.log.  We remove comments because anyway the quotes in there
1329 # would cause problems or look ugly.
1330 # WARNING: Be sure not to use single quotes in there, as some shells,
1331 # such as our DU 5.0 friend, will then `close' the trap.
1332 trap 'exit_status=$?
1333   # Save into config.log some information that might help in debugging.
1334   {
1335     echo
1336
1337     cat <<\_ASBOX
1338 ## ---------------- ##
1339 ## Cache variables. ##
1340 ## ---------------- ##
1341 _ASBOX
1342     echo
1343     # The following way of writing the cache mishandles newlines in values,
1344 {
1345   (set) 2>&1 |
1346     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347     *ac_space=\ *)
1348       sed -n \
1349         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1350           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1351       ;;
1352     *)
1353       sed -n \
1354         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1355       ;;
1356     esac;
1357 }
1358     echo
1359
1360     cat <<\_ASBOX
1361 ## ----------------- ##
1362 ## Output variables. ##
1363 ## ----------------- ##
1364 _ASBOX
1365     echo
1366     for ac_var in $ac_subst_vars
1367     do
1368       eval ac_val=$`echo $ac_var`
1369       echo "$ac_var='"'"'$ac_val'"'"'"
1370     done | sort
1371     echo
1372
1373     if test -n "$ac_subst_files"; then
1374       cat <<\_ASBOX
1375 ## ------------- ##
1376 ## Output files. ##
1377 ## ------------- ##
1378 _ASBOX
1379       echo
1380       for ac_var in $ac_subst_files
1381       do
1382         eval ac_val=$`echo $ac_var`
1383         echo "$ac_var='"'"'$ac_val'"'"'"
1384       done | sort
1385       echo
1386     fi
1387
1388     if test -s confdefs.h; then
1389       cat <<\_ASBOX
1390 ## ----------- ##
1391 ## confdefs.h. ##
1392 ## ----------- ##
1393 _ASBOX
1394       echo
1395       sed "/^$/d" confdefs.h | sort
1396       echo
1397     fi
1398     test "$ac_signal" != 0 &&
1399       echo "$as_me: caught signal $ac_signal"
1400     echo "$as_me: exit $exit_status"
1401   } >&5
1402   rm -f core *.core &&
1403   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404     exit $exit_status
1405      ' 0
1406 for ac_signal in 1 2 13 15; do
1407   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1408 done
1409 ac_signal=0
1410
1411 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1412 rm -rf conftest* confdefs.h
1413 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 echo >confdefs.h
1415
1416 # Predefined preprocessor variables.
1417
1418 cat >>confdefs.h <<_ACEOF
1419 #define PACKAGE_NAME "$PACKAGE_NAME"
1420 _ACEOF
1421
1422
1423 cat >>confdefs.h <<_ACEOF
1424 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1425 _ACEOF
1426
1427
1428 cat >>confdefs.h <<_ACEOF
1429 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1430 _ACEOF
1431
1432
1433 cat >>confdefs.h <<_ACEOF
1434 #define PACKAGE_STRING "$PACKAGE_STRING"
1435 _ACEOF
1436
1437
1438 cat >>confdefs.h <<_ACEOF
1439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1440 _ACEOF
1441
1442
1443 # Let the site file select an alternate cache file if it wants to.
1444 # Prefer explicitly selected file to automatically selected ones.
1445 if test -z "$CONFIG_SITE"; then
1446   if test "x$prefix" != xNONE; then
1447     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1448   else
1449     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450   fi
1451 fi
1452 for ac_site_file in $CONFIG_SITE; do
1453   if test -r "$ac_site_file"; then
1454     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1455 echo "$as_me: loading site script $ac_site_file" >&6;}
1456     sed 's/^/| /' "$ac_site_file" >&5
1457     . "$ac_site_file"
1458   fi
1459 done
1460
1461 if test -r "$cache_file"; then
1462   # Some versions of bash will fail to source /dev/null (special
1463   # files actually), so we avoid doing that.
1464   if test -f "$cache_file"; then
1465     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1466 echo "$as_me: loading cache $cache_file" >&6;}
1467     case $cache_file in
1468       [\\/]* | ?:[\\/]* ) . $cache_file;;
1469       *)                      . ./$cache_file;;
1470     esac
1471   fi
1472 else
1473   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1474 echo "$as_me: creating cache $cache_file" >&6;}
1475   >$cache_file
1476 fi
1477
1478 # Check that the precious variables saved in the cache have kept the same
1479 # value.
1480 ac_cache_corrupted=false
1481 for ac_var in `(set) 2>&1 |
1482                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1483   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1484   eval ac_new_set=\$ac_env_${ac_var}_set
1485   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1486   eval ac_new_val="\$ac_env_${ac_var}_value"
1487   case $ac_old_set,$ac_new_set in
1488     set,)
1489       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1490 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1491       ac_cache_corrupted=: ;;
1492     ,set)
1493       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1494 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1495       ac_cache_corrupted=: ;;
1496     ,);;
1497     *)
1498       if test "x$ac_old_val" != "x$ac_new_val"; then
1499         # differences in whitespace do not lead to failure.
1500         ac_old_val_w=`echo x $ac_old_val`
1501         ac_new_val_w=`echo x $ac_new_val`
1502         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1503           { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1504 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1505           ac_cache_corrupted=:
1506         else
1507           { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1508 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1509           eval $ac_var=\$ac_old_val
1510         fi
1511         { echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1512 echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1513         { echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1514 echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1532 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1533   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1534 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1535   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1536 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1537    { (exit 1); exit 1; }; }
1538 fi
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1572
1573
1574
1575
1576
1577
1578 ac_aux_dir=
1579 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1580   if test -f $ac_dir/install-sh; then
1581     ac_aux_dir=$ac_dir
1582     ac_install_sh="$ac_aux_dir/install-sh -c"
1583     break
1584   elif test -f $ac_dir/install.sh; then
1585     ac_aux_dir=$ac_dir
1586     ac_install_sh="$ac_aux_dir/install.sh -c"
1587     break
1588   elif test -f $ac_dir/shtool; then
1589     ac_aux_dir=$ac_dir
1590     ac_install_sh="$ac_aux_dir/shtool install -c"
1591     break
1592   fi
1593 done
1594 if test -z "$ac_aux_dir"; then
1595   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1596 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1597    { (exit 1); exit 1; }; }
1598 fi
1599 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1600 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1601 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1602
1603 # Make sure we can run config.sub.
1604 $ac_config_sub sun4 >/dev/null 2>&1 ||
1605   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1606 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1607    { (exit 1); exit 1; }; }
1608
1609 echo "$as_me:$LINENO: checking build system type" >&5
1610 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1611 if test "${ac_cv_build+set}" = set; then
1612   echo $ECHO_N "(cached) $ECHO_C" >&6
1613 else
1614   ac_cv_build_alias=$build_alias
1615 test -z "$ac_cv_build_alias" &&
1616   ac_cv_build_alias=`$ac_config_guess`
1617 test -z "$ac_cv_build_alias" &&
1618   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1619 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1620    { (exit 1); exit 1; }; }
1621 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1622   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1624    { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1628 echo "${ECHO_T}$ac_cv_build" >&6
1629 build=$ac_cv_build
1630 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635  case ${build_alias} in
1636   "") build_noncanonical=${build} ;;
1637   *) build_noncanonical=${build_alias} ;;
1638 esac
1639
1640  case ${host_alias} in
1641   "") host_noncanonical=${build_noncanonical} ;;
1642   *) host_noncanonical=${host_alias} ;;
1643 esac
1644
1645  case ${target_alias} in
1646   "") target_noncanonical=${host_noncanonical} ;;
1647   *) target_noncanonical=${target_alias} ;;
1648 esac
1649
1650
1651 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1652 # have matching libraries, they should use host libraries: Makefile.tpl
1653 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1654 # However, they still use the build modules, because the corresponding
1655 # host modules (e.g. bison) are only built for the host when bootstrap
1656 # finishes. So:
1657 # - build_subdir is where we find build modules, and never changes.
1658 # - build_libsubdir is where we find build libraries, and can be overridden.
1659
1660 # Prefix 'build-' so this never conflicts with target_subdir.
1661 build_subdir="build-${build_noncanonical}"
1662
1663 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1664 if test "${with_build_libsubdir+set}" = set; then
1665   withval="$with_build_libsubdir"
1666   build_libsubdir="$withval"
1667 else
1668   build_libsubdir="$build_subdir"
1669 fi;
1670 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1671 if ( test $srcdir = . && test -d gcc ) \
1672    || test -d $srcdir/../host-${host_noncanonical}; then
1673   host_subdir="host-${host_noncanonical}"
1674 else
1675   host_subdir=.
1676 fi
1677 # No prefix.
1678 target_subdir=${target_noncanonical}
1679
1680
1681 # We use these options to decide which functions to include.
1682
1683 # Check whether --with-target-subdir or --without-target-subdir was given.
1684 if test "${with_target_subdir+set}" = set; then
1685   withval="$with_target_subdir"
1686
1687 fi;
1688
1689 # We may get other options which we don't document:
1690 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1691
1692 # Find the rest of the source tree framework.
1693 # Default to --enable-multilib
1694 # Check whether --enable-multilib or --disable-multilib was given.
1695 if test "${enable_multilib+set}" = set; then
1696   enableval="$enable_multilib"
1697   case "$enableval" in
1698   yes) multilib=yes ;;
1699   no)  multilib=no ;;
1700   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1701 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1702    { (exit 1); exit 1; }; } ;;
1703  esac
1704 else
1705   multilib=yes
1706 fi;
1707
1708 # We may get other options which we leave undocumented:
1709 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1710 # See config-ml.in if you want the gory details.
1711
1712 if test "$srcdir" = "."; then
1713   if test "$with_target_subdir" != "."; then
1714     multi_basedir="$srcdir/$with_multisrctop../.."
1715   else
1716     multi_basedir="$srcdir/$with_multisrctop.."
1717   fi
1718 else
1719   multi_basedir="$srcdir/.."
1720 fi
1721
1722
1723 # Even if the default multilib is not a cross compilation,
1724 # it may be that some of the other multilibs are.
1725 if test $cross_compiling = no && test $multilib = yes \
1726    && test "x${with_multisubdir}" != x ; then
1727    cross_compiling=maybe
1728 fi
1729
1730           ac_config_commands="$ac_config_commands default-1"
1731
1732
1733 echo "$as_me:$LINENO: checking host system type" >&5
1734 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1735 if test "${ac_cv_host+set}" = set; then
1736   echo $ECHO_N "(cached) $ECHO_C" >&6
1737 else
1738   ac_cv_host_alias=$host_alias
1739 test -z "$ac_cv_host_alias" &&
1740   ac_cv_host_alias=$ac_cv_build_alias
1741 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1742   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1743 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1744    { (exit 1); exit 1; }; }
1745
1746 fi
1747 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1748 echo "${ECHO_T}$ac_cv_host" >&6
1749 host=$ac_cv_host
1750 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755 echo "$as_me:$LINENO: checking target system type" >&5
1756 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1757 if test "${ac_cv_target+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   ac_cv_target_alias=$target_alias
1761 test "x$ac_cv_target_alias" = "x" &&
1762   ac_cv_target_alias=$ac_cv_host_alias
1763 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1764   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1765 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1766    { (exit 1); exit 1; }; }
1767
1768 fi
1769 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1770 echo "${ECHO_T}$ac_cv_target" >&6
1771 target=$ac_cv_target
1772 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777 # The aliases save the names the user supplied, while $host etc.
1778 # will get canonicalized.
1779 test -n "$target_alias" &&
1780   test "$program_prefix$program_suffix$program_transform_name" = \
1781     NONENONEs,x,x, &&
1782   program_prefix=${target_alias}-
1783  case ${build_alias} in
1784   "") build_noncanonical=${build} ;;
1785   *) build_noncanonical=${build_alias} ;;
1786 esac
1787
1788  case ${target_alias} in
1789   "") target_noncanonical=${host_noncanonical} ;;
1790   *) target_noncanonical=${target_alias} ;;
1791 esac
1792
1793
1794
1795
1796 # This works around the fact that libtool configuration may change LD
1797 # for this particular configuration, but some shells, instead of
1798 # keeping the changes in LD private, export them just because LD is
1799 # exported.
1800 ORIGINAL_LD_FOR_MULTILIBS=$LD
1801
1802 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1803 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1804 LN_S=$as_ln_s
1805 if test "$LN_S" = "ln -s"; then
1806   echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 else
1809   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1810 echo "${ECHO_T}no, using $LN_S" >&6
1811 fi
1812
1813
1814 # This works around an automake problem.
1815 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1816
1817
1818
1819 # Check whether --with-cross-host or --without-cross-host was given.
1820 if test "${with_cross_host+set}" = set; then
1821   withval="$with_cross_host"
1822
1823 fi;
1824
1825
1826 # Check whether --with-newlib or --without-newlib was given.
1827 if test "${with_newlib+set}" = set; then
1828   withval="$with_newlib"
1829
1830 fi;
1831
1832 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1833 if test "${enable_version_specific_runtime_libs+set}" = set; then
1834   enableval="$enable_version_specific_runtime_libs"
1835   case "$enableval" in
1836       yes) version_specific_libs=yes ;;
1837       no)  version_specific_libs=no ;;
1838       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1839 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1840    { (exit 1); exit 1; }; };;
1841      esac
1842 else
1843   version_specific_libs=no
1844
1845 fi;
1846
1847 # Check whether --enable-plugin or --disable-plugin was given.
1848 if test "${enable_plugin+set}" = set; then
1849   enableval="$enable_plugin"
1850   case "$enableval" in
1851       yes) plugin_enabled=yes ;;
1852       no)  plugin_enabled=no ;;
1853       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1854 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1855    { (exit 1); exit 1; }; };;
1856      esac
1857 else
1858   plugin_enabled=no
1859
1860 fi;
1861
1862 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1863 if test "${enable_gconf_peer+set}" = set; then
1864   enableval="$enable_gconf_peer"
1865   case "$enableval" in
1866       yes) gconf_enabled=yes ;;
1867       no)  gconf_enabled=no ;;
1868       *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1869 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1870    { (exit 1); exit 1; }; };;
1871      esac
1872 else
1873   gconf_enabled=no
1874
1875 fi;
1876
1877
1878 # Check whether --with-antlr-jar or --without-antlr-jar was given.
1879 if test "${with_antlr_jar+set}" = set; then
1880   withval="$with_antlr_jar"
1881
1882              ANTLR_JAR=$withval
1883
1884 else
1885
1886              ANTLR_JAR=
1887
1888 fi;
1889
1890 echo "$as_me:$LINENO: checking for antlr.jar" >&5
1891 echo $ECHO_N "checking for antlr.jar... $ECHO_C" >&6
1892 if test "x$ANTLR_JAR" = x; then
1893     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
1894         /usr/share/antlr/lib /usr/share/java /usr/lib;
1895     do
1896         if test -f "$antlr_lib_home/antlr.jar"; then
1897             # FIXME: version check for antlr needed without using a VM
1898             ANTLR_JAR="$antlr_lib_home/antlr.jar"
1899             break
1900         fi
1901     done
1902     if test "x$ANTLR_JAR" = x; then
1903         echo "$as_me:$LINENO: result: not found" >&5
1904 echo "${ECHO_T}not found" >&6
1905     else
1906         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1907 echo "${ECHO_T}$ANTLR_JAR" >&6
1908     fi
1909 else
1910     if test -f "${ANTLR_JAR}"; then
1911         echo "$as_me:$LINENO: result: $ANTLR_JAR" >&5
1912 echo "${ECHO_T}$ANTLR_JAR" >&6
1913     else
1914         { { echo "$as_me:$LINENO: error: antlr jar file not found: $ANTLR_JAR" >&5
1915 echo "$as_me: error: antlr jar file not found: $ANTLR_JAR" >&2;}
1916    { (exit 1); exit 1; }; }
1917     fi
1918 fi
1919
1920
1921 # Check whether --enable-gjdoc or --disable-gjdoc was given.
1922 if test "${enable_gjdoc+set}" = set; then
1923   enableval="$enable_gjdoc"
1924   case "${enableval}" in
1925                 yes) BUILD_GJDOC=yes ;;
1926                 no) BUILD_GJDOC=no ;;
1927                 *) BUILD_GJDOC=yes ;;
1928               esac
1929 else
1930   BUILD_GJDOC=maybe
1931 fi;
1932
1933 echo "$as_me:$LINENO: checking whether to build gjdoc" >&5
1934 echo $ECHO_N "checking whether to build gjdoc... $ECHO_C" >&6
1935 if test "x$BUILD_GJDOC" = xmaybe; then
1936     if test -f "${ANTLR_JAR}"; then
1937         BUILD_GJDOC=yes
1938         echo "$as_me:$LINENO: result: yes" >&5
1939 echo "${ECHO_T}yes" >&6
1940     else
1941         BUILD_GJDOC=no
1942         echo "$as_me:$LINENO: result: no, antlr.jar not found" >&5
1943 echo "${ECHO_T}no, antlr.jar not found" >&6
1944     fi
1945 else
1946     echo "$as_me:$LINENO: result: $BUILD_GJDOC" >&5
1947 echo "${ECHO_T}$BUILD_GJDOC" >&6
1948 fi
1949
1950
1951 if test "x${BUILD_GJDOC}" = xyes; then
1952   CREATE_GJDOC_TRUE=
1953   CREATE_GJDOC_FALSE='#'
1954 else
1955   CREATE_GJDOC_TRUE='#'
1956   CREATE_GJDOC_FALSE=
1957 fi
1958
1959
1960 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1961 if test "${enable_java_maintainer_mode+set}" = set; then
1962   enableval="$enable_java_maintainer_mode"
1963
1964 fi;
1965
1966
1967 if test "$enable_java_maintainer_mode" = yes; then
1968   JAVA_MAINTAINER_MODE_TRUE=
1969   JAVA_MAINTAINER_MODE_FALSE='#'
1970 else
1971   JAVA_MAINTAINER_MODE_TRUE='#'
1972   JAVA_MAINTAINER_MODE_FALSE=
1973 fi
1974
1975
1976 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1977
1978
1979 # (1) We use an abnormal CXX (without library references), so we
1980 # must cache it under a different name.
1981 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1982 # the non-multilib-adjusted value will be used in multilibs.
1983 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1984 # (4) As another side effect, automake doesn't automatically include them
1985 # in Makefile.in.
1986 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1987 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1988 # used in later tests.  This may not be necessary in libjava; I don't know.
1989
1990
1991 save_CXXFLAGS="$CXXFLAGS"
1992 CXXFLAGS="$CXXFLAGS -fno-builtin"
1993 ac_ext=c
1994 ac_cpp='$CPP $CPPFLAGS'
1995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1998 if test -n "$ac_tool_prefix"; then
1999   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   if test -n "$CC"; then
2007   ac_cv_prog_CC="$CC" # Let the user override the test.
2008 else
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010 for as_dir in $PATH
2011 do
2012   IFS=$as_save_IFS
2013   test -z "$as_dir" && as_dir=.
2014   for ac_exec_ext in '' $ac_executable_extensions; do
2015   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018     break 2
2019   fi
2020 done
2021 done
2022
2023 fi
2024 fi
2025 CC=$ac_cv_prog_CC
2026 if test -n "$CC"; then
2027   echo "$as_me:$LINENO: result: $CC" >&5
2028 echo "${ECHO_T}$CC" >&6
2029 else
2030   echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6
2032 fi
2033
2034 fi
2035 if test -z "$ac_cv_prog_CC"; then
2036   ac_ct_CC=$CC
2037   # Extract the first word of "gcc", so it can be a program name with args.
2038 set dummy gcc; ac_word=$2
2039 echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   if test -n "$ac_ct_CC"; then
2045   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054     ac_cv_prog_ac_ct_CC="gcc"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060
2061 fi
2062 fi
2063 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2064 if test -n "$ac_ct_CC"; then
2065   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2066 echo "${ECHO_T}$ac_ct_CC" >&6
2067 else
2068   echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6
2070 fi
2071
2072   CC=$ac_ct_CC
2073 else
2074   CC="$ac_cv_prog_CC"
2075 fi
2076
2077 if test -z "$CC"; then
2078   if test -n "$ac_tool_prefix"; then
2079   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2080 set dummy ${ac_tool_prefix}cc; ac_word=$2
2081 echo "$as_me:$LINENO: checking for $ac_word" >&5
2082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2083 if test "${ac_cv_prog_CC+set}" = set; then
2084   echo $ECHO_N "(cached) $ECHO_C" >&6
2085 else
2086   if test -n "$CC"; then
2087   ac_cv_prog_CC="$CC" # Let the user override the test.
2088 else
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in $PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for ac_exec_ext in '' $ac_executable_extensions; do
2095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2096     ac_cv_prog_CC="${ac_tool_prefix}cc"
2097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098     break 2
2099   fi
2100 done
2101 done
2102
2103 fi
2104 fi
2105 CC=$ac_cv_prog_CC
2106 if test -n "$CC"; then
2107   echo "$as_me:$LINENO: result: $CC" >&5
2108 echo "${ECHO_T}$CC" >&6
2109 else
2110   echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6
2112 fi
2113
2114 fi
2115 if test -z "$ac_cv_prog_CC"; then
2116   ac_ct_CC=$CC
2117   # Extract the first word of "cc", so it can be a program name with args.
2118 set dummy cc; ac_word=$2
2119 echo "$as_me:$LINENO: checking for $ac_word" >&5
2120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122   echo $ECHO_N "(cached) $ECHO_C" >&6
2123 else
2124   if test -n "$ac_ct_CC"; then
2125   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126 else
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2129 do
2130   IFS=$as_save_IFS
2131   test -z "$as_dir" && as_dir=.
2132   for ac_exec_ext in '' $ac_executable_extensions; do
2133   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134     ac_cv_prog_ac_ct_CC="cc"
2135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136     break 2
2137   fi
2138 done
2139 done
2140
2141 fi
2142 fi
2143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144 if test -n "$ac_ct_CC"; then
2145   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146 echo "${ECHO_T}$ac_ct_CC" >&6
2147 else
2148   echo "$as_me:$LINENO: result: no" >&5
2149 echo "${ECHO_T}no" >&6
2150 fi
2151
2152   CC=$ac_ct_CC
2153 else
2154   CC="$ac_cv_prog_CC"
2155 fi
2156
2157 fi
2158 if test -z "$CC"; then
2159   # Extract the first word of "cc", so it can be a program name with args.
2160 set dummy cc; ac_word=$2
2161 echo "$as_me:$LINENO: checking for $ac_word" >&5
2162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2163 if test "${ac_cv_prog_CC+set}" = set; then
2164   echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166   if test -n "$CC"; then
2167   ac_cv_prog_CC="$CC" # Let the user override the test.
2168 else
2169   ac_prog_rejected=no
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_exec_ext in '' $ac_executable_extensions; do
2176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2178        ac_prog_rejected=yes
2179        continue
2180      fi
2181     ac_cv_prog_CC="cc"
2182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183     break 2
2184   fi
2185 done
2186 done
2187
2188 if test $ac_prog_rejected = yes; then
2189   # We found a bogon in the path, so make sure we never use it.
2190   set dummy $ac_cv_prog_CC
2191   shift
2192   if test $# != 0; then
2193     # We chose a different compiler from the bogus one.
2194     # However, it has the same basename, so the bogon will be chosen
2195     # first if we set CC to just the basename; use the full file name.
2196     shift
2197     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2198   fi
2199 fi
2200 fi
2201 fi
2202 CC=$ac_cv_prog_CC
2203 if test -n "$CC"; then
2204   echo "$as_me:$LINENO: result: $CC" >&5
2205 echo "${ECHO_T}$CC" >&6
2206 else
2207   echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6
2209 fi
2210
2211 fi
2212 if test -z "$CC"; then
2213   if test -n "$ac_tool_prefix"; then
2214   for ac_prog in cl
2215   do
2216     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2218 echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221   echo $ECHO_N "(cached) $ECHO_C" >&6
2222 else
2223   if test -n "$CC"; then
2224   ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH
2228 do
2229   IFS=$as_save_IFS
2230   test -z "$as_dir" && as_dir=.
2231   for ac_exec_ext in '' $ac_executable_extensions; do
2232   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2233     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2234     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235     break 2
2236   fi
2237 done
2238 done
2239
2240 fi
2241 fi
2242 CC=$ac_cv_prog_CC
2243 if test -n "$CC"; then
2244   echo "$as_me:$LINENO: result: $CC" >&5
2245 echo "${ECHO_T}$CC" >&6
2246 else
2247   echo "$as_me:$LINENO: result: no" >&5
2248 echo "${ECHO_T}no" >&6
2249 fi
2250
2251     test -n "$CC" && break
2252   done
2253 fi
2254 if test -z "$CC"; then
2255   ac_ct_CC=$CC
2256   for ac_prog in cl
2257 do
2258   # Extract the first word of "$ac_prog", so it can be a program name with args.
2259 set dummy $ac_prog; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263   echo $ECHO_N "(cached) $ECHO_C" >&6
2264 else
2265   if test -n "$ac_ct_CC"; then
2266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271   IFS=$as_save_IFS
2272   test -z "$as_dir" && as_dir=.
2273   for ac_exec_ext in '' $ac_executable_extensions; do
2274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2275     ac_cv_prog_ac_ct_CC="$ac_prog"
2276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277     break 2
2278   fi
2279 done
2280 done
2281
2282 fi
2283 fi
2284 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2285 if test -n "$ac_ct_CC"; then
2286   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2287 echo "${ECHO_T}$ac_ct_CC" >&6
2288 else
2289   echo "$as_me:$LINENO: result: no" >&5
2290 echo "${ECHO_T}no" >&6
2291 fi
2292
2293   test -n "$ac_ct_CC" && break
2294 done
2295
2296   CC=$ac_ct_CC
2297 fi
2298
2299 fi
2300
2301
2302 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2303 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2305 See \`config.log' for more details." >&5
2306 echo "$as_me: error: no acceptable C compiler found in \$PATH
2307 See \`config.log' for more details." >&2;}
2308    { (exit 1); exit 1; }; }; }
2309
2310 # Provide some information about the compiler.
2311 echo "$as_me:$LINENO:" \
2312      "checking for C compiler version" >&5
2313 ac_compiler=`set X $ac_compile; echo $2`
2314 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2315   (eval $ac_compiler --version </dev/null >&5) 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2320   (eval $ac_compiler -v </dev/null >&5) 2>&5
2321   ac_status=$?
2322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323   (exit $ac_status); }
2324 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2325   (eval $ac_compiler -V </dev/null >&5) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }
2329
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 # FIXME: Cleanup?
2346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2347   (eval $ac_link) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }; then
2351   gcc_no_link=no
2352 else
2353   gcc_no_link=yes
2354 fi
2355
2356 if test x$gcc_no_link = xyes; then
2357   # Setting cross_compile will disable run tests; it will
2358   # also disable AC_CHECK_FILE but that's generally
2359   # correct if we can't link.
2360   cross_compiling=yes
2361   EXEEXT=
2362 else
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369
2370 int
2371 main ()
2372 {
2373
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 ac_clean_files_save=$ac_clean_files
2379 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2380 # Try to create an executable without -o first, disregard a.out.
2381 # It will help us diagnose broken compilers, and finding out an intuition
2382 # of exeext.
2383 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2384 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2385 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2386 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2387   (eval $ac_link_default) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }; then
2391   # Find the output, starting from the most likely.  This scheme is
2392 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2393 # resort.
2394
2395 # Be careful to initialize this variable, since it used to be cached.
2396 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2397 ac_cv_exeext=
2398 # b.out is created by i960 compilers.
2399 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2400 do
2401   test -f "$ac_file" || continue
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2404         ;;
2405     conftest.$ac_ext )
2406         # This is the source file.
2407         ;;
2408     [ab].out )
2409         # We found the default executable, but exeext='' is most
2410         # certainly right.
2411         break;;
2412     *.* )
2413         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2414         # FIXME: I believe we export ac_cv_exeext for Libtool,
2415         # but it would be cool to find out if it's true.  Does anybody
2416         # maintain Libtool? --akim.
2417         export ac_cv_exeext
2418         break;;
2419     * )
2420         break;;
2421   esac
2422 done
2423 else
2424   echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2428 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: C compiler cannot create executables
2432 See \`config.log' for more details." >&2;}
2433    { (exit 77); exit 77; }; }; }
2434 fi
2435
2436 ac_exeext=$ac_cv_exeext
2437 echo "$as_me:$LINENO: result: $ac_file" >&5
2438 echo "${ECHO_T}$ac_file" >&6
2439
2440 # Check the compiler produces executables we can run.  If not, either
2441 # the compiler is broken, or we cross compile.
2442 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2443 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2444 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2445 # If not cross compiling, check that we can run a simple program.
2446 if test "$cross_compiling" != yes; then
2447   if { ac_try='./$ac_file'
2448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449   (eval $ac_try) 2>&5
2450   ac_status=$?
2451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452   (exit $ac_status); }; }; then
2453     cross_compiling=no
2454   else
2455     if test "$cross_compiling" = maybe; then
2456         cross_compiling=yes
2457     else
2458         { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2459 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2460 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2461 If you meant to cross compile, use \`--host'.
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: cannot run C compiled programs.
2464 If you meant to cross compile, use \`--host'.
2465 See \`config.log' for more details." >&2;}
2466    { (exit 1); exit 1; }; }; }
2467     fi
2468   fi
2469 fi
2470 echo "$as_me:$LINENO: result: yes" >&5
2471 echo "${ECHO_T}yes" >&6
2472
2473 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2474 ac_clean_files=$ac_clean_files_save
2475 # Check the compiler produces executables we can run.  If not, either
2476 # the compiler is broken, or we cross compile.
2477 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2478 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2479 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2480 echo "${ECHO_T}$cross_compiling" >&6
2481
2482 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2483 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2485   (eval $ac_link) 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2490 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2491 # work properly (i.e., refer to `conftest.exe'), while it won't with
2492 # `rm'.
2493 for ac_file in conftest.exe conftest conftest.*; do
2494   test -f "$ac_file" || continue
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2497     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2498           export ac_cv_exeext
2499           break;;
2500     * ) break;;
2501   esac
2502 done
2503 else
2504   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2505 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2506 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2509 See \`config.log' for more details." >&2;}
2510    { (exit 1); exit 1; }; }; }
2511 fi
2512
2513 rm -f conftest$ac_cv_exeext
2514 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2515 echo "${ECHO_T}$ac_cv_exeext" >&6
2516
2517 rm -f conftest.$ac_ext
2518 EXEEXT=$ac_cv_exeext
2519 ac_exeext=$EXEEXT
2520 fi
2521 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2522 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2523 if test "${ac_cv_objext+set}" = set; then
2524   echo $ECHO_N "(cached) $ECHO_C" >&6
2525 else
2526   cat >conftest.$ac_ext <<_ACEOF
2527 /* confdefs.h.  */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h.  */
2532
2533 int
2534 main ()
2535 {
2536
2537   ;
2538   return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.o conftest.obj
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); }; then
2547   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2548   case $ac_file in
2549     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2550     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2551        break;;
2552   esac
2553 done
2554 else
2555   echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2559 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2631 GCC=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CFLAGS=${CFLAGS+set}
2633 ac_save_CFLAGS=$CFLAGS
2634 CFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2636 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cc_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_c_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cc_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cc_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2688 if test "$ac_test_CFLAGS" = set; then
2689   CFLAGS=$ac_save_CFLAGS
2690 elif test $ac_cv_prog_cc_g = yes; then
2691   if test "$GCC" = yes; then
2692     CFLAGS="-g -O2"
2693   else
2694     CFLAGS="-g"
2695   fi
2696 else
2697   if test "$GCC" = yes; then
2698     CFLAGS="-O2"
2699   else
2700     CFLAGS=
2701   fi
2702 fi
2703 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2704 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2705 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2706   echo $ECHO_N "(cached) $ECHO_C" >&6
2707 else
2708   ac_cv_prog_cc_stdc=no
2709 ac_save_CC=$CC
2710 cat >conftest.$ac_ext <<_ACEOF
2711 /* confdefs.h.  */
2712 _ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h.  */
2716 #include <stdarg.h>
2717 #include <stdio.h>
2718 #include <sys/types.h>
2719 #include <sys/stat.h>
2720 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2721 struct buf { int x; };
2722 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2723 static char *e (p, i)
2724      char **p;
2725      int i;
2726 {
2727   return p[i];
2728 }
2729 static char *f (char * (*g) (char **, int), char **p, ...)
2730 {
2731   char *s;
2732   va_list v;
2733   va_start (v,p);
2734   s = g (p, va_arg (v,int));
2735   va_end (v);
2736   return s;
2737 }
2738
2739 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2740    function prototypes and stuff, but not '\xHH' hex character constants.
2741    These don't provoke an error unfortunately, instead are silently treated
2742    as 'x'.  The following induces an error, until -std1 is added to get
2743    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2744    array size at least.  It's necessary to write '\x00'==0 to get something
2745    that's true only with -std1.  */
2746 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2747
2748 int test (int i, double x);
2749 struct s1 {int (*f) (int a);};
2750 struct s2 {int (*f) (double a);};
2751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2752 int argc;
2753 char **argv;
2754 int
2755 main ()
2756 {
2757 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2758   ;
2759   return 0;
2760 }
2761 _ACEOF
2762 # Don't try gcc -ansi; that turns off useful extensions and
2763 # breaks some systems' header files.
2764 # AIX                   -qlanglvl=ansi
2765 # Ultrix and OSF/1      -std1
2766 # HP-UX 10.20 and later -Ae
2767 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2768 # SVR4                  -Xc -D__EXTENSIONS__
2769 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2770 do
2771   CC="$ac_save_CC $ac_arg"
2772   rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_c_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   ac_cv_prog_cc_stdc=$ac_arg
2795 break
2796 else
2797   echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 fi
2801 rm -f conftest.err conftest.$ac_objext
2802 done
2803 rm -f conftest.$ac_ext conftest.$ac_objext
2804 CC=$ac_save_CC
2805
2806 fi
2807
2808 case "x$ac_cv_prog_cc_stdc" in
2809   x|xno)
2810     echo "$as_me:$LINENO: result: none needed" >&5
2811 echo "${ECHO_T}none needed" >&6 ;;
2812   *)
2813     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2815     CC="$CC $ac_cv_prog_cc_stdc" ;;
2816 esac
2817
2818 # Some people use a C++ compiler to compile C.  Since we use `exit',
2819 # in C++ we need to declare it.  In case someone uses the same compiler
2820 # for both compiling C and C++ we need to have the C++ compiler decide
2821 # the declaration of exit, since it's the most demanding environment.
2822 cat >conftest.$ac_ext <<_ACEOF
2823 #ifndef __cplusplus
2824   choke me
2825 #endif
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2829   (eval $ac_compile) 2>conftest.er1
2830   ac_status=$?
2831   grep -v '^ *+' conftest.er1 >conftest.err
2832   rm -f conftest.er1
2833   cat conftest.err >&5
2834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835   (exit $ac_status); } &&
2836          { ac_try='test -z "$ac_c_werror_flag"
2837                          || test ! -s conftest.err'
2838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839   (eval $ac_try) 2>&5
2840   ac_status=$?
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); }; } &&
2843          { ac_try='test -s conftest.$ac_objext'
2844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845   (eval $ac_try) 2>&5
2846   ac_status=$?
2847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848   (exit $ac_status); }; }; then
2849   for ac_declaration in \
2850    '' \
2851    'extern "C" void std::exit (int) throw (); using std::exit;' \
2852    'extern "C" void std::exit (int); using std::exit;' \
2853    'extern "C" void exit (int) throw ();' \
2854    'extern "C" void exit (int);' \
2855    'void exit (int);'
2856 do
2857   cat >conftest.$ac_ext <<_ACEOF
2858 /* confdefs.h.  */
2859 _ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h.  */
2863 $ac_declaration
2864 #include <stdlib.h>
2865 int
2866 main ()
2867 {
2868 exit (42);
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875   (eval $ac_compile) 2>conftest.er1
2876   ac_status=$?
2877   grep -v '^ *+' conftest.er1 >conftest.err
2878   rm -f conftest.er1
2879   cat conftest.err >&5
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          { ac_try='test -z "$ac_c_werror_flag"
2883                          || test ! -s conftest.err'
2884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2885   (eval $ac_try) 2>&5
2886   ac_status=$?
2887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888   (exit $ac_status); }; } &&
2889          { ac_try='test -s conftest.$ac_objext'
2890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2891   (eval $ac_try) 2>&5
2892   ac_status=$?
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); }; }; then
2895   :
2896 else
2897   echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 continue
2901 fi
2902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903   cat >conftest.$ac_ext <<_ACEOF
2904 /* confdefs.h.  */
2905 _ACEOF
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h.  */
2909 $ac_declaration
2910 int
2911 main ()
2912 {
2913 exit (42);
2914   ;
2915   return 0;
2916 }
2917 _ACEOF
2918 rm -f conftest.$ac_objext
2919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2920   (eval $ac_compile) 2>conftest.er1
2921   ac_status=$?
2922   grep -v '^ *+' conftest.er1 >conftest.err
2923   rm -f conftest.er1
2924   cat conftest.err >&5
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); } &&
2927          { ac_try='test -z "$ac_c_werror_flag"
2928                          || test ! -s conftest.err'
2929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930   (eval $ac_try) 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }; } &&
2934          { ac_try='test -s conftest.$ac_objext'
2935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936   (eval $ac_try) 2>&5
2937   ac_status=$?
2938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939   (exit $ac_status); }; }; then
2940   break
2941 else
2942   echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945 fi
2946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2947 done
2948 rm -f conftest*
2949 if test -n "$ac_declaration"; then
2950   echo '#ifdef __cplusplus' >>confdefs.h
2951   echo $ac_declaration      >>confdefs.h
2952   echo '#endif'             >>confdefs.h
2953 fi
2954
2955 else
2956   echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 fi
2960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961 ac_ext=c
2962 ac_cpp='$CPP $CPPFLAGS'
2963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966
2967 ac_ext=cc
2968 ac_cpp='$CXXCPP $CPPFLAGS'
2969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2972 if test -n "$ac_tool_prefix"; then
2973   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2974   do
2975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2977 echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2979 if test "${ac_cv_prog_CXX+set}" = set; then
2980   echo $ECHO_N "(cached) $ECHO_C" >&6
2981 else
2982   if test -n "$CXX"; then
2983   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990   for ac_exec_ext in '' $ac_executable_extensions; do
2991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2992     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997 done
2998
2999 fi
3000 fi
3001 CXX=$ac_cv_prog_CXX
3002 if test -n "$CXX"; then
3003   echo "$as_me:$LINENO: result: $CXX" >&5
3004 echo "${ECHO_T}$CXX" >&6
3005 else
3006   echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6
3008 fi
3009
3010     test -n "$CXX" && break
3011   done
3012 fi
3013 if test -z "$CXX"; then
3014   ac_ct_CXX=$CXX
3015   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3016 do
3017   # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 echo "$as_me:$LINENO: checking for $ac_word" >&5
3020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3021 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -n "$ac_ct_CXX"; then
3025   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3026 else
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_exec_ext in '' $ac_executable_extensions; do
3033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3034     ac_cv_prog_ac_ct_CXX="$ac_prog"
3035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036     break 2
3037   fi
3038 done
3039 done
3040
3041 fi
3042 fi
3043 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3044 if test -n "$ac_ct_CXX"; then
3045   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3046 echo "${ECHO_T}$ac_ct_CXX" >&6
3047 else
3048   echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6
3050 fi
3051
3052   test -n "$ac_ct_CXX" && break
3053 done
3054 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3055
3056   CXX=$ac_ct_CXX
3057 fi
3058
3059
3060 # Provide some information about the compiler.
3061 echo "$as_me:$LINENO:" \
3062      "checking for C++ compiler version" >&5
3063 ac_compiler=`set X $ac_compile; echo $2`
3064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3065   (eval $ac_compiler --version </dev/null >&5) 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }
3069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3070   (eval $ac_compiler -v </dev/null >&5) 2>&5
3071   ac_status=$?
3072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073   (exit $ac_status); }
3074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3075   (eval $ac_compiler -V </dev/null >&5) 2>&5
3076   ac_status=$?
3077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078   (exit $ac_status); }
3079
3080 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3081 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3082 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   cat >conftest.$ac_ext <<_ACEOF
3086 /* confdefs.h.  */
3087 _ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h.  */
3091
3092 int
3093 main ()
3094 {
3095 #ifndef __GNUC__
3096        choke me
3097 #endif
3098
3099   ;
3100   return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_cxx_werror_flag"
3113                          || test ! -s conftest.err'
3114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115   (eval $ac_try) 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121   (eval $ac_try) 2>&5
3122   ac_status=$?
3123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124   (exit $ac_status); }; }; then
3125   ac_compiler_gnu=yes
3126 else
3127   echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130 ac_compiler_gnu=no
3131 fi
3132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3134
3135 fi
3136 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3137 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3138 GXX=`test $ac_compiler_gnu = yes && echo yes`
3139 ac_test_CXXFLAGS=${CXXFLAGS+set}
3140 ac_save_CXXFLAGS=$CXXFLAGS
3141 CXXFLAGS="-g"
3142 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3143 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3144 if test "${ac_cv_prog_cxx_g+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   cat >conftest.$ac_ext <<_ACEOF
3148 /* confdefs.h.  */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h.  */
3153
3154 int
3155 main ()
3156 {
3157
3158   ;
3159   return 0;
3160 }
3161 _ACEOF
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3164   (eval $ac_compile) 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } &&
3171          { ac_try='test -z "$ac_cxx_werror_flag"
3172                          || test ! -s conftest.err'
3173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174   (eval $ac_try) 2>&5
3175   ac_status=$?
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); }; } &&
3178          { ac_try='test -s conftest.$ac_objext'
3179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3180   (eval $ac_try) 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   ac_cv_prog_cxx_g=yes
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 ac_cv_prog_cxx_g=no
3190 fi
3191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3192 fi
3193 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3194 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3195 if test "$ac_test_CXXFLAGS" = set; then
3196   CXXFLAGS=$ac_save_CXXFLAGS
3197 elif test $ac_cv_prog_cxx_g = yes; then
3198   if test "$GXX" = yes; then
3199     CXXFLAGS="-g -O2"
3200   else
3201     CXXFLAGS="-g"
3202   fi
3203 else
3204   if test "$GXX" = yes; then
3205     CXXFLAGS="-O2"
3206   else
3207     CXXFLAGS=
3208   fi
3209 fi
3210 for ac_declaration in \
3211    '' \
3212    'extern "C" void std::exit (int) throw (); using std::exit;' \
3213    'extern "C" void std::exit (int); using std::exit;' \
3214    'extern "C" void exit (int) throw ();' \
3215    'extern "C" void exit (int);' \
3216    'void exit (int);'
3217 do
3218   cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h.  */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h.  */
3224 $ac_declaration
3225 #include <stdlib.h>
3226 int
3227 main ()
3228 {
3229 exit (42);
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_cxx_werror_flag"
3244                          || test ! -s conftest.err'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   :
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 continue
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_declaration
3271 int
3272 main ()
3273 {
3274 exit (42);
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3281   (eval $ac_compile) 2>conftest.er1
3282   ac_status=$?
3283   grep -v '^ *+' conftest.er1 >conftest.err
3284   rm -f conftest.er1
3285   cat conftest.err >&5
3286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287   (exit $ac_status); } &&
3288          { ac_try='test -z "$ac_cxx_werror_flag"
3289                          || test ! -s conftest.err'
3290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291   (eval $ac_try) 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297   (eval $ac_try) 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   break
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306 fi
3307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308 done
3309 rm -f conftest*
3310 if test -n "$ac_declaration"; then
3311   echo '#ifdef __cplusplus' >>confdefs.h
3312   echo $ac_declaration      >>confdefs.h
3313   echo '#endif'             >>confdefs.h
3314 fi
3315
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3321
3322 CXXFLAGS="$save_CXXFLAGS"
3323
3324
3325
3326
3327
3328 am__api_version="1.9"
3329 # Find a good install program.  We prefer a C program (faster),
3330 # so one script is as good as another.  But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3335 # AIX /bin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 # Reject install programs that cannot install multiple files.
3343 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3344 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3345 if test -z "$INSTALL"; then
3346 if test "${ac_cv_path_install+set}" = set; then
3347   echo $ECHO_N "(cached) $ECHO_C" >&6
3348 else
3349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   # Account for people who put trailing slashes in PATH elements.
3355 case $as_dir/ in
3356   ./ | .// | /cC/* | \
3357   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3358   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3359   /usr/ucb/* ) ;;
3360   *)
3361     # OSF1 and SCO ODT 3.0 have their own names for install.
3362     # Don't use installbsd from OSF since it installs stuff as root
3363     # by default.
3364     for ac_prog in ginstall scoinst install; do
3365       for ac_exec_ext in '' $ac_executable_extensions; do
3366         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3367           if test $ac_prog = install &&
3368             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3369             # AIX install.  It has an incompatible calling convention.
3370             :
3371           elif test $ac_prog = install &&
3372             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3373             # program-specific install script used by HP pwplus--don't use.
3374             :
3375           else
3376             rm -rf conftest.one conftest.two conftest.dir
3377             echo one > conftest.one
3378             echo two > conftest.two
3379             mkdir conftest.dir
3380             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3381               test -s conftest.one && test -s conftest.two &&
3382               test -s conftest.dir/conftest.one &&
3383               test -s conftest.dir/conftest.two
3384             then
3385               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3386               break 3
3387             fi
3388           fi
3389         fi
3390       done
3391     done
3392     ;;
3393 esac
3394 done
3395
3396 rm -rf conftest.one conftest.two conftest.dir
3397
3398 fi
3399   if test "${ac_cv_path_install+set}" = set; then
3400     INSTALL=$ac_cv_path_install
3401   else
3402     # As a last resort, use the slow shell script.  Don't cache a
3403     # value for INSTALL within a source directory, because that will
3404     # break other packages using the cache if that directory is
3405     # removed, or if the value is a relative name.
3406     INSTALL=$ac_install_sh
3407   fi
3408 fi
3409 echo "$as_me:$LINENO: result: $INSTALL" >&5
3410 echo "${ECHO_T}$INSTALL" >&6
3411
3412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3413 # It thinks the first close brace ends the variable substitution.
3414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3415
3416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3417
3418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3419
3420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3422 # Just in case
3423 sleep 1
3424 echo timestamp > conftest.file
3425 # Do `set' in a subshell so we don't clobber the current shell's
3426 # arguments.  Must try -L first in case configure is actually a
3427 # symlink; some systems play weird games with the mod time of symlinks
3428 # (eg FreeBSD returns the mod time of the symlink's containing
3429 # directory).
3430 if (
3431    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3432    if test "$*" = "X"; then
3433       # -L didn't work.
3434       set X `ls -t $srcdir/configure conftest.file`
3435    fi
3436    rm -f conftest.file
3437    if test "$*" != "X $srcdir/configure conftest.file" \
3438       && test "$*" != "X conftest.file $srcdir/configure"; then
3439
3440       # If neither matched, then we have a broken ls.  This can happen
3441       # if, for instance, CONFIG_SHELL is bash and it inherits a
3442       # broken ls alias from the environment.  This has actually
3443       # happened.  Such a system could not be considered "sane".
3444       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3445 alias in your environment" >&5
3446 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3447 alias in your environment" >&2;}
3448    { (exit 1); exit 1; }; }
3449    fi
3450
3451    test "$2" = conftest.file
3452    )
3453 then
3454    # Ok.
3455    :
3456 else
3457    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3458 Check your system clock" >&5
3459 echo "$as_me: error: newly created file is older than distributed files!
3460 Check your system clock" >&2;}
3461    { (exit 1); exit 1; }; }
3462 fi
3463 echo "$as_me:$LINENO: result: yes" >&5
3464 echo "${ECHO_T}yes" >&6
3465 test "$program_prefix" != NONE &&
3466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
3467 # Use a double $ so make ignores it.
3468 test "$program_suffix" != NONE &&
3469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3470 # Double any \ or $.  echo might interpret backslashes.
3471 # By default was `s,x,x', remove it if useless.
3472 cat <<\_ACEOF >conftest.sed
3473 s/[\\$]/&&/g;s/;s,x,x,$//
3474 _ACEOF
3475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3476 rm conftest.sed
3477
3478 # expand $ac_aux_dir to an absolute path
3479 am_aux_dir=`cd $ac_aux_dir && pwd`
3480
3481 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3482 # Use eval to expand $SHELL
3483 if eval "$MISSING --run true"; then
3484   am_missing_run="$MISSING --run "
3485 else
3486   am_missing_run=
3487   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3488 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3489 fi
3490
3491 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3492   # We used to keeping the `.' as first argument, in order to
3493   # allow $(mkdir_p) to be used without argument.  As in
3494   #   $(mkdir_p) $(somedir)
3495   # where $(somedir) is conditionally defined.  However this is wrong
3496   # for two reasons:
3497   #  1. if the package is installed by a user who cannot write `.'
3498   #     make install will fail,
3499   #  2. the above comment should most certainly read
3500   #     $(mkdir_p) $(DESTDIR)$(somedir)
3501   #     so it does not work when $(somedir) is undefined and
3502   #     $(DESTDIR) is not.
3503   #  To support the latter case, we have to write
3504   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3505   #  so the `.' trick is pointless.
3506   mkdir_p='mkdir -p --'
3507 else
3508   # On NextStep and OpenStep, the `mkdir' command does not
3509   # recognize any option.  It will interpret all options as
3510   # directories to create, and then abort because `.' already
3511   # exists.
3512   for d in ./-p ./--version;
3513   do
3514     test -d $d && rmdir $d
3515   done
3516   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3517   if test -f "$ac_aux_dir/mkinstalldirs"; then
3518     mkdir_p='$(mkinstalldirs)'
3519   else
3520     mkdir_p='$(install_sh) -d'
3521   fi
3522 fi
3523
3524 for ac_prog in gawk mawk nawk awk
3525 do
3526   # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3530 if test "${ac_cv_prog_AWK+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   if test -n "$AWK"; then
3534   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3535 else
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 for as_dir in $PATH
3538 do
3539   IFS=$as_save_IFS
3540   test -z "$as_dir" && as_dir=.
3541   for ac_exec_ext in '' $ac_executable_extensions; do
3542   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543     ac_cv_prog_AWK="$ac_prog"
3544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3545     break 2
3546   fi
3547 done
3548 done
3549
3550 fi
3551 fi
3552 AWK=$ac_cv_prog_AWK
3553 if test -n "$AWK"; then
3554   echo "$as_me:$LINENO: result: $AWK" >&5
3555 echo "${ECHO_T}$AWK" >&6
3556 else
3557   echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3559 fi
3560
3561   test -n "$AWK" && break
3562 done
3563
3564 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3565 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3566 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3567 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3568   echo $ECHO_N "(cached) $ECHO_C" >&6
3569 else
3570   cat >conftest.make <<\_ACEOF
3571 all:
3572         @echo 'ac_maketemp="$(MAKE)"'
3573 _ACEOF
3574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3575 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3576 if test -n "$ac_maketemp"; then
3577   eval ac_cv_prog_make_${ac_make}_set=yes
3578 else
3579   eval ac_cv_prog_make_${ac_make}_set=no
3580 fi
3581 rm -f conftest.make
3582 fi
3583 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3584   echo "$as_me:$LINENO: result: yes" >&5
3585 echo "${ECHO_T}yes" >&6
3586   SET_MAKE=
3587 else
3588   echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6
3590   SET_MAKE="MAKE=${MAKE-make}"
3591 fi
3592
3593 rm -rf .tst 2>/dev/null
3594 mkdir .tst 2>/dev/null
3595 if test -d .tst; then
3596   am__leading_dot=.
3597 else
3598   am__leading_dot=_
3599 fi
3600 rmdir .tst 2>/dev/null
3601
3602 DEPDIR="${am__leading_dot}deps"
3603
3604           ac_config_commands="$ac_config_commands depfiles"
3605
3606
3607 am_make=${MAKE-make}
3608 cat > confinc << 'END'
3609 am__doit:
3610         @echo done
3611 .PHONY: am__doit
3612 END
3613 # If we don't find an include directive, just comment out the code.
3614 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3615 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3616 am__include="#"
3617 am__quote=
3618 _am_result=none
3619 # First try GNU make style include.
3620 echo "include confinc" > confmf
3621 # We grep out `Entering directory' and `Leaving directory'
3622 # messages which can occur if `w' ends up in MAKEFLAGS.
3623 # In particular we don't look at `^make:' because GNU make might
3624 # be invoked under some other name (usually "gmake"), in which
3625 # case it prints its new name instead of `make'.
3626 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3627    am__include=include
3628    am__quote=
3629    _am_result=GNU
3630 fi
3631 # Now try BSD make style include.
3632 if test "$am__include" = "#"; then
3633    echo '.include "confinc"' > confmf
3634    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3635       am__include=.include
3636       am__quote="\""
3637       _am_result=BSD
3638    fi
3639 fi
3640
3641
3642 echo "$as_me:$LINENO: result: $_am_result" >&5
3643 echo "${ECHO_T}$_am_result" >&6
3644 rm -f confinc confmf
3645
3646 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3647 if test "${enable_dependency_tracking+set}" = set; then
3648   enableval="$enable_dependency_tracking"
3649
3650 fi;
3651 if test "x$enable_dependency_tracking" != xno; then
3652   am_depcomp="$ac_aux_dir/depcomp"
3653   AMDEPBACKSLASH='\'
3654 fi
3655
3656
3657 if test "x$enable_dependency_tracking" != xno; then
3658   AMDEP_TRUE=
3659   AMDEP_FALSE='#'
3660 else
3661   AMDEP_TRUE='#'
3662   AMDEP_FALSE=
3663 fi
3664
3665
3666
3667 # test to see if srcdir already configured
3668 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3669    test -f $srcdir/config.status; then
3670   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3671 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3672    { (exit 1); exit 1; }; }
3673 fi
3674
3675 # test whether we have cygpath
3676 if test -z "$CYGPATH_W"; then
3677   if (cygpath --version) >/dev/null 2>/dev/null; then
3678     CYGPATH_W='cygpath -w'
3679   else
3680     CYGPATH_W=echo
3681   fi
3682 fi
3683
3684
3685 # Define the identity of the package.
3686  PACKAGE='libjava'
3687  VERSION='version-unused'
3688
3689
3690 cat >>confdefs.h <<_ACEOF
3691 #define PACKAGE "$PACKAGE"
3692 _ACEOF
3693
3694
3695 cat >>confdefs.h <<_ACEOF
3696 #define VERSION "$VERSION"
3697 _ACEOF
3698
3699 # Some tools Automake needs.
3700
3701 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3702
3703
3704 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3705
3706
3707 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3708
3709
3710 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3711
3712
3713 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3714
3715 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3716
3717 # Installed binaries are usually stripped using `strip' when the user
3718 # run `make install-strip'.  However `strip' might not be the right
3719 # tool to use in cross-compilation environments, therefore Automake
3720 # will honor the `STRIP' environment variable to overrule this program.
3721 if test "$cross_compiling" != no; then
3722   if test -n "$ac_tool_prefix"; then
3723   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3724 set dummy ${ac_tool_prefix}strip; ac_word=$2
3725 echo "$as_me:$LINENO: checking for $ac_word" >&5
3726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3727 if test "${ac_cv_prog_STRIP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if test -n "$STRIP"; then
3731   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3732 else
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH
3735 do
3736   IFS=$as_save_IFS
3737   test -z "$as_dir" && as_dir=.
3738   for ac_exec_ext in '' $ac_executable_extensions; do
3739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3742     break 2
3743   fi
3744 done
3745 done
3746
3747 fi
3748 fi
3749 STRIP=$ac_cv_prog_STRIP
3750 if test -n "$STRIP"; then
3751   echo "$as_me:$LINENO: result: $STRIP" >&5
3752 echo "${ECHO_T}$STRIP" >&6
3753 else
3754   echo "$as_me:$LINENO: result: no" >&5
3755 echo "${ECHO_T}no" >&6
3756 fi
3757
3758 fi
3759 if test -z "$ac_cv_prog_STRIP"; then
3760   ac_ct_STRIP=$STRIP
3761   # Extract the first word of "strip", so it can be a program name with args.
3762 set dummy strip; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3766   echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768   if test -n "$ac_ct_STRIP"; then
3769   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774   IFS=$as_save_IFS
3775   test -z "$as_dir" && as_dir=.
3776   for ac_exec_ext in '' $ac_executable_extensions; do
3777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778     ac_cv_prog_ac_ct_STRIP="strip"
3779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780     break 2
3781   fi
3782 done
3783 done
3784
3785   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3786 fi
3787 fi
3788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3789 if test -n "$ac_ct_STRIP"; then
3790   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3791 echo "${ECHO_T}$ac_ct_STRIP" >&6
3792 else
3793   echo "$as_me:$LINENO: result: no" >&5
3794 echo "${ECHO_T}no" >&6
3795 fi
3796
3797   STRIP=$ac_ct_STRIP
3798 else
3799   STRIP="$ac_cv_prog_STRIP"
3800 fi
3801
3802 fi
3803 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3804
3805 # We need awk for the "check" target.  The system "awk" is bad on
3806 # some platforms.
3807 # Always define AMTAR for backward compatibility.
3808
3809 AMTAR=${AMTAR-"${am_missing_run}tar"}
3810
3811 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3812
3813
3814
3815
3816 depcc="$CC"   am_compiler_list=
3817
3818 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3819 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3820 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3824   # We make a subdir and do the tests there.  Otherwise we can end up
3825   # making bogus files that we don't know about and never remove.  For
3826   # instance it was reported that on HP-UX the gcc test will end up
3827   # making a dummy file named `D' -- because `-MD' means `put the output
3828   # in D'.
3829   mkdir conftest.dir
3830   # Copy depcomp to subdir because otherwise we won't find it if we're
3831   # using a relative directory.
3832   cp "$am_depcomp" conftest.dir
3833   cd conftest.dir
3834   # We will build objects and dependencies in a subdirectory because
3835   # it helps to detect inapplicable dependency modes.  For instance
3836   # both Tru64's cc and ICC support -MD to output dependencies as a
3837   # side effect of compilation, but ICC will put the dependencies in
3838   # the current directory while Tru64 will put them in the object
3839   # directory.
3840   mkdir sub
3841
3842   am_cv_CC_dependencies_compiler_type=none
3843   if test "$am_compiler_list" = ""; then
3844      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3845   fi
3846   for depmode in $am_compiler_list; do
3847     # Setup a source with many dependencies, because some compilers
3848     # like to wrap large dependency lists on column 80 (with \), and
3849     # we should not choose a depcomp mode which is confused by this.
3850     #
3851     # We need to recreate these files for each test, as the compiler may
3852     # overwrite some of them when testing with obscure command lines.
3853     # This happens at least with the AIX C compiler.
3854     : > sub/conftest.c
3855     for i in 1 2 3 4 5 6; do
3856       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3857       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3858       # Solaris 8's {/usr,}/bin/sh.
3859       touch sub/conftst$i.h
3860     done
3861     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3862
3863     case $depmode in
3864     nosideeffect)
3865       # after this tag, mechanisms are not by side-effect, so they'll
3866       # only be used when explicitly requested
3867       if test "x$enable_dependency_tracking" = xyes; then
3868         continue
3869       else
3870         break
3871       fi
3872       ;;
3873     none) break ;;
3874     esac
3875     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3876     # mode.  It turns out that the SunPro C++ compiler does not properly
3877     # handle `-M -o', and we need to detect this.
3878     if depmode=$depmode \
3879        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3880        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3881        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3882          >/dev/null 2>conftest.err &&
3883        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3884        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3885        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3886       # icc doesn't choke on unknown options, it will just issue warnings
3887       # or remarks (even with -Werror).  So we grep stderr for any message
3888       # that says an option was ignored or not supported.
3889       # When given -MP, icc 7.0 and 7.1 complain thusly:
3890       #   icc: Command line warning: ignoring option '-M'; no argument required
3891       # The diagnosis changed in icc 8.0:
3892       #   icc: Command line remark: option '-MP' not supported
3893       if (grep 'ignoring option' conftest.err ||
3894           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3895         am_cv_CC_dependencies_compiler_type=$depmode
3896         break
3897       fi
3898     fi
3899   done
3900
3901   cd ..
3902   rm -rf conftest.dir
3903 else
3904   am_cv_CC_dependencies_compiler_type=none
3905 fi
3906
3907 fi
3908 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3910 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3911
3912
3913
3914 if
3915   test "x$enable_dependency_tracking" != xno \
3916   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917   am__fastdepCC_TRUE=
3918   am__fastdepCC_FALSE='#'
3919 else
3920   am__fastdepCC_TRUE='#'
3921   am__fastdepCC_FALSE=
3922 fi
3923
3924
3925 depcc="$CXX"  am_compiler_list=
3926
3927 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3928 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3929 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3930   echo $ECHO_N "(cached) $ECHO_C" >&6
3931 else
3932   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3933   # We make a subdir and do the tests there.  Otherwise we can end up
3934   # making bogus files that we don't know about and never remove.  For
3935   # instance it was reported that on HP-UX the gcc test will end up
3936   # making a dummy file named `D' -- because `-MD' means `put the output
3937   # in D'.
3938   mkdir conftest.dir
3939   # Copy depcomp to subdir because otherwise we won't find it if we're
3940   # using a relative directory.
3941   cp "$am_depcomp" conftest.dir
3942   cd conftest.dir
3943   # We will build objects and dependencies in a subdirectory because
3944   # it helps to detect inapplicable dependency modes.  For instance
3945   # both Tru64's cc and ICC support -MD to output dependencies as a
3946   # side effect of compilation, but ICC will put the dependencies in
3947   # the current directory while Tru64 will put them in the object
3948   # directory.
3949   mkdir sub
3950
3951   am_cv_CXX_dependencies_compiler_type=none
3952   if test "$am_compiler_list" = ""; then
3953      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3954   fi
3955   for depmode in $am_compiler_list; do
3956     # Setup a source with many dependencies, because some compilers
3957     # like to wrap large dependency lists on column 80 (with \), and
3958     # we should not choose a depcomp mode which is confused by this.
3959     #
3960     # We need to recreate these files for each test, as the compiler may
3961     # overwrite some of them when testing with obscure command lines.
3962     # This happens at least with the AIX C compiler.
3963     : > sub/conftest.c
3964     for i in 1 2 3 4 5 6; do
3965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967       # Solaris 8's {/usr,}/bin/sh.
3968       touch sub/conftst$i.h
3969     done
3970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972     case $depmode in
3973     nosideeffect)
3974       # after this tag, mechanisms are not by side-effect, so they'll
3975       # only be used when explicitly requested
3976       if test "x$enable_dependency_tracking" = xyes; then
3977         continue
3978       else
3979         break
3980       fi
3981       ;;
3982     none) break ;;
3983     esac
3984     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3985     # mode.  It turns out that the SunPro C++ compiler does not properly
3986     # handle `-M -o', and we need to detect this.
3987     if depmode=$depmode \
3988        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3989        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3990        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3991          >/dev/null 2>conftest.err &&
3992        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3993        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3994        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3995       # icc doesn't choke on unknown options, it will just issue warnings
3996       # or remarks (even with -Werror).  So we grep stderr for any message
3997       # that says an option was ignored or not supported.
3998       # When given -MP, icc 7.0 and 7.1 complain thusly:
3999       #   icc: Command line warning: ignoring option '-M'; no argument required
4000       # The diagnosis changed in icc 8.0:
4001       #   icc: Command line remark: option '-MP' not supported
4002       if (grep 'ignoring option' conftest.err ||
4003           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4004         am_cv_CXX_dependencies_compiler_type=$depmode
4005         break
4006       fi
4007     fi
4008   done
4009
4010   cd ..
4011   rm -rf conftest.dir
4012 else
4013   am_cv_CXX_dependencies_compiler_type=none
4014 fi
4015
4016 fi
4017 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4018 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4020
4021
4022
4023 if
4024   test "x$enable_dependency_tracking" != xno \
4025   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4026   am__fastdepCXX_TRUE=
4027   am__fastdepCXX_FALSE='#'
4028 else
4029   am__fastdepCXX_TRUE='#'
4030   am__fastdepCXX_FALSE=
4031 fi
4032
4033
4034
4035
4036 if test -n "$ac_tool_prefix"; then
4037   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4038 set dummy ${ac_tool_prefix}as; ac_word=$2
4039 echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4041 if test "${ac_cv_prog_AS+set}" = set; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   if test -n "$AS"; then
4045   ac_cv_prog_AS="$AS" # Let the user override the test.
4046 else
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH
4049 do
4050   IFS=$as_save_IFS
4051   test -z "$as_dir" && as_dir=.
4052   for ac_exec_ext in '' $ac_executable_extensions; do
4053   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054     ac_cv_prog_AS="${ac_tool_prefix}as"
4055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059 done
4060
4061 fi
4062 fi
4063 AS=$ac_cv_prog_AS
4064 if test -n "$AS"; then
4065   echo "$as_me:$LINENO: result: $AS" >&5
4066 echo "${ECHO_T}$AS" >&6
4067 else
4068   echo "$as_me:$LINENO: result: no" >&5
4069 echo "${ECHO_T}no" >&6
4070 fi
4071
4072 fi
4073 if test -z "$ac_cv_prog_AS"; then
4074   ac_ct_AS=$AS
4075   # Extract the first word of "as", so it can be a program name with args.
4076 set dummy as; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$ac_ct_AS"; then
4083   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_ac_ct_AS="as"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4102 if test -n "$ac_ct_AS"; then
4103   echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4104 echo "${ECHO_T}$ac_ct_AS" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110   AS=$ac_ct_AS
4111 else
4112   AS="$ac_cv_prog_AS"
4113 fi
4114
4115 if test -n "$ac_tool_prefix"; then
4116   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}ld; ac_word=$2
4118 echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120 if test "${ac_cv_prog_LD+set}" = set; then
4121   echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123   if test -n "$LD"; then
4124   ac_cv_prog_LD="$LD" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_prog_LD="${ac_tool_prefix}ld"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140 fi
4141 fi
4142 LD=$ac_cv_prog_LD
4143 if test -n "$LD"; then
4144   echo "$as_me:$LINENO: result: $LD" >&5
4145 echo "${ECHO_T}$LD" >&6
4146 else
4147   echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149 fi
4150
4151 fi
4152 if test -z "$ac_cv_prog_LD"; then
4153   ac_ct_LD=$LD
4154   # Extract the first word of "ld", so it can be a program name with args.
4155 set dummy ld; ac_word=$2
4156 echo "$as_me:$LINENO: checking for $ac_word" >&5
4157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4158 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4159   echo $ECHO_N "(cached) $ECHO_C" >&6
4160 else
4161   if test -n "$ac_ct_LD"; then
4162   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4166 do
4167   IFS=$as_save_IFS
4168   test -z "$as_dir" && as_dir=.
4169   for ac_exec_ext in '' $ac_executable_extensions; do
4170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4171     ac_cv_prog_ac_ct_LD="ld"
4172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173     break 2
4174   fi
4175 done
4176 done
4177
4178 fi
4179 fi
4180 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4181 if test -n "$ac_ct_LD"; then
4182   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4183 echo "${ECHO_T}$ac_ct_LD" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189   LD=$ac_ct_LD
4190 else
4191   LD="$ac_cv_prog_LD"
4192 fi
4193
4194 if test -n "$ac_tool_prefix"; then
4195   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4196 set dummy ${ac_tool_prefix}ar; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_prog_AR+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   if test -n "$AR"; then
4203   ac_cv_prog_AR="$AR" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212     ac_cv_prog_AR="${ac_tool_prefix}ar"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218
4219 fi
4220 fi
4221 AR=$ac_cv_prog_AR
4222 if test -n "$AR"; then
4223   echo "$as_me:$LINENO: result: $AR" >&5
4224 echo "${ECHO_T}$AR" >&6
4225 else
4226   echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6
4228 fi
4229
4230 fi
4231 if test -z "$ac_cv_prog_AR"; then
4232   ac_ct_AR=$AR
4233   # Extract the first word of "ar", so it can be a program name with args.
4234 set dummy ar; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   if test -n "$ac_ct_AR"; then
4241   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246   IFS=$as_save_IFS
4247   test -z "$as_dir" && as_dir=.
4248   for ac_exec_ext in '' $ac_executable_extensions; do
4249   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250     ac_cv_prog_ac_ct_AR="ar"
4251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252     break 2
4253   fi
4254 done
4255 done
4256
4257 fi
4258 fi
4259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4260 if test -n "$ac_ct_AR"; then
4261   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4262 echo "${ECHO_T}$ac_ct_AR" >&6
4263 else
4264   echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6
4266 fi
4267
4268   AR=$ac_ct_AR
4269 else
4270   AR="$ac_cv_prog_AR"
4271 fi
4272
4273 if test -n "$ac_tool_prefix"; then
4274   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4275 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_prog_RANLIB+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   if test -n "$RANLIB"; then
4282   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287   IFS=$as_save_IFS
4288   test -z "$as_dir" && as_dir=.
4289   for ac_exec_ext in '' $ac_executable_extensions; do
4290   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4292     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293     break 2
4294   fi
4295 done
4296 done
4297
4298 fi
4299 fi
4300 RANLIB=$ac_cv_prog_RANLIB
4301 if test -n "$RANLIB"; then
4302   echo "$as_me:$LINENO: result: $RANLIB" >&5
4303 echo "${ECHO_T}$RANLIB" >&6
4304 else
4305   echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4307 fi
4308
4309 fi
4310 if test -z "$ac_cv_prog_RANLIB"; then
4311   ac_ct_RANLIB=$RANLIB
4312   # Extract the first word of "ranlib", so it can be a program name with args.
4313 set dummy ranlib; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   if test -n "$ac_ct_RANLIB"; then
4320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4321 else
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4324 do
4325   IFS=$as_save_IFS
4326   test -z "$as_dir" && as_dir=.
4327   for ac_exec_ext in '' $ac_executable_extensions; do
4328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329     ac_cv_prog_ac_ct_RANLIB="ranlib"
4330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331     break 2
4332   fi
4333 done
4334 done
4335
4336   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4337 fi
4338 fi
4339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4340 if test -n "$ac_ct_RANLIB"; then
4341   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4342 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4343 else
4344   echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4346 fi
4347
4348   RANLIB=$ac_ct_RANLIB
4349 else
4350   RANLIB="$ac_cv_prog_RANLIB"
4351 fi
4352
4353 for ac_prog in gawk mawk nawk awk
4354 do
4355   # Extract the first word of "$ac_prog", so it can be a program name with args.
4356 set dummy $ac_prog; ac_word=$2
4357 echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4359 if test "${ac_cv_prog_AWK+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   if test -n "$AWK"; then
4363   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4372     ac_cv_prog_AWK="$ac_prog"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378
4379 fi
4380 fi
4381 AWK=$ac_cv_prog_AWK
4382 if test -n "$AWK"; then
4383   echo "$as_me:$LINENO: result: $AWK" >&5
4384 echo "${ECHO_T}$AWK" >&6
4385 else
4386   echo "$as_me:$LINENO: result: no" >&5
4387 echo "${ECHO_T}no" >&6
4388 fi
4389
4390   test -n "$AWK" && break
4391 done
4392
4393 for ac_prog in jar fastjar gjar
4394 do
4395   # Extract the first word of "$ac_prog", so it can be a program name with args.
4396 set dummy $ac_prog; ac_word=$2
4397 echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4399 if test "${ac_cv_prog_JAR+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   if test -n "$JAR"; then
4403   ac_cv_prog_JAR="$JAR" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408   IFS=$as_save_IFS
4409   test -z "$as_dir" && as_dir=.
4410   for ac_exec_ext in '' $ac_executable_extensions; do
4411   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412     ac_cv_prog_JAR="$ac_prog"
4413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414     break 2
4415   fi
4416 done
4417 done
4418
4419 fi
4420 fi
4421 JAR=$ac_cv_prog_JAR
4422 if test -n "$JAR"; then
4423   echo "$as_me:$LINENO: result: $JAR" >&5
4424 echo "${ECHO_T}$JAR" >&6
4425 else
4426   echo "$as_me:$LINENO: result: no" >&5
4427 echo "${ECHO_T}no" >&6
4428 fi
4429
4430   test -n "$JAR" && break
4431 done
4432 test -n "$JAR" || JAR="no"
4433
4434 # Extract the first word of "zip", so it can be a program name with args.
4435 set dummy zip; ac_word=$2
4436 echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4438 if test "${ac_cv_path_ZIP+set}" = set; then
4439   echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441   case $ZIP in
4442   [\\/]* | ?:[\\/]*)
4443   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4444   ;;
4445   *)
4446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459
4460   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4461   ;;
4462 esac
4463 fi
4464 ZIP=$ac_cv_path_ZIP
4465
4466 if test -n "$ZIP"; then
4467   echo "$as_me:$LINENO: result: $ZIP" >&5
4468 echo "${ECHO_T}$ZIP" >&6
4469 else
4470   echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472 fi
4473
4474 # Extract the first word of "unzip", so it can be a program name with args.
4475 set dummy unzip; ac_word=$2
4476 echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4478 if test "${ac_cv_path_UNZIP+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   case $UNZIP in
4482   [\\/]* | ?:[\\/]*)
4483   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4484   ;;
4485   *)
4486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499
4500   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4501   ;;
4502 esac
4503 fi
4504 UNZIP=$ac_cv_path_UNZIP
4505
4506 if test -n "$UNZIP"; then
4507   echo "$as_me:$LINENO: result: $UNZIP" >&5
4508 echo "${ECHO_T}$UNZIP" >&6
4509 else
4510   echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6
4512 fi
4513
4514
4515 # We need a jar that supports -@.  This is a GNU extension.
4516 if test "$JAR" != no; then
4517    rm -f config-test.jar
4518    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4519    if test -f config-test.jar; then
4520      rm -f config-test.jar
4521    else
4522      JAR=no
4523    fi
4524 fi
4525
4526 # Prefer the jar we found, but fall back to our jar script.
4527 if test "$JAR" = no; then
4528   if test "$ZIP" = no; then
4529     { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4530 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4531    { (exit 1); exit 1; }; }
4532   else
4533     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4534     JAR=`pwd`/scripts/jar
4535   fi
4536 fi
4537
4538 # Find a good install program.  We prefer a C program (faster),
4539 # so one script is as good as another.  But avoid the broken or
4540 # incompatible versions:
4541 # SysV /etc/install, /usr/sbin/install
4542 # SunOS /usr/etc/install
4543 # IRIX /sbin/install
4544 # AIX /bin/install
4545 # AmigaOS /C/install, which installs bootblocks on floppy discs
4546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4549 # OS/2's system install, which has a completely different semantic
4550 # ./install, which can be erroneously created by make from ./install.sh.
4551 # Reject install programs that cannot install multiple files.
4552 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4553 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4554 if test -z "$INSTALL"; then
4555 if test "${ac_cv_path_install+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 for as_dir in $PATH
4560 do
4561   IFS=$as_save_IFS
4562   test -z "$as_dir" && as_dir=.
4563   # Account for people who put trailing slashes in PATH elements.
4564 case $as_dir/ in
4565   ./ | .// | /cC/* | \
4566   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4567   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4568   /usr/ucb/* ) ;;
4569   *)
4570     # OSF1 and SCO ODT 3.0 have their own names for install.
4571     # Don't use installbsd from OSF since it installs stuff as root
4572     # by default.
4573     for ac_prog in ginstall scoinst install; do
4574       for ac_exec_ext in '' $ac_executable_extensions; do
4575         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4576           if test $ac_prog = install &&
4577             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4578             # AIX install.  It has an incompatible calling convention.
4579             :
4580           elif test $ac_prog = install &&
4581             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4582             # program-specific install script used by HP pwplus--don't use.
4583             :
4584           else
4585             rm -rf conftest.one conftest.two conftest.dir
4586             echo one > conftest.one
4587             echo two > conftest.two
4588             mkdir conftest.dir
4589             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4590               test -s conftest.one && test -s conftest.two &&
4591               test -s conftest.dir/conftest.one &&
4592               test -s conftest.dir/conftest.two
4593             then
4594               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4595               break 3
4596             fi
4597           fi
4598         fi
4599       done
4600     done
4601     ;;
4602 esac
4603 done
4604
4605 rm -rf conftest.one conftest.two conftest.dir
4606
4607 fi
4608   if test "${ac_cv_path_install+set}" = set; then
4609     INSTALL=$ac_cv_path_install
4610   else
4611     # As a last resort, use the slow shell script.  Don't cache a
4612     # value for INSTALL within a source directory, because that will
4613     # break other packages using the cache if that directory is
4614     # removed, or if the value is a relative name.
4615     INSTALL=$ac_install_sh
4616   fi
4617 fi
4618 echo "$as_me:$LINENO: result: $INSTALL" >&5
4619 echo "${ECHO_T}$INSTALL" >&6
4620
4621 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4622 # It thinks the first close brace ends the variable substitution.
4623 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4624
4625 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4626
4627 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4628
4629
4630 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4631 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4632     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4633 if test "${enable_maintainer_mode+set}" = set; then
4634   enableval="$enable_maintainer_mode"
4635   USE_MAINTAINER_MODE=$enableval
4636 else
4637   USE_MAINTAINER_MODE=no
4638 fi;
4639   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4640 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4641
4642
4643 if test $USE_MAINTAINER_MODE = yes; then
4644   MAINTAINER_MODE_TRUE=
4645   MAINTAINER_MODE_FALSE='#'
4646 else
4647   MAINTAINER_MODE_TRUE='#'
4648   MAINTAINER_MODE_FALSE=
4649 fi
4650
4651   MAINT=$MAINTAINER_MODE_TRUE
4652
4653
4654
4655
4656
4657 # configure.host sets the following important variables
4658 #       libgcj_cflags    - host specific C compiler flags
4659 #       libgcj_cxxflags  - host specific C++ compiler flags
4660 #       libgcj_javaflags - host specific Java compiler flags
4661
4662 libgcj_cflags=
4663 libgcj_cxxflags=
4664 libgcj_javaflags=
4665
4666 . ${srcdir}/configure.host
4667
4668 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4669 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4670 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4674 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4675   acl_cv_prog_gnu_ld=yes
4676 else
4677   acl_cv_prog_gnu_ld=no
4678 fi
4679 fi
4680 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4681 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4682 with_gnu_ld=$acl_cv_prog_gnu_ld
4683
4684 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4685 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4686 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689
4690 acl_cv_prog_gnu_ld_symbolic=no
4691
4692 if test x"$with_gnu_ld" = x"yes"; then
4693   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4694     acl_cv_prog_gnu_ld_symbolic=yes
4695   fi
4696 fi
4697 fi
4698 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4699 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4700 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4701   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4702 else
4703   SYMBOLIC_LDFLAGS=''
4704 fi
4705
4706 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4707 if test -z "$libgcj_ld_symbolic"; then
4708   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4709 fi
4710
4711 LIBGCJ_CFLAGS="${libgcj_cflags}"
4712 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4713 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4714 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4715 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4716
4717
4718
4719
4720
4721
4722 # Only use libltdl for non-newlib builds.
4723 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4724    echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4726 library_names_spec=
4727 libname_spec='lib$name'
4728 soname_spec=
4729 shrext=".so"
4730 postinstall_cmds=
4731 postuninstall_cmds=
4732 finish_cmds=
4733 finish_eval=
4734 shlibpath_var=
4735 shlibpath_overrides_runpath=unknown
4736 version_type=none
4737 dynamic_linker="$host_os ld.so"
4738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4739 if test "$GCC" = yes; then
4740   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4741   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4742     # if the path contains ";" then we assume it to be the separator
4743     # otherwise default to the standard path separator (i.e. ":") - it is
4744     # assumed that no part of a normal pathname contains ";" but that should
4745     # okay in the real world where ";" in dirpaths is itself problematic.
4746     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4747   else
4748     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4749   fi
4750 else
4751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4752 fi
4753 need_lib_prefix=unknown
4754 hardcode_into_libs=no
4755
4756 # when you set need_version to no, make sure it does not cause -set_version
4757 # flags to be left without arguments
4758 need_version=unknown
4759
4760 case $host_os in
4761 aix3*)
4762   version_type=linux
4763   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4764   shlibpath_var=LIBPATH
4765
4766   # AIX 3 has no versioning support, so we append a major version to the name.
4767   soname_spec='${libname}${release}${shared_ext}$major'
4768   ;;
4769
4770 aix[4-9]*)
4771   version_type=linux
4772   need_lib_prefix=no
4773   need_version=no
4774   hardcode_into_libs=yes
4775   if test "$host_cpu" = ia64; then
4776     # AIX 5 supports IA64
4777     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4778     shlibpath_var=LD_LIBRARY_PATH
4779   else
4780     # With GCC up to 2.95.x, collect2 would create an import file
4781     # for dependence libraries.  The import file would start with
4782     # the line `#! .'.  This would cause the generated library to
4783     # depend on `.', always an invalid library.  This was fixed in
4784     # development snapshots of GCC prior to 3.0.
4785     case $host_os in
4786       aix4 | aix4.[01] | aix4.[01].*)
4787       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4788            echo ' yes '
4789            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4790         :
4791       else
4792         can_build_shared=no
4793       fi
4794       ;;
4795     esac
4796     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4797     # soname into executable. Probably we can add versioning support to
4798     # collect2, so additional links can be useful in future.
4799     if test "$aix_use_runtimelinking" = yes; then
4800       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4801       # instead of lib<name>.a to let people know that these are not
4802       # typical AIX shared libraries.
4803       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4804     else
4805       # We preserve .a as extension for shared libraries through AIX4.2
4806       # and later when we are not doing run time linking.
4807       library_names_spec='${libname}${release}.a $libname.a'
4808       soname_spec='${libname}${release}${shared_ext}$major'
4809     fi
4810     shlibpath_var=LIBPATH
4811   fi
4812   ;;
4813
4814 amigaos*)
4815   library_names_spec='$libname.ixlibrary $libname.a'
4816   # Create ${libname}_ixlibrary.a entries in /sys/libs.
4817   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'
4818   ;;
4819
4820 beos*)
4821   library_names_spec='${libname}${shared_ext}'
4822   dynamic_linker="$host_os ld.so"
4823   shlibpath_var=LIBRARY_PATH
4824   ;;
4825
4826 bsdi4*)
4827   version_type=linux
4828   need_version=no
4829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4830   soname_spec='${libname}${release}${shared_ext}$major'
4831   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4832   shlibpath_var=LD_LIBRARY_PATH
4833   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4834   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4835   # the default ld.so.conf also contains /usr/contrib/lib and
4836   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4837   # libtool to hard-code these into programs
4838   ;;
4839
4840 cygwin* | mingw* | pw32*)
4841   version_type=windows
4842   shrext=".dll"
4843   need_version=no
4844   need_lib_prefix=no
4845
4846   case $GCC,$host_os in
4847   yes,cygwin* | yes,mingw* | yes,pw32*)
4848     library_names_spec='$libname.dll.a'
4849     # DLL is installed to $(libdir)/../bin by postinstall_cmds
4850     postinstall_cmds='base_file=`basename \${file}`~
4851       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4852       dldir=$destdir/`dirname \$dlpath`~
4853       test -d \$dldir || mkdir -p \$dldir~
4854       $install_prog $dir/$dlname \$dldir/$dlname'
4855     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4856       dlpath=$dir/\$dldll~
4857        $rm \$dlpath'
4858     shlibpath_overrides_runpath=yes
4859
4860     case $host_os in
4861     cygwin*)
4862       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4863       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4864       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4865       ;;
4866     mingw*)
4867       # MinGW DLLs use traditional 'lib' prefix
4868       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4869       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4870       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4871         # It is most probably a Windows format PATH printed by
4872         # mingw gcc, but we are running on Cygwin. Gcc prints its search
4873         # path with ; separators, and with drive letters. We can handle the
4874         # drive letters (cygwin fileutils understands them), so leave them,
4875         # especially as we might pass files found there to a mingw objdump,
4876         # which wouldn't understand a cygwinified path. Ahh.
4877         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4878       else
4879         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4880       fi
4881       ;;
4882     pw32*)
4883       # pw32 DLLs use 'pw' prefix rather than 'lib'
4884       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4885       ;;
4886     esac
4887     ;;
4888
4889   *)
4890     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4891     ;;
4892   esac
4893   dynamic_linker='Win32 ld.exe'
4894   # FIXME: first we should search . and the directory the executable is in
4895   shlibpath_var=PATH
4896   ;;
4897
4898 darwin* | rhapsody*)
4899   dynamic_linker="$host_os dyld"
4900   version_type=darwin
4901   need_lib_prefix=no
4902   need_version=no
4903   # FIXME: Relying on posixy $() will cause problems for
4904   #        cross-compilation, but unfortunately the echo tests do not
4905   #        yet detect zsh echo's removal of \ escapes.
4906   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4907   soname_spec='${libname}${release}${major}$shared_ext'
4908   shlibpath_overrides_runpath=yes
4909   shlibpath_var=DYLD_LIBRARY_PATH
4910   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4911   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4912   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4913   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"`
4914   fi
4915   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4916   ;;
4917
4918 dgux*)
4919   version_type=linux
4920   need_lib_prefix=no
4921   need_version=no
4922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4923   soname_spec='${libname}${release}${shared_ext}$major'
4924   shlibpath_var=LD_LIBRARY_PATH
4925   ;;
4926
4927 freebsd1*)
4928   dynamic_linker=no
4929   ;;
4930
4931 freebsd*)
4932   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4933   version_type=freebsd-$objformat
4934   case $version_type in
4935     freebsd-elf*)
4936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4937       need_version=no
4938       need_lib_prefix=no
4939       ;;
4940     freebsd-*)
4941       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4942       need_version=yes
4943       ;;
4944   esac
4945   shlibpath_var=LD_LIBRARY_PATH
4946   case $host_os in
4947   freebsd2*)
4948     shlibpath_overrides_runpath=yes
4949     ;;
4950   freebsd3.01* | freebsdelf3.01*)
4951     shlibpath_overrides_runpath=yes
4952     hardcode_into_libs=yes
4953     ;;
4954   *) # from 3.2 on
4955     shlibpath_overrides_runpath=no
4956     hardcode_into_libs=yes
4957     ;;
4958   esac
4959   ;;
4960
4961 gnu*)
4962   version_type=linux
4963   need_lib_prefix=no
4964   need_version=no
4965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4966   soname_spec='${libname}${release}${shared_ext}$major'
4967   shlibpath_var=LD_LIBRARY_PATH
4968   hardcode_into_libs=yes
4969   ;;
4970
4971 hpux9* | hpux10* | hpux11*)
4972   # Give a soname corresponding to the major version so that dld.sl refuses to
4973   # link against other versions.
4974   version_type=sunos
4975   need_lib_prefix=no
4976   need_version=no
4977   case "$host_cpu" in
4978   ia64*)
4979     shrext='.so'
4980     hardcode_into_libs=yes
4981     dynamic_linker="$host_os dld.so"
4982     shlibpath_var=LD_LIBRARY_PATH
4983     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4984     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4985     soname_spec='${libname}${release}${shared_ext}$major'
4986     if test "X$HPUX_IA64_MODE" = X32; then
4987       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4988     else
4989       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4990     fi
4991     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4992     ;;
4993    hppa*64*)
4994      shrext='.sl'
4995      hardcode_into_libs=yes
4996      dynamic_linker="$host_os dld.sl"
4997      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4998      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4999      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5000      soname_spec='${libname}${release}${shared_ext}$major'
5001      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5002      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5003      ;;
5004    *)
5005     shrext='.sl'
5006     dynamic_linker="$host_os dld.sl"
5007     shlibpath_var=SHLIB_PATH
5008     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5010     soname_spec='${libname}${release}${shared_ext}$major'
5011     ;;
5012   esac
5013   # HP-UX runs *really* slowly unless shared libraries are mode 555.
5014   postinstall_cmds='chmod 555 $lib'
5015   ;;
5016
5017 irix5* | irix6* | nonstopux*)
5018   case $host_os in
5019     nonstopux*) version_type=nonstopux ;;
5020     *)
5021         if test "$lt_cv_prog_gnu_ld" = yes; then
5022                 version_type=linux
5023         else
5024                 version_type=irix
5025         fi ;;
5026   esac
5027   need_lib_prefix=no
5028   need_version=no
5029   soname_spec='${libname}${release}${shared_ext}$major'
5030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5031   case $host_os in
5032   irix5* | nonstopux*)
5033     libsuff= shlibsuff=
5034     ;;
5035   *)
5036     case $LD in # libtool.m4 will add one of these switches to LD
5037     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5038       libsuff= shlibsuff= libmagic=32-bit;;
5039     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5040       libsuff=32 shlibsuff=N32 libmagic=N32;;
5041     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5042       libsuff=64 shlibsuff=64 libmagic=64-bit;;
5043     *) libsuff= shlibsuff= libmagic=never-match;;
5044     esac
5045     ;;
5046   esac
5047   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5048   shlibpath_overrides_runpath=no
5049   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5050   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5051   hardcode_into_libs=yes
5052   ;;
5053
5054 # No shared lib support for Linux oldld, aout, or coff.
5055 linux*oldld* | linux*aout* | linux*coff*)
5056   dynamic_linker=no
5057   ;;
5058
5059 # This must be Linux ELF.
5060 linux*|k*bsd*-gnu)
5061   version_type=linux
5062   need_lib_prefix=no
5063   need_version=no
5064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5065   soname_spec='${libname}${release}${shared_ext}$major'
5066   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5067   shlibpath_var=LD_LIBRARY_PATH
5068   shlibpath_overrides_runpath=no
5069   # This implies no fast_install, which is unacceptable.
5070   # Some rework will be needed to allow for fast_install
5071   # before this can be enabled.
5072   hardcode_into_libs=yes
5073
5074   # We used to test for /lib/ld.so.1 and disable shared libraries on
5075   # powerpc, because MkLinux only supported shared libraries with the
5076   # GNU dynamic linker.  Since this was broken with cross compilers,
5077   # most powerpc-linux boxes support dynamic linking these days and
5078   # people can always --disable-shared, the test was removed, and we
5079   # assume the GNU/Linux dynamic linker is in use.
5080   dynamic_linker='GNU/Linux ld.so'
5081   ;;
5082
5083 netbsd*)
5084   version_type=sunos
5085   need_lib_prefix=no
5086   need_version=no
5087   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5089     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5090     dynamic_linker='NetBSD (a.out) ld.so'
5091   else
5092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5093     soname_spec='${libname}${release}${shared_ext}$major'
5094     dynamic_linker='NetBSD ld.elf_so'
5095   fi
5096   shlibpath_var=LD_LIBRARY_PATH
5097   shlibpath_overrides_runpath=yes
5098   hardcode_into_libs=yes
5099   ;;
5100
5101 newsos6)
5102   version_type=linux
5103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5104   shlibpath_var=LD_LIBRARY_PATH
5105   shlibpath_overrides_runpath=yes
5106   ;;
5107
5108 nto-qnx)
5109   version_type=linux
5110   need_lib_prefix=no
5111   need_version=no
5112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5113   soname_spec='${libname}${release}${shared_ext}$major'
5114   shlibpath_var=LD_LIBRARY_PATH
5115   shlibpath_overrides_runpath=yes
5116   ;;
5117
5118 openbsd*)
5119   version_type=sunos
5120   need_lib_prefix=no
5121   need_version=no
5122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5123   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5124   shlibpath_var=LD_LIBRARY_PATH
5125   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5126     case $host_os in
5127       openbsd2.[89] | openbsd2.[89].*)
5128         shlibpath_overrides_runpath=no
5129         ;;
5130       *)
5131         shlibpath_overrides_runpath=yes
5132         ;;
5133       esac
5134   else
5135     shlibpath_overrides_runpath=yes
5136   fi
5137   ;;
5138
5139 os2*)
5140   libname_spec='$name'
5141   shrext=".dll"
5142   need_lib_prefix=no
5143   library_names_spec='$libname${shared_ext} $libname.a'
5144   dynamic_linker='OS/2 ld.exe'
5145   shlibpath_var=LIBPATH
5146   ;;
5147
5148 osf3* | osf4* | osf5*)
5149   version_type=osf
5150   need_lib_prefix=no
5151   need_version=no
5152   soname_spec='${libname}${release}${shared_ext}$major'
5153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5154   shlibpath_var=LD_LIBRARY_PATH
5155   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5156   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5157   ;;
5158
5159 sco3.2v5*)
5160   version_type=osf
5161   soname_spec='${libname}${release}${shared_ext}$major'
5162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5163   shlibpath_var=LD_LIBRARY_PATH
5164   ;;
5165
5166 solaris*)
5167   version_type=linux
5168   need_lib_prefix=no
5169   need_version=no
5170   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5171   soname_spec='${libname}${release}${shared_ext}$major'
5172   shlibpath_var=LD_LIBRARY_PATH
5173   shlibpath_overrides_runpath=yes
5174   hardcode_into_libs=yes
5175   # ldd complains unless libraries are executable
5176   postinstall_cmds='chmod +x $lib'
5177   ;;
5178
5179 sunos4*)
5180   version_type=sunos
5181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5182   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5183   shlibpath_var=LD_LIBRARY_PATH
5184   shlibpath_overrides_runpath=yes
5185   if test "$with_gnu_ld" = yes; then
5186     need_lib_prefix=no
5187   fi
5188   need_version=yes
5189   ;;
5190
5191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5192   version_type=linux
5193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5194   soname_spec='${libname}${release}${shared_ext}$major'
5195   shlibpath_var=LD_LIBRARY_PATH
5196   case $host_vendor in
5197     sni)
5198       shlibpath_overrides_runpath=no
5199       need_lib_prefix=no
5200       export_dynamic_flag_spec='${wl}-Blargedynsym'
5201       runpath_var=LD_RUN_PATH
5202       ;;
5203     siemens)
5204       need_lib_prefix=no
5205       ;;
5206     motorola)
5207       need_lib_prefix=no
5208       need_version=no
5209       shlibpath_overrides_runpath=no
5210       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5211       ;;
5212   esac
5213   ;;
5214
5215 sysv4*MP*)
5216   if test -d /usr/nec ;then
5217     version_type=linux
5218     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5219     soname_spec='$libname${shared_ext}.$major'
5220     shlibpath_var=LD_LIBRARY_PATH
5221   fi
5222   ;;
5223
5224 uts4*)
5225   version_type=linux
5226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5227   soname_spec='${libname}${release}${shared_ext}$major'
5228   shlibpath_var=LD_LIBRARY_PATH
5229   ;;
5230
5231 *)
5232   dynamic_linker=no
5233   ;;
5234 esac
5235 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5236 echo "${ECHO_T}$dynamic_linker" >&6
5237 test "$dynamic_linker" = no && can_build_shared=no
5238
5239
5240 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5241 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5242 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   libltdl_cv_shlibpath_var="$shlibpath_var"
5246 fi
5247 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5248 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5249 if test -n "$libltdl_cv_shlibpath_var"; then
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5253 _ACEOF
5254
5255 fi
5256
5257 fi
5258
5259                     ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5260
5261
5262 # See if the user has requested runtime debugging.
5263 LIBGCJDEBUG="disable"
5264
5265 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5266 if test "${enable_libgcj_debug+set}" = set; then
5267   enableval="$enable_libgcj_debug"
5268   if test "$enable_libgcj_debug" = yes; then
5269
5270 cat >>confdefs.h <<\_ACEOF
5271 #define __GCJ_DEBUG 1
5272 _ACEOF
5273
5274     LIBGCJDEBUG="enable"
5275   fi
5276 fi;
5277
5278
5279 # Check whether --with-escher or --without-escher was given.
5280 if test "${with_escher+set}" = set; then
5281   withval="$with_escher"
5282
5283 fi;
5284 case "$with_escher" in
5285 "")
5286         use_escher=false
5287         ;;
5288 "no")
5289         use_escher=false
5290         ;;
5291 "yes")
5292         { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5293 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5294    { (exit 1); exit 1; }; }
5295         ;;
5296 *)
5297         use_escher=true
5298         ;;
5299 esac
5300
5301 # Determine which AWT peer libraries to build
5302 # Check whether --enable-java-awt or --disable-java-awt was given.
5303 if test "${enable_java_awt+set}" = set; then
5304   enableval="$enable_java_awt"
5305
5306 fi;
5307
5308 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5309 use_xlib_awt=""
5310 use_gtk_awt=""
5311 use_qt_awt=""
5312 use_x_awt=""
5313 # The default toolkit to use is the first one specified.
5314 TOOLKIT=
5315
5316
5317 for peer in $peerlibs ; do
5318   case $peer in
5319     xlib)
5320       if test "$no_x" = yes; then
5321         echo "*** xlib peers requested but no X library available" 1>&2
5322         exit 1
5323       else
5324         use_xlib_awt="yes"
5325         if test -z "$TOOLKIT"; then
5326            TOOLKIT=gnu.awt.xlib.XToolkit
5327         fi
5328       fi
5329       ;;
5330     gtk)
5331       if test "$no_x" = yes; then
5332          echo "*** gtk peers requested but no X library available" 1>&2
5333          exit 1
5334       else
5335          use_gtk_awt=yes
5336          if test -z "$TOOLKIT"; then
5337             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5338          fi
5339       fi
5340       ;;
5341     qt)
5342       if test "$no_x" = yes; then
5343          # Perhaps we should admit the possibility of embedded Qt.
5344          echo "*** Qt peers requested but no X library available" 1>&2
5345          exit 1
5346       else
5347          use_qt_awt=yes
5348          if test -z "$TOOLKIT"; then
5349             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5350          fi
5351       fi
5352       ;;
5353     x)
5354       use_x_awt=yes
5355       if test -z "$TOOLKIT"; then
5356          TOOLKIT=gnu.java.awt.peer.x.XToolkit
5357       fi
5358       ;;
5359     no)
5360       use_xlib_awt=
5361       use_gtk_awt=
5362       use_qt_awt=
5363       use_x_awt=
5364       break
5365       ;;
5366     *)
5367       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5368       exit 1
5369   esac
5370 done
5371
5372
5373
5374 if test "$use_xlib_awt" = yes; then
5375   XLIB_AWT_TRUE=
5376   XLIB_AWT_FALSE='#'
5377 else
5378   XLIB_AWT_TRUE='#'
5379   XLIB_AWT_FALSE=
5380 fi
5381
5382
5383
5384 if test "$use_x_awt" = yes; then
5385   X_AWT_TRUE=
5386   X_AWT_FALSE='#'
5387 else
5388   X_AWT_TRUE='#'
5389   X_AWT_FALSE=
5390 fi
5391
5392
5393
5394 cat >>confdefs.h <<_ACEOF
5395 #define AWT_TOOLKIT "$TOOLKIT"
5396 _ACEOF
5397
5398
5399
5400 cat >>confdefs.h <<_ACEOF
5401 #define LIBGCJ_PREFIX "$prefix"
5402 _ACEOF
5403
5404
5405 # Create standard.omit based on decisions we just made.
5406 cp $srcdir/standard.omit.in standard.omit
5407 if test "$use_xlib_awt" != yes; then
5408    echo gnu/awt/xlib >> standard.omit
5409    echo gnu/gcj/xlib >> standard.omit
5410 fi
5411 if test "$use_x_awt" != yes; then
5412    echo gnu/java/awt/peer/x >> standard.omit
5413 fi
5414
5415 # Tools that need to be compiled against classpath's tools classes
5416 : > vm-tools-packages
5417 for package in gnu/gcj/tools/gc_analyze ; do
5418     echo $package >> standard.omit
5419     echo $package >> vm-tools-packages
5420 done
5421
5422 if test -z "${with_multisubdir}"; then
5423    builddotdot=.
5424 else
5425    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5426 fi
5427
5428 NATIVE=yes
5429
5430 # Which gcj and host gcj (for ecjx) do we use?
5431 which_gcj=default
5432 host_exeext=${ac_exeext}
5433 GCJ_FOR_ECJX=
5434 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5435 if test -n "${with_cross_host}"; then
5436   # We are being configured with a cross compiler. We can't
5437   # use ac_exeext, because that is for the target platform.
5438   NATIVE=no
5439   cross_host_exeext=
5440   GCJ_FOR_ECJX="${with_cross_host}-gcj"
5441   case "${with_cross_host}" in
5442      *mingw* | *cygwin*)
5443          cross_host_exeext=.exe
5444      ;;
5445   esac
5446   host_exeext=${cross_host_exeext}
5447   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5448      if test x"$build_noncanonical" = x"$with_cross_host"; then
5449         # Ordinary cross (host!=target and host=build)
5450         which_gcj=built
5451      else
5452         # Canadian cross (host!=target and host!=build)
5453         which_gcj=cross
5454      fi
5455   else
5456      which_gcj=cross
5457   fi
5458 else
5459   # We are being configured with a native or crossed-native compiler
5460   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5461      if test x"$build" = x"$host"; then
5462         # True native build (host=target and host=build)
5463         which_gcj=built
5464      else
5465         # Crossed-native build (host=target and host!=build)
5466         which_gcj=cross
5467      fi
5468   else
5469      which_gcj=path
5470   fi
5471 fi
5472 libgcjdir=`${PWDCMD-pwd}`
5473 case $GCJ in
5474 *" -B"*)
5475   # Just in case there is a comma in the build dir, quote it for the
5476   # sed command below.
5477   case $libgcjdir in
5478   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
5479   *) qlibgcjdir=$libgcjdir;;
5480   esac
5481   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
5482   ;;
5483 *)
5484   GCJ=$GCJ" -B$libgcjdir/"
5485   ;;
5486 esac
5487 case "${which_gcj}" in
5488    built)
5489       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5490    ;;
5491    cross)
5492       if test "x${with_newlib}" = "xyes"; then
5493          # FIXME (comment): Why is this needed?
5494          GCC_UNWIND_INCLUDE=
5495       fi
5496       GCJH='$(target_noncanonical)-gcjh'
5497    ;;
5498    path)
5499       GCJH=gcjh
5500    ;;
5501 esac
5502 JAVAC="$GCJ -C"
5503 export JAVAC
5504
5505
5506
5507
5508
5509 # Create it, so that compile/link tests don't fail
5510 test -f libgcj.spec || touch libgcj.spec
5511
5512
5513
5514 # Set up to configure Classpath.
5515 # FIXME: no supported way to pass args in autoconf.
5516 # Disable tool wrappers to avoid ltdl.h configure check.
5517 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5518 ac_configure_args="$ac_configure_args --disable-load-library"
5519 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5520 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5521 dir1=`cd $srcdir && pwd`
5522 dir2=`pwd`
5523 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5524 ac_configure_args="$ac_configure_args --disable-core-jni"
5525 ac_configure_args="$ac_configure_args --disable-examples"
5526 ac_configure_args="$ac_configure_args --with-glibj=build"
5527 if test "$plugin_enabled" != yes; then
5528   ac_configure_args="$ac_configure_args --disable-plugin"
5529 fi
5530 if test "$gconf_enabled" != yes; then
5531   ac_configure_args="$ac_configure_args --disable-gconf-peer"
5532   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5533 fi
5534 if test "$use_gtk_awt" != yes; then
5535   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5536 fi
5537 if test "$use_qt_awt" != yes; then
5538   ac_configure_args="$ac_configure_args --disable-qt-peer"
5539 else
5540   # We need this as qt is disabled by default in classpath.
5541   ac_configure_args="$ac_configure_args --enable-qt-peer"
5542 fi
5543 if test "$use_x_awt" != yes; then
5544   ac_configure_args="$ac_configure_args --without-escher"
5545 else
5546   # We need this as escher is disabled by default in classpath.
5547   if test "$use_escher" != true; then
5548     { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5549 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5550    { (exit 1); exit 1; }; }
5551   else
5552     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5553   fi
5554 fi
5555 if test "x$BUILD_GJDOC" = xno; then
5556   ac_configure_args="$ac_configure_args --disable-gjdoc"
5557 fi
5558 # -Werror causes unavoidable problems in code using alsa.
5559 ac_configure_args="$ac_configure_args --disable-regen-headers"
5560 ac_configure_args="$ac_configure_args --disable-Werror"
5561
5562 # Only use libltdl for non-newlib builds.
5563 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5564      case $enable_ltdl_convenience in
5565   no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5566 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5567    { (exit 1); exit 1; }; } ;;
5568   "") enable_ltdl_convenience=yes
5569       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5570   esac
5571   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5572   LTDLINCL='-I${top_srcdir}/''libltdl'
5573   # For backwards non-gettext consistent compatibility...
5574   INCLTDL="$LTDLINCL"
5575
5576    enable_dlopen=yes
5577
5578
5579
5580    DIRLTDL=libltdl
5581
5582 cat >>confdefs.h <<\_ACEOF
5583 #define USE_LTDL 1
5584 _ACEOF
5585
5586    # Sigh.  Libtool's macro doesn't do the right thing.
5587    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5588    # FIXME: this is a hack.
5589    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5590    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5591 fi
5592
5593
5594
5595 case `pwd` in
5596   *\ * | *\     *)
5597     { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5598 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5599 esac
5600
5601
5602
5603 macro_version='2.2.6'
5604 macro_revision='1.3012'
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 ltmain="$ac_aux_dir/ltmain.sh"
5619
5620 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5621 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5622 if test "${lt_cv_path_SED+set}" = set; then
5623   echo $ECHO_N "(cached) $ECHO_C" >&6
5624 else
5625   # Loop through the user's path and test for sed and gsed.
5626 # Then use that list of sed's as ones to test for truncation.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632   for lt_ac_prog in sed gsed; do
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5635         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5636       fi
5637     done
5638   done
5639 done
5640 IFS=$as_save_IFS
5641 lt_ac_max=0
5642 lt_ac_count=0
5643 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5644 # along with /bin/sed that truncates output.
5645 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5646   test ! -f $lt_ac_sed && continue
5647   cat /dev/null > conftest.in
5648   lt_ac_count=0
5649   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5650   # Check for GNU sed and select it if it is found.
5651   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5652     lt_cv_path_SED=$lt_ac_sed
5653     break
5654   fi
5655   while true; do
5656     cat conftest.in conftest.in >conftest.tmp
5657     mv conftest.tmp conftest.in
5658     cp conftest.in conftest.nl
5659     echo >>conftest.nl
5660     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5661     cmp -s conftest.out conftest.nl || break
5662     # 10000 chars as input seems more than enough
5663     test $lt_ac_count -gt 10 && break
5664     lt_ac_count=`expr $lt_ac_count + 1`
5665     if test $lt_ac_count -gt $lt_ac_max; then
5666       lt_ac_max=$lt_ac_count
5667       lt_cv_path_SED=$lt_ac_sed
5668     fi
5669   done
5670 done
5671
5672 fi
5673
5674 SED=$lt_cv_path_SED
5675
5676 echo "$as_me:$LINENO: result: $SED" >&5
5677 echo "${ECHO_T}$SED" >&6
5678
5679 test -z "$SED" && SED=sed
5680 Xsed="$SED -e 1s/^X//"
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 echo "$as_me:$LINENO: checking for egrep" >&5
5693 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5694 if test "${ac_cv_prog_egrep+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5698     then ac_cv_prog_egrep='grep -E'
5699     else ac_cv_prog_egrep='egrep'
5700     fi
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5703 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5704  EGREP=$ac_cv_prog_egrep
5705
5706
5707 echo "$as_me:$LINENO: checking for fgrep" >&5
5708 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5709 if test "${ac_cv_prog_fgrep+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5713     then ac_cv_prog_fgrep='grep -F'
5714     else ac_cv_prog_fgrep='fgrep'
5715     fi
5716 fi
5717 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5718 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5719  FGREP=$ac_cv_prog_fgrep
5720
5721
5722 test -z "$GREP" && GREP=grep
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5743 if test "${with_gnu_ld+set}" = set; then
5744   withval="$with_gnu_ld"
5745   test "$withval" = no || with_gnu_ld=yes
5746 else
5747   with_gnu_ld=no
5748 fi;
5749 ac_prog=ld
5750 if test "$GCC" = yes; then
5751   # Check if gcc -print-prog-name=ld gives a path.
5752   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5753 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5754   case $host in
5755   *-*-mingw*)
5756     # gcc leaves a trailing carriage return which upsets mingw
5757     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5758   *)
5759     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5760   esac
5761   case $ac_prog in
5762     # Accept absolute paths.
5763     [\\/]* | ?:[\\/]*)
5764       re_direlt='/[^/][^/]*/\.\./'
5765       # Canonicalize the pathname of ld
5766       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5767       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5768         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5769       done
5770       test -z "$LD" && LD="$ac_prog"
5771       ;;
5772   "")
5773     # If it fails, then pretend we aren't using GCC.
5774     ac_prog=ld
5775     ;;
5776   *)
5777     # If it is relative, then search for the first ld in PATH.
5778     with_gnu_ld=unknown
5779     ;;
5780   esac
5781 elif test "$with_gnu_ld" = yes; then
5782   echo "$as_me:$LINENO: checking for GNU ld" >&5
5783 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5784 else
5785   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5786 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5787 fi
5788 if test "${lt_cv_path_LD+set}" = set; then
5789   echo $ECHO_N "(cached) $ECHO_C" >&6
5790 else
5791   if test -z "$LD"; then
5792   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5793   for ac_dir in $PATH; do
5794     IFS="$lt_save_ifs"
5795     test -z "$ac_dir" && ac_dir=.
5796     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5797       lt_cv_path_LD="$ac_dir/$ac_prog"
5798       # Check to see if the program is GNU ld.  I'd rather use --version,
5799       # but apparently some variants of GNU ld only accept -v.
5800       # Break only if it was the GNU/non-GNU ld that we prefer.
5801       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5802       *GNU* | *'with BFD'*)
5803         test "$with_gnu_ld" != no && break
5804         ;;
5805       *)
5806         test "$with_gnu_ld" != yes && break
5807         ;;
5808       esac
5809     fi
5810   done
5811   IFS="$lt_save_ifs"
5812 else
5813   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5814 fi
5815 fi
5816
5817 LD="$lt_cv_path_LD"
5818 if test -n "$LD"; then
5819   echo "$as_me:$LINENO: result: $LD" >&5
5820 echo "${ECHO_T}$LD" >&6
5821 else
5822   echo "$as_me:$LINENO: result: no" >&5
5823 echo "${ECHO_T}no" >&6
5824 fi
5825 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5826 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5827    { (exit 1); exit 1; }; }
5828 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5829 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5830 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5834 case `$LD -v 2>&1 </dev/null` in
5835 *GNU* | *'with BFD'*)
5836   lt_cv_prog_gnu_ld=yes
5837   ;;
5838 *)
5839   lt_cv_prog_gnu_ld=no
5840   ;;
5841 esac
5842 fi
5843 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5844 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5845 with_gnu_ld=$lt_cv_prog_gnu_ld
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5856 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5857 if test "${lt_cv_path_NM+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   if test -n "$NM"; then
5861   # Let the user override the test.
5862   lt_cv_path_NM="$NM"
5863 else
5864   lt_nm_to_check="${ac_tool_prefix}nm"
5865   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5866     lt_nm_to_check="$lt_nm_to_check nm"
5867   fi
5868   for lt_tmp_nm in $lt_nm_to_check; do
5869     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5870     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5871       IFS="$lt_save_ifs"
5872       test -z "$ac_dir" && ac_dir=.
5873       tmp_nm="$ac_dir/$lt_tmp_nm"
5874       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5875         # Check to see if the nm accepts a BSD-compat flag.
5876         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5877         #   nm: unknown option "B" ignored
5878         # Tru64's nm complains that /dev/null is an invalid object file
5879         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5880         */dev/null* | *'Invalid file or object type'*)
5881           lt_cv_path_NM="$tmp_nm -B"
5882           break
5883           ;;
5884         *)
5885           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5886           */dev/null*)
5887             lt_cv_path_NM="$tmp_nm -p"
5888             break
5889             ;;
5890           *)
5891             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5892             continue # so that we can try to find one that supports BSD flags
5893             ;;
5894           esac
5895           ;;
5896         esac
5897       fi
5898     done
5899     IFS="$lt_save_ifs"
5900   done
5901   : ${lt_cv_path_NM=no}
5902 fi
5903 fi
5904 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5905 echo "${ECHO_T}$lt_cv_path_NM" >&6
5906 if test "$lt_cv_path_NM" != "no"; then
5907   NM="$lt_cv_path_NM"
5908 else
5909   # Didn't find any BSD compatible name lister, look for dumpbin.
5910   if test -n "$ac_tool_prefix"; then
5911   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5912   do
5913     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5914 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5915 echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5917 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5918   echo $ECHO_N "(cached) $ECHO_C" >&6
5919 else
5920   if test -n "$DUMPBIN"; then
5921   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5922 else
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924 for as_dir in $PATH
5925 do
5926   IFS=$as_save_IFS
5927   test -z "$as_dir" && as_dir=.
5928   for ac_exec_ext in '' $ac_executable_extensions; do
5929   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5930     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932     break 2
5933   fi
5934 done
5935 done
5936
5937 fi
5938 fi
5939 DUMPBIN=$ac_cv_prog_DUMPBIN
5940 if test -n "$DUMPBIN"; then
5941   echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5942 echo "${ECHO_T}$DUMPBIN" >&6
5943 else
5944   echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6
5946 fi
5947
5948     test -n "$DUMPBIN" && break
5949   done
5950 fi
5951 if test -z "$DUMPBIN"; then
5952   ac_ct_DUMPBIN=$DUMPBIN
5953   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5954 do
5955   # Extract the first word of "$ac_prog", so it can be a program name with args.
5956 set dummy $ac_prog; ac_word=$2
5957 echo "$as_me:$LINENO: checking for $ac_word" >&5
5958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5960   echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962   if test -n "$ac_ct_DUMPBIN"; then
5963   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970   for ac_exec_ext in '' $ac_executable_extensions; do
5971   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977 done
5978
5979 fi
5980 fi
5981 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5982 if test -n "$ac_ct_DUMPBIN"; then
5983   echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5984 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5985 else
5986   echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5988 fi
5989
5990   test -n "$ac_ct_DUMPBIN" && break
5991 done
5992 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5993
5994   DUMPBIN=$ac_ct_DUMPBIN
5995 fi
5996
5997
5998   if test "$DUMPBIN" != ":"; then
5999     NM="$DUMPBIN"
6000   fi
6001 fi
6002 test -z "$NM" && NM=nm
6003
6004
6005
6006
6007
6008
6009 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6010 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
6011 if test "${lt_cv_nm_interface+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   lt_cv_nm_interface="BSD nm"
6015   echo "int some_variable = 0;" > conftest.$ac_ext
6016   (eval echo "\"\$as_me:6016: $ac_compile\"" >&5)
6017   (eval "$ac_compile" 2>conftest.err)
6018   cat conftest.err >&5
6019   (eval echo "\"\$as_me:6019: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6021   cat conftest.err >&5
6022   (eval echo "\"\$as_me:6022: output\"" >&5)
6023   cat conftest.out >&5
6024   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6025     lt_cv_nm_interface="MS dumpbin"
6026   fi
6027   rm -f conftest*
6028 fi
6029 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6030 echo "${ECHO_T}$lt_cv_nm_interface" >&6
6031
6032 # find the maximum length of command line arguments
6033 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6034 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6035 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6036   echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038     i=0
6039   teststring="ABCD"
6040
6041   case $build_os in
6042   msdosdjgpp*)
6043     # On DJGPP, this test can blow up pretty badly due to problems in libc
6044     # (any single argument exceeding 2000 bytes causes a buffer overrun
6045     # during glob expansion).  Even if it were fixed, the result of this
6046     # check would be larger than it should be.
6047     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6048     ;;
6049
6050   gnu*)
6051     # Under GNU Hurd, this test is not required because there is
6052     # no limit to the length of command line arguments.
6053     # Libtool will interpret -1 as no limit whatsoever
6054     lt_cv_sys_max_cmd_len=-1;
6055     ;;
6056
6057   cygwin* | mingw* | cegcc*)
6058     # On Win9x/ME, this test blows up -- it succeeds, but takes
6059     # about 5 minutes as the teststring grows exponentially.
6060     # Worse, since 9x/ME are not pre-emptively multitasking,
6061     # you end up with a "frozen" computer, even though with patience
6062     # the test eventually succeeds (with a max line length of 256k).
6063     # Instead, let's just punt: use the minimum linelength reported by
6064     # all of the supported platforms: 8192 (on NT/2K/XP).
6065     lt_cv_sys_max_cmd_len=8192;
6066     ;;
6067
6068   amigaos*)
6069     # On AmigaOS with pdksh, this test takes hours, literally.
6070     # So we just punt and use a minimum line length of 8192.
6071     lt_cv_sys_max_cmd_len=8192;
6072     ;;
6073
6074   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6075     # This has been around since 386BSD, at least.  Likely further.
6076     if test -x /sbin/sysctl; then
6077       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6078     elif test -x /usr/sbin/sysctl; then
6079       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6080     else
6081       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6082     fi
6083     # And add a safety zone
6084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6085     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6086     ;;
6087
6088   interix*)
6089     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6090     lt_cv_sys_max_cmd_len=196608
6091     ;;
6092
6093   osf*)
6094     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6095     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6096     # nice to cause kernel panics so lets avoid the loop below.
6097     # First set a reasonable default.
6098     lt_cv_sys_max_cmd_len=16384
6099     #
6100     if test -x /sbin/sysconfig; then
6101       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6102         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6103       esac
6104     fi
6105     ;;
6106   sco3.2v5*)
6107     lt_cv_sys_max_cmd_len=102400
6108     ;;
6109   sysv5* | sco5v6* | sysv4.2uw2*)
6110     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6111     if test -n "$kargmax"; then
6112       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6113     else
6114       lt_cv_sys_max_cmd_len=32768
6115     fi
6116     ;;
6117   *)
6118     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6119     if test -n "$lt_cv_sys_max_cmd_len"; then
6120       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6121       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6122     else
6123       # Make teststring a little bigger before we do anything with it.
6124       # a 1K string should be a reasonable start.
6125       for i in 1 2 3 4 5 6 7 8 ; do
6126         teststring=$teststring$teststring
6127       done
6128       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6129       # If test is not a shell built-in, we'll probably end up computing a
6130       # maximum length that is only half of the actual maximum length, but
6131       # we can't tell.
6132       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6133                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6134               test $i != 17 # 1/2 MB should be enough
6135       do
6136         i=`expr $i + 1`
6137         teststring=$teststring$teststring
6138       done
6139       # Only check the string length outside the loop.
6140       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6141       teststring=
6142       # Add a significant safety factor because C++ compilers can tack on
6143       # massive amounts of additional arguments before passing them to the
6144       # linker.  It appears as though 1/2 is a usable value.
6145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6146     fi
6147     ;;
6148   esac
6149
6150 fi
6151
6152 if test -n $lt_cv_sys_max_cmd_len ; then
6153   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6154 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6155 else
6156   echo "$as_me:$LINENO: result: none" >&5
6157 echo "${ECHO_T}none" >&6
6158 fi
6159 max_cmd_len=$lt_cv_sys_max_cmd_len
6160
6161
6162
6163
6164
6165
6166 : ${CP="cp -f"}
6167 : ${MV="mv -f"}
6168 : ${RM="rm -f"}
6169
6170 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6171 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6172 # Try some XSI features
6173 xsi_shell=no
6174 ( _lt_dummy="a/b/c"
6175   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6176       = c,a/b,, \
6177     && eval 'test $(( 1 + 1 )) -eq 2 \
6178     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6179   && xsi_shell=yes
6180 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6181 echo "${ECHO_T}$xsi_shell" >&6
6182
6183
6184 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6185 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6186 lt_shell_append=no
6187 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6188     >/dev/null 2>&1 \
6189   && lt_shell_append=yes
6190 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6191 echo "${ECHO_T}$lt_shell_append" >&6
6192
6193
6194 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6195   lt_unset=unset
6196 else
6197   lt_unset=false
6198 fi
6199
6200
6201
6202
6203
6204 # test EBCDIC or ASCII
6205 case `echo X|tr X '\101'` in
6206  A) # ASCII based system
6207     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6208   lt_SP2NL='tr \040 \012'
6209   lt_NL2SP='tr \015\012 \040\040'
6210   ;;
6211  *) # EBCDIC based system
6212   lt_SP2NL='tr \100 \n'
6213   lt_NL2SP='tr \r\n \100\100'
6214   ;;
6215 esac
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6226 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6227 if test "${lt_cv_ld_reload_flag+set}" = set; then
6228   echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230   lt_cv_ld_reload_flag='-r'
6231 fi
6232 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6233 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6234 reload_flag=$lt_cv_ld_reload_flag
6235 case $reload_flag in
6236 "" | " "*) ;;
6237 *) reload_flag=" $reload_flag" ;;
6238 esac
6239 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6240 case $host_os in
6241   darwin*)
6242     if test "$GCC" = yes; then
6243       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6244     else
6245       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6246     fi
6247     ;;
6248 esac
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 if test -n "$ac_tool_prefix"; then
6259   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6264   echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266   if test -n "$OBJDUMP"; then
6267   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272   IFS=$as_save_IFS
6273   test -z "$as_dir" && as_dir=.
6274   for ac_exec_ext in '' $ac_executable_extensions; do
6275   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6277     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278     break 2
6279   fi
6280 done
6281 done
6282
6283 fi
6284 fi
6285 OBJDUMP=$ac_cv_prog_OBJDUMP
6286 if test -n "$OBJDUMP"; then
6287   echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6288 echo "${ECHO_T}$OBJDUMP" >&6
6289 else
6290   echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6292 fi
6293
6294 fi
6295 if test -z "$ac_cv_prog_OBJDUMP"; then
6296   ac_ct_OBJDUMP=$OBJDUMP
6297   # Extract the first word of "objdump", so it can be a program name with args.
6298 set dummy objdump; ac_word=$2
6299 echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6301 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6302   echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304   if test -n "$ac_ct_OBJDUMP"; then
6305   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310   IFS=$as_save_IFS
6311   test -z "$as_dir" && as_dir=.
6312   for ac_exec_ext in '' $ac_executable_extensions; do
6313   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316     break 2
6317   fi
6318 done
6319 done
6320
6321   test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6322 fi
6323 fi
6324 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6325 if test -n "$ac_ct_OBJDUMP"; then
6326   echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6327 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6328 else
6329   echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6331 fi
6332
6333   OBJDUMP=$ac_ct_OBJDUMP
6334 else
6335   OBJDUMP="$ac_cv_prog_OBJDUMP"
6336 fi
6337
6338 test -z "$OBJDUMP" && OBJDUMP=objdump
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6349 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6350 if test "${lt_cv_deplibs_check_method+set}" = set; then
6351   echo $ECHO_N "(cached) $ECHO_C" >&6
6352 else
6353   lt_cv_file_magic_cmd='$MAGIC_CMD'
6354 lt_cv_file_magic_test_file=
6355 lt_cv_deplibs_check_method='unknown'
6356 # Need to set the preceding variable on all platforms that support
6357 # interlibrary dependencies.
6358 # 'none' -- dependencies not supported.
6359 # `unknown' -- same as none, but documents that we really don't know.
6360 # 'pass_all' -- all dependencies passed with no checks.
6361 # 'test_compile' -- check by making test program.
6362 # 'file_magic [[regex]]' -- check by looking for files in library path
6363 # which responds to the $file_magic_cmd with a given extended regex.
6364 # If you have `file' or equivalent on your system and you're not sure
6365 # whether `pass_all' will *always* work, you probably want this one.
6366
6367 case $host_os in
6368 aix[4-9]*)
6369   lt_cv_deplibs_check_method=pass_all
6370   ;;
6371
6372 beos*)
6373   lt_cv_deplibs_check_method=pass_all
6374   ;;
6375
6376 bsdi[45]*)
6377   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6378   lt_cv_file_magic_cmd='/usr/bin/file -L'
6379   lt_cv_file_magic_test_file=/shlib/libc.so
6380   ;;
6381
6382 cygwin*)
6383   # func_win32_libid is a shell function defined in ltmain.sh
6384   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6385   lt_cv_file_magic_cmd='func_win32_libid'
6386   ;;
6387
6388 mingw* | pw32*)
6389   # Base MSYS/MinGW do not provide the 'file' command needed by
6390   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6391   # unless we find 'file', for example because we are cross-compiling.
6392   if ( file / ) >/dev/null 2>&1; then
6393     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394     lt_cv_file_magic_cmd='func_win32_libid'
6395   else
6396     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6397     lt_cv_file_magic_cmd='$OBJDUMP -f'
6398   fi
6399   ;;
6400
6401 cegcc)
6402   # use the weaker test based on 'objdump'. See mingw*.
6403   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6404   lt_cv_file_magic_cmd='$OBJDUMP -f'
6405   ;;
6406
6407 darwin* | rhapsody*)
6408   lt_cv_deplibs_check_method=pass_all
6409   ;;
6410
6411 freebsd* | dragonfly*)
6412   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6413     case $host_cpu in
6414     i*86 )
6415       # Not sure whether the presence of OpenBSD here was a mistake.
6416       # Let's accept both of them until this is cleared up.
6417       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6418       lt_cv_file_magic_cmd=/usr/bin/file
6419       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6420       ;;
6421     esac
6422   else
6423     lt_cv_deplibs_check_method=pass_all
6424   fi
6425   ;;
6426
6427 gnu*)
6428   lt_cv_deplibs_check_method=pass_all
6429   ;;
6430
6431 hpux10.20* | hpux11*)
6432   lt_cv_file_magic_cmd=/usr/bin/file
6433   case $host_cpu in
6434   ia64*)
6435     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6437     ;;
6438   hppa*64*)
6439     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]'
6440     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6441     ;;
6442   *)
6443     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6444     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6445     ;;
6446   esac
6447   ;;
6448
6449 interix[3-9]*)
6450   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6452   ;;
6453
6454 irix5* | irix6* | nonstopux*)
6455   case $LD in
6456   *-32|*"-32 ") libmagic=32-bit;;
6457   *-n32|*"-n32 ") libmagic=N32;;
6458   *-64|*"-64 ") libmagic=64-bit;;
6459   *) libmagic=never-match;;
6460   esac
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463
6464 # This must be Linux ELF.
6465 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6466   lt_cv_deplibs_check_method=pass_all
6467   ;;
6468
6469 netbsd*)
6470   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6472   else
6473     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6474   fi
6475   ;;
6476
6477 newos6*)
6478   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479   lt_cv_file_magic_cmd=/usr/bin/file
6480   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6481   ;;
6482
6483 *nto* | *qnx*)
6484   lt_cv_deplibs_check_method=pass_all
6485   ;;
6486
6487 openbsd*)
6488   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6490   else
6491     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492   fi
6493   ;;
6494
6495 osf3* | osf4* | osf5*)
6496   lt_cv_deplibs_check_method=pass_all
6497   ;;
6498
6499 rdos*)
6500   lt_cv_deplibs_check_method=pass_all
6501   ;;
6502
6503 solaris*)
6504   lt_cv_deplibs_check_method=pass_all
6505   ;;
6506
6507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508   lt_cv_deplibs_check_method=pass_all
6509   ;;
6510
6511 sysv4 | sysv4.3*)
6512   case $host_vendor in
6513   motorola)
6514     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]'
6515     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6516     ;;
6517   ncr)
6518     lt_cv_deplibs_check_method=pass_all
6519     ;;
6520   sequent)
6521     lt_cv_file_magic_cmd='/bin/file'
6522     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6523     ;;
6524   sni)
6525     lt_cv_file_magic_cmd='/bin/file'
6526     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527     lt_cv_file_magic_test_file=/lib/libc.so
6528     ;;
6529   siemens)
6530     lt_cv_deplibs_check_method=pass_all
6531     ;;
6532   pc)
6533     lt_cv_deplibs_check_method=pass_all
6534     ;;
6535   esac
6536   ;;
6537
6538 tpf*)
6539   lt_cv_deplibs_check_method=pass_all
6540   ;;
6541 esac
6542
6543 fi
6544 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6545 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6546 file_magic_cmd=$lt_cv_file_magic_cmd
6547 deplibs_check_method=$lt_cv_deplibs_check_method
6548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561 if test -n "$ac_tool_prefix"; then
6562   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6566 if test "${ac_cv_prog_AR+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   if test -n "$AR"; then
6570   ac_cv_prog_AR="$AR" # Let the user override the test.
6571 else
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 for as_dir in $PATH
6574 do
6575   IFS=$as_save_IFS
6576   test -z "$as_dir" && as_dir=.
6577   for ac_exec_ext in '' $ac_executable_extensions; do
6578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6579     ac_cv_prog_AR="${ac_tool_prefix}ar"
6580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6581     break 2
6582   fi
6583 done
6584 done
6585
6586 fi
6587 fi
6588 AR=$ac_cv_prog_AR
6589 if test -n "$AR"; then
6590   echo "$as_me:$LINENO: result: $AR" >&5
6591 echo "${ECHO_T}$AR" >&6
6592 else
6593   echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6
6595 fi
6596
6597 fi
6598 if test -z "$ac_cv_prog_AR"; then
6599   ac_ct_AR=$AR
6600   # Extract the first word of "ar", so it can be a program name with args.
6601 set dummy ar; ac_word=$2
6602 echo "$as_me:$LINENO: checking for $ac_word" >&5
6603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6604 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6605   echo $ECHO_N "(cached) $ECHO_C" >&6
6606 else
6607   if test -n "$ac_ct_AR"; then
6608   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6609 else
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 for as_dir in $PATH
6612 do
6613   IFS=$as_save_IFS
6614   test -z "$as_dir" && as_dir=.
6615   for ac_exec_ext in '' $ac_executable_extensions; do
6616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6617     ac_cv_prog_ac_ct_AR="ar"
6618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619     break 2
6620   fi
6621 done
6622 done
6623
6624   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6625 fi
6626 fi
6627 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6628 if test -n "$ac_ct_AR"; then
6629   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6630 echo "${ECHO_T}$ac_ct_AR" >&6
6631 else
6632   echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6634 fi
6635
6636   AR=$ac_ct_AR
6637 else
6638   AR="$ac_cv_prog_AR"
6639 fi
6640
6641 test -z "$AR" && AR=ar
6642 test -z "$AR_FLAGS" && AR_FLAGS=cru
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654 if test -n "$ac_tool_prefix"; then
6655   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6656 set dummy ${ac_tool_prefix}strip; ac_word=$2
6657 echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6659 if test "${ac_cv_prog_STRIP+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   if test -n "$STRIP"; then
6663   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670   for ac_exec_ext in '' $ac_executable_extensions; do
6671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6672     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677 done
6678
6679 fi
6680 fi
6681 STRIP=$ac_cv_prog_STRIP
6682 if test -n "$STRIP"; then
6683   echo "$as_me:$LINENO: result: $STRIP" >&5
6684 echo "${ECHO_T}$STRIP" >&6
6685 else
6686   echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6
6688 fi
6689
6690 fi
6691 if test -z "$ac_cv_prog_STRIP"; then
6692   ac_ct_STRIP=$STRIP
6693   # Extract the first word of "strip", so it can be a program name with args.
6694 set dummy strip; ac_word=$2
6695 echo "$as_me:$LINENO: checking for $ac_word" >&5
6696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6697 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6698   echo $ECHO_N "(cached) $ECHO_C" >&6
6699 else
6700   if test -n "$ac_ct_STRIP"; then
6701   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706   IFS=$as_save_IFS
6707   test -z "$as_dir" && as_dir=.
6708   for ac_exec_ext in '' $ac_executable_extensions; do
6709   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710     ac_cv_prog_ac_ct_STRIP="strip"
6711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712     break 2
6713   fi
6714 done
6715 done
6716
6717   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6718 fi
6719 fi
6720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6721 if test -n "$ac_ct_STRIP"; then
6722   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6723 echo "${ECHO_T}$ac_ct_STRIP" >&6
6724 else
6725   echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6
6727 fi
6728
6729   STRIP=$ac_ct_STRIP
6730 else
6731   STRIP="$ac_cv_prog_STRIP"
6732 fi
6733
6734 test -z "$STRIP" && STRIP=:
6735
6736
6737
6738
6739
6740
6741 if test -n "$ac_tool_prefix"; then
6742   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6744 echo "$as_me:$LINENO: checking for $ac_word" >&5
6745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6746 if test "${ac_cv_prog_RANLIB+set}" = set; then
6747   echo $ECHO_N "(cached) $ECHO_C" >&6
6748 else
6749   if test -n "$RANLIB"; then
6750   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765
6766 fi
6767 fi
6768 RANLIB=$ac_cv_prog_RANLIB
6769 if test -n "$RANLIB"; then
6770   echo "$as_me:$LINENO: result: $RANLIB" >&5
6771 echo "${ECHO_T}$RANLIB" >&6
6772 else
6773   echo "$as_me:$LINENO: result: no" >&5
6774 echo "${ECHO_T}no" >&6
6775 fi
6776
6777 fi
6778 if test -z "$ac_cv_prog_RANLIB"; then
6779   ac_ct_RANLIB=$RANLIB
6780   # Extract the first word of "ranlib", so it can be a program name with args.
6781 set dummy ranlib; ac_word=$2
6782 echo "$as_me:$LINENO: checking for $ac_word" >&5
6783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   if test -n "$ac_ct_RANLIB"; then
6788   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6789 else
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791 for as_dir in $PATH
6792 do
6793   IFS=$as_save_IFS
6794   test -z "$as_dir" && as_dir=.
6795   for ac_exec_ext in '' $ac_executable_extensions; do
6796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6797     ac_cv_prog_ac_ct_RANLIB="ranlib"
6798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799     break 2
6800   fi
6801 done
6802 done
6803
6804   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6805 fi
6806 fi
6807 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6808 if test -n "$ac_ct_RANLIB"; then
6809   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6810 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6811 else
6812   echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6
6814 fi
6815
6816   RANLIB=$ac_ct_RANLIB
6817 else
6818   RANLIB="$ac_cv_prog_RANLIB"
6819 fi
6820
6821 test -z "$RANLIB" && RANLIB=:
6822
6823
6824
6825
6826
6827
6828 # Determine commands to create old-style static archives.
6829 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6830 old_postinstall_cmds='chmod 644 $oldlib'
6831 old_postuninstall_cmds=
6832
6833 if test -n "$RANLIB"; then
6834   case $host_os in
6835   openbsd*)
6836     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6837     ;;
6838   *)
6839     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6840     ;;
6841   esac
6842   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6843 fi
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 # If no C compiler was specified, use CC.
6879 LTCC=${LTCC-"$CC"}
6880
6881 # If no C compiler flags were specified, use CFLAGS.
6882 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6883
6884 # Allow CC to be a program name with arguments.
6885 compiler=$CC
6886
6887
6888 # Check for command to grab the raw symbol name followed by C symbol from nm.
6889 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6890 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6891 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894
6895 # These are sane defaults that work on at least a few old systems.
6896 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6897
6898 # Character class describing NM global symbol codes.
6899 symcode='[BCDEGRST]'
6900
6901 # Regexp to match symbols that can be accessed directly from C.
6902 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6903
6904 # Define system-specific variables.
6905 case $host_os in
6906 aix*)
6907   symcode='[BCDT]'
6908   ;;
6909 cygwin* | mingw* | pw32* | cegcc*)
6910   symcode='[ABCDGISTW]'
6911   ;;
6912 hpux*)
6913   if test "$host_cpu" = ia64; then
6914     symcode='[ABCDEGRST]'
6915   fi
6916   ;;
6917 irix* | nonstopux*)
6918   symcode='[BCDEGRST]'
6919   ;;
6920 osf*)
6921   symcode='[BCDEGQRST]'
6922   ;;
6923 solaris*)
6924   symcode='[BDRT]'
6925   ;;
6926 sco3.2v5*)
6927   symcode='[DT]'
6928   ;;
6929 sysv4.2uw2*)
6930   symcode='[DT]'
6931   ;;
6932 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6933   symcode='[ABDT]'
6934   ;;
6935 sysv4)
6936   symcode='[DFNSTU]'
6937   ;;
6938 esac
6939
6940 # If we're using GNU nm, then use its standard symbol codes.
6941 case `$NM -V 2>&1` in
6942 *GNU* | *'with BFD'*)
6943   symcode='[ABCDGIRSTW]' ;;
6944 esac
6945
6946 # Transform an extracted symbol line into a proper C declaration.
6947 # Some systems (esp. on ia64) link data and code symbols differently,
6948 # so use this general approach.
6949 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6950
6951 # Transform an extracted symbol line into symbol name and symbol address
6952 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6953 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6954
6955 # Handle CRLF in mingw tool chain
6956 opt_cr=
6957 case $build_os in
6958 mingw*)
6959   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6960   ;;
6961 esac
6962
6963 # Try without a prefix underscore, then with it.
6964 for ac_symprfx in "" "_"; do
6965
6966   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6967   symxfrm="\\1 $ac_symprfx\\2 \\2"
6968
6969   # Write the raw and C identifiers.
6970   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6971     # Fake it for dumpbin and say T for any non-static function
6972     # and D for any global variable.
6973     # Also find C++ and __fastcall symbols from MSVC++,
6974     # which start with @ or ?.
6975     lt_cv_sys_global_symbol_pipe="$AWK '"\
6976 "     {last_section=section; section=\$ 3};"\
6977 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6978 "     \$ 0!~/External *\|/{next};"\
6979 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6980 "     {if(hide[section]) next};"\
6981 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6982 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6983 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6984 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6985 "     ' prfx=^$ac_symprfx"
6986   else
6987     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6988   fi
6989
6990   # Check to see that the pipe works correctly.
6991   pipe_works=no
6992
6993   rm -f conftest*
6994   cat > conftest.$ac_ext <<_LT_EOF
6995 #ifdef __cplusplus
6996 extern "C" {
6997 #endif
6998 char nm_test_var;
6999 void nm_test_func(void);
7000 void nm_test_func(void){}
7001 #ifdef __cplusplus
7002 }
7003 #endif
7004 int main(){nm_test_var='a';nm_test_func();return(0);}
7005 _LT_EOF
7006
7007   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7008   (eval $ac_compile) 2>&5
7009   ac_status=$?
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; then
7012     # Now try to grab the symbols.
7013     nlist=conftest.nm
7014     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7015   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && test -s "$nlist"; then
7019       # Try sorting and uniquifying the output.
7020       if sort "$nlist" | uniq > "$nlist"T; then
7021         mv -f "$nlist"T "$nlist"
7022       else
7023         rm -f "$nlist"T
7024       fi
7025
7026       # Make sure that we snagged all the symbols we need.
7027       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7028         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7029           cat <<_LT_EOF > conftest.$ac_ext
7030 #ifdef __cplusplus
7031 extern "C" {
7032 #endif
7033
7034 _LT_EOF
7035           # Now generate the symbol file.
7036           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7037
7038           cat <<_LT_EOF >> conftest.$ac_ext
7039
7040 /* The mapping between symbol names and symbols.  */
7041 const struct {
7042   const char *name;
7043   void       *address;
7044 }
7045 lt__PROGRAM__LTX_preloaded_symbols[] =
7046 {
7047   { "@PROGRAM@", (void *) 0 },
7048 _LT_EOF
7049           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7050           cat <<\_LT_EOF >> conftest.$ac_ext
7051   {0, (void *) 0}
7052 };
7053
7054 /* This works around a problem in FreeBSD linker */
7055 #ifdef FREEBSD_WORKAROUND
7056 static const void *lt_preloaded_setup() {
7057   return lt__PROGRAM__LTX_preloaded_symbols;
7058 }
7059 #endif
7060
7061 #ifdef __cplusplus
7062 }
7063 #endif
7064 _LT_EOF
7065           # Now try linking the two files.
7066           mv conftest.$ac_objext conftstm.$ac_objext
7067           lt_save_LIBS="$LIBS"
7068           lt_save_CFLAGS="$CFLAGS"
7069           LIBS="conftstm.$ac_objext"
7070           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7071           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072   (eval $ac_link) 2>&5
7073   ac_status=$?
7074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7076             pipe_works=yes
7077           fi
7078           LIBS="$lt_save_LIBS"
7079           CFLAGS="$lt_save_CFLAGS"
7080         else
7081           echo "cannot find nm_test_func in $nlist" >&5
7082         fi
7083       else
7084         echo "cannot find nm_test_var in $nlist" >&5
7085       fi
7086     else
7087       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7088     fi
7089   else
7090     echo "$progname: failed program was:" >&5
7091     cat conftest.$ac_ext >&5
7092   fi
7093   rm -rf conftest* conftst*
7094
7095   # Do not use the global_symbol_pipe unless it works.
7096   if test "$pipe_works" = yes; then
7097     break
7098   else
7099     lt_cv_sys_global_symbol_pipe=
7100   fi
7101 done
7102
7103 fi
7104
7105 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7106   lt_cv_sys_global_symbol_to_cdecl=
7107 fi
7108 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7109   echo "$as_me:$LINENO: result: failed" >&5
7110 echo "${ECHO_T}failed" >&6
7111 else
7112   echo "$as_me:$LINENO: result: ok" >&5
7113 echo "${ECHO_T}ok" >&6
7114 fi
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7139 if test "${enable_libtool_lock+set}" = set; then
7140   enableval="$enable_libtool_lock"
7141
7142 fi;
7143 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7144
7145 # Some flags need to be propagated to the compiler or linker for good
7146 # libtool support.
7147 case $host in
7148 ia64-*-hpux*)
7149   # Find out which ABI we are using.
7150   echo 'int i;' > conftest.$ac_ext
7151   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7152   (eval $ac_compile) 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; then
7156     case `/usr/bin/file conftest.$ac_objext` in
7157       *ELF-32*)
7158         HPUX_IA64_MODE="32"
7159         ;;
7160       *ELF-64*)
7161         HPUX_IA64_MODE="64"
7162         ;;
7163     esac
7164   fi
7165   rm -rf conftest*
7166   ;;
7167 *-*-irix6*)
7168   # Find out which ABI we are using.
7169   echo '#line 7169 "configure"' > conftest.$ac_ext
7170   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7171   (eval $ac_compile) 2>&5
7172   ac_status=$?
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); }; then
7175     if test "$lt_cv_prog_gnu_ld" = yes; then
7176       case `/usr/bin/file conftest.$ac_objext` in
7177         *32-bit*)
7178           LD="${LD-ld} -melf32bsmip"
7179           ;;
7180         *N32*)
7181           LD="${LD-ld} -melf32bmipn32"
7182           ;;
7183         *64-bit*)
7184           LD="${LD-ld} -melf64bmip"
7185         ;;
7186       esac
7187     else
7188       case `/usr/bin/file conftest.$ac_objext` in
7189         *32-bit*)
7190           LD="${LD-ld} -32"
7191           ;;
7192         *N32*)
7193           LD="${LD-ld} -n32"
7194           ;;
7195         *64-bit*)
7196           LD="${LD-ld} -64"
7197           ;;
7198       esac
7199     fi
7200   fi
7201   rm -rf conftest*
7202   ;;
7203
7204 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7205 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7206   # Find out which ABI we are using.
7207   echo 'int i;' > conftest.$ac_ext
7208   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209   (eval $ac_compile) 2>&5
7210   ac_status=$?
7211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212   (exit $ac_status); }; then
7213     case `/usr/bin/file conftest.o` in
7214       *32-bit*)
7215         case $host in
7216           x86_64-*kfreebsd*-gnu)
7217             LD="${LD-ld} -m elf_i386_fbsd"
7218             ;;
7219           x86_64-*linux*)
7220             LD="${LD-ld} -m elf_i386"
7221             ;;
7222           ppc64-*linux*|powerpc64-*linux*)
7223             LD="${LD-ld} -m elf32ppclinux"
7224             ;;
7225           s390x-*linux*)
7226             LD="${LD-ld} -m elf_s390"
7227             ;;
7228           sparc64-*linux*)
7229             LD="${LD-ld} -m elf32_sparc"
7230             ;;
7231         esac
7232         ;;
7233       *64-bit*)
7234         case $host in
7235           x86_64-*kfreebsd*-gnu)
7236             LD="${LD-ld} -m elf_x86_64_fbsd"
7237             ;;
7238           x86_64-*linux*)
7239             LD="${LD-ld} -m elf_x86_64"
7240             ;;
7241           ppc*-*linux*|powerpc*-*linux*)
7242             LD="${LD-ld} -m elf64ppc"
7243             ;;
7244           s390*-*linux*|s390*-*tpf*)
7245             LD="${LD-ld} -m elf64_s390"
7246             ;;
7247           sparc*-*linux*)
7248             LD="${LD-ld} -m elf64_sparc"
7249             ;;
7250         esac
7251         ;;
7252     esac
7253   fi
7254   rm -rf conftest*
7255   ;;
7256
7257 *-*-sco3.2v5*)
7258   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7259   SAVE_CFLAGS="$CFLAGS"
7260   CFLAGS="$CFLAGS -belf"
7261   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7262 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7263 if test "${lt_cv_cc_needs_belf+set}" = set; then
7264   echo $ECHO_N "(cached) $ECHO_C" >&6
7265 else
7266   ac_ext=c
7267 ac_cpp='$CPP $CPPFLAGS'
7268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7271
7272      if test x$gcc_no_link = xyes; then
7273   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7274 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7275    { (exit 1); exit 1; }; }
7276 fi
7277 cat >conftest.$ac_ext <<_ACEOF
7278 /* confdefs.h.  */
7279 _ACEOF
7280 cat confdefs.h >>conftest.$ac_ext
7281 cat >>conftest.$ac_ext <<_ACEOF
7282 /* end confdefs.h.  */
7283
7284 int
7285 main ()
7286 {
7287
7288   ;
7289   return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext conftest$ac_exeext
7293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7294   (eval $ac_link) 2>conftest.er1
7295   ac_status=$?
7296   grep -v '^ *+' conftest.er1 >conftest.err
7297   rm -f conftest.er1
7298   cat conftest.err >&5
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); } &&
7301          { ac_try='test -z "$ac_c_werror_flag"
7302                          || test ! -s conftest.err'
7303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304   (eval $ac_try) 2>&5
7305   ac_status=$?
7306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307   (exit $ac_status); }; } &&
7308          { ac_try='test -s conftest$ac_exeext'
7309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7310   (eval $ac_try) 2>&5
7311   ac_status=$?
7312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); }; }; then
7314   lt_cv_cc_needs_belf=yes
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 lt_cv_cc_needs_belf=no
7320 fi
7321 rm -f conftest.err conftest.$ac_objext \
7322       conftest$ac_exeext conftest.$ac_ext
7323      ac_ext=c
7324 ac_cpp='$CPP $CPPFLAGS'
7325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
7329 fi
7330 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7331 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7332   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7333     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7334     CFLAGS="$SAVE_CFLAGS"
7335   fi
7336   ;;
7337 sparc*-*solaris*)
7338   # Find out which ABI we are using.
7339   echo 'int i;' > conftest.$ac_ext
7340   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7341   (eval $ac_compile) 2>&5
7342   ac_status=$?
7343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344   (exit $ac_status); }; then
7345     case `/usr/bin/file conftest.o` in
7346     *64-bit*)
7347       case $lt_cv_prog_gnu_ld in
7348       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7349       *)
7350         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7351           LD="${LD-ld} -64"
7352         fi
7353         ;;
7354       esac
7355       ;;
7356     esac
7357   fi
7358   rm -rf conftest*
7359   ;;
7360 esac
7361
7362 need_locks="$enable_libtool_lock"
7363
7364
7365   case $host_os in
7366     rhapsody* | darwin*)
7367     if test -n "$ac_tool_prefix"; then
7368   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7373   echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375   if test -n "$DSYMUTIL"; then
7376   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383   for ac_exec_ext in '' $ac_executable_extensions; do
7384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390 done
7391
7392 fi
7393 fi
7394 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7395 if test -n "$DSYMUTIL"; then
7396   echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7397 echo "${ECHO_T}$DSYMUTIL" >&6
7398 else
7399   echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7401 fi
7402
7403 fi
7404 if test -z "$ac_cv_prog_DSYMUTIL"; then
7405   ac_ct_DSYMUTIL=$DSYMUTIL
7406   # Extract the first word of "dsymutil", so it can be a program name with args.
7407 set dummy dsymutil; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   if test -n "$ac_ct_DSYMUTIL"; then
7414   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7418 do
7419   IFS=$as_save_IFS
7420   test -z "$as_dir" && as_dir=.
7421   for ac_exec_ext in '' $ac_executable_extensions; do
7422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425     break 2
7426   fi
7427 done
7428 done
7429
7430   test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7431 fi
7432 fi
7433 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7434 if test -n "$ac_ct_DSYMUTIL"; then
7435   echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7436 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7437 else
7438   echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440 fi
7441
7442   DSYMUTIL=$ac_ct_DSYMUTIL
7443 else
7444   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7445 fi
7446
7447     if test -n "$ac_tool_prefix"; then
7448   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7450 echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7452 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7453   echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455   if test -n "$NMEDIT"; then
7456   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7457 else
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 for as_dir in $PATH
7460 do
7461   IFS=$as_save_IFS
7462   test -z "$as_dir" && as_dir=.
7463   for ac_exec_ext in '' $ac_executable_extensions; do
7464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7465     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467     break 2
7468   fi
7469 done
7470 done
7471
7472 fi
7473 fi
7474 NMEDIT=$ac_cv_prog_NMEDIT
7475 if test -n "$NMEDIT"; then
7476   echo "$as_me:$LINENO: result: $NMEDIT" >&5
7477 echo "${ECHO_T}$NMEDIT" >&6
7478 else
7479   echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7481 fi
7482
7483 fi
7484 if test -z "$ac_cv_prog_NMEDIT"; then
7485   ac_ct_NMEDIT=$NMEDIT
7486   # Extract the first word of "nmedit", so it can be a program name with args.
7487 set dummy nmedit; ac_word=$2
7488 echo "$as_me:$LINENO: checking for $ac_word" >&5
7489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7490 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7491   echo $ECHO_N "(cached) $ECHO_C" >&6
7492 else
7493   if test -n "$ac_ct_NMEDIT"; then
7494   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7495 else
7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 for as_dir in $PATH
7498 do
7499   IFS=$as_save_IFS
7500   test -z "$as_dir" && as_dir=.
7501   for ac_exec_ext in '' $ac_executable_extensions; do
7502   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7503     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7505     break 2
7506   fi
7507 done
7508 done
7509
7510   test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7511 fi
7512 fi
7513 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7514 if test -n "$ac_ct_NMEDIT"; then
7515   echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7516 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7517 else
7518   echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6
7520 fi
7521
7522   NMEDIT=$ac_ct_NMEDIT
7523 else
7524   NMEDIT="$ac_cv_prog_NMEDIT"
7525 fi
7526
7527     if test -n "$ac_tool_prefix"; then
7528   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7530 echo "$as_me:$LINENO: checking for $ac_word" >&5
7531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7532 if test "${ac_cv_prog_LIPO+set}" = set; then
7533   echo $ECHO_N "(cached) $ECHO_C" >&6
7534 else
7535   if test -n "$LIPO"; then
7536   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543   for ac_exec_ext in '' $ac_executable_extensions; do
7544   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550 done
7551
7552 fi
7553 fi
7554 LIPO=$ac_cv_prog_LIPO
7555 if test -n "$LIPO"; then
7556   echo "$as_me:$LINENO: result: $LIPO" >&5
7557 echo "${ECHO_T}$LIPO" >&6
7558 else
7559   echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6
7561 fi
7562
7563 fi
7564 if test -z "$ac_cv_prog_LIPO"; then
7565   ac_ct_LIPO=$LIPO
7566   # Extract the first word of "lipo", so it can be a program name with args.
7567 set dummy lipo; ac_word=$2
7568 echo "$as_me:$LINENO: checking for $ac_word" >&5
7569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7570 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   if test -n "$ac_ct_LIPO"; then
7574   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583     ac_cv_prog_ac_ct_LIPO="lipo"
7584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588 done
7589
7590   test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7591 fi
7592 fi
7593 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7594 if test -n "$ac_ct_LIPO"; then
7595   echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7596 echo "${ECHO_T}$ac_ct_LIPO" >&6
7597 else
7598   echo "$as_me:$LINENO: result: no" >&5
7599 echo "${ECHO_T}no" >&6
7600 fi
7601
7602   LIPO=$ac_ct_LIPO
7603 else
7604   LIPO="$ac_cv_prog_LIPO"
7605 fi
7606
7607     if test -n "$ac_tool_prefix"; then
7608   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}otool; ac_word=$2
7610 echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612 if test "${ac_cv_prog_OTOOL+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   if test -n "$OTOOL"; then
7616   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621   IFS=$as_save_IFS
7622   test -z "$as_dir" && as_dir=.
7623   for ac_exec_ext in '' $ac_executable_extensions; do
7624   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627     break 2
7628   fi
7629 done
7630 done
7631
7632 fi
7633 fi
7634 OTOOL=$ac_cv_prog_OTOOL
7635 if test -n "$OTOOL"; then
7636   echo "$as_me:$LINENO: result: $OTOOL" >&5
7637 echo "${ECHO_T}$OTOOL" >&6
7638 else
7639   echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6
7641 fi
7642
7643 fi
7644 if test -z "$ac_cv_prog_OTOOL"; then
7645   ac_ct_OTOOL=$OTOOL
7646   # Extract the first word of "otool", so it can be a program name with args.
7647 set dummy otool; ac_word=$2
7648 echo "$as_me:$LINENO: checking for $ac_word" >&5
7649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7650 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7651   echo $ECHO_N "(cached) $ECHO_C" >&6
7652 else
7653   if test -n "$ac_ct_OTOOL"; then
7654   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661   for ac_exec_ext in '' $ac_executable_extensions; do
7662   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663     ac_cv_prog_ac_ct_OTOOL="otool"
7664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665     break 2
7666   fi
7667 done
7668 done
7669
7670   test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7671 fi
7672 fi
7673 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7674 if test -n "$ac_ct_OTOOL"; then
7675   echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7676 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7677 else
7678   echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6
7680 fi
7681
7682   OTOOL=$ac_ct_OTOOL
7683 else
7684   OTOOL="$ac_cv_prog_OTOOL"
7685 fi
7686
7687     if test -n "$ac_tool_prefix"; then
7688   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7690 echo "$as_me:$LINENO: checking for $ac_word" >&5
7691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7693   echo $ECHO_N "(cached) $ECHO_C" >&6
7694 else
7695   if test -n "$OTOOL64"; then
7696   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701   IFS=$as_save_IFS
7702   test -z "$as_dir" && as_dir=.
7703   for ac_exec_ext in '' $ac_executable_extensions; do
7704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707     break 2
7708   fi
7709 done
7710 done
7711
7712 fi
7713 fi
7714 OTOOL64=$ac_cv_prog_OTOOL64
7715 if test -n "$OTOOL64"; then
7716   echo "$as_me:$LINENO: result: $OTOOL64" >&5
7717 echo "${ECHO_T}$OTOOL64" >&6
7718 else
7719   echo "$as_me:$LINENO: result: no" >&5
7720 echo "${ECHO_T}no" >&6
7721 fi
7722
7723 fi
7724 if test -z "$ac_cv_prog_OTOOL64"; then
7725   ac_ct_OTOOL64=$OTOOL64
7726   # Extract the first word of "otool64", so it can be a program name with args.
7727 set dummy otool64; ac_word=$2
7728 echo "$as_me:$LINENO: checking for $ac_word" >&5
7729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   if test -n "$ac_ct_OTOOL64"; then
7734   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739   IFS=$as_save_IFS
7740   test -z "$as_dir" && as_dir=.
7741   for ac_exec_ext in '' $ac_executable_extensions; do
7742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743     ac_cv_prog_ac_ct_OTOOL64="otool64"
7744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745     break 2
7746   fi
7747 done
7748 done
7749
7750   test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7751 fi
7752 fi
7753 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7754 if test -n "$ac_ct_OTOOL64"; then
7755   echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7756 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7757 else
7758   echo "$as_me:$LINENO: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7760 fi
7761
7762   OTOOL64=$ac_ct_OTOOL64
7763 else
7764   OTOOL64="$ac_cv_prog_OTOOL64"
7765 fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793     echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7794 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7795 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7796   echo $ECHO_N "(cached) $ECHO_C" >&6
7797 else
7798   lt_cv_apple_cc_single_mod=no
7799       if test -z "${LT_MULTI_MODULE}"; then
7800         # By default we will add the -single_module flag. You can override
7801         # by either setting the environment variable LT_MULTI_MODULE
7802         # non-empty at configure time, or by adding -multi_module to the
7803         # link flags.
7804         rm -rf libconftest.dylib*
7805         echo "int foo(void){return 1;}" > conftest.c
7806         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7807 -dynamiclib -Wl,-single_module conftest.c" >&5
7808         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7809           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7810         _lt_result=$?
7811         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7812           lt_cv_apple_cc_single_mod=yes
7813         else
7814           cat conftest.err >&5
7815         fi
7816         rm -rf libconftest.dylib*
7817         rm -f conftest.*
7818       fi
7819 fi
7820 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7821 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7822     echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7823 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7824 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7825   echo $ECHO_N "(cached) $ECHO_C" >&6
7826 else
7827   lt_cv_ld_exported_symbols_list=no
7828       save_LDFLAGS=$LDFLAGS
7829       echo "_main" > conftest.sym
7830       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7831       if test x$gcc_no_link = xyes; then
7832   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7834    { (exit 1); exit 1; }; }
7835 fi
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842
7843 int
7844 main ()
7845 {
7846
7847   ;
7848   return 0;
7849 }
7850 _ACEOF
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7853   (eval $ac_link) 2>conftest.er1
7854   ac_status=$?
7855   grep -v '^ *+' conftest.er1 >conftest.err
7856   rm -f conftest.er1
7857   cat conftest.err >&5
7858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859   (exit $ac_status); } &&
7860          { ac_try='test -z "$ac_c_werror_flag"
7861                          || test ! -s conftest.err'
7862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7863   (eval $ac_try) 2>&5
7864   ac_status=$?
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); }; } &&
7867          { ac_try='test -s conftest$ac_exeext'
7868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7869   (eval $ac_try) 2>&5
7870   ac_status=$?
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); }; }; then
7873   lt_cv_ld_exported_symbols_list=yes
7874 else
7875   echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 lt_cv_ld_exported_symbols_list=no
7879 fi
7880 rm -f conftest.err conftest.$ac_objext \
7881       conftest$ac_exeext conftest.$ac_ext
7882         LDFLAGS="$save_LDFLAGS"
7883
7884 fi
7885 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7886 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7887     case $host_os in
7888     rhapsody* | darwin1.[012])
7889       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7890     darwin1.*)
7891       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7892     darwin*) # darwin 5.x on
7893       # if running on 10.5 or later, the deployment target defaults
7894       # to the OS version, if on x86, and 10.4, the deployment
7895       # target defaults to 10.4. Don't you love it?
7896       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7897         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7898           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7899         10.[012]*)
7900           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7901         10.*)
7902           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7903       esac
7904     ;;
7905   esac
7906     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7907       _lt_dar_single_mod='$single_module'
7908     fi
7909     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7910       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7911     else
7912       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7913     fi
7914     if test "$DSYMUTIL" != ":"; then
7915       _lt_dsymutil='~$DSYMUTIL $lib || :'
7916     else
7917       _lt_dsymutil=
7918     fi
7919     ;;
7920   esac
7921
7922 ac_ext=c
7923 ac_cpp='$CPP $CPPFLAGS'
7924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7927 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7928 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7929 # On Suns, sometimes $CPP names a directory.
7930 if test -n "$CPP" && test -d "$CPP"; then
7931   CPP=
7932 fi
7933 if test -z "$CPP"; then
7934   if test "${ac_cv_prog_CPP+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937       # Double quotes because CPP needs to be expanded
7938     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7939     do
7940       ac_preproc_ok=false
7941 for ac_c_preproc_warn_flag in '' yes
7942 do
7943   # Use a header file that comes with gcc, so configuring glibc
7944   # with a fresh cross-compiler works.
7945   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7946   # <limits.h> exists even on freestanding compilers.
7947   # On the NeXT, cc -E runs the code through the compiler's parser,
7948   # not just through cpp. "Syntax error" is here to catch this case.
7949   cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 #ifdef __STDC__
7956 # include <limits.h>
7957 #else
7958 # include <assert.h>
7959 #endif
7960                      Syntax error
7961 _ACEOF
7962 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7963   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7964   ac_status=$?
7965   grep -v '^ *+' conftest.er1 >conftest.err
7966   rm -f conftest.er1
7967   cat conftest.err >&5
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } >/dev/null; then
7970   if test -s conftest.err; then
7971     ac_cpp_err=$ac_c_preproc_warn_flag
7972     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7973   else
7974     ac_cpp_err=
7975   fi
7976 else
7977   ac_cpp_err=yes
7978 fi
7979 if test -z "$ac_cpp_err"; then
7980   :
7981 else
7982   echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7984
7985   # Broken: fails on valid input.
7986 continue
7987 fi
7988 rm -f conftest.err conftest.$ac_ext
7989
7990   # OK, works on sane cases.  Now check whether non-existent headers
7991   # can be detected and how.
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 #include <ac_nonexistent.h>
7999 _ACEOF
8000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8001   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } >/dev/null; then
8008   if test -s conftest.err; then
8009     ac_cpp_err=$ac_c_preproc_warn_flag
8010     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8011   else
8012     ac_cpp_err=
8013   fi
8014 else
8015   ac_cpp_err=yes
8016 fi
8017 if test -z "$ac_cpp_err"; then
8018   # Broken: success on invalid input.
8019 continue
8020 else
8021   echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8023
8024   # Passes both tests.
8025 ac_preproc_ok=:
8026 break
8027 fi
8028 rm -f conftest.err conftest.$ac_ext
8029
8030 done
8031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8032 rm -f conftest.err conftest.$ac_ext
8033 if $ac_preproc_ok; then
8034   break
8035 fi
8036
8037     done
8038     ac_cv_prog_CPP=$CPP
8039
8040 fi
8041   CPP=$ac_cv_prog_CPP
8042 else
8043   ac_cv_prog_CPP=$CPP
8044 fi
8045 echo "$as_me:$LINENO: result: $CPP" >&5
8046 echo "${ECHO_T}$CPP" >&6
8047 ac_preproc_ok=false
8048 for ac_c_preproc_warn_flag in '' yes
8049 do
8050   # Use a header file that comes with gcc, so configuring glibc
8051   # with a fresh cross-compiler works.
8052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8053   # <limits.h> exists even on freestanding compilers.
8054   # On the NeXT, cc -E runs the code through the compiler's parser,
8055   # not just through cpp. "Syntax error" is here to catch this case.
8056   cat >conftest.$ac_ext <<_ACEOF
8057 /* confdefs.h.  */
8058 _ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h.  */
8062 #ifdef __STDC__
8063 # include <limits.h>
8064 #else
8065 # include <assert.h>
8066 #endif
8067                      Syntax error
8068 _ACEOF
8069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8071   ac_status=$?
8072   grep -v '^ *+' conftest.er1 >conftest.err
8073   rm -f conftest.er1
8074   cat conftest.err >&5
8075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076   (exit $ac_status); } >/dev/null; then
8077   if test -s conftest.err; then
8078     ac_cpp_err=$ac_c_preproc_warn_flag
8079     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8080   else
8081     ac_cpp_err=
8082   fi
8083 else
8084   ac_cpp_err=yes
8085 fi
8086 if test -z "$ac_cpp_err"; then
8087   :
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092   # Broken: fails on valid input.
8093 continue
8094 fi
8095 rm -f conftest.err conftest.$ac_ext
8096
8097   # OK, works on sane cases.  Now check whether non-existent headers
8098   # can be detected and how.
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <ac_nonexistent.h>
8106 _ACEOF
8107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8108   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8109   ac_status=$?
8110   grep -v '^ *+' conftest.er1 >conftest.err
8111   rm -f conftest.er1
8112   cat conftest.err >&5
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } >/dev/null; then
8115   if test -s conftest.err; then
8116     ac_cpp_err=$ac_c_preproc_warn_flag
8117     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8118   else
8119     ac_cpp_err=
8120   fi
8121 else
8122   ac_cpp_err=yes
8123 fi
8124 if test -z "$ac_cpp_err"; then
8125   # Broken: success on invalid input.
8126 continue
8127 else
8128   echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131   # Passes both tests.
8132 ac_preproc_ok=:
8133 break
8134 fi
8135 rm -f conftest.err conftest.$ac_ext
8136
8137 done
8138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8139 rm -f conftest.err conftest.$ac_ext
8140 if $ac_preproc_ok; then
8141   :
8142 else
8143   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8144 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8145 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8146 See \`config.log' for more details." >&5
8147 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8148 See \`config.log' for more details." >&2;}
8149    { (exit 1); exit 1; }; }; }
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
8159 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8160 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8161 if test "${ac_cv_header_stdc+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 #include <stdlib.h>
8171 #include <stdarg.h>
8172 #include <string.h>
8173 #include <float.h>
8174
8175 int
8176 main ()
8177 {
8178
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185   (eval $ac_compile) 2>conftest.er1
8186   ac_status=$?
8187   grep -v '^ *+' conftest.er1 >conftest.err
8188   rm -f conftest.er1
8189   cat conftest.err >&5
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); } &&
8192          { ac_try='test -z "$ac_c_werror_flag"
8193                          || test ! -s conftest.err'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; } &&
8199          { ac_try='test -s conftest.$ac_objext'
8200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201   (eval $ac_try) 2>&5
8202   ac_status=$?
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); }; }; then
8205   ac_cv_header_stdc=yes
8206 else
8207   echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210 ac_cv_header_stdc=no
8211 fi
8212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8213
8214 if test $ac_cv_header_stdc = yes; then
8215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 #include <string.h>
8223
8224 _ACEOF
8225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8226   $EGREP "memchr" >/dev/null 2>&1; then
8227   :
8228 else
8229   ac_cv_header_stdc=no
8230 fi
8231 rm -f conftest*
8232
8233 fi
8234
8235 if test $ac_cv_header_stdc = yes; then
8236   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 #include <stdlib.h>
8244
8245 _ACEOF
8246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8247   $EGREP "free" >/dev/null 2>&1; then
8248   :
8249 else
8250   ac_cv_header_stdc=no
8251 fi
8252 rm -f conftest*
8253
8254 fi
8255
8256 if test $ac_cv_header_stdc = yes; then
8257   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8258   if test "$cross_compiling" = yes; then
8259   :
8260 else
8261   cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h.  */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h.  */
8267 #include <ctype.h>
8268 #if ((' ' & 0x0FF) == 0x020)
8269 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8270 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8271 #else
8272 # define ISLOWER(c) \
8273                    (('a' <= (c) && (c) <= 'i') \
8274                      || ('j' <= (c) && (c) <= 'r') \
8275                      || ('s' <= (c) && (c) <= 'z'))
8276 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8277 #endif
8278
8279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8280 int
8281 main ()
8282 {
8283   int i;
8284   for (i = 0; i < 256; i++)
8285     if (XOR (islower (i), ISLOWER (i))
8286         || toupper (i) != TOUPPER (i))
8287       exit(2);
8288   exit (0);
8289 }
8290 _ACEOF
8291 rm -f conftest$ac_exeext
8292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8293   (eval $ac_link) 2>&5
8294   ac_status=$?
8295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   :
8303 else
8304   echo "$as_me: program exited with status $ac_status" >&5
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308 ( exit $ac_status )
8309 ac_cv_header_stdc=no
8310 fi
8311 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8312 fi
8313 fi
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8316 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8317 if test $ac_cv_header_stdc = yes; then
8318
8319 cat >>confdefs.h <<\_ACEOF
8320 #define STDC_HEADERS 1
8321 _ACEOF
8322
8323 fi
8324
8325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8336                   inttypes.h stdint.h unistd.h
8337 do
8338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8339 echo "$as_me:$LINENO: checking for $ac_header" >&5
8340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8342   echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344   cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h.  */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h.  */
8350 $ac_includes_default
8351
8352 #include <$ac_header>
8353 _ACEOF
8354 rm -f conftest.$ac_objext
8355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8356   (eval $ac_compile) 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag"
8364                          || test ! -s conftest.err'
8365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8366   (eval $ac_try) 2>&5
8367   ac_status=$?
8368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369   (exit $ac_status); }; } &&
8370          { ac_try='test -s conftest.$ac_objext'
8371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372   (eval $ac_try) 2>&5
8373   ac_status=$?
8374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375   (exit $ac_status); }; }; then
8376   eval "$as_ac_Header=yes"
8377 else
8378   echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8380
8381 eval "$as_ac_Header=no"
8382 fi
8383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8384 fi
8385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8386 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8388   cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390 _ACEOF
8391
8392 fi
8393
8394 done
8395
8396
8397
8398 for ac_header in dlfcn.h
8399 do
8400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401 echo "$as_me:$LINENO: checking for $ac_header" >&5
8402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8404   echo $ECHO_N "(cached) $ECHO_C" >&6
8405 else
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 $ac_includes_default
8413
8414 #include <$ac_header>
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418   (eval $ac_compile) 2>conftest.er1
8419   ac_status=$?
8420   grep -v '^ *+' conftest.er1 >conftest.err
8421   rm -f conftest.er1
8422   cat conftest.err >&5
8423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424   (exit $ac_status); } &&
8425          { ac_try='test -z "$ac_c_werror_flag"
8426                          || test ! -s conftest.err'
8427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428   (eval $ac_try) 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; } &&
8432          { ac_try='test -s conftest.$ac_objext'
8433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434   (eval $ac_try) 2>&5
8435   ac_status=$?
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); }; }; then
8438   eval "$as_ac_Header=yes"
8439 else
8440   echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 eval "$as_ac_Header=no"
8444 fi
8445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8446 fi
8447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8450   cat >>confdefs.h <<_ACEOF
8451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 _ACEOF
8453
8454 fi
8455
8456 done
8457
8458
8459
8460 ac_ext=cc
8461 ac_cpp='$CXXCPP $CPPFLAGS'
8462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8465 if test -n "$ac_tool_prefix"; then
8466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8467   do
8468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8470 echo "$as_me:$LINENO: checking for $ac_word" >&5
8471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8472 if test "${ac_cv_prog_CXX+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   if test -n "$CXX"; then
8476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8477 else
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8480 do
8481   IFS=$as_save_IFS
8482   test -z "$as_dir" && as_dir=.
8483   for ac_exec_ext in '' $ac_executable_extensions; do
8484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487     break 2
8488   fi
8489 done
8490 done
8491
8492 fi
8493 fi
8494 CXX=$ac_cv_prog_CXX
8495 if test -n "$CXX"; then
8496   echo "$as_me:$LINENO: result: $CXX" >&5
8497 echo "${ECHO_T}$CXX" >&6
8498 else
8499   echo "$as_me:$LINENO: result: no" >&5
8500 echo "${ECHO_T}no" >&6
8501 fi
8502
8503     test -n "$CXX" && break
8504   done
8505 fi
8506 if test -z "$CXX"; then
8507   ac_ct_CXX=$CXX
8508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8509 do
8510   # Extract the first word of "$ac_prog", so it can be a program name with args.
8511 set dummy $ac_prog; ac_word=$2
8512 echo "$as_me:$LINENO: checking for $ac_word" >&5
8513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8515   echo $ECHO_N "(cached) $ECHO_C" >&6
8516 else
8517   if test -n "$ac_ct_CXX"; then
8518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8519 else
8520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525   for ac_exec_ext in '' $ac_executable_extensions; do
8526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527     ac_cv_prog_ac_ct_CXX="$ac_prog"
8528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532 done
8533
8534 fi
8535 fi
8536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8537 if test -n "$ac_ct_CXX"; then
8538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8539 echo "${ECHO_T}$ac_ct_CXX" >&6
8540 else
8541   echo "$as_me:$LINENO: result: no" >&5
8542 echo "${ECHO_T}no" >&6
8543 fi
8544
8545   test -n "$ac_ct_CXX" && break
8546 done
8547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8548
8549   CXX=$ac_ct_CXX
8550 fi
8551
8552
8553 # Provide some information about the compiler.
8554 echo "$as_me:$LINENO:" \
8555      "checking for C++ compiler version" >&5
8556 ac_compiler=`set X $ac_compile; echo $2`
8557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8558   (eval $ac_compiler --version </dev/null >&5) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }
8562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8563   (eval $ac_compiler -v </dev/null >&5) 2>&5
8564   ac_status=$?
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); }
8567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8568   (eval $ac_compiler -V </dev/null >&5) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }
8572
8573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8576   echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578   cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 int
8586 main ()
8587 {
8588 #ifndef __GNUC__
8589        choke me
8590 #endif
8591
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598   (eval $ac_compile) 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } &&
8605          { ac_try='test -z "$ac_cxx_werror_flag"
8606                          || test ! -s conftest.err'
8607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8608   (eval $ac_try) 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; } &&
8612          { ac_try='test -s conftest.$ac_objext'
8613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8614   (eval $ac_try) 2>&5
8615   ac_status=$?
8616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617   (exit $ac_status); }; }; then
8618   ac_compiler_gnu=yes
8619 else
8620   echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8622
8623 ac_compiler_gnu=no
8624 fi
8625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8627
8628 fi
8629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8631 GXX=`test $ac_compiler_gnu = yes && echo yes`
8632 ac_test_CXXFLAGS=${CXXFLAGS+set}
8633 ac_save_CXXFLAGS=$CXXFLAGS
8634 CXXFLAGS="-g"
8635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8637 if test "${ac_cv_prog_cxx_g+set}" = set; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   cat >conftest.$ac_ext <<_ACEOF
8641 /* confdefs.h.  */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h.  */
8646
8647 int
8648 main ()
8649 {
8650
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8657   (eval $ac_compile) 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -z "$ac_cxx_werror_flag"
8665                          || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest.$ac_objext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_prog_cxx_g=yes
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 ac_cv_prog_cxx_g=no
8683 fi
8684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8688 if test "$ac_test_CXXFLAGS" = set; then
8689   CXXFLAGS=$ac_save_CXXFLAGS
8690 elif test $ac_cv_prog_cxx_g = yes; then
8691   if test "$GXX" = yes; then
8692     CXXFLAGS="-g -O2"
8693   else
8694     CXXFLAGS="-g"
8695   fi
8696 else
8697   if test "$GXX" = yes; then
8698     CXXFLAGS="-O2"
8699   else
8700     CXXFLAGS=
8701   fi
8702 fi
8703 for ac_declaration in \
8704    '' \
8705    'extern "C" void std::exit (int) throw (); using std::exit;' \
8706    'extern "C" void std::exit (int); using std::exit;' \
8707    'extern "C" void exit (int) throw ();' \
8708    'extern "C" void exit (int);' \
8709    'void exit (int);'
8710 do
8711   cat >conftest.$ac_ext <<_ACEOF
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717 $ac_declaration
8718 #include <stdlib.h>
8719 int
8720 main ()
8721 {
8722 exit (42);
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8729   (eval $ac_compile) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_cxx_werror_flag"
8737                          || test ! -s conftest.err'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest.$ac_objext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   :
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 continue
8755 fi
8756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 $ac_declaration
8764 int
8765 main ()
8766 {
8767 exit (42);
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774   (eval $ac_compile) 2>conftest.er1
8775   ac_status=$?
8776   grep -v '^ *+' conftest.er1 >conftest.err
8777   rm -f conftest.er1
8778   cat conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -z "$ac_cxx_werror_flag"
8782                          || test ! -s conftest.err'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   break
8795 else
8796   echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799 fi
8800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8801 done
8802 rm -f conftest*
8803 if test -n "$ac_declaration"; then
8804   echo '#ifdef __cplusplus' >>confdefs.h
8805   echo $ac_declaration      >>confdefs.h
8806   echo '#endif'             >>confdefs.h
8807 fi
8808
8809 ac_ext=c
8810 ac_cpp='$CPP $CPPFLAGS'
8811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814
8815 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8816     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8817     (test "X$CXX" != "Xg++"))) ; then
8818   ac_ext=cc
8819 ac_cpp='$CXXCPP $CPPFLAGS'
8820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8823 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8824 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8825 if test -z "$CXXCPP"; then
8826   if test "${ac_cv_prog_CXXCPP+set}" = set; then
8827   echo $ECHO_N "(cached) $ECHO_C" >&6
8828 else
8829       # Double quotes because CXXCPP needs to be expanded
8830     for CXXCPP in "$CXX -E" "/lib/cpp"
8831     do
8832       ac_preproc_ok=false
8833 for ac_cxx_preproc_warn_flag in '' yes
8834 do
8835   # Use a header file that comes with gcc, so configuring glibc
8836   # with a fresh cross-compiler works.
8837   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8838   # <limits.h> exists even on freestanding compilers.
8839   # On the NeXT, cc -E runs the code through the compiler's parser,
8840   # not just through cpp. "Syntax error" is here to catch this case.
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 #ifdef __STDC__
8848 # include <limits.h>
8849 #else
8850 # include <assert.h>
8851 #endif
8852                      Syntax error
8853 _ACEOF
8854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8856   ac_status=$?
8857   grep -v '^ *+' conftest.er1 >conftest.err
8858   rm -f conftest.er1
8859   cat conftest.err >&5
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); } >/dev/null; then
8862   if test -s conftest.err; then
8863     ac_cpp_err=$ac_cxx_preproc_warn_flag
8864     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8865   else
8866     ac_cpp_err=
8867   fi
8868 else
8869   ac_cpp_err=yes
8870 fi
8871 if test -z "$ac_cpp_err"; then
8872   :
8873 else
8874   echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8876
8877   # Broken: fails on valid input.
8878 continue
8879 fi
8880 rm -f conftest.err conftest.$ac_ext
8881
8882   # OK, works on sane cases.  Now check whether non-existent headers
8883   # can be detected and how.
8884   cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890 #include <ac_nonexistent.h>
8891 _ACEOF
8892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8893   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } >/dev/null; then
8900   if test -s conftest.err; then
8901     ac_cpp_err=$ac_cxx_preproc_warn_flag
8902     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8903   else
8904     ac_cpp_err=
8905   fi
8906 else
8907   ac_cpp_err=yes
8908 fi
8909 if test -z "$ac_cpp_err"; then
8910   # Broken: success on invalid input.
8911 continue
8912 else
8913   echo "$as_me: failed program was:" >&5
8914 sed 's/^/| /' conftest.$ac_ext >&5
8915
8916   # Passes both tests.
8917 ac_preproc_ok=:
8918 break
8919 fi
8920 rm -f conftest.err conftest.$ac_ext
8921
8922 done
8923 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8924 rm -f conftest.err conftest.$ac_ext
8925 if $ac_preproc_ok; then
8926   break
8927 fi
8928
8929     done
8930     ac_cv_prog_CXXCPP=$CXXCPP
8931
8932 fi
8933   CXXCPP=$ac_cv_prog_CXXCPP
8934 else
8935   ac_cv_prog_CXXCPP=$CXXCPP
8936 fi
8937 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8938 echo "${ECHO_T}$CXXCPP" >&6
8939 ac_preproc_ok=false
8940 for ac_cxx_preproc_warn_flag in '' yes
8941 do
8942   # Use a header file that comes with gcc, so configuring glibc
8943   # with a fresh cross-compiler works.
8944   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8945   # <limits.h> exists even on freestanding compilers.
8946   # On the NeXT, cc -E runs the code through the compiler's parser,
8947   # not just through cpp. "Syntax error" is here to catch this case.
8948   cat >conftest.$ac_ext <<_ACEOF
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 #ifdef __STDC__
8955 # include <limits.h>
8956 #else
8957 # include <assert.h>
8958 #endif
8959                      Syntax error
8960 _ACEOF
8961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8962   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } >/dev/null; then
8969   if test -s conftest.err; then
8970     ac_cpp_err=$ac_cxx_preproc_warn_flag
8971     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8972   else
8973     ac_cpp_err=
8974   fi
8975 else
8976   ac_cpp_err=yes
8977 fi
8978 if test -z "$ac_cpp_err"; then
8979   :
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984   # Broken: fails on valid input.
8985 continue
8986 fi
8987 rm -f conftest.err conftest.$ac_ext
8988
8989   # OK, works on sane cases.  Now check whether non-existent headers
8990   # can be detected and how.
8991   cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h.  */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h.  */
8997 #include <ac_nonexistent.h>
8998 _ACEOF
8999 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9000   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } >/dev/null; then
9007   if test -s conftest.err; then
9008     ac_cpp_err=$ac_cxx_preproc_warn_flag
9009     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9010   else
9011     ac_cpp_err=
9012   fi
9013 else
9014   ac_cpp_err=yes
9015 fi
9016 if test -z "$ac_cpp_err"; then
9017   # Broken: success on invalid input.
9018 continue
9019 else
9020   echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023   # Passes both tests.
9024 ac_preproc_ok=:
9025 break
9026 fi
9027 rm -f conftest.err conftest.$ac_ext
9028
9029 done
9030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9031 rm -f conftest.err conftest.$ac_ext
9032 if $ac_preproc_ok; then
9033   :
9034 else
9035   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9036 echo "$as_me: error: in \`$ac_pwd':" >&2;}
9037 _lt_caught_CXX_error=yes; }
9038 fi
9039
9040 ac_ext=c
9041 ac_cpp='$CPP $CPPFLAGS'
9042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9045
9046 else
9047   _lt_caught_CXX_error=yes
9048 fi
9049
9050
9051
9052
9053
9054 # Set options
9055
9056
9057
9058
9059   enable_win32_dll=no
9060
9061
9062             # Check whether --enable-shared or --disable-shared was given.
9063 if test "${enable_shared+set}" = set; then
9064   enableval="$enable_shared"
9065   p=${PACKAGE-default}
9066     case $enableval in
9067     yes) enable_shared=yes ;;
9068     no) enable_shared=no ;;
9069     *)
9070       enable_shared=no
9071       # Look at the argument we got.  We use all the common list separators.
9072       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9073       for pkg in $enableval; do
9074         IFS="$lt_save_ifs"
9075         if test "X$pkg" = "X$p"; then
9076           enable_shared=yes
9077         fi
9078       done
9079       IFS="$lt_save_ifs"
9080       ;;
9081     esac
9082 else
9083   enable_shared=yes
9084 fi;
9085
9086
9087
9088
9089
9090
9091
9092
9093   # Check whether --enable-static or --disable-static was given.
9094 if test "${enable_static+set}" = set; then
9095   enableval="$enable_static"
9096   p=${PACKAGE-default}
9097     case $enableval in
9098     yes) enable_static=yes ;;
9099     no) enable_static=no ;;
9100     *)
9101      enable_static=no
9102       # Look at the argument we got.  We use all the common list separators.
9103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9104       for pkg in $enableval; do
9105         IFS="$lt_save_ifs"
9106         if test "X$pkg" = "X$p"; then
9107           enable_static=yes
9108         fi
9109       done
9110       IFS="$lt_save_ifs"
9111       ;;
9112     esac
9113 else
9114   enable_static=yes
9115 fi;
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125 # Check whether --with-pic or --without-pic was given.
9126 if test "${with_pic+set}" = set; then
9127   withval="$with_pic"
9128   pic_mode="$withval"
9129 else
9130   pic_mode=default
9131 fi;
9132
9133 test -z "$pic_mode" && pic_mode=default
9134
9135
9136
9137
9138
9139
9140
9141   # Check whether --enable-fast-install or --disable-fast-install was given.
9142 if test "${enable_fast_install+set}" = set; then
9143   enableval="$enable_fast_install"
9144   p=${PACKAGE-default}
9145     case $enableval in
9146     yes) enable_fast_install=yes ;;
9147     no) enable_fast_install=no ;;
9148     *)
9149       enable_fast_install=no
9150       # Look at the argument we got.  We use all the common list separators.
9151       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9152       for pkg in $enableval; do
9153         IFS="$lt_save_ifs"
9154         if test "X$pkg" = "X$p"; then
9155           enable_fast_install=yes
9156         fi
9157       done
9158       IFS="$lt_save_ifs"
9159       ;;
9160     esac
9161 else
9162   enable_fast_install=yes
9163 fi;
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 # This can be used to rebuild libtool when needed
9175 LIBTOOL_DEPS="$ltmain"
9176
9177 # Always use our own libtool.
9178 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204 test -z "$LN_S" && LN_S="ln -s"
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219 if test -n "${ZSH_VERSION+set}" ; then
9220    setopt NO_GLOB_SUBST
9221 fi
9222
9223 echo "$as_me:$LINENO: checking for objdir" >&5
9224 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9225 if test "${lt_cv_objdir+set}" = set; then
9226   echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228   rm -f .libs 2>/dev/null
9229 mkdir .libs 2>/dev/null
9230 if test -d .libs; then
9231   lt_cv_objdir=.libs
9232 else
9233   # MS-DOS does not allow filenames that begin with a dot.
9234   lt_cv_objdir=_libs
9235 fi
9236 rmdir .libs 2>/dev/null
9237 fi
9238 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9239 echo "${ECHO_T}$lt_cv_objdir" >&6
9240 objdir=$lt_cv_objdir
9241
9242
9243
9244
9245
9246 cat >>confdefs.h <<_ACEOF
9247 #define LT_OBJDIR "$lt_cv_objdir/"
9248 _ACEOF
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 case $host_os in
9267 aix3*)
9268   # AIX sometimes has problems with the GCC collect2 program.  For some
9269   # reason, if we set the COLLECT_NAMES environment variable, the problems
9270   # vanish in a puff of smoke.
9271   if test "X${COLLECT_NAMES+set}" != Xset; then
9272     COLLECT_NAMES=
9273     export COLLECT_NAMES
9274   fi
9275   ;;
9276 esac
9277
9278 # Sed substitution that helps us do robust quoting.  It backslashifies
9279 # metacharacters that are still active within double-quoted strings.
9280 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9281
9282 # Same as above, but do not quote variable references.
9283 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9284
9285 # Sed substitution to delay expansion of an escaped shell variable in a
9286 # double_quote_subst'ed string.
9287 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9288
9289 # Sed substitution to delay expansion of an escaped single quote.
9290 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9291
9292 # Sed substitution to avoid accidental globbing in evaled expressions
9293 no_glob_subst='s/\*/\\\*/g'
9294
9295 # Global variables:
9296 ofile=libtool
9297 can_build_shared=yes
9298
9299 # All known linkers require a `.a' archive for static linking (except MSVC,
9300 # which needs '.lib').
9301 libext=a
9302
9303 with_gnu_ld="$lt_cv_prog_gnu_ld"
9304
9305 old_CC="$CC"
9306 old_CFLAGS="$CFLAGS"
9307
9308 # Set sane defaults for various variables
9309 test -z "$CC" && CC=cc
9310 test -z "$LTCC" && LTCC=$CC
9311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9312 test -z "$LD" && LD=ld
9313 test -z "$ac_objext" && ac_objext=o
9314
9315 for cc_temp in $compiler""; do
9316   case $cc_temp in
9317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9319     \-*) ;;
9320     *) break;;
9321   esac
9322 done
9323 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9324
9325
9326 # Only perform the check for file, if the check method requires it
9327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9328 case $deplibs_check_method in
9329 file_magic*)
9330   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9331     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9332 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9333 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9334   echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336   case $MAGIC_CMD in
9337 [\\/*] |  ?:[\\/]*)
9338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9339   ;;
9340 *)
9341   lt_save_MAGIC_CMD="$MAGIC_CMD"
9342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9343   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9344   for ac_dir in $ac_dummy; do
9345     IFS="$lt_save_ifs"
9346     test -z "$ac_dir" && ac_dir=.
9347     if test -f $ac_dir/${ac_tool_prefix}file; then
9348       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9349       if test -n "$file_magic_test_file"; then
9350         case $deplibs_check_method in
9351         "file_magic "*)
9352           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9353           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9354           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9355             $EGREP "$file_magic_regex" > /dev/null; then
9356             :
9357           else
9358             cat <<_LT_EOF 1>&2
9359
9360 *** Warning: the command libtool uses to detect shared libraries,
9361 *** $file_magic_cmd, produces output that libtool cannot recognize.
9362 *** The result is that libtool may fail to recognize shared libraries
9363 *** as such.  This will affect the creation of libtool libraries that
9364 *** depend on shared libraries, but programs linked with such libtool
9365 *** libraries will work regardless of this problem.  Nevertheless, you
9366 *** may want to report the problem to your system manager and/or to
9367 *** bug-libtool@gnu.org
9368
9369 _LT_EOF
9370           fi ;;
9371         esac
9372       fi
9373       break
9374     fi
9375   done
9376   IFS="$lt_save_ifs"
9377   MAGIC_CMD="$lt_save_MAGIC_CMD"
9378   ;;
9379 esac
9380 fi
9381
9382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9383 if test -n "$MAGIC_CMD"; then
9384   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9385 echo "${ECHO_T}$MAGIC_CMD" >&6
9386 else
9387   echo "$as_me:$LINENO: result: no" >&5
9388 echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392
9393
9394
9395 if test -z "$lt_cv_path_MAGIC_CMD"; then
9396   if test -n "$ac_tool_prefix"; then
9397     echo "$as_me:$LINENO: checking for file" >&5
9398 echo $ECHO_N "checking for file... $ECHO_C" >&6
9399 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   case $MAGIC_CMD in
9403 [\\/*] |  ?:[\\/]*)
9404   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9405   ;;
9406 *)
9407   lt_save_MAGIC_CMD="$MAGIC_CMD"
9408   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9409   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9410   for ac_dir in $ac_dummy; do
9411     IFS="$lt_save_ifs"
9412     test -z "$ac_dir" && ac_dir=.
9413     if test -f $ac_dir/file; then
9414       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9415       if test -n "$file_magic_test_file"; then
9416         case $deplibs_check_method in
9417         "file_magic "*)
9418           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9419           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9420           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9421             $EGREP "$file_magic_regex" > /dev/null; then
9422             :
9423           else
9424             cat <<_LT_EOF 1>&2
9425
9426 *** Warning: the command libtool uses to detect shared libraries,
9427 *** $file_magic_cmd, produces output that libtool cannot recognize.
9428 *** The result is that libtool may fail to recognize shared libraries
9429 *** as such.  This will affect the creation of libtool libraries that
9430 *** depend on shared libraries, but programs linked with such libtool
9431 *** libraries will work regardless of this problem.  Nevertheless, you
9432 *** may want to report the problem to your system manager and/or to
9433 *** bug-libtool@gnu.org
9434
9435 _LT_EOF
9436           fi ;;
9437         esac
9438       fi
9439       break
9440     fi
9441   done
9442   IFS="$lt_save_ifs"
9443   MAGIC_CMD="$lt_save_MAGIC_CMD"
9444   ;;
9445 esac
9446 fi
9447
9448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9449 if test -n "$MAGIC_CMD"; then
9450   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9451 echo "${ECHO_T}$MAGIC_CMD" >&6
9452 else
9453   echo "$as_me:$LINENO: result: no" >&5
9454 echo "${ECHO_T}no" >&6
9455 fi
9456
9457
9458   else
9459     MAGIC_CMD=:
9460   fi
9461 fi
9462
9463   fi
9464   ;;
9465 esac
9466
9467 # Use C for the default configuration in the libtool script
9468
9469 lt_save_CC="$CC"
9470 ac_ext=c
9471 ac_cpp='$CPP $CPPFLAGS'
9472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9475
9476
9477 # Source file extension for C test sources.
9478 ac_ext=c
9479
9480 # Object file extension for compiled C test sources.
9481 objext=o
9482 objext=$objext
9483
9484 # Code to be used in simple compile tests
9485 lt_simple_compile_test_code="int some_variable = 0;"
9486
9487 # Code to be used in simple link tests
9488 lt_simple_link_test_code='int main(){return(0);}'
9489
9490
9491
9492
9493
9494
9495
9496 # If no C compiler was specified, use CC.
9497 LTCC=${LTCC-"$CC"}
9498
9499 # If no C compiler flags were specified, use CFLAGS.
9500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9501
9502 # Allow CC to be a program name with arguments.
9503 compiler=$CC
9504
9505 # Save the default compiler, since it gets overwritten when the other
9506 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9507 compiler_DEFAULT=$CC
9508
9509 # save warnings/boilerplate of simple test code
9510 ac_outfile=conftest.$ac_objext
9511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9513 _lt_compiler_boilerplate=`cat conftest.err`
9514 $RM conftest*
9515
9516 ac_outfile=conftest.$ac_objext
9517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9519 _lt_linker_boilerplate=`cat conftest.err`
9520 $RM -r conftest*
9521
9522
9523 ## CAVEAT EMPTOR:
9524 ## There is no encapsulation within the following macros, do not change
9525 ## the running order or otherwise move them around unless you know exactly
9526 ## what you are doing...
9527 if test -n "$compiler"; then
9528
9529 lt_prog_compiler_no_builtin_flag=
9530
9531 if test "$GCC" = yes; then
9532   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9533
9534   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9535 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9536 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 else
9539   lt_cv_prog_compiler_rtti_exceptions=no
9540    ac_outfile=conftest.$ac_objext
9541    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9542    lt_compiler_flag="-fno-rtti -fno-exceptions"
9543    # Insert the option either (1) after the last *FLAGS variable, or
9544    # (2) before a word containing "conftest.", or (3) at the end.
9545    # Note that $ac_compile itself does not contain backslashes and begins
9546    # with a dollar sign (not a hyphen), so the echo should work correctly.
9547    # The option is referenced via a variable to avoid confusing sed.
9548    lt_compile=`echo "$ac_compile" | $SED \
9549    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9550    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9551    -e 's:$: $lt_compiler_flag:'`
9552    (eval echo "\"\$as_me:9552: $lt_compile\"" >&5)
9553    (eval "$lt_compile" 2>conftest.err)
9554    ac_status=$?
9555    cat conftest.err >&5
9556    echo "$as_me:9556: \$? = $ac_status" >&5
9557    if (exit $ac_status) && test -s "$ac_outfile"; then
9558      # The compiler can only warn and ignore the option if not recognized
9559      # So say no if there are warnings other than the usual output.
9560      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9561      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9562      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9563        lt_cv_prog_compiler_rtti_exceptions=yes
9564      fi
9565    fi
9566    $RM conftest*
9567
9568 fi
9569 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9570 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9571
9572 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9573     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9574 else
9575     :
9576 fi
9577
9578 fi
9579
9580
9581
9582
9583
9584
9585   lt_prog_compiler_wl=
9586 lt_prog_compiler_pic=
9587 lt_prog_compiler_static=
9588
9589 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9590 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9591
9592   if test "$GCC" = yes; then
9593     lt_prog_compiler_wl='-Wl,'
9594     lt_prog_compiler_static='-static'
9595
9596     case $host_os in
9597       aix*)
9598       # All AIX code is PIC.
9599       if test "$host_cpu" = ia64; then
9600         # AIX 5 now supports IA64 processor
9601         lt_prog_compiler_static='-Bstatic'
9602       fi
9603       ;;
9604
9605     amigaos*)
9606       case $host_cpu in
9607       powerpc)
9608             # see comment about AmigaOS4 .so support
9609             lt_prog_compiler_pic='-fPIC'
9610         ;;
9611       m68k)
9612             # FIXME: we need at least 68020 code to build shared libraries, but
9613             # adding the `-m68020' flag to GCC prevents building anything better,
9614             # like `-m68040'.
9615             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9616         ;;
9617       esac
9618       ;;
9619
9620     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9621       # PIC is the default for these OSes.
9622       ;;
9623
9624     mingw* | cygwin* | pw32* | os2* | cegcc*)
9625       # This hack is so that the source file can tell whether it is being
9626       # built for inclusion in a dll (and should export symbols for example).
9627       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9628       # (--disable-auto-import) libraries
9629       lt_prog_compiler_pic='-DDLL_EXPORT'
9630       ;;
9631
9632     darwin* | rhapsody*)
9633       # PIC is the default on this platform
9634       # Common symbols not allowed in MH_DYLIB files
9635       lt_prog_compiler_pic='-fno-common'
9636       ;;
9637
9638     hpux*)
9639       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9640       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9641       # sets the default TLS model and affects inlining.
9642       case $host_cpu in
9643       hppa*64*)
9644         # +Z the default
9645         ;;
9646       *)
9647         lt_prog_compiler_pic='-fPIC'
9648         ;;
9649       esac
9650       ;;
9651
9652     interix[3-9]*)
9653       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9654       # Instead, we relocate shared libraries at runtime.
9655       ;;
9656
9657     msdosdjgpp*)
9658       # Just because we use GCC doesn't mean we suddenly get shared libraries
9659       # on systems that don't support them.
9660       lt_prog_compiler_can_build_shared=no
9661       enable_shared=no
9662       ;;
9663
9664     *nto* | *qnx*)
9665       # QNX uses GNU C++, but need to define -shared option too, otherwise
9666       # it will coredump.
9667       lt_prog_compiler_pic='-fPIC -shared'
9668       ;;
9669
9670     sysv4*MP*)
9671       if test -d /usr/nec; then
9672         lt_prog_compiler_pic=-Kconform_pic
9673       fi
9674       ;;
9675
9676     *)
9677       lt_prog_compiler_pic='-fPIC'
9678       ;;
9679     esac
9680   else
9681     # PORTME Check for flag to pass linker flags through the system compiler.
9682     case $host_os in
9683     aix*)
9684       lt_prog_compiler_wl='-Wl,'
9685       if test "$host_cpu" = ia64; then
9686         # AIX 5 now supports IA64 processor
9687         lt_prog_compiler_static='-Bstatic'
9688       else
9689         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9690       fi
9691       ;;
9692
9693     mingw* | cygwin* | pw32* | os2* | cegcc*)
9694       # This hack is so that the source file can tell whether it is being
9695       # built for inclusion in a dll (and should export symbols for example).
9696       lt_prog_compiler_pic='-DDLL_EXPORT'
9697       ;;
9698
9699     hpux9* | hpux10* | hpux11*)
9700       lt_prog_compiler_wl='-Wl,'
9701       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9702       # not for PA HP-UX.
9703       case $host_cpu in
9704       hppa*64*|ia64*)
9705         # +Z the default
9706         ;;
9707       *)
9708         lt_prog_compiler_pic='+Z'
9709         ;;
9710       esac
9711       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9712       lt_prog_compiler_static='${wl}-a ${wl}archive'
9713       ;;
9714
9715     irix5* | irix6* | nonstopux*)
9716       lt_prog_compiler_wl='-Wl,'
9717       # PIC (with -KPIC) is the default.
9718       lt_prog_compiler_static='-non_shared'
9719       ;;
9720
9721     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9722       case $cc_basename in
9723       # old Intel for x86_64 which still supported -KPIC.
9724       ecc*)
9725         lt_prog_compiler_wl='-Wl,'
9726         lt_prog_compiler_pic='-KPIC'
9727         lt_prog_compiler_static='-static'
9728         ;;
9729       # icc used to be incompatible with GCC.
9730       # ICC 10 doesn't accept -KPIC any more.
9731       icc* | ifort*)
9732         lt_prog_compiler_wl='-Wl,'
9733         lt_prog_compiler_pic='-fPIC'
9734         lt_prog_compiler_static='-static'
9735         ;;
9736       # Lahey Fortran 8.1.
9737       lf95*)
9738         lt_prog_compiler_wl='-Wl,'
9739         lt_prog_compiler_pic='--shared'
9740         lt_prog_compiler_static='--static'
9741         ;;
9742       pgcc* | pgf77* | pgf90* | pgf95*)
9743         # Portland Group compilers (*not* the Pentium gcc compiler,
9744         # which looks to be a dead project)
9745         lt_prog_compiler_wl='-Wl,'
9746         lt_prog_compiler_pic='-fpic'
9747         lt_prog_compiler_static='-Bstatic'
9748         ;;
9749       ccc*)
9750         lt_prog_compiler_wl='-Wl,'
9751         # All Alpha code is PIC.
9752         lt_prog_compiler_static='-non_shared'
9753         ;;
9754       xl*)
9755         # IBM XL C 8.0/Fortran 10.1 on PPC
9756         lt_prog_compiler_wl='-Wl,'
9757         lt_prog_compiler_pic='-qpic'
9758         lt_prog_compiler_static='-qstaticlink'
9759         ;;
9760       *)
9761         case `$CC -V 2>&1 | sed 5q` in
9762         *Sun\ C*)
9763           # Sun C 5.9
9764           lt_prog_compiler_pic='-KPIC'
9765           lt_prog_compiler_static='-Bstatic'
9766           lt_prog_compiler_wl='-Wl,'
9767           ;;
9768         *Sun\ F*)
9769           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9770           lt_prog_compiler_pic='-KPIC'
9771           lt_prog_compiler_static='-Bstatic'
9772           lt_prog_compiler_wl=''
9773           ;;
9774         esac
9775         ;;
9776       esac
9777       ;;
9778
9779     newsos6)
9780       lt_prog_compiler_pic='-KPIC'
9781       lt_prog_compiler_static='-Bstatic'
9782       ;;
9783
9784     *nto* | *qnx*)
9785       # QNX uses GNU C++, but need to define -shared option too, otherwise
9786       # it will coredump.
9787       lt_prog_compiler_pic='-fPIC -shared'
9788       ;;
9789
9790     osf3* | osf4* | osf5*)
9791       lt_prog_compiler_wl='-Wl,'
9792       # All OSF/1 code is PIC.
9793       lt_prog_compiler_static='-non_shared'
9794       ;;
9795
9796     rdos*)
9797       lt_prog_compiler_static='-non_shared'
9798       ;;
9799
9800     solaris*)
9801       lt_prog_compiler_pic='-KPIC'
9802       lt_prog_compiler_static='-Bstatic'
9803       case $cc_basename in
9804       f77* | f90* | f95*)
9805         lt_prog_compiler_wl='-Qoption ld ';;
9806       *)
9807         lt_prog_compiler_wl='-Wl,';;
9808       esac
9809       ;;
9810
9811     sunos4*)
9812       lt_prog_compiler_wl='-Qoption ld '
9813       lt_prog_compiler_pic='-PIC'
9814       lt_prog_compiler_static='-Bstatic'
9815       ;;
9816
9817     sysv4 | sysv4.2uw2* | sysv4.3*)
9818       lt_prog_compiler_wl='-Wl,'
9819       lt_prog_compiler_pic='-KPIC'
9820       lt_prog_compiler_static='-Bstatic'
9821       ;;
9822
9823     sysv4*MP*)
9824       if test -d /usr/nec ;then
9825         lt_prog_compiler_pic='-Kconform_pic'
9826         lt_prog_compiler_static='-Bstatic'
9827       fi
9828       ;;
9829
9830     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9831       lt_prog_compiler_wl='-Wl,'
9832       lt_prog_compiler_pic='-KPIC'
9833       lt_prog_compiler_static='-Bstatic'
9834       ;;
9835
9836     unicos*)
9837       lt_prog_compiler_wl='-Wl,'
9838       lt_prog_compiler_can_build_shared=no
9839       ;;
9840
9841     uts4*)
9842       lt_prog_compiler_pic='-pic'
9843       lt_prog_compiler_static='-Bstatic'
9844       ;;
9845
9846     *)
9847       lt_prog_compiler_can_build_shared=no
9848       ;;
9849     esac
9850   fi
9851
9852 case $host_os in
9853   # For platforms which do not support PIC, -DPIC is meaningless:
9854   *djgpp*)
9855     lt_prog_compiler_pic=
9856     ;;
9857   *)
9858     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9859     ;;
9860 esac
9861 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9862 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9863
9864
9865
9866
9867
9868
9869 #
9870 # Check to make sure the PIC flag actually works.
9871 #
9872 if test -n "$lt_prog_compiler_pic"; then
9873   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9874 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9875 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   lt_cv_prog_compiler_pic_works=no
9879    ac_outfile=conftest.$ac_objext
9880    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9881    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9882    # Insert the option either (1) after the last *FLAGS variable, or
9883    # (2) before a word containing "conftest.", or (3) at the end.
9884    # Note that $ac_compile itself does not contain backslashes and begins
9885    # with a dollar sign (not a hyphen), so the echo should work correctly.
9886    # The option is referenced via a variable to avoid confusing sed.
9887    lt_compile=`echo "$ac_compile" | $SED \
9888    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9889    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9890    -e 's:$: $lt_compiler_flag:'`
9891    (eval echo "\"\$as_me:9891: $lt_compile\"" >&5)
9892    (eval "$lt_compile" 2>conftest.err)
9893    ac_status=$?
9894    cat conftest.err >&5
9895    echo "$as_me:9895: \$? = $ac_status" >&5
9896    if (exit $ac_status) && test -s "$ac_outfile"; then
9897      # The compiler can only warn and ignore the option if not recognized
9898      # So say no if there are warnings other than the usual output.
9899      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9900      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9901      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9902        lt_cv_prog_compiler_pic_works=yes
9903      fi
9904    fi
9905    $RM conftest*
9906
9907 fi
9908 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9909 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
9910
9911 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9912     case $lt_prog_compiler_pic in
9913      "" | " "*) ;;
9914      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9915      esac
9916 else
9917     lt_prog_compiler_pic=
9918      lt_prog_compiler_can_build_shared=no
9919 fi
9920
9921 fi
9922
9923
9924
9925
9926
9927
9928 #
9929 # Check to make sure the static flag actually works.
9930 #
9931 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9932 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9933 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9934 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   lt_cv_prog_compiler_static_works=no
9938    save_LDFLAGS="$LDFLAGS"
9939    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9940    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9941    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9942      # The linker can only warn and ignore the option if not recognized
9943      # So say no if there are warnings
9944      if test -s conftest.err; then
9945        # Append any errors to the config.log.
9946        cat conftest.err 1>&5
9947        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9948        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9949        if diff conftest.exp conftest.er2 >/dev/null; then
9950          lt_cv_prog_compiler_static_works=yes
9951        fi
9952      else
9953        lt_cv_prog_compiler_static_works=yes
9954      fi
9955    fi
9956    $RM -r conftest*
9957    LDFLAGS="$save_LDFLAGS"
9958
9959 fi
9960 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9961 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
9962
9963 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9964     :
9965 else
9966     lt_prog_compiler_static=
9967 fi
9968
9969
9970
9971
9972
9973
9974
9975   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9976 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9977 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   lt_cv_prog_compiler_c_o=no
9981    $RM -r conftest 2>/dev/null
9982    mkdir conftest
9983    cd conftest
9984    mkdir out
9985    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9986
9987    lt_compiler_flag="-o out/conftest2.$ac_objext"
9988    # Insert the option either (1) after the last *FLAGS variable, or
9989    # (2) before a word containing "conftest.", or (3) at the end.
9990    # Note that $ac_compile itself does not contain backslashes and begins
9991    # with a dollar sign (not a hyphen), so the echo should work correctly.
9992    lt_compile=`echo "$ac_compile" | $SED \
9993    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9994    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9995    -e 's:$: $lt_compiler_flag:'`
9996    (eval echo "\"\$as_me:9996: $lt_compile\"" >&5)
9997    (eval "$lt_compile" 2>out/conftest.err)
9998    ac_status=$?
9999    cat out/conftest.err >&5
10000    echo "$as_me:10000: \$? = $ac_status" >&5
10001    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10002    then
10003      # The compiler can only warn and ignore the option if not recognized
10004      # So say no if there are warnings
10005      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10006      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10007      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10008        lt_cv_prog_compiler_c_o=yes
10009      fi
10010    fi
10011    chmod u+w . 2>&5
10012    $RM conftest*
10013    # SGI C++ compiler will create directory out/ii_files/ for
10014    # template instantiation
10015    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10016    $RM out/* && rmdir out
10017    cd ..
10018    $RM -r conftest
10019    $RM conftest*
10020
10021 fi
10022 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10023 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10024
10025
10026
10027
10028
10029
10030   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10031 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10032 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10033   echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035   lt_cv_prog_compiler_c_o=no
10036    $RM -r conftest 2>/dev/null
10037    mkdir conftest
10038    cd conftest
10039    mkdir out
10040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10041
10042    lt_compiler_flag="-o out/conftest2.$ac_objext"
10043    # Insert the option either (1) after the last *FLAGS variable, or
10044    # (2) before a word containing "conftest.", or (3) at the end.
10045    # Note that $ac_compile itself does not contain backslashes and begins
10046    # with a dollar sign (not a hyphen), so the echo should work correctly.
10047    lt_compile=`echo "$ac_compile" | $SED \
10048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10050    -e 's:$: $lt_compiler_flag:'`
10051    (eval echo "\"\$as_me:10051: $lt_compile\"" >&5)
10052    (eval "$lt_compile" 2>out/conftest.err)
10053    ac_status=$?
10054    cat out/conftest.err >&5
10055    echo "$as_me:10055: \$? = $ac_status" >&5
10056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10057    then
10058      # The compiler can only warn and ignore the option if not recognized
10059      # So say no if there are warnings
10060      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10063        lt_cv_prog_compiler_c_o=yes
10064      fi
10065    fi
10066    chmod u+w . 2>&5
10067    $RM conftest*
10068    # SGI C++ compiler will create directory out/ii_files/ for
10069    # template instantiation
10070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10071    $RM out/* && rmdir out
10072    cd ..
10073    $RM -r conftest
10074    $RM conftest*
10075
10076 fi
10077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
10079
10080
10081
10082
10083 hard_links="nottested"
10084 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10085   # do not overwrite the value of need_locks provided by the user
10086   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10087 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10088   hard_links=yes
10089   $RM conftest*
10090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10091   touch conftest.a
10092   ln conftest.a conftest.b 2>&5 || hard_links=no
10093   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10094   echo "$as_me:$LINENO: result: $hard_links" >&5
10095 echo "${ECHO_T}$hard_links" >&6
10096   if test "$hard_links" = no; then
10097     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10098 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10099     need_locks=warn
10100   fi
10101 else
10102   need_locks=no
10103 fi
10104
10105
10106
10107
10108
10109
10110   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10111 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10112
10113   runpath_var=
10114   allow_undefined_flag=
10115   always_export_symbols=no
10116   archive_cmds=
10117   archive_expsym_cmds=
10118   compiler_needs_object=no
10119   enable_shared_with_static_runtimes=no
10120   export_dynamic_flag_spec=
10121   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10122   hardcode_automatic=no
10123   hardcode_direct=no
10124   hardcode_direct_absolute=no
10125   hardcode_libdir_flag_spec=
10126   hardcode_libdir_flag_spec_ld=
10127   hardcode_libdir_separator=
10128   hardcode_minus_L=no
10129   hardcode_shlibpath_var=unsupported
10130   inherit_rpath=no
10131   link_all_deplibs=unknown
10132   module_cmds=
10133   module_expsym_cmds=
10134   old_archive_from_new_cmds=
10135   old_archive_from_expsyms_cmds=
10136   thread_safe_flag_spec=
10137   whole_archive_flag_spec=
10138   # include_expsyms should be a list of space-separated symbols to be *always*
10139   # included in the symbol list
10140   include_expsyms=
10141   # exclude_expsyms can be an extended regexp of symbols to exclude
10142   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10143   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10144   # as well as any symbol that contains `d'.
10145   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10146   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10147   # platforms (ab)use it in PIC code, but their linkers get confused if
10148   # the symbol is explicitly referenced.  Since portable code cannot
10149   # rely on this symbol name, it's probably fine to never include it in
10150   # preloaded symbol tables.
10151   # Exclude shared library initialization/finalization symbols.
10152   extract_expsyms_cmds=
10153
10154   case $host_os in
10155   cygwin* | mingw* | pw32* | cegcc*)
10156     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10157     # When not using gcc, we currently assume that we are using
10158     # Microsoft Visual C++.
10159     if test "$GCC" != yes; then
10160       with_gnu_ld=no
10161     fi
10162     ;;
10163   interix*)
10164     # we just hope/assume this is gcc and not c89 (= MSVC++)
10165     with_gnu_ld=yes
10166     ;;
10167   openbsd*)
10168     with_gnu_ld=no
10169     ;;
10170   esac
10171
10172   ld_shlibs=yes
10173   if test "$with_gnu_ld" = yes; then
10174     # If archive_cmds runs LD, not CC, wlarc should be empty
10175     wlarc='${wl}'
10176
10177     # Set some defaults for GNU ld with shared library support. These
10178     # are reset later if shared libraries are not supported. Putting them
10179     # here allows them to be overridden if necessary.
10180     runpath_var=LD_RUN_PATH
10181     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182     export_dynamic_flag_spec='${wl}--export-dynamic'
10183     # ancient GNU ld didn't support --whole-archive et. al.
10184     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10185       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10186     else
10187       whole_archive_flag_spec=
10188     fi
10189     supports_anon_versioning=no
10190     case `$LD -v 2>&1` in
10191       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10192       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10193       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10194       *\ 2.11.*) ;; # other 2.11 versions
10195       *) supports_anon_versioning=yes ;;
10196     esac
10197
10198     # See if GNU ld supports shared libraries.
10199     case $host_os in
10200     aix[3-9]*)
10201       # On AIX/PPC, the GNU linker is very broken
10202       if test "$host_cpu" != ia64; then
10203         ld_shlibs=no
10204         cat <<_LT_EOF 1>&2
10205
10206 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10207 *** to be unable to reliably create shared libraries on AIX.
10208 *** Therefore, libtool is disabling shared libraries support.  If you
10209 *** really care for shared libraries, you may want to modify your PATH
10210 *** so that a non-GNU linker is found, and then restart.
10211
10212 _LT_EOF
10213       fi
10214       ;;
10215
10216     amigaos*)
10217       case $host_cpu in
10218       powerpc)
10219             # see comment about AmigaOS4 .so support
10220             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10221             archive_expsym_cmds=''
10222         ;;
10223       m68k)
10224             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)'
10225             hardcode_libdir_flag_spec='-L$libdir'
10226             hardcode_minus_L=yes
10227         ;;
10228       esac
10229       ;;
10230
10231     beos*)
10232       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10233         allow_undefined_flag=unsupported
10234         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10235         # support --undefined.  This deserves some investigation.  FIXME
10236         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237       else
10238         ld_shlibs=no
10239       fi
10240       ;;
10241
10242     cygwin* | mingw* | pw32* | cegcc*)
10243       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10244       # as there is no search path for DLLs.
10245       hardcode_libdir_flag_spec='-L$libdir'
10246       allow_undefined_flag=unsupported
10247       always_export_symbols=no
10248       enable_shared_with_static_runtimes=yes
10249       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10250
10251       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10252         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10253         # If the export-symbols file already is a .def file (1st line
10254         # is EXPORTS), use it as is; otherwise, prepend...
10255         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10256           cp $export_symbols $output_objdir/$soname.def;
10257         else
10258           echo EXPORTS > $output_objdir/$soname.def;
10259           cat $export_symbols >> $output_objdir/$soname.def;
10260         fi~
10261         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10262       else
10263         ld_shlibs=no
10264       fi
10265       ;;
10266
10267     interix[3-9]*)
10268       hardcode_direct=no
10269       hardcode_shlibpath_var=no
10270       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10271       export_dynamic_flag_spec='${wl}-E'
10272       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10273       # Instead, shared libraries are loaded at an image base (0x10000000 by
10274       # default) and relocated if they conflict, which is a slow very memory
10275       # consuming and fragmenting process.  To avoid this, we pick a random,
10276       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10277       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10278       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10279       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'
10280       ;;
10281
10282     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10283       tmp_diet=no
10284       if test "$host_os" = linux-dietlibc; then
10285         case $cc_basename in
10286           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10287         esac
10288       fi
10289       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10290          && test "$tmp_diet" = no
10291       then
10292         tmp_addflag=
10293         tmp_sharedflag='-shared'
10294         case $cc_basename,$host_cpu in
10295         pgcc*)                          # Portland Group C compiler
10296           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'
10297           tmp_addflag=' $pic_flag'
10298           ;;
10299         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10300           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'
10301           tmp_addflag=' $pic_flag -Mnomain' ;;
10302         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10303           tmp_addflag=' -i_dynamic' ;;
10304         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10305           tmp_addflag=' -i_dynamic -nofor_main' ;;
10306         ifc* | ifort*)                  # Intel Fortran compiler
10307           tmp_addflag=' -nofor_main' ;;
10308         lf95*)                          # Lahey Fortran 8.1
10309           whole_archive_flag_spec=
10310           tmp_sharedflag='--shared' ;;
10311         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10312           tmp_sharedflag='-qmkshrobj'
10313           tmp_addflag= ;;
10314         esac
10315         case `$CC -V 2>&1 | sed 5q` in
10316         *Sun\ C*)                       # Sun C 5.9
10317           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'
10318           compiler_needs_object=yes
10319           tmp_sharedflag='-G' ;;
10320         *Sun\ F*)                       # Sun Fortran 8.3
10321           tmp_sharedflag='-G' ;;
10322         esac
10323         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10324
10325         if test "x$supports_anon_versioning" = xyes; then
10326           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10327             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10328             echo "local: *; };" >> $output_objdir/$libname.ver~
10329             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10330         fi
10331
10332         case $cc_basename in
10333         xlf*)
10334           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10335           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10336           hardcode_libdir_flag_spec=
10337           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10338           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10339           if test "x$supports_anon_versioning" = xyes; then
10340             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10341               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10342               echo "local: *; };" >> $output_objdir/$libname.ver~
10343               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10344           fi
10345           ;;
10346         esac
10347       else
10348         ld_shlibs=no
10349       fi
10350       ;;
10351
10352     netbsd*)
10353       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10354         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10355         wlarc=
10356       else
10357         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10358         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10359       fi
10360       ;;
10361
10362     solaris*)
10363       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10364         ld_shlibs=no
10365         cat <<_LT_EOF 1>&2
10366
10367 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10368 *** create shared libraries on Solaris systems.  Therefore, libtool
10369 *** is disabling shared libraries support.  We urge you to upgrade GNU
10370 *** binutils to release 2.9.1 or newer.  Another option is to modify
10371 *** your PATH or compiler configuration so that the native linker is
10372 *** used, and then restart.
10373
10374 _LT_EOF
10375       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10378       else
10379         ld_shlibs=no
10380       fi
10381       ;;
10382
10383     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10384       case `$LD -v 2>&1` in
10385         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10386         ld_shlibs=no
10387         cat <<_LT_EOF 1>&2
10388
10389 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10390 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10391 *** is disabling shared libraries support.  We urge you to upgrade GNU
10392 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10393 *** your PATH or compiler configuration so that the native linker is
10394 *** used, and then restart.
10395
10396 _LT_EOF
10397         ;;
10398         *)
10399           # For security reasons, it is highly recommended that you always
10400           # use absolute paths for naming shared libraries, and exclude the
10401           # DT_RUNPATH tag from executables and libraries.  But doing so
10402           # requires that you compile everything twice, which is a pain.
10403           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10404             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10405             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10406             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10407           else
10408             ld_shlibs=no
10409           fi
10410         ;;
10411       esac
10412       ;;
10413
10414     sunos4*)
10415       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10416       wlarc=
10417       hardcode_direct=yes
10418       hardcode_shlibpath_var=no
10419       ;;
10420
10421     *)
10422       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10423         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10424         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10425       else
10426         ld_shlibs=no
10427       fi
10428       ;;
10429     esac
10430
10431     if test "$ld_shlibs" = no; then
10432       runpath_var=
10433       hardcode_libdir_flag_spec=
10434       export_dynamic_flag_spec=
10435       whole_archive_flag_spec=
10436     fi
10437   else
10438     # PORTME fill in a description of your system's linker (not GNU ld)
10439     case $host_os in
10440     aix3*)
10441       allow_undefined_flag=unsupported
10442       always_export_symbols=yes
10443       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'
10444       # Note: this linker hardcodes the directories in LIBPATH if there
10445       # are no directories specified by -L.
10446       hardcode_minus_L=yes
10447       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10448         # Neither direct hardcoding nor static linking is supported with a
10449         # broken collect2.
10450         hardcode_direct=unsupported
10451       fi
10452       ;;
10453
10454     aix[4-9]*)
10455       if test "$host_cpu" = ia64; then
10456         # On IA64, the linker does run time linking by default, so we don't
10457         # have to do anything special.
10458         aix_use_runtimelinking=no
10459         exp_sym_flag='-Bexport'
10460         no_entry_flag=""
10461       else
10462         # If we're using GNU nm, then we don't want the "-C" option.
10463         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10464         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10465           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'
10466         else
10467           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'
10468         fi
10469         aix_use_runtimelinking=no
10470
10471         # Test if we are trying to use run time linking or normal
10472         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10473         # need to do runtime linking.
10474         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10475           for ld_flag in $LDFLAGS; do
10476           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10477             aix_use_runtimelinking=yes
10478             break
10479           fi
10480           done
10481           ;;
10482         esac
10483
10484         exp_sym_flag='-bexport'
10485         no_entry_flag='-bnoentry'
10486       fi
10487
10488       # When large executables or shared objects are built, AIX ld can
10489       # have problems creating the table of contents.  If linking a library
10490       # or program results in "error TOC overflow" add -mminimal-toc to
10491       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10492       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10493
10494       archive_cmds=''
10495       hardcode_direct=yes
10496       hardcode_direct_absolute=yes
10497       hardcode_libdir_separator=':'
10498       link_all_deplibs=yes
10499       file_list_spec='${wl}-f,'
10500
10501       if test "$GCC" = yes; then
10502         case $host_os in aix4.[012]|aix4.[012].*)
10503         # We only want to do this on AIX 4.2 and lower, the check
10504         # below for broken collect2 doesn't work under 4.3+
10505           collect2name=`${CC} -print-prog-name=collect2`
10506           if test -f "$collect2name" &&
10507            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10508           then
10509           # We have reworked collect2
10510           :
10511           else
10512           # We have old collect2
10513           hardcode_direct=unsupported
10514           # It fails to find uninstalled libraries when the uninstalled
10515           # path is not listed in the libpath.  Setting hardcode_minus_L
10516           # to unsupported forces relinking
10517           hardcode_minus_L=yes
10518           hardcode_libdir_flag_spec='-L$libdir'
10519           hardcode_libdir_separator=
10520           fi
10521           ;;
10522         esac
10523         shared_flag='-shared'
10524         if test "$aix_use_runtimelinking" = yes; then
10525           shared_flag="$shared_flag "'${wl}-G'
10526         fi
10527       else
10528         # not using gcc
10529         if test "$host_cpu" = ia64; then
10530         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10531         # chokes on -Wl,-G. The following line is correct:
10532           shared_flag='-G'
10533         else
10534           if test "$aix_use_runtimelinking" = yes; then
10535             shared_flag='${wl}-G'
10536           else
10537             shared_flag='${wl}-bM:SRE'
10538           fi
10539         fi
10540       fi
10541
10542       export_dynamic_flag_spec='${wl}-bexpall'
10543       # It seems that -bexpall does not export symbols beginning with
10544       # underscore (_), so it is better to generate a list of symbols to export.
10545       always_export_symbols=yes
10546       if test "$aix_use_runtimelinking" = yes; then
10547         # Warning - without using the other runtime loading flags (-brtl),
10548         # -berok will link without error, but may produce a broken library.
10549         allow_undefined_flag='-berok'
10550         # Determine the default libpath from the value encoded in an
10551         # empty executable.
10552         if test x$gcc_no_link = xyes; then
10553   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10554 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10555    { (exit 1); exit 1; }; }
10556 fi
10557 cat >conftest.$ac_ext <<_ACEOF
10558 /* confdefs.h.  */
10559 _ACEOF
10560 cat confdefs.h >>conftest.$ac_ext
10561 cat >>conftest.$ac_ext <<_ACEOF
10562 /* end confdefs.h.  */
10563
10564 int
10565 main ()
10566 {
10567
10568   ;
10569   return 0;
10570 }
10571 _ACEOF
10572 rm -f conftest.$ac_objext conftest$ac_exeext
10573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10574   (eval $ac_link) 2>conftest.er1
10575   ac_status=$?
10576   grep -v '^ *+' conftest.er1 >conftest.err
10577   rm -f conftest.er1
10578   cat conftest.err >&5
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); } &&
10581          { ac_try='test -z "$ac_c_werror_flag"
10582                          || test ! -s conftest.err'
10583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584   (eval $ac_try) 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; } &&
10588          { ac_try='test -s conftest$ac_exeext'
10589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590   (eval $ac_try) 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; }; then
10594
10595 lt_aix_libpath_sed='
10596     /Import File Strings/,/^$/ {
10597         /^0/ {
10598             s/^0  *\(.*\)$/\1/
10599             p
10600         }
10601     }'
10602 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10603 # Check for a 64-bit object if we didn't find anything.
10604 if test -z "$aix_libpath"; then
10605   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10606 fi
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 fi
10612 rm -f conftest.err conftest.$ac_objext \
10613       conftest$ac_exeext conftest.$ac_ext
10614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10615
10616         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10617         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"
10618       else
10619         if test "$host_cpu" = ia64; then
10620           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10621           allow_undefined_flag="-z nodefs"
10622           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"
10623         else
10624          # Determine the default libpath from the value encoded in an
10625          # empty executable.
10626          if test x$gcc_no_link = xyes; then
10627   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10628 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10629    { (exit 1); exit 1; }; }
10630 fi
10631 cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637
10638 int
10639 main ()
10640 {
10641
10642   ;
10643   return 0;
10644 }
10645 _ACEOF
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10648   (eval $ac_link) 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } &&
10655          { ac_try='test -z "$ac_c_werror_flag"
10656                          || test ! -s conftest.err'
10657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658   (eval $ac_try) 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; } &&
10662          { ac_try='test -s conftest$ac_exeext'
10663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664   (eval $ac_try) 2>&5
10665   ac_status=$?
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); }; }; then
10668
10669 lt_aix_libpath_sed='
10670     /Import File Strings/,/^$/ {
10671         /^0/ {
10672             s/^0  *\(.*\)$/\1/
10673             p
10674         }
10675     }'
10676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10677 # Check for a 64-bit object if we didn't find anything.
10678 if test -z "$aix_libpath"; then
10679   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 fi
10681 else
10682   echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.$ac_ext >&5
10684
10685 fi
10686 rm -f conftest.err conftest.$ac_objext \
10687       conftest$ac_exeext conftest.$ac_ext
10688 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10689
10690          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10691           # Warning - without using the other run time loading flags,
10692           # -berok will link without error, but may produce a broken library.
10693           no_undefined_flag=' ${wl}-bernotok'
10694           allow_undefined_flag=' ${wl}-berok'
10695           # Exported symbols can be pulled into shared objects from archives
10696           whole_archive_flag_spec='$convenience'
10697           archive_cmds_need_lc=yes
10698           # This is similar to how AIX traditionally builds its shared libraries.
10699           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'
10700         fi
10701       fi
10702       ;;
10703
10704     amigaos*)
10705       case $host_cpu in
10706       powerpc)
10707             # see comment about AmigaOS4 .so support
10708             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709             archive_expsym_cmds=''
10710         ;;
10711       m68k)
10712             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)'
10713             hardcode_libdir_flag_spec='-L$libdir'
10714             hardcode_minus_L=yes
10715         ;;
10716       esac
10717       ;;
10718
10719     bsdi[45]*)
10720       export_dynamic_flag_spec=-rdynamic
10721       ;;
10722
10723     cygwin* | mingw* | pw32* | cegcc*)
10724       # When not using gcc, we currently assume that we are using
10725       # Microsoft Visual C++.
10726       # hardcode_libdir_flag_spec is actually meaningless, as there is
10727       # no search path for DLLs.
10728       hardcode_libdir_flag_spec=' '
10729       allow_undefined_flag=unsupported
10730       # Tell ltmain to make .lib files, not .a files.
10731       libext=lib
10732       # Tell ltmain to make .dll files, not .so files.
10733       shrext_cmds=".dll"
10734       # FIXME: Setting linknames here is a bad hack.
10735       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10736       # The linker will automatically build a .lib file if we build a DLL.
10737       old_archive_from_new_cmds='true'
10738       # FIXME: Should let the user specify the lib program.
10739       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10740       fix_srcfile_path='`cygpath -w "$srcfile"`'
10741       enable_shared_with_static_runtimes=yes
10742       ;;
10743
10744     darwin* | rhapsody*)
10745
10746
10747   archive_cmds_need_lc=no
10748   hardcode_direct=no
10749   hardcode_automatic=yes
10750   hardcode_shlibpath_var=unsupported
10751   whole_archive_flag_spec=''
10752   link_all_deplibs=yes
10753   allow_undefined_flag="$_lt_dar_allow_undefined"
10754   case $cc_basename in
10755      ifort*) _lt_dar_can_shared=yes ;;
10756      *) _lt_dar_can_shared=$GCC ;;
10757   esac
10758   if test "$_lt_dar_can_shared" = "yes"; then
10759     output_verbose_link_cmd=echo
10760     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10761     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10762     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10763     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10764
10765   else
10766   ld_shlibs=no
10767   fi
10768
10769       ;;
10770
10771     dgux*)
10772       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773       hardcode_libdir_flag_spec='-L$libdir'
10774       hardcode_shlibpath_var=no
10775       ;;
10776
10777     freebsd1*)
10778       ld_shlibs=no
10779       ;;
10780
10781     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10782     # support.  Future versions do this automatically, but an explicit c++rt0.o
10783     # does not break anything, and helps significantly (at the cost of a little
10784     # extra space).
10785     freebsd2.2*)
10786       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10787       hardcode_libdir_flag_spec='-R$libdir'
10788       hardcode_direct=yes
10789       hardcode_shlibpath_var=no
10790       ;;
10791
10792     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10793     freebsd2*)
10794       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10795       hardcode_direct=yes
10796       hardcode_minus_L=yes
10797       hardcode_shlibpath_var=no
10798       ;;
10799
10800     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10801     freebsd* | dragonfly*)
10802       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10803       hardcode_libdir_flag_spec='-R$libdir'
10804       hardcode_direct=yes
10805       hardcode_shlibpath_var=no
10806       ;;
10807
10808     hpux9*)
10809       if test "$GCC" = yes; then
10810         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'
10811       else
10812         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'
10813       fi
10814       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10815       hardcode_libdir_separator=:
10816       hardcode_direct=yes
10817
10818       # hardcode_minus_L: Not really in the search PATH,
10819       # but as the default location of the library.
10820       hardcode_minus_L=yes
10821       export_dynamic_flag_spec='${wl}-E'
10822       ;;
10823
10824     hpux10*)
10825       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10826         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10827       else
10828         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10829       fi
10830       if test "$with_gnu_ld" = no; then
10831         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10832         hardcode_libdir_flag_spec_ld='+b $libdir'
10833         hardcode_libdir_separator=:
10834         hardcode_direct=yes
10835         hardcode_direct_absolute=yes
10836         export_dynamic_flag_spec='${wl}-E'
10837         # hardcode_minus_L: Not really in the search PATH,
10838         # but as the default location of the library.
10839         hardcode_minus_L=yes
10840       fi
10841       ;;
10842
10843     hpux11*)
10844       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10845         case $host_cpu in
10846         hppa*64*)
10847           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10848           ;;
10849         ia64*)
10850           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10851           ;;
10852         *)
10853           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10854           ;;
10855         esac
10856       else
10857         case $host_cpu in
10858         hppa*64*)
10859           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10860           ;;
10861         ia64*)
10862           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10863           ;;
10864         *)
10865           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10866           ;;
10867         esac
10868       fi
10869       if test "$with_gnu_ld" = no; then
10870         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10871         hardcode_libdir_separator=:
10872
10873         case $host_cpu in
10874         hppa*64*|ia64*)
10875           hardcode_direct=no
10876           hardcode_shlibpath_var=no
10877           ;;
10878         *)
10879           hardcode_direct=yes
10880           hardcode_direct_absolute=yes
10881           export_dynamic_flag_spec='${wl}-E'
10882
10883           # hardcode_minus_L: Not really in the search PATH,
10884           # but as the default location of the library.
10885           hardcode_minus_L=yes
10886           ;;
10887         esac
10888       fi
10889       ;;
10890
10891     irix5* | irix6* | nonstopux*)
10892       if test "$GCC" = yes; then
10893         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'
10894         # Try to use the -exported_symbol ld option, if it does not
10895         # work, assume that -exports_file does not work either and
10896         # implicitly export all symbols.
10897         save_LDFLAGS="$LDFLAGS"
10898         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10899         if test x$gcc_no_link = xyes; then
10900   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10901 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10902    { (exit 1); exit 1; }; }
10903 fi
10904 cat >conftest.$ac_ext <<_ACEOF
10905 int foo(void) {}
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909   (eval $ac_link) 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } &&
10916          { ac_try='test -z "$ac_c_werror_flag"
10917                          || test ! -s conftest.err'
10918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919   (eval $ac_try) 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; } &&
10923          { ac_try='test -s conftest$ac_exeext'
10924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925   (eval $ac_try) 2>&5
10926   ac_status=$?
10927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928   (exit $ac_status); }; }; then
10929   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'
10930
10931 else
10932   echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 fi
10936 rm -f conftest.err conftest.$ac_objext \
10937       conftest$ac_exeext conftest.$ac_ext
10938         LDFLAGS="$save_LDFLAGS"
10939       else
10940         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'
10941         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'
10942       fi
10943       archive_cmds_need_lc='no'
10944       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10945       hardcode_libdir_separator=:
10946       inherit_rpath=yes
10947       link_all_deplibs=yes
10948       ;;
10949
10950     netbsd*)
10951       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10952         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10953       else
10954         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10955       fi
10956       hardcode_libdir_flag_spec='-R$libdir'
10957       hardcode_direct=yes
10958       hardcode_shlibpath_var=no
10959       ;;
10960
10961     newsos6)
10962       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963       hardcode_direct=yes
10964       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10965       hardcode_libdir_separator=:
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     *nto* | *qnx*)
10970       ;;
10971
10972     openbsd*)
10973       if test -f /usr/libexec/ld.so; then
10974         hardcode_direct=yes
10975         hardcode_shlibpath_var=no
10976         hardcode_direct_absolute=yes
10977         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10978           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10979           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10980           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10981           export_dynamic_flag_spec='${wl}-E'
10982         else
10983           case $host_os in
10984            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10985              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10986              hardcode_libdir_flag_spec='-R$libdir'
10987              ;;
10988            *)
10989              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10990              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10991              ;;
10992           esac
10993         fi
10994       else
10995         ld_shlibs=no
10996       fi
10997       ;;
10998
10999     os2*)
11000       hardcode_libdir_flag_spec='-L$libdir'
11001       hardcode_minus_L=yes
11002       allow_undefined_flag=unsupported
11003       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'
11004       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11005       ;;
11006
11007     osf3*)
11008       if test "$GCC" = yes; then
11009         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11010         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'
11011       else
11012         allow_undefined_flag=' -expect_unresolved \*'
11013         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'
11014       fi
11015       archive_cmds_need_lc='no'
11016       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11017       hardcode_libdir_separator=:
11018       ;;
11019
11020     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11021       if test "$GCC" = yes; then
11022         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11023         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'
11024         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11025       else
11026         allow_undefined_flag=' -expect_unresolved \*'
11027         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'
11028         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~
11029         $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'
11030
11031         # Both c and cxx compiler support -rpath directly
11032         hardcode_libdir_flag_spec='-rpath $libdir'
11033       fi
11034       archive_cmds_need_lc='no'
11035       hardcode_libdir_separator=:
11036       ;;
11037
11038     solaris*)
11039       no_undefined_flag=' -z defs'
11040       if test "$GCC" = yes; then
11041         wlarc='${wl}'
11042         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11043         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11044           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11045       else
11046         case `$CC -V 2>&1` in
11047         *"Compilers 5.0"*)
11048           wlarc=''
11049           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11051           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11052           ;;
11053         *)
11054           wlarc='${wl}'
11055           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11056           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11057           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11058           ;;
11059         esac
11060       fi
11061       hardcode_libdir_flag_spec='-R$libdir'
11062       hardcode_shlibpath_var=no
11063       case $host_os in
11064       solaris2.[0-5] | solaris2.[0-5].*) ;;
11065       *)
11066         # The compiler driver will combine and reorder linker options,
11067         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11068         # but is careful enough not to reorder.
11069         # Supported since Solaris 2.6 (maybe 2.5.1?)
11070         if test "$GCC" = yes; then
11071           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11072         else
11073           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11074         fi
11075         ;;
11076       esac
11077       link_all_deplibs=yes
11078       ;;
11079
11080     sunos4*)
11081       if test "x$host_vendor" = xsequent; then
11082         # Use $CC to link under sequent, because it throws in some extra .o
11083         # files that make .init and .fini sections work.
11084         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11085       else
11086         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11087       fi
11088       hardcode_libdir_flag_spec='-L$libdir'
11089       hardcode_direct=yes
11090       hardcode_minus_L=yes
11091       hardcode_shlibpath_var=no
11092       ;;
11093
11094     sysv4)
11095       case $host_vendor in
11096         sni)
11097           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11098           hardcode_direct=yes # is this really true???
11099         ;;
11100         siemens)
11101           ## LD is ld it makes a PLAMLIB
11102           ## CC just makes a GrossModule.
11103           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11104           reload_cmds='$CC -r -o $output$reload_objs'
11105           hardcode_direct=no
11106         ;;
11107         motorola)
11108           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11109           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11110         ;;
11111       esac
11112       runpath_var='LD_RUN_PATH'
11113       hardcode_shlibpath_var=no
11114       ;;
11115
11116     sysv4.3*)
11117       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11118       hardcode_shlibpath_var=no
11119       export_dynamic_flag_spec='-Bexport'
11120       ;;
11121
11122     sysv4*MP*)
11123       if test -d /usr/nec; then
11124         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11125         hardcode_shlibpath_var=no
11126         runpath_var=LD_RUN_PATH
11127         hardcode_runpath_var=yes
11128         ld_shlibs=yes
11129       fi
11130       ;;
11131
11132     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11133       no_undefined_flag='${wl}-z,text'
11134       archive_cmds_need_lc=no
11135       hardcode_shlibpath_var=no
11136       runpath_var='LD_RUN_PATH'
11137
11138       if test "$GCC" = yes; then
11139         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11140         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11141       else
11142         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11143         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11144       fi
11145       ;;
11146
11147     sysv5* | sco3.2v5* | sco5v6*)
11148       # Note: We can NOT use -z defs as we might desire, because we do not
11149       # link with -lc, and that would cause any symbols used from libc to
11150       # always be unresolved, which means just about no library would
11151       # ever link correctly.  If we're not using GNU ld we use -z text
11152       # though, which does catch some bad symbols but isn't as heavy-handed
11153       # as -z defs.
11154       no_undefined_flag='${wl}-z,text'
11155       allow_undefined_flag='${wl}-z,nodefs'
11156       archive_cmds_need_lc=no
11157       hardcode_shlibpath_var=no
11158       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11159       hardcode_libdir_separator=':'
11160       link_all_deplibs=yes
11161       export_dynamic_flag_spec='${wl}-Bexport'
11162       runpath_var='LD_RUN_PATH'
11163
11164       if test "$GCC" = yes; then
11165         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11166         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11167       else
11168         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11169         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11170       fi
11171       ;;
11172
11173     uts4*)
11174       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175       hardcode_libdir_flag_spec='-L$libdir'
11176       hardcode_shlibpath_var=no
11177       ;;
11178
11179     *)
11180       ld_shlibs=no
11181       ;;
11182     esac
11183
11184     if test x$host_vendor = xsni; then
11185       case $host in
11186       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11187         export_dynamic_flag_spec='${wl}-Blargedynsym'
11188         ;;
11189       esac
11190     fi
11191   fi
11192
11193 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11194 echo "${ECHO_T}$ld_shlibs" >&6
11195 test "$ld_shlibs" = no && can_build_shared=no
11196
11197 with_gnu_ld=$with_gnu_ld
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213 #
11214 # Do we need to explicitly link libc?
11215 #
11216 case "x$archive_cmds_need_lc" in
11217 x|xyes)
11218   # Assume -lc should be added
11219   archive_cmds_need_lc=yes
11220
11221   if test "$enable_shared" = yes && test "$GCC" = yes; then
11222     case $archive_cmds in
11223     *'~'*)
11224       # FIXME: we may have to deal with multi-command sequences.
11225       ;;
11226     '$CC '*)
11227       # Test whether the compiler implicitly links with -lc since on some
11228       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11229       # to ld, don't add -lc before -lgcc.
11230       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11231 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11232 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   $RM conftest*
11236         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11237
11238         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11239   (eval $ac_compile) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } 2>conftest.err; then
11243           soname=conftest
11244           lib=conftest
11245           libobjs=conftest.$ac_objext
11246           deplibs=
11247           wl=$lt_prog_compiler_wl
11248           pic_flag=$lt_prog_compiler_pic
11249           compiler_flags=-v
11250           linker_flags=-v
11251           verstring=
11252           output_objdir=.
11253           libname=conftest
11254           lt_save_allow_undefined_flag=$allow_undefined_flag
11255           allow_undefined_flag=
11256           if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11257   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11258   ac_status=$?
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); }
11261           then
11262             lt_cv_archive_cmds_need_lc=no
11263           else
11264             lt_cv_archive_cmds_need_lc=yes
11265           fi
11266           allow_undefined_flag=$lt_save_allow_undefined_flag
11267         else
11268           cat conftest.err 1>&5
11269         fi
11270         $RM conftest*
11271
11272 fi
11273 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
11274 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
11275       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11276       ;;
11277     esac
11278   fi
11279   ;;
11280 esac
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
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
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438   echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11439 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11440
11441 if test "$GCC" = yes; then
11442   case $host_os in
11443     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11444     *) lt_awk_arg="/^libraries:/" ;;
11445   esac
11446   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11447   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11448     # if the path contains ";" then we assume it to be the separator
11449     # otherwise default to the standard path separator (i.e. ":") - it is
11450     # assumed that no part of a normal pathname contains ";" but that should
11451     # okay in the real world where ";" in dirpaths is itself problematic.
11452     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11453   else
11454     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11455   fi
11456   # Ok, now we have the path, separated by spaces, we can step through it
11457   # and add multilib dir if necessary.
11458   lt_tmp_lt_search_path_spec=
11459   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11460   for lt_sys_path in $lt_search_path_spec; do
11461     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11462       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11463     else
11464       test -d "$lt_sys_path" && \
11465         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11466     fi
11467   done
11468   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11469 BEGIN {RS=" "; FS="/|\n";} {
11470   lt_foo="";
11471   lt_count=0;
11472   for (lt_i = NF; lt_i > 0; lt_i--) {
11473     if ($lt_i != "" && $lt_i != ".") {
11474       if ($lt_i == "..") {
11475         lt_count++;
11476       } else {
11477         if (lt_count == 0) {
11478           lt_foo="/" $lt_i lt_foo;
11479         } else {
11480           lt_count--;
11481         }
11482       }
11483     }
11484   }
11485   if (lt_foo != "") { lt_freq[lt_foo]++; }
11486   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11487 }'`
11488   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11489 else
11490   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11491 fi
11492 library_names_spec=
11493 libname_spec='lib$name'
11494 soname_spec=
11495 shrext_cmds=".so"
11496 postinstall_cmds=
11497 postuninstall_cmds=
11498 finish_cmds=
11499 finish_eval=
11500 shlibpath_var=
11501 shlibpath_overrides_runpath=unknown
11502 version_type=none
11503 dynamic_linker="$host_os ld.so"
11504 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11505 need_lib_prefix=unknown
11506 hardcode_into_libs=no
11507
11508 # when you set need_version to no, make sure it does not cause -set_version
11509 # flags to be left without arguments
11510 need_version=unknown
11511
11512 case $host_os in
11513 aix3*)
11514   version_type=linux
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11516   shlibpath_var=LIBPATH
11517
11518   # AIX 3 has no versioning support, so we append a major version to the name.
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   ;;
11521
11522 aix[4-9]*)
11523   version_type=linux
11524   need_lib_prefix=no
11525   need_version=no
11526   hardcode_into_libs=yes
11527   if test "$host_cpu" = ia64; then
11528     # AIX 5 supports IA64
11529     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11530     shlibpath_var=LD_LIBRARY_PATH
11531   else
11532     # With GCC up to 2.95.x, collect2 would create an import file
11533     # for dependence libraries.  The import file would start with
11534     # the line `#! .'.  This would cause the generated library to
11535     # depend on `.', always an invalid library.  This was fixed in
11536     # development snapshots of GCC prior to 3.0.
11537     case $host_os in
11538       aix4 | aix4.[01] | aix4.[01].*)
11539       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11540            echo ' yes '
11541            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11542         :
11543       else
11544         can_build_shared=no
11545       fi
11546       ;;
11547     esac
11548     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11549     # soname into executable. Probably we can add versioning support to
11550     # collect2, so additional links can be useful in future.
11551     if test "$aix_use_runtimelinking" = yes; then
11552       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11553       # instead of lib<name>.a to let people know that these are not
11554       # typical AIX shared libraries.
11555       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556     else
11557       # We preserve .a as extension for shared libraries through AIX4.2
11558       # and later when we are not doing run time linking.
11559       library_names_spec='${libname}${release}.a $libname.a'
11560       soname_spec='${libname}${release}${shared_ext}$major'
11561     fi
11562     shlibpath_var=LIBPATH
11563   fi
11564   ;;
11565
11566 amigaos*)
11567   case $host_cpu in
11568   powerpc)
11569     # Since July 2007 AmigaOS4 officially supports .so libraries.
11570     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11571     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572     ;;
11573   m68k)
11574     library_names_spec='$libname.ixlibrary $libname.a'
11575     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11576     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'
11577     ;;
11578   esac
11579   ;;
11580
11581 beos*)
11582   library_names_spec='${libname}${shared_ext}'
11583   dynamic_linker="$host_os ld.so"
11584   shlibpath_var=LIBRARY_PATH
11585   ;;
11586
11587 bsdi[45]*)
11588   version_type=linux
11589   need_version=no
11590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11591   soname_spec='${libname}${release}${shared_ext}$major'
11592   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11593   shlibpath_var=LD_LIBRARY_PATH
11594   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11595   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11596   # the default ld.so.conf also contains /usr/contrib/lib and
11597   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11598   # libtool to hard-code these into programs
11599   ;;
11600
11601 cygwin* | mingw* | pw32* | cegcc*)
11602   version_type=windows
11603   shrext_cmds=".dll"
11604   need_version=no
11605   need_lib_prefix=no
11606
11607   case $GCC,$host_os in
11608   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11609     library_names_spec='$libname.dll.a'
11610     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11611     postinstall_cmds='base_file=`basename \${file}`~
11612       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11613       dldir=$destdir/`dirname \$dlpath`~
11614       test -d \$dldir || mkdir -p \$dldir~
11615       $install_prog $dir/$dlname \$dldir/$dlname~
11616       chmod a+x \$dldir/$dlname~
11617       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11618         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11619       fi'
11620     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11621       dlpath=$dir/\$dldll~
11622        $RM \$dlpath'
11623     shlibpath_overrides_runpath=yes
11624
11625     case $host_os in
11626     cygwin*)
11627       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11628       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11629       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11630       ;;
11631     mingw* | cegcc*)
11632       # MinGW DLLs use traditional 'lib' prefix
11633       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11634       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11635       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11636         # It is most probably a Windows format PATH printed by
11637         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11638         # path with ; separators, and with drive letters. We can handle the
11639         # drive letters (cygwin fileutils understands them), so leave them,
11640         # especially as we might pass files found there to a mingw objdump,
11641         # which wouldn't understand a cygwinified path. Ahh.
11642         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11643       else
11644         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11645       fi
11646       ;;
11647     pw32*)
11648       # pw32 DLLs use 'pw' prefix rather than 'lib'
11649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11650       ;;
11651     esac
11652     ;;
11653
11654   *)
11655     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11656     ;;
11657   esac
11658   dynamic_linker='Win32 ld.exe'
11659   # FIXME: first we should search . and the directory the executable is in
11660   shlibpath_var=PATH
11661   ;;
11662
11663 darwin* | rhapsody*)
11664   dynamic_linker="$host_os dyld"
11665   version_type=darwin
11666   need_lib_prefix=no
11667   need_version=no
11668   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11669   soname_spec='${libname}${release}${major}$shared_ext'
11670   shlibpath_overrides_runpath=yes
11671   shlibpath_var=DYLD_LIBRARY_PATH
11672   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11673
11674   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11675   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11676   ;;
11677
11678 dgux*)
11679   version_type=linux
11680   need_lib_prefix=no
11681   need_version=no
11682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11683   soname_spec='${libname}${release}${shared_ext}$major'
11684   shlibpath_var=LD_LIBRARY_PATH
11685   ;;
11686
11687 freebsd1*)
11688   dynamic_linker=no
11689   ;;
11690
11691 freebsd* | dragonfly*)
11692   # DragonFly does not have aout.  When/if they implement a new
11693   # versioning mechanism, adjust this.
11694   if test -x /usr/bin/objformat; then
11695     objformat=`/usr/bin/objformat`
11696   else
11697     case $host_os in
11698     freebsd[123]*) objformat=aout ;;
11699     *) objformat=elf ;;
11700     esac
11701   fi
11702   version_type=freebsd-$objformat
11703   case $version_type in
11704     freebsd-elf*)
11705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11706       need_version=no
11707       need_lib_prefix=no
11708       ;;
11709     freebsd-*)
11710       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11711       need_version=yes
11712       ;;
11713   esac
11714   shlibpath_var=LD_LIBRARY_PATH
11715   case $host_os in
11716   freebsd2*)
11717     shlibpath_overrides_runpath=yes
11718     ;;
11719   freebsd3.[01]* | freebsdelf3.[01]*)
11720     shlibpath_overrides_runpath=yes
11721     hardcode_into_libs=yes
11722     ;;
11723   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11724   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11725     shlibpath_overrides_runpath=no
11726     hardcode_into_libs=yes
11727     ;;
11728   *) # from 4.6 on, and DragonFly
11729     shlibpath_overrides_runpath=yes
11730     hardcode_into_libs=yes
11731     ;;
11732   esac
11733   ;;
11734
11735 gnu*)
11736   version_type=linux
11737   need_lib_prefix=no
11738   need_version=no
11739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11740   soname_spec='${libname}${release}${shared_ext}$major'
11741   shlibpath_var=LD_LIBRARY_PATH
11742   hardcode_into_libs=yes
11743   ;;
11744
11745 hpux9* | hpux10* | hpux11*)
11746   # Give a soname corresponding to the major version so that dld.sl refuses to
11747   # link against other versions.
11748   version_type=sunos
11749   need_lib_prefix=no
11750   need_version=no
11751   case $host_cpu in
11752   ia64*)
11753     shrext_cmds='.so'
11754     hardcode_into_libs=yes
11755     dynamic_linker="$host_os dld.so"
11756     shlibpath_var=LD_LIBRARY_PATH
11757     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11758     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759     soname_spec='${libname}${release}${shared_ext}$major'
11760     if test "X$HPUX_IA64_MODE" = X32; then
11761       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11762     else
11763       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11764     fi
11765     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766     ;;
11767   hppa*64*)
11768     shrext_cmds='.sl'
11769     hardcode_into_libs=yes
11770     dynamic_linker="$host_os dld.sl"
11771     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11772     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774     soname_spec='${libname}${release}${shared_ext}$major'
11775     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11776     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11777     ;;
11778   *)
11779     shrext_cmds='.sl'
11780     dynamic_linker="$host_os dld.sl"
11781     shlibpath_var=SHLIB_PATH
11782     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11783     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784     soname_spec='${libname}${release}${shared_ext}$major'
11785     ;;
11786   esac
11787   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11788   postinstall_cmds='chmod 555 $lib'
11789   ;;
11790
11791 interix[3-9]*)
11792   version_type=linux
11793   need_lib_prefix=no
11794   need_version=no
11795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796   soname_spec='${libname}${release}${shared_ext}$major'
11797   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11798   shlibpath_var=LD_LIBRARY_PATH
11799   shlibpath_overrides_runpath=no
11800   hardcode_into_libs=yes
11801   ;;
11802
11803 irix5* | irix6* | nonstopux*)
11804   case $host_os in
11805     nonstopux*) version_type=nonstopux ;;
11806     *)
11807         if test "$lt_cv_prog_gnu_ld" = yes; then
11808                 version_type=linux
11809         else
11810                 version_type=irix
11811         fi ;;
11812   esac
11813   need_lib_prefix=no
11814   need_version=no
11815   soname_spec='${libname}${release}${shared_ext}$major'
11816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11817   case $host_os in
11818   irix5* | nonstopux*)
11819     libsuff= shlibsuff=
11820     ;;
11821   *)
11822     case $LD in # libtool.m4 will add one of these switches to LD
11823     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11824       libsuff= shlibsuff= libmagic=32-bit;;
11825     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11826       libsuff=32 shlibsuff=N32 libmagic=N32;;
11827     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11828       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11829     *) libsuff= shlibsuff= libmagic=never-match;;
11830     esac
11831     ;;
11832   esac
11833   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11834   shlibpath_overrides_runpath=no
11835   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11836   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11837   hardcode_into_libs=yes
11838   ;;
11839
11840 # No shared lib support for Linux oldld, aout, or coff.
11841 linux*oldld* | linux*aout* | linux*coff*)
11842   dynamic_linker=no
11843   ;;
11844
11845 # This must be Linux ELF.
11846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11847   version_type=linux
11848   need_lib_prefix=no
11849   need_version=no
11850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851   soname_spec='${libname}${release}${shared_ext}$major'
11852   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   shlibpath_overrides_runpath=no
11855
11856   # Some binutils ld are patched to set DT_RUNPATH
11857   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11858   echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860   lt_cv_shlibpath_overrides_runpath=no
11861     save_LDFLAGS=$LDFLAGS
11862     save_libdir=$libdir
11863     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11864          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11865     if test x$gcc_no_link = xyes; then
11866   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11867 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11868    { (exit 1); exit 1; }; }
11869 fi
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876
11877 int
11878 main ()
11879 {
11880
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11887   (eval $ac_link) 2>conftest.er1
11888   ac_status=$?
11889   grep -v '^ *+' conftest.er1 >conftest.err
11890   rm -f conftest.er1
11891   cat conftest.err >&5
11892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893   (exit $ac_status); } &&
11894          { ac_try='test -z "$ac_c_werror_flag"
11895                          || test ! -s conftest.err'
11896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897   (eval $ac_try) 2>&5
11898   ac_status=$?
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); }; } &&
11901          { ac_try='test -s conftest$ac_exeext'
11902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11903   (eval $ac_try) 2>&5
11904   ac_status=$?
11905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906   (exit $ac_status); }; }; then
11907   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11908   lt_cv_shlibpath_overrides_runpath=yes
11909 fi
11910
11911 else
11912   echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 fi
11916 rm -f conftest.err conftest.$ac_objext \
11917       conftest$ac_exeext conftest.$ac_ext
11918     LDFLAGS=$save_LDFLAGS
11919     libdir=$save_libdir
11920
11921 fi
11922
11923   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11924
11925   # This implies no fast_install, which is unacceptable.
11926   # Some rework will be needed to allow for fast_install
11927   # before this can be enabled.
11928   hardcode_into_libs=yes
11929
11930   # Append ld.so.conf contents to the search path
11931   if test -f /etc/ld.so.conf; then
11932     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11934   fi
11935
11936   # We used to test for /lib/ld.so.1 and disable shared libraries on
11937   # powerpc, because MkLinux only supported shared libraries with the
11938   # GNU dynamic linker.  Since this was broken with cross compilers,
11939   # most powerpc-linux boxes support dynamic linking these days and
11940   # people can always --disable-shared, the test was removed, and we
11941   # assume the GNU/Linux dynamic linker is in use.
11942   dynamic_linker='GNU/Linux ld.so'
11943   ;;
11944
11945 netbsd*)
11946   version_type=sunos
11947   need_lib_prefix=no
11948   need_version=no
11949   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11951     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11952     dynamic_linker='NetBSD (a.out) ld.so'
11953   else
11954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11955     soname_spec='${libname}${release}${shared_ext}$major'
11956     dynamic_linker='NetBSD ld.elf_so'
11957   fi
11958   shlibpath_var=LD_LIBRARY_PATH
11959   shlibpath_overrides_runpath=yes
11960   hardcode_into_libs=yes
11961   ;;
11962
11963 newsos6)
11964   version_type=linux
11965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966   shlibpath_var=LD_LIBRARY_PATH
11967   shlibpath_overrides_runpath=yes
11968   ;;
11969
11970 *nto* | *qnx*)
11971   version_type=qnx
11972   need_lib_prefix=no
11973   need_version=no
11974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11975   soname_spec='${libname}${release}${shared_ext}$major'
11976   shlibpath_var=LD_LIBRARY_PATH
11977   shlibpath_overrides_runpath=no
11978   hardcode_into_libs=yes
11979   dynamic_linker='ldqnx.so'
11980   ;;
11981
11982 openbsd*)
11983   version_type=sunos
11984   sys_lib_dlsearch_path_spec="/usr/lib"
11985   need_lib_prefix=no
11986   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11987   case $host_os in
11988     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11989     *)                          need_version=no  ;;
11990   esac
11991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11993   shlibpath_var=LD_LIBRARY_PATH
11994   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11995     case $host_os in
11996       openbsd2.[89] | openbsd2.[89].*)
11997         shlibpath_overrides_runpath=no
11998         ;;
11999       *)
12000         shlibpath_overrides_runpath=yes
12001         ;;
12002       esac
12003   else
12004     shlibpath_overrides_runpath=yes
12005   fi
12006   ;;
12007
12008 os2*)
12009   libname_spec='$name'
12010   shrext_cmds=".dll"
12011   need_lib_prefix=no
12012   library_names_spec='$libname${shared_ext} $libname.a'
12013   dynamic_linker='OS/2 ld.exe'
12014   shlibpath_var=LIBPATH
12015   ;;
12016
12017 osf3* | osf4* | osf5*)
12018   version_type=osf
12019   need_lib_prefix=no
12020   need_version=no
12021   soname_spec='${libname}${release}${shared_ext}$major'
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12023   shlibpath_var=LD_LIBRARY_PATH
12024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12025   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12026   ;;
12027
12028 rdos*)
12029   dynamic_linker=no
12030   ;;
12031
12032 solaris*)
12033   version_type=linux
12034   need_lib_prefix=no
12035   need_version=no
12036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037   soname_spec='${libname}${release}${shared_ext}$major'
12038   shlibpath_var=LD_LIBRARY_PATH
12039   shlibpath_overrides_runpath=yes
12040   hardcode_into_libs=yes
12041   # ldd complains unless libraries are executable
12042   postinstall_cmds='chmod +x $lib'
12043   ;;
12044
12045 sunos4*)
12046   version_type=sunos
12047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12048   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12049   shlibpath_var=LD_LIBRARY_PATH
12050   shlibpath_overrides_runpath=yes
12051   if test "$with_gnu_ld" = yes; then
12052     need_lib_prefix=no
12053   fi
12054   need_version=yes
12055   ;;
12056
12057 sysv4 | sysv4.3*)
12058   version_type=linux
12059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060   soname_spec='${libname}${release}${shared_ext}$major'
12061   shlibpath_var=LD_LIBRARY_PATH
12062   case $host_vendor in
12063     sni)
12064       shlibpath_overrides_runpath=no
12065       need_lib_prefix=no
12066       runpath_var=LD_RUN_PATH
12067       ;;
12068     siemens)
12069       need_lib_prefix=no
12070       ;;
12071     motorola)
12072       need_lib_prefix=no
12073       need_version=no
12074       shlibpath_overrides_runpath=no
12075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12076       ;;
12077   esac
12078   ;;
12079
12080 sysv4*MP*)
12081   if test -d /usr/nec ;then
12082     version_type=linux
12083     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12084     soname_spec='$libname${shared_ext}.$major'
12085     shlibpath_var=LD_LIBRARY_PATH
12086   fi
12087   ;;
12088
12089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12090   version_type=freebsd-elf
12091   need_lib_prefix=no
12092   need_version=no
12093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12094   soname_spec='${libname}${release}${shared_ext}$major'
12095   shlibpath_var=LD_LIBRARY_PATH
12096   shlibpath_overrides_runpath=yes
12097   hardcode_into_libs=yes
12098   if test "$with_gnu_ld" = yes; then
12099     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12100   else
12101     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12102     case $host_os in
12103       sco3.2v5*)
12104         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12105         ;;
12106     esac
12107   fi
12108   sys_lib_dlsearch_path_spec='/usr/lib'
12109   ;;
12110
12111 tpf*)
12112   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12113   version_type=linux
12114   need_lib_prefix=no
12115   need_version=no
12116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12117   shlibpath_var=LD_LIBRARY_PATH
12118   shlibpath_overrides_runpath=no
12119   hardcode_into_libs=yes
12120   ;;
12121
12122 uts4*)
12123   version_type=linux
12124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12125   soname_spec='${libname}${release}${shared_ext}$major'
12126   shlibpath_var=LD_LIBRARY_PATH
12127   ;;
12128
12129 *)
12130   dynamic_linker=no
12131   ;;
12132 esac
12133 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12134 echo "${ECHO_T}$dynamic_linker" >&6
12135 test "$dynamic_linker" = no && can_build_shared=no
12136
12137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12138 if test "$GCC" = yes; then
12139   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12140 fi
12141
12142 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12143   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12144 fi
12145 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12146   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12147 fi
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12236 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12237 hardcode_action=
12238 if test -n "$hardcode_libdir_flag_spec" ||
12239    test -n "$runpath_var" ||
12240    test "X$hardcode_automatic" = "Xyes" ; then
12241
12242   # We can hardcode non-existent directories.
12243   if test "$hardcode_direct" != no &&
12244      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12245      # have to relink, otherwise we might link with an installed library
12246      # when we should be linking with a yet-to-be-installed one
12247      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12248      test "$hardcode_minus_L" != no; then
12249     # Linking always hardcodes the temporary library directory.
12250     hardcode_action=relink
12251   else
12252     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12253     hardcode_action=immediate
12254   fi
12255 else
12256   # We cannot hardcode anything, or else we can only hardcode existing
12257   # directories.
12258   hardcode_action=unsupported
12259 fi
12260 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12261 echo "${ECHO_T}$hardcode_action" >&6
12262
12263 if test "$hardcode_action" = relink ||
12264    test "$inherit_rpath" = yes; then
12265   # Fast installation is not supported
12266   enable_fast_install=no
12267 elif test "$shlibpath_overrides_runpath" = yes ||
12268      test "$enable_shared" = no; then
12269   # Fast installation is not necessary
12270   enable_fast_install=needless
12271 fi
12272
12273
12274
12275
12276
12277
12278   if test "x$enable_dlopen" != xyes; then
12279   enable_dlopen=unknown
12280   enable_dlopen_self=unknown
12281   enable_dlopen_self_static=unknown
12282 else
12283   lt_cv_dlopen=no
12284   lt_cv_dlopen_libs=
12285
12286   case $host_os in
12287   beos*)
12288     lt_cv_dlopen="load_add_on"
12289     lt_cv_dlopen_libs=
12290     lt_cv_dlopen_self=yes
12291     ;;
12292
12293   mingw* | pw32* | cegcc*)
12294     lt_cv_dlopen="LoadLibrary"
12295     lt_cv_dlopen_libs=
12296     ;;
12297
12298   cygwin*)
12299     lt_cv_dlopen="dlopen"
12300     lt_cv_dlopen_libs=
12301     ;;
12302
12303   darwin*)
12304   # if libdl is installed we need to link against it
12305     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12306 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12307 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12308   echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310   ac_check_lib_save_LIBS=$LIBS
12311 LIBS="-ldl  $LIBS"
12312 if test x$gcc_no_link = xyes; then
12313   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12314 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12315    { (exit 1); exit 1; }; }
12316 fi
12317 cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323
12324 /* Override any gcc2 internal prototype to avoid an error.  */
12325 #ifdef __cplusplus
12326 extern "C"
12327 #endif
12328 /* We use char because int might match the return type of a gcc2
12329    builtin and then its argument prototype would still apply.  */
12330 char dlopen ();
12331 int
12332 main ()
12333 {
12334 dlopen ();
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext conftest$ac_exeext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12341   (eval $ac_link) 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -z "$ac_c_werror_flag"
12349                          || test ! -s conftest.err'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; } &&
12355          { ac_try='test -s conftest$ac_exeext'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   ac_cv_lib_dl_dlopen=yes
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366 ac_cv_lib_dl_dlopen=no
12367 fi
12368 rm -f conftest.err conftest.$ac_objext \
12369       conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12371 fi
12372 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12373 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12374 if test $ac_cv_lib_dl_dlopen = yes; then
12375   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12376 else
12377
12378     lt_cv_dlopen="dyld"
12379     lt_cv_dlopen_libs=
12380     lt_cv_dlopen_self=yes
12381
12382 fi
12383
12384     ;;
12385
12386   *)
12387     echo "$as_me:$LINENO: checking for shl_load" >&5
12388 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12389 if test "${ac_cv_func_shl_load+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   if test x$gcc_no_link = xyes; then
12393   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12394 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12395    { (exit 1); exit 1; }; }
12396 fi
12397 cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12405 #define shl_load innocuous_shl_load
12406
12407 /* System header to define __stub macros and hopefully few prototypes,
12408     which can conflict with char shl_load (); below.
12409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12410     <limits.h> exists even on freestanding compilers.  */
12411
12412 #ifdef __STDC__
12413 # include <limits.h>
12414 #else
12415 # include <assert.h>
12416 #endif
12417
12418 #undef shl_load
12419
12420 /* Override any gcc2 internal prototype to avoid an error.  */
12421 #ifdef __cplusplus
12422 extern "C"
12423 {
12424 #endif
12425 /* We use char because int might match the return type of a gcc2
12426    builtin and then its argument prototype would still apply.  */
12427 char shl_load ();
12428 /* The GNU C library defines this for functions which it implements
12429     to always fail with ENOSYS.  Some functions are actually named
12430     something starting with __ and the normal name is an alias.  */
12431 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12432 choke me
12433 #else
12434 char (*f) () = shl_load;
12435 #endif
12436 #ifdef __cplusplus
12437 }
12438 #endif
12439
12440 int
12441 main ()
12442 {
12443 return f != shl_load;
12444   ;
12445   return 0;
12446 }
12447 _ACEOF
12448 rm -f conftest.$ac_objext conftest$ac_exeext
12449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12450   (eval $ac_link) 2>conftest.er1
12451   ac_status=$?
12452   grep -v '^ *+' conftest.er1 >conftest.err
12453   rm -f conftest.er1
12454   cat conftest.err >&5
12455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456   (exit $ac_status); } &&
12457          { ac_try='test -z "$ac_c_werror_flag"
12458                          || test ! -s conftest.err'
12459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463   (exit $ac_status); }; } &&
12464          { ac_try='test -s conftest$ac_exeext'
12465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466   (eval $ac_try) 2>&5
12467   ac_status=$?
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); }; }; then
12470   ac_cv_func_shl_load=yes
12471 else
12472   echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12474
12475 ac_cv_func_shl_load=no
12476 fi
12477 rm -f conftest.err conftest.$ac_objext \
12478       conftest$ac_exeext conftest.$ac_ext
12479 fi
12480 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12481 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12482 if test $ac_cv_func_shl_load = yes; then
12483   lt_cv_dlopen="shl_load"
12484 else
12485   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12486 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12487 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12488   echo $ECHO_N "(cached) $ECHO_C" >&6
12489 else
12490   ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-ldld  $LIBS"
12492 if test x$gcc_no_link = xyes; then
12493   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12494 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12495    { (exit 1); exit 1; }; }
12496 fi
12497 cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503
12504 /* Override any gcc2 internal prototype to avoid an error.  */
12505 #ifdef __cplusplus
12506 extern "C"
12507 #endif
12508 /* We use char because int might match the return type of a gcc2
12509    builtin and then its argument prototype would still apply.  */
12510 char shl_load ();
12511 int
12512 main ()
12513 {
12514 shl_load ();
12515   ;
12516   return 0;
12517 }
12518 _ACEOF
12519 rm -f conftest.$ac_objext conftest$ac_exeext
12520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12521   (eval $ac_link) 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag"
12529                          || test ! -s conftest.err'
12530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531   (eval $ac_try) 2>&5
12532   ac_status=$?
12533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534   (exit $ac_status); }; } &&
12535          { ac_try='test -s conftest$ac_exeext'
12536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12537   (eval $ac_try) 2>&5
12538   ac_status=$?
12539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540   (exit $ac_status); }; }; then
12541   ac_cv_lib_dld_shl_load=yes
12542 else
12543   echo "$as_me: failed program was:" >&5
12544 sed 's/^/| /' conftest.$ac_ext >&5
12545
12546 ac_cv_lib_dld_shl_load=no
12547 fi
12548 rm -f conftest.err conftest.$ac_objext \
12549       conftest$ac_exeext conftest.$ac_ext
12550 LIBS=$ac_check_lib_save_LIBS
12551 fi
12552 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12553 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12554 if test $ac_cv_lib_dld_shl_load = yes; then
12555   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12556 else
12557   echo "$as_me:$LINENO: checking for dlopen" >&5
12558 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12559 if test "${ac_cv_func_dlopen+set}" = set; then
12560   echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562   if test x$gcc_no_link = xyes; then
12563   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12564 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12565    { (exit 1); exit 1; }; }
12566 fi
12567 cat >conftest.$ac_ext <<_ACEOF
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12575 #define dlopen innocuous_dlopen
12576
12577 /* System header to define __stub macros and hopefully few prototypes,
12578     which can conflict with char dlopen (); below.
12579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12580     <limits.h> exists even on freestanding compilers.  */
12581
12582 #ifdef __STDC__
12583 # include <limits.h>
12584 #else
12585 # include <assert.h>
12586 #endif
12587
12588 #undef dlopen
12589
12590 /* Override any gcc2 internal prototype to avoid an error.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 {
12594 #endif
12595 /* We use char because int might match the return type of a gcc2
12596    builtin and then its argument prototype would still apply.  */
12597 char dlopen ();
12598 /* The GNU C library defines this for functions which it implements
12599     to always fail with ENOSYS.  Some functions are actually named
12600     something starting with __ and the normal name is an alias.  */
12601 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12602 choke me
12603 #else
12604 char (*f) () = dlopen;
12605 #endif
12606 #ifdef __cplusplus
12607 }
12608 #endif
12609
12610 int
12611 main ()
12612 {
12613 return f != dlopen;
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12620   (eval $ac_link) 2>conftest.er1
12621   ac_status=$?
12622   grep -v '^ *+' conftest.er1 >conftest.err
12623   rm -f conftest.er1
12624   cat conftest.err >&5
12625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626   (exit $ac_status); } &&
12627          { ac_try='test -z "$ac_c_werror_flag"
12628                          || test ! -s conftest.err'
12629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12630   (eval $ac_try) 2>&5
12631   ac_status=$?
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); }; } &&
12634          { ac_try='test -s conftest$ac_exeext'
12635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12636   (eval $ac_try) 2>&5
12637   ac_status=$?
12638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639   (exit $ac_status); }; }; then
12640   ac_cv_func_dlopen=yes
12641 else
12642   echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ac_cv_func_dlopen=no
12646 fi
12647 rm -f conftest.err conftest.$ac_objext \
12648       conftest$ac_exeext conftest.$ac_ext
12649 fi
12650 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12651 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12652 if test $ac_cv_func_dlopen = yes; then
12653   lt_cv_dlopen="dlopen"
12654 else
12655   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12658   echo $ECHO_N "(cached) $ECHO_C" >&6
12659 else
12660   ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-ldl  $LIBS"
12662 if test x$gcc_no_link = xyes; then
12663   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12665    { (exit 1); exit 1; }; }
12666 fi
12667 cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673
12674 /* Override any gcc2 internal prototype to avoid an error.  */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 /* We use char because int might match the return type of a gcc2
12679    builtin and then its argument prototype would still apply.  */
12680 char dlopen ();
12681 int
12682 main ()
12683 {
12684 dlopen ();
12685   ;
12686   return 0;
12687 }
12688 _ACEOF
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691   (eval $ac_link) 2>conftest.er1
12692   ac_status=$?
12693   grep -v '^ *+' conftest.er1 >conftest.err
12694   rm -f conftest.er1
12695   cat conftest.err >&5
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); } &&
12698          { ac_try='test -z "$ac_c_werror_flag"
12699                          || test ! -s conftest.err'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; } &&
12705          { ac_try='test -s conftest$ac_exeext'
12706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707   (eval $ac_try) 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; }; then
12711   ac_cv_lib_dl_dlopen=yes
12712 else
12713   echo "$as_me: failed program was:" >&5
12714 sed 's/^/| /' conftest.$ac_ext >&5
12715
12716 ac_cv_lib_dl_dlopen=no
12717 fi
12718 rm -f conftest.err conftest.$ac_objext \
12719       conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12721 fi
12722 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12723 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12724 if test $ac_cv_lib_dl_dlopen = yes; then
12725   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12726 else
12727   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12728 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12729 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lsvld  $LIBS"
12734 if test x$gcc_no_link = xyes; then
12735   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12736 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12737    { (exit 1); exit 1; }; }
12738 fi
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745
12746 /* Override any gcc2 internal prototype to avoid an error.  */
12747 #ifdef __cplusplus
12748 extern "C"
12749 #endif
12750 /* We use char because int might match the return type of a gcc2
12751    builtin and then its argument prototype would still apply.  */
12752 char dlopen ();
12753 int
12754 main ()
12755 {
12756 dlopen ();
12757   ;
12758   return 0;
12759 }
12760 _ACEOF
12761 rm -f conftest.$ac_objext conftest$ac_exeext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12763   (eval $ac_link) 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } &&
12770          { ac_try='test -z "$ac_c_werror_flag"
12771                          || test ! -s conftest.err'
12772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12773   (eval $ac_try) 2>&5
12774   ac_status=$?
12775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776   (exit $ac_status); }; } &&
12777          { ac_try='test -s conftest$ac_exeext'
12778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12779   (eval $ac_try) 2>&5
12780   ac_status=$?
12781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782   (exit $ac_status); }; }; then
12783   ac_cv_lib_svld_dlopen=yes
12784 else
12785   echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12787
12788 ac_cv_lib_svld_dlopen=no
12789 fi
12790 rm -f conftest.err conftest.$ac_objext \
12791       conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_lib_save_LIBS
12793 fi
12794 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12795 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12796 if test $ac_cv_lib_svld_dlopen = yes; then
12797   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12798 else
12799   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12800 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12801 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   ac_check_lib_save_LIBS=$LIBS
12805 LIBS="-ldld  $LIBS"
12806 if test x$gcc_no_link = xyes; then
12807   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12809    { (exit 1); exit 1; }; }
12810 fi
12811 cat >conftest.$ac_ext <<_ACEOF
12812 /* confdefs.h.  */
12813 _ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h.  */
12817
12818 /* Override any gcc2 internal prototype to avoid an error.  */
12819 #ifdef __cplusplus
12820 extern "C"
12821 #endif
12822 /* We use char because int might match the return type of a gcc2
12823    builtin and then its argument prototype would still apply.  */
12824 char dld_link ();
12825 int
12826 main ()
12827 {
12828 dld_link ();
12829   ;
12830   return 0;
12831 }
12832 _ACEOF
12833 rm -f conftest.$ac_objext conftest$ac_exeext
12834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12835   (eval $ac_link) 2>conftest.er1
12836   ac_status=$?
12837   grep -v '^ *+' conftest.er1 >conftest.err
12838   rm -f conftest.er1
12839   cat conftest.err >&5
12840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841   (exit $ac_status); } &&
12842          { ac_try='test -z "$ac_c_werror_flag"
12843                          || test ! -s conftest.err'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; } &&
12849          { ac_try='test -s conftest$ac_exeext'
12850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851   (eval $ac_try) 2>&5
12852   ac_status=$?
12853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854   (exit $ac_status); }; }; then
12855   ac_cv_lib_dld_dld_link=yes
12856 else
12857   echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_cv_lib_dld_dld_link=no
12861 fi
12862 rm -f conftest.err conftest.$ac_objext \
12863       conftest$ac_exeext conftest.$ac_ext
12864 LIBS=$ac_check_lib_save_LIBS
12865 fi
12866 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12867 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12868 if test $ac_cv_lib_dld_dld_link = yes; then
12869   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12870 fi
12871
12872
12873 fi
12874
12875
12876 fi
12877
12878
12879 fi
12880
12881
12882 fi
12883
12884
12885 fi
12886
12887     ;;
12888   esac
12889
12890   if test "x$lt_cv_dlopen" != xno; then
12891     enable_dlopen=yes
12892   else
12893     enable_dlopen=no
12894   fi
12895
12896   case $lt_cv_dlopen in
12897   dlopen)
12898     save_CPPFLAGS="$CPPFLAGS"
12899     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12900
12901     save_LDFLAGS="$LDFLAGS"
12902     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12903
12904     save_LIBS="$LIBS"
12905     LIBS="$lt_cv_dlopen_libs $LIBS"
12906
12907     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12908 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12909 if test "${lt_cv_dlopen_self+set}" = set; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912           if test "$cross_compiling" = yes; then :
12913   lt_cv_dlopen_self=cross
12914 else
12915   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12916   lt_status=$lt_dlunknown
12917   cat > conftest.$ac_ext <<_LT_EOF
12918 #line 12918 "configure"
12919 #include "confdefs.h"
12920
12921 #if HAVE_DLFCN_H
12922 #include <dlfcn.h>
12923 #endif
12924
12925 #include <stdio.h>
12926
12927 #ifdef RTLD_GLOBAL
12928 #  define LT_DLGLOBAL           RTLD_GLOBAL
12929 #else
12930 #  ifdef DL_GLOBAL
12931 #    define LT_DLGLOBAL         DL_GLOBAL
12932 #  else
12933 #    define LT_DLGLOBAL         0
12934 #  endif
12935 #endif
12936
12937 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12938    find out it does not work in some platform. */
12939 #ifndef LT_DLLAZY_OR_NOW
12940 #  ifdef RTLD_LAZY
12941 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12942 #  else
12943 #    ifdef DL_LAZY
12944 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12945 #    else
12946 #      ifdef RTLD_NOW
12947 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12948 #      else
12949 #        ifdef DL_NOW
12950 #          define LT_DLLAZY_OR_NOW      DL_NOW
12951 #        else
12952 #          define LT_DLLAZY_OR_NOW      0
12953 #        endif
12954 #      endif
12955 #    endif
12956 #  endif
12957 #endif
12958
12959 void fnord() { int i=42;}
12960 int main ()
12961 {
12962   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12963   int status = $lt_dlunknown;
12964
12965   if (self)
12966     {
12967       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12968       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12969       /* dlclose (self); */
12970     }
12971   else
12972     puts (dlerror ());
12973
12974   return status;
12975 }
12976 _LT_EOF
12977   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12978   (eval $ac_link) 2>&5
12979   ac_status=$?
12980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12982     (./conftest; exit; ) >&5 2>/dev/null
12983     lt_status=$?
12984     case x$lt_status in
12985       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12986       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12987       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12988     esac
12989   else :
12990     # compilation failed
12991     lt_cv_dlopen_self=no
12992   fi
12993 fi
12994 rm -fr conftest*
12995
12996
12997 fi
12998 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12999 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13000
13001     if test "x$lt_cv_dlopen_self" = xyes; then
13002       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13003       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13004 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13005 if test "${lt_cv_dlopen_self_static+set}" = set; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008           if test "$cross_compiling" = yes; then :
13009   lt_cv_dlopen_self_static=cross
13010 else
13011   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13012   lt_status=$lt_dlunknown
13013   cat > conftest.$ac_ext <<_LT_EOF
13014 #line 13014 "configure"
13015 #include "confdefs.h"
13016
13017 #if HAVE_DLFCN_H
13018 #include <dlfcn.h>
13019 #endif
13020
13021 #include <stdio.h>
13022
13023 #ifdef RTLD_GLOBAL
13024 #  define LT_DLGLOBAL           RTLD_GLOBAL
13025 #else
13026 #  ifdef DL_GLOBAL
13027 #    define LT_DLGLOBAL         DL_GLOBAL
13028 #  else
13029 #    define LT_DLGLOBAL         0
13030 #  endif
13031 #endif
13032
13033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13034    find out it does not work in some platform. */
13035 #ifndef LT_DLLAZY_OR_NOW
13036 #  ifdef RTLD_LAZY
13037 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13038 #  else
13039 #    ifdef DL_LAZY
13040 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13041 #    else
13042 #      ifdef RTLD_NOW
13043 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13044 #      else
13045 #        ifdef DL_NOW
13046 #          define LT_DLLAZY_OR_NOW      DL_NOW
13047 #        else
13048 #          define LT_DLLAZY_OR_NOW      0
13049 #        endif
13050 #      endif
13051 #    endif
13052 #  endif
13053 #endif
13054
13055 void fnord() { int i=42;}
13056 int main ()
13057 {
13058   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13059   int status = $lt_dlunknown;
13060
13061   if (self)
13062     {
13063       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13064       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13065       /* dlclose (self); */
13066     }
13067   else
13068     puts (dlerror ());
13069
13070   return status;
13071 }
13072 _LT_EOF
13073   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13074   (eval $ac_link) 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13078     (./conftest; exit; ) >&5 2>/dev/null
13079     lt_status=$?
13080     case x$lt_status in
13081       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13082       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13083       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13084     esac
13085   else :
13086     # compilation failed
13087     lt_cv_dlopen_self_static=no
13088   fi
13089 fi
13090 rm -fr conftest*
13091
13092
13093 fi
13094 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13095 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13096     fi
13097
13098     CPPFLAGS="$save_CPPFLAGS"
13099     LDFLAGS="$save_LDFLAGS"
13100     LIBS="$save_LIBS"
13101     ;;
13102   esac
13103
13104   case $lt_cv_dlopen_self in
13105   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13106   *) enable_dlopen_self=unknown ;;
13107   esac
13108
13109   case $lt_cv_dlopen_self_static in
13110   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13111   *) enable_dlopen_self_static=unknown ;;
13112   esac
13113 fi
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131 striplib=
13132 old_striplib=
13133 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13134 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13135 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13136   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13137   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13138   echo "$as_me:$LINENO: result: yes" >&5
13139 echo "${ECHO_T}yes" >&6
13140 else
13141 # FIXME - insert some real tests, host_os isn't really good enough
13142   case $host_os in
13143   darwin*)
13144     if test -n "$STRIP" ; then
13145       striplib="$STRIP -x"
13146       old_striplib="$STRIP -S"
13147       echo "$as_me:$LINENO: result: yes" >&5
13148 echo "${ECHO_T}yes" >&6
13149     else
13150       echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6
13152     fi
13153     ;;
13154   *)
13155     echo "$as_me:$LINENO: result: no" >&5
13156 echo "${ECHO_T}no" >&6
13157     ;;
13158   esac
13159 fi
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172   # Report which library types will actually be built
13173   echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13174 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13175   echo "$as_me:$LINENO: result: $can_build_shared" >&5
13176 echo "${ECHO_T}$can_build_shared" >&6
13177
13178   echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13179 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13180   test "$can_build_shared" = "no" && enable_shared=no
13181
13182   # On AIX, shared libraries and static libraries use the same namespace, and
13183   # are all built from PIC.
13184   case $host_os in
13185   aix3*)
13186     test "$enable_shared" = yes && enable_static=no
13187     if test -n "$RANLIB"; then
13188       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13189       postinstall_cmds='$RANLIB $lib'
13190     fi
13191     ;;
13192
13193   aix[4-9]*)
13194     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13195       test "$enable_shared" = yes && enable_static=no
13196     fi
13197     ;;
13198   esac
13199   echo "$as_me:$LINENO: result: $enable_shared" >&5
13200 echo "${ECHO_T}$enable_shared" >&6
13201
13202   echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13203 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13204   # Make sure either enable_shared or enable_static is yes.
13205   test "$enable_shared" = yes || enable_static=yes
13206   echo "$as_me:$LINENO: result: $enable_static" >&5
13207 echo "${ECHO_T}$enable_static" >&6
13208
13209
13210
13211
13212 fi
13213 ac_ext=c
13214 ac_cpp='$CPP $CPPFLAGS'
13215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13218
13219 CC="$lt_save_CC"
13220
13221
13222 ac_ext=cc
13223 ac_cpp='$CXXCPP $CPPFLAGS'
13224 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13225 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13226 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13227
13228 archive_cmds_need_lc_CXX=no
13229 allow_undefined_flag_CXX=
13230 always_export_symbols_CXX=no
13231 archive_expsym_cmds_CXX=
13232 compiler_needs_object_CXX=no
13233 export_dynamic_flag_spec_CXX=
13234 hardcode_direct_CXX=no
13235 hardcode_direct_absolute_CXX=no
13236 hardcode_libdir_flag_spec_CXX=
13237 hardcode_libdir_flag_spec_ld_CXX=
13238 hardcode_libdir_separator_CXX=
13239 hardcode_minus_L_CXX=no
13240 hardcode_shlibpath_var_CXX=unsupported
13241 hardcode_automatic_CXX=no
13242 inherit_rpath_CXX=no
13243 module_cmds_CXX=
13244 module_expsym_cmds_CXX=
13245 link_all_deplibs_CXX=unknown
13246 old_archive_cmds_CXX=$old_archive_cmds
13247 no_undefined_flag_CXX=
13248 whole_archive_flag_spec_CXX=
13249 enable_shared_with_static_runtimes_CXX=no
13250
13251 # Source file extension for C++ test sources.
13252 ac_ext=cpp
13253
13254 # Object file extension for compiled C++ test sources.
13255 objext=o
13256 objext_CXX=$objext
13257
13258 # No sense in running all these tests if we already determined that
13259 # the CXX compiler isn't working.  Some variables (like enable_shared)
13260 # are currently assumed to apply to all compilers on this platform,
13261 # and will be corrupted by setting them based on a non-working compiler.
13262 if test "$_lt_caught_CXX_error" != yes; then
13263   # Code to be used in simple compile tests
13264   lt_simple_compile_test_code="int some_variable = 0;"
13265
13266   # Code to be used in simple link tests
13267   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13268
13269   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13270
13271
13272
13273
13274
13275
13276 # If no C compiler was specified, use CC.
13277 LTCC=${LTCC-"$CC"}
13278
13279 # If no C compiler flags were specified, use CFLAGS.
13280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13281
13282 # Allow CC to be a program name with arguments.
13283 compiler=$CC
13284
13285
13286   # save warnings/boilerplate of simple test code
13287   ac_outfile=conftest.$ac_objext
13288 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13289 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13290 _lt_compiler_boilerplate=`cat conftest.err`
13291 $RM conftest*
13292
13293   ac_outfile=conftest.$ac_objext
13294 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13295 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13296 _lt_linker_boilerplate=`cat conftest.err`
13297 $RM -r conftest*
13298
13299
13300   # Allow CC to be a program name with arguments.
13301   lt_save_CC=$CC
13302   lt_save_LD=$LD
13303   lt_save_GCC=$GCC
13304   GCC=$GXX
13305   lt_save_with_gnu_ld=$with_gnu_ld
13306   lt_save_path_LD=$lt_cv_path_LD
13307   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13308     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13309   else
13310     $as_unset lt_cv_prog_gnu_ld
13311   fi
13312   if test -n "${lt_cv_path_LDCXX+set}"; then
13313     lt_cv_path_LD=$lt_cv_path_LDCXX
13314   else
13315     $as_unset lt_cv_path_LD
13316   fi
13317   test -z "${LDCXX+set}" || LD=$LDCXX
13318   CC=${CXX-"c++"}
13319   compiler=$CC
13320   compiler_CXX=$CC
13321   for cc_temp in $compiler""; do
13322   case $cc_temp in
13323     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13324     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13325     \-*) ;;
13326     *) break;;
13327   esac
13328 done
13329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13330
13331
13332   if test -n "$compiler"; then
13333     # We don't want -fno-exception when compiling C++ code, so set the
13334     # no_builtin_flag separately
13335     if test "$GXX" = yes; then
13336       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13337     else
13338       lt_prog_compiler_no_builtin_flag_CXX=
13339     fi
13340
13341     if test "$GXX" = yes; then
13342       # Set up default GNU C++ configuration
13343
13344
13345
13346 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13347 if test "${with_gnu_ld+set}" = set; then
13348   withval="$with_gnu_ld"
13349   test "$withval" = no || with_gnu_ld=yes
13350 else
13351   with_gnu_ld=no
13352 fi;
13353 ac_prog=ld
13354 if test "$GCC" = yes; then
13355   # Check if gcc -print-prog-name=ld gives a path.
13356   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13357 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13358   case $host in
13359   *-*-mingw*)
13360     # gcc leaves a trailing carriage return which upsets mingw
13361     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13362   *)
13363     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13364   esac
13365   case $ac_prog in
13366     # Accept absolute paths.
13367     [\\/]* | ?:[\\/]*)
13368       re_direlt='/[^/][^/]*/\.\./'
13369       # Canonicalize the pathname of ld
13370       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13371       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13372         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13373       done
13374       test -z "$LD" && LD="$ac_prog"
13375       ;;
13376   "")
13377     # If it fails, then pretend we aren't using GCC.
13378     ac_prog=ld
13379     ;;
13380   *)
13381     # If it is relative, then search for the first ld in PATH.
13382     with_gnu_ld=unknown
13383     ;;
13384   esac
13385 elif test "$with_gnu_ld" = yes; then
13386   echo "$as_me:$LINENO: checking for GNU ld" >&5
13387 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13388 else
13389   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13390 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13391 fi
13392 if test "${lt_cv_path_LD+set}" = set; then
13393   echo $ECHO_N "(cached) $ECHO_C" >&6
13394 else
13395   if test -z "$LD"; then
13396   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13397   for ac_dir in $PATH; do
13398     IFS="$lt_save_ifs"
13399     test -z "$ac_dir" && ac_dir=.
13400     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13401       lt_cv_path_LD="$ac_dir/$ac_prog"
13402       # Check to see if the program is GNU ld.  I'd rather use --version,
13403       # but apparently some variants of GNU ld only accept -v.
13404       # Break only if it was the GNU/non-GNU ld that we prefer.
13405       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13406       *GNU* | *'with BFD'*)
13407         test "$with_gnu_ld" != no && break
13408         ;;
13409       *)
13410         test "$with_gnu_ld" != yes && break
13411         ;;
13412       esac
13413     fi
13414   done
13415   IFS="$lt_save_ifs"
13416 else
13417   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13418 fi
13419 fi
13420
13421 LD="$lt_cv_path_LD"
13422 if test -n "$LD"; then
13423   echo "$as_me:$LINENO: result: $LD" >&5
13424 echo "${ECHO_T}$LD" >&6
13425 else
13426   echo "$as_me:$LINENO: result: no" >&5
13427 echo "${ECHO_T}no" >&6
13428 fi
13429 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13430 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13431    { (exit 1); exit 1; }; }
13432 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13433 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13434 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13435   echo $ECHO_N "(cached) $ECHO_C" >&6
13436 else
13437   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13438 case `$LD -v 2>&1 </dev/null` in
13439 *GNU* | *'with BFD'*)
13440   lt_cv_prog_gnu_ld=yes
13441   ;;
13442 *)
13443   lt_cv_prog_gnu_ld=no
13444   ;;
13445 esac
13446 fi
13447 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13448 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13449 with_gnu_ld=$lt_cv_prog_gnu_ld
13450
13451
13452
13453
13454
13455
13456
13457       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13458       # archiving commands below assume that GNU ld is being used.
13459       if test "$with_gnu_ld" = yes; then
13460         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461         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'
13462
13463         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13464         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13465
13466         # If archive_cmds runs LD, not CC, wlarc should be empty
13467         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13468         #     investigate it a little bit more. (MM)
13469         wlarc='${wl}'
13470
13471         # ancient GNU ld didn't support --whole-archive et. al.
13472         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13473           $GREP 'no-whole-archive' > /dev/null; then
13474           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13475         else
13476           whole_archive_flag_spec_CXX=
13477         fi
13478       else
13479         with_gnu_ld=no
13480         wlarc=
13481
13482         # A generic and very simple default shared library creation
13483         # command for GNU C++ for the case where it uses the native
13484         # linker, instead of GNU ld.  If possible, this setting should
13485         # overridden to take advantage of the native linker features on
13486         # the platform it is being used on.
13487         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13488       fi
13489
13490       # Commands to make compiler produce verbose output that lists
13491       # what "hidden" libraries, object files and flags are used when
13492       # linking a shared library.
13493       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13494
13495     else
13496       GXX=no
13497       with_gnu_ld=no
13498       wlarc=
13499     fi
13500
13501     # PORTME: fill in a description of your system's C++ link characteristics
13502     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13503 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13504     ld_shlibs_CXX=yes
13505     case $host_os in
13506       aix3*)
13507         # FIXME: insert proper C++ library support
13508         ld_shlibs_CXX=no
13509         ;;
13510       aix[4-9]*)
13511         if test "$host_cpu" = ia64; then
13512           # On IA64, the linker does run time linking by default, so we don't
13513           # have to do anything special.
13514           aix_use_runtimelinking=no
13515           exp_sym_flag='-Bexport'
13516           no_entry_flag=""
13517         else
13518           aix_use_runtimelinking=no
13519
13520           # Test if we are trying to use run time linking or normal
13521           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13522           # need to do runtime linking.
13523           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13524             for ld_flag in $LDFLAGS; do
13525               case $ld_flag in
13526               *-brtl*)
13527                 aix_use_runtimelinking=yes
13528                 break
13529                 ;;
13530               esac
13531             done
13532             ;;
13533           esac
13534
13535           exp_sym_flag='-bexport'
13536           no_entry_flag='-bnoentry'
13537         fi
13538
13539         # When large executables or shared objects are built, AIX ld can
13540         # have problems creating the table of contents.  If linking a library
13541         # or program results in "error TOC overflow" add -mminimal-toc to
13542         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13543         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13544
13545         archive_cmds_CXX=''
13546         hardcode_direct_CXX=yes
13547         hardcode_direct_absolute_CXX=yes
13548         hardcode_libdir_separator_CXX=':'
13549         link_all_deplibs_CXX=yes
13550         file_list_spec_CXX='${wl}-f,'
13551
13552         if test "$GXX" = yes; then
13553           case $host_os in aix4.[012]|aix4.[012].*)
13554           # We only want to do this on AIX 4.2 and lower, the check
13555           # below for broken collect2 doesn't work under 4.3+
13556           collect2name=`${CC} -print-prog-name=collect2`
13557           if test -f "$collect2name" &&
13558              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13559           then
13560             # We have reworked collect2
13561             :
13562           else
13563             # We have old collect2
13564             hardcode_direct_CXX=unsupported
13565             # It fails to find uninstalled libraries when the uninstalled
13566             # path is not listed in the libpath.  Setting hardcode_minus_L
13567             # to unsupported forces relinking
13568             hardcode_minus_L_CXX=yes
13569             hardcode_libdir_flag_spec_CXX='-L$libdir'
13570             hardcode_libdir_separator_CXX=
13571           fi
13572           esac
13573           shared_flag='-shared'
13574           if test "$aix_use_runtimelinking" = yes; then
13575             shared_flag="$shared_flag "'${wl}-G'
13576           fi
13577         else
13578           # not using gcc
13579           if test "$host_cpu" = ia64; then
13580           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13581           # chokes on -Wl,-G. The following line is correct:
13582           shared_flag='-G'
13583           else
13584             if test "$aix_use_runtimelinking" = yes; then
13585               shared_flag='${wl}-G'
13586             else
13587               shared_flag='${wl}-bM:SRE'
13588             fi
13589           fi
13590         fi
13591
13592         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13593         # It seems that -bexpall does not export symbols beginning with
13594         # underscore (_), so it is better to generate a list of symbols to
13595         # export.
13596         always_export_symbols_CXX=yes
13597         if test "$aix_use_runtimelinking" = yes; then
13598           # Warning - without using the other runtime loading flags (-brtl),
13599           # -berok will link without error, but may produce a broken library.
13600           allow_undefined_flag_CXX='-berok'
13601           # Determine the default libpath from the value encoded in an empty
13602           # executable.
13603           if test x$gcc_no_link = xyes; then
13604   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13605 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13606    { (exit 1); exit 1; }; }
13607 fi
13608 cat >conftest.$ac_ext <<_ACEOF
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614
13615 int
13616 main ()
13617 {
13618
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13625   (eval $ac_link) 2>conftest.er1
13626   ac_status=$?
13627   grep -v '^ *+' conftest.er1 >conftest.err
13628   rm -f conftest.er1
13629   cat conftest.err >&5
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -z "$ac_cxx_werror_flag"
13633                          || test ! -s conftest.err'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; } &&
13639          { ac_try='test -s conftest$ac_exeext'
13640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641   (eval $ac_try) 2>&5
13642   ac_status=$?
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); }; }; then
13645
13646 lt_aix_libpath_sed='
13647     /Import File Strings/,/^$/ {
13648         /^0/ {
13649             s/^0  *\(.*\)$/\1/
13650             p
13651         }
13652     }'
13653 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654 # Check for a 64-bit object if we didn't find anything.
13655 if test -z "$aix_libpath"; then
13656   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657 fi
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 fi
13663 rm -f conftest.err conftest.$ac_objext \
13664       conftest$ac_exeext conftest.$ac_ext
13665 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13666
13667           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13668
13669           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"
13670         else
13671           if test "$host_cpu" = ia64; then
13672             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13673             allow_undefined_flag_CXX="-z nodefs"
13674             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"
13675           else
13676             # Determine the default libpath from the value encoded in an
13677             # empty executable.
13678             if test x$gcc_no_link = xyes; then
13679   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13681    { (exit 1); exit 1; }; }
13682 fi
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h.  */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h.  */
13689
13690 int
13691 main ()
13692 {
13693
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext conftest$ac_exeext
13699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13700   (eval $ac_link) 2>conftest.er1
13701   ac_status=$?
13702   grep -v '^ *+' conftest.er1 >conftest.err
13703   rm -f conftest.er1
13704   cat conftest.err >&5
13705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706   (exit $ac_status); } &&
13707          { ac_try='test -z "$ac_cxx_werror_flag"
13708                          || test ! -s conftest.err'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; } &&
13714          { ac_try='test -s conftest$ac_exeext'
13715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13716   (eval $ac_try) 2>&5
13717   ac_status=$?
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); }; }; then
13720
13721 lt_aix_libpath_sed='
13722     /Import File Strings/,/^$/ {
13723         /^0/ {
13724             s/^0  *\(.*\)$/\1/
13725             p
13726         }
13727     }'
13728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13729 # Check for a 64-bit object if we didn't find anything.
13730 if test -z "$aix_libpath"; then
13731   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13732 fi
13733 else
13734   echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 fi
13738 rm -f conftest.err conftest.$ac_objext \
13739       conftest$ac_exeext conftest.$ac_ext
13740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13741
13742             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13743             # Warning - without using the other run time loading flags,
13744             # -berok will link without error, but may produce a broken library.
13745             no_undefined_flag_CXX=' ${wl}-bernotok'
13746             allow_undefined_flag_CXX=' ${wl}-berok'
13747             # Exported symbols can be pulled into shared objects from archives
13748             whole_archive_flag_spec_CXX='$convenience'
13749             archive_cmds_need_lc_CXX=yes
13750             # This is similar to how AIX traditionally builds its shared
13751             # libraries.
13752             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'
13753           fi
13754         fi
13755         ;;
13756
13757       beos*)
13758         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13759           allow_undefined_flag_CXX=unsupported
13760           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13761           # support --undefined.  This deserves some investigation.  FIXME
13762           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13763         else
13764           ld_shlibs_CXX=no
13765         fi
13766         ;;
13767
13768       chorus*)
13769         case $cc_basename in
13770           *)
13771           # FIXME: insert proper C++ library support
13772           ld_shlibs_CXX=no
13773           ;;
13774         esac
13775         ;;
13776
13777       cygwin* | mingw* | pw32* | cegcc*)
13778         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13779         # as there is no search path for DLLs.
13780         hardcode_libdir_flag_spec_CXX='-L$libdir'
13781         allow_undefined_flag_CXX=unsupported
13782         always_export_symbols_CXX=no
13783         enable_shared_with_static_runtimes_CXX=yes
13784
13785         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13786           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'
13787           # If the export-symbols file already is a .def file (1st line
13788           # is EXPORTS), use it as is; otherwise, prepend...
13789           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13790             cp $export_symbols $output_objdir/$soname.def;
13791           else
13792             echo EXPORTS > $output_objdir/$soname.def;
13793             cat $export_symbols >> $output_objdir/$soname.def;
13794           fi~
13795           $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'
13796         else
13797           ld_shlibs_CXX=no
13798         fi
13799         ;;
13800       darwin* | rhapsody*)
13801
13802
13803   archive_cmds_need_lc_CXX=no
13804   hardcode_direct_CXX=no
13805   hardcode_automatic_CXX=yes
13806   hardcode_shlibpath_var_CXX=unsupported
13807   whole_archive_flag_spec_CXX=''
13808   link_all_deplibs_CXX=yes
13809   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13810   case $cc_basename in
13811      ifort*) _lt_dar_can_shared=yes ;;
13812      *) _lt_dar_can_shared=$GCC ;;
13813   esac
13814   if test "$_lt_dar_can_shared" = "yes"; then
13815     output_verbose_link_cmd=echo
13816     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13817     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13818     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13819     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13820        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13821       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13822       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13823     fi
13824
13825   else
13826   ld_shlibs_CXX=no
13827   fi
13828
13829         ;;
13830
13831       dgux*)
13832         case $cc_basename in
13833           ec++*)
13834             # FIXME: insert proper C++ library support
13835             ld_shlibs_CXX=no
13836             ;;
13837           ghcx*)
13838             # Green Hills C++ Compiler
13839             # FIXME: insert proper C++ library support
13840             ld_shlibs_CXX=no
13841             ;;
13842           *)
13843             # FIXME: insert proper C++ library support
13844             ld_shlibs_CXX=no
13845             ;;
13846         esac
13847         ;;
13848
13849       freebsd[12]*)
13850         # C++ shared libraries reported to be fairly broken before
13851         # switch to ELF
13852         ld_shlibs_CXX=no
13853         ;;
13854
13855       freebsd-elf*)
13856         archive_cmds_need_lc_CXX=no
13857         ;;
13858
13859       freebsd* | dragonfly*)
13860         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13861         # conventions
13862         ld_shlibs_CXX=yes
13863         ;;
13864
13865       gnu*)
13866         ;;
13867
13868       hpux9*)
13869         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13870         hardcode_libdir_separator_CXX=:
13871         export_dynamic_flag_spec_CXX='${wl}-E'
13872         hardcode_direct_CXX=yes
13873         hardcode_minus_L_CXX=yes # Not in the search PATH,
13874                                              # but as the default
13875                                              # location of the library.
13876
13877         case $cc_basename in
13878           CC*)
13879             # FIXME: insert proper C++ library support
13880             ld_shlibs_CXX=no
13881             ;;
13882           aCC*)
13883             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'
13884             # Commands to make compiler produce verbose output that lists
13885             # what "hidden" libraries, object files and flags are used when
13886             # linking a shared library.
13887             #
13888             # There doesn't appear to be a way to prevent this compiler from
13889             # explicitly linking system object files so we need to strip them
13890             # from the output so that they don't get included in the library
13891             # dependencies.
13892             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'
13893             ;;
13894           *)
13895             if test "$GXX" = yes; then
13896               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'
13897             else
13898               # FIXME: insert proper C++ library support
13899               ld_shlibs_CXX=no
13900             fi
13901             ;;
13902         esac
13903         ;;
13904
13905       hpux10*|hpux11*)
13906         if test $with_gnu_ld = no; then
13907           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13908           hardcode_libdir_separator_CXX=:
13909
13910           case $host_cpu in
13911             hppa*64*|ia64*)
13912               ;;
13913             *)
13914               export_dynamic_flag_spec_CXX='${wl}-E'
13915               ;;
13916           esac
13917         fi
13918         case $host_cpu in
13919           hppa*64*|ia64*)
13920             hardcode_direct_CXX=no
13921             hardcode_shlibpath_var_CXX=no
13922             ;;
13923           *)
13924             hardcode_direct_CXX=yes
13925             hardcode_direct_absolute_CXX=yes
13926             hardcode_minus_L_CXX=yes # Not in the search PATH,
13927                                                  # but as the default
13928                                                  # location of the library.
13929             ;;
13930         esac
13931
13932         case $cc_basename in
13933           CC*)
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937           aCC*)
13938             case $host_cpu in
13939               hppa*64*)
13940                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13941                 ;;
13942               ia64*)
13943                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944                 ;;
13945               *)
13946                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13947                 ;;
13948             esac
13949             # Commands to make compiler produce verbose output that lists
13950             # what "hidden" libraries, object files and flags are used when
13951             # linking a shared library.
13952             #
13953             # There doesn't appear to be a way to prevent this compiler from
13954             # explicitly linking system object files so we need to strip them
13955             # from the output so that they don't get included in the library
13956             # dependencies.
13957             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'
13958             ;;
13959           *)
13960             if test "$GXX" = yes; then
13961               if test $with_gnu_ld = no; then
13962                 case $host_cpu in
13963                   hppa*64*)
13964                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13965                     ;;
13966                   ia64*)
13967                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13968                     ;;
13969                   *)
13970                     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'
13971                     ;;
13972                 esac
13973               fi
13974             else
13975               # FIXME: insert proper C++ library support
13976               ld_shlibs_CXX=no
13977             fi
13978             ;;
13979         esac
13980         ;;
13981
13982       interix[3-9]*)
13983         hardcode_direct_CXX=no
13984         hardcode_shlibpath_var_CXX=no
13985         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13986         export_dynamic_flag_spec_CXX='${wl}-E'
13987         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13988         # Instead, shared libraries are loaded at an image base (0x10000000 by
13989         # default) and relocated if they conflict, which is a slow very memory
13990         # consuming and fragmenting process.  To avoid this, we pick a random,
13991         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13992         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13993         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'
13994         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'
13995         ;;
13996       irix5* | irix6*)
13997         case $cc_basename in
13998           CC*)
13999             # SGI C++
14000             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'
14001
14002             # Archives containing C++ object files must be created using
14003             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14004             # necessary to make sure instantiated templates are included
14005             # in the archive.
14006             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14007             ;;
14008           *)
14009             if test "$GXX" = yes; then
14010               if test "$with_gnu_ld" = no; then
14011                 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'
14012               else
14013                 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'
14014               fi
14015             fi
14016             link_all_deplibs_CXX=yes
14017             ;;
14018         esac
14019         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14020         hardcode_libdir_separator_CXX=:
14021         inherit_rpath_CXX=yes
14022         ;;
14023
14024       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14025         case $cc_basename in
14026           KCC*)
14027             # Kuck and Associates, Inc. (KAI) C++ Compiler
14028
14029             # KCC will only create a shared library if the output file
14030             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14031             # to its proper name (with version) after linking.
14032             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'
14033             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'
14034             # Commands to make compiler produce verbose output that lists
14035             # what "hidden" libraries, object files and flags are used when
14036             # linking a shared library.
14037             #
14038             # There doesn't appear to be a way to prevent this compiler from
14039             # explicitly linking system object files so we need to strip them
14040             # from the output so that they don't get included in the library
14041             # dependencies.
14042             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'
14043
14044             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14045             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14046
14047             # Archives containing C++ object files must be created using
14048             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14049             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14050             ;;
14051           icpc* | ecpc* )
14052             # Intel C++
14053             with_gnu_ld=yes
14054             # version 8.0 and above of icpc choke on multiply defined symbols
14055             # if we add $predep_objects and $postdep_objects, however 7.1 and
14056             # earlier do not add the objects themselves.
14057             case `$CC -V 2>&1` in
14058               *"Version 7."*)
14059                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060                 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'
14061                 ;;
14062               *)  # Version 8.0 or newer
14063                 tmp_idyn=
14064                 case $host_cpu in
14065                   ia64*) tmp_idyn=' -i_dynamic';;
14066                 esac
14067                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14068                 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'
14069                 ;;
14070             esac
14071             archive_cmds_need_lc_CXX=no
14072             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14073             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14074             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14075             ;;
14076           pgCC* | pgcpp*)
14077             # Portland Group C++ compiler
14078             case `$CC -V` in
14079             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14080               prelink_cmds_CXX='tpldir=Template.dir~
14081                 rm -rf $tpldir~
14082                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14083                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14084               old_archive_cmds_CXX='tpldir=Template.dir~
14085                 rm -rf $tpldir~
14086                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14087                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14088                 $RANLIB $oldlib'
14089               archive_cmds_CXX='tpldir=Template.dir~
14090                 rm -rf $tpldir~
14091                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14092                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14093               archive_expsym_cmds_CXX='tpldir=Template.dir~
14094                 rm -rf $tpldir~
14095                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14096                 $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'
14097               ;;
14098             *) # Version 6 will use weak symbols
14099               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14100               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'
14101               ;;
14102             esac
14103
14104             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14105             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14106             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'
14107             ;;
14108           cxx*)
14109             # Compaq C++
14110             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14111             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'
14112
14113             runpath_var=LD_RUN_PATH
14114             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14115             hardcode_libdir_separator_CXX=:
14116
14117             # Commands to make compiler produce verbose output that lists
14118             # what "hidden" libraries, object files and flags are used when
14119             # linking a shared library.
14120             #
14121             # There doesn't appear to be a way to prevent this compiler from
14122             # explicitly linking system object files so we need to strip them
14123             # from the output so that they don't get included in the library
14124             # dependencies.
14125             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'
14126             ;;
14127           xl*)
14128             # IBM XL 8.0 on PPC, with GNU ld
14129             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14130             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14131             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14132             if test "x$supports_anon_versioning" = xyes; then
14133               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14134                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14135                 echo "local: *; };" >> $output_objdir/$libname.ver~
14136                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14137             fi
14138             ;;
14139           *)
14140             case `$CC -V 2>&1 | sed 5q` in
14141             *Sun\ C*)
14142               # Sun C++ 5.9
14143               no_undefined_flag_CXX=' -zdefs'
14144               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14145               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'
14146               hardcode_libdir_flag_spec_CXX='-R$libdir'
14147               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'
14148               compiler_needs_object_CXX=yes
14149
14150               # Not sure whether something based on
14151               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14152               # would be better.
14153               output_verbose_link_cmd='echo'
14154
14155               # Archives containing C++ object files must be created using
14156               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14157               # necessary to make sure instantiated templates are included
14158               # in the archive.
14159               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14160               ;;
14161             esac
14162             ;;
14163         esac
14164         ;;
14165
14166       lynxos*)
14167         # FIXME: insert proper C++ library support
14168         ld_shlibs_CXX=no
14169         ;;
14170
14171       m88k*)
14172         # FIXME: insert proper C++ library support
14173         ld_shlibs_CXX=no
14174         ;;
14175
14176       mvs*)
14177         case $cc_basename in
14178           cxx*)
14179             # FIXME: insert proper C++ library support
14180             ld_shlibs_CXX=no
14181             ;;
14182           *)
14183             # FIXME: insert proper C++ library support
14184             ld_shlibs_CXX=no
14185             ;;
14186         esac
14187         ;;
14188
14189       netbsd*)
14190         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14191           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14192           wlarc=
14193           hardcode_libdir_flag_spec_CXX='-R$libdir'
14194           hardcode_direct_CXX=yes
14195           hardcode_shlibpath_var_CXX=no
14196         fi
14197         # Workaround some broken pre-1.5 toolchains
14198         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14199         ;;
14200
14201       *nto* | *qnx*)
14202         ld_shlibs_CXX=yes
14203         ;;
14204
14205       openbsd2*)
14206         # C++ shared libraries are fairly broken
14207         ld_shlibs_CXX=no
14208         ;;
14209
14210       openbsd*)
14211         if test -f /usr/libexec/ld.so; then
14212           hardcode_direct_CXX=yes
14213           hardcode_shlibpath_var_CXX=no
14214           hardcode_direct_absolute_CXX=yes
14215           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14216           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14217           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14218             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14219             export_dynamic_flag_spec_CXX='${wl}-E'
14220             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14221           fi
14222           output_verbose_link_cmd=echo
14223         else
14224           ld_shlibs_CXX=no
14225         fi
14226         ;;
14227
14228       osf3* | osf4* | osf5*)
14229         case $cc_basename in
14230           KCC*)
14231             # Kuck and Associates, Inc. (KAI) C++ Compiler
14232
14233             # KCC will only create a shared library if the output file
14234             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14235             # to its proper name (with version) after linking.
14236             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'
14237
14238             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14239             hardcode_libdir_separator_CXX=:
14240
14241             # Archives containing C++ object files must be created using
14242             # the KAI C++ compiler.
14243             case $host in
14244               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14245               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14246             esac
14247             ;;
14248           RCC*)
14249             # Rational C++ 2.4.1
14250             # FIXME: insert proper C++ library support
14251             ld_shlibs_CXX=no
14252             ;;
14253           cxx*)
14254             case $host in
14255               osf3*)
14256                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14257                 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'
14258                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14259                 ;;
14260               *)
14261                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14262                 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'
14263                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14264                   echo "-hidden">> $lib.exp~
14265                   $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~
14266                   $RM $lib.exp'
14267                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14268                 ;;
14269             esac
14270
14271             hardcode_libdir_separator_CXX=:
14272
14273             # Commands to make compiler produce verbose output that lists
14274             # what "hidden" libraries, object files and flags are used when
14275             # linking a shared library.
14276             #
14277             # There doesn't appear to be a way to prevent this compiler from
14278             # explicitly linking system object files so we need to strip them
14279             # from the output so that they don't get included in the library
14280             # dependencies.
14281             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'
14282             ;;
14283           *)
14284             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14285               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14286               case $host in
14287                 osf3*)
14288                   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'
14289                   ;;
14290                 *)
14291                   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'
14292                   ;;
14293               esac
14294
14295               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14296               hardcode_libdir_separator_CXX=:
14297
14298               # Commands to make compiler produce verbose output that lists
14299               # what "hidden" libraries, object files and flags are used when
14300               # linking a shared library.
14301               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14302
14303             else
14304               # FIXME: insert proper C++ library support
14305               ld_shlibs_CXX=no
14306             fi
14307             ;;
14308         esac
14309         ;;
14310
14311       psos*)
14312         # FIXME: insert proper C++ library support
14313         ld_shlibs_CXX=no
14314         ;;
14315
14316       sunos4*)
14317         case $cc_basename in
14318           CC*)
14319             # Sun C++ 4.x
14320             # FIXME: insert proper C++ library support
14321             ld_shlibs_CXX=no
14322             ;;
14323           lcc*)
14324             # Lucid
14325             # FIXME: insert proper C++ library support
14326             ld_shlibs_CXX=no
14327             ;;
14328           *)
14329             # FIXME: insert proper C++ library support
14330             ld_shlibs_CXX=no
14331             ;;
14332         esac
14333         ;;
14334
14335       solaris*)
14336         case $cc_basename in
14337           CC*)
14338             # Sun C++ 4.2, 5.x and Centerline C++
14339             archive_cmds_need_lc_CXX=yes
14340             no_undefined_flag_CXX=' -zdefs'
14341             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14342             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14343               $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'
14344
14345             hardcode_libdir_flag_spec_CXX='-R$libdir'
14346             hardcode_shlibpath_var_CXX=no
14347             case $host_os in
14348               solaris2.[0-5] | solaris2.[0-5].*) ;;
14349               *)
14350                 # The compiler driver will combine and reorder linker options,
14351                 # but understands `-z linker_flag'.
14352                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14353                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14354                 ;;
14355             esac
14356             link_all_deplibs_CXX=yes
14357
14358             output_verbose_link_cmd='echo'
14359
14360             # Archives containing C++ object files must be created using
14361             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14362             # necessary to make sure instantiated templates are included
14363             # in the archive.
14364             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14365             ;;
14366           gcx*)
14367             # Green Hills C++ Compiler
14368             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14369
14370             # The C++ compiler must be used to create the archive.
14371             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14372             ;;
14373           *)
14374             # GNU C++ compiler with Solaris linker
14375             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14376               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14377               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14378                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14379                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14380                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14381
14382                 # Commands to make compiler produce verbose output that lists
14383                 # what "hidden" libraries, object files and flags are used when
14384                 # linking a shared library.
14385                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14386               else
14387                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14388                 # platform.
14389                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14390                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14391                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14392
14393                 # Commands to make compiler produce verbose output that lists
14394                 # what "hidden" libraries, object files and flags are used when
14395                 # linking a shared library.
14396                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14397               fi
14398
14399               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14400               case $host_os in
14401                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14402                 *)
14403                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14404                   ;;
14405               esac
14406             fi
14407             ;;
14408         esac
14409         ;;
14410
14411     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14412       no_undefined_flag_CXX='${wl}-z,text'
14413       archive_cmds_need_lc_CXX=no
14414       hardcode_shlibpath_var_CXX=no
14415       runpath_var='LD_RUN_PATH'
14416
14417       case $cc_basename in
14418         CC*)
14419           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14420           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14421           ;;
14422         *)
14423           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14424           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14425           ;;
14426       esac
14427       ;;
14428
14429       sysv5* | sco3.2v5* | sco5v6*)
14430         # Note: We can NOT use -z defs as we might desire, because we do not
14431         # link with -lc, and that would cause any symbols used from libc to
14432         # always be unresolved, which means just about no library would
14433         # ever link correctly.  If we're not using GNU ld we use -z text
14434         # though, which does catch some bad symbols but isn't as heavy-handed
14435         # as -z defs.
14436         no_undefined_flag_CXX='${wl}-z,text'
14437         allow_undefined_flag_CXX='${wl}-z,nodefs'
14438         archive_cmds_need_lc_CXX=no
14439         hardcode_shlibpath_var_CXX=no
14440         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14441         hardcode_libdir_separator_CXX=':'
14442         link_all_deplibs_CXX=yes
14443         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14444         runpath_var='LD_RUN_PATH'
14445
14446         case $cc_basename in
14447           CC*)
14448             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14450             ;;
14451           *)
14452             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14453             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14454             ;;
14455         esac
14456       ;;
14457
14458       tandem*)
14459         case $cc_basename in
14460           NCC*)
14461             # NonStop-UX NCC 3.20
14462             # FIXME: insert proper C++ library support
14463             ld_shlibs_CXX=no
14464             ;;
14465           *)
14466             # FIXME: insert proper C++ library support
14467             ld_shlibs_CXX=no
14468             ;;
14469         esac
14470         ;;
14471
14472       vxworks*)
14473         # FIXME: insert proper C++ library support
14474         ld_shlibs_CXX=no
14475         ;;
14476
14477       *)
14478         # FIXME: insert proper C++ library support
14479         ld_shlibs_CXX=no
14480         ;;
14481     esac
14482
14483     echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14484 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14485     test "$ld_shlibs_CXX" = no && can_build_shared=no
14486
14487     GCC_CXX="$GXX"
14488     LD_CXX="$LD"
14489
14490     ## CAVEAT EMPTOR:
14491     ## There is no encapsulation within the following macros, do not change
14492     ## the running order or otherwise move them around unless you know exactly
14493     ## what you are doing...
14494     # Dependencies to place before and after the object being linked:
14495 predep_objects_CXX=
14496 postdep_objects_CXX=
14497 predeps_CXX=
14498 postdeps_CXX=
14499 compiler_lib_search_path_CXX=
14500
14501 cat > conftest.$ac_ext <<_LT_EOF
14502 class Foo
14503 {
14504 public:
14505   Foo (void) { a = 0; }
14506 private:
14507   int a;
14508 };
14509 _LT_EOF
14510
14511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14512   (eval $ac_compile) 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; then
14516   # Parse the compiler output and extract the necessary
14517   # objects, libraries and library flags.
14518
14519   # Sentinel used to keep track of whether or not we are before
14520   # the conftest object file.
14521   pre_test_object_deps_done=no
14522
14523   for p in `eval "$output_verbose_link_cmd"`; do
14524     case $p in
14525
14526     -L* | -R* | -l*)
14527        # Some compilers place space between "-{L,R}" and the path.
14528        # Remove the space.
14529        if test $p = "-L" ||
14530           test $p = "-R"; then
14531          prev=$p
14532          continue
14533        else
14534          prev=
14535        fi
14536
14537        if test "$pre_test_object_deps_done" = no; then
14538          case $p in
14539          -L* | -R*)
14540            # Internal compiler library paths should come after those
14541            # provided the user.  The postdeps already come after the
14542            # user supplied libs so there is no need to process them.
14543            if test -z "$compiler_lib_search_path_CXX"; then
14544              compiler_lib_search_path_CXX="${prev}${p}"
14545            else
14546              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14547            fi
14548            ;;
14549          # The "-l" case would never come before the object being
14550          # linked, so don't bother handling this case.
14551          esac
14552        else
14553          if test -z "$postdeps_CXX"; then
14554            postdeps_CXX="${prev}${p}"
14555          else
14556            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14557          fi
14558        fi
14559        ;;
14560
14561     *.$objext)
14562        # This assumes that the test object file only shows up
14563        # once in the compiler output.
14564        if test "$p" = "conftest.$objext"; then
14565          pre_test_object_deps_done=yes
14566          continue
14567        fi
14568
14569        if test "$pre_test_object_deps_done" = no; then
14570          if test -z "$predep_objects_CXX"; then
14571            predep_objects_CXX="$p"
14572          else
14573            predep_objects_CXX="$predep_objects_CXX $p"
14574          fi
14575        else
14576          if test -z "$postdep_objects_CXX"; then
14577            postdep_objects_CXX="$p"
14578          else
14579            postdep_objects_CXX="$postdep_objects_CXX $p"
14580          fi
14581        fi
14582        ;;
14583
14584     *) ;; # Ignore the rest.
14585
14586     esac
14587   done
14588
14589   # Clean up.
14590   rm -f a.out a.exe
14591 else
14592   echo "libtool.m4: error: problem compiling CXX test program"
14593 fi
14594
14595 $RM -f confest.$objext
14596
14597 # PORTME: override above test on systems where it is broken
14598 case $host_os in
14599 interix[3-9]*)
14600   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14601   # hack all around it, let's just trust "g++" to DTRT.
14602   predep_objects_CXX=
14603   postdep_objects_CXX=
14604   postdeps_CXX=
14605   ;;
14606
14607 linux*)
14608   case `$CC -V 2>&1 | sed 5q` in
14609   *Sun\ C*)
14610     # Sun C++ 5.9
14611
14612     # The more standards-conforming stlport4 library is
14613     # incompatible with the Cstd library. Avoid specifying
14614     # it if it's in CXXFLAGS. Ignore libCrun as
14615     # -library=stlport4 depends on it.
14616     case " $CXX $CXXFLAGS " in
14617     *" -library=stlport4 "*)
14618       solaris_use_stlport4=yes
14619       ;;
14620     esac
14621
14622     if test "$solaris_use_stlport4" != yes; then
14623       postdeps_CXX='-library=Cstd -library=Crun'
14624     fi
14625     ;;
14626   esac
14627   ;;
14628
14629 solaris*)
14630   case $cc_basename in
14631   CC*)
14632     # The more standards-conforming stlport4 library is
14633     # incompatible with the Cstd library. Avoid specifying
14634     # it if it's in CXXFLAGS. Ignore libCrun as
14635     # -library=stlport4 depends on it.
14636     case " $CXX $CXXFLAGS " in
14637     *" -library=stlport4 "*)
14638       solaris_use_stlport4=yes
14639       ;;
14640     esac
14641
14642     # Adding this requires a known-good setup of shared libraries for
14643     # Sun compiler versions before 5.6, else PIC objects from an old
14644     # archive will be linked into the output, leading to subtle bugs.
14645     if test "$solaris_use_stlport4" != yes; then
14646       postdeps_CXX='-library=Cstd -library=Crun'
14647     fi
14648     ;;
14649   esac
14650   ;;
14651 esac
14652
14653
14654 case " $postdeps_CXX " in
14655 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14656 esac
14657  compiler_lib_search_dirs_CXX=
14658 if test -n "${compiler_lib_search_path_CXX}"; then
14659  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14660 fi
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692     lt_prog_compiler_wl_CXX=
14693 lt_prog_compiler_pic_CXX=
14694 lt_prog_compiler_static_CXX=
14695
14696 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14697 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14698
14699   # C++ specific cases for pic, static, wl, etc.
14700   if test "$GXX" = yes; then
14701     lt_prog_compiler_wl_CXX='-Wl,'
14702     lt_prog_compiler_static_CXX='-static'
14703
14704     case $host_os in
14705     aix*)
14706       # All AIX code is PIC.
14707       if test "$host_cpu" = ia64; then
14708         # AIX 5 now supports IA64 processor
14709         lt_prog_compiler_static_CXX='-Bstatic'
14710       fi
14711       ;;
14712
14713     amigaos*)
14714       case $host_cpu in
14715       powerpc)
14716             # see comment about AmigaOS4 .so support
14717             lt_prog_compiler_pic_CXX='-fPIC'
14718         ;;
14719       m68k)
14720             # FIXME: we need at least 68020 code to build shared libraries, but
14721             # adding the `-m68020' flag to GCC prevents building anything better,
14722             # like `-m68040'.
14723             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14724         ;;
14725       esac
14726       ;;
14727
14728     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14729       # PIC is the default for these OSes.
14730       ;;
14731     mingw* | cygwin* | os2* | pw32* | cegcc*)
14732       # This hack is so that the source file can tell whether it is being
14733       # built for inclusion in a dll (and should export symbols for example).
14734       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14735       # (--disable-auto-import) libraries
14736       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14737       ;;
14738     darwin* | rhapsody*)
14739       # PIC is the default on this platform
14740       # Common symbols not allowed in MH_DYLIB files
14741       lt_prog_compiler_pic_CXX='-fno-common'
14742       ;;
14743     *djgpp*)
14744       # DJGPP does not support shared libraries at all
14745       lt_prog_compiler_pic_CXX=
14746       ;;
14747     interix[3-9]*)
14748       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14749       # Instead, we relocate shared libraries at runtime.
14750       ;;
14751     sysv4*MP*)
14752       if test -d /usr/nec; then
14753         lt_prog_compiler_pic_CXX=-Kconform_pic
14754       fi
14755       ;;
14756     hpux*)
14757       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14758       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14759       # sets the default TLS model and affects inlining.
14760       case $host_cpu in
14761       hppa*64*)
14762         ;;
14763       *)
14764         lt_prog_compiler_pic_CXX='-fPIC'
14765         ;;
14766       esac
14767       ;;
14768     *qnx* | *nto*)
14769       # QNX uses GNU C++, but need to define -shared option too, otherwise
14770       # it will coredump.
14771       lt_prog_compiler_pic_CXX='-fPIC -shared'
14772       ;;
14773     *)
14774       lt_prog_compiler_pic_CXX='-fPIC'
14775       ;;
14776     esac
14777   else
14778     case $host_os in
14779       aix[4-9]*)
14780         # All AIX code is PIC.
14781         if test "$host_cpu" = ia64; then
14782           # AIX 5 now supports IA64 processor
14783           lt_prog_compiler_static_CXX='-Bstatic'
14784         else
14785           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14786         fi
14787         ;;
14788       chorus*)
14789         case $cc_basename in
14790         cxch68*)
14791           # Green Hills C++ Compiler
14792           # _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"
14793           ;;
14794         esac
14795         ;;
14796       dgux*)
14797         case $cc_basename in
14798           ec++*)
14799             lt_prog_compiler_pic_CXX='-KPIC'
14800             ;;
14801           ghcx*)
14802             # Green Hills C++ Compiler
14803             lt_prog_compiler_pic_CXX='-pic'
14804             ;;
14805           *)
14806             ;;
14807         esac
14808         ;;
14809       freebsd* | dragonfly*)
14810         # FreeBSD uses GNU C++
14811         ;;
14812       hpux9* | hpux10* | hpux11*)
14813         case $cc_basename in
14814           CC*)
14815             lt_prog_compiler_wl_CXX='-Wl,'
14816             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14817             if test "$host_cpu" != ia64; then
14818               lt_prog_compiler_pic_CXX='+Z'
14819             fi
14820             ;;
14821           aCC*)
14822             lt_prog_compiler_wl_CXX='-Wl,'
14823             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14824             case $host_cpu in
14825             hppa*64*|ia64*)
14826               # +Z the default
14827               ;;
14828             *)
14829               lt_prog_compiler_pic_CXX='+Z'
14830               ;;
14831             esac
14832             ;;
14833           *)
14834             ;;
14835         esac
14836         ;;
14837       interix*)
14838         # This is c89, which is MS Visual C++ (no shared libs)
14839         # Anyone wants to do a port?
14840         ;;
14841       irix5* | irix6* | nonstopux*)
14842         case $cc_basename in
14843           CC*)
14844             lt_prog_compiler_wl_CXX='-Wl,'
14845             lt_prog_compiler_static_CXX='-non_shared'
14846             # CC pic flag -KPIC is the default.
14847             ;;
14848           *)
14849             ;;
14850         esac
14851         ;;
14852       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14853         case $cc_basename in
14854           KCC*)
14855             # KAI C++ Compiler
14856             lt_prog_compiler_wl_CXX='--backend -Wl,'
14857             lt_prog_compiler_pic_CXX='-fPIC'
14858             ;;
14859           ecpc* )
14860             # old Intel C++ for x86_64 which still supported -KPIC.
14861             lt_prog_compiler_wl_CXX='-Wl,'
14862             lt_prog_compiler_pic_CXX='-KPIC'
14863             lt_prog_compiler_static_CXX='-static'
14864             ;;
14865           icpc* )
14866             # Intel C++, used to be incompatible with GCC.
14867             # ICC 10 doesn't accept -KPIC any more.
14868             lt_prog_compiler_wl_CXX='-Wl,'
14869             lt_prog_compiler_pic_CXX='-fPIC'
14870             lt_prog_compiler_static_CXX='-static'
14871             ;;
14872           pgCC* | pgcpp*)
14873             # Portland Group C++ compiler
14874             lt_prog_compiler_wl_CXX='-Wl,'
14875             lt_prog_compiler_pic_CXX='-fpic'
14876             lt_prog_compiler_static_CXX='-Bstatic'
14877             ;;
14878           cxx*)
14879             # Compaq C++
14880             # Make sure the PIC flag is empty.  It appears that all Alpha
14881             # Linux and Compaq Tru64 Unix objects are PIC.
14882             lt_prog_compiler_pic_CXX=
14883             lt_prog_compiler_static_CXX='-non_shared'
14884             ;;
14885           xlc* | xlC*)
14886             # IBM XL 8.0 on PPC
14887             lt_prog_compiler_wl_CXX='-Wl,'
14888             lt_prog_compiler_pic_CXX='-qpic'
14889             lt_prog_compiler_static_CXX='-qstaticlink'
14890             ;;
14891           *)
14892             case `$CC -V 2>&1 | sed 5q` in
14893             *Sun\ C*)
14894               # Sun C++ 5.9
14895               lt_prog_compiler_pic_CXX='-KPIC'
14896               lt_prog_compiler_static_CXX='-Bstatic'
14897               lt_prog_compiler_wl_CXX='-Qoption ld '
14898               ;;
14899             esac
14900             ;;
14901         esac
14902         ;;
14903       lynxos*)
14904         ;;
14905       m88k*)
14906         ;;
14907       mvs*)
14908         case $cc_basename in
14909           cxx*)
14910             lt_prog_compiler_pic_CXX='-W c,exportall'
14911             ;;
14912           *)
14913             ;;
14914         esac
14915         ;;
14916       netbsd*)
14917         ;;
14918       *qnx* | *nto*)
14919         # QNX uses GNU C++, but need to define -shared option too, otherwise
14920         # it will coredump.
14921         lt_prog_compiler_pic_CXX='-fPIC -shared'
14922         ;;
14923       osf3* | osf4* | osf5*)
14924         case $cc_basename in
14925           KCC*)
14926             lt_prog_compiler_wl_CXX='--backend -Wl,'
14927             ;;
14928           RCC*)
14929             # Rational C++ 2.4.1
14930             lt_prog_compiler_pic_CXX='-pic'
14931             ;;
14932           cxx*)
14933             # Digital/Compaq C++
14934             lt_prog_compiler_wl_CXX='-Wl,'
14935             # Make sure the PIC flag is empty.  It appears that all Alpha
14936             # Linux and Compaq Tru64 Unix objects are PIC.
14937             lt_prog_compiler_pic_CXX=
14938             lt_prog_compiler_static_CXX='-non_shared'
14939             ;;
14940           *)
14941             ;;
14942         esac
14943         ;;
14944       psos*)
14945         ;;
14946       solaris*)
14947         case $cc_basename in
14948           CC*)
14949             # Sun C++ 4.2, 5.x and Centerline C++
14950             lt_prog_compiler_pic_CXX='-KPIC'
14951             lt_prog_compiler_static_CXX='-Bstatic'
14952             lt_prog_compiler_wl_CXX='-Qoption ld '
14953             ;;
14954           gcx*)
14955             # Green Hills C++ Compiler
14956             lt_prog_compiler_pic_CXX='-PIC'
14957             ;;
14958           *)
14959             ;;
14960         esac
14961         ;;
14962       sunos4*)
14963         case $cc_basename in
14964           CC*)
14965             # Sun C++ 4.x
14966             lt_prog_compiler_pic_CXX='-pic'
14967             lt_prog_compiler_static_CXX='-Bstatic'
14968             ;;
14969           lcc*)
14970             # Lucid
14971             lt_prog_compiler_pic_CXX='-pic'
14972             ;;
14973           *)
14974             ;;
14975         esac
14976         ;;
14977       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14978         case $cc_basename in
14979           CC*)
14980             lt_prog_compiler_wl_CXX='-Wl,'
14981             lt_prog_compiler_pic_CXX='-KPIC'
14982             lt_prog_compiler_static_CXX='-Bstatic'
14983             ;;
14984         esac
14985         ;;
14986       tandem*)
14987         case $cc_basename in
14988           NCC*)
14989             # NonStop-UX NCC 3.20
14990             lt_prog_compiler_pic_CXX='-KPIC'
14991             ;;
14992           *)
14993             ;;
14994         esac
14995         ;;
14996       vxworks*)
14997         ;;
14998       *)
14999         lt_prog_compiler_can_build_shared_CXX=no
15000         ;;
15001     esac
15002   fi
15003
15004 case $host_os in
15005   # For platforms which do not support PIC, -DPIC is meaningless:
15006   *djgpp*)
15007     lt_prog_compiler_pic_CXX=
15008     ;;
15009   *)
15010     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15011     ;;
15012 esac
15013 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15014 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
15015
15016
15017
15018 #
15019 # Check to make sure the PIC flag actually works.
15020 #
15021 if test -n "$lt_prog_compiler_pic_CXX"; then
15022   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15023 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
15024 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   lt_cv_prog_compiler_pic_works_CXX=no
15028    ac_outfile=conftest.$ac_objext
15029    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15030    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15031    # Insert the option either (1) after the last *FLAGS variable, or
15032    # (2) before a word containing "conftest.", or (3) at the end.
15033    # Note that $ac_compile itself does not contain backslashes and begins
15034    # with a dollar sign (not a hyphen), so the echo should work correctly.
15035    # The option is referenced via a variable to avoid confusing sed.
15036    lt_compile=`echo "$ac_compile" | $SED \
15037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15039    -e 's:$: $lt_compiler_flag:'`
15040    (eval echo "\"\$as_me:15040: $lt_compile\"" >&5)
15041    (eval "$lt_compile" 2>conftest.err)
15042    ac_status=$?
15043    cat conftest.err >&5
15044    echo "$as_me:15044: \$? = $ac_status" >&5
15045    if (exit $ac_status) && test -s "$ac_outfile"; then
15046      # The compiler can only warn and ignore the option if not recognized
15047      # So say no if there are warnings other than the usual output.
15048      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15049      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15050      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15051        lt_cv_prog_compiler_pic_works_CXX=yes
15052      fi
15053    fi
15054    $RM conftest*
15055
15056 fi
15057 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15058 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
15059
15060 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15061     case $lt_prog_compiler_pic_CXX in
15062      "" | " "*) ;;
15063      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15064      esac
15065 else
15066     lt_prog_compiler_pic_CXX=
15067      lt_prog_compiler_can_build_shared_CXX=no
15068 fi
15069
15070 fi
15071
15072
15073
15074 #
15075 # Check to make sure the static flag actually works.
15076 #
15077 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15078 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15079 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15080 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   lt_cv_prog_compiler_static_works_CXX=no
15084    save_LDFLAGS="$LDFLAGS"
15085    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15086    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15087    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15088      # The linker can only warn and ignore the option if not recognized
15089      # So say no if there are warnings
15090      if test -s conftest.err; then
15091        # Append any errors to the config.log.
15092        cat conftest.err 1>&5
15093        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15094        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15095        if diff conftest.exp conftest.er2 >/dev/null; then
15096          lt_cv_prog_compiler_static_works_CXX=yes
15097        fi
15098      else
15099        lt_cv_prog_compiler_static_works_CXX=yes
15100      fi
15101    fi
15102    $RM -r conftest*
15103    LDFLAGS="$save_LDFLAGS"
15104
15105 fi
15106 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15107 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
15108
15109 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15110     :
15111 else
15112     lt_prog_compiler_static_CXX=
15113 fi
15114
15115
15116
15117
15118     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15119 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15120 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15121   echo $ECHO_N "(cached) $ECHO_C" >&6
15122 else
15123   lt_cv_prog_compiler_c_o_CXX=no
15124    $RM -r conftest 2>/dev/null
15125    mkdir conftest
15126    cd conftest
15127    mkdir out
15128    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15129
15130    lt_compiler_flag="-o out/conftest2.$ac_objext"
15131    # Insert the option either (1) after the last *FLAGS variable, or
15132    # (2) before a word containing "conftest.", or (3) at the end.
15133    # Note that $ac_compile itself does not contain backslashes and begins
15134    # with a dollar sign (not a hyphen), so the echo should work correctly.
15135    lt_compile=`echo "$ac_compile" | $SED \
15136    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15137    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15138    -e 's:$: $lt_compiler_flag:'`
15139    (eval echo "\"\$as_me:15139: $lt_compile\"" >&5)
15140    (eval "$lt_compile" 2>out/conftest.err)
15141    ac_status=$?
15142    cat out/conftest.err >&5
15143    echo "$as_me:15143: \$? = $ac_status" >&5
15144    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15145    then
15146      # The compiler can only warn and ignore the option if not recognized
15147      # So say no if there are warnings
15148      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15149      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15150      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15151        lt_cv_prog_compiler_c_o_CXX=yes
15152      fi
15153    fi
15154    chmod u+w . 2>&5
15155    $RM conftest*
15156    # SGI C++ compiler will create directory out/ii_files/ for
15157    # template instantiation
15158    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15159    $RM out/* && rmdir out
15160    cd ..
15161    $RM -r conftest
15162    $RM conftest*
15163
15164 fi
15165 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15166 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15167
15168
15169
15170     echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15171 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15172 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   lt_cv_prog_compiler_c_o_CXX=no
15176    $RM -r conftest 2>/dev/null
15177    mkdir conftest
15178    cd conftest
15179    mkdir out
15180    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15181
15182    lt_compiler_flag="-o out/conftest2.$ac_objext"
15183    # Insert the option either (1) after the last *FLAGS variable, or
15184    # (2) before a word containing "conftest.", or (3) at the end.
15185    # Note that $ac_compile itself does not contain backslashes and begins
15186    # with a dollar sign (not a hyphen), so the echo should work correctly.
15187    lt_compile=`echo "$ac_compile" | $SED \
15188    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15189    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15190    -e 's:$: $lt_compiler_flag:'`
15191    (eval echo "\"\$as_me:15191: $lt_compile\"" >&5)
15192    (eval "$lt_compile" 2>out/conftest.err)
15193    ac_status=$?
15194    cat out/conftest.err >&5
15195    echo "$as_me:15195: \$? = $ac_status" >&5
15196    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15197    then
15198      # The compiler can only warn and ignore the option if not recognized
15199      # So say no if there are warnings
15200      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15201      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15202      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15203        lt_cv_prog_compiler_c_o_CXX=yes
15204      fi
15205    fi
15206    chmod u+w . 2>&5
15207    $RM conftest*
15208    # SGI C++ compiler will create directory out/ii_files/ for
15209    # template instantiation
15210    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15211    $RM out/* && rmdir out
15212    cd ..
15213    $RM -r conftest
15214    $RM conftest*
15215
15216 fi
15217 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15219
15220
15221
15222
15223 hard_links="nottested"
15224 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15225   # do not overwrite the value of need_locks provided by the user
15226   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15227 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15228   hard_links=yes
15229   $RM conftest*
15230   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15231   touch conftest.a
15232   ln conftest.a conftest.b 2>&5 || hard_links=no
15233   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15234   echo "$as_me:$LINENO: result: $hard_links" >&5
15235 echo "${ECHO_T}$hard_links" >&6
15236   if test "$hard_links" = no; then
15237     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15238 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15239     need_locks=warn
15240   fi
15241 else
15242   need_locks=no
15243 fi
15244
15245
15246
15247     echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15248 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15249
15250   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15251   case $host_os in
15252   aix[4-9]*)
15253     # If we're using GNU nm, then we don't want the "-C" option.
15254     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15255     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15256       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'
15257     else
15258       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'
15259     fi
15260     ;;
15261   pw32*)
15262     export_symbols_cmds_CXX="$ltdll_cmds"
15263   ;;
15264   cygwin* | mingw* | cegcc*)
15265     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'
15266   ;;
15267   *)
15268     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15269   ;;
15270   esac
15271   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15272
15273 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15274 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15275 test "$ld_shlibs_CXX" = no && can_build_shared=no
15276
15277 with_gnu_ld_CXX=$with_gnu_ld
15278
15279
15280
15281
15282
15283
15284 #
15285 # Do we need to explicitly link libc?
15286 #
15287 case "x$archive_cmds_need_lc_CXX" in
15288 x|xyes)
15289   # Assume -lc should be added
15290   archive_cmds_need_lc_CXX=yes
15291
15292   if test "$enable_shared" = yes && test "$GCC" = yes; then
15293     case $archive_cmds_CXX in
15294     *'~'*)
15295       # FIXME: we may have to deal with multi-command sequences.
15296       ;;
15297     '$CC '*)
15298       # Test whether the compiler implicitly links with -lc since on some
15299       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15300       # to ld, don't add -lc before -lgcc.
15301       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15302 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15303 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then
15304   echo $ECHO_N "(cached) $ECHO_C" >&6
15305 else
15306   $RM conftest*
15307         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15308
15309         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15310   (eval $ac_compile) 2>&5
15311   ac_status=$?
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } 2>conftest.err; then
15314           soname=conftest
15315           lib=conftest
15316           libobjs=conftest.$ac_objext
15317           deplibs=
15318           wl=$lt_prog_compiler_wl_CXX
15319           pic_flag=$lt_prog_compiler_pic_CXX
15320           compiler_flags=-v
15321           linker_flags=-v
15322           verstring=
15323           output_objdir=.
15324           libname=conftest
15325           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15326           allow_undefined_flag_CXX=
15327           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15328   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }
15332           then
15333             lt_cv_archive_cmds_need_lc_CXX=no
15334           else
15335             lt_cv_archive_cmds_need_lc_CXX=yes
15336           fi
15337           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15338         else
15339           cat conftest.err 1>&5
15340         fi
15341         $RM conftest*
15342
15343 fi
15344 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15345 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_CXX" >&6
15346       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15347       ;;
15348     esac
15349   fi
15350   ;;
15351 esac
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416     echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15417 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15418
15419 library_names_spec=
15420 libname_spec='lib$name'
15421 soname_spec=
15422 shrext_cmds=".so"
15423 postinstall_cmds=
15424 postuninstall_cmds=
15425 finish_cmds=
15426 finish_eval=
15427 shlibpath_var=
15428 shlibpath_overrides_runpath=unknown
15429 version_type=none
15430 dynamic_linker="$host_os ld.so"
15431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15432 need_lib_prefix=unknown
15433 hardcode_into_libs=no
15434
15435 # when you set need_version to no, make sure it does not cause -set_version
15436 # flags to be left without arguments
15437 need_version=unknown
15438
15439 case $host_os in
15440 aix3*)
15441   version_type=linux
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15443   shlibpath_var=LIBPATH
15444
15445   # AIX 3 has no versioning support, so we append a major version to the name.
15446   soname_spec='${libname}${release}${shared_ext}$major'
15447   ;;
15448
15449 aix[4-9]*)
15450   version_type=linux
15451   need_lib_prefix=no
15452   need_version=no
15453   hardcode_into_libs=yes
15454   if test "$host_cpu" = ia64; then
15455     # AIX 5 supports IA64
15456     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15457     shlibpath_var=LD_LIBRARY_PATH
15458   else
15459     # With GCC up to 2.95.x, collect2 would create an import file
15460     # for dependence libraries.  The import file would start with
15461     # the line `#! .'.  This would cause the generated library to
15462     # depend on `.', always an invalid library.  This was fixed in
15463     # development snapshots of GCC prior to 3.0.
15464     case $host_os in
15465       aix4 | aix4.[01] | aix4.[01].*)
15466       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15467            echo ' yes '
15468            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15469         :
15470       else
15471         can_build_shared=no
15472       fi
15473       ;;
15474     esac
15475     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15476     # soname into executable. Probably we can add versioning support to
15477     # collect2, so additional links can be useful in future.
15478     if test "$aix_use_runtimelinking" = yes; then
15479       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15480       # instead of lib<name>.a to let people know that these are not
15481       # typical AIX shared libraries.
15482       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15483     else
15484       # We preserve .a as extension for shared libraries through AIX4.2
15485       # and later when we are not doing run time linking.
15486       library_names_spec='${libname}${release}.a $libname.a'
15487       soname_spec='${libname}${release}${shared_ext}$major'
15488     fi
15489     shlibpath_var=LIBPATH
15490   fi
15491   ;;
15492
15493 amigaos*)
15494   case $host_cpu in
15495   powerpc)
15496     # Since July 2007 AmigaOS4 officially supports .so libraries.
15497     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15499     ;;
15500   m68k)
15501     library_names_spec='$libname.ixlibrary $libname.a'
15502     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15503     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'
15504     ;;
15505   esac
15506   ;;
15507
15508 beos*)
15509   library_names_spec='${libname}${shared_ext}'
15510   dynamic_linker="$host_os ld.so"
15511   shlibpath_var=LIBRARY_PATH
15512   ;;
15513
15514 bsdi[45]*)
15515   version_type=linux
15516   need_version=no
15517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518   soname_spec='${libname}${release}${shared_ext}$major'
15519   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15520   shlibpath_var=LD_LIBRARY_PATH
15521   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15522   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15523   # the default ld.so.conf also contains /usr/contrib/lib and
15524   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15525   # libtool to hard-code these into programs
15526   ;;
15527
15528 cygwin* | mingw* | pw32* | cegcc*)
15529   version_type=windows
15530   shrext_cmds=".dll"
15531   need_version=no
15532   need_lib_prefix=no
15533
15534   case $GCC,$host_os in
15535   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15536     library_names_spec='$libname.dll.a'
15537     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15538     postinstall_cmds='base_file=`basename \${file}`~
15539       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15540       dldir=$destdir/`dirname \$dlpath`~
15541       test -d \$dldir || mkdir -p \$dldir~
15542       $install_prog $dir/$dlname \$dldir/$dlname~
15543       chmod a+x \$dldir/$dlname~
15544       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15545         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15546       fi'
15547     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15548       dlpath=$dir/\$dldll~
15549        $RM \$dlpath'
15550     shlibpath_overrides_runpath=yes
15551
15552     case $host_os in
15553     cygwin*)
15554       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15555       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15556       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15557       ;;
15558     mingw* | cegcc*)
15559       # MinGW DLLs use traditional 'lib' prefix
15560       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15561       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15562       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15563         # It is most probably a Windows format PATH printed by
15564         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15565         # path with ; separators, and with drive letters. We can handle the
15566         # drive letters (cygwin fileutils understands them), so leave them,
15567         # especially as we might pass files found there to a mingw objdump,
15568         # which wouldn't understand a cygwinified path. Ahh.
15569         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15570       else
15571         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15572       fi
15573       ;;
15574     pw32*)
15575       # pw32 DLLs use 'pw' prefix rather than 'lib'
15576       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15577       ;;
15578     esac
15579     ;;
15580
15581   *)
15582     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15583     ;;
15584   esac
15585   dynamic_linker='Win32 ld.exe'
15586   # FIXME: first we should search . and the directory the executable is in
15587   shlibpath_var=PATH
15588   ;;
15589
15590 darwin* | rhapsody*)
15591   dynamic_linker="$host_os dyld"
15592   version_type=darwin
15593   need_lib_prefix=no
15594   need_version=no
15595   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15596   soname_spec='${libname}${release}${major}$shared_ext'
15597   shlibpath_overrides_runpath=yes
15598   shlibpath_var=DYLD_LIBRARY_PATH
15599   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15600
15601   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15602   ;;
15603
15604 dgux*)
15605   version_type=linux
15606   need_lib_prefix=no
15607   need_version=no
15608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15609   soname_spec='${libname}${release}${shared_ext}$major'
15610   shlibpath_var=LD_LIBRARY_PATH
15611   ;;
15612
15613 freebsd1*)
15614   dynamic_linker=no
15615   ;;
15616
15617 freebsd* | dragonfly*)
15618   # DragonFly does not have aout.  When/if they implement a new
15619   # versioning mechanism, adjust this.
15620   if test -x /usr/bin/objformat; then
15621     objformat=`/usr/bin/objformat`
15622   else
15623     case $host_os in
15624     freebsd[123]*) objformat=aout ;;
15625     *) objformat=elf ;;
15626     esac
15627   fi
15628   version_type=freebsd-$objformat
15629   case $version_type in
15630     freebsd-elf*)
15631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15632       need_version=no
15633       need_lib_prefix=no
15634       ;;
15635     freebsd-*)
15636       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15637       need_version=yes
15638       ;;
15639   esac
15640   shlibpath_var=LD_LIBRARY_PATH
15641   case $host_os in
15642   freebsd2*)
15643     shlibpath_overrides_runpath=yes
15644     ;;
15645   freebsd3.[01]* | freebsdelf3.[01]*)
15646     shlibpath_overrides_runpath=yes
15647     hardcode_into_libs=yes
15648     ;;
15649   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15650   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15651     shlibpath_overrides_runpath=no
15652     hardcode_into_libs=yes
15653     ;;
15654   *) # from 4.6 on, and DragonFly
15655     shlibpath_overrides_runpath=yes
15656     hardcode_into_libs=yes
15657     ;;
15658   esac
15659   ;;
15660
15661 gnu*)
15662   version_type=linux
15663   need_lib_prefix=no
15664   need_version=no
15665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15666   soname_spec='${libname}${release}${shared_ext}$major'
15667   shlibpath_var=LD_LIBRARY_PATH
15668   hardcode_into_libs=yes
15669   ;;
15670
15671 hpux9* | hpux10* | hpux11*)
15672   # Give a soname corresponding to the major version so that dld.sl refuses to
15673   # link against other versions.
15674   version_type=sunos
15675   need_lib_prefix=no
15676   need_version=no
15677   case $host_cpu in
15678   ia64*)
15679     shrext_cmds='.so'
15680     hardcode_into_libs=yes
15681     dynamic_linker="$host_os dld.so"
15682     shlibpath_var=LD_LIBRARY_PATH
15683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685     soname_spec='${libname}${release}${shared_ext}$major'
15686     if test "X$HPUX_IA64_MODE" = X32; then
15687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15688     else
15689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15690     fi
15691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15692     ;;
15693   hppa*64*)
15694     shrext_cmds='.sl'
15695     hardcode_into_libs=yes
15696     dynamic_linker="$host_os dld.sl"
15697     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15698     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15699     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700     soname_spec='${libname}${release}${shared_ext}$major'
15701     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15702     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15703     ;;
15704   *)
15705     shrext_cmds='.sl'
15706     dynamic_linker="$host_os dld.sl"
15707     shlibpath_var=SHLIB_PATH
15708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15710     soname_spec='${libname}${release}${shared_ext}$major'
15711     ;;
15712   esac
15713   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15714   postinstall_cmds='chmod 555 $lib'
15715   ;;
15716
15717 interix[3-9]*)
15718   version_type=linux
15719   need_lib_prefix=no
15720   need_version=no
15721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15722   soname_spec='${libname}${release}${shared_ext}$major'
15723   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15724   shlibpath_var=LD_LIBRARY_PATH
15725   shlibpath_overrides_runpath=no
15726   hardcode_into_libs=yes
15727   ;;
15728
15729 irix5* | irix6* | nonstopux*)
15730   case $host_os in
15731     nonstopux*) version_type=nonstopux ;;
15732     *)
15733         if test "$lt_cv_prog_gnu_ld" = yes; then
15734                 version_type=linux
15735         else
15736                 version_type=irix
15737         fi ;;
15738   esac
15739   need_lib_prefix=no
15740   need_version=no
15741   soname_spec='${libname}${release}${shared_ext}$major'
15742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15743   case $host_os in
15744   irix5* | nonstopux*)
15745     libsuff= shlibsuff=
15746     ;;
15747   *)
15748     case $LD in # libtool.m4 will add one of these switches to LD
15749     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15750       libsuff= shlibsuff= libmagic=32-bit;;
15751     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15752       libsuff=32 shlibsuff=N32 libmagic=N32;;
15753     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15754       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15755     *) libsuff= shlibsuff= libmagic=never-match;;
15756     esac
15757     ;;
15758   esac
15759   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15760   shlibpath_overrides_runpath=no
15761   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15762   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15763   hardcode_into_libs=yes
15764   ;;
15765
15766 # No shared lib support for Linux oldld, aout, or coff.
15767 linux*oldld* | linux*aout* | linux*coff*)
15768   dynamic_linker=no
15769   ;;
15770
15771 # This must be Linux ELF.
15772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15773   version_type=linux
15774   need_lib_prefix=no
15775   need_version=no
15776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777   soname_spec='${libname}${release}${shared_ext}$major'
15778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15779   shlibpath_var=LD_LIBRARY_PATH
15780   shlibpath_overrides_runpath=no
15781
15782   # Some binutils ld are patched to set DT_RUNPATH
15783   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
15784   echo $ECHO_N "(cached) $ECHO_C" >&6
15785 else
15786   lt_cv_shlibpath_overrides_runpath=no
15787     save_LDFLAGS=$LDFLAGS
15788     save_libdir=$libdir
15789     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15790          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15791     if test x$gcc_no_link = xyes; then
15792   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15793 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15794    { (exit 1); exit 1; }; }
15795 fi
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 int
15804 main ()
15805 {
15806
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15813   (eval $ac_link) 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } &&
15820          { ac_try='test -z "$ac_cxx_werror_flag"
15821                          || test ! -s conftest.err'
15822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823   (eval $ac_try) 2>&5
15824   ac_status=$?
15825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826   (exit $ac_status); }; } &&
15827          { ac_try='test -s conftest$ac_exeext'
15828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829   (eval $ac_try) 2>&5
15830   ac_status=$?
15831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832   (exit $ac_status); }; }; then
15833   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15834   lt_cv_shlibpath_overrides_runpath=yes
15835 fi
15836
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841 fi
15842 rm -f conftest.err conftest.$ac_objext \
15843       conftest$ac_exeext conftest.$ac_ext
15844     LDFLAGS=$save_LDFLAGS
15845     libdir=$save_libdir
15846
15847 fi
15848
15849   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15850
15851   # This implies no fast_install, which is unacceptable.
15852   # Some rework will be needed to allow for fast_install
15853   # before this can be enabled.
15854   hardcode_into_libs=yes
15855
15856   # Append ld.so.conf contents to the search path
15857   if test -f /etc/ld.so.conf; then
15858     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15859     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15860   fi
15861
15862   # We used to test for /lib/ld.so.1 and disable shared libraries on
15863   # powerpc, because MkLinux only supported shared libraries with the
15864   # GNU dynamic linker.  Since this was broken with cross compilers,
15865   # most powerpc-linux boxes support dynamic linking these days and
15866   # people can always --disable-shared, the test was removed, and we
15867   # assume the GNU/Linux dynamic linker is in use.
15868   dynamic_linker='GNU/Linux ld.so'
15869   ;;
15870
15871 netbsd*)
15872   version_type=sunos
15873   need_lib_prefix=no
15874   need_version=no
15875   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15876     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15877     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15878     dynamic_linker='NetBSD (a.out) ld.so'
15879   else
15880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881     soname_spec='${libname}${release}${shared_ext}$major'
15882     dynamic_linker='NetBSD ld.elf_so'
15883   fi
15884   shlibpath_var=LD_LIBRARY_PATH
15885   shlibpath_overrides_runpath=yes
15886   hardcode_into_libs=yes
15887   ;;
15888
15889 newsos6)
15890   version_type=linux
15891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15892   shlibpath_var=LD_LIBRARY_PATH
15893   shlibpath_overrides_runpath=yes
15894   ;;
15895
15896 *nto* | *qnx*)
15897   version_type=qnx
15898   need_lib_prefix=no
15899   need_version=no
15900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15901   soname_spec='${libname}${release}${shared_ext}$major'
15902   shlibpath_var=LD_LIBRARY_PATH
15903   shlibpath_overrides_runpath=no
15904   hardcode_into_libs=yes
15905   dynamic_linker='ldqnx.so'
15906   ;;
15907
15908 openbsd*)
15909   version_type=sunos
15910   sys_lib_dlsearch_path_spec="/usr/lib"
15911   need_lib_prefix=no
15912   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15913   case $host_os in
15914     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15915     *)                          need_version=no  ;;
15916   esac
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15918   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15919   shlibpath_var=LD_LIBRARY_PATH
15920   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15921     case $host_os in
15922       openbsd2.[89] | openbsd2.[89].*)
15923         shlibpath_overrides_runpath=no
15924         ;;
15925       *)
15926         shlibpath_overrides_runpath=yes
15927         ;;
15928       esac
15929   else
15930     shlibpath_overrides_runpath=yes
15931   fi
15932   ;;
15933
15934 os2*)
15935   libname_spec='$name'
15936   shrext_cmds=".dll"
15937   need_lib_prefix=no
15938   library_names_spec='$libname${shared_ext} $libname.a'
15939   dynamic_linker='OS/2 ld.exe'
15940   shlibpath_var=LIBPATH
15941   ;;
15942
15943 osf3* | osf4* | osf5*)
15944   version_type=osf
15945   need_lib_prefix=no
15946   need_version=no
15947   soname_spec='${libname}${release}${shared_ext}$major'
15948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15949   shlibpath_var=LD_LIBRARY_PATH
15950   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15951   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15952   ;;
15953
15954 rdos*)
15955   dynamic_linker=no
15956   ;;
15957
15958 solaris*)
15959   version_type=linux
15960   need_lib_prefix=no
15961   need_version=no
15962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963   soname_spec='${libname}${release}${shared_ext}$major'
15964   shlibpath_var=LD_LIBRARY_PATH
15965   shlibpath_overrides_runpath=yes
15966   hardcode_into_libs=yes
15967   # ldd complains unless libraries are executable
15968   postinstall_cmds='chmod +x $lib'
15969   ;;
15970
15971 sunos4*)
15972   version_type=sunos
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15974   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15975   shlibpath_var=LD_LIBRARY_PATH
15976   shlibpath_overrides_runpath=yes
15977   if test "$with_gnu_ld" = yes; then
15978     need_lib_prefix=no
15979   fi
15980   need_version=yes
15981   ;;
15982
15983 sysv4 | sysv4.3*)
15984   version_type=linux
15985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986   soname_spec='${libname}${release}${shared_ext}$major'
15987   shlibpath_var=LD_LIBRARY_PATH
15988   case $host_vendor in
15989     sni)
15990       shlibpath_overrides_runpath=no
15991       need_lib_prefix=no
15992       runpath_var=LD_RUN_PATH
15993       ;;
15994     siemens)
15995       need_lib_prefix=no
15996       ;;
15997     motorola)
15998       need_lib_prefix=no
15999       need_version=no
16000       shlibpath_overrides_runpath=no
16001       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16002       ;;
16003   esac
16004   ;;
16005
16006 sysv4*MP*)
16007   if test -d /usr/nec ;then
16008     version_type=linux
16009     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16010     soname_spec='$libname${shared_ext}.$major'
16011     shlibpath_var=LD_LIBRARY_PATH
16012   fi
16013   ;;
16014
16015 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16016   version_type=freebsd-elf
16017   need_lib_prefix=no
16018   need_version=no
16019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16020   soname_spec='${libname}${release}${shared_ext}$major'
16021   shlibpath_var=LD_LIBRARY_PATH
16022   shlibpath_overrides_runpath=yes
16023   hardcode_into_libs=yes
16024   if test "$with_gnu_ld" = yes; then
16025     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16026   else
16027     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16028     case $host_os in
16029       sco3.2v5*)
16030         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16031         ;;
16032     esac
16033   fi
16034   sys_lib_dlsearch_path_spec='/usr/lib'
16035   ;;
16036
16037 tpf*)
16038   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16039   version_type=linux
16040   need_lib_prefix=no
16041   need_version=no
16042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043   shlibpath_var=LD_LIBRARY_PATH
16044   shlibpath_overrides_runpath=no
16045   hardcode_into_libs=yes
16046   ;;
16047
16048 uts4*)
16049   version_type=linux
16050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16051   soname_spec='${libname}${release}${shared_ext}$major'
16052   shlibpath_var=LD_LIBRARY_PATH
16053   ;;
16054
16055 *)
16056   dynamic_linker=no
16057   ;;
16058 esac
16059 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16060 echo "${ECHO_T}$dynamic_linker" >&6
16061 test "$dynamic_linker" = no && can_build_shared=no
16062
16063 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16064 if test "$GCC" = yes; then
16065   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16066 fi
16067
16068 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16069   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16070 fi
16071 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16072   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16073 fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110     echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16111 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16112 hardcode_action_CXX=
16113 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16114    test -n "$runpath_var_CXX" ||
16115    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16116
16117   # We can hardcode non-existent directories.
16118   if test "$hardcode_direct_CXX" != no &&
16119      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16120      # have to relink, otherwise we might link with an installed library
16121      # when we should be linking with a yet-to-be-installed one
16122      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16123      test "$hardcode_minus_L_CXX" != no; then
16124     # Linking always hardcodes the temporary library directory.
16125     hardcode_action_CXX=relink
16126   else
16127     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16128     hardcode_action_CXX=immediate
16129   fi
16130 else
16131   # We cannot hardcode anything, or else we can only hardcode existing
16132   # directories.
16133   hardcode_action_CXX=unsupported
16134 fi
16135 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16136 echo "${ECHO_T}$hardcode_action_CXX" >&6
16137
16138 if test "$hardcode_action_CXX" = relink ||
16139    test "$inherit_rpath_CXX" = yes; then
16140   # Fast installation is not supported
16141   enable_fast_install=no
16142 elif test "$shlibpath_overrides_runpath" = yes ||
16143      test "$enable_shared" = no; then
16144   # Fast installation is not necessary
16145   enable_fast_install=needless
16146 fi
16147
16148
16149
16150
16151
16152
16153
16154   fi # test -n "$compiler"
16155
16156   CC=$lt_save_CC
16157   LDCXX=$LD
16158   LD=$lt_save_LD
16159   GCC=$lt_save_GCC
16160   with_gnu_ld=$lt_save_with_gnu_ld
16161   lt_cv_path_LDCXX=$lt_cv_path_LD
16162   lt_cv_path_LD=$lt_save_path_LD
16163   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16164   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16165 fi # test "$_lt_caught_CXX_error" != yes
16166
16167 ac_ext=c
16168 ac_cpp='$CPP $CPPFLAGS'
16169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185                   ac_config_commands="$ac_config_commands libtool"
16186
16187
16188
16189
16190 # Only expand once:
16191
16192
16193
16194 for ac_prog in gcj
16195 do
16196   # Extract the first word of "$ac_prog", so it can be a program name with args.
16197 set dummy $ac_prog; ac_word=$2
16198 echo "$as_me:$LINENO: checking for $ac_word" >&5
16199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16200 if test "${ac_cv_prog_GCJ+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   if test -n "$GCJ"; then
16204   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16205 else
16206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16207 for as_dir in $PATH
16208 do
16209   IFS=$as_save_IFS
16210   test -z "$as_dir" && as_dir=.
16211   for ac_exec_ext in '' $ac_executable_extensions; do
16212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16213     ac_cv_prog_GCJ="$ac_prog"
16214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16215     break 2
16216   fi
16217 done
16218 done
16219
16220 fi
16221 fi
16222 GCJ=$ac_cv_prog_GCJ
16223 if test -n "$GCJ"; then
16224   echo "$as_me:$LINENO: result: $GCJ" >&5
16225 echo "${ECHO_T}$GCJ" >&6
16226 else
16227   echo "$as_me:$LINENO: result: no" >&5
16228 echo "${ECHO_T}no" >&6
16229 fi
16230
16231   test -n "$GCJ" && break
16232 done
16233 test -n "$GCJ" || GCJ="gcj"
16234
16235 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16236 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16237    { (exit 1); exit 1; }; }
16238 if test "x${GCJFLAGS-unset}" = xunset; then
16239    GCJFLAGS="-g -O2"
16240 fi
16241
16242
16243 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16244
16245 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16247 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16248   echo $ECHO_N "(cached) $ECHO_C" >&6
16249 else
16250   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16251   # We make a subdir and do the tests there.  Otherwise we can end up
16252   # making bogus files that we don't know about and never remove.  For
16253   # instance it was reported that on HP-UX the gcc test will end up
16254   # making a dummy file named `D' -- because `-MD' means `put the output
16255   # in D'.
16256   mkdir conftest.dir
16257   # Copy depcomp to subdir because otherwise we won't find it if we're
16258   # using a relative directory.
16259   cp "$am_depcomp" conftest.dir
16260   cd conftest.dir
16261   # We will build objects and dependencies in a subdirectory because
16262   # it helps to detect inapplicable dependency modes.  For instance
16263   # both Tru64's cc and ICC support -MD to output dependencies as a
16264   # side effect of compilation, but ICC will put the dependencies in
16265   # the current directory while Tru64 will put them in the object
16266   # directory.
16267   mkdir sub
16268
16269   am_cv_GCJ_dependencies_compiler_type=none
16270   if test "$am_compiler_list" = ""; then
16271      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16272   fi
16273   for depmode in $am_compiler_list; do
16274     # Setup a source with many dependencies, because some compilers
16275     # like to wrap large dependency lists on column 80 (with \), and
16276     # we should not choose a depcomp mode which is confused by this.
16277     #
16278     # We need to recreate these files for each test, as the compiler may
16279     # overwrite some of them when testing with obscure command lines.
16280     # This happens at least with the AIX C compiler.
16281     : > sub/conftest.c
16282     for i in 1 2 3 4 5 6; do
16283       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16284       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16285       # Solaris 8's {/usr,}/bin/sh.
16286       touch sub/conftst$i.h
16287     done
16288     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16289
16290     case $depmode in
16291     nosideeffect)
16292       # after this tag, mechanisms are not by side-effect, so they'll
16293       # only be used when explicitly requested
16294       if test "x$enable_dependency_tracking" = xyes; then
16295         continue
16296       else
16297         break
16298       fi
16299       ;;
16300     none) break ;;
16301     esac
16302     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16303     # mode.  It turns out that the SunPro C++ compiler does not properly
16304     # handle `-M -o', and we need to detect this.
16305     if depmode=$depmode \
16306        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16307        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16308        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16309          >/dev/null 2>conftest.err &&
16310        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16311        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16312        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16313       # icc doesn't choke on unknown options, it will just issue warnings
16314       # or remarks (even with -Werror).  So we grep stderr for any message
16315       # that says an option was ignored or not supported.
16316       # When given -MP, icc 7.0 and 7.1 complain thusly:
16317       #   icc: Command line warning: ignoring option '-M'; no argument required
16318       # The diagnosis changed in icc 8.0:
16319       #   icc: Command line remark: option '-MP' not supported
16320       if (grep 'ignoring option' conftest.err ||
16321           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16322         am_cv_GCJ_dependencies_compiler_type=$depmode
16323         break
16324       fi
16325     fi
16326   done
16327
16328   cd ..
16329   rm -rf conftest.dir
16330 else
16331   am_cv_GCJ_dependencies_compiler_type=none
16332 fi
16333
16334 fi
16335 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16336 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16337 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16338
16339
16340
16341 if
16342   test "x$enable_dependency_tracking" != xno \
16343   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16344   am__fastdepGCJ_TRUE=
16345   am__fastdepGCJ_FALSE='#'
16346 else
16347   am__fastdepGCJ_TRUE='#'
16348   am__fastdepGCJ_FALSE=
16349 fi
16350
16351
16352
16353 for ac_prog in gcj
16354 do
16355   # Extract the first word of "$ac_prog", so it can be a program name with args.
16356 set dummy $ac_prog; ac_word=$2
16357 echo "$as_me:$LINENO: checking for $ac_word" >&5
16358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16359 if test "${ac_cv_prog_GCJ+set}" = set; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362   if test -n "$GCJ"; then
16363   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16364 else
16365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16366 for as_dir in $PATH
16367 do
16368   IFS=$as_save_IFS
16369   test -z "$as_dir" && as_dir=.
16370   for ac_exec_ext in '' $ac_executable_extensions; do
16371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16372     ac_cv_prog_GCJ="$ac_prog"
16373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16374     break 2
16375   fi
16376 done
16377 done
16378
16379 fi
16380 fi
16381 GCJ=$ac_cv_prog_GCJ
16382 if test -n "$GCJ"; then
16383   echo "$as_me:$LINENO: result: $GCJ" >&5
16384 echo "${ECHO_T}$GCJ" >&6
16385 else
16386   echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6
16388 fi
16389
16390   test -n "$GCJ" && break
16391 done
16392 test -n "$GCJ" || GCJ="gcj"
16393
16394 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16395 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16396    { (exit 1); exit 1; }; }
16397 if test "x${GCJFLAGS-unset}" = xunset; then
16398    GCJFLAGS="-g -O2"
16399 fi
16400
16401
16402 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16403
16404 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16405 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16406 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16407   echo $ECHO_N "(cached) $ECHO_C" >&6
16408 else
16409   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16410   # We make a subdir and do the tests there.  Otherwise we can end up
16411   # making bogus files that we don't know about and never remove.  For
16412   # instance it was reported that on HP-UX the gcc test will end up
16413   # making a dummy file named `D' -- because `-MD' means `put the output
16414   # in D'.
16415   mkdir conftest.dir
16416   # Copy depcomp to subdir because otherwise we won't find it if we're
16417   # using a relative directory.
16418   cp "$am_depcomp" conftest.dir
16419   cd conftest.dir
16420   # We will build objects and dependencies in a subdirectory because
16421   # it helps to detect inapplicable dependency modes.  For instance
16422   # both Tru64's cc and ICC support -MD to output dependencies as a
16423   # side effect of compilation, but ICC will put the dependencies in
16424   # the current directory while Tru64 will put them in the object
16425   # directory.
16426   mkdir sub
16427
16428   am_cv_GCJ_dependencies_compiler_type=none
16429   if test "$am_compiler_list" = ""; then
16430      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16431   fi
16432   for depmode in $am_compiler_list; do
16433     # Setup a source with many dependencies, because some compilers
16434     # like to wrap large dependency lists on column 80 (with \), and
16435     # we should not choose a depcomp mode which is confused by this.
16436     #
16437     # We need to recreate these files for each test, as the compiler may
16438     # overwrite some of them when testing with obscure command lines.
16439     # This happens at least with the AIX C compiler.
16440     : > sub/conftest.c
16441     for i in 1 2 3 4 5 6; do
16442       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16443       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16444       # Solaris 8's {/usr,}/bin/sh.
16445       touch sub/conftst$i.h
16446     done
16447     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16448
16449     case $depmode in
16450     nosideeffect)
16451       # after this tag, mechanisms are not by side-effect, so they'll
16452       # only be used when explicitly requested
16453       if test "x$enable_dependency_tracking" = xyes; then
16454         continue
16455       else
16456         break
16457       fi
16458       ;;
16459     none) break ;;
16460     esac
16461     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16462     # mode.  It turns out that the SunPro C++ compiler does not properly
16463     # handle `-M -o', and we need to detect this.
16464     if depmode=$depmode \
16465        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16466        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16467        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16468          >/dev/null 2>conftest.err &&
16469        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16470        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16471        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16472       # icc doesn't choke on unknown options, it will just issue warnings
16473       # or remarks (even with -Werror).  So we grep stderr for any message
16474       # that says an option was ignored or not supported.
16475       # When given -MP, icc 7.0 and 7.1 complain thusly:
16476       #   icc: Command line warning: ignoring option '-M'; no argument required
16477       # The diagnosis changed in icc 8.0:
16478       #   icc: Command line remark: option '-MP' not supported
16479       if (grep 'ignoring option' conftest.err ||
16480           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16481         am_cv_GCJ_dependencies_compiler_type=$depmode
16482         break
16483       fi
16484     fi
16485   done
16486
16487   cd ..
16488   rm -rf conftest.dir
16489 else
16490   am_cv_GCJ_dependencies_compiler_type=none
16491 fi
16492
16493 fi
16494 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16495 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16496 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16497
16498
16499
16500 if
16501   test "x$enable_dependency_tracking" != xno \
16502   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16503   am__fastdepGCJ_TRUE=
16504   am__fastdepGCJ_FALSE='#'
16505 else
16506   am__fastdepGCJ_TRUE='#'
16507   am__fastdepGCJ_FALSE=
16508 fi
16509
16510
16511
16512
16513
16514
16515 # Source file extension for Java test sources.
16516 ac_ext=c
16517
16518 # Object file extension for compiled Java test sources.
16519 objext=o
16520 objext_GCJ=$objext
16521
16522 # Code to be used in simple compile tests
16523 lt_simple_compile_test_code="int some_variable = 0;"
16524
16525 # Code to be used in simple link tests
16526 lt_simple_link_test_code='int main(){return(0);}'
16527
16528 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16529
16530
16531
16532
16533
16534
16535 # If no C compiler was specified, use CC.
16536 LTCC=${LTCC-"$CC"}
16537
16538 # If no C compiler flags were specified, use CFLAGS.
16539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16540
16541 # Allow CC to be a program name with arguments.
16542 compiler=$CC
16543
16544
16545 # save warnings/boilerplate of simple test code
16546 ac_outfile=conftest.$ac_objext
16547 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16548 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16549 _lt_compiler_boilerplate=`cat conftest.err`
16550 $RM conftest*
16551
16552 ac_outfile=conftest.$ac_objext
16553 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16554 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16555 _lt_linker_boilerplate=`cat conftest.err`
16556 $RM -r conftest*
16557
16558
16559 # Allow CC to be a program name with arguments.
16560 GCC=yes
16561 compiler=$CC
16562 compiler_GCJ=$CC
16563 for cc_temp in $compiler""; do
16564   case $cc_temp in
16565     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16566     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16567     \-*) ;;
16568     *) break;;
16569   esac
16570 done
16571 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16572
16573
16574 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16575 archive_cmds_need_lc_GCJ=no
16576
16577 old_archive_cmds_GCJ=$old_archive_cmds
16578
16579 ## CAVEAT EMPTOR:
16580 ## There is no encapsulation within the following macros, do not change
16581 ## the running order or otherwise move them around unless you know exactly
16582 ## what you are doing...
16583 if test -n "$compiler"; then
16584
16585 lt_prog_compiler_no_builtin_flag_GCJ=
16586
16587 if test "$GCC" = yes; then
16588   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16589
16590   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16591 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16592 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16593   echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595   lt_cv_prog_compiler_rtti_exceptions=no
16596    ac_outfile=conftest.$ac_objext
16597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16598    lt_compiler_flag="-fno-rtti -fno-exceptions"
16599    # Insert the option either (1) after the last *FLAGS variable, or
16600    # (2) before a word containing "conftest.", or (3) at the end.
16601    # Note that $ac_compile itself does not contain backslashes and begins
16602    # with a dollar sign (not a hyphen), so the echo should work correctly.
16603    # The option is referenced via a variable to avoid confusing sed.
16604    lt_compile=`echo "$ac_compile" | $SED \
16605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16607    -e 's:$: $lt_compiler_flag:'`
16608    (eval echo "\"\$as_me:16608: $lt_compile\"" >&5)
16609    (eval "$lt_compile" 2>conftest.err)
16610    ac_status=$?
16611    cat conftest.err >&5
16612    echo "$as_me:16612: \$? = $ac_status" >&5
16613    if (exit $ac_status) && test -s "$ac_outfile"; then
16614      # The compiler can only warn and ignore the option if not recognized
16615      # So say no if there are warnings other than the usual output.
16616      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16619        lt_cv_prog_compiler_rtti_exceptions=yes
16620      fi
16621    fi
16622    $RM conftest*
16623
16624 fi
16625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16626 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16627
16628 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16629     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16630 else
16631     :
16632 fi
16633
16634 fi
16635
16636
16637
16638   lt_prog_compiler_wl_GCJ=
16639 lt_prog_compiler_pic_GCJ=
16640 lt_prog_compiler_static_GCJ=
16641
16642 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16643 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16644
16645   if test "$GCC" = yes; then
16646     lt_prog_compiler_wl_GCJ='-Wl,'
16647     lt_prog_compiler_static_GCJ='-static'
16648
16649     case $host_os in
16650       aix*)
16651       # All AIX code is PIC.
16652       if test "$host_cpu" = ia64; then
16653         # AIX 5 now supports IA64 processor
16654         lt_prog_compiler_static_GCJ='-Bstatic'
16655       fi
16656       ;;
16657
16658     amigaos*)
16659       case $host_cpu in
16660       powerpc)
16661             # see comment about AmigaOS4 .so support
16662             lt_prog_compiler_pic_GCJ='-fPIC'
16663         ;;
16664       m68k)
16665             # FIXME: we need at least 68020 code to build shared libraries, but
16666             # adding the `-m68020' flag to GCC prevents building anything better,
16667             # like `-m68040'.
16668             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16669         ;;
16670       esac
16671       ;;
16672
16673     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16674       # PIC is the default for these OSes.
16675       ;;
16676
16677     mingw* | cygwin* | pw32* | os2* | cegcc*)
16678       # This hack is so that the source file can tell whether it is being
16679       # built for inclusion in a dll (and should export symbols for example).
16680       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16681       # (--disable-auto-import) libraries
16682
16683       ;;
16684
16685     darwin* | rhapsody*)
16686       # PIC is the default on this platform
16687       # Common symbols not allowed in MH_DYLIB files
16688       lt_prog_compiler_pic_GCJ='-fno-common'
16689       ;;
16690
16691     hpux*)
16692       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16693       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16694       # sets the default TLS model and affects inlining.
16695       case $host_cpu in
16696       hppa*64*)
16697         # +Z the default
16698         ;;
16699       *)
16700         lt_prog_compiler_pic_GCJ='-fPIC'
16701         ;;
16702       esac
16703       ;;
16704
16705     interix[3-9]*)
16706       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16707       # Instead, we relocate shared libraries at runtime.
16708       ;;
16709
16710     msdosdjgpp*)
16711       # Just because we use GCC doesn't mean we suddenly get shared libraries
16712       # on systems that don't support them.
16713       lt_prog_compiler_can_build_shared_GCJ=no
16714       enable_shared=no
16715       ;;
16716
16717     *nto* | *qnx*)
16718       # QNX uses GNU C++, but need to define -shared option too, otherwise
16719       # it will coredump.
16720       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16721       ;;
16722
16723     sysv4*MP*)
16724       if test -d /usr/nec; then
16725         lt_prog_compiler_pic_GCJ=-Kconform_pic
16726       fi
16727       ;;
16728
16729     *)
16730       lt_prog_compiler_pic_GCJ='-fPIC'
16731       ;;
16732     esac
16733   else
16734     # PORTME Check for flag to pass linker flags through the system compiler.
16735     case $host_os in
16736     aix*)
16737       lt_prog_compiler_wl_GCJ='-Wl,'
16738       if test "$host_cpu" = ia64; then
16739         # AIX 5 now supports IA64 processor
16740         lt_prog_compiler_static_GCJ='-Bstatic'
16741       else
16742         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16743       fi
16744       ;;
16745
16746     mingw* | cygwin* | pw32* | os2* | cegcc*)
16747       # This hack is so that the source file can tell whether it is being
16748       # built for inclusion in a dll (and should export symbols for example).
16749
16750       ;;
16751
16752     hpux9* | hpux10* | hpux11*)
16753       lt_prog_compiler_wl_GCJ='-Wl,'
16754       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16755       # not for PA HP-UX.
16756       case $host_cpu in
16757       hppa*64*|ia64*)
16758         # +Z the default
16759         ;;
16760       *)
16761         lt_prog_compiler_pic_GCJ='+Z'
16762         ;;
16763       esac
16764       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16765       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16766       ;;
16767
16768     irix5* | irix6* | nonstopux*)
16769       lt_prog_compiler_wl_GCJ='-Wl,'
16770       # PIC (with -KPIC) is the default.
16771       lt_prog_compiler_static_GCJ='-non_shared'
16772       ;;
16773
16774     linux* | k*bsd*-gnu | kopensolaris*-gnu)
16775       case $cc_basename in
16776       # old Intel for x86_64 which still supported -KPIC.
16777       ecc*)
16778         lt_prog_compiler_wl_GCJ='-Wl,'
16779         lt_prog_compiler_pic_GCJ='-KPIC'
16780         lt_prog_compiler_static_GCJ='-static'
16781         ;;
16782       # icc used to be incompatible with GCC.
16783       # ICC 10 doesn't accept -KPIC any more.
16784       icc* | ifort*)
16785         lt_prog_compiler_wl_GCJ='-Wl,'
16786         lt_prog_compiler_pic_GCJ='-fPIC'
16787         lt_prog_compiler_static_GCJ='-static'
16788         ;;
16789       # Lahey Fortran 8.1.
16790       lf95*)
16791         lt_prog_compiler_wl_GCJ='-Wl,'
16792         lt_prog_compiler_pic_GCJ='--shared'
16793         lt_prog_compiler_static_GCJ='--static'
16794         ;;
16795       pgcc* | pgf77* | pgf90* | pgf95*)
16796         # Portland Group compilers (*not* the Pentium gcc compiler,
16797         # which looks to be a dead project)
16798         lt_prog_compiler_wl_GCJ='-Wl,'
16799         lt_prog_compiler_pic_GCJ='-fpic'
16800         lt_prog_compiler_static_GCJ='-Bstatic'
16801         ;;
16802       ccc*)
16803         lt_prog_compiler_wl_GCJ='-Wl,'
16804         # All Alpha code is PIC.
16805         lt_prog_compiler_static_GCJ='-non_shared'
16806         ;;
16807       xl*)
16808         # IBM XL C 8.0/Fortran 10.1 on PPC
16809         lt_prog_compiler_wl_GCJ='-Wl,'
16810         lt_prog_compiler_pic_GCJ='-qpic'
16811         lt_prog_compiler_static_GCJ='-qstaticlink'
16812         ;;
16813       *)
16814         case `$CC -V 2>&1 | sed 5q` in
16815         *Sun\ C*)
16816           # Sun C 5.9
16817           lt_prog_compiler_pic_GCJ='-KPIC'
16818           lt_prog_compiler_static_GCJ='-Bstatic'
16819           lt_prog_compiler_wl_GCJ='-Wl,'
16820           ;;
16821         *Sun\ F*)
16822           # Sun Fortran 8.3 passes all unrecognized flags to the linker
16823           lt_prog_compiler_pic_GCJ='-KPIC'
16824           lt_prog_compiler_static_GCJ='-Bstatic'
16825           lt_prog_compiler_wl_GCJ=''
16826           ;;
16827         esac
16828         ;;
16829       esac
16830       ;;
16831
16832     newsos6)
16833       lt_prog_compiler_pic_GCJ='-KPIC'
16834       lt_prog_compiler_static_GCJ='-Bstatic'
16835       ;;
16836
16837     *nto* | *qnx*)
16838       # QNX uses GNU C++, but need to define -shared option too, otherwise
16839       # it will coredump.
16840       lt_prog_compiler_pic_GCJ='-fPIC -shared'
16841       ;;
16842
16843     osf3* | osf4* | osf5*)
16844       lt_prog_compiler_wl_GCJ='-Wl,'
16845       # All OSF/1 code is PIC.
16846       lt_prog_compiler_static_GCJ='-non_shared'
16847       ;;
16848
16849     rdos*)
16850       lt_prog_compiler_static_GCJ='-non_shared'
16851       ;;
16852
16853     solaris*)
16854       lt_prog_compiler_pic_GCJ='-KPIC'
16855       lt_prog_compiler_static_GCJ='-Bstatic'
16856       case $cc_basename in
16857       f77* | f90* | f95*)
16858         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16859       *)
16860         lt_prog_compiler_wl_GCJ='-Wl,';;
16861       esac
16862       ;;
16863
16864     sunos4*)
16865       lt_prog_compiler_wl_GCJ='-Qoption ld '
16866       lt_prog_compiler_pic_GCJ='-PIC'
16867       lt_prog_compiler_static_GCJ='-Bstatic'
16868       ;;
16869
16870     sysv4 | sysv4.2uw2* | sysv4.3*)
16871       lt_prog_compiler_wl_GCJ='-Wl,'
16872       lt_prog_compiler_pic_GCJ='-KPIC'
16873       lt_prog_compiler_static_GCJ='-Bstatic'
16874       ;;
16875
16876     sysv4*MP*)
16877       if test -d /usr/nec ;then
16878         lt_prog_compiler_pic_GCJ='-Kconform_pic'
16879         lt_prog_compiler_static_GCJ='-Bstatic'
16880       fi
16881       ;;
16882
16883     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16884       lt_prog_compiler_wl_GCJ='-Wl,'
16885       lt_prog_compiler_pic_GCJ='-KPIC'
16886       lt_prog_compiler_static_GCJ='-Bstatic'
16887       ;;
16888
16889     unicos*)
16890       lt_prog_compiler_wl_GCJ='-Wl,'
16891       lt_prog_compiler_can_build_shared_GCJ=no
16892       ;;
16893
16894     uts4*)
16895       lt_prog_compiler_pic_GCJ='-pic'
16896       lt_prog_compiler_static_GCJ='-Bstatic'
16897       ;;
16898
16899     *)
16900       lt_prog_compiler_can_build_shared_GCJ=no
16901       ;;
16902     esac
16903   fi
16904
16905 case $host_os in
16906   # For platforms which do not support PIC, -DPIC is meaningless:
16907   *djgpp*)
16908     lt_prog_compiler_pic_GCJ=
16909     ;;
16910   *)
16911     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16912     ;;
16913 esac
16914 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16915 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16916
16917
16918
16919 #
16920 # Check to make sure the PIC flag actually works.
16921 #
16922 if test -n "$lt_prog_compiler_pic_GCJ"; then
16923   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16924 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16925 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16926   echo $ECHO_N "(cached) $ECHO_C" >&6
16927 else
16928   lt_cv_prog_compiler_pic_works_GCJ=no
16929    ac_outfile=conftest.$ac_objext
16930    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16931    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16932    # Insert the option either (1) after the last *FLAGS variable, or
16933    # (2) before a word containing "conftest.", or (3) at the end.
16934    # Note that $ac_compile itself does not contain backslashes and begins
16935    # with a dollar sign (not a hyphen), so the echo should work correctly.
16936    # The option is referenced via a variable to avoid confusing sed.
16937    lt_compile=`echo "$ac_compile" | $SED \
16938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16940    -e 's:$: $lt_compiler_flag:'`
16941    (eval echo "\"\$as_me:16941: $lt_compile\"" >&5)
16942    (eval "$lt_compile" 2>conftest.err)
16943    ac_status=$?
16944    cat conftest.err >&5
16945    echo "$as_me:16945: \$? = $ac_status" >&5
16946    if (exit $ac_status) && test -s "$ac_outfile"; then
16947      # The compiler can only warn and ignore the option if not recognized
16948      # So say no if there are warnings other than the usual output.
16949      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16950      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16951      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16952        lt_cv_prog_compiler_pic_works_GCJ=yes
16953      fi
16954    fi
16955    $RM conftest*
16956
16957 fi
16958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16959 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16960
16961 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16962     case $lt_prog_compiler_pic_GCJ in
16963      "" | " "*) ;;
16964      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16965      esac
16966 else
16967     lt_prog_compiler_pic_GCJ=
16968      lt_prog_compiler_can_build_shared_GCJ=no
16969 fi
16970
16971 fi
16972
16973
16974
16975 #
16976 # Check to make sure the static flag actually works.
16977 #
16978 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16979 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16980 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16981 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984   lt_cv_prog_compiler_static_works_GCJ=no
16985    save_LDFLAGS="$LDFLAGS"
16986    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16987    echo "$lt_simple_link_test_code" > conftest.$ac_ext
16988    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16989      # The linker can only warn and ignore the option if not recognized
16990      # So say no if there are warnings
16991      if test -s conftest.err; then
16992        # Append any errors to the config.log.
16993        cat conftest.err 1>&5
16994        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16995        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16996        if diff conftest.exp conftest.er2 >/dev/null; then
16997          lt_cv_prog_compiler_static_works_GCJ=yes
16998        fi
16999      else
17000        lt_cv_prog_compiler_static_works_GCJ=yes
17001      fi
17002    fi
17003    $RM -r conftest*
17004    LDFLAGS="$save_LDFLAGS"
17005
17006 fi
17007 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17008 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
17009
17010 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17011     :
17012 else
17013     lt_prog_compiler_static_GCJ=
17014 fi
17015
17016
17017
17018
17019   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17020 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17021 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17022   echo $ECHO_N "(cached) $ECHO_C" >&6
17023 else
17024   lt_cv_prog_compiler_c_o_GCJ=no
17025    $RM -r conftest 2>/dev/null
17026    mkdir conftest
17027    cd conftest
17028    mkdir out
17029    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17030
17031    lt_compiler_flag="-o out/conftest2.$ac_objext"
17032    # Insert the option either (1) after the last *FLAGS variable, or
17033    # (2) before a word containing "conftest.", or (3) at the end.
17034    # Note that $ac_compile itself does not contain backslashes and begins
17035    # with a dollar sign (not a hyphen), so the echo should work correctly.
17036    lt_compile=`echo "$ac_compile" | $SED \
17037    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17038    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17039    -e 's:$: $lt_compiler_flag:'`
17040    (eval echo "\"\$as_me:17040: $lt_compile\"" >&5)
17041    (eval "$lt_compile" 2>out/conftest.err)
17042    ac_status=$?
17043    cat out/conftest.err >&5
17044    echo "$as_me:17044: \$? = $ac_status" >&5
17045    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17046    then
17047      # The compiler can only warn and ignore the option if not recognized
17048      # So say no if there are warnings
17049      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17050      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17051      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17052        lt_cv_prog_compiler_c_o_GCJ=yes
17053      fi
17054    fi
17055    chmod u+w . 2>&5
17056    $RM conftest*
17057    # SGI C++ compiler will create directory out/ii_files/ for
17058    # template instantiation
17059    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17060    $RM out/* && rmdir out
17061    cd ..
17062    $RM -r conftest
17063    $RM conftest*
17064
17065 fi
17066 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17067 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17068
17069
17070
17071   echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17072 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17073 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17074   echo $ECHO_N "(cached) $ECHO_C" >&6
17075 else
17076   lt_cv_prog_compiler_c_o_GCJ=no
17077    $RM -r conftest 2>/dev/null
17078    mkdir conftest
17079    cd conftest
17080    mkdir out
17081    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17082
17083    lt_compiler_flag="-o out/conftest2.$ac_objext"
17084    # Insert the option either (1) after the last *FLAGS variable, or
17085    # (2) before a word containing "conftest.", or (3) at the end.
17086    # Note that $ac_compile itself does not contain backslashes and begins
17087    # with a dollar sign (not a hyphen), so the echo should work correctly.
17088    lt_compile=`echo "$ac_compile" | $SED \
17089    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17090    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17091    -e 's:$: $lt_compiler_flag:'`
17092    (eval echo "\"\$as_me:17092: $lt_compile\"" >&5)
17093    (eval "$lt_compile" 2>out/conftest.err)
17094    ac_status=$?
17095    cat out/conftest.err >&5
17096    echo "$as_me:17096: \$? = $ac_status" >&5
17097    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17098    then
17099      # The compiler can only warn and ignore the option if not recognized
17100      # So say no if there are warnings
17101      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17102      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17103      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17104        lt_cv_prog_compiler_c_o_GCJ=yes
17105      fi
17106    fi
17107    chmod u+w . 2>&5
17108    $RM conftest*
17109    # SGI C++ compiler will create directory out/ii_files/ for
17110    # template instantiation
17111    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17112    $RM out/* && rmdir out
17113    cd ..
17114    $RM -r conftest
17115    $RM conftest*
17116
17117 fi
17118 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17119 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17120
17121
17122
17123
17124 hard_links="nottested"
17125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17126   # do not overwrite the value of need_locks provided by the user
17127   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17129   hard_links=yes
17130   $RM conftest*
17131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17132   touch conftest.a
17133   ln conftest.a conftest.b 2>&5 || hard_links=no
17134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17135   echo "$as_me:$LINENO: result: $hard_links" >&5
17136 echo "${ECHO_T}$hard_links" >&6
17137   if test "$hard_links" = no; then
17138     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17139 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17140     need_locks=warn
17141   fi
17142 else
17143   need_locks=no
17144 fi
17145
17146
17147
17148   echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17149 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17150
17151   runpath_var=
17152   allow_undefined_flag_GCJ=
17153   always_export_symbols_GCJ=no
17154   archive_cmds_GCJ=
17155   archive_expsym_cmds_GCJ=
17156   compiler_needs_object_GCJ=no
17157   enable_shared_with_static_runtimes_GCJ=no
17158   export_dynamic_flag_spec_GCJ=
17159   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17160   hardcode_automatic_GCJ=no
17161   hardcode_direct_GCJ=no
17162   hardcode_direct_absolute_GCJ=no
17163   hardcode_libdir_flag_spec_GCJ=
17164   hardcode_libdir_flag_spec_ld_GCJ=
17165   hardcode_libdir_separator_GCJ=
17166   hardcode_minus_L_GCJ=no
17167   hardcode_shlibpath_var_GCJ=unsupported
17168   inherit_rpath_GCJ=no
17169   link_all_deplibs_GCJ=unknown
17170   module_cmds_GCJ=
17171   module_expsym_cmds_GCJ=
17172   old_archive_from_new_cmds_GCJ=
17173   old_archive_from_expsyms_cmds_GCJ=
17174   thread_safe_flag_spec_GCJ=
17175   whole_archive_flag_spec_GCJ=
17176   # include_expsyms should be a list of space-separated symbols to be *always*
17177   # included in the symbol list
17178   include_expsyms_GCJ=
17179   # exclude_expsyms can be an extended regexp of symbols to exclude
17180   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17181   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17182   # as well as any symbol that contains `d'.
17183   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17184   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17185   # platforms (ab)use it in PIC code, but their linkers get confused if
17186   # the symbol is explicitly referenced.  Since portable code cannot
17187   # rely on this symbol name, it's probably fine to never include it in
17188   # preloaded symbol tables.
17189   # Exclude shared library initialization/finalization symbols.
17190   extract_expsyms_cmds=
17191
17192   case $host_os in
17193   cygwin* | mingw* | pw32* | cegcc*)
17194     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17195     # When not using gcc, we currently assume that we are using
17196     # Microsoft Visual C++.
17197     if test "$GCC" != yes; then
17198       with_gnu_ld=no
17199     fi
17200     ;;
17201   interix*)
17202     # we just hope/assume this is gcc and not c89 (= MSVC++)
17203     with_gnu_ld=yes
17204     ;;
17205   openbsd*)
17206     with_gnu_ld=no
17207     ;;
17208   esac
17209
17210   ld_shlibs_GCJ=yes
17211   if test "$with_gnu_ld" = yes; then
17212     # If archive_cmds runs LD, not CC, wlarc should be empty
17213     wlarc='${wl}'
17214
17215     # Set some defaults for GNU ld with shared library support. These
17216     # are reset later if shared libraries are not supported. Putting them
17217     # here allows them to be overridden if necessary.
17218     runpath_var=LD_RUN_PATH
17219     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17220     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17221     # ancient GNU ld didn't support --whole-archive et. al.
17222     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17223       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17224     else
17225       whole_archive_flag_spec_GCJ=
17226     fi
17227     supports_anon_versioning=no
17228     case `$LD -v 2>&1` in
17229       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17230       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17231       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17232       *\ 2.11.*) ;; # other 2.11 versions
17233       *) supports_anon_versioning=yes ;;
17234     esac
17235
17236     # See if GNU ld supports shared libraries.
17237     case $host_os in
17238     aix[3-9]*)
17239       # On AIX/PPC, the GNU linker is very broken
17240       if test "$host_cpu" != ia64; then
17241         ld_shlibs_GCJ=no
17242         cat <<_LT_EOF 1>&2
17243
17244 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17245 *** to be unable to reliably create shared libraries on AIX.
17246 *** Therefore, libtool is disabling shared libraries support.  If you
17247 *** really care for shared libraries, you may want to modify your PATH
17248 *** so that a non-GNU linker is found, and then restart.
17249
17250 _LT_EOF
17251       fi
17252       ;;
17253
17254     amigaos*)
17255       case $host_cpu in
17256       powerpc)
17257             # see comment about AmigaOS4 .so support
17258             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17259             archive_expsym_cmds_GCJ=''
17260         ;;
17261       m68k)
17262             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)'
17263             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17264             hardcode_minus_L_GCJ=yes
17265         ;;
17266       esac
17267       ;;
17268
17269     beos*)
17270       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17271         allow_undefined_flag_GCJ=unsupported
17272         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17273         # support --undefined.  This deserves some investigation.  FIXME
17274         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275       else
17276         ld_shlibs_GCJ=no
17277       fi
17278       ;;
17279
17280     cygwin* | mingw* | pw32* | cegcc*)
17281       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17282       # as there is no search path for DLLs.
17283       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17284       allow_undefined_flag_GCJ=unsupported
17285       always_export_symbols_GCJ=no
17286       enable_shared_with_static_runtimes_GCJ=yes
17287       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17288
17289       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17290         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17291         # If the export-symbols file already is a .def file (1st line
17292         # is EXPORTS), use it as is; otherwise, prepend...
17293         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17294           cp $export_symbols $output_objdir/$soname.def;
17295         else
17296           echo EXPORTS > $output_objdir/$soname.def;
17297           cat $export_symbols >> $output_objdir/$soname.def;
17298         fi~
17299         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17300       else
17301         ld_shlibs_GCJ=no
17302       fi
17303       ;;
17304
17305     interix[3-9]*)
17306       hardcode_direct_GCJ=no
17307       hardcode_shlibpath_var_GCJ=no
17308       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17309       export_dynamic_flag_spec_GCJ='${wl}-E'
17310       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17311       # Instead, shared libraries are loaded at an image base (0x10000000 by
17312       # default) and relocated if they conflict, which is a slow very memory
17313       # consuming and fragmenting process.  To avoid this, we pick a random,
17314       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17315       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17316       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'
17317       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'
17318       ;;
17319
17320     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17321       tmp_diet=no
17322       if test "$host_os" = linux-dietlibc; then
17323         case $cc_basename in
17324           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
17325         esac
17326       fi
17327       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17328          && test "$tmp_diet" = no
17329       then
17330         tmp_addflag=
17331         tmp_sharedflag='-shared'
17332         case $cc_basename,$host_cpu in
17333         pgcc*)                          # Portland Group C compiler
17334           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'
17335           tmp_addflag=' $pic_flag'
17336           ;;
17337         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17338           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'
17339           tmp_addflag=' $pic_flag -Mnomain' ;;
17340         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
17341           tmp_addflag=' -i_dynamic' ;;
17342         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17343           tmp_addflag=' -i_dynamic -nofor_main' ;;
17344         ifc* | ifort*)                  # Intel Fortran compiler
17345           tmp_addflag=' -nofor_main' ;;
17346         lf95*)                          # Lahey Fortran 8.1
17347           whole_archive_flag_spec_GCJ=
17348           tmp_sharedflag='--shared' ;;
17349         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
17350           tmp_sharedflag='-qmkshrobj'
17351           tmp_addflag= ;;
17352         esac
17353         case `$CC -V 2>&1 | sed 5q` in
17354         *Sun\ C*)                       # Sun C 5.9
17355           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'
17356           compiler_needs_object_GCJ=yes
17357           tmp_sharedflag='-G' ;;
17358         *Sun\ F*)                       # Sun Fortran 8.3
17359           tmp_sharedflag='-G' ;;
17360         esac
17361         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17362
17363         if test "x$supports_anon_versioning" = xyes; then
17364           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17365             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17366             echo "local: *; };" >> $output_objdir/$libname.ver~
17367             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17368         fi
17369
17370         case $cc_basename in
17371         xlf*)
17372           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17373           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17374           hardcode_libdir_flag_spec_GCJ=
17375           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17376           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17377           if test "x$supports_anon_versioning" = xyes; then
17378             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17379               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17380               echo "local: *; };" >> $output_objdir/$libname.ver~
17381               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17382           fi
17383           ;;
17384         esac
17385       else
17386         ld_shlibs_GCJ=no
17387       fi
17388       ;;
17389
17390     netbsd*)
17391       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17392         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17393         wlarc=
17394       else
17395         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17396         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17397       fi
17398       ;;
17399
17400     solaris*)
17401       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17402         ld_shlibs_GCJ=no
17403         cat <<_LT_EOF 1>&2
17404
17405 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17406 *** create shared libraries on Solaris systems.  Therefore, libtool
17407 *** is disabling shared libraries support.  We urge you to upgrade GNU
17408 *** binutils to release 2.9.1 or newer.  Another option is to modify
17409 *** your PATH or compiler configuration so that the native linker is
17410 *** used, and then restart.
17411
17412 _LT_EOF
17413       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17414         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17415         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17416       else
17417         ld_shlibs_GCJ=no
17418       fi
17419       ;;
17420
17421     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17422       case `$LD -v 2>&1` in
17423         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17424         ld_shlibs_GCJ=no
17425         cat <<_LT_EOF 1>&2
17426
17427 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17428 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17429 *** is disabling shared libraries support.  We urge you to upgrade GNU
17430 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17431 *** your PATH or compiler configuration so that the native linker is
17432 *** used, and then restart.
17433
17434 _LT_EOF
17435         ;;
17436         *)
17437           # For security reasons, it is highly recommended that you always
17438           # use absolute paths for naming shared libraries, and exclude the
17439           # DT_RUNPATH tag from executables and libraries.  But doing so
17440           # requires that you compile everything twice, which is a pain.
17441           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17442             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17443             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17444             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17445           else
17446             ld_shlibs_GCJ=no
17447           fi
17448         ;;
17449       esac
17450       ;;
17451
17452     sunos4*)
17453       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17454       wlarc=
17455       hardcode_direct_GCJ=yes
17456       hardcode_shlibpath_var_GCJ=no
17457       ;;
17458
17459     *)
17460       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17461         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17462         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17463       else
17464         ld_shlibs_GCJ=no
17465       fi
17466       ;;
17467     esac
17468
17469     if test "$ld_shlibs_GCJ" = no; then
17470       runpath_var=
17471       hardcode_libdir_flag_spec_GCJ=
17472       export_dynamic_flag_spec_GCJ=
17473       whole_archive_flag_spec_GCJ=
17474     fi
17475   else
17476     # PORTME fill in a description of your system's linker (not GNU ld)
17477     case $host_os in
17478     aix3*)
17479       allow_undefined_flag_GCJ=unsupported
17480       always_export_symbols_GCJ=yes
17481       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'
17482       # Note: this linker hardcodes the directories in LIBPATH if there
17483       # are no directories specified by -L.
17484       hardcode_minus_L_GCJ=yes
17485       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17486         # Neither direct hardcoding nor static linking is supported with a
17487         # broken collect2.
17488         hardcode_direct_GCJ=unsupported
17489       fi
17490       ;;
17491
17492     aix[4-9]*)
17493       if test "$host_cpu" = ia64; then
17494         # On IA64, the linker does run time linking by default, so we don't
17495         # have to do anything special.
17496         aix_use_runtimelinking=no
17497         exp_sym_flag='-Bexport'
17498         no_entry_flag=""
17499       else
17500         # If we're using GNU nm, then we don't want the "-C" option.
17501         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17502         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17503           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'
17504         else
17505           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'
17506         fi
17507         aix_use_runtimelinking=no
17508
17509         # Test if we are trying to use run time linking or normal
17510         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17511         # need to do runtime linking.
17512         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17513           for ld_flag in $LDFLAGS; do
17514           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17515             aix_use_runtimelinking=yes
17516             break
17517           fi
17518           done
17519           ;;
17520         esac
17521
17522         exp_sym_flag='-bexport'
17523         no_entry_flag='-bnoentry'
17524       fi
17525
17526       # When large executables or shared objects are built, AIX ld can
17527       # have problems creating the table of contents.  If linking a library
17528       # or program results in "error TOC overflow" add -mminimal-toc to
17529       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17530       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17531
17532       archive_cmds_GCJ=''
17533       hardcode_direct_GCJ=yes
17534       hardcode_direct_absolute_GCJ=yes
17535       hardcode_libdir_separator_GCJ=':'
17536       link_all_deplibs_GCJ=yes
17537       file_list_spec_GCJ='${wl}-f,'
17538
17539       if test "$GCC" = yes; then
17540         case $host_os in aix4.[012]|aix4.[012].*)
17541         # We only want to do this on AIX 4.2 and lower, the check
17542         # below for broken collect2 doesn't work under 4.3+
17543           collect2name=`${CC} -print-prog-name=collect2`
17544           if test -f "$collect2name" &&
17545            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17546           then
17547           # We have reworked collect2
17548           :
17549           else
17550           # We have old collect2
17551           hardcode_direct_GCJ=unsupported
17552           # It fails to find uninstalled libraries when the uninstalled
17553           # path is not listed in the libpath.  Setting hardcode_minus_L
17554           # to unsupported forces relinking
17555           hardcode_minus_L_GCJ=yes
17556           hardcode_libdir_flag_spec_GCJ='-L$libdir'
17557           hardcode_libdir_separator_GCJ=
17558           fi
17559           ;;
17560         esac
17561         shared_flag='-shared'
17562         if test "$aix_use_runtimelinking" = yes; then
17563           shared_flag="$shared_flag "'${wl}-G'
17564         fi
17565       else
17566         # not using gcc
17567         if test "$host_cpu" = ia64; then
17568         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17569         # chokes on -Wl,-G. The following line is correct:
17570           shared_flag='-G'
17571         else
17572           if test "$aix_use_runtimelinking" = yes; then
17573             shared_flag='${wl}-G'
17574           else
17575             shared_flag='${wl}-bM:SRE'
17576           fi
17577         fi
17578       fi
17579
17580       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17581       # It seems that -bexpall does not export symbols beginning with
17582       # underscore (_), so it is better to generate a list of symbols to export.
17583       always_export_symbols_GCJ=yes
17584       if test "$aix_use_runtimelinking" = yes; then
17585         # Warning - without using the other runtime loading flags (-brtl),
17586         # -berok will link without error, but may produce a broken library.
17587         allow_undefined_flag_GCJ='-berok'
17588         # Determine the default libpath from the value encoded in an
17589         # empty executable.
17590         if test x$gcc_no_link = xyes; then
17591   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17592 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17593    { (exit 1); exit 1; }; }
17594 fi
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h.  */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h.  */
17601
17602 int
17603 main ()
17604 {
17605
17606   ;
17607   return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17612   (eval $ac_link) 2>conftest.er1
17613   ac_status=$?
17614   grep -v '^ *+' conftest.er1 >conftest.err
17615   rm -f conftest.er1
17616   cat conftest.err >&5
17617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618   (exit $ac_status); } &&
17619          { ac_try='test -z "$ac_c_werror_flag"
17620                          || test ! -s conftest.err'
17621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622   (eval $ac_try) 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; } &&
17626          { ac_try='test -s conftest$ac_exeext'
17627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628   (eval $ac_try) 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; }; then
17632
17633 lt_aix_libpath_sed='
17634     /Import File Strings/,/^$/ {
17635         /^0/ {
17636             s/^0  *\(.*\)$/\1/
17637             p
17638         }
17639     }'
17640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17641 # Check for a 64-bit object if we didn't find anything.
17642 if test -z "$aix_libpath"; then
17643   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17644 fi
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649 fi
17650 rm -f conftest.err conftest.$ac_objext \
17651       conftest$ac_exeext conftest.$ac_ext
17652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17653
17654         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17655         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"
17656       else
17657         if test "$host_cpu" = ia64; then
17658           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17659           allow_undefined_flag_GCJ="-z nodefs"
17660           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"
17661         else
17662          # Determine the default libpath from the value encoded in an
17663          # empty executable.
17664          if test x$gcc_no_link = xyes; then
17665   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17667    { (exit 1); exit 1; }; }
17668 fi
17669 cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675
17676 int
17677 main ()
17678 {
17679
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686   (eval $ac_link) 2>conftest.er1
17687   ac_status=$?
17688   grep -v '^ *+' conftest.er1 >conftest.err
17689   rm -f conftest.er1
17690   cat conftest.err >&5
17691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692   (exit $ac_status); } &&
17693          { ac_try='test -z "$ac_c_werror_flag"
17694                          || test ! -s conftest.err'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; } &&
17700          { ac_try='test -s conftest$ac_exeext'
17701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702   (eval $ac_try) 2>&5
17703   ac_status=$?
17704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705   (exit $ac_status); }; }; then
17706
17707 lt_aix_libpath_sed='
17708     /Import File Strings/,/^$/ {
17709         /^0/ {
17710             s/^0  *\(.*\)$/\1/
17711             p
17712         }
17713     }'
17714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17715 # Check for a 64-bit object if we didn't find anything.
17716 if test -z "$aix_libpath"; then
17717   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17718 fi
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 fi
17724 rm -f conftest.err conftest.$ac_objext \
17725       conftest$ac_exeext conftest.$ac_ext
17726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17727
17728          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17729           # Warning - without using the other run time loading flags,
17730           # -berok will link without error, but may produce a broken library.
17731           no_undefined_flag_GCJ=' ${wl}-bernotok'
17732           allow_undefined_flag_GCJ=' ${wl}-berok'
17733           # Exported symbols can be pulled into shared objects from archives
17734           whole_archive_flag_spec_GCJ='$convenience'
17735           archive_cmds_need_lc_GCJ=yes
17736           # This is similar to how AIX traditionally builds its shared libraries.
17737           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'
17738         fi
17739       fi
17740       ;;
17741
17742     amigaos*)
17743       case $host_cpu in
17744       powerpc)
17745             # see comment about AmigaOS4 .so support
17746             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17747             archive_expsym_cmds_GCJ=''
17748         ;;
17749       m68k)
17750             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)'
17751             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17752             hardcode_minus_L_GCJ=yes
17753         ;;
17754       esac
17755       ;;
17756
17757     bsdi[45]*)
17758       export_dynamic_flag_spec_GCJ=-rdynamic
17759       ;;
17760
17761     cygwin* | mingw* | pw32* | cegcc*)
17762       # When not using gcc, we currently assume that we are using
17763       # Microsoft Visual C++.
17764       # hardcode_libdir_flag_spec is actually meaningless, as there is
17765       # no search path for DLLs.
17766       hardcode_libdir_flag_spec_GCJ=' '
17767       allow_undefined_flag_GCJ=unsupported
17768       # Tell ltmain to make .lib files, not .a files.
17769       libext=lib
17770       # Tell ltmain to make .dll files, not .so files.
17771       shrext_cmds=".dll"
17772       # FIXME: Setting linknames here is a bad hack.
17773       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17774       # The linker will automatically build a .lib file if we build a DLL.
17775       old_archive_from_new_cmds_GCJ='true'
17776       # FIXME: Should let the user specify the lib program.
17777       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17778       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17779       enable_shared_with_static_runtimes_GCJ=yes
17780       ;;
17781
17782     darwin* | rhapsody*)
17783
17784
17785   archive_cmds_need_lc_GCJ=no
17786   hardcode_direct_GCJ=no
17787   hardcode_automatic_GCJ=yes
17788   hardcode_shlibpath_var_GCJ=unsupported
17789   whole_archive_flag_spec_GCJ=''
17790   link_all_deplibs_GCJ=yes
17791   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17792   case $cc_basename in
17793      ifort*) _lt_dar_can_shared=yes ;;
17794      *) _lt_dar_can_shared=$GCC ;;
17795   esac
17796   if test "$_lt_dar_can_shared" = "yes"; then
17797     output_verbose_link_cmd=echo
17798     archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17799     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17800     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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17801     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${_lt_dar_export_syms}${_lt_dsymutil}"
17802
17803   else
17804   ld_shlibs_GCJ=no
17805   fi
17806
17807       ;;
17808
17809     dgux*)
17810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17811       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17812       hardcode_shlibpath_var_GCJ=no
17813       ;;
17814
17815     freebsd1*)
17816       ld_shlibs_GCJ=no
17817       ;;
17818
17819     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17820     # support.  Future versions do this automatically, but an explicit c++rt0.o
17821     # does not break anything, and helps significantly (at the cost of a little
17822     # extra space).
17823     freebsd2.2*)
17824       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17825       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17826       hardcode_direct_GCJ=yes
17827       hardcode_shlibpath_var_GCJ=no
17828       ;;
17829
17830     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17831     freebsd2*)
17832       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17833       hardcode_direct_GCJ=yes
17834       hardcode_minus_L_GCJ=yes
17835       hardcode_shlibpath_var_GCJ=no
17836       ;;
17837
17838     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17839     freebsd* | dragonfly*)
17840       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17841       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17842       hardcode_direct_GCJ=yes
17843       hardcode_shlibpath_var_GCJ=no
17844       ;;
17845
17846     hpux9*)
17847       if test "$GCC" = yes; then
17848         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'
17849       else
17850         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'
17851       fi
17852       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17853       hardcode_libdir_separator_GCJ=:
17854       hardcode_direct_GCJ=yes
17855
17856       # hardcode_minus_L: Not really in the search PATH,
17857       # but as the default location of the library.
17858       hardcode_minus_L_GCJ=yes
17859       export_dynamic_flag_spec_GCJ='${wl}-E'
17860       ;;
17861
17862     hpux10*)
17863       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17864         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17865       else
17866         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17867       fi
17868       if test "$with_gnu_ld" = no; then
17869         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17870         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17871         hardcode_libdir_separator_GCJ=:
17872         hardcode_direct_GCJ=yes
17873         hardcode_direct_absolute_GCJ=yes
17874         export_dynamic_flag_spec_GCJ='${wl}-E'
17875         # hardcode_minus_L: Not really in the search PATH,
17876         # but as the default location of the library.
17877         hardcode_minus_L_GCJ=yes
17878       fi
17879       ;;
17880
17881     hpux11*)
17882       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17883         case $host_cpu in
17884         hppa*64*)
17885           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17886           ;;
17887         ia64*)
17888           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17889           ;;
17890         *)
17891           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17892           ;;
17893         esac
17894       else
17895         case $host_cpu in
17896         hppa*64*)
17897           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17898           ;;
17899         ia64*)
17900           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17901           ;;
17902         *)
17903           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17904           ;;
17905         esac
17906       fi
17907       if test "$with_gnu_ld" = no; then
17908         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17909         hardcode_libdir_separator_GCJ=:
17910
17911         case $host_cpu in
17912         hppa*64*|ia64*)
17913           hardcode_direct_GCJ=no
17914           hardcode_shlibpath_var_GCJ=no
17915           ;;
17916         *)
17917           hardcode_direct_GCJ=yes
17918           hardcode_direct_absolute_GCJ=yes
17919           export_dynamic_flag_spec_GCJ='${wl}-E'
17920
17921           # hardcode_minus_L: Not really in the search PATH,
17922           # but as the default location of the library.
17923           hardcode_minus_L_GCJ=yes
17924           ;;
17925         esac
17926       fi
17927       ;;
17928
17929     irix5* | irix6* | nonstopux*)
17930       if test "$GCC" = yes; then
17931         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'
17932         # Try to use the -exported_symbol ld option, if it does not
17933         # work, assume that -exports_file does not work either and
17934         # implicitly export all symbols.
17935         save_LDFLAGS="$LDFLAGS"
17936         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17937         if test x$gcc_no_link = xyes; then
17938   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17939 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17940    { (exit 1); exit 1; }; }
17941 fi
17942 cat >conftest.$ac_ext <<_ACEOF
17943 int foo(void) {}
17944 _ACEOF
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947   (eval $ac_link) 2>conftest.er1
17948   ac_status=$?
17949   grep -v '^ *+' conftest.er1 >conftest.err
17950   rm -f conftest.er1
17951   cat conftest.err >&5
17952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953   (exit $ac_status); } &&
17954          { ac_try='test -z "$ac_c_werror_flag"
17955                          || test ! -s conftest.err'
17956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957   (eval $ac_try) 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; } &&
17961          { ac_try='test -s conftest$ac_exeext'
17962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963   (eval $ac_try) 2>&5
17964   ac_status=$?
17965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966   (exit $ac_status); }; }; then
17967   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'
17968
17969 else
17970   echo "$as_me: failed program was:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17972
17973 fi
17974 rm -f conftest.err conftest.$ac_objext \
17975       conftest$ac_exeext conftest.$ac_ext
17976         LDFLAGS="$save_LDFLAGS"
17977       else
17978         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'
17979         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'
17980       fi
17981       archive_cmds_need_lc_GCJ='no'
17982       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17983       hardcode_libdir_separator_GCJ=:
17984       inherit_rpath_GCJ=yes
17985       link_all_deplibs_GCJ=yes
17986       ;;
17987
17988     netbsd*)
17989       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17990         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17991       else
17992         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17993       fi
17994       hardcode_libdir_flag_spec_GCJ='-R$libdir'
17995       hardcode_direct_GCJ=yes
17996       hardcode_shlibpath_var_GCJ=no
17997       ;;
17998
17999     newsos6)
18000       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18001       hardcode_direct_GCJ=yes
18002       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18003       hardcode_libdir_separator_GCJ=:
18004       hardcode_shlibpath_var_GCJ=no
18005       ;;
18006
18007     *nto* | *qnx*)
18008       ;;
18009
18010     openbsd*)
18011       if test -f /usr/libexec/ld.so; then
18012         hardcode_direct_GCJ=yes
18013         hardcode_shlibpath_var_GCJ=no
18014         hardcode_direct_absolute_GCJ=yes
18015         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18016           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18017           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18018           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18019           export_dynamic_flag_spec_GCJ='${wl}-E'
18020         else
18021           case $host_os in
18022            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18023              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18024              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18025              ;;
18026            *)
18027              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18028              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18029              ;;
18030           esac
18031         fi
18032       else
18033         ld_shlibs_GCJ=no
18034       fi
18035       ;;
18036
18037     os2*)
18038       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18039       hardcode_minus_L_GCJ=yes
18040       allow_undefined_flag_GCJ=unsupported
18041       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'
18042       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18043       ;;
18044
18045     osf3*)
18046       if test "$GCC" = yes; then
18047         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18048         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'
18049       else
18050         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18051         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'
18052       fi
18053       archive_cmds_need_lc_GCJ='no'
18054       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18055       hardcode_libdir_separator_GCJ=:
18056       ;;
18057
18058     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18059       if test "$GCC" = yes; then
18060         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18061         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'
18062         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18063       else
18064         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18065         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'
18066         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~
18067         $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'
18068
18069         # Both c and cxx compiler support -rpath directly
18070         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18071       fi
18072       archive_cmds_need_lc_GCJ='no'
18073       hardcode_libdir_separator_GCJ=:
18074       ;;
18075
18076     solaris*)
18077       no_undefined_flag_GCJ=' -z defs'
18078       if test "$GCC" = yes; then
18079         wlarc='${wl}'
18080         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18082           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18083       else
18084         case `$CC -V 2>&1` in
18085         *"Compilers 5.0"*)
18086           wlarc=''
18087           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18088           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18089           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18090           ;;
18091         *)
18092           wlarc='${wl}'
18093           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18094           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18095           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18096           ;;
18097         esac
18098       fi
18099       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18100       hardcode_shlibpath_var_GCJ=no
18101       case $host_os in
18102       solaris2.[0-5] | solaris2.[0-5].*) ;;
18103       *)
18104         # The compiler driver will combine and reorder linker options,
18105         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18106         # but is careful enough not to reorder.
18107         # Supported since Solaris 2.6 (maybe 2.5.1?)
18108         if test "$GCC" = yes; then
18109           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18110         else
18111           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18112         fi
18113         ;;
18114       esac
18115       link_all_deplibs_GCJ=yes
18116       ;;
18117
18118     sunos4*)
18119       if test "x$host_vendor" = xsequent; then
18120         # Use $CC to link under sequent, because it throws in some extra .o
18121         # files that make .init and .fini sections work.
18122         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18123       else
18124         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18125       fi
18126       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18127       hardcode_direct_GCJ=yes
18128       hardcode_minus_L_GCJ=yes
18129       hardcode_shlibpath_var_GCJ=no
18130       ;;
18131
18132     sysv4)
18133       case $host_vendor in
18134         sni)
18135           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18136           hardcode_direct_GCJ=yes # is this really true???
18137         ;;
18138         siemens)
18139           ## LD is ld it makes a PLAMLIB
18140           ## CC just makes a GrossModule.
18141           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18142           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18143           hardcode_direct_GCJ=no
18144         ;;
18145         motorola)
18146           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18148         ;;
18149       esac
18150       runpath_var='LD_RUN_PATH'
18151       hardcode_shlibpath_var_GCJ=no
18152       ;;
18153
18154     sysv4.3*)
18155       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18156       hardcode_shlibpath_var_GCJ=no
18157       export_dynamic_flag_spec_GCJ='-Bexport'
18158       ;;
18159
18160     sysv4*MP*)
18161       if test -d /usr/nec; then
18162         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18163         hardcode_shlibpath_var_GCJ=no
18164         runpath_var=LD_RUN_PATH
18165         hardcode_runpath_var=yes
18166         ld_shlibs_GCJ=yes
18167       fi
18168       ;;
18169
18170     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18171       no_undefined_flag_GCJ='${wl}-z,text'
18172       archive_cmds_need_lc_GCJ=no
18173       hardcode_shlibpath_var_GCJ=no
18174       runpath_var='LD_RUN_PATH'
18175
18176       if test "$GCC" = yes; then
18177         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18179       else
18180         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18181         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182       fi
18183       ;;
18184
18185     sysv5* | sco3.2v5* | sco5v6*)
18186       # Note: We can NOT use -z defs as we might desire, because we do not
18187       # link with -lc, and that would cause any symbols used from libc to
18188       # always be unresolved, which means just about no library would
18189       # ever link correctly.  If we're not using GNU ld we use -z text
18190       # though, which does catch some bad symbols but isn't as heavy-handed
18191       # as -z defs.
18192       no_undefined_flag_GCJ='${wl}-z,text'
18193       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18194       archive_cmds_need_lc_GCJ=no
18195       hardcode_shlibpath_var_GCJ=no
18196       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18197       hardcode_libdir_separator_GCJ=':'
18198       link_all_deplibs_GCJ=yes
18199       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18200       runpath_var='LD_RUN_PATH'
18201
18202       if test "$GCC" = yes; then
18203         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18204         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18205       else
18206         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18207         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18208       fi
18209       ;;
18210
18211     uts4*)
18212       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18213       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18214       hardcode_shlibpath_var_GCJ=no
18215       ;;
18216
18217     *)
18218       ld_shlibs_GCJ=no
18219       ;;
18220     esac
18221
18222     if test x$host_vendor = xsni; then
18223       case $host in
18224       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18225         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18226         ;;
18227       esac
18228     fi
18229   fi
18230
18231 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18232 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18233 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18234
18235 with_gnu_ld_GCJ=$with_gnu_ld
18236
18237
18238
18239
18240
18241
18242 #
18243 # Do we need to explicitly link libc?
18244 #
18245 case "x$archive_cmds_need_lc_GCJ" in
18246 x|xyes)
18247   # Assume -lc should be added
18248   archive_cmds_need_lc_GCJ=yes
18249
18250   if test "$enable_shared" = yes && test "$GCC" = yes; then
18251     case $archive_cmds_GCJ in
18252     *'~'*)
18253       # FIXME: we may have to deal with multi-command sequences.
18254       ;;
18255     '$CC '*)
18256       # Test whether the compiler implicitly links with -lc since on some
18257       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18258       # to ld, don't add -lc before -lgcc.
18259       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18260 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18261 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then
18262   echo $ECHO_N "(cached) $ECHO_C" >&6
18263 else
18264   $RM conftest*
18265         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18266
18267         if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18268   (eval $ac_compile) 2>&5
18269   ac_status=$?
18270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271   (exit $ac_status); } 2>conftest.err; then
18272           soname=conftest
18273           lib=conftest
18274           libobjs=conftest.$ac_objext
18275           deplibs=
18276           wl=$lt_prog_compiler_wl_GCJ
18277           pic_flag=$lt_prog_compiler_pic_GCJ
18278           compiler_flags=-v
18279           linker_flags=-v
18280           verstring=
18281           output_objdir=.
18282           libname=conftest
18283           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18284           allow_undefined_flag_GCJ=
18285           if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18286   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18287   ac_status=$?
18288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289   (exit $ac_status); }
18290           then
18291             lt_cv_archive_cmds_need_lc_GCJ=no
18292           else
18293             lt_cv_archive_cmds_need_lc_GCJ=yes
18294           fi
18295           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18296         else
18297           cat conftest.err 1>&5
18298         fi
18299         $RM conftest*
18300
18301 fi
18302 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18303 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc_GCJ" >&6
18304       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18305       ;;
18306     esac
18307   fi
18308   ;;
18309 esac
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374   echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18375 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18376 hardcode_action_GCJ=
18377 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18378    test -n "$runpath_var_GCJ" ||
18379    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18380
18381   # We can hardcode non-existent directories.
18382   if test "$hardcode_direct_GCJ" != no &&
18383      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18384      # have to relink, otherwise we might link with an installed library
18385      # when we should be linking with a yet-to-be-installed one
18386      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18387      test "$hardcode_minus_L_GCJ" != no; then
18388     # Linking always hardcodes the temporary library directory.
18389     hardcode_action_GCJ=relink
18390   else
18391     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18392     hardcode_action_GCJ=immediate
18393   fi
18394 else
18395   # We cannot hardcode anything, or else we can only hardcode existing
18396   # directories.
18397   hardcode_action_GCJ=unsupported
18398 fi
18399 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18400 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18401
18402 if test "$hardcode_action_GCJ" = relink ||
18403    test "$inherit_rpath_GCJ" = yes; then
18404   # Fast installation is not supported
18405   enable_fast_install=no
18406 elif test "$shlibpath_overrides_runpath" = yes ||
18407      test "$enable_shared" = no; then
18408   # Fast installation is not necessary
18409   enable_fast_install=needless
18410 fi
18411
18412
18413
18414
18415
18416
18417
18418 fi
18419
18420 compiler_GCJ=${GCJ-gcj}
18421 ac_ext=c
18422 ac_cpp='$CPP $CPPFLAGS'
18423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18426
18427
18428 if test "x$CC" != xcc; then
18429   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18430 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18431 else
18432   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18433 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18434 fi
18435 set dummy $CC; ac_cc=`echo $2 |
18436                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18437 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446
18447 int
18448 main ()
18449 {
18450
18451   ;
18452   return 0;
18453 }
18454 _ACEOF
18455 # Make sure it works both with $CC and with simple cc.
18456 # We do the test twice because some compilers refuse to overwrite an
18457 # existing .o file with -o, though they will create one.
18458 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18459 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460   (eval $ac_try) 2>&5
18461   ac_status=$?
18462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463   (exit $ac_status); } &&
18464    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465   (eval $ac_try) 2>&5
18466   ac_status=$?
18467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468   (exit $ac_status); };
18469 then
18470   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18471   if test "x$CC" != xcc; then
18472     # Test first that cc exists at all.
18473     if { ac_try='cc -c conftest.$ac_ext >&5'
18474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475   (eval $ac_try) 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); }; }; then
18479       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18480       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481   (eval $ac_try) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); } &&
18485          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486   (eval $ac_try) 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); };
18490       then
18491         # cc works too.
18492         :
18493       else
18494         # cc exists but doesn't like -o.
18495         eval ac_cv_prog_cc_${ac_cc}_c_o=no
18496       fi
18497     fi
18498   fi
18499 else
18500   eval ac_cv_prog_cc_${ac_cc}_c_o=no
18501 fi
18502 rm -f conftest*
18503
18504 fi
18505 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18506   echo "$as_me:$LINENO: result: yes" >&5
18507 echo "${ECHO_T}yes" >&6
18508 else
18509   echo "$as_me:$LINENO: result: no" >&5
18510 echo "${ECHO_T}no" >&6
18511
18512 cat >>confdefs.h <<\_ACEOF
18513 #define NO_MINUS_C_MINUS_O 1
18514 _ACEOF
18515
18516 fi
18517
18518 # FIXME: we rely on the cache variable name because
18519 # there is no other way.
18520 set dummy $CC
18521 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18522 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18523    # Losing compiler, so override with the script.
18524    # FIXME: It is wrong to rewrite CC.
18525    # But if we don't then we get into trouble of one sort or another.
18526    # A longer-term fix would be to have automake use am__CC in this case,
18527    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18528    CC="$am_aux_dir/compile $CC"
18529 fi
18530
18531
18532
18533
18534 subdirs="$subdirs classpath libltdl"
18535
18536
18537 # The -no-testsuite modules omit the test subdir.
18538
18539
18540 if test -d $srcdir/testsuite; then
18541   TESTSUBDIR_TRUE=
18542   TESTSUBDIR_FALSE='#'
18543 else
18544   TESTSUBDIR_TRUE='#'
18545   TESTSUBDIR_FALSE=
18546 fi
18547
18548
18549 # Should the runtime set system properties by examining the
18550 # environment variable GCJ_PROPERTIES?
18551 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18552 if test "${enable_getenv_properties+set}" = set; then
18553   enableval="$enable_getenv_properties"
18554
18555 fi;
18556
18557 # Whether GCJ_PROPERTIES is used depends on the target.
18558 if test -z "$enable_getenv_properties"; then
18559    enable_getenv_properties=${enable_getenv_properties_default-yes}
18560 fi
18561 if test "$enable_getenv_properties" = no; then
18562
18563 cat >>confdefs.h <<\_ACEOF
18564 #define DISABLE_GETENV_PROPERTIES 1
18565 _ACEOF
18566
18567 fi
18568
18569 # Whether we should use arguments to main()
18570 if test -z "$enable_main_args"; then
18571    enable_main_args=${enable_main_args_default-yes}
18572 fi
18573 if test "$enable_main_args" = no; then
18574
18575 cat >>confdefs.h <<\_ACEOF
18576 #define DISABLE_MAIN_ARGS 1
18577 _ACEOF
18578
18579 fi
18580
18581
18582 # Should we use hashtable-based synchronization?
18583 # Currently works only for Linux X86/ia64
18584 # Typically faster and more space-efficient
18585 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18586 if test "${enable_hash_synchronization+set}" = set; then
18587   enableval="$enable_hash_synchronization"
18588
18589 fi;
18590
18591 if test -z "$enable_hash_synchronization"; then
18592    enable_hash_synchronization=$enable_hash_synchronization_default
18593 fi
18594
18595
18596 install_ecj_jar=no
18597 ECJ_BUILD_JAR=
18598 ECJ_JAR=
18599
18600 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18601 if test "${with_ecj_jar+set}" = set; then
18602   withval="$with_ecj_jar"
18603   ECJ_JAR=$withval
18604 else
18605   if test -f $multi_basedir/ecj.jar; then
18606            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18607            ECJ_JAR='$(jardir)/ecj.jar'
18608            install_ecj_jar=yes
18609          fi
18610 fi;
18611
18612
18613
18614
18615 if test "$ECJ_JAR" != ""; then
18616   BUILD_ECJ1_TRUE=
18617   BUILD_ECJ1_FALSE='#'
18618 else
18619   BUILD_ECJ1_TRUE='#'
18620   BUILD_ECJ1_FALSE=
18621 fi
18622
18623
18624
18625 if test $install_ecj_jar = yes; then
18626   INSTALL_ECJ_JAR_TRUE=
18627   INSTALL_ECJ_JAR_FALSE='#'
18628 else
18629   INSTALL_ECJ_JAR_TRUE='#'
18630   INSTALL_ECJ_JAR_FALSE=
18631 fi
18632
18633
18634
18635 # Check whether --with-java-home or --without-java-home was given.
18636 if test "${with_java_home+set}" = set; then
18637   withval="$with_java_home"
18638   JAVA_HOME="${withval}"
18639 else
18640   JAVA_HOME=""
18641 fi;
18642
18643
18644 if test ! -z "$JAVA_HOME"; then
18645   JAVA_HOME_SET_TRUE=
18646   JAVA_HOME_SET_FALSE='#'
18647 else
18648   JAVA_HOME_SET_TRUE='#'
18649   JAVA_HOME_SET_FALSE=
18650 fi
18651
18652
18653
18654 suppress_libgcj_bc=no
18655 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18656 if test "${enable_libgcj_bc+set}" = set; then
18657   enableval="$enable_libgcj_bc"
18658   if test "$enable_libgcj_bc" = "no"; then
18659      suppress_libgcj_bc=yes
18660    fi
18661 fi;
18662
18663
18664 if test "$suppress_libgcj_bc" = "yes"; then
18665   SUPPRESS_LIBGCJ_BC_TRUE=
18666   SUPPRESS_LIBGCJ_BC_FALSE='#'
18667 else
18668   SUPPRESS_LIBGCJ_BC_TRUE='#'
18669   SUPPRESS_LIBGCJ_BC_FALSE=
18670 fi
18671
18672
18673 build_libgcj_reduced_reflection=no
18674 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18675 if test "${enable_reduced_reflection+set}" = set; then
18676   enableval="$enable_reduced_reflection"
18677   if test "$enable_reduced_reflection" = "yes"; then
18678      build_libgcj_reduced_reflection=yes
18679    fi
18680 fi;
18681
18682
18683 if test "$build_libgcj_reduced_reflection" = "yes"; then
18684   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18685   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18686 else
18687   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18688   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18689 fi
18690
18691
18692 # What is the native OS API for MinGW?
18693
18694 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18695 if test "${with_win32_nlsapi+set}" = set; then
18696   withval="$with_win32_nlsapi"
18697   case "${withval}" in
18698   ansi) with_win32_nlsapi=ansi ;;
18699   unicows) with_win32_nlsapi=unicows ;;
18700   unicode) with_win32_nlsapi=unicode ;;
18701   *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18702 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18703    { (exit 1); exit 1; }; } ;;
18704 esac
18705 else
18706   with_win32_nlsapi=ansi
18707 fi;
18708
18709 case "${with_win32_nlsapi}" in
18710   unicows | unicode)
18711
18712 cat >>confdefs.h <<\_ACEOF
18713 #define MINGW_LIBGCJ_UNICODE 1
18714 _ACEOF
18715
18716     ;;
18717 esac
18718
18719 # configure.host sets slow_pthread_self if the synchronization code should
18720 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18721 if test "${slow_pthread_self}" = "yes"; then
18722
18723 cat >>confdefs.h <<\_ACEOF
18724 #define SLOW_PTHREAD_SELF 1
18725 _ACEOF
18726
18727 fi
18728
18729 # Check for gc debugging.  This option is handled both here and in the GC.
18730 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18731 if test "${enable_gc_debug+set}" = set; then
18732   enableval="$enable_gc_debug"
18733    if test "$enable_gc_debug" = "yes"; then
18734
18735 cat >>confdefs.h <<\_ACEOF
18736 #define LIBGCJ_GC_DEBUG 1
18737 _ACEOF
18738
18739   fi
18740 fi;
18741
18742 # See if the user has the interpreter included.
18743 # Check whether --enable-interpreter or --disable-interpreter was given.
18744 if test "${enable_interpreter+set}" = set; then
18745   enableval="$enable_interpreter"
18746   if test "$enable_interpreter" = yes; then
18747     # This can also be set in configure.host.
18748     libgcj_interpreter=yes
18749   elif test "$enable_interpreter" = no; then
18750     libgcj_interpreter=no
18751   fi
18752 fi;
18753
18754 if test "$libgcj_interpreter" = yes; then
18755
18756 cat >>confdefs.h <<\_ACEOF
18757 #define INTERPRETER 1
18758 _ACEOF
18759
18760 fi
18761 INTERPRETER="$libgcj_interpreter"
18762
18763
18764
18765 if test "$libgcj_interpreter" = yes; then
18766   INTERPRETER_TRUE=
18767   INTERPRETER_FALSE='#'
18768 else
18769   INTERPRETER_TRUE='#'
18770   INTERPRETER_FALSE=
18771 fi
18772
18773
18774 echo "$as_me:$LINENO: checking for exception model to use" >&5
18775 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18776 ac_ext=cc
18777 ac_cpp='$CXXCPP $CPPFLAGS'
18778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18781
18782 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18783 if test "${enable_sjlj_exceptions+set}" = set; then
18784   enableval="$enable_sjlj_exceptions"
18785   :
18786 else
18787   cat > conftest.$ac_ext << EOF
18788 #line 18788 "configure"
18789 struct S { ~S(); };
18790 void bar();
18791 void foo()
18792 {
18793   S s;
18794   bar();
18795 }
18796 EOF
18797 old_CXXFLAGS="$CXXFLAGS"
18798 CXXFLAGS=-S
18799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18800   (eval $ac_compile) 2>&5
18801   ac_status=$?
18802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803   (exit $ac_status); }; then
18804   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18805     enable_sjlj_exceptions=yes
18806   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18807     enable_sjlj_exceptions=no
18808   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
18809     # ARM EH ABI.
18810     enable_sjlj_exceptions=no
18811   fi
18812 fi
18813 CXXFLAGS="$old_CXXFLAGS"
18814 rm -f conftest*
18815 fi;
18816 if test x$enable_sjlj_exceptions = xyes; then
18817
18818 cat >>confdefs.h <<\_ACEOF
18819 #define SJLJ_EXCEPTIONS 1
18820 _ACEOF
18821
18822   ac_exception_model_name=sjlj
18823 elif test x$enable_sjlj_exceptions = xno; then
18824   ac_exception_model_name="call frame"
18825 else
18826   { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18827 echo "$as_me: error: unable to detect exception model" >&2;}
18828    { (exit 1); exit 1; }; }
18829 fi
18830 ac_ext=c
18831 ac_cpp='$CPP $CPPFLAGS'
18832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18835
18836 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18837 echo "${ECHO_T}$ac_exception_model_name" >&6
18838
18839 # If we are non using SJLJ exceptions, and this host does not have support
18840 # for unwinding from a signal handler, enable checked dereferences and divides.
18841 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18842   CHECKREFSPEC=-fcheck-references
18843   DIVIDESPEC=-fuse-divide-subroutine
18844   EXCEPTIONSPEC=
18845 fi
18846
18847 # See if the user wants to disable java.net.  This is the mildly
18848 # ugly way that we admit that target-side configuration sucks.
18849 # Check whether --enable-java-net or --disable-java-net was given.
18850 if test "${enable_java_net+set}" = set; then
18851   enableval="$enable_java_net"
18852
18853 fi;
18854
18855 # Whether java.net is built by default can depend on the target.
18856 if test -z "$enable_java_net"; then
18857    enable_java_net=${enable_java_net_default-yes}
18858 fi
18859 if test "$enable_java_net" = no; then
18860
18861 cat >>confdefs.h <<\_ACEOF
18862 #define DISABLE_JAVA_NET 1
18863 _ACEOF
18864
18865 fi
18866
18867 # See if the user wants to configure without libffi.  Some
18868 # architectures don't support it, and default values are set in
18869 # configure.host.
18870
18871 # Check whether --with-libffi or --without-libffi was given.
18872 if test "${with_libffi+set}" = set; then
18873   withval="$with_libffi"
18874   :
18875 else
18876   with_libffi=${with_libffi_default-yes}
18877 fi;
18878
18879 LIBFFI=
18880 LIBFFIINCS=
18881 if test "$with_libffi" != no; then
18882
18883 cat >>confdefs.h <<\_ACEOF
18884 #define USE_LIBFFI 1
18885 _ACEOF
18886
18887    LIBFFI=../libffi/libffi_convenience.la
18888    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18889 fi
18890
18891
18892
18893 # See if the user wants to disable JVMPI support.
18894 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18895 if test "${enable_jvmpi+set}" = set; then
18896   enableval="$enable_jvmpi"
18897
18898 fi;
18899
18900 if test "$enable_jvmpi" != no; then
18901
18902 cat >>confdefs.h <<\_ACEOF
18903 #define ENABLE_JVMPI 1
18904 _ACEOF
18905
18906 fi
18907
18908 # If the target is an eCos system, use the appropriate eCos
18909 # I/O routines.
18910 # FIXME: this should not be a local option but a global target
18911 # system; at present there is no eCos target.
18912 TARGET_ECOS=${PROCESS-"no"}
18913
18914 # Check whether --with-ecos or --without-ecos was given.
18915 if test "${with_ecos+set}" = set; then
18916   withval="$with_ecos"
18917   TARGET_ECOS="$with_ecos"
18918
18919 fi;
18920
18921 case "$TARGET_ECOS" in
18922    no) case "$host" in
18923       *mingw*)
18924             PLATFORM=Win32
18925             PLATFORMNET=Win32
18926             PLATFORMH=win32.h
18927
18928 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18929 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18930 LD_PROG=`$CC --print-prog-name=ld`
18931 LD_VERSION=`$LD_PROG --version`
18932 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18933 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18934 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18935   LD_OK="ok"
18936 else
18937   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18938     LD_OK="ok"
18939   fi
18940 fi
18941 if test "x$LD_OK" != x; then
18942   echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18943 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18944 else
18945   echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18946 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18947   { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18948 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18949
18950 cat >>confdefs.h <<\_ACEOF
18951 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18952 _ACEOF
18953
18954 fi
18955       ;;
18956       *)
18957             PLATFORM=Posix
18958             PLATFORMNET=Posix
18959             PLATFORMH=posix.h
18960       ;;
18961       esac
18962       ;;
18963    *)
18964       PLATFORM=Ecos
18965       PLATFORMNET=NoNet
18966
18967 cat >>confdefs.h <<\_ACEOF
18968 #define ECOS 1
18969 _ACEOF
18970
18971       PLATFORMH=posix.h
18972       ;;
18973 esac
18974
18975           ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18976
18977
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984 #include <stdint.h>
18985
18986 _ACEOF
18987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18988   $EGREP "uint32_t" >/dev/null 2>&1; then
18989
18990 cat >>confdefs.h <<\_ACEOF
18991 #define HAVE_INT32_DEFINED 1
18992 _ACEOF
18993
18994 fi
18995 rm -f conftest*
18996
18997 cat >conftest.$ac_ext <<_ACEOF
18998 /* confdefs.h.  */
18999 _ACEOF
19000 cat confdefs.h >>conftest.$ac_ext
19001 cat >>conftest.$ac_ext <<_ACEOF
19002 /* end confdefs.h.  */
19003 #include <inttypes.h>
19004
19005 _ACEOF
19006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19007   $EGREP "uint32_t" >/dev/null 2>&1; then
19008
19009 cat >>confdefs.h <<\_ACEOF
19010 #define HAVE_INT32_DEFINED 1
19011 _ACEOF
19012
19013 fi
19014 rm -f conftest*
19015
19016 cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 #include <sys/types.h>
19023
19024 _ACEOF
19025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19026   $EGREP "u_int32_t" >/dev/null 2>&1; then
19027
19028 cat >>confdefs.h <<\_ACEOF
19029 #define HAVE_BSD_INT32_DEFINED 1
19030 _ACEOF
19031
19032 fi
19033 rm -f conftest*
19034
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h.  */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h.  */
19041 #include <sys/config.h>
19042
19043 _ACEOF
19044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19045   $EGREP "u_int32_t" >/dev/null 2>&1; then
19046
19047 cat >>confdefs.h <<\_ACEOF
19048 #define HAVE_BSD_INT32_DEFINED 1
19049 _ACEOF
19050
19051 fi
19052 rm -f conftest*
19053
19054
19055
19056
19057 if test "$PLATFORM" = Win32; then
19058   USING_WIN32_PLATFORM_TRUE=
19059   USING_WIN32_PLATFORM_FALSE='#'
19060 else
19061   USING_WIN32_PLATFORM_TRUE='#'
19062   USING_WIN32_PLATFORM_FALSE=
19063 fi
19064
19065
19066
19067 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19068   USING_POSIX_PLATFORM_TRUE=
19069   USING_POSIX_PLATFORM_FALSE='#'
19070 else
19071   USING_POSIX_PLATFORM_TRUE='#'
19072   USING_POSIX_PLATFORM_FALSE=
19073 fi
19074
19075
19076 case "$host" in
19077   *-darwin*) DARWIN_CRT=true ;;
19078   *) DARWIN_CRT=false ;;
19079 esac
19080
19081
19082 if $DARWIN_CRT; then
19083   USING_DARWIN_CRT_TRUE=
19084   USING_DARWIN_CRT_FALSE='#'
19085 else
19086   USING_DARWIN_CRT_TRUE='#'
19087   USING_DARWIN_CRT_FALSE=
19088 fi
19089
19090
19091 # This may not be defined in a non-ANS conformant embedded system.
19092 # FIXME: Should these case a runtime exception in that case?
19093 cat >conftest.$ac_ext <<_ACEOF
19094 /* confdefs.h.  */
19095 _ACEOF
19096 cat confdefs.h >>conftest.$ac_ext
19097 cat >>conftest.$ac_ext <<_ACEOF
19098 /* end confdefs.h.  */
19099 #include <time.h>
19100
19101 _ACEOF
19102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19103   $EGREP "localtime" >/dev/null 2>&1; then
19104
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_LOCALTIME 1
19107 _ACEOF
19108
19109 fi
19110 rm -f conftest*
19111
19112
19113 # Create the subdirectory for natFile.cc, or the attempt
19114 # to create the link will fail.
19115 test -d java || mkdir java
19116 test -d java/io || mkdir java/io
19117 test -d gnu || mkdir gnu
19118           ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19119
19120
19121 # Likewise for natConcreteProcess.cc.
19122 test -d java/lang || mkdir java/lang
19123           ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19124
19125
19126 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19127 test -d java/net || mkdir java/net
19128           ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19129
19130           ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19131
19132
19133 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19134 test -d gnu/java || mkdir gnu/java
19135 test -d gnu/java/net || mkdir gnu/java/net
19136           ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19137
19138           ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19139
19140
19141 # Likewise for natVMPipe.cc and natVMSelector.cc.
19142 test -d gnu/java/nio || mkdir gnu/java/nio
19143           ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19144
19145           ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19146
19147
19148 # Likewise for natFileChannelImpl.cc
19149 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19150           ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19151
19152
19153 # Likewise for natVMSecureRandom.cc
19154 test -d gnu/java/security || mkdir gnu/java/security
19155 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19156 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19157           ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19158
19159
19160 case "${host}" in
19161     *mingw*)
19162       SYSTEMSPEC="-lgdi32 -lws2_32"
19163       if test "${with_win32_nlsapi}" = "unicows"; then
19164         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19165       fi
19166     ;;
19167     *)
19168       SYSTEMSPEC=
19169     ;;
19170 esac
19171
19172
19173
19174 # Check whether --with-system-zlib or --without-system-zlib was given.
19175 if test "${with_system_zlib+set}" = set; then
19176   withval="$with_system_zlib"
19177
19178 fi;
19179 ZLIBSPEC=
19180
19181 ZLIBTESTSPEC=
19182
19183
19184 echo "$as_me:$LINENO: checking for X" >&5
19185 echo $ECHO_N "checking for X... $ECHO_C" >&6
19186
19187
19188 # Check whether --with-x or --without-x was given.
19189 if test "${with_x+set}" = set; then
19190   withval="$with_x"
19191
19192 fi;
19193 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19194 if test "x$with_x" = xno; then
19195   # The user explicitly disabled X.
19196   have_x=disabled
19197 else
19198   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19199     # Both variables are already set.
19200     have_x=yes
19201   else
19202     if test "${ac_cv_have_x+set}" = set; then
19203   echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205   # One or both of the vars are not set, and there is no cached value.
19206 ac_x_includes=no ac_x_libraries=no
19207 rm -fr conftest.dir
19208 if mkdir conftest.dir; then
19209   cd conftest.dir
19210   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19211   cat >Imakefile <<'_ACEOF'
19212 acfindx:
19213         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19214 _ACEOF
19215   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19216     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19217     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19218     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19219     for ac_extension in a so sl; do
19220       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19221          test -f $ac_im_libdir/libX11.$ac_extension; then
19222         ac_im_usrlibdir=$ac_im_libdir; break
19223       fi
19224     done
19225     # Screen out bogus values from the imake configuration.  They are
19226     # bogus both because they are the default anyway, and because
19227     # using them would break gcc on systems where it needs fixed includes.
19228     case $ac_im_incroot in
19229         /usr/include) ;;
19230         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19231     esac
19232     case $ac_im_usrlibdir in
19233         /usr/lib | /lib) ;;
19234         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19235     esac
19236   fi
19237   cd ..
19238   rm -fr conftest.dir
19239 fi
19240
19241 # Standard set of common directories for X headers.
19242 # Check X11 before X11Rn because it is often a symlink to the current release.
19243 ac_x_header_dirs='
19244 /usr/X11/include
19245 /usr/X11R6/include
19246 /usr/X11R5/include
19247 /usr/X11R4/include
19248
19249 /usr/include/X11
19250 /usr/include/X11R6
19251 /usr/include/X11R5
19252 /usr/include/X11R4
19253
19254 /usr/local/X11/include
19255 /usr/local/X11R6/include
19256 /usr/local/X11R5/include
19257 /usr/local/X11R4/include
19258
19259 /usr/local/include/X11
19260 /usr/local/include/X11R6
19261 /usr/local/include/X11R5
19262 /usr/local/include/X11R4
19263
19264 /usr/X386/include
19265 /usr/x386/include
19266 /usr/XFree86/include/X11
19267
19268 /usr/include
19269 /usr/local/include
19270 /usr/unsupported/include
19271 /usr/athena/include
19272 /usr/local/x11r5/include
19273 /usr/lpp/Xamples/include
19274
19275 /usr/openwin/include
19276 /usr/openwin/share/include'
19277
19278 if test "$ac_x_includes" = no; then
19279   # Guess where to find include files, by looking for Intrinsic.h.
19280   # First, try using that file with no special directory specified.
19281   cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287 #include <X11/Intrinsic.h>
19288 _ACEOF
19289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19290   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } >/dev/null; then
19297   if test -s conftest.err; then
19298     ac_cpp_err=$ac_c_preproc_warn_flag
19299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300   else
19301     ac_cpp_err=
19302   fi
19303 else
19304   ac_cpp_err=yes
19305 fi
19306 if test -z "$ac_cpp_err"; then
19307   # We can compile using X headers with no special include directory.
19308 ac_x_includes=
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313   for ac_dir in $ac_x_header_dirs; do
19314   if test -r "$ac_dir/X11/Intrinsic.h"; then
19315     ac_x_includes=$ac_dir
19316     break
19317   fi
19318 done
19319 fi
19320 rm -f conftest.err conftest.$ac_ext
19321 fi # $ac_x_includes = no
19322
19323 if test "$ac_x_libraries" = no; then
19324   # Check for the libraries.
19325   # See if we find them without any special options.
19326   # Don't add to $LIBS permanently.
19327   ac_save_LIBS=$LIBS
19328   LIBS="-lXt $LIBS"
19329   if test x$gcc_no_link = xyes; then
19330   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19331 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19332    { (exit 1); exit 1; }; }
19333 fi
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340 #include <X11/Intrinsic.h>
19341 int
19342 main ()
19343 {
19344 XtMalloc (0)
19345   ;
19346   return 0;
19347 }
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19351   (eval $ac_link) 2>conftest.er1
19352   ac_status=$?
19353   grep -v '^ *+' conftest.er1 >conftest.err
19354   rm -f conftest.er1
19355   cat conftest.err >&5
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); } &&
19358          { ac_try='test -z "$ac_c_werror_flag"
19359                          || test ! -s conftest.err'
19360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19361   (eval $ac_try) 2>&5
19362   ac_status=$?
19363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19364   (exit $ac_status); }; } &&
19365          { ac_try='test -s conftest$ac_exeext'
19366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19367   (eval $ac_try) 2>&5
19368   ac_status=$?
19369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370   (exit $ac_status); }; }; then
19371   LIBS=$ac_save_LIBS
19372 # We can link X programs with no special library path.
19373 ac_x_libraries=
19374 else
19375   echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 LIBS=$ac_save_LIBS
19379 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19380 do
19381   # Don't even attempt the hair of trying to link an X program!
19382   for ac_extension in a so sl; do
19383     if test -r $ac_dir/libXt.$ac_extension; then
19384       ac_x_libraries=$ac_dir
19385       break 2
19386     fi
19387   done
19388 done
19389 fi
19390 rm -f conftest.err conftest.$ac_objext \
19391       conftest$ac_exeext conftest.$ac_ext
19392 fi # $ac_x_libraries = no
19393
19394 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19395   # Didn't find X anywhere.  Cache the known absence of X.
19396   ac_cv_have_x="have_x=no"
19397 else
19398   # Record where we found X for the cache.
19399   ac_cv_have_x="have_x=yes \
19400                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19401 fi
19402 fi
19403
19404   fi
19405   eval "$ac_cv_have_x"
19406 fi # $with_x != no
19407
19408 if test "$have_x" != yes; then
19409   echo "$as_me:$LINENO: result: $have_x" >&5
19410 echo "${ECHO_T}$have_x" >&6
19411   no_x=yes
19412 else
19413   # If each of the values was on the command line, it overrides each guess.
19414   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19415   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19416   # Update the cache value to reflect the command line values.
19417   ac_cv_have_x="have_x=yes \
19418                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19419   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19420 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19421 fi
19422
19423 if test "$no_x" = yes; then
19424   # Not all programs may use this symbol, but it does not hurt to define it.
19425
19426 cat >>confdefs.h <<\_ACEOF
19427 #define X_DISPLAY_MISSING 1
19428 _ACEOF
19429
19430   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19431 else
19432   if test -n "$x_includes"; then
19433     X_CFLAGS="$X_CFLAGS -I$x_includes"
19434   fi
19435
19436   # It would also be nice to do this for all -L options, not just this one.
19437   if test -n "$x_libraries"; then
19438     X_LIBS="$X_LIBS -L$x_libraries"
19439     # For Solaris; some versions of Sun CC require a space after -R and
19440     # others require no space.  Words are not sufficient . . . .
19441     case `(uname -sr) 2>/dev/null` in
19442     "SunOS 5"*)
19443       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19444 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19445       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19446       if test x$gcc_no_link = xyes; then
19447   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19448 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19449    { (exit 1); exit 1; }; }
19450 fi
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h.  */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h.  */
19457
19458 int
19459 main ()
19460 {
19461
19462   ;
19463   return 0;
19464 }
19465 _ACEOF
19466 rm -f conftest.$ac_objext conftest$ac_exeext
19467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19468   (eval $ac_link) 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } &&
19475          { ac_try='test -z "$ac_c_werror_flag"
19476                          || test ! -s conftest.err'
19477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478   (eval $ac_try) 2>&5
19479   ac_status=$?
19480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481   (exit $ac_status); }; } &&
19482          { ac_try='test -s conftest$ac_exeext'
19483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19484   (eval $ac_try) 2>&5
19485   ac_status=$?
19486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487   (exit $ac_status); }; }; then
19488   ac_R_nospace=yes
19489 else
19490   echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.$ac_ext >&5
19492
19493 ac_R_nospace=no
19494 fi
19495 rm -f conftest.err conftest.$ac_objext \
19496       conftest$ac_exeext conftest.$ac_ext
19497       if test $ac_R_nospace = yes; then
19498         echo "$as_me:$LINENO: result: no" >&5
19499 echo "${ECHO_T}no" >&6
19500         X_LIBS="$X_LIBS -R$x_libraries"
19501       else
19502         LIBS="$ac_xsave_LIBS -R $x_libraries"
19503         if test x$gcc_no_link = xyes; then
19504   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19506    { (exit 1); exit 1; }; }
19507 fi
19508 cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514
19515 int
19516 main ()
19517 {
19518
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19525   (eval $ac_link) 2>conftest.er1
19526   ac_status=$?
19527   grep -v '^ *+' conftest.er1 >conftest.err
19528   rm -f conftest.er1
19529   cat conftest.err >&5
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } &&
19532          { ac_try='test -z "$ac_c_werror_flag"
19533                          || test ! -s conftest.err'
19534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535   (eval $ac_try) 2>&5
19536   ac_status=$?
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); }; } &&
19539          { ac_try='test -s conftest$ac_exeext'
19540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541   (eval $ac_try) 2>&5
19542   ac_status=$?
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); }; }; then
19545   ac_R_space=yes
19546 else
19547   echo "$as_me: failed program was:" >&5
19548 sed 's/^/| /' conftest.$ac_ext >&5
19549
19550 ac_R_space=no
19551 fi
19552 rm -f conftest.err conftest.$ac_objext \
19553       conftest$ac_exeext conftest.$ac_ext
19554         if test $ac_R_space = yes; then
19555           echo "$as_me:$LINENO: result: yes" >&5
19556 echo "${ECHO_T}yes" >&6
19557           X_LIBS="$X_LIBS -R $x_libraries"
19558         else
19559           echo "$as_me:$LINENO: result: neither works" >&5
19560 echo "${ECHO_T}neither works" >&6
19561         fi
19562       fi
19563       LIBS=$ac_xsave_LIBS
19564     esac
19565   fi
19566
19567   # Check for system-dependent libraries X programs must link with.
19568   # Do this before checking for the system-independent R6 libraries
19569   # (-lICE), since we may need -lsocket or whatever for X linking.
19570
19571   if test "$ISC" = yes; then
19572     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19573   else
19574     # Martyn Johnson says this is needed for Ultrix, if the X
19575     # libraries were built with DECnet support.  And Karl Berry says
19576     # the Alpha needs dnet_stub (dnet does not exist).
19577     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19578     if test x$gcc_no_link = xyes; then
19579   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19580 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19581    { (exit 1); exit 1; }; }
19582 fi
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589
19590 /* Override any gcc2 internal prototype to avoid an error.  */
19591 #ifdef __cplusplus
19592 extern "C"
19593 #endif
19594 /* We use char because int might match the return type of a gcc2
19595    builtin and then its argument prototype would still apply.  */
19596 char XOpenDisplay ();
19597 int
19598 main ()
19599 {
19600 XOpenDisplay ();
19601   ;
19602   return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19607   (eval $ac_link) 2>conftest.er1
19608   ac_status=$?
19609   grep -v '^ *+' conftest.er1 >conftest.err
19610   rm -f conftest.er1
19611   cat conftest.err >&5
19612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613   (exit $ac_status); } &&
19614          { ac_try='test -z "$ac_c_werror_flag"
19615                          || test ! -s conftest.err'
19616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19617   (eval $ac_try) 2>&5
19618   ac_status=$?
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); }; } &&
19621          { ac_try='test -s conftest$ac_exeext'
19622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623   (eval $ac_try) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; }; then
19627   :
19628 else
19629   echo "$as_me: failed program was:" >&5
19630 sed 's/^/| /' conftest.$ac_ext >&5
19631
19632 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19633 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19634 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   ac_check_lib_save_LIBS=$LIBS
19638 LIBS="-ldnet  $LIBS"
19639 if test x$gcc_no_link = xyes; then
19640   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19641 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19642    { (exit 1); exit 1; }; }
19643 fi
19644 cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650
19651 /* Override any gcc2 internal prototype to avoid an error.  */
19652 #ifdef __cplusplus
19653 extern "C"
19654 #endif
19655 /* We use char because int might match the return type of a gcc2
19656    builtin and then its argument prototype would still apply.  */
19657 char dnet_ntoa ();
19658 int
19659 main ()
19660 {
19661 dnet_ntoa ();
19662   ;
19663   return 0;
19664 }
19665 _ACEOF
19666 rm -f conftest.$ac_objext conftest$ac_exeext
19667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19668   (eval $ac_link) 2>conftest.er1
19669   ac_status=$?
19670   grep -v '^ *+' conftest.er1 >conftest.err
19671   rm -f conftest.er1
19672   cat conftest.err >&5
19673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674   (exit $ac_status); } &&
19675          { ac_try='test -z "$ac_c_werror_flag"
19676                          || test ! -s conftest.err'
19677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19678   (eval $ac_try) 2>&5
19679   ac_status=$?
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); }; } &&
19682          { ac_try='test -s conftest$ac_exeext'
19683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19684   (eval $ac_try) 2>&5
19685   ac_status=$?
19686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687   (exit $ac_status); }; }; then
19688   ac_cv_lib_dnet_dnet_ntoa=yes
19689 else
19690   echo "$as_me: failed program was:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19692
19693 ac_cv_lib_dnet_dnet_ntoa=no
19694 fi
19695 rm -f conftest.err conftest.$ac_objext \
19696       conftest$ac_exeext conftest.$ac_ext
19697 LIBS=$ac_check_lib_save_LIBS
19698 fi
19699 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19700 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19701 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19702   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19703 fi
19704
19705     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19706       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19707 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19708 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19709   echo $ECHO_N "(cached) $ECHO_C" >&6
19710 else
19711   ac_check_lib_save_LIBS=$LIBS
19712 LIBS="-ldnet_stub  $LIBS"
19713 if test x$gcc_no_link = xyes; then
19714   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19715 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19716    { (exit 1); exit 1; }; }
19717 fi
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h.  */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h.  */
19724
19725 /* Override any gcc2 internal prototype to avoid an error.  */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 /* We use char because int might match the return type of a gcc2
19730    builtin and then its argument prototype would still apply.  */
19731 char dnet_ntoa ();
19732 int
19733 main ()
19734 {
19735 dnet_ntoa ();
19736   ;
19737   return 0;
19738 }
19739 _ACEOF
19740 rm -f conftest.$ac_objext conftest$ac_exeext
19741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19742   (eval $ac_link) 2>conftest.er1
19743   ac_status=$?
19744   grep -v '^ *+' conftest.er1 >conftest.err
19745   rm -f conftest.er1
19746   cat conftest.err >&5
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } &&
19749          { ac_try='test -z "$ac_c_werror_flag"
19750                          || test ! -s conftest.err'
19751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19752   (eval $ac_try) 2>&5
19753   ac_status=$?
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); }; } &&
19756          { ac_try='test -s conftest$ac_exeext'
19757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758   (eval $ac_try) 2>&5
19759   ac_status=$?
19760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761   (exit $ac_status); }; }; then
19762   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19763 else
19764   echo "$as_me: failed program was:" >&5
19765 sed 's/^/| /' conftest.$ac_ext >&5
19766
19767 ac_cv_lib_dnet_stub_dnet_ntoa=no
19768 fi
19769 rm -f conftest.err conftest.$ac_objext \
19770       conftest$ac_exeext conftest.$ac_ext
19771 LIBS=$ac_check_lib_save_LIBS
19772 fi
19773 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19774 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19775 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19776   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19777 fi
19778
19779     fi
19780 fi
19781 rm -f conftest.err conftest.$ac_objext \
19782       conftest$ac_exeext conftest.$ac_ext
19783     LIBS="$ac_xsave_LIBS"
19784
19785     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19786     # to get the SysV transport functions.
19787     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19788     # needs -lnsl.
19789     # The nsl library prevents programs from opening the X display
19790     # on Irix 5.2, according to T.E. Dickey.
19791     # The functions gethostbyname, getservbyname, and inet_addr are
19792     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19793     echo "$as_me:$LINENO: checking for gethostbyname" >&5
19794 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19795 if test "${ac_cv_func_gethostbyname+set}" = set; then
19796   echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798   if test x$gcc_no_link = xyes; then
19799   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19800 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19801    { (exit 1); exit 1; }; }
19802 fi
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h.  */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h.  */
19809 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19810    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19811 #define gethostbyname innocuous_gethostbyname
19812
19813 /* System header to define __stub macros and hopefully few prototypes,
19814     which can conflict with char gethostbyname (); below.
19815     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19816     <limits.h> exists even on freestanding compilers.  */
19817
19818 #ifdef __STDC__
19819 # include <limits.h>
19820 #else
19821 # include <assert.h>
19822 #endif
19823
19824 #undef gethostbyname
19825
19826 /* Override any gcc2 internal prototype to avoid an error.  */
19827 #ifdef __cplusplus
19828 extern "C"
19829 {
19830 #endif
19831 /* We use char because int might match the return type of a gcc2
19832    builtin and then its argument prototype would still apply.  */
19833 char gethostbyname ();
19834 /* The GNU C library defines this for functions which it implements
19835     to always fail with ENOSYS.  Some functions are actually named
19836     something starting with __ and the normal name is an alias.  */
19837 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19838 choke me
19839 #else
19840 char (*f) () = gethostbyname;
19841 #endif
19842 #ifdef __cplusplus
19843 }
19844 #endif
19845
19846 int
19847 main ()
19848 {
19849 return f != gethostbyname;
19850   ;
19851   return 0;
19852 }
19853 _ACEOF
19854 rm -f conftest.$ac_objext conftest$ac_exeext
19855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19856   (eval $ac_link) 2>conftest.er1
19857   ac_status=$?
19858   grep -v '^ *+' conftest.er1 >conftest.err
19859   rm -f conftest.er1
19860   cat conftest.err >&5
19861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862   (exit $ac_status); } &&
19863          { ac_try='test -z "$ac_c_werror_flag"
19864                          || test ! -s conftest.err'
19865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19866   (eval $ac_try) 2>&5
19867   ac_status=$?
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); }; } &&
19870          { ac_try='test -s conftest$ac_exeext'
19871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872   (eval $ac_try) 2>&5
19873   ac_status=$?
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); }; }; then
19876   ac_cv_func_gethostbyname=yes
19877 else
19878   echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.$ac_ext >&5
19880
19881 ac_cv_func_gethostbyname=no
19882 fi
19883 rm -f conftest.err conftest.$ac_objext \
19884       conftest$ac_exeext conftest.$ac_ext
19885 fi
19886 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19887 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19888
19889     if test $ac_cv_func_gethostbyname = no; then
19890       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19891 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19892 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19893   echo $ECHO_N "(cached) $ECHO_C" >&6
19894 else
19895   ac_check_lib_save_LIBS=$LIBS
19896 LIBS="-lnsl  $LIBS"
19897 if test x$gcc_no_link = xyes; then
19898   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19899 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19900    { (exit 1); exit 1; }; }
19901 fi
19902 cat >conftest.$ac_ext <<_ACEOF
19903 /* confdefs.h.  */
19904 _ACEOF
19905 cat confdefs.h >>conftest.$ac_ext
19906 cat >>conftest.$ac_ext <<_ACEOF
19907 /* end confdefs.h.  */
19908
19909 /* Override any gcc2 internal prototype to avoid an error.  */
19910 #ifdef __cplusplus
19911 extern "C"
19912 #endif
19913 /* We use char because int might match the return type of a gcc2
19914    builtin and then its argument prototype would still apply.  */
19915 char gethostbyname ();
19916 int
19917 main ()
19918 {
19919 gethostbyname ();
19920   ;
19921   return 0;
19922 }
19923 _ACEOF
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>conftest.er1
19927   ac_status=$?
19928   grep -v '^ *+' conftest.er1 >conftest.err
19929   rm -f conftest.er1
19930   cat conftest.err >&5
19931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932   (exit $ac_status); } &&
19933          { ac_try='test -z "$ac_c_werror_flag"
19934                          || test ! -s conftest.err'
19935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936   (eval $ac_try) 2>&5
19937   ac_status=$?
19938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939   (exit $ac_status); }; } &&
19940          { ac_try='test -s conftest$ac_exeext'
19941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942   (eval $ac_try) 2>&5
19943   ac_status=$?
19944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945   (exit $ac_status); }; }; then
19946   ac_cv_lib_nsl_gethostbyname=yes
19947 else
19948   echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19950
19951 ac_cv_lib_nsl_gethostbyname=no
19952 fi
19953 rm -f conftest.err conftest.$ac_objext \
19954       conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19956 fi
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19958 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19959 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19960   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19961 fi
19962
19963       if test $ac_cv_lib_nsl_gethostbyname = no; then
19964         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19965 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19966 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 else
19969   ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-lbsd  $LIBS"
19971 if test x$gcc_no_link = xyes; then
19972   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19973 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19974    { (exit 1); exit 1; }; }
19975 fi
19976 cat >conftest.$ac_ext <<_ACEOF
19977 /* confdefs.h.  */
19978 _ACEOF
19979 cat confdefs.h >>conftest.$ac_ext
19980 cat >>conftest.$ac_ext <<_ACEOF
19981 /* end confdefs.h.  */
19982
19983 /* Override any gcc2 internal prototype to avoid an error.  */
19984 #ifdef __cplusplus
19985 extern "C"
19986 #endif
19987 /* We use char because int might match the return type of a gcc2
19988    builtin and then its argument prototype would still apply.  */
19989 char gethostbyname ();
19990 int
19991 main ()
19992 {
19993 gethostbyname ();
19994   ;
19995   return 0;
19996 }
19997 _ACEOF
19998 rm -f conftest.$ac_objext conftest$ac_exeext
19999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20000   (eval $ac_link) 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } &&
20007          { ac_try='test -z "$ac_c_werror_flag"
20008                          || test ! -s conftest.err'
20009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010   (eval $ac_try) 2>&5
20011   ac_status=$?
20012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013   (exit $ac_status); }; } &&
20014          { ac_try='test -s conftest$ac_exeext'
20015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016   (eval $ac_try) 2>&5
20017   ac_status=$?
20018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019   (exit $ac_status); }; }; then
20020   ac_cv_lib_bsd_gethostbyname=yes
20021 else
20022   echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_cv_lib_bsd_gethostbyname=no
20026 fi
20027 rm -f conftest.err conftest.$ac_objext \
20028       conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20030 fi
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20032 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20033 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20034   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20035 fi
20036
20037       fi
20038     fi
20039
20040     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20041     # socket/setsockopt and other routines are undefined under SCO ODT
20042     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20043     # on later versions), says Simon Leinen: it contains gethostby*
20044     # variants that don't use the name server (or something).  -lsocket
20045     # must be given before -lnsl if both are needed.  We assume that
20046     # if connect needs -lnsl, so does gethostbyname.
20047     echo "$as_me:$LINENO: checking for connect" >&5
20048 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20049 if test "${ac_cv_func_connect+set}" = set; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   if test x$gcc_no_link = xyes; then
20053   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20054 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20055    { (exit 1); exit 1; }; }
20056 fi
20057 cat >conftest.$ac_ext <<_ACEOF
20058 /* confdefs.h.  */
20059 _ACEOF
20060 cat confdefs.h >>conftest.$ac_ext
20061 cat >>conftest.$ac_ext <<_ACEOF
20062 /* end confdefs.h.  */
20063 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20065 #define connect innocuous_connect
20066
20067 /* System header to define __stub macros and hopefully few prototypes,
20068     which can conflict with char connect (); below.
20069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20070     <limits.h> exists even on freestanding compilers.  */
20071
20072 #ifdef __STDC__
20073 # include <limits.h>
20074 #else
20075 # include <assert.h>
20076 #endif
20077
20078 #undef connect
20079
20080 /* Override any gcc2 internal prototype to avoid an error.  */
20081 #ifdef __cplusplus
20082 extern "C"
20083 {
20084 #endif
20085 /* We use char because int might match the return type of a gcc2
20086    builtin and then its argument prototype would still apply.  */
20087 char connect ();
20088 /* The GNU C library defines this for functions which it implements
20089     to always fail with ENOSYS.  Some functions are actually named
20090     something starting with __ and the normal name is an alias.  */
20091 #if defined (__stub_connect) || defined (__stub___connect)
20092 choke me
20093 #else
20094 char (*f) () = connect;
20095 #endif
20096 #ifdef __cplusplus
20097 }
20098 #endif
20099
20100 int
20101 main ()
20102 {
20103 return f != connect;
20104   ;
20105   return 0;
20106 }
20107 _ACEOF
20108 rm -f conftest.$ac_objext conftest$ac_exeext
20109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20110   (eval $ac_link) 2>conftest.er1
20111   ac_status=$?
20112   grep -v '^ *+' conftest.er1 >conftest.err
20113   rm -f conftest.er1
20114   cat conftest.err >&5
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); } &&
20117          { ac_try='test -z "$ac_c_werror_flag"
20118                          || test ! -s conftest.err'
20119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20120   (eval $ac_try) 2>&5
20121   ac_status=$?
20122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123   (exit $ac_status); }; } &&
20124          { ac_try='test -s conftest$ac_exeext'
20125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20126   (eval $ac_try) 2>&5
20127   ac_status=$?
20128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); }; }; then
20130   ac_cv_func_connect=yes
20131 else
20132   echo "$as_me: failed program was:" >&5
20133 sed 's/^/| /' conftest.$ac_ext >&5
20134
20135 ac_cv_func_connect=no
20136 fi
20137 rm -f conftest.err conftest.$ac_objext \
20138       conftest$ac_exeext conftest.$ac_ext
20139 fi
20140 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20141 echo "${ECHO_T}$ac_cv_func_connect" >&6
20142
20143     if test $ac_cv_func_connect = no; then
20144       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20145 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20146 if test "${ac_cv_lib_socket_connect+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   ac_check_lib_save_LIBS=$LIBS
20150 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20151 if test x$gcc_no_link = xyes; then
20152   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20153 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20154    { (exit 1); exit 1; }; }
20155 fi
20156 cat >conftest.$ac_ext <<_ACEOF
20157 /* confdefs.h.  */
20158 _ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h.  */
20162
20163 /* Override any gcc2 internal prototype to avoid an error.  */
20164 #ifdef __cplusplus
20165 extern "C"
20166 #endif
20167 /* We use char because int might match the return type of a gcc2
20168    builtin and then its argument prototype would still apply.  */
20169 char connect ();
20170 int
20171 main ()
20172 {
20173 connect ();
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180   (eval $ac_link) 2>conftest.er1
20181   ac_status=$?
20182   grep -v '^ *+' conftest.er1 >conftest.err
20183   rm -f conftest.er1
20184   cat conftest.err >&5
20185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186   (exit $ac_status); } &&
20187          { ac_try='test -z "$ac_c_werror_flag"
20188                          || test ! -s conftest.err'
20189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190   (eval $ac_try) 2>&5
20191   ac_status=$?
20192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193   (exit $ac_status); }; } &&
20194          { ac_try='test -s conftest$ac_exeext'
20195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196   (eval $ac_try) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); }; }; then
20200   ac_cv_lib_socket_connect=yes
20201 else
20202   echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20204
20205 ac_cv_lib_socket_connect=no
20206 fi
20207 rm -f conftest.err conftest.$ac_objext \
20208       conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20210 fi
20211 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20212 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20213 if test $ac_cv_lib_socket_connect = yes; then
20214   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20215 fi
20216
20217     fi
20218
20219     # Guillermo Gomez says -lposix is necessary on A/UX.
20220     echo "$as_me:$LINENO: checking for remove" >&5
20221 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20222 if test "${ac_cv_func_remove+set}" = set; then
20223   echo $ECHO_N "(cached) $ECHO_C" >&6
20224 else
20225   if test x$gcc_no_link = xyes; then
20226   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20227 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20228    { (exit 1); exit 1; }; }
20229 fi
20230 cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20238 #define remove innocuous_remove
20239
20240 /* System header to define __stub macros and hopefully few prototypes,
20241     which can conflict with char remove (); below.
20242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20243     <limits.h> exists even on freestanding compilers.  */
20244
20245 #ifdef __STDC__
20246 # include <limits.h>
20247 #else
20248 # include <assert.h>
20249 #endif
20250
20251 #undef remove
20252
20253 /* Override any gcc2 internal prototype to avoid an error.  */
20254 #ifdef __cplusplus
20255 extern "C"
20256 {
20257 #endif
20258 /* We use char because int might match the return type of a gcc2
20259    builtin and then its argument prototype would still apply.  */
20260 char remove ();
20261 /* The GNU C library defines this for functions which it implements
20262     to always fail with ENOSYS.  Some functions are actually named
20263     something starting with __ and the normal name is an alias.  */
20264 #if defined (__stub_remove) || defined (__stub___remove)
20265 choke me
20266 #else
20267 char (*f) () = remove;
20268 #endif
20269 #ifdef __cplusplus
20270 }
20271 #endif
20272
20273 int
20274 main ()
20275 {
20276 return f != remove;
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20283   (eval $ac_link) 2>conftest.er1
20284   ac_status=$?
20285   grep -v '^ *+' conftest.er1 >conftest.err
20286   rm -f conftest.er1
20287   cat conftest.err >&5
20288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289   (exit $ac_status); } &&
20290          { ac_try='test -z "$ac_c_werror_flag"
20291                          || test ! -s conftest.err'
20292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293   (eval $ac_try) 2>&5
20294   ac_status=$?
20295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296   (exit $ac_status); }; } &&
20297          { ac_try='test -s conftest$ac_exeext'
20298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299   (eval $ac_try) 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; }; then
20303   ac_cv_func_remove=yes
20304 else
20305   echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308 ac_cv_func_remove=no
20309 fi
20310 rm -f conftest.err conftest.$ac_objext \
20311       conftest$ac_exeext conftest.$ac_ext
20312 fi
20313 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20314 echo "${ECHO_T}$ac_cv_func_remove" >&6
20315
20316     if test $ac_cv_func_remove = no; then
20317       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20318 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20319 if test "${ac_cv_lib_posix_remove+set}" = set; then
20320   echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322   ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-lposix  $LIBS"
20324 if test x$gcc_no_link = xyes; then
20325   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20327    { (exit 1); exit 1; }; }
20328 fi
20329 cat >conftest.$ac_ext <<_ACEOF
20330 /* confdefs.h.  */
20331 _ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h.  */
20335
20336 /* Override any gcc2 internal prototype to avoid an error.  */
20337 #ifdef __cplusplus
20338 extern "C"
20339 #endif
20340 /* We use char because int might match the return type of a gcc2
20341    builtin and then its argument prototype would still apply.  */
20342 char remove ();
20343 int
20344 main ()
20345 {
20346 remove ();
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20353   (eval $ac_link) 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } &&
20360          { ac_try='test -z "$ac_c_werror_flag"
20361                          || test ! -s conftest.err'
20362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363   (eval $ac_try) 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; } &&
20367          { ac_try='test -s conftest$ac_exeext'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; }; then
20373   ac_cv_lib_posix_remove=yes
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378 ac_cv_lib_posix_remove=no
20379 fi
20380 rm -f conftest.err conftest.$ac_objext \
20381       conftest$ac_exeext conftest.$ac_ext
20382 LIBS=$ac_check_lib_save_LIBS
20383 fi
20384 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20385 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20386 if test $ac_cv_lib_posix_remove = yes; then
20387   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20388 fi
20389
20390     fi
20391
20392     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20393     echo "$as_me:$LINENO: checking for shmat" >&5
20394 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20395 if test "${ac_cv_func_shmat+set}" = set; then
20396   echo $ECHO_N "(cached) $ECHO_C" >&6
20397 else
20398   if test x$gcc_no_link = xyes; then
20399   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20400 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20401    { (exit 1); exit 1; }; }
20402 fi
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20411 #define shmat innocuous_shmat
20412
20413 /* System header to define __stub macros and hopefully few prototypes,
20414     which can conflict with char shmat (); below.
20415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20416     <limits.h> exists even on freestanding compilers.  */
20417
20418 #ifdef __STDC__
20419 # include <limits.h>
20420 #else
20421 # include <assert.h>
20422 #endif
20423
20424 #undef shmat
20425
20426 /* Override any gcc2 internal prototype to avoid an error.  */
20427 #ifdef __cplusplus
20428 extern "C"
20429 {
20430 #endif
20431 /* We use char because int might match the return type of a gcc2
20432    builtin and then its argument prototype would still apply.  */
20433 char shmat ();
20434 /* The GNU C library defines this for functions which it implements
20435     to always fail with ENOSYS.  Some functions are actually named
20436     something starting with __ and the normal name is an alias.  */
20437 #if defined (__stub_shmat) || defined (__stub___shmat)
20438 choke me
20439 #else
20440 char (*f) () = shmat;
20441 #endif
20442 #ifdef __cplusplus
20443 }
20444 #endif
20445
20446 int
20447 main ()
20448 {
20449 return f != shmat;
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 rm -f conftest.$ac_objext conftest$ac_exeext
20455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20456   (eval $ac_link) 2>conftest.er1
20457   ac_status=$?
20458   grep -v '^ *+' conftest.er1 >conftest.err
20459   rm -f conftest.er1
20460   cat conftest.err >&5
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); } &&
20463          { ac_try='test -z "$ac_c_werror_flag"
20464                          || test ! -s conftest.err'
20465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466   (eval $ac_try) 2>&5
20467   ac_status=$?
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); }; } &&
20470          { ac_try='test -s conftest$ac_exeext'
20471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472   (eval $ac_try) 2>&5
20473   ac_status=$?
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); }; }; then
20476   ac_cv_func_shmat=yes
20477 else
20478   echo "$as_me: failed program was:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20480
20481 ac_cv_func_shmat=no
20482 fi
20483 rm -f conftest.err conftest.$ac_objext \
20484       conftest$ac_exeext conftest.$ac_ext
20485 fi
20486 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20487 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20488
20489     if test $ac_cv_func_shmat = no; then
20490       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20491 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20492 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-lipc  $LIBS"
20497 if test x$gcc_no_link = xyes; then
20498   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20499 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20500    { (exit 1); exit 1; }; }
20501 fi
20502 cat >conftest.$ac_ext <<_ACEOF
20503 /* confdefs.h.  */
20504 _ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h.  */
20508
20509 /* Override any gcc2 internal prototype to avoid an error.  */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 /* We use char because int might match the return type of a gcc2
20514    builtin and then its argument prototype would still apply.  */
20515 char shmat ();
20516 int
20517 main ()
20518 {
20519 shmat ();
20520   ;
20521   return 0;
20522 }
20523 _ACEOF
20524 rm -f conftest.$ac_objext conftest$ac_exeext
20525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20526   (eval $ac_link) 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_c_werror_flag"
20534                          || test ! -s conftest.err'
20535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20536   (eval $ac_try) 2>&5
20537   ac_status=$?
20538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539   (exit $ac_status); }; } &&
20540          { ac_try='test -s conftest$ac_exeext'
20541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20542   (eval $ac_try) 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; }; then
20546   ac_cv_lib_ipc_shmat=yes
20547 else
20548   echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20550
20551 ac_cv_lib_ipc_shmat=no
20552 fi
20553 rm -f conftest.err conftest.$ac_objext \
20554       conftest$ac_exeext conftest.$ac_ext
20555 LIBS=$ac_check_lib_save_LIBS
20556 fi
20557 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20558 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20559 if test $ac_cv_lib_ipc_shmat = yes; then
20560   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20561 fi
20562
20563     fi
20564   fi
20565
20566   # Check for libraries that X11R6 Xt/Xaw programs need.
20567   ac_save_LDFLAGS=$LDFLAGS
20568   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20569   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20570   # check for ICE first), but we must link in the order -lSM -lICE or
20571   # we get undefined symbols.  So assume we have SM if we have ICE.
20572   # These have to be linked with before -lX11, unlike the other
20573   # libraries we check for below, so use a different variable.
20574   # John Interrante, Karl Berry
20575   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20576 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20577 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   ac_check_lib_save_LIBS=$LIBS
20581 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20582 if test x$gcc_no_link = xyes; then
20583   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20584 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20585    { (exit 1); exit 1; }; }
20586 fi
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h.  */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h.  */
20593
20594 /* Override any gcc2 internal prototype to avoid an error.  */
20595 #ifdef __cplusplus
20596 extern "C"
20597 #endif
20598 /* We use char because int might match the return type of a gcc2
20599    builtin and then its argument prototype would still apply.  */
20600 char IceConnectionNumber ();
20601 int
20602 main ()
20603 {
20604 IceConnectionNumber ();
20605   ;
20606   return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20611   (eval $ac_link) 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -z "$ac_c_werror_flag"
20619                          || test ! -s conftest.err'
20620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621   (eval $ac_try) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest$ac_exeext'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_lib_ICE_IceConnectionNumber=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 ac_cv_lib_ICE_IceConnectionNumber=no
20637 fi
20638 rm -f conftest.err conftest.$ac_objext \
20639       conftest$ac_exeext conftest.$ac_ext
20640 LIBS=$ac_check_lib_save_LIBS
20641 fi
20642 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20643 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20644 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20645   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20646 fi
20647
20648   LDFLAGS=$ac_save_LDFLAGS
20649
20650 fi
20651
20652
20653 # FIXME: this should be _libs on some hosts.
20654 libsubdir=.libs
20655
20656 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20657
20658 LIBSTDCXXSPEC=
20659 # extra LD Flags which are required for targets
20660 case "${host}" in
20661 *-*-darwin[0-7].*)
20662     # For now we have to disable it on darwin[8-9] because it slows down
20663     # the linking phase. A possible bug in ld?
20664     # on Darwin -single_module speeds up loading of the dynamic libraries.
20665     extra_ldflags_libjava=-Wl,-single_module
20666     ;;
20667 *-*-darwin[912]*)
20668     extra_gij_ldflags=-Wl,-allow_stack_execute
20669     ;;
20670 arm*linux*eabi)
20671     # Some of the ARM unwinder code is actually in libstdc++.  We
20672     # could in principle replicate it in libgcj, but it's better to
20673     # have a dependency on libstdc++.
20674     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20675     LIBSTDCXXSPEC=-lstdc++
20676     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20677     ;;
20678 esac
20679
20680
20681
20682
20683
20684
20685
20686 # Allow the GC to be disabled.  Can be useful when debugging.
20687 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20688 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20689 # Check whether --enable-java-gc or --disable-java-gc was given.
20690 if test "${enable_java_gc+set}" = set; then
20691   enableval="$enable_java_gc"
20692   GC=$enableval
20693 else
20694   GC=boehm
20695 fi;
20696 GCLIBS=
20697 GCINCS=
20698 GCDEPS=
20699 GCSPEC=
20700 JC1GCSPEC=
20701 GCTESTSPEC=
20702 case "$GC" in
20703  boehm)
20704     echo "$as_me:$LINENO: result: boehm" >&5
20705 echo "${ECHO_T}boehm" >&6
20706     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20707     JC1GCSPEC='-fuse-boehm-gc'
20708     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20709     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20710     GCOBJS=boehm.lo
20711     GCHDR=boehm-gc.h
20712     # The POSIX thread support needs to know this.
20713
20714 cat >>confdefs.h <<\_ACEOF
20715 #define HAVE_BOEHM_GC 1
20716 _ACEOF
20717
20718     ;;
20719  no)
20720     echo "$as_me:$LINENO: result: none" >&5
20721 echo "${ECHO_T}none" >&6
20722     GCHDR=no-gc.h
20723     ;;
20724  *)
20725     { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20726 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20727    { (exit 1); exit 1; }; }
20728     ;;
20729 esac
20730
20731
20732
20733
20734
20735
20736           ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20737
20738
20739
20740 if test "$GC" = boehm; then
20741   USING_BOEHMGC_TRUE=
20742   USING_BOEHMGC_FALSE='#'
20743 else
20744   USING_BOEHMGC_TRUE='#'
20745   USING_BOEHMGC_FALSE=
20746 fi
20747
20748
20749
20750 if test "$GC" = no; then
20751   USING_NOGC_TRUE=
20752   USING_NOGC_FALSE='#'
20753 else
20754   USING_NOGC_TRUE='#'
20755   USING_NOGC_FALSE=
20756 fi
20757
20758
20759
20760 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20761 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20762 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20763 echo "$as_me:$LINENO: result: $THREADS" >&5
20764 echo "${ECHO_T}$THREADS" >&6
20765
20766 case "$THREADS" in
20767  no | none | single)
20768     THREADS=none
20769     ;;
20770  aix | posix | posix95 | pthreads)
20771     THREADS=posix
20772     case "$host" in
20773      *-*-linux*)
20774
20775 cat >>confdefs.h <<\_ACEOF
20776 #define LINUX_THREADS 1
20777 _ACEOF
20778
20779         ;;
20780     esac
20781     ;;
20782  win32)
20783     ;;
20784  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20785     { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20786 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20787    { (exit 1); exit 1; }; }
20788     ;;
20789  *)
20790     { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20791 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20792    { (exit 1); exit 1; }; }
20793     ;;
20794 esac
20795
20796 THREADCXXFLAGS=
20797 THREADLDFLAGS=
20798 THREADLIBS=
20799 THREADINCS=
20800 THREADDEPS=
20801 THREADH=
20802 THREADSPEC=
20803 THREADSTARTFILESPEC=
20804 case "$THREADS" in
20805  posix)
20806     case "$host" in
20807      *-*-cygwin*)
20808         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20809         ;;
20810      *-*-freebsd[1234]*)
20811         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20812         # merely adds pthread_* functions) but it does have a -pthread switch
20813         # which is required at link-time to select -lc_r *instead* of -lc.
20814         THREADLDFLAGS=-pthread
20815         # Don't set THREADSPEC here as might be expected since -pthread is
20816         # not processed when found within a spec file, it must come from
20817         # the command line.  For now, the user must provide the -pthread
20818         # switch to link code compiled with gcj.  In future, consider adding
20819         # support for weak references to pthread_* functions ala gthr.h API.
20820         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20821         ;;
20822      *-*-freebsd*)
20823         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20824         # systems which support threads and -lpthread.
20825         THREADLDFLAGS=-pthread
20826         THREADSPEC=-lpthread
20827         ;;
20828      alpha*-dec-osf* | hppa*-hp-hpux*)
20829         THREADCXXFLAGS=-pthread
20830         # boehm-gc needs some functions from librt, so link that too.
20831         THREADLIBS='-lpthread -lrt'
20832         THREADSPEC='-lpthread -lrt'
20833         ;;
20834      *)
20835         THREADLIBS=-lpthread
20836         THREADSPEC=-lpthread
20837         ;;
20838     esac
20839     THREADH=posix-threads.h
20840     # MIT pthreads doesn't seem to have the mutexattr functions.
20841     # But for now we don't check for it.  We just assume you aren't
20842     # using MIT pthreads.
20843
20844 cat >>confdefs.h <<\_ACEOF
20845 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20846 _ACEOF
20847
20848
20849     # If we're using the Boehm GC, then we happen to know that it
20850     # defines _REENTRANT, so we don't bother.  Eww.
20851     if test "$GC" != boehm; then
20852
20853 cat >>confdefs.h <<\_ACEOF
20854 #define _REENTRANT 1
20855 _ACEOF
20856
20857     fi
20858
20859 cat >>confdefs.h <<\_ACEOF
20860 #define _POSIX_PTHREAD_SEMANTICS 1
20861 _ACEOF
20862
20863     ;;
20864
20865  win32)
20866     THREADH=win32-threads.h
20867     THREADCXXFLAGS=-mthreads
20868     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20869     # But we do not want the executables created to be dependent on
20870     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20871     # exception handling contexts.  The following kludge achieves this effect
20872     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20873     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20874     # A workaround is to explicitly use -mthreads while linking Java programs.
20875     # See PR libgcj/28263.
20876     #
20877     # FIXME: In Java we are able to detect thread death at the end of
20878     # Thread.run() so we should be able to clean up the exception handling
20879     # contexts ourselves.
20880     THREADSTARTFILESPEC='crtmt%O%s'
20881     ;;
20882
20883  none)
20884     THREADH=no-threads.h
20885     ;;
20886 esac
20887           ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898 if test "$THREADS" = posix; then
20899   USING_POSIX_THREADS_TRUE=
20900   USING_POSIX_THREADS_FALSE='#'
20901 else
20902   USING_POSIX_THREADS_TRUE='#'
20903   USING_POSIX_THREADS_FALSE=
20904 fi
20905
20906
20907
20908 if test "$THREADS" = win32; then
20909   USING_WIN32_THREADS_TRUE=
20910   USING_WIN32_THREADS_FALSE='#'
20911 else
20912   USING_WIN32_THREADS_TRUE='#'
20913   USING_WIN32_THREADS_FALSE=
20914 fi
20915
20916
20917
20918 if test "$THREADS" = none; then
20919   USING_NO_THREADS_TRUE=
20920   USING_NO_THREADS_FALSE='#'
20921 else
20922   USING_NO_THREADS_TRUE='#'
20923   USING_NO_THREADS_FALSE=
20924 fi
20925
20926 if test "$enable_shared" != yes; then
20927   use_libgcj_bc=no
20928 fi
20929
20930
20931 if test "$use_libgcj_bc" = yes; then
20932   USE_LIBGCJ_BC_TRUE=
20933   USE_LIBGCJ_BC_FALSE='#'
20934 else
20935   USE_LIBGCJ_BC_TRUE='#'
20936   USE_LIBGCJ_BC_FALSE=
20937 fi
20938
20939
20940 if test -d sysdep; then true; else mkdir sysdep; fi
20941           ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20942
20943           ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20944
20945           ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20946
20947
20948 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20949 if test "$use_libgcj_bc" = yes; then
20950   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:-lgcj;:-lgcj_bc}"
20951 fi
20952
20953
20954 HASH_SYNC_SPEC=
20955 # Hash synchronization is only useful with posix threads right now.
20956 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20957    HASH_SYNC_SPEC=-fhash-synchronization
20958
20959 cat >>confdefs.h <<\_ACEOF
20960 #define JV_HASH_SYNCHRONIZATION 1
20961 _ACEOF
20962
20963 fi
20964
20965
20966
20967
20968 if test "$GCC" = yes; then
20969   USING_GCC_TRUE=
20970   USING_GCC_FALSE='#'
20971 else
20972   USING_GCC_TRUE='#'
20973   USING_GCC_FALSE=
20974 fi
20975
20976
20977 # We're in the tree with gcc, and need to include some of its headers.
20978 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20979
20980 if test "x${with_newlib}" = "xyes"; then
20981    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20982    # may not work correctly, because the compiler may not be able to
20983    # link executables.
20984
20985    # We assume newlib.  This lets us hard-code the functions we know
20986    # we'll have.
20987
20988 cat >>confdefs.h <<\_ACEOF
20989 #define HAVE_MEMMOVE 1
20990 _ACEOF
20991
20992
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_MEMCPY 1
20995 _ACEOF
20996
20997
20998 cat >>confdefs.h <<\_ACEOF
20999 #define HAVE_TIME 1
21000 _ACEOF
21001
21002
21003 cat >>confdefs.h <<\_ACEOF
21004 #define HAVE_GMTIME_R 1
21005 _ACEOF
21006
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_LOCALTIME_R 1
21010 _ACEOF
21011
21012
21013 cat >>confdefs.h <<\_ACEOF
21014 #define HAVE_USLEEP_DECL 1
21015 _ACEOF
21016
21017    # This is only for POSIX threads.
21018
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
21021 _ACEOF
21022
21023
21024    # Assume we do not have getuid and friends.
21025
21026 cat >>confdefs.h <<\_ACEOF
21027 #define NO_GETUID 1
21028 _ACEOF
21029
21030    PLATFORMNET=NoNet
21031 else
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062 for ac_func in strerror_r select fstat open fsync sleep opendir \
21063                    localtime_r getpwuid_r getcwd \
21064                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
21065                    nl_langinfo setlocale \
21066                    inet_pton uname inet_ntoa \
21067                    getrlimit sigaction ftruncate mmap \
21068                    getifaddrs
21069 do
21070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21071 echo "$as_me:$LINENO: checking for $ac_func" >&5
21072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21073 if eval "test \"\${$as_ac_var+set}\" = set"; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076   if test x$gcc_no_link = xyes; then
21077   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21078 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21079    { (exit 1); exit 1; }; }
21080 fi
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21089 #define $ac_func innocuous_$ac_func
21090
21091 /* System header to define __stub macros and hopefully few prototypes,
21092     which can conflict with char $ac_func (); below.
21093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21094     <limits.h> exists even on freestanding compilers.  */
21095
21096 #ifdef __STDC__
21097 # include <limits.h>
21098 #else
21099 # include <assert.h>
21100 #endif
21101
21102 #undef $ac_func
21103
21104 /* Override any gcc2 internal prototype to avoid an error.  */
21105 #ifdef __cplusplus
21106 extern "C"
21107 {
21108 #endif
21109 /* We use char because int might match the return type of a gcc2
21110    builtin and then its argument prototype would still apply.  */
21111 char $ac_func ();
21112 /* The GNU C library defines this for functions which it implements
21113     to always fail with ENOSYS.  Some functions are actually named
21114     something starting with __ and the normal name is an alias.  */
21115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21116 choke me
21117 #else
21118 char (*f) () = $ac_func;
21119 #endif
21120 #ifdef __cplusplus
21121 }
21122 #endif
21123
21124 int
21125 main ()
21126 {
21127 return f != $ac_func;
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21134   (eval $ac_link) 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -z "$ac_c_werror_flag"
21142                          || test ! -s conftest.err'
21143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21144   (eval $ac_try) 2>&5
21145   ac_status=$?
21146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147   (exit $ac_status); }; } &&
21148          { ac_try='test -s conftest$ac_exeext'
21149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150   (eval $ac_try) 2>&5
21151   ac_status=$?
21152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153   (exit $ac_status); }; }; then
21154   eval "$as_ac_var=yes"
21155 else
21156   echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159 eval "$as_ac_var=no"
21160 fi
21161 rm -f conftest.err conftest.$ac_objext \
21162       conftest$ac_exeext conftest.$ac_ext
21163 fi
21164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21166 if test `eval echo '${'$as_ac_var'}'` = yes; then
21167   cat >>confdefs.h <<_ACEOF
21168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21169 _ACEOF
21170
21171 fi
21172 done
21173
21174
21175
21176 for ac_func in inet_aton inet_addr
21177 do
21178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21179 echo "$as_me:$LINENO: checking for $ac_func" >&5
21180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21181 if eval "test \"\${$as_ac_var+set}\" = set"; then
21182   echo $ECHO_N "(cached) $ECHO_C" >&6
21183 else
21184   if test x$gcc_no_link = xyes; then
21185   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21187    { (exit 1); exit 1; }; }
21188 fi
21189 cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21197 #define $ac_func innocuous_$ac_func
21198
21199 /* System header to define __stub macros and hopefully few prototypes,
21200     which can conflict with char $ac_func (); below.
21201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21202     <limits.h> exists even on freestanding compilers.  */
21203
21204 #ifdef __STDC__
21205 # include <limits.h>
21206 #else
21207 # include <assert.h>
21208 #endif
21209
21210 #undef $ac_func
21211
21212 /* Override any gcc2 internal prototype to avoid an error.  */
21213 #ifdef __cplusplus
21214 extern "C"
21215 {
21216 #endif
21217 /* We use char because int might match the return type of a gcc2
21218    builtin and then its argument prototype would still apply.  */
21219 char $ac_func ();
21220 /* The GNU C library defines this for functions which it implements
21221     to always fail with ENOSYS.  Some functions are actually named
21222     something starting with __ and the normal name is an alias.  */
21223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21224 choke me
21225 #else
21226 char (*f) () = $ac_func;
21227 #endif
21228 #ifdef __cplusplus
21229 }
21230 #endif
21231
21232 int
21233 main ()
21234 {
21235 return f != $ac_func;
21236   ;
21237   return 0;
21238 }
21239 _ACEOF
21240 rm -f conftest.$ac_objext conftest$ac_exeext
21241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21242   (eval $ac_link) 2>conftest.er1
21243   ac_status=$?
21244   grep -v '^ *+' conftest.er1 >conftest.err
21245   rm -f conftest.er1
21246   cat conftest.err >&5
21247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248   (exit $ac_status); } &&
21249          { ac_try='test -z "$ac_c_werror_flag"
21250                          || test ! -s conftest.err'
21251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252   (eval $ac_try) 2>&5
21253   ac_status=$?
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); }; } &&
21256          { ac_try='test -s conftest$ac_exeext'
21257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21258   (eval $ac_try) 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }; }; then
21262   eval "$as_ac_var=yes"
21263 else
21264   echo "$as_me: failed program was:" >&5
21265 sed 's/^/| /' conftest.$ac_ext >&5
21266
21267 eval "$as_ac_var=no"
21268 fi
21269 rm -f conftest.err conftest.$ac_objext \
21270       conftest$ac_exeext conftest.$ac_ext
21271 fi
21272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21274 if test `eval echo '${'$as_ac_var'}'` = yes; then
21275   cat >>confdefs.h <<_ACEOF
21276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21277 _ACEOF
21278  break
21279 fi
21280 done
21281
21282
21283
21284
21285 for ac_header in unistd.h dlfcn.h sys/resource.h
21286 do
21287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21289   echo "$as_me:$LINENO: checking for $ac_header" >&5
21290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21292   echo $ECHO_N "(cached) $ECHO_C" >&6
21293 fi
21294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21296 else
21297   # Is the header compilable?
21298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21300 cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h.  */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h.  */
21306 $ac_includes_default
21307 #include <$ac_header>
21308 _ACEOF
21309 rm -f conftest.$ac_objext
21310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21311   (eval $ac_compile) 2>conftest.er1
21312   ac_status=$?
21313   grep -v '^ *+' conftest.er1 >conftest.err
21314   rm -f conftest.er1
21315   cat conftest.err >&5
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); } &&
21318          { ac_try='test -z "$ac_c_werror_flag"
21319                          || test ! -s conftest.err'
21320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321   (eval $ac_try) 2>&5
21322   ac_status=$?
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); }; } &&
21325          { ac_try='test -s conftest.$ac_objext'
21326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21327   (eval $ac_try) 2>&5
21328   ac_status=$?
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); }; }; then
21331   ac_header_compiler=yes
21332 else
21333   echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21335
21336 ac_header_compiler=no
21337 fi
21338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21340 echo "${ECHO_T}$ac_header_compiler" >&6
21341
21342 # Is the header present?
21343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21345 cat >conftest.$ac_ext <<_ACEOF
21346 /* confdefs.h.  */
21347 _ACEOF
21348 cat confdefs.h >>conftest.$ac_ext
21349 cat >>conftest.$ac_ext <<_ACEOF
21350 /* end confdefs.h.  */
21351 #include <$ac_header>
21352 _ACEOF
21353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21355   ac_status=$?
21356   grep -v '^ *+' conftest.er1 >conftest.err
21357   rm -f conftest.er1
21358   cat conftest.err >&5
21359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360   (exit $ac_status); } >/dev/null; then
21361   if test -s conftest.err; then
21362     ac_cpp_err=$ac_c_preproc_warn_flag
21363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21364   else
21365     ac_cpp_err=
21366   fi
21367 else
21368   ac_cpp_err=yes
21369 fi
21370 if test -z "$ac_cpp_err"; then
21371   ac_header_preproc=yes
21372 else
21373   echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376   ac_header_preproc=no
21377 fi
21378 rm -f conftest.err conftest.$ac_ext
21379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21380 echo "${ECHO_T}$ac_header_preproc" >&6
21381
21382 # So?  What about this header?
21383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21384   yes:no: )
21385     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21387     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21389     ac_header_preproc=yes
21390     ;;
21391   no:yes:* )
21392     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21394     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21395 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21396     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21398     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21399 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21402     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21404     (
21405       cat <<\_ASBOX
21406 ## ---------------------------------- ##
21407 ## Report this to the libjava lists.  ##
21408 ## ---------------------------------- ##
21409 _ASBOX
21410     ) |
21411       sed "s/^/$as_me: WARNING:     /" >&2
21412     ;;
21413 esac
21414 echo "$as_me:$LINENO: checking for $ac_header" >&5
21415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21417   echo $ECHO_N "(cached) $ECHO_C" >&6
21418 else
21419   eval "$as_ac_Header=\$ac_header_preproc"
21420 fi
21421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21423
21424 fi
21425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21426   cat >>confdefs.h <<_ACEOF
21427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21428 _ACEOF
21429
21430 fi
21431
21432 done
21433
21434    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21435    echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21436 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21437 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21438   echo $ECHO_N "(cached) $ECHO_C" >&6
21439 else
21440   ac_check_lib_save_LIBS=$LIBS
21441 LIBS="-ldl  $LIBS"
21442 if test x$gcc_no_link = xyes; then
21443   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21444 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21445    { (exit 1); exit 1; }; }
21446 fi
21447 cat >conftest.$ac_ext <<_ACEOF
21448 /* confdefs.h.  */
21449 _ACEOF
21450 cat confdefs.h >>conftest.$ac_ext
21451 cat >>conftest.$ac_ext <<_ACEOF
21452 /* end confdefs.h.  */
21453
21454 /* Override any gcc2 internal prototype to avoid an error.  */
21455 #ifdef __cplusplus
21456 extern "C"
21457 #endif
21458 /* We use char because int might match the return type of a gcc2
21459    builtin and then its argument prototype would still apply.  */
21460 char dladdr ();
21461 int
21462 main ()
21463 {
21464 dladdr ();
21465   ;
21466   return 0;
21467 }
21468 _ACEOF
21469 rm -f conftest.$ac_objext conftest$ac_exeext
21470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21471   (eval $ac_link) 2>conftest.er1
21472   ac_status=$?
21473   grep -v '^ *+' conftest.er1 >conftest.err
21474   rm -f conftest.er1
21475   cat conftest.err >&5
21476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477   (exit $ac_status); } &&
21478          { ac_try='test -z "$ac_c_werror_flag"
21479                          || test ! -s conftest.err'
21480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481   (eval $ac_try) 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); }; } &&
21485          { ac_try='test -s conftest$ac_exeext'
21486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487   (eval $ac_try) 2>&5
21488   ac_status=$?
21489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490   (exit $ac_status); }; }; then
21491   ac_cv_lib_dl_dladdr=yes
21492 else
21493   echo "$as_me: failed program was:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21495
21496 ac_cv_lib_dl_dladdr=no
21497 fi
21498 rm -f conftest.err conftest.$ac_objext \
21499       conftest$ac_exeext conftest.$ac_ext
21500 LIBS=$ac_check_lib_save_LIBS
21501 fi
21502 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21503 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21504 if test $ac_cv_lib_dl_dladdr = yes; then
21505
21506
21507 cat >>confdefs.h <<\_ACEOF
21508 #define HAVE_DLADDR 1
21509 _ACEOF
21510
21511 else
21512
21513        echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21514 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21515 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21516   echo $ECHO_N "(cached) $ECHO_C" >&6
21517 else
21518   ac_check_lib_save_LIBS=$LIBS
21519 LIBS="-ldld  $LIBS"
21520 if test x$gcc_no_link = xyes; then
21521   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21522 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21523    { (exit 1); exit 1; }; }
21524 fi
21525 cat >conftest.$ac_ext <<_ACEOF
21526 /* confdefs.h.  */
21527 _ACEOF
21528 cat confdefs.h >>conftest.$ac_ext
21529 cat >>conftest.$ac_ext <<_ACEOF
21530 /* end confdefs.h.  */
21531
21532 /* Override any gcc2 internal prototype to avoid an error.  */
21533 #ifdef __cplusplus
21534 extern "C"
21535 #endif
21536 /* We use char because int might match the return type of a gcc2
21537    builtin and then its argument prototype would still apply.  */
21538 char dladdr ();
21539 int
21540 main ()
21541 {
21542 dladdr ();
21543   ;
21544   return 0;
21545 }
21546 _ACEOF
21547 rm -f conftest.$ac_objext conftest$ac_exeext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21549   (eval $ac_link) 2>conftest.er1
21550   ac_status=$?
21551   grep -v '^ *+' conftest.er1 >conftest.err
21552   rm -f conftest.er1
21553   cat conftest.err >&5
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } &&
21556          { ac_try='test -z "$ac_c_werror_flag"
21557                          || test ! -s conftest.err'
21558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559   (eval $ac_try) 2>&5
21560   ac_status=$?
21561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562   (exit $ac_status); }; } &&
21563          { ac_try='test -s conftest$ac_exeext'
21564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565   (eval $ac_try) 2>&5
21566   ac_status=$?
21567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568   (exit $ac_status); }; }; then
21569   ac_cv_lib_dld_dladdr=yes
21570 else
21571   echo "$as_me: failed program was:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21573
21574 ac_cv_lib_dld_dladdr=no
21575 fi
21576 rm -f conftest.err conftest.$ac_objext \
21577       conftest$ac_exeext conftest.$ac_ext
21578 LIBS=$ac_check_lib_save_LIBS
21579 fi
21580 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21581 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21582 if test $ac_cv_lib_dld_dladdr = yes; then
21583
21584
21585 cat >>confdefs.h <<\_ACEOF
21586 #define HAVE_DLADDR 1
21587 _ACEOF
21588
21589 fi
21590
21591 fi
21592
21593
21594    if test x"$cross_compiling" = x"no"; then
21595      echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21596 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21597 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21598   echo $ECHO_N "(cached) $ECHO_C" >&6
21599 else
21600   test "$cross_compiling" = yes &&
21601   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21602 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21603    { (exit 1); exit 1; }; }
21604 if test -r "/proc/self/exe"; then
21605   ac_cv_file__proc_self_exe=yes
21606 else
21607   ac_cv_file__proc_self_exe=no
21608 fi
21609 fi
21610 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21611 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21612 if test $ac_cv_file__proc_self_exe = yes; then
21613
21614 cat >>confdefs.h <<_ACEOF
21615 #define HAVE__PROC_SELF_EXE 1
21616 _ACEOF
21617
21618
21619
21620 cat >>confdefs.h <<\_ACEOF
21621 #define HAVE_PROC_SELF_EXE 1
21622 _ACEOF
21623
21624 fi
21625
21626      echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21627 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21628 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21629   echo $ECHO_N "(cached) $ECHO_C" >&6
21630 else
21631   test "$cross_compiling" = yes &&
21632   { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21633 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21634    { (exit 1); exit 1; }; }
21635 if test -r "/proc/self/maps"; then
21636   ac_cv_file__proc_self_maps=yes
21637 else
21638   ac_cv_file__proc_self_maps=no
21639 fi
21640 fi
21641 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21642 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21643 if test $ac_cv_file__proc_self_maps = yes; then
21644
21645 cat >>confdefs.h <<_ACEOF
21646 #define HAVE__PROC_SELF_MAPS 1
21647 _ACEOF
21648
21649
21650
21651 cat >>confdefs.h <<\_ACEOF
21652 #define HAVE_PROC_SELF_MAPS 1
21653 _ACEOF
21654
21655 fi
21656
21657    else
21658      case $host in
21659      *-linux*)
21660
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_PROC_SELF_EXE 1
21663 _ACEOF
21664
21665
21666 cat >>confdefs.h <<\_ACEOF
21667 #define HAVE_PROC_SELF_MAPS 1
21668 _ACEOF
21669
21670        ;;
21671      esac
21672    fi
21673
21674
21675       if test "X$prefix" = "XNONE"; then
21676     acl_final_prefix="$ac_default_prefix"
21677   else
21678     acl_final_prefix="$prefix"
21679   fi
21680   if test "X$exec_prefix" = "XNONE"; then
21681     acl_final_exec_prefix='${prefix}'
21682   else
21683     acl_final_exec_prefix="$exec_prefix"
21684   fi
21685   acl_save_prefix="$prefix"
21686   prefix="$acl_final_prefix"
21687   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21688   prefix="$acl_save_prefix"
21689
21690
21691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21692 if test "${with_gnu_ld+set}" = set; then
21693   withval="$with_gnu_ld"
21694   test "$withval" = no || with_gnu_ld=yes
21695 else
21696   with_gnu_ld=no
21697 fi;
21698 # Prepare PATH_SEPARATOR.
21699 # The user is always right.
21700 if test "${PATH_SEPARATOR+set}" != set; then
21701   echo "#! /bin/sh" >conf$$.sh
21702   echo  "exit 0"   >>conf$$.sh
21703   chmod +x conf$$.sh
21704   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21705     PATH_SEPARATOR=';'
21706   else
21707     PATH_SEPARATOR=:
21708   fi
21709   rm -f conf$$.sh
21710 fi
21711 ac_prog=ld
21712 if test "$GCC" = yes; then
21713   # Check if gcc -print-prog-name=ld gives a path.
21714   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21715 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21716   case $host in
21717   *-*-mingw*)
21718     # gcc leaves a trailing carriage return which upsets mingw
21719     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21720   *)
21721     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21722   esac
21723   case $ac_prog in
21724     # Accept absolute paths.
21725     [\\/]* | [A-Za-z]:[\\/]*)
21726       re_direlt='/[^/][^/]*/\.\./'
21727       # Canonicalize the path of ld
21728       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21729       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21730         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21731       done
21732       test -z "$LD" && LD="$ac_prog"
21733       ;;
21734   "")
21735     # If it fails, then pretend we aren't using GCC.
21736     ac_prog=ld
21737     ;;
21738   *)
21739     # If it is relative, then search for the first ld in PATH.
21740     with_gnu_ld=unknown
21741     ;;
21742   esac
21743 elif test "$with_gnu_ld" = yes; then
21744   echo "$as_me:$LINENO: checking for GNU ld" >&5
21745 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21746 else
21747   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21748 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21749 fi
21750 if test "${acl_cv_path_LD+set}" = set; then
21751   echo $ECHO_N "(cached) $ECHO_C" >&6
21752 else
21753   if test -z "$LD"; then
21754   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21755   for ac_dir in $PATH; do
21756     test -z "$ac_dir" && ac_dir=.
21757     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21758       acl_cv_path_LD="$ac_dir/$ac_prog"
21759       # Check to see if the program is GNU ld.  I'd rather use --version,
21760       # but apparently some GNU ld's only accept -v.
21761       # Break only if it was the GNU/non-GNU ld that we prefer.
21762       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21763         test "$with_gnu_ld" != no && break
21764       else
21765         test "$with_gnu_ld" != yes && break
21766       fi
21767     fi
21768   done
21769   IFS="$ac_save_ifs"
21770 else
21771   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21772 fi
21773 fi
21774
21775 LD="$acl_cv_path_LD"
21776 if test -n "$LD"; then
21777   echo "$as_me:$LINENO: result: $LD" >&5
21778 echo "${ECHO_T}$LD" >&6
21779 else
21780   echo "$as_me:$LINENO: result: no" >&5
21781 echo "${ECHO_T}no" >&6
21782 fi
21783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21785    { (exit 1); exit 1; }; }
21786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21788 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21789   echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21793   acl_cv_prog_gnu_ld=yes
21794 else
21795   acl_cv_prog_gnu_ld=no
21796 fi
21797 fi
21798 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21799 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21800 with_gnu_ld=$acl_cv_prog_gnu_ld
21801
21802
21803
21804                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21805 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21806 if test "${acl_cv_rpath+set}" = set; then
21807   echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809
21810     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21811     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21812     . ./conftest.sh
21813     rm -f ./conftest.sh
21814     acl_cv_rpath=done
21815
21816 fi
21817 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21818 echo "${ECHO_T}$acl_cv_rpath" >&6
21819   wl="$acl_cv_wl"
21820   libext="$acl_cv_libext"
21821   shlibext="$acl_cv_shlibext"
21822   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21823   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21824   hardcode_direct="$acl_cv_hardcode_direct"
21825   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21826     # Check whether --enable-rpath or --disable-rpath was given.
21827 if test "${enable_rpath+set}" = set; then
21828   enableval="$enable_rpath"
21829   :
21830 else
21831   enable_rpath=yes
21832 fi;
21833
21834
21835
21836
21837
21838
21839
21840     use_additional=yes
21841
21842   acl_save_prefix="$prefix"
21843   prefix="$acl_final_prefix"
21844   acl_save_exec_prefix="$exec_prefix"
21845   exec_prefix="$acl_final_exec_prefix"
21846
21847     eval additional_includedir=\"$includedir\"
21848     eval additional_libdir=\"$libdir\"
21849
21850   exec_prefix="$acl_save_exec_prefix"
21851   prefix="$acl_save_prefix"
21852
21853
21854 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21855 if test "${with_libiconv_prefix+set}" = set; then
21856   withval="$with_libiconv_prefix"
21857
21858     if test "X$withval" = "Xno"; then
21859       use_additional=no
21860     else
21861       if test "X$withval" = "X"; then
21862
21863   acl_save_prefix="$prefix"
21864   prefix="$acl_final_prefix"
21865   acl_save_exec_prefix="$exec_prefix"
21866   exec_prefix="$acl_final_exec_prefix"
21867
21868           eval additional_includedir=\"$includedir\"
21869           eval additional_libdir=\"$libdir\"
21870
21871   exec_prefix="$acl_save_exec_prefix"
21872   prefix="$acl_save_prefix"
21873
21874       else
21875         additional_includedir="$withval/include"
21876         additional_libdir="$withval/lib"
21877       fi
21878     fi
21879
21880 fi;
21881       LIBICONV=
21882   LTLIBICONV=
21883   INCICONV=
21884   rpathdirs=
21885   ltrpathdirs=
21886   names_already_handled=
21887   names_next_round='iconv '
21888   while test -n "$names_next_round"; do
21889     names_this_round="$names_next_round"
21890     names_next_round=
21891     for name in $names_this_round; do
21892       already_handled=
21893       for n in $names_already_handled; do
21894         if test "$n" = "$name"; then
21895           already_handled=yes
21896           break
21897         fi
21898       done
21899       if test -z "$already_handled"; then
21900         names_already_handled="$names_already_handled $name"
21901                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21902         eval value=\"\$HAVE_LIB$uppername\"
21903         if test -n "$value"; then
21904           if test "$value" = yes; then
21905             eval value=\"\$LIB$uppername\"
21906             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21907             eval value=\"\$LTLIB$uppername\"
21908             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21909           else
21910                                     :
21911           fi
21912         else
21913                               found_dir=
21914           found_la=
21915           found_so=
21916           found_a=
21917           if test $use_additional = yes; then
21918             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21919               found_dir="$additional_libdir"
21920               found_so="$additional_libdir/lib$name.$shlibext"
21921               if test -f "$additional_libdir/lib$name.la"; then
21922                 found_la="$additional_libdir/lib$name.la"
21923               fi
21924             else
21925               if test -f "$additional_libdir/lib$name.$libext"; then
21926                 found_dir="$additional_libdir"
21927                 found_a="$additional_libdir/lib$name.$libext"
21928                 if test -f "$additional_libdir/lib$name.la"; then
21929                   found_la="$additional_libdir/lib$name.la"
21930                 fi
21931               fi
21932             fi
21933           fi
21934           if test "X$found_dir" = "X"; then
21935             for x in $LDFLAGS $LTLIBICONV; do
21936
21937   acl_save_prefix="$prefix"
21938   prefix="$acl_final_prefix"
21939   acl_save_exec_prefix="$exec_prefix"
21940   exec_prefix="$acl_final_exec_prefix"
21941   eval x=\"$x\"
21942   exec_prefix="$acl_save_exec_prefix"
21943   prefix="$acl_save_prefix"
21944
21945               case "$x" in
21946                 -L*)
21947                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21948                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21949                     found_dir="$dir"
21950                     found_so="$dir/lib$name.$shlibext"
21951                     if test -f "$dir/lib$name.la"; then
21952                       found_la="$dir/lib$name.la"
21953                     fi
21954                   else
21955                     if test -f "$dir/lib$name.$libext"; then
21956                       found_dir="$dir"
21957                       found_a="$dir/lib$name.$libext"
21958                       if test -f "$dir/lib$name.la"; then
21959                         found_la="$dir/lib$name.la"
21960                       fi
21961                     fi
21962                   fi
21963                   ;;
21964               esac
21965               if test "X$found_dir" != "X"; then
21966                 break
21967               fi
21968             done
21969           fi
21970           if test "X$found_dir" != "X"; then
21971                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21972             if test "X$found_so" != "X"; then
21973                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21974                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21975               else
21976                                                                                 haveit=
21977                 for x in $ltrpathdirs; do
21978                   if test "X$x" = "X$found_dir"; then
21979                     haveit=yes
21980                     break
21981                   fi
21982                 done
21983                 if test -z "$haveit"; then
21984                   ltrpathdirs="$ltrpathdirs $found_dir"
21985                 fi
21986                                 if test "$hardcode_direct" = yes; then
21987                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21988                 else
21989                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21990                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21991                                                             haveit=
21992                     for x in $rpathdirs; do
21993                       if test "X$x" = "X$found_dir"; then
21994                         haveit=yes
21995                         break
21996                       fi
21997                     done
21998                     if test -z "$haveit"; then
21999                       rpathdirs="$rpathdirs $found_dir"
22000                     fi
22001                   else
22002                                                                                 haveit=
22003                     for x in $LDFLAGS $LIBICONV; do
22004
22005   acl_save_prefix="$prefix"
22006   prefix="$acl_final_prefix"
22007   acl_save_exec_prefix="$exec_prefix"
22008   exec_prefix="$acl_final_exec_prefix"
22009   eval x=\"$x\"
22010   exec_prefix="$acl_save_exec_prefix"
22011   prefix="$acl_save_prefix"
22012
22013                       if test "X$x" = "X-L$found_dir"; then
22014                         haveit=yes
22015                         break
22016                       fi
22017                     done
22018                     if test -z "$haveit"; then
22019                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
22020                     fi
22021                     if test "$hardcode_minus_L" != no; then
22022                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
22023                     else
22024                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22025                     fi
22026                   fi
22027                 fi
22028               fi
22029             else
22030               if test "X$found_a" != "X"; then
22031                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
22032               else
22033                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
22034               fi
22035             fi
22036                         additional_includedir=
22037             case "$found_dir" in
22038               */lib | */lib/)
22039                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
22040                 additional_includedir="$basedir/include"
22041                 ;;
22042             esac
22043             if test "X$additional_includedir" != "X"; then
22044                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
22045                 haveit=
22046                 if test "X$additional_includedir" = "X/usr/local/include"; then
22047                   if test -n "$GCC"; then
22048                     case $host_os in
22049                       linux*) haveit=yes;;
22050                     esac
22051                   fi
22052                 fi
22053                 if test -z "$haveit"; then
22054                   for x in $CPPFLAGS $INCICONV; do
22055
22056   acl_save_prefix="$prefix"
22057   prefix="$acl_final_prefix"
22058   acl_save_exec_prefix="$exec_prefix"
22059   exec_prefix="$acl_final_exec_prefix"
22060   eval x=\"$x\"
22061   exec_prefix="$acl_save_exec_prefix"
22062   prefix="$acl_save_prefix"
22063
22064                     if test "X$x" = "X-I$additional_includedir"; then
22065                       haveit=yes
22066                       break
22067                     fi
22068                   done
22069                   if test -z "$haveit"; then
22070                     if test -d "$additional_includedir"; then
22071                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
22072                     fi
22073                   fi
22074                 fi
22075               fi
22076             fi
22077                         if test -n "$found_la"; then
22078                                                         save_libdir="$libdir"
22079               case "$found_la" in
22080                 */* | *\\*) . "$found_la" ;;
22081                 *) . "./$found_la" ;;
22082               esac
22083               libdir="$save_libdir"
22084                             for dep in $dependency_libs; do
22085                 case "$dep" in
22086                   -L*)
22087                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22088                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
22089                       haveit=
22090                       if test "X$additional_libdir" = "X/usr/local/lib"; then
22091                         if test -n "$GCC"; then
22092                           case $host_os in
22093                             linux*) haveit=yes;;
22094                           esac
22095                         fi
22096                       fi
22097                       if test -z "$haveit"; then
22098                         haveit=
22099                         for x in $LDFLAGS $LIBICONV; do
22100
22101   acl_save_prefix="$prefix"
22102   prefix="$acl_final_prefix"
22103   acl_save_exec_prefix="$exec_prefix"
22104   exec_prefix="$acl_final_exec_prefix"
22105   eval x=\"$x\"
22106   exec_prefix="$acl_save_exec_prefix"
22107   prefix="$acl_save_prefix"
22108
22109                           if test "X$x" = "X-L$additional_libdir"; then
22110                             haveit=yes
22111                             break
22112                           fi
22113                         done
22114                         if test -z "$haveit"; then
22115                           if test -d "$additional_libdir"; then
22116                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
22117                           fi
22118                         fi
22119                         haveit=
22120                         for x in $LDFLAGS $LTLIBICONV; do
22121
22122   acl_save_prefix="$prefix"
22123   prefix="$acl_final_prefix"
22124   acl_save_exec_prefix="$exec_prefix"
22125   exec_prefix="$acl_final_exec_prefix"
22126   eval x=\"$x\"
22127   exec_prefix="$acl_save_exec_prefix"
22128   prefix="$acl_save_prefix"
22129
22130                           if test "X$x" = "X-L$additional_libdir"; then
22131                             haveit=yes
22132                             break
22133                           fi
22134                         done
22135                         if test -z "$haveit"; then
22136                           if test -d "$additional_libdir"; then
22137                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
22138                           fi
22139                         fi
22140                       fi
22141                     fi
22142                     ;;
22143                   -R*)
22144                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
22145                     if test "$enable_rpath" != no; then
22146                                                                   haveit=
22147                       for x in $rpathdirs; do
22148                         if test "X$x" = "X$dir"; then
22149                           haveit=yes
22150                           break
22151                         fi
22152                       done
22153                       if test -z "$haveit"; then
22154                         rpathdirs="$rpathdirs $dir"
22155                       fi
22156                                                                   haveit=
22157                       for x in $ltrpathdirs; do
22158                         if test "X$x" = "X$dir"; then
22159                           haveit=yes
22160                           break
22161                         fi
22162                       done
22163                       if test -z "$haveit"; then
22164                         ltrpathdirs="$ltrpathdirs $dir"
22165                       fi
22166                     fi
22167                     ;;
22168                   -l*)
22169                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22170                     ;;
22171                   *.la)
22172                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22173                     ;;
22174                   *)
22175                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22176                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22177                     ;;
22178                 esac
22179               done
22180             fi
22181           else
22182                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22183             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22184           fi
22185         fi
22186       fi
22187     done
22188   done
22189   if test "X$rpathdirs" != "X"; then
22190     if test -n "$hardcode_libdir_separator"; then
22191                         alldirs=
22192       for found_dir in $rpathdirs; do
22193         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22194       done
22195             acl_save_libdir="$libdir"
22196       libdir="$alldirs"
22197       eval flag=\"$hardcode_libdir_flag_spec\"
22198       libdir="$acl_save_libdir"
22199       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22200     else
22201             for found_dir in $rpathdirs; do
22202         acl_save_libdir="$libdir"
22203         libdir="$found_dir"
22204         eval flag=\"$hardcode_libdir_flag_spec\"
22205         libdir="$acl_save_libdir"
22206         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22207       done
22208     fi
22209   fi
22210   if test "X$ltrpathdirs" != "X"; then
22211             for found_dir in $ltrpathdirs; do
22212       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22213     done
22214   fi
22215
22216
22217
22218
22219
22220
22221
22222           am_save_CPPFLAGS="$CPPFLAGS"
22223
22224   for element in $INCICONV; do
22225     haveit=
22226     for x in $CPPFLAGS; do
22227
22228   acl_save_prefix="$prefix"
22229   prefix="$acl_final_prefix"
22230   acl_save_exec_prefix="$exec_prefix"
22231   exec_prefix="$acl_final_exec_prefix"
22232   eval x=\"$x\"
22233   exec_prefix="$acl_save_exec_prefix"
22234   prefix="$acl_save_prefix"
22235
22236       if test "X$x" = "X$element"; then
22237         haveit=yes
22238         break
22239       fi
22240     done
22241     if test -z "$haveit"; then
22242       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22243     fi
22244   done
22245
22246
22247   echo "$as_me:$LINENO: checking for iconv" >&5
22248 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22249 if test "${am_cv_func_iconv+set}" = set; then
22250   echo $ECHO_N "(cached) $ECHO_C" >&6
22251 else
22252
22253     am_cv_func_iconv="no, consider installing GNU libiconv"
22254     am_cv_lib_iconv=no
22255     if test x$gcc_no_link = xyes; then
22256   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22258    { (exit 1); exit 1; }; }
22259 fi
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h.  */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h.  */
22266 #include <stdlib.h>
22267 #include <iconv.h>
22268 int
22269 main ()
22270 {
22271 iconv_t cd = iconv_open("","");
22272        iconv(cd,NULL,NULL,NULL,NULL);
22273        iconv_close(cd);
22274   ;
22275   return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22280   (eval $ac_link) 2>conftest.er1
22281   ac_status=$?
22282   grep -v '^ *+' conftest.er1 >conftest.err
22283   rm -f conftest.er1
22284   cat conftest.err >&5
22285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286   (exit $ac_status); } &&
22287          { ac_try='test -z "$ac_c_werror_flag"
22288                          || test ! -s conftest.err'
22289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290   (eval $ac_try) 2>&5
22291   ac_status=$?
22292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293   (exit $ac_status); }; } &&
22294          { ac_try='test -s conftest$ac_exeext'
22295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296   (eval $ac_try) 2>&5
22297   ac_status=$?
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); }; }; then
22300   am_cv_func_iconv=yes
22301 else
22302   echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305 fi
22306 rm -f conftest.err conftest.$ac_objext \
22307       conftest$ac_exeext conftest.$ac_ext
22308     if test "$am_cv_func_iconv" != yes; then
22309       am_save_LIBS="$LIBS"
22310       LIBS="$LIBS $LIBICONV"
22311       if test x$gcc_no_link = xyes; then
22312   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22314    { (exit 1); exit 1; }; }
22315 fi
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322 #include <stdlib.h>
22323 #include <iconv.h>
22324 int
22325 main ()
22326 {
22327 iconv_t cd = iconv_open("","");
22328          iconv(cd,NULL,NULL,NULL,NULL);
22329          iconv_close(cd);
22330   ;
22331   return 0;
22332 }
22333 _ACEOF
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22336   (eval $ac_link) 2>conftest.er1
22337   ac_status=$?
22338   grep -v '^ *+' conftest.er1 >conftest.err
22339   rm -f conftest.er1
22340   cat conftest.err >&5
22341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342   (exit $ac_status); } &&
22343          { ac_try='test -z "$ac_c_werror_flag"
22344                          || test ! -s conftest.err'
22345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22346   (eval $ac_try) 2>&5
22347   ac_status=$?
22348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349   (exit $ac_status); }; } &&
22350          { ac_try='test -s conftest$ac_exeext'
22351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352   (eval $ac_try) 2>&5
22353   ac_status=$?
22354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355   (exit $ac_status); }; }; then
22356   am_cv_lib_iconv=yes
22357         am_cv_func_iconv=yes
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362 fi
22363 rm -f conftest.err conftest.$ac_objext \
22364       conftest$ac_exeext conftest.$ac_ext
22365       LIBS="$am_save_LIBS"
22366     fi
22367
22368 fi
22369 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22370 echo "${ECHO_T}$am_cv_func_iconv" >&6
22371   if test "$am_cv_func_iconv" = yes; then
22372
22373 cat >>confdefs.h <<\_ACEOF
22374 #define HAVE_ICONV 1
22375 _ACEOF
22376
22377   fi
22378   if test "$am_cv_lib_iconv" = yes; then
22379     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22380 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22381     echo "$as_me:$LINENO: result: $LIBICONV" >&5
22382 echo "${ECHO_T}$LIBICONV" >&6
22383   else
22384             CPPFLAGS="$am_save_CPPFLAGS"
22385     LIBICONV=
22386     LTLIBICONV=
22387   fi
22388
22389
22390
22391   if test "$am_cv_func_iconv" = yes; then
22392     echo "$as_me:$LINENO: checking for iconv declaration" >&5
22393 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22394     if test "${am_cv_proto_iconv+set}" = set; then
22395   echo $ECHO_N "(cached) $ECHO_C" >&6
22396 else
22397
22398       cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h.  */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h.  */
22404
22405 #include <stdlib.h>
22406 #include <iconv.h>
22407 extern
22408 #ifdef __cplusplus
22409 "C"
22410 #endif
22411 #if defined(__STDC__) || defined(__cplusplus)
22412 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22413 #else
22414 size_t iconv();
22415 #endif
22416
22417 int
22418 main ()
22419 {
22420
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext
22426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22427   (eval $ac_compile) 2>conftest.er1
22428   ac_status=$?
22429   grep -v '^ *+' conftest.er1 >conftest.err
22430   rm -f conftest.er1
22431   cat conftest.err >&5
22432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433   (exit $ac_status); } &&
22434          { ac_try='test -z "$ac_c_werror_flag"
22435                          || test ! -s conftest.err'
22436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437   (eval $ac_try) 2>&5
22438   ac_status=$?
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); }; } &&
22441          { ac_try='test -s conftest.$ac_objext'
22442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22443   (eval $ac_try) 2>&5
22444   ac_status=$?
22445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446   (exit $ac_status); }; }; then
22447   am_cv_proto_iconv_arg1=""
22448 else
22449   echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22451
22452 am_cv_proto_iconv_arg1="const"
22453 fi
22454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22455       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);"
22456 fi
22457
22458     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22459     echo "$as_me:$LINENO: result: ${ac_t:-
22460          }$am_cv_proto_iconv" >&5
22461 echo "${ECHO_T}${ac_t:-
22462          }$am_cv_proto_iconv" >&6
22463
22464 cat >>confdefs.h <<_ACEOF
22465 #define ICONV_CONST $am_cv_proto_iconv_arg1
22466 _ACEOF
22467
22468   fi
22469
22470
22471   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22472 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22473 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22474   echo $ECHO_N "(cached) $ECHO_C" >&6
22475 else
22476   if test x$gcc_no_link = xyes; then
22477   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22478 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22479    { (exit 1); exit 1; }; }
22480 fi
22481 cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 #include <locale.h>
22488 int
22489 main ()
22490 {
22491 return LC_MESSAGES
22492   ;
22493   return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22498   (eval $ac_link) 2>conftest.er1
22499   ac_status=$?
22500   grep -v '^ *+' conftest.er1 >conftest.err
22501   rm -f conftest.er1
22502   cat conftest.err >&5
22503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504   (exit $ac_status); } &&
22505          { ac_try='test -z "$ac_c_werror_flag"
22506                          || test ! -s conftest.err'
22507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22508   (eval $ac_try) 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest$ac_exeext'
22513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22514   (eval $ac_try) 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   am_cv_val_LC_MESSAGES=yes
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523 am_cv_val_LC_MESSAGES=no
22524 fi
22525 rm -f conftest.err conftest.$ac_objext \
22526       conftest$ac_exeext conftest.$ac_ext
22527 fi
22528 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22529 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22530   if test $am_cv_val_LC_MESSAGES = yes; then
22531
22532 cat >>confdefs.h <<\_ACEOF
22533 #define HAVE_LC_MESSAGES 1
22534 _ACEOF
22535
22536   fi
22537
22538    echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22539 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22540 if test "${ac_cv_struct_tm+set}" = set; then
22541   echo $ECHO_N "(cached) $ECHO_C" >&6
22542 else
22543   cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h.  */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h.  */
22549 #include <sys/types.h>
22550 #include <time.h>
22551
22552 int
22553 main ()
22554 {
22555 struct tm *tp; tp->tm_sec;
22556   ;
22557   return 0;
22558 }
22559 _ACEOF
22560 rm -f conftest.$ac_objext
22561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22562   (eval $ac_compile) 2>conftest.er1
22563   ac_status=$?
22564   grep -v '^ *+' conftest.er1 >conftest.err
22565   rm -f conftest.er1
22566   cat conftest.err >&5
22567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568   (exit $ac_status); } &&
22569          { ac_try='test -z "$ac_c_werror_flag"
22570                          || test ! -s conftest.err'
22571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22572   (eval $ac_try) 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); }; } &&
22576          { ac_try='test -s conftest.$ac_objext'
22577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578   (eval $ac_try) 2>&5
22579   ac_status=$?
22580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581   (exit $ac_status); }; }; then
22582   ac_cv_struct_tm=time.h
22583 else
22584   echo "$as_me: failed program was:" >&5
22585 sed 's/^/| /' conftest.$ac_ext >&5
22586
22587 ac_cv_struct_tm=sys/time.h
22588 fi
22589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22590 fi
22591 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22592 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22593 if test $ac_cv_struct_tm = sys/time.h; then
22594
22595 cat >>confdefs.h <<\_ACEOF
22596 #define TM_IN_SYS_TIME 1
22597 _ACEOF
22598
22599 fi
22600
22601 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22602 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22603 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612 #include <sys/types.h>
22613 #include <$ac_cv_struct_tm>
22614
22615
22616 int
22617 main ()
22618 {
22619 static struct tm ac_aggr;
22620 if (ac_aggr.tm_zone)
22621 return 0;
22622   ;
22623   return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest.$ac_objext
22627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22628   (eval $ac_compile) 2>conftest.er1
22629   ac_status=$?
22630   grep -v '^ *+' conftest.er1 >conftest.err
22631   rm -f conftest.er1
22632   cat conftest.err >&5
22633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634   (exit $ac_status); } &&
22635          { ac_try='test -z "$ac_c_werror_flag"
22636                          || test ! -s conftest.err'
22637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22638   (eval $ac_try) 2>&5
22639   ac_status=$?
22640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641   (exit $ac_status); }; } &&
22642          { ac_try='test -s conftest.$ac_objext'
22643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22644   (eval $ac_try) 2>&5
22645   ac_status=$?
22646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647   (exit $ac_status); }; }; then
22648   ac_cv_member_struct_tm_tm_zone=yes
22649 else
22650   echo "$as_me: failed program was:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22652
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h.  */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h.  */
22659 #include <sys/types.h>
22660 #include <$ac_cv_struct_tm>
22661
22662
22663 int
22664 main ()
22665 {
22666 static struct tm ac_aggr;
22667 if (sizeof ac_aggr.tm_zone)
22668 return 0;
22669   ;
22670   return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675   (eval $ac_compile) 2>conftest.er1
22676   ac_status=$?
22677   grep -v '^ *+' conftest.er1 >conftest.err
22678   rm -f conftest.er1
22679   cat conftest.err >&5
22680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681   (exit $ac_status); } &&
22682          { ac_try='test -z "$ac_c_werror_flag"
22683                          || test ! -s conftest.err'
22684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685   (eval $ac_try) 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691   (eval $ac_try) 2>&5
22692   ac_status=$?
22693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694   (exit $ac_status); }; }; then
22695   ac_cv_member_struct_tm_tm_zone=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700 ac_cv_member_struct_tm_tm_zone=no
22701 fi
22702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22703 fi
22704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22705 fi
22706 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22707 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22708 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22709
22710 cat >>confdefs.h <<_ACEOF
22711 #define HAVE_STRUCT_TM_TM_ZONE 1
22712 _ACEOF
22713
22714
22715 fi
22716
22717 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22718
22719 cat >>confdefs.h <<\_ACEOF
22720 #define HAVE_TM_ZONE 1
22721 _ACEOF
22722
22723 else
22724   echo "$as_me:$LINENO: checking for tzname" >&5
22725 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22726 if test "${ac_cv_var_tzname+set}" = set; then
22727   echo $ECHO_N "(cached) $ECHO_C" >&6
22728 else
22729   if test x$gcc_no_link = xyes; then
22730   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22732    { (exit 1); exit 1; }; }
22733 fi
22734 cat >conftest.$ac_ext <<_ACEOF
22735 /* confdefs.h.  */
22736 _ACEOF
22737 cat confdefs.h >>conftest.$ac_ext
22738 cat >>conftest.$ac_ext <<_ACEOF
22739 /* end confdefs.h.  */
22740 #include <time.h>
22741 #ifndef tzname /* For SGI.  */
22742 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
22743 #endif
22744
22745 int
22746 main ()
22747 {
22748 atoi(*tzname);
22749   ;
22750   return 0;
22751 }
22752 _ACEOF
22753 rm -f conftest.$ac_objext conftest$ac_exeext
22754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22755   (eval $ac_link) 2>conftest.er1
22756   ac_status=$?
22757   grep -v '^ *+' conftest.er1 >conftest.err
22758   rm -f conftest.er1
22759   cat conftest.err >&5
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } &&
22762          { ac_try='test -z "$ac_c_werror_flag"
22763                          || test ! -s conftest.err'
22764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22765   (eval $ac_try) 2>&5
22766   ac_status=$?
22767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768   (exit $ac_status); }; } &&
22769          { ac_try='test -s conftest$ac_exeext'
22770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771   (eval $ac_try) 2>&5
22772   ac_status=$?
22773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774   (exit $ac_status); }; }; then
22775   ac_cv_var_tzname=yes
22776 else
22777   echo "$as_me: failed program was:" >&5
22778 sed 's/^/| /' conftest.$ac_ext >&5
22779
22780 ac_cv_var_tzname=no
22781 fi
22782 rm -f conftest.err conftest.$ac_objext \
22783       conftest$ac_exeext conftest.$ac_ext
22784 fi
22785 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22786 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22787   if test $ac_cv_var_tzname = yes; then
22788
22789 cat >>confdefs.h <<\_ACEOF
22790 #define HAVE_TZNAME 1
22791 _ACEOF
22792
22793   fi
22794 fi
22795
22796
22797
22798 for ac_func in gethostbyname_r
22799 do
22800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22801 echo "$as_me:$LINENO: checking for $ac_func" >&5
22802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22803 if eval "test \"\${$as_ac_var+set}\" = set"; then
22804   echo $ECHO_N "(cached) $ECHO_C" >&6
22805 else
22806   if test x$gcc_no_link = xyes; then
22807   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22809    { (exit 1); exit 1; }; }
22810 fi
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h.  */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h.  */
22817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22819 #define $ac_func innocuous_$ac_func
22820
22821 /* System header to define __stub macros and hopefully few prototypes,
22822     which can conflict with char $ac_func (); below.
22823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22824     <limits.h> exists even on freestanding compilers.  */
22825
22826 #ifdef __STDC__
22827 # include <limits.h>
22828 #else
22829 # include <assert.h>
22830 #endif
22831
22832 #undef $ac_func
22833
22834 /* Override any gcc2 internal prototype to avoid an error.  */
22835 #ifdef __cplusplus
22836 extern "C"
22837 {
22838 #endif
22839 /* We use char because int might match the return type of a gcc2
22840    builtin and then its argument prototype would still apply.  */
22841 char $ac_func ();
22842 /* The GNU C library defines this for functions which it implements
22843     to always fail with ENOSYS.  Some functions are actually named
22844     something starting with __ and the normal name is an alias.  */
22845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22846 choke me
22847 #else
22848 char (*f) () = $ac_func;
22849 #endif
22850 #ifdef __cplusplus
22851 }
22852 #endif
22853
22854 int
22855 main ()
22856 {
22857 return f != $ac_func;
22858   ;
22859   return 0;
22860 }
22861 _ACEOF
22862 rm -f conftest.$ac_objext conftest$ac_exeext
22863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22864   (eval $ac_link) 2>conftest.er1
22865   ac_status=$?
22866   grep -v '^ *+' conftest.er1 >conftest.err
22867   rm -f conftest.er1
22868   cat conftest.err >&5
22869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870   (exit $ac_status); } &&
22871          { ac_try='test -z "$ac_c_werror_flag"
22872                          || test ! -s conftest.err'
22873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874   (eval $ac_try) 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; } &&
22878          { ac_try='test -s conftest$ac_exeext'
22879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880   (eval $ac_try) 2>&5
22881   ac_status=$?
22882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883   (exit $ac_status); }; }; then
22884   eval "$as_ac_var=yes"
22885 else
22886   echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22888
22889 eval "$as_ac_var=no"
22890 fi
22891 rm -f conftest.err conftest.$ac_objext \
22892       conftest$ac_exeext conftest.$ac_ext
22893 fi
22894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22896 if test `eval echo '${'$as_ac_var'}'` = yes; then
22897   cat >>confdefs.h <<_ACEOF
22898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22899 _ACEOF
22900
22901
22902 cat >>confdefs.h <<\_ACEOF
22903 #define HAVE_GETHOSTBYNAME_R 1
22904 _ACEOF
22905
22906      # There are two different kinds of gethostbyname_r.
22907      # We look for the one that returns `int'.
22908      # Hopefully this check is robust enough.
22909      cat >conftest.$ac_ext <<_ACEOF
22910 /* confdefs.h.  */
22911 _ACEOF
22912 cat confdefs.h >>conftest.$ac_ext
22913 cat >>conftest.$ac_ext <<_ACEOF
22914 /* end confdefs.h.  */
22915 #include <netdb.h>
22916
22917 _ACEOF
22918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22919   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22920
22921
22922 cat >>confdefs.h <<\_ACEOF
22923 #define GETHOSTBYNAME_R_RETURNS_INT 1
22924 _ACEOF
22925
22926 fi
22927 rm -f conftest*
22928
22929
22930      case " $GCINCS " in
22931      *" -D_REENTRANT "*) ;;
22932      *)
22933                 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22934 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22935 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22936   echo $ECHO_N "(cached) $ECHO_C" >&6
22937 else
22938    ac_ext=cc
22939 ac_cpp='$CXXCPP $CPPFLAGS'
22940 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22941 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22942 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22943
22944           cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950 #include <netdb.h>
22951 int
22952 main ()
22953 {
22954 gethostbyname_r("", 0, 0);
22955   ;
22956   return 0;
22957 }
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22961   (eval $ac_compile) 2>conftest.er1
22962   ac_status=$?
22963   grep -v '^ *+' conftest.er1 >conftest.err
22964   rm -f conftest.er1
22965   cat conftest.err >&5
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } &&
22968          { ac_try='test -z "$ac_cxx_werror_flag"
22969                          || test ! -s conftest.err'
22970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971   (eval $ac_try) 2>&5
22972   ac_status=$?
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); }; } &&
22975          { ac_try='test -s conftest.$ac_objext'
22976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22977   (eval $ac_try) 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); }; }; then
22981   libjava_cv_gethostbyname_r_needs_reentrant=no
22982 else
22983   echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22985
22986                 CPPFLAGS_SAVE="$CPPFLAGS"
22987                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22988                 cat >conftest.$ac_ext <<_ACEOF
22989 /* confdefs.h.  */
22990 _ACEOF
22991 cat confdefs.h >>conftest.$ac_ext
22992 cat >>conftest.$ac_ext <<_ACEOF
22993 /* end confdefs.h.  */
22994 #include <netdb.h>
22995 int
22996 main ()
22997 {
22998 gethostbyname_r("", 0, 0);
22999   ;
23000   return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005   (eval $ac_compile) 2>conftest.er1
23006   ac_status=$?
23007   grep -v '^ *+' conftest.er1 >conftest.err
23008   rm -f conftest.er1
23009   cat conftest.err >&5
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); } &&
23012          { ac_try='test -z "$ac_cxx_werror_flag"
23013                          || test ! -s conftest.err'
23014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015   (eval $ac_try) 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; } &&
23019          { ac_try='test -s conftest.$ac_objext'
23020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021   (eval $ac_try) 2>&5
23022   ac_status=$?
23023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024   (exit $ac_status); }; }; then
23025   libjava_cv_gethostbyname_r_needs_reentrant=yes
23026 else
23027   echo "$as_me: failed program was:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23029
23030 libjava_cv_gethostbyname_r_needs_reentrant=fail
23031 fi
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23033                 CPPFLAGS="$CPPFLAGS_SAVE"
23034
23035 fi
23036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23037           ac_ext=c
23038 ac_cpp='$CPP $CPPFLAGS'
23039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23042
23043
23044 fi
23045 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
23046 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
23047         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
23048
23049 cat >>confdefs.h <<\_ACEOF
23050 #define _REENTRANT 1
23051 _ACEOF
23052
23053         fi
23054      ;;
23055      esac
23056
23057      echo "$as_me:$LINENO: checking for struct hostent_data" >&5
23058 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
23059 if test "${libjava_cv_struct_hostent_data+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062         cat >conftest.$ac_ext <<_ACEOF
23063 /* confdefs.h.  */
23064 _ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h.  */
23068
23069 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
23070 # define _REENTRANT 1
23071 #endif
23072 #include <netdb.h>
23073 int
23074 main ()
23075 {
23076 struct hostent_data data;
23077   ;
23078   return 0;
23079 }
23080 _ACEOF
23081 rm -f conftest.$ac_objext
23082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23083   (eval $ac_compile) 2>conftest.er1
23084   ac_status=$?
23085   grep -v '^ *+' conftest.er1 >conftest.err
23086   rm -f conftest.er1
23087   cat conftest.err >&5
23088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089   (exit $ac_status); } &&
23090          { ac_try='test -z "$ac_c_werror_flag"
23091                          || test ! -s conftest.err'
23092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093   (eval $ac_try) 2>&5
23094   ac_status=$?
23095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096   (exit $ac_status); }; } &&
23097          { ac_try='test -s conftest.$ac_objext'
23098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099   (eval $ac_try) 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; }; then
23103   libjava_cv_struct_hostent_data=yes
23104 else
23105   echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 libjava_cv_struct_hostent_data=no
23109 fi
23110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23111 fi
23112 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
23113 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
23114      if test "x$libjava_cv_struct_hostent_data" = xyes; then
23115
23116 cat >>confdefs.h <<\_ACEOF
23117 #define HAVE_STRUCT_HOSTENT_DATA 1
23118 _ACEOF
23119
23120      fi
23121
23122 fi
23123 done
23124
23125
23126    # FIXME: libjava source code expects to find a prototype for
23127    # gethostbyaddr_r in netdb.h.  The outer check ensures that
23128    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
23129    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
23130    # linkage check is enough, yet C++ code requires proper prototypes.)
23131    cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h.  */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h.  */
23137 #include <netdb.h>
23138
23139 _ACEOF
23140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23141   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
23142
23143
23144 for ac_func in gethostbyaddr_r
23145 do
23146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23147 echo "$as_me:$LINENO: checking for $ac_func" >&5
23148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23149 if eval "test \"\${$as_ac_var+set}\" = set"; then
23150   echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152   if test x$gcc_no_link = xyes; then
23153   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23154 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23155    { (exit 1); exit 1; }; }
23156 fi
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h.  */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h.  */
23163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23165 #define $ac_func innocuous_$ac_func
23166
23167 /* System header to define __stub macros and hopefully few prototypes,
23168     which can conflict with char $ac_func (); below.
23169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23170     <limits.h> exists even on freestanding compilers.  */
23171
23172 #ifdef __STDC__
23173 # include <limits.h>
23174 #else
23175 # include <assert.h>
23176 #endif
23177
23178 #undef $ac_func
23179
23180 /* Override any gcc2 internal prototype to avoid an error.  */
23181 #ifdef __cplusplus
23182 extern "C"
23183 {
23184 #endif
23185 /* We use char because int might match the return type of a gcc2
23186    builtin and then its argument prototype would still apply.  */
23187 char $ac_func ();
23188 /* The GNU C library defines this for functions which it implements
23189     to always fail with ENOSYS.  Some functions are actually named
23190     something starting with __ and the normal name is an alias.  */
23191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23192 choke me
23193 #else
23194 char (*f) () = $ac_func;
23195 #endif
23196 #ifdef __cplusplus
23197 }
23198 #endif
23199
23200 int
23201 main ()
23202 {
23203 return f != $ac_func;
23204   ;
23205   return 0;
23206 }
23207 _ACEOF
23208 rm -f conftest.$ac_objext conftest$ac_exeext
23209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23210   (eval $ac_link) 2>conftest.er1
23211   ac_status=$?
23212   grep -v '^ *+' conftest.er1 >conftest.err
23213   rm -f conftest.er1
23214   cat conftest.err >&5
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); } &&
23217          { ac_try='test -z "$ac_c_werror_flag"
23218                          || test ! -s conftest.err'
23219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220   (eval $ac_try) 2>&5
23221   ac_status=$?
23222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223   (exit $ac_status); }; } &&
23224          { ac_try='test -s conftest$ac_exeext'
23225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226   (eval $ac_try) 2>&5
23227   ac_status=$?
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); }; }; then
23230   eval "$as_ac_var=yes"
23231 else
23232   echo "$as_me: failed program was:" >&5
23233 sed 's/^/| /' conftest.$ac_ext >&5
23234
23235 eval "$as_ac_var=no"
23236 fi
23237 rm -f conftest.err conftest.$ac_objext \
23238       conftest$ac_exeext conftest.$ac_ext
23239 fi
23240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23242 if test `eval echo '${'$as_ac_var'}'` = yes; then
23243   cat >>confdefs.h <<_ACEOF
23244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23245 _ACEOF
23246
23247
23248 cat >>confdefs.h <<\_ACEOF
23249 #define HAVE_GETHOSTBYADDR_R 1
23250 _ACEOF
23251
23252      # There are two different kinds of gethostbyaddr_r.
23253      # We look for the one that returns `int'.
23254      # Hopefully this check is robust enough.
23255      cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 #include <netdb.h>
23262
23263 _ACEOF
23264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23265   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23266
23267
23268 cat >>confdefs.h <<\_ACEOF
23269 #define GETHOSTBYADDR_R_RETURNS_INT 1
23270 _ACEOF
23271
23272 fi
23273 rm -f conftest*
23274
23275 fi
23276 done
23277
23278 fi
23279 rm -f conftest*
23280
23281
23282
23283 for ac_func in gethostname
23284 do
23285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23286 echo "$as_me:$LINENO: checking for $ac_func" >&5
23287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23288 if eval "test \"\${$as_ac_var+set}\" = set"; then
23289   echo $ECHO_N "(cached) $ECHO_C" >&6
23290 else
23291   if test x$gcc_no_link = xyes; then
23292   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23294    { (exit 1); exit 1; }; }
23295 fi
23296 cat >conftest.$ac_ext <<_ACEOF
23297 /* confdefs.h.  */
23298 _ACEOF
23299 cat confdefs.h >>conftest.$ac_ext
23300 cat >>conftest.$ac_ext <<_ACEOF
23301 /* end confdefs.h.  */
23302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23304 #define $ac_func innocuous_$ac_func
23305
23306 /* System header to define __stub macros and hopefully few prototypes,
23307     which can conflict with char $ac_func (); below.
23308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23309     <limits.h> exists even on freestanding compilers.  */
23310
23311 #ifdef __STDC__
23312 # include <limits.h>
23313 #else
23314 # include <assert.h>
23315 #endif
23316
23317 #undef $ac_func
23318
23319 /* Override any gcc2 internal prototype to avoid an error.  */
23320 #ifdef __cplusplus
23321 extern "C"
23322 {
23323 #endif
23324 /* We use char because int might match the return type of a gcc2
23325    builtin and then its argument prototype would still apply.  */
23326 char $ac_func ();
23327 /* The GNU C library defines this for functions which it implements
23328     to always fail with ENOSYS.  Some functions are actually named
23329     something starting with __ and the normal name is an alias.  */
23330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23331 choke me
23332 #else
23333 char (*f) () = $ac_func;
23334 #endif
23335 #ifdef __cplusplus
23336 }
23337 #endif
23338
23339 int
23340 main ()
23341 {
23342 return f != $ac_func;
23343   ;
23344   return 0;
23345 }
23346 _ACEOF
23347 rm -f conftest.$ac_objext conftest$ac_exeext
23348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23349   (eval $ac_link) 2>conftest.er1
23350   ac_status=$?
23351   grep -v '^ *+' conftest.er1 >conftest.err
23352   rm -f conftest.er1
23353   cat conftest.err >&5
23354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355   (exit $ac_status); } &&
23356          { ac_try='test -z "$ac_c_werror_flag"
23357                          || test ! -s conftest.err'
23358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23359   (eval $ac_try) 2>&5
23360   ac_status=$?
23361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23362   (exit $ac_status); }; } &&
23363          { ac_try='test -s conftest$ac_exeext'
23364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365   (eval $ac_try) 2>&5
23366   ac_status=$?
23367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368   (exit $ac_status); }; }; then
23369   eval "$as_ac_var=yes"
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 eval "$as_ac_var=no"
23375 fi
23376 rm -f conftest.err conftest.$ac_objext \
23377       conftest$ac_exeext conftest.$ac_ext
23378 fi
23379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23381 if test `eval echo '${'$as_ac_var'}'` = yes; then
23382   cat >>confdefs.h <<_ACEOF
23383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23384 _ACEOF
23385
23386
23387 cat >>confdefs.h <<\_ACEOF
23388 #define HAVE_GETHOSTNAME 1
23389 _ACEOF
23390
23391      cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h.  */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h.  */
23397 #include <unistd.h>
23398
23399 _ACEOF
23400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23401   $EGREP "gethostname" >/dev/null 2>&1; then
23402
23403
23404 cat >>confdefs.h <<\_ACEOF
23405 #define HAVE_GETHOSTNAME_DECL 1
23406 _ACEOF
23407
23408 fi
23409 rm -f conftest*
23410
23411 fi
23412 done
23413
23414
23415
23416 for ac_func in usleep
23417 do
23418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23419 echo "$as_me:$LINENO: checking for $ac_func" >&5
23420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23421 if eval "test \"\${$as_ac_var+set}\" = set"; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   if test x$gcc_no_link = xyes; then
23425   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23426 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23427    { (exit 1); exit 1; }; }
23428 fi
23429 cat >conftest.$ac_ext <<_ACEOF
23430 /* confdefs.h.  */
23431 _ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h.  */
23435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23437 #define $ac_func innocuous_$ac_func
23438
23439 /* System header to define __stub macros and hopefully few prototypes,
23440     which can conflict with char $ac_func (); below.
23441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23442     <limits.h> exists even on freestanding compilers.  */
23443
23444 #ifdef __STDC__
23445 # include <limits.h>
23446 #else
23447 # include <assert.h>
23448 #endif
23449
23450 #undef $ac_func
23451
23452 /* Override any gcc2 internal prototype to avoid an error.  */
23453 #ifdef __cplusplus
23454 extern "C"
23455 {
23456 #endif
23457 /* We use char because int might match the return type of a gcc2
23458    builtin and then its argument prototype would still apply.  */
23459 char $ac_func ();
23460 /* The GNU C library defines this for functions which it implements
23461     to always fail with ENOSYS.  Some functions are actually named
23462     something starting with __ and the normal name is an alias.  */
23463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23464 choke me
23465 #else
23466 char (*f) () = $ac_func;
23467 #endif
23468 #ifdef __cplusplus
23469 }
23470 #endif
23471
23472 int
23473 main ()
23474 {
23475 return f != $ac_func;
23476   ;
23477   return 0;
23478 }
23479 _ACEOF
23480 rm -f conftest.$ac_objext conftest$ac_exeext
23481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23482   (eval $ac_link) 2>conftest.er1
23483   ac_status=$?
23484   grep -v '^ *+' conftest.er1 >conftest.err
23485   rm -f conftest.er1
23486   cat conftest.err >&5
23487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488   (exit $ac_status); } &&
23489          { ac_try='test -z "$ac_c_werror_flag"
23490                          || test ! -s conftest.err'
23491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23492   (eval $ac_try) 2>&5
23493   ac_status=$?
23494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23495   (exit $ac_status); }; } &&
23496          { ac_try='test -s conftest$ac_exeext'
23497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23498   (eval $ac_try) 2>&5
23499   ac_status=$?
23500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501   (exit $ac_status); }; }; then
23502   eval "$as_ac_var=yes"
23503 else
23504   echo "$as_me: failed program was:" >&5
23505 sed 's/^/| /' conftest.$ac_ext >&5
23506
23507 eval "$as_ac_var=no"
23508 fi
23509 rm -f conftest.err conftest.$ac_objext \
23510       conftest$ac_exeext conftest.$ac_ext
23511 fi
23512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23514 if test `eval echo '${'$as_ac_var'}'` = yes; then
23515   cat >>confdefs.h <<_ACEOF
23516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23517 _ACEOF
23518
23519      cat >conftest.$ac_ext <<_ACEOF
23520 /* confdefs.h.  */
23521 _ACEOF
23522 cat confdefs.h >>conftest.$ac_ext
23523 cat >>conftest.$ac_ext <<_ACEOF
23524 /* end confdefs.h.  */
23525 #include <unistd.h>
23526
23527 _ACEOF
23528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23529   $EGREP "usleep" >/dev/null 2>&1; then
23530
23531
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_USLEEP_DECL 1
23534 _ACEOF
23535
23536 fi
23537 rm -f conftest*
23538
23539 fi
23540 done
23541
23542
23543    # Look for these functions in the thread library, but only bother
23544    # if using POSIX threads.
23545    if test "$THREADS" = posix; then
23546       save_LIBS="$LIBS"
23547       LIBS="$LIBS $THREADLIBS"
23548
23549       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
23550       # Solaris 7 the name librt is preferred.
23551
23552 for ac_func in sched_yield
23553 do
23554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23555 echo "$as_me:$LINENO: checking for $ac_func" >&5
23556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23557 if eval "test \"\${$as_ac_var+set}\" = set"; then
23558   echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560   if test x$gcc_no_link = xyes; then
23561   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23562 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23563    { (exit 1); exit 1; }; }
23564 fi
23565 cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h.  */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h.  */
23571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23573 #define $ac_func innocuous_$ac_func
23574
23575 /* System header to define __stub macros and hopefully few prototypes,
23576     which can conflict with char $ac_func (); below.
23577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23578     <limits.h> exists even on freestanding compilers.  */
23579
23580 #ifdef __STDC__
23581 # include <limits.h>
23582 #else
23583 # include <assert.h>
23584 #endif
23585
23586 #undef $ac_func
23587
23588 /* Override any gcc2 internal prototype to avoid an error.  */
23589 #ifdef __cplusplus
23590 extern "C"
23591 {
23592 #endif
23593 /* We use char because int might match the return type of a gcc2
23594    builtin and then its argument prototype would still apply.  */
23595 char $ac_func ();
23596 /* The GNU C library defines this for functions which it implements
23597     to always fail with ENOSYS.  Some functions are actually named
23598     something starting with __ and the normal name is an alias.  */
23599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23600 choke me
23601 #else
23602 char (*f) () = $ac_func;
23603 #endif
23604 #ifdef __cplusplus
23605 }
23606 #endif
23607
23608 int
23609 main ()
23610 {
23611 return f != $ac_func;
23612   ;
23613   return 0;
23614 }
23615 _ACEOF
23616 rm -f conftest.$ac_objext conftest$ac_exeext
23617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23618   (eval $ac_link) 2>conftest.er1
23619   ac_status=$?
23620   grep -v '^ *+' conftest.er1 >conftest.err
23621   rm -f conftest.er1
23622   cat conftest.err >&5
23623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23624   (exit $ac_status); } &&
23625          { ac_try='test -z "$ac_c_werror_flag"
23626                          || test ! -s conftest.err'
23627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23628   (eval $ac_try) 2>&5
23629   ac_status=$?
23630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631   (exit $ac_status); }; } &&
23632          { ac_try='test -s conftest$ac_exeext'
23633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634   (eval $ac_try) 2>&5
23635   ac_status=$?
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); }; }; then
23638   eval "$as_ac_var=yes"
23639 else
23640   echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 eval "$as_ac_var=no"
23644 fi
23645 rm -f conftest.err conftest.$ac_objext \
23646       conftest$ac_exeext conftest.$ac_ext
23647 fi
23648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23650 if test `eval echo '${'$as_ac_var'}'` = yes; then
23651   cat >>confdefs.h <<_ACEOF
23652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23653 _ACEOF
23654
23655 else
23656
23657         echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23658 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23659 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23660   echo $ECHO_N "(cached) $ECHO_C" >&6
23661 else
23662   ac_check_lib_save_LIBS=$LIBS
23663 LIBS="-lrt  $LIBS"
23664 if test x$gcc_no_link = xyes; then
23665   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23666 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23667    { (exit 1); exit 1; }; }
23668 fi
23669 cat >conftest.$ac_ext <<_ACEOF
23670 /* confdefs.h.  */
23671 _ACEOF
23672 cat confdefs.h >>conftest.$ac_ext
23673 cat >>conftest.$ac_ext <<_ACEOF
23674 /* end confdefs.h.  */
23675
23676 /* Override any gcc2 internal prototype to avoid an error.  */
23677 #ifdef __cplusplus
23678 extern "C"
23679 #endif
23680 /* We use char because int might match the return type of a gcc2
23681    builtin and then its argument prototype would still apply.  */
23682 char sched_yield ();
23683 int
23684 main ()
23685 {
23686 sched_yield ();
23687   ;
23688   return 0;
23689 }
23690 _ACEOF
23691 rm -f conftest.$ac_objext conftest$ac_exeext
23692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23693   (eval $ac_link) 2>conftest.er1
23694   ac_status=$?
23695   grep -v '^ *+' conftest.er1 >conftest.err
23696   rm -f conftest.er1
23697   cat conftest.err >&5
23698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699   (exit $ac_status); } &&
23700          { ac_try='test -z "$ac_c_werror_flag"
23701                          || test ! -s conftest.err'
23702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703   (eval $ac_try) 2>&5
23704   ac_status=$?
23705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706   (exit $ac_status); }; } &&
23707          { ac_try='test -s conftest$ac_exeext'
23708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709   (eval $ac_try) 2>&5
23710   ac_status=$?
23711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712   (exit $ac_status); }; }; then
23713   ac_cv_lib_rt_sched_yield=yes
23714 else
23715   echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23717
23718 ac_cv_lib_rt_sched_yield=no
23719 fi
23720 rm -f conftest.err conftest.$ac_objext \
23721       conftest$ac_exeext conftest.$ac_ext
23722 LIBS=$ac_check_lib_save_LIBS
23723 fi
23724 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23725 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23726 if test $ac_cv_lib_rt_sched_yield = yes; then
23727
23728           cat >>confdefs.h <<\_ACEOF
23729 #define HAVE_SCHED_YIELD 1
23730 _ACEOF
23731
23732           THREADLIBS="$THREADLIBS -lrt"
23733           THREADSPEC="$THREADSPEC -lrt"
23734 else
23735
23736           echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23737 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23738 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23739   echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741   ac_check_lib_save_LIBS=$LIBS
23742 LIBS="-lposix4  $LIBS"
23743 if test x$gcc_no_link = xyes; then
23744   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23745 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23746    { (exit 1); exit 1; }; }
23747 fi
23748 cat >conftest.$ac_ext <<_ACEOF
23749 /* confdefs.h.  */
23750 _ACEOF
23751 cat confdefs.h >>conftest.$ac_ext
23752 cat >>conftest.$ac_ext <<_ACEOF
23753 /* end confdefs.h.  */
23754
23755 /* Override any gcc2 internal prototype to avoid an error.  */
23756 #ifdef __cplusplus
23757 extern "C"
23758 #endif
23759 /* We use char because int might match the return type of a gcc2
23760    builtin and then its argument prototype would still apply.  */
23761 char sched_yield ();
23762 int
23763 main ()
23764 {
23765 sched_yield ();
23766   ;
23767   return 0;
23768 }
23769 _ACEOF
23770 rm -f conftest.$ac_objext conftest$ac_exeext
23771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23772   (eval $ac_link) 2>conftest.er1
23773   ac_status=$?
23774   grep -v '^ *+' conftest.er1 >conftest.err
23775   rm -f conftest.er1
23776   cat conftest.err >&5
23777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778   (exit $ac_status); } &&
23779          { ac_try='test -z "$ac_c_werror_flag"
23780                          || test ! -s conftest.err'
23781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23782   (eval $ac_try) 2>&5
23783   ac_status=$?
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); }; } &&
23786          { ac_try='test -s conftest$ac_exeext'
23787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23788   (eval $ac_try) 2>&5
23789   ac_status=$?
23790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791   (exit $ac_status); }; }; then
23792   ac_cv_lib_posix4_sched_yield=yes
23793 else
23794   echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797 ac_cv_lib_posix4_sched_yield=no
23798 fi
23799 rm -f conftest.err conftest.$ac_objext \
23800       conftest$ac_exeext conftest.$ac_ext
23801 LIBS=$ac_check_lib_save_LIBS
23802 fi
23803 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23804 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23805 if test $ac_cv_lib_posix4_sched_yield = yes; then
23806
23807             cat >>confdefs.h <<\_ACEOF
23808 #define HAVE_SCHED_YIELD 1
23809 _ACEOF
23810
23811             THREADLIBS="$THREADLIBS -lposix4"
23812             THREADSPEC="$THREADSPEC -lposix4"
23813 fi
23814
23815 fi
23816
23817 fi
23818 done
23819
23820
23821       echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23822 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23823 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23824   echo $ECHO_N "(cached) $ECHO_C" >&6
23825 else
23826   ac_check_lib_save_LIBS=$LIBS
23827 LIBS="-lrt  $LIBS"
23828 if test x$gcc_no_link = xyes; then
23829   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23831    { (exit 1); exit 1; }; }
23832 fi
23833 cat >conftest.$ac_ext <<_ACEOF
23834 /* confdefs.h.  */
23835 _ACEOF
23836 cat confdefs.h >>conftest.$ac_ext
23837 cat >>conftest.$ac_ext <<_ACEOF
23838 /* end confdefs.h.  */
23839
23840 /* Override any gcc2 internal prototype to avoid an error.  */
23841 #ifdef __cplusplus
23842 extern "C"
23843 #endif
23844 /* We use char because int might match the return type of a gcc2
23845    builtin and then its argument prototype would still apply.  */
23846 char clock_gettime ();
23847 int
23848 main ()
23849 {
23850 clock_gettime ();
23851   ;
23852   return 0;
23853 }
23854 _ACEOF
23855 rm -f conftest.$ac_objext conftest$ac_exeext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857   (eval $ac_link) 2>conftest.er1
23858   ac_status=$?
23859   grep -v '^ *+' conftest.er1 >conftest.err
23860   rm -f conftest.er1
23861   cat conftest.err >&5
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } &&
23864          { ac_try='test -z "$ac_c_werror_flag"
23865                          || test ! -s conftest.err'
23866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867   (eval $ac_try) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; } &&
23871          { ac_try='test -s conftest$ac_exeext'
23872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873   (eval $ac_try) 2>&5
23874   ac_status=$?
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); }; }; then
23877   ac_cv_lib_rt_clock_gettime=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 ac_cv_lib_rt_clock_gettime=no
23883 fi
23884 rm -f conftest.err conftest.$ac_objext \
23885       conftest$ac_exeext conftest.$ac_ext
23886 LIBS=$ac_check_lib_save_LIBS
23887 fi
23888 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23889 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23890 if test $ac_cv_lib_rt_clock_gettime = yes; then
23891
23892
23893 cat >>confdefs.h <<\_ACEOF
23894 #define HAVE_CLOCK_GETTIME 1
23895 _ACEOF
23896
23897          case "$THREADSPEC" in
23898            *-lrt*) ;;
23899            *)
23900              THREADSPEC="$THREADSPEC -lrt"
23901              THREADLIBS="$THREADLIBS -lrt"
23902              ;;
23903          esac
23904 fi
23905
23906
23907       LIBS="$save_LIBS"
23908
23909       # We can save a little space at runtime if the mutex has m_count
23910       # or __m_count.  This is a nice hack for Linux.
23911       cat >conftest.$ac_ext <<_ACEOF
23912 /* confdefs.h.  */
23913 _ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h.  */
23917 #include <pthread.h>
23918 int
23919 main ()
23920 {
23921
23922           extern pthread_mutex_t *mutex; int q = mutex->m_count;
23923
23924   ;
23925   return 0;
23926 }
23927 _ACEOF
23928 rm -f conftest.$ac_objext
23929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23930   (eval $ac_compile) 2>conftest.er1
23931   ac_status=$?
23932   grep -v '^ *+' conftest.er1 >conftest.err
23933   rm -f conftest.er1
23934   cat conftest.err >&5
23935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23936   (exit $ac_status); } &&
23937          { ac_try='test -z "$ac_c_werror_flag"
23938                          || test ! -s conftest.err'
23939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23940   (eval $ac_try) 2>&5
23941   ac_status=$?
23942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943   (exit $ac_status); }; } &&
23944          { ac_try='test -s conftest.$ac_objext'
23945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23946   (eval $ac_try) 2>&5
23947   ac_status=$?
23948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949   (exit $ac_status); }; }; then
23950
23951 cat >>confdefs.h <<\_ACEOF
23952 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23953 _ACEOF
23954
23955 else
23956   echo "$as_me: failed program was:" >&5
23957 sed 's/^/| /' conftest.$ac_ext >&5
23958
23959
23960         cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h.  */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h.  */
23966 #include <pthread.h>
23967 int
23968 main ()
23969 {
23970
23971             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23972
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 rm -f conftest.$ac_objext
23978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23979   (eval $ac_compile) 2>conftest.er1
23980   ac_status=$?
23981   grep -v '^ *+' conftest.er1 >conftest.err
23982   rm -f conftest.er1
23983   cat conftest.err >&5
23984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985   (exit $ac_status); } &&
23986          { ac_try='test -z "$ac_c_werror_flag"
23987                          || test ! -s conftest.err'
23988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989   (eval $ac_try) 2>&5
23990   ac_status=$?
23991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992   (exit $ac_status); }; } &&
23993          { ac_try='test -s conftest.$ac_objext'
23994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23995   (eval $ac_try) 2>&5
23996   ac_status=$?
23997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998   (exit $ac_status); }; }; then
23999
24000 cat >>confdefs.h <<\_ACEOF
24001 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
24002 _ACEOF
24003
24004 else
24005   echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24007
24008 fi
24009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24010 fi
24011 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24012    fi
24013
24014    # We require a way to get the time.
24015    time_found=no
24016
24017
24018
24019 for ac_func in gettimeofday time ftime
24020 do
24021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24022 echo "$as_me:$LINENO: checking for $ac_func" >&5
24023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24024 if eval "test \"\${$as_ac_var+set}\" = set"; then
24025   echo $ECHO_N "(cached) $ECHO_C" >&6
24026 else
24027   if test x$gcc_no_link = xyes; then
24028   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24029 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24030    { (exit 1); exit 1; }; }
24031 fi
24032 cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h.  */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h.  */
24038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24040 #define $ac_func innocuous_$ac_func
24041
24042 /* System header to define __stub macros and hopefully few prototypes,
24043     which can conflict with char $ac_func (); below.
24044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24045     <limits.h> exists even on freestanding compilers.  */
24046
24047 #ifdef __STDC__
24048 # include <limits.h>
24049 #else
24050 # include <assert.h>
24051 #endif
24052
24053 #undef $ac_func
24054
24055 /* Override any gcc2 internal prototype to avoid an error.  */
24056 #ifdef __cplusplus
24057 extern "C"
24058 {
24059 #endif
24060 /* We use char because int might match the return type of a gcc2
24061    builtin and then its argument prototype would still apply.  */
24062 char $ac_func ();
24063 /* The GNU C library defines this for functions which it implements
24064     to always fail with ENOSYS.  Some functions are actually named
24065     something starting with __ and the normal name is an alias.  */
24066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24067 choke me
24068 #else
24069 char (*f) () = $ac_func;
24070 #endif
24071 #ifdef __cplusplus
24072 }
24073 #endif
24074
24075 int
24076 main ()
24077 {
24078 return f != $ac_func;
24079   ;
24080   return 0;
24081 }
24082 _ACEOF
24083 rm -f conftest.$ac_objext conftest$ac_exeext
24084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24085   (eval $ac_link) 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } &&
24092          { ac_try='test -z "$ac_c_werror_flag"
24093                          || test ! -s conftest.err'
24094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095   (eval $ac_try) 2>&5
24096   ac_status=$?
24097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098   (exit $ac_status); }; } &&
24099          { ac_try='test -s conftest$ac_exeext'
24100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101   (eval $ac_try) 2>&5
24102   ac_status=$?
24103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104   (exit $ac_status); }; }; then
24105   eval "$as_ac_var=yes"
24106 else
24107   echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.$ac_ext >&5
24109
24110 eval "$as_ac_var=no"
24111 fi
24112 rm -f conftest.err conftest.$ac_objext \
24113       conftest$ac_exeext conftest.$ac_ext
24114 fi
24115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24117 if test `eval echo '${'$as_ac_var'}'` = yes; then
24118   cat >>confdefs.h <<_ACEOF
24119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24120 _ACEOF
24121  time_found=yes
24122 fi
24123 done
24124
24125    if test "$time_found" = no; then
24126       { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
24127 echo "$as_me: error: no function found to get the time" >&2;}
24128    { (exit 1); exit 1; }; }
24129    fi
24130
24131
24132 for ac_func in memmove
24133 do
24134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24135 echo "$as_me:$LINENO: checking for $ac_func" >&5
24136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24137 if eval "test \"\${$as_ac_var+set}\" = set"; then
24138   echo $ECHO_N "(cached) $ECHO_C" >&6
24139 else
24140   if test x$gcc_no_link = xyes; then
24141   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24142 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24143    { (exit 1); exit 1; }; }
24144 fi
24145 cat >conftest.$ac_ext <<_ACEOF
24146 /* confdefs.h.  */
24147 _ACEOF
24148 cat confdefs.h >>conftest.$ac_ext
24149 cat >>conftest.$ac_ext <<_ACEOF
24150 /* end confdefs.h.  */
24151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24153 #define $ac_func innocuous_$ac_func
24154
24155 /* System header to define __stub macros and hopefully few prototypes,
24156     which can conflict with char $ac_func (); below.
24157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24158     <limits.h> exists even on freestanding compilers.  */
24159
24160 #ifdef __STDC__
24161 # include <limits.h>
24162 #else
24163 # include <assert.h>
24164 #endif
24165
24166 #undef $ac_func
24167
24168 /* Override any gcc2 internal prototype to avoid an error.  */
24169 #ifdef __cplusplus
24170 extern "C"
24171 {
24172 #endif
24173 /* We use char because int might match the return type of a gcc2
24174    builtin and then its argument prototype would still apply.  */
24175 char $ac_func ();
24176 /* The GNU C library defines this for functions which it implements
24177     to always fail with ENOSYS.  Some functions are actually named
24178     something starting with __ and the normal name is an alias.  */
24179 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24180 choke me
24181 #else
24182 char (*f) () = $ac_func;
24183 #endif
24184 #ifdef __cplusplus
24185 }
24186 #endif
24187
24188 int
24189 main ()
24190 {
24191 return f != $ac_func;
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   eval "$as_ac_var=yes"
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223 eval "$as_ac_var=no"
24224 fi
24225 rm -f conftest.err conftest.$ac_objext \
24226       conftest$ac_exeext conftest.$ac_ext
24227 fi
24228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24229 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24230 if test `eval echo '${'$as_ac_var'}'` = yes; then
24231   cat >>confdefs.h <<_ACEOF
24232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24233 _ACEOF
24234
24235 fi
24236 done
24237
24238
24239    # We require memcpy.
24240    memcpy_found=no
24241
24242 for ac_func in memcpy
24243 do
24244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24245 echo "$as_me:$LINENO: checking for $ac_func" >&5
24246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24247 if eval "test \"\${$as_ac_var+set}\" = set"; then
24248   echo $ECHO_N "(cached) $ECHO_C" >&6
24249 else
24250   if test x$gcc_no_link = xyes; then
24251   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24252 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24253    { (exit 1); exit 1; }; }
24254 fi
24255 cat >conftest.$ac_ext <<_ACEOF
24256 /* confdefs.h.  */
24257 _ACEOF
24258 cat confdefs.h >>conftest.$ac_ext
24259 cat >>conftest.$ac_ext <<_ACEOF
24260 /* end confdefs.h.  */
24261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24262    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24263 #define $ac_func innocuous_$ac_func
24264
24265 /* System header to define __stub macros and hopefully few prototypes,
24266     which can conflict with char $ac_func (); below.
24267     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24268     <limits.h> exists even on freestanding compilers.  */
24269
24270 #ifdef __STDC__
24271 # include <limits.h>
24272 #else
24273 # include <assert.h>
24274 #endif
24275
24276 #undef $ac_func
24277
24278 /* Override any gcc2 internal prototype to avoid an error.  */
24279 #ifdef __cplusplus
24280 extern "C"
24281 {
24282 #endif
24283 /* We use char because int might match the return type of a gcc2
24284    builtin and then its argument prototype would still apply.  */
24285 char $ac_func ();
24286 /* The GNU C library defines this for functions which it implements
24287     to always fail with ENOSYS.  Some functions are actually named
24288     something starting with __ and the normal name is an alias.  */
24289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24290 choke me
24291 #else
24292 char (*f) () = $ac_func;
24293 #endif
24294 #ifdef __cplusplus
24295 }
24296 #endif
24297
24298 int
24299 main ()
24300 {
24301 return f != $ac_func;
24302   ;
24303   return 0;
24304 }
24305 _ACEOF
24306 rm -f conftest.$ac_objext conftest$ac_exeext
24307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24308   (eval $ac_link) 2>conftest.er1
24309   ac_status=$?
24310   grep -v '^ *+' conftest.er1 >conftest.err
24311   rm -f conftest.er1
24312   cat conftest.err >&5
24313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314   (exit $ac_status); } &&
24315          { ac_try='test -z "$ac_c_werror_flag"
24316                          || test ! -s conftest.err'
24317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318   (eval $ac_try) 2>&5
24319   ac_status=$?
24320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321   (exit $ac_status); }; } &&
24322          { ac_try='test -s conftest$ac_exeext'
24323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24324   (eval $ac_try) 2>&5
24325   ac_status=$?
24326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24327   (exit $ac_status); }; }; then
24328   eval "$as_ac_var=yes"
24329 else
24330   echo "$as_me: failed program was:" >&5
24331 sed 's/^/| /' conftest.$ac_ext >&5
24332
24333 eval "$as_ac_var=no"
24334 fi
24335 rm -f conftest.err conftest.$ac_objext \
24336       conftest$ac_exeext conftest.$ac_ext
24337 fi
24338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24340 if test `eval echo '${'$as_ac_var'}'` = yes; then
24341   cat >>confdefs.h <<_ACEOF
24342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24343 _ACEOF
24344  memcpy_found=yes
24345 fi
24346 done
24347
24348    if test "$memcpy_found" = no; then
24349       { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24350 echo "$as_me: error: memcpy is required" >&2;}
24351    { (exit 1); exit 1; }; }
24352    fi
24353    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24354    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24355 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24357   echo $ECHO_N "(cached) $ECHO_C" >&6
24358 else
24359   ac_check_lib_save_LIBS=$LIBS
24360 LIBS="-ldl  $LIBS"
24361 if test x$gcc_no_link = xyes; then
24362   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24364    { (exit 1); exit 1; }; }
24365 fi
24366 cat >conftest.$ac_ext <<_ACEOF
24367 /* confdefs.h.  */
24368 _ACEOF
24369 cat confdefs.h >>conftest.$ac_ext
24370 cat >>conftest.$ac_ext <<_ACEOF
24371 /* end confdefs.h.  */
24372
24373 /* Override any gcc2 internal prototype to avoid an error.  */
24374 #ifdef __cplusplus
24375 extern "C"
24376 #endif
24377 /* We use char because int might match the return type of a gcc2
24378    builtin and then its argument prototype would still apply.  */
24379 char dlopen ();
24380 int
24381 main ()
24382 {
24383 dlopen ();
24384   ;
24385   return 0;
24386 }
24387 _ACEOF
24388 rm -f conftest.$ac_objext conftest$ac_exeext
24389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24390   (eval $ac_link) 2>conftest.er1
24391   ac_status=$?
24392   grep -v '^ *+' conftest.er1 >conftest.err
24393   rm -f conftest.er1
24394   cat conftest.err >&5
24395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396   (exit $ac_status); } &&
24397          { ac_try='test -z "$ac_c_werror_flag"
24398                          || test ! -s conftest.err'
24399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24400   (eval $ac_try) 2>&5
24401   ac_status=$?
24402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24403   (exit $ac_status); }; } &&
24404          { ac_try='test -s conftest$ac_exeext'
24405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24406   (eval $ac_try) 2>&5
24407   ac_status=$?
24408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409   (exit $ac_status); }; }; then
24410   ac_cv_lib_dl_dlopen=yes
24411 else
24412   echo "$as_me: failed program was:" >&5
24413 sed 's/^/| /' conftest.$ac_ext >&5
24414
24415 ac_cv_lib_dl_dlopen=no
24416 fi
24417 rm -f conftest.err conftest.$ac_objext \
24418       conftest$ac_exeext conftest.$ac_ext
24419 LIBS=$ac_check_lib_save_LIBS
24420 fi
24421 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24422 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24423 if test $ac_cv_lib_dl_dlopen = yes; then
24424
24425
24426 cat >>confdefs.h <<\_ACEOF
24427 #define HAVE_DLOPEN 1
24428 _ACEOF
24429
24430 else
24431
24432        echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24433 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24434 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24435   echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437   ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-ldld  $LIBS"
24439 if test x$gcc_no_link = xyes; then
24440   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24441 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24442    { (exit 1); exit 1; }; }
24443 fi
24444 cat >conftest.$ac_ext <<_ACEOF
24445 /* confdefs.h.  */
24446 _ACEOF
24447 cat confdefs.h >>conftest.$ac_ext
24448 cat >>conftest.$ac_ext <<_ACEOF
24449 /* end confdefs.h.  */
24450
24451 /* Override any gcc2 internal prototype to avoid an error.  */
24452 #ifdef __cplusplus
24453 extern "C"
24454 #endif
24455 /* We use char because int might match the return type of a gcc2
24456    builtin and then its argument prototype would still apply.  */
24457 char dlopen ();
24458 int
24459 main ()
24460 {
24461 dlopen ();
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24468   (eval $ac_link) 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } &&
24475          { ac_try='test -z "$ac_c_werror_flag"
24476                          || test ! -s conftest.err'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest$ac_exeext'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; }; then
24488   ac_cv_lib_dld_dlopen=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493 ac_cv_lib_dld_dlopen=no
24494 fi
24495 rm -f conftest.err conftest.$ac_objext \
24496       conftest$ac_exeext conftest.$ac_ext
24497 LIBS=$ac_check_lib_save_LIBS
24498 fi
24499 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24500 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24501 if test $ac_cv_lib_dld_dlopen = yes; then
24502
24503
24504 cat >>confdefs.h <<\_ACEOF
24505 #define HAVE_DLOPEN 1
24506 _ACEOF
24507
24508 fi
24509
24510 fi
24511
24512
24513    # Some library-finding code we stole from Tcl.
24514    #--------------------------------------------------------------------
24515    #    Check for the existence of the -lsocket and -lnsl libraries.
24516    #    The order here is important, so that they end up in the right
24517    #    order in the command line generated by make.  Here are some
24518    #    special considerations:
24519    #    1. Use "connect" and "accept" to check for -lsocket, and
24520    #       "gethostbyname" to check for -lnsl.
24521    #    2. Use each function name only once:  can't redo a check because
24522    #       autoconf caches the results of the last check and won't redo it.
24523    #    3. Use -lnsl and -lsocket only if they supply procedures that
24524    #       aren't already present in the normal libraries.  This is because
24525    #       IRIX 5.2 has libraries, but they aren't needed and they're
24526    #       bogus:  they goof up name resolution if used.
24527    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24528    #       To get around this problem, check for both libraries together
24529    #       if -lsocket doesn't work by itself.
24530    #--------------------------------------------------------------------
24531
24532    echo "$as_me:$LINENO: checking for socket libraries" >&5
24533 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24534 if test "${gcj_cv_lib_sockets+set}" = set; then
24535   echo $ECHO_N "(cached) $ECHO_C" >&6
24536 else
24537   gcj_cv_lib_sockets=
24538      gcj_checkBoth=0
24539      unset ac_cv_func_connect
24540      echo "$as_me:$LINENO: checking for connect" >&5
24541 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24542 if test "${ac_cv_func_connect+set}" = set; then
24543   echo $ECHO_N "(cached) $ECHO_C" >&6
24544 else
24545   if test x$gcc_no_link = xyes; then
24546   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24547 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24548    { (exit 1); exit 1; }; }
24549 fi
24550 cat >conftest.$ac_ext <<_ACEOF
24551 /* confdefs.h.  */
24552 _ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h.  */
24556 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24558 #define connect innocuous_connect
24559
24560 /* System header to define __stub macros and hopefully few prototypes,
24561     which can conflict with char connect (); below.
24562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24563     <limits.h> exists even on freestanding compilers.  */
24564
24565 #ifdef __STDC__
24566 # include <limits.h>
24567 #else
24568 # include <assert.h>
24569 #endif
24570
24571 #undef connect
24572
24573 /* Override any gcc2 internal prototype to avoid an error.  */
24574 #ifdef __cplusplus
24575 extern "C"
24576 {
24577 #endif
24578 /* We use char because int might match the return type of a gcc2
24579    builtin and then its argument prototype would still apply.  */
24580 char connect ();
24581 /* The GNU C library defines this for functions which it implements
24582     to always fail with ENOSYS.  Some functions are actually named
24583     something starting with __ and the normal name is an alias.  */
24584 #if defined (__stub_connect) || defined (__stub___connect)
24585 choke me
24586 #else
24587 char (*f) () = connect;
24588 #endif
24589 #ifdef __cplusplus
24590 }
24591 #endif
24592
24593 int
24594 main ()
24595 {
24596 return f != connect;
24597   ;
24598   return 0;
24599 }
24600 _ACEOF
24601 rm -f conftest.$ac_objext conftest$ac_exeext
24602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24603   (eval $ac_link) 2>conftest.er1
24604   ac_status=$?
24605   grep -v '^ *+' conftest.er1 >conftest.err
24606   rm -f conftest.er1
24607   cat conftest.err >&5
24608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609   (exit $ac_status); } &&
24610          { ac_try='test -z "$ac_c_werror_flag"
24611                          || test ! -s conftest.err'
24612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613   (eval $ac_try) 2>&5
24614   ac_status=$?
24615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616   (exit $ac_status); }; } &&
24617          { ac_try='test -s conftest$ac_exeext'
24618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619   (eval $ac_try) 2>&5
24620   ac_status=$?
24621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622   (exit $ac_status); }; }; then
24623   ac_cv_func_connect=yes
24624 else
24625   echo "$as_me: failed program was:" >&5
24626 sed 's/^/| /' conftest.$ac_ext >&5
24627
24628 ac_cv_func_connect=no
24629 fi
24630 rm -f conftest.err conftest.$ac_objext \
24631       conftest$ac_exeext conftest.$ac_ext
24632 fi
24633 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24634 echo "${ECHO_T}$ac_cv_func_connect" >&6
24635 if test $ac_cv_func_connect = yes; then
24636   gcj_checkSocket=0
24637 else
24638   gcj_checkSocket=1
24639 fi
24640
24641      if test "$gcj_checkSocket" = 1; then
24642          unset ac_cv_func_connect
24643          echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24644 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24645 if test "${ac_cv_lib_socket_main+set}" = set; then
24646   echo $ECHO_N "(cached) $ECHO_C" >&6
24647 else
24648   ac_check_lib_save_LIBS=$LIBS
24649 LIBS="-lsocket  $LIBS"
24650 if test x$gcc_no_link = xyes; then
24651   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24652 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24653    { (exit 1); exit 1; }; }
24654 fi
24655 cat >conftest.$ac_ext <<_ACEOF
24656 /* confdefs.h.  */
24657 _ACEOF
24658 cat confdefs.h >>conftest.$ac_ext
24659 cat >>conftest.$ac_ext <<_ACEOF
24660 /* end confdefs.h.  */
24661
24662
24663 int
24664 main ()
24665 {
24666 main ();
24667   ;
24668   return 0;
24669 }
24670 _ACEOF
24671 rm -f conftest.$ac_objext conftest$ac_exeext
24672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24673   (eval $ac_link) 2>conftest.er1
24674   ac_status=$?
24675   grep -v '^ *+' conftest.er1 >conftest.err
24676   rm -f conftest.er1
24677   cat conftest.err >&5
24678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24679   (exit $ac_status); } &&
24680          { ac_try='test -z "$ac_c_werror_flag"
24681                          || test ! -s conftest.err'
24682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24683   (eval $ac_try) 2>&5
24684   ac_status=$?
24685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686   (exit $ac_status); }; } &&
24687          { ac_try='test -s conftest$ac_exeext'
24688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24689   (eval $ac_try) 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   ac_cv_lib_socket_main=yes
24694 else
24695   echo "$as_me: failed program was:" >&5
24696 sed 's/^/| /' conftest.$ac_ext >&5
24697
24698 ac_cv_lib_socket_main=no
24699 fi
24700 rm -f conftest.err conftest.$ac_objext \
24701       conftest$ac_exeext conftest.$ac_ext
24702 LIBS=$ac_check_lib_save_LIBS
24703 fi
24704 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24705 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24706 if test $ac_cv_lib_socket_main = yes; then
24707   gcj_cv_lib_sockets="-lsocket"
24708 else
24709   gcj_checkBoth=1
24710 fi
24711
24712      fi
24713      if test "$gcj_checkBoth" = 1; then
24714          gcj_oldLibs=$LIBS
24715          LIBS="$LIBS -lsocket -lnsl"
24716          unset ac_cv_func_accept
24717          echo "$as_me:$LINENO: checking for accept" >&5
24718 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24719 if test "${ac_cv_func_accept+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   if test x$gcc_no_link = xyes; then
24723   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24724 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24725    { (exit 1); exit 1; }; }
24726 fi
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h.  */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h.  */
24733 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24735 #define accept innocuous_accept
24736
24737 /* System header to define __stub macros and hopefully few prototypes,
24738     which can conflict with char accept (); below.
24739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24740     <limits.h> exists even on freestanding compilers.  */
24741
24742 #ifdef __STDC__
24743 # include <limits.h>
24744 #else
24745 # include <assert.h>
24746 #endif
24747
24748 #undef accept
24749
24750 /* Override any gcc2 internal prototype to avoid an error.  */
24751 #ifdef __cplusplus
24752 extern "C"
24753 {
24754 #endif
24755 /* We use char because int might match the return type of a gcc2
24756    builtin and then its argument prototype would still apply.  */
24757 char accept ();
24758 /* The GNU C library defines this for functions which it implements
24759     to always fail with ENOSYS.  Some functions are actually named
24760     something starting with __ and the normal name is an alias.  */
24761 #if defined (__stub_accept) || defined (__stub___accept)
24762 choke me
24763 #else
24764 char (*f) () = accept;
24765 #endif
24766 #ifdef __cplusplus
24767 }
24768 #endif
24769
24770 int
24771 main ()
24772 {
24773 return f != accept;
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 rm -f conftest.$ac_objext conftest$ac_exeext
24779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24780   (eval $ac_link) 2>conftest.er1
24781   ac_status=$?
24782   grep -v '^ *+' conftest.er1 >conftest.err
24783   rm -f conftest.er1
24784   cat conftest.err >&5
24785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786   (exit $ac_status); } &&
24787          { ac_try='test -z "$ac_c_werror_flag"
24788                          || test ! -s conftest.err'
24789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24790   (eval $ac_try) 2>&5
24791   ac_status=$?
24792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24793   (exit $ac_status); }; } &&
24794          { ac_try='test -s conftest$ac_exeext'
24795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796   (eval $ac_try) 2>&5
24797   ac_status=$?
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; }; then
24800   ac_cv_func_accept=yes
24801 else
24802   echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.$ac_ext >&5
24804
24805 ac_cv_func_accept=no
24806 fi
24807 rm -f conftest.err conftest.$ac_objext \
24808       conftest$ac_exeext conftest.$ac_ext
24809 fi
24810 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24811 echo "${ECHO_T}$ac_cv_func_accept" >&6
24812 if test $ac_cv_func_accept = yes; then
24813   gcj_checkNsl=0
24814                         gcj_cv_lib_sockets="-lsocket -lnsl"
24815 fi
24816
24817          unset ac_cv_func_accept
24818          LIBS=$gcj_oldLibs
24819      fi
24820      unset ac_cv_func_gethostbyname
24821      gcj_oldLibs=$LIBS
24822      LIBS="$LIBS $gcj_cv_lib_sockets"
24823      echo "$as_me:$LINENO: checking for gethostbyname" >&5
24824 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24825 if test "${ac_cv_func_gethostbyname+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828   if test x$gcc_no_link = xyes; then
24829   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24830 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24831    { (exit 1); exit 1; }; }
24832 fi
24833 cat >conftest.$ac_ext <<_ACEOF
24834 /* confdefs.h.  */
24835 _ACEOF
24836 cat confdefs.h >>conftest.$ac_ext
24837 cat >>conftest.$ac_ext <<_ACEOF
24838 /* end confdefs.h.  */
24839 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24841 #define gethostbyname innocuous_gethostbyname
24842
24843 /* System header to define __stub macros and hopefully few prototypes,
24844     which can conflict with char gethostbyname (); below.
24845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24846     <limits.h> exists even on freestanding compilers.  */
24847
24848 #ifdef __STDC__
24849 # include <limits.h>
24850 #else
24851 # include <assert.h>
24852 #endif
24853
24854 #undef gethostbyname
24855
24856 /* Override any gcc2 internal prototype to avoid an error.  */
24857 #ifdef __cplusplus
24858 extern "C"
24859 {
24860 #endif
24861 /* We use char because int might match the return type of a gcc2
24862    builtin and then its argument prototype would still apply.  */
24863 char gethostbyname ();
24864 /* The GNU C library defines this for functions which it implements
24865     to always fail with ENOSYS.  Some functions are actually named
24866     something starting with __ and the normal name is an alias.  */
24867 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24868 choke me
24869 #else
24870 char (*f) () = gethostbyname;
24871 #endif
24872 #ifdef __cplusplus
24873 }
24874 #endif
24875
24876 int
24877 main ()
24878 {
24879 return f != gethostbyname;
24880   ;
24881   return 0;
24882 }
24883 _ACEOF
24884 rm -f conftest.$ac_objext conftest$ac_exeext
24885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24886   (eval $ac_link) 2>conftest.er1
24887   ac_status=$?
24888   grep -v '^ *+' conftest.er1 >conftest.err
24889   rm -f conftest.er1
24890   cat conftest.err >&5
24891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892   (exit $ac_status); } &&
24893          { ac_try='test -z "$ac_c_werror_flag"
24894                          || test ! -s conftest.err'
24895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24896   (eval $ac_try) 2>&5
24897   ac_status=$?
24898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899   (exit $ac_status); }; } &&
24900          { ac_try='test -s conftest$ac_exeext'
24901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24902   (eval $ac_try) 2>&5
24903   ac_status=$?
24904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24905   (exit $ac_status); }; }; then
24906   ac_cv_func_gethostbyname=yes
24907 else
24908   echo "$as_me: failed program was:" >&5
24909 sed 's/^/| /' conftest.$ac_ext >&5
24910
24911 ac_cv_func_gethostbyname=no
24912 fi
24913 rm -f conftest.err conftest.$ac_objext \
24914       conftest$ac_exeext conftest.$ac_ext
24915 fi
24916 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24917 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24918 if test $ac_cv_func_gethostbyname = yes; then
24919   :
24920 else
24921   echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24922 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24923 if test "${ac_cv_lib_nsl_main+set}" = set; then
24924   echo $ECHO_N "(cached) $ECHO_C" >&6
24925 else
24926   ac_check_lib_save_LIBS=$LIBS
24927 LIBS="-lnsl  $LIBS"
24928 if test x$gcc_no_link = xyes; then
24929   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24931    { (exit 1); exit 1; }; }
24932 fi
24933 cat >conftest.$ac_ext <<_ACEOF
24934 /* confdefs.h.  */
24935 _ACEOF
24936 cat confdefs.h >>conftest.$ac_ext
24937 cat >>conftest.$ac_ext <<_ACEOF
24938 /* end confdefs.h.  */
24939
24940
24941 int
24942 main ()
24943 {
24944 main ();
24945   ;
24946   return 0;
24947 }
24948 _ACEOF
24949 rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24951   (eval $ac_link) 2>conftest.er1
24952   ac_status=$?
24953   grep -v '^ *+' conftest.er1 >conftest.err
24954   rm -f conftest.er1
24955   cat conftest.err >&5
24956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957   (exit $ac_status); } &&
24958          { ac_try='test -z "$ac_c_werror_flag"
24959                          || test ! -s conftest.err'
24960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24961   (eval $ac_try) 2>&5
24962   ac_status=$?
24963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964   (exit $ac_status); }; } &&
24965          { ac_try='test -s conftest$ac_exeext'
24966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24967   (eval $ac_try) 2>&5
24968   ac_status=$?
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); }; }; then
24971   ac_cv_lib_nsl_main=yes
24972 else
24973   echo "$as_me: failed program was:" >&5
24974 sed 's/^/| /' conftest.$ac_ext >&5
24975
24976 ac_cv_lib_nsl_main=no
24977 fi
24978 rm -f conftest.err conftest.$ac_objext \
24979       conftest$ac_exeext conftest.$ac_ext
24980 LIBS=$ac_check_lib_save_LIBS
24981 fi
24982 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24983 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24984 if test $ac_cv_lib_nsl_main = yes; then
24985   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24986 fi
24987
24988 fi
24989
24990      unset ac_cv_func_gethostbyname
24991      LIBS=$gcj_oldLIBS
24992
24993 fi
24994 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24995 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24996    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24997
24998    if test "$with_system_zlib" = yes; then
24999       echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25000 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25001 if test "${ac_cv_lib_z_deflate+set}" = set; then
25002   echo $ECHO_N "(cached) $ECHO_C" >&6
25003 else
25004   ac_check_lib_save_LIBS=$LIBS
25005 LIBS="-lz  $LIBS"
25006 if test x$gcc_no_link = xyes; then
25007   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25008 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25009    { (exit 1); exit 1; }; }
25010 fi
25011 cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017
25018 /* Override any gcc2 internal prototype to avoid an error.  */
25019 #ifdef __cplusplus
25020 extern "C"
25021 #endif
25022 /* We use char because int might match the return type of a gcc2
25023    builtin and then its argument prototype would still apply.  */
25024 char deflate ();
25025 int
25026 main ()
25027 {
25028 deflate ();
25029   ;
25030   return 0;
25031 }
25032 _ACEOF
25033 rm -f conftest.$ac_objext conftest$ac_exeext
25034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25035   (eval $ac_link) 2>conftest.er1
25036   ac_status=$?
25037   grep -v '^ *+' conftest.er1 >conftest.err
25038   rm -f conftest.er1
25039   cat conftest.err >&5
25040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041   (exit $ac_status); } &&
25042          { ac_try='test -z "$ac_c_werror_flag"
25043                          || test ! -s conftest.err'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; } &&
25049          { ac_try='test -s conftest$ac_exeext'
25050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051   (eval $ac_try) 2>&5
25052   ac_status=$?
25053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054   (exit $ac_status); }; }; then
25055   ac_cv_lib_z_deflate=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060 ac_cv_lib_z_deflate=no
25061 fi
25062 rm -f conftest.err conftest.$ac_objext \
25063       conftest$ac_exeext conftest.$ac_ext
25064 LIBS=$ac_check_lib_save_LIBS
25065 fi
25066 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25067 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25068 if test $ac_cv_lib_z_deflate = yes; then
25069   ZLIBSPEC=-lz
25070 else
25071   ZLIBSPEC=
25072 fi
25073
25074    fi
25075
25076    # Test for Gtk stuff, if asked for.
25077    if test "$use_gtk_awt" = yes; then
25078
25079   succeeded=no
25080
25081   if test -z "$PKG_CONFIG"; then
25082     # Extract the first word of "pkg-config", so it can be a program name with args.
25083 set dummy pkg-config; ac_word=$2
25084 echo "$as_me:$LINENO: checking for $ac_word" >&5
25085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25086 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25087   echo $ECHO_N "(cached) $ECHO_C" >&6
25088 else
25089   case $PKG_CONFIG in
25090   [\\/]* | ?:[\\/]*)
25091   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25092   ;;
25093   *)
25094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25095 for as_dir in $PATH
25096 do
25097   IFS=$as_save_IFS
25098   test -z "$as_dir" && as_dir=.
25099   for ac_exec_ext in '' $ac_executable_extensions; do
25100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25101     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25103     break 2
25104   fi
25105 done
25106 done
25107
25108   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25109   ;;
25110 esac
25111 fi
25112 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25113
25114 if test -n "$PKG_CONFIG"; then
25115   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25116 echo "${ECHO_T}$PKG_CONFIG" >&6
25117 else
25118   echo "$as_me:$LINENO: result: no" >&5
25119 echo "${ECHO_T}no" >&6
25120 fi
25121
25122   fi
25123
25124   if test "$PKG_CONFIG" = "no" ; then
25125      echo "*** The pkg-config script could not be found. Make sure it is"
25126      echo "*** in your path, or set the PKG_CONFIG environment variable"
25127      echo "*** to the full path to pkg-config."
25128      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25129   else
25130      PKG_CONFIG_MIN_VERSION=0.9.0
25131      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25132         echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
25133 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
25134
25135         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
25136             echo "$as_me:$LINENO: result: yes" >&5
25137 echo "${ECHO_T}yes" >&6
25138             succeeded=yes
25139
25140             echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25141 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
25142             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
25143             echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25144 echo "${ECHO_T}$GTK_CFLAGS" >&6
25145
25146             echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25147 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25148             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25149             echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25150 echo "${ECHO_T}$GTK_LIBS" >&6
25151         else
25152             GTK_CFLAGS=""
25153             GTK_LIBS=""
25154             ## If we have a custom action on failure, don't print errors, but
25155             ## do set a variable so people can do so.
25156             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25157             echo $GTK_PKG_ERRORS
25158         fi
25159
25160
25161
25162      else
25163         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25164         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25165      fi
25166   fi
25167
25168   if test $succeeded = yes; then
25169      :
25170   else
25171      { { 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
25172 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;}
25173    { (exit 1); exit 1; }; }
25174   fi
25175
25176
25177
25178
25179
25180   succeeded=no
25181
25182   if test -z "$PKG_CONFIG"; then
25183     # Extract the first word of "pkg-config", so it can be a program name with args.
25184 set dummy pkg-config; ac_word=$2
25185 echo "$as_me:$LINENO: checking for $ac_word" >&5
25186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25188   echo $ECHO_N "(cached) $ECHO_C" >&6
25189 else
25190   case $PKG_CONFIG in
25191   [\\/]* | ?:[\\/]*)
25192   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25193   ;;
25194   *)
25195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25196 for as_dir in $PATH
25197 do
25198   IFS=$as_save_IFS
25199   test -z "$as_dir" && as_dir=.
25200   for ac_exec_ext in '' $ac_executable_extensions; do
25201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25202     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25204     break 2
25205   fi
25206 done
25207 done
25208
25209   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25210   ;;
25211 esac
25212 fi
25213 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25214
25215 if test -n "$PKG_CONFIG"; then
25216   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25217 echo "${ECHO_T}$PKG_CONFIG" >&6
25218 else
25219   echo "$as_me:$LINENO: result: no" >&5
25220 echo "${ECHO_T}no" >&6
25221 fi
25222
25223   fi
25224
25225   if test "$PKG_CONFIG" = "no" ; then
25226      echo "*** The pkg-config script could not be found. Make sure it is"
25227      echo "*** in your path, or set the PKG_CONFIG environment variable"
25228      echo "*** to the full path to pkg-config."
25229      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25230   else
25231      PKG_CONFIG_MIN_VERSION=0.9.0
25232      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25233         echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25234 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25235
25236         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25237             echo "$as_me:$LINENO: result: yes" >&5
25238 echo "${ECHO_T}yes" >&6
25239             succeeded=yes
25240
25241             echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25242 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25243             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25244             echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25245 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25246
25247             echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25248 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25249             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25250             echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25251 echo "${ECHO_T}$GLIB_LIBS" >&6
25252         else
25253             GLIB_CFLAGS=""
25254             GLIB_LIBS=""
25255             ## If we have a custom action on failure, don't print errors, but
25256             ## do set a variable so people can do so.
25257             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25258             echo $GLIB_PKG_ERRORS
25259         fi
25260
25261
25262
25263      else
25264         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25265         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25266      fi
25267   fi
25268
25269   if test $succeeded = yes; then
25270      :
25271   else
25272      { { 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
25273 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;}
25274    { (exit 1); exit 1; }; }
25275   fi
25276
25277
25278
25279
25280
25281   succeeded=no
25282
25283   if test -z "$PKG_CONFIG"; then
25284     # Extract the first word of "pkg-config", so it can be a program name with args.
25285 set dummy pkg-config; ac_word=$2
25286 echo "$as_me:$LINENO: checking for $ac_word" >&5
25287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25288 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291   case $PKG_CONFIG in
25292   [\\/]* | ?:[\\/]*)
25293   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25294   ;;
25295   *)
25296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25297 for as_dir in $PATH
25298 do
25299   IFS=$as_save_IFS
25300   test -z "$as_dir" && as_dir=.
25301   for ac_exec_ext in '' $ac_executable_extensions; do
25302   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25303     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25305     break 2
25306   fi
25307 done
25308 done
25309
25310   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25311   ;;
25312 esac
25313 fi
25314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25315
25316 if test -n "$PKG_CONFIG"; then
25317   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25318 echo "${ECHO_T}$PKG_CONFIG" >&6
25319 else
25320   echo "$as_me:$LINENO: result: no" >&5
25321 echo "${ECHO_T}no" >&6
25322 fi
25323
25324   fi
25325
25326   if test "$PKG_CONFIG" = "no" ; then
25327      echo "*** The pkg-config script could not be found. Make sure it is"
25328      echo "*** in your path, or set the PKG_CONFIG environment variable"
25329      echo "*** to the full path to pkg-config."
25330      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25331   else
25332      PKG_CONFIG_MIN_VERSION=0.9.0
25333      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25334         echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25335 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25336
25337         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25338             echo "$as_me:$LINENO: result: yes" >&5
25339 echo "${ECHO_T}yes" >&6
25340             succeeded=yes
25341
25342             echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25343 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25344             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25345             echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25346 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25347
25348             echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25349 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25350             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25351             echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25352 echo "${ECHO_T}$LIBART_LIBS" >&6
25353         else
25354             LIBART_CFLAGS=""
25355             LIBART_LIBS=""
25356             ## If we have a custom action on failure, don't print errors, but
25357             ## do set a variable so people can do so.
25358             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25359             echo $LIBART_PKG_ERRORS
25360         fi
25361
25362
25363
25364      else
25365         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25366         echo "*** See http://www.freedesktop.org/software/pkgconfig"
25367      fi
25368   fi
25369
25370   if test $succeeded = yes; then
25371      :
25372   else
25373      { { 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
25374 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;}
25375    { (exit 1); exit 1; }; }
25376   fi
25377
25378
25379
25380
25381       # We require the XTest Extension to support java.awt.Robot.
25382       echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25383 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25384 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25385   echo $ECHO_N "(cached) $ECHO_C" >&6
25386 else
25387   ac_check_lib_save_LIBS=$LIBS
25388 LIBS="-lXtst ${X_LIBS} $LIBS"
25389 if test x$gcc_no_link = xyes; then
25390   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25391 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25392    { (exit 1); exit 1; }; }
25393 fi
25394 cat >conftest.$ac_ext <<_ACEOF
25395 /* confdefs.h.  */
25396 _ACEOF
25397 cat confdefs.h >>conftest.$ac_ext
25398 cat >>conftest.$ac_ext <<_ACEOF
25399 /* end confdefs.h.  */
25400
25401 /* Override any gcc2 internal prototype to avoid an error.  */
25402 #ifdef __cplusplus
25403 extern "C"
25404 #endif
25405 /* We use char because int might match the return type of a gcc2
25406    builtin and then its argument prototype would still apply.  */
25407 char XTestQueryExtension ();
25408 int
25409 main ()
25410 {
25411 XTestQueryExtension ();
25412   ;
25413   return 0;
25414 }
25415 _ACEOF
25416 rm -f conftest.$ac_objext conftest$ac_exeext
25417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25418   (eval $ac_link) 2>conftest.er1
25419   ac_status=$?
25420   grep -v '^ *+' conftest.er1 >conftest.err
25421   rm -f conftest.er1
25422   cat conftest.err >&5
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); } &&
25425          { ac_try='test -z "$ac_c_werror_flag"
25426                          || test ! -s conftest.err'
25427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428   (eval $ac_try) 2>&5
25429   ac_status=$?
25430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431   (exit $ac_status); }; } &&
25432          { ac_try='test -s conftest$ac_exeext'
25433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25434   (eval $ac_try) 2>&5
25435   ac_status=$?
25436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437   (exit $ac_status); }; }; then
25438   ac_cv_lib_Xtst_XTestQueryExtension=yes
25439 else
25440   echo "$as_me: failed program was:" >&5
25441 sed 's/^/| /' conftest.$ac_ext >&5
25442
25443 ac_cv_lib_Xtst_XTestQueryExtension=no
25444 fi
25445 rm -f conftest.err conftest.$ac_objext \
25446       conftest$ac_exeext conftest.$ac_ext
25447 LIBS=$ac_check_lib_save_LIBS
25448 fi
25449 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25450 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25451 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25452   true
25453 else
25454   { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25455 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25456    { (exit 1); exit 1; }; }
25457 fi
25458
25459    fi
25460
25461    # On Solaris, and maybe other architectures, the Boehm collector
25462    # requires -ldl.
25463    if test "$GC" = boehm; then
25464       case "${host}" in
25465           mips-sgi-irix6*)
25466             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25467             # libgcj.spec is used, so override here
25468             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25469           ;;
25470           *)
25471             echo "$as_me:$LINENO: checking for main in -ldl" >&5
25472 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25473 if test "${ac_cv_lib_dl_main+set}" = set; then
25474   echo $ECHO_N "(cached) $ECHO_C" >&6
25475 else
25476   ac_check_lib_save_LIBS=$LIBS
25477 LIBS="-ldl  $LIBS"
25478 if test x$gcc_no_link = xyes; then
25479   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25481    { (exit 1); exit 1; }; }
25482 fi
25483 cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489
25490
25491 int
25492 main ()
25493 {
25494 main ();
25495   ;
25496   return 0;
25497 }
25498 _ACEOF
25499 rm -f conftest.$ac_objext conftest$ac_exeext
25500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25501   (eval $ac_link) 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } &&
25508          { ac_try='test -z "$ac_c_werror_flag"
25509                          || test ! -s conftest.err'
25510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25511   (eval $ac_try) 2>&5
25512   ac_status=$?
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); }; } &&
25515          { ac_try='test -s conftest$ac_exeext'
25516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25517   (eval $ac_try) 2>&5
25518   ac_status=$?
25519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25520   (exit $ac_status); }; }; then
25521   ac_cv_lib_dl_main=yes
25522 else
25523   echo "$as_me: failed program was:" >&5
25524 sed 's/^/| /' conftest.$ac_ext >&5
25525
25526 ac_cv_lib_dl_main=no
25527 fi
25528 rm -f conftest.err conftest.$ac_objext \
25529       conftest$ac_exeext conftest.$ac_ext
25530 LIBS=$ac_check_lib_save_LIBS
25531 fi
25532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25533 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25534 if test $ac_cv_lib_dl_main = yes; then
25535   SYSTEMSPEC="$SYSTEMSPEC -ldl"
25536 fi
25537
25538           ;;
25539       esac
25540    fi
25541 fi
25542
25543 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25544 case $build in
25545     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25546     *)         CLASSPATH_SEPARATOR=':' ;;
25547 esac
25548
25549
25550 # We must search the source tree for java.lang, since we still don't
25551 # have libgcj.jar nor java/lang/*.class
25552 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25553 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25554
25555 # Since some classes depend on this one, we need its source available
25556 # before we can do any GCJ compilation test :-(
25557 if test ! -f gnu/classpath/Configuration.java; then
25558   test -d gnu || mkdir gnu
25559   test -d gnu/classpath || mkdir gnu/classpath
25560   # Note that it is not crucial that all the values here be correct.
25561   sed -e "s,@prefix@,$prefix," \
25562       -e "s,@VERSION@,$VERSION," \
25563       -e "s,@LIBDEBUG@,false," \
25564       -e "s,@INIT_LOAD_LIBRARY@,false," \
25565       -e "s,@@,$LIBGCJDEBUG," \
25566       -e "s,@default_toolkit@,$TOOLKIT," \
25567       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25568       -e "s,@GTK_CAIRO_ENABLED@,false," \
25569       -e "s,@ECJ_JAR@,," \
25570       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
25571         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25572         > gnu/classpath/Configuration.java
25573   # We do not want to redirect the output of the grep below to /dev/null,
25574   # but we add /dev/null to the input list so that grep will print the
25575   # filename of Configuration.java in case it finds any matches.
25576   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25577     { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25578 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25579    { (exit 1); exit 1; }; }
25580   fi
25581 fi
25582
25583
25584 for ac_prog in gcj
25585 do
25586   # Extract the first word of "$ac_prog", so it can be a program name with args.
25587 set dummy $ac_prog; ac_word=$2
25588 echo "$as_me:$LINENO: checking for $ac_word" >&5
25589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25590 if test "${ac_cv_prog_GCJ+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593   if test -n "$GCJ"; then
25594   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25595 else
25596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25597 for as_dir in $PATH
25598 do
25599   IFS=$as_save_IFS
25600   test -z "$as_dir" && as_dir=.
25601   for ac_exec_ext in '' $ac_executable_extensions; do
25602   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25603     ac_cv_prog_GCJ="$ac_prog"
25604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25605     break 2
25606   fi
25607 done
25608 done
25609
25610 fi
25611 fi
25612 GCJ=$ac_cv_prog_GCJ
25613 if test -n "$GCJ"; then
25614   echo "$as_me:$LINENO: result: $GCJ" >&5
25615 echo "${ECHO_T}$GCJ" >&6
25616 else
25617   echo "$as_me:$LINENO: result: no" >&5
25618 echo "${ECHO_T}no" >&6
25619 fi
25620
25621   test -n "$GCJ" && break
25622 done
25623 test -n "$GCJ" || GCJ="gcj"
25624
25625 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25626 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25627    { (exit 1); exit 1; }; }
25628 if test "x${GCJFLAGS-unset}" = xunset; then
25629    GCJFLAGS="-g -O2"
25630 fi
25631
25632
25633 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
25634
25635 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25636 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25637 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25641   # We make a subdir and do the tests there.  Otherwise we can end up
25642   # making bogus files that we don't know about and never remove.  For
25643   # instance it was reported that on HP-UX the gcc test will end up
25644   # making a dummy file named `D' -- because `-MD' means `put the output
25645   # in D'.
25646   mkdir conftest.dir
25647   # Copy depcomp to subdir because otherwise we won't find it if we're
25648   # using a relative directory.
25649   cp "$am_depcomp" conftest.dir
25650   cd conftest.dir
25651   # We will build objects and dependencies in a subdirectory because
25652   # it helps to detect inapplicable dependency modes.  For instance
25653   # both Tru64's cc and ICC support -MD to output dependencies as a
25654   # side effect of compilation, but ICC will put the dependencies in
25655   # the current directory while Tru64 will put them in the object
25656   # directory.
25657   mkdir sub
25658
25659   am_cv_GCJ_dependencies_compiler_type=none
25660   if test "$am_compiler_list" = ""; then
25661      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25662   fi
25663   for depmode in $am_compiler_list; do
25664     # Setup a source with many dependencies, because some compilers
25665     # like to wrap large dependency lists on column 80 (with \), and
25666     # we should not choose a depcomp mode which is confused by this.
25667     #
25668     # We need to recreate these files for each test, as the compiler may
25669     # overwrite some of them when testing with obscure command lines.
25670     # This happens at least with the AIX C compiler.
25671     : > sub/conftest.c
25672     for i in 1 2 3 4 5 6; do
25673       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25674       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25675       # Solaris 8's {/usr,}/bin/sh.
25676       touch sub/conftst$i.h
25677     done
25678     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25679
25680     case $depmode in
25681     nosideeffect)
25682       # after this tag, mechanisms are not by side-effect, so they'll
25683       # only be used when explicitly requested
25684       if test "x$enable_dependency_tracking" = xyes; then
25685         continue
25686       else
25687         break
25688       fi
25689       ;;
25690     none) break ;;
25691     esac
25692     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25693     # mode.  It turns out that the SunPro C++ compiler does not properly
25694     # handle `-M -o', and we need to detect this.
25695     if depmode=$depmode \
25696        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25697        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25698        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25699          >/dev/null 2>conftest.err &&
25700        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25701        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25702        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25703       # icc doesn't choke on unknown options, it will just issue warnings
25704       # or remarks (even with -Werror).  So we grep stderr for any message
25705       # that says an option was ignored or not supported.
25706       # When given -MP, icc 7.0 and 7.1 complain thusly:
25707       #   icc: Command line warning: ignoring option '-M'; no argument required
25708       # The diagnosis changed in icc 8.0:
25709       #   icc: Command line remark: option '-MP' not supported
25710       if (grep 'ignoring option' conftest.err ||
25711           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25712         am_cv_GCJ_dependencies_compiler_type=$depmode
25713         break
25714       fi
25715     fi
25716   done
25717
25718   cd ..
25719   rm -rf conftest.dir
25720 else
25721   am_cv_GCJ_dependencies_compiler_type=none
25722 fi
25723
25724 fi
25725 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25726 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25727 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25728
25729
25730
25731 if
25732   test "x$enable_dependency_tracking" != xno \
25733   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25734   am__fastdepGCJ_TRUE=
25735   am__fastdepGCJ_FALSE='#'
25736 else
25737   am__fastdepGCJ_TRUE='#'
25738   am__fastdepGCJ_FALSE=
25739 fi
25740
25741
25742
25743
25744 # Now remove it.
25745 rm -f gnu/classpath/Configuration.java
25746
25747 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25748
25749 echo "$as_me:$LINENO: checking for void *" >&5
25750 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25751 if test "${ac_cv_type_void_p+set}" = set; then
25752   echo $ECHO_N "(cached) $ECHO_C" >&6
25753 else
25754   cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760 $ac_includes_default
25761 int
25762 main ()
25763 {
25764 if ((void * *) 0)
25765   return 0;
25766 if (sizeof (void *))
25767   return 0;
25768   ;
25769   return 0;
25770 }
25771 _ACEOF
25772 rm -f conftest.$ac_objext
25773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25774   (eval $ac_compile) 2>conftest.er1
25775   ac_status=$?
25776   grep -v '^ *+' conftest.er1 >conftest.err
25777   rm -f conftest.er1
25778   cat conftest.err >&5
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } &&
25781          { ac_try='test -z "$ac_c_werror_flag"
25782                          || test ! -s conftest.err'
25783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784   (eval $ac_try) 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; } &&
25788          { ac_try='test -s conftest.$ac_objext'
25789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790   (eval $ac_try) 2>&5
25791   ac_status=$?
25792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793   (exit $ac_status); }; }; then
25794   ac_cv_type_void_p=yes
25795 else
25796   echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25798
25799 ac_cv_type_void_p=no
25800 fi
25801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25802 fi
25803 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25804 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25805
25806 echo "$as_me:$LINENO: checking size of void *" >&5
25807 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25808 if test "${ac_cv_sizeof_void_p+set}" = set; then
25809   echo $ECHO_N "(cached) $ECHO_C" >&6
25810 else
25811   if test "$ac_cv_type_void_p" = yes; then
25812   # The cast to unsigned long works around a bug in the HP C Compiler
25813   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25814   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25815   # This bug is HP SR number 8606223364.
25816   if test "$cross_compiling" = yes; then
25817   # Depending upon the size, compute the lo and hi bounds.
25818 cat >conftest.$ac_ext <<_ACEOF
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824 $ac_includes_default
25825 int
25826 main ()
25827 {
25828 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25829 test_array [0] = 0
25830
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25837   (eval $ac_compile) 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } &&
25844          { ac_try='test -z "$ac_c_werror_flag"
25845                          || test ! -s conftest.err'
25846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847   (eval $ac_try) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; } &&
25851          { ac_try='test -s conftest.$ac_objext'
25852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); }; }; then
25857   ac_lo=0 ac_mid=0
25858   while :; do
25859     cat >conftest.$ac_ext <<_ACEOF
25860 /* confdefs.h.  */
25861 _ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h.  */
25865 $ac_includes_default
25866 int
25867 main ()
25868 {
25869 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25870 test_array [0] = 0
25871
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25878   (eval $ac_compile) 2>conftest.er1
25879   ac_status=$?
25880   grep -v '^ *+' conftest.er1 >conftest.err
25881   rm -f conftest.er1
25882   cat conftest.err >&5
25883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884   (exit $ac_status); } &&
25885          { ac_try='test -z "$ac_c_werror_flag"
25886                          || test ! -s conftest.err'
25887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888   (eval $ac_try) 2>&5
25889   ac_status=$?
25890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891   (exit $ac_status); }; } &&
25892          { ac_try='test -s conftest.$ac_objext'
25893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894   (eval $ac_try) 2>&5
25895   ac_status=$?
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); }; }; then
25898   ac_hi=$ac_mid; break
25899 else
25900   echo "$as_me: failed program was:" >&5
25901 sed 's/^/| /' conftest.$ac_ext >&5
25902
25903 ac_lo=`expr $ac_mid + 1`
25904                     if test $ac_lo -le $ac_mid; then
25905                       ac_lo= ac_hi=
25906                       break
25907                     fi
25908                     ac_mid=`expr 2 '*' $ac_mid + 1`
25909 fi
25910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25911   done
25912 else
25913   echo "$as_me: failed program was:" >&5
25914 sed 's/^/| /' conftest.$ac_ext >&5
25915
25916 cat >conftest.$ac_ext <<_ACEOF
25917 /* confdefs.h.  */
25918 _ACEOF
25919 cat confdefs.h >>conftest.$ac_ext
25920 cat >>conftest.$ac_ext <<_ACEOF
25921 /* end confdefs.h.  */
25922 $ac_includes_default
25923 int
25924 main ()
25925 {
25926 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25927 test_array [0] = 0
25928
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext
25934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25935   (eval $ac_compile) 2>conftest.er1
25936   ac_status=$?
25937   grep -v '^ *+' conftest.er1 >conftest.err
25938   rm -f conftest.er1
25939   cat conftest.err >&5
25940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941   (exit $ac_status); } &&
25942          { ac_try='test -z "$ac_c_werror_flag"
25943                          || test ! -s conftest.err'
25944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945   (eval $ac_try) 2>&5
25946   ac_status=$?
25947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948   (exit $ac_status); }; } &&
25949          { ac_try='test -s conftest.$ac_objext'
25950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951   (eval $ac_try) 2>&5
25952   ac_status=$?
25953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954   (exit $ac_status); }; }; then
25955   ac_hi=-1 ac_mid=-1
25956   while :; do
25957     cat >conftest.$ac_ext <<_ACEOF
25958 /* confdefs.h.  */
25959 _ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h.  */
25963 $ac_includes_default
25964 int
25965 main ()
25966 {
25967 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25968 test_array [0] = 0
25969
25970   ;
25971   return 0;
25972 }
25973 _ACEOF
25974 rm -f conftest.$ac_objext
25975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25976   (eval $ac_compile) 2>conftest.er1
25977   ac_status=$?
25978   grep -v '^ *+' conftest.er1 >conftest.err
25979   rm -f conftest.er1
25980   cat conftest.err >&5
25981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982   (exit $ac_status); } &&
25983          { ac_try='test -z "$ac_c_werror_flag"
25984                          || test ! -s conftest.err'
25985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986   (eval $ac_try) 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; } &&
25990          { ac_try='test -s conftest.$ac_objext'
25991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992   (eval $ac_try) 2>&5
25993   ac_status=$?
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); }; }; then
25996   ac_lo=$ac_mid; break
25997 else
25998   echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26000
26001 ac_hi=`expr '(' $ac_mid ')' - 1`
26002                        if test $ac_mid -le $ac_hi; then
26003                          ac_lo= ac_hi=
26004                          break
26005                        fi
26006                        ac_mid=`expr 2 '*' $ac_mid`
26007 fi
26008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26009   done
26010 else
26011   echo "$as_me: failed program was:" >&5
26012 sed 's/^/| /' conftest.$ac_ext >&5
26013
26014 ac_lo= ac_hi=
26015 fi
26016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26017 fi
26018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26019 # Binary search between lo and hi bounds.
26020 while test "x$ac_lo" != "x$ac_hi"; do
26021   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26022   cat >conftest.$ac_ext <<_ACEOF
26023 /* confdefs.h.  */
26024 _ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h.  */
26028 $ac_includes_default
26029 int
26030 main ()
26031 {
26032 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
26033 test_array [0] = 0
26034
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 rm -f conftest.$ac_objext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26041   (eval $ac_compile) 2>conftest.er1
26042   ac_status=$?
26043   grep -v '^ *+' conftest.er1 >conftest.err
26044   rm -f conftest.er1
26045   cat conftest.err >&5
26046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); } &&
26048          { ac_try='test -z "$ac_c_werror_flag"
26049                          || test ! -s conftest.err'
26050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051   (eval $ac_try) 2>&5
26052   ac_status=$?
26053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054   (exit $ac_status); }; } &&
26055          { ac_try='test -s conftest.$ac_objext'
26056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057   (eval $ac_try) 2>&5
26058   ac_status=$?
26059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); }; }; then
26061   ac_hi=$ac_mid
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066 ac_lo=`expr '(' $ac_mid ')' + 1`
26067 fi
26068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26069 done
26070 case $ac_lo in
26071 ?*) ac_cv_sizeof_void_p=$ac_lo;;
26072 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26073 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26074 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26075 See \`config.log' for more details." >&5
26076 echo "$as_me: error: cannot compute sizeof (void *), 77
26077 See \`config.log' for more details." >&2;}
26078    { (exit 1); exit 1; }; }; } ;;
26079 esac
26080 else
26081   if test "$cross_compiling" = yes; then
26082   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26083 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26084 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26085 See \`config.log' for more details." >&5
26086 echo "$as_me: error: cannot run test program while cross compiling
26087 See \`config.log' for more details." >&2;}
26088    { (exit 1); exit 1; }; }; }
26089 else
26090   cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096 $ac_includes_default
26097 long longval () { return (long) (sizeof (void *)); }
26098 unsigned long ulongval () { return (long) (sizeof (void *)); }
26099 #include <stdio.h>
26100 #include <stdlib.h>
26101 int
26102 main ()
26103 {
26104
26105   FILE *f = fopen ("conftest.val", "w");
26106   if (! f)
26107     exit (1);
26108   if (((long) (sizeof (void *))) < 0)
26109     {
26110       long i = longval ();
26111       if (i != ((long) (sizeof (void *))))
26112         exit (1);
26113       fprintf (f, "%ld\n", i);
26114     }
26115   else
26116     {
26117       unsigned long i = ulongval ();
26118       if (i != ((long) (sizeof (void *))))
26119         exit (1);
26120       fprintf (f, "%lu\n", i);
26121     }
26122   exit (ferror (f) || fclose (f) != 0);
26123
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 rm -f conftest$ac_exeext
26129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26130   (eval $ac_link) 2>&5
26131   ac_status=$?
26132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135   (eval $ac_try) 2>&5
26136   ac_status=$?
26137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138   (exit $ac_status); }; }; then
26139   ac_cv_sizeof_void_p=`cat conftest.val`
26140 else
26141   echo "$as_me: program exited with status $ac_status" >&5
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145 ( exit $ac_status )
26146 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26147 echo "$as_me: error: in \`$ac_pwd':" >&2;}
26148 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26149 See \`config.log' for more details." >&5
26150 echo "$as_me: error: cannot compute sizeof (void *), 77
26151 See \`config.log' for more details." >&2;}
26152    { (exit 1); exit 1; }; }; }
26153 fi
26154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26155 fi
26156 fi
26157 rm -f conftest.val
26158 else
26159   ac_cv_sizeof_void_p=0
26160 fi
26161 fi
26162 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26163 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26164 cat >>confdefs.h <<_ACEOF
26165 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26166 _ACEOF
26167
26168
26169
26170 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26171 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26172 if test "${ac_cv_c_bigendian+set}" = set; then
26173   echo $ECHO_N "(cached) $ECHO_C" >&6
26174 else
26175   # See if sys/param.h defines the BYTE_ORDER macro.
26176 cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182 #include <sys/types.h>
26183 #include <sys/param.h>
26184
26185 int
26186 main ()
26187 {
26188 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26189  bogus endian macros
26190 #endif
26191
26192   ;
26193   return 0;
26194 }
26195 _ACEOF
26196 rm -f conftest.$ac_objext
26197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26198   (eval $ac_compile) 2>conftest.er1
26199   ac_status=$?
26200   grep -v '^ *+' conftest.er1 >conftest.err
26201   rm -f conftest.er1
26202   cat conftest.err >&5
26203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26204   (exit $ac_status); } &&
26205          { ac_try='test -z "$ac_c_werror_flag"
26206                          || test ! -s conftest.err'
26207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208   (eval $ac_try) 2>&5
26209   ac_status=$?
26210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211   (exit $ac_status); }; } &&
26212          { ac_try='test -s conftest.$ac_objext'
26213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214   (eval $ac_try) 2>&5
26215   ac_status=$?
26216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217   (exit $ac_status); }; }; then
26218   # It does; now see whether it defined to BIG_ENDIAN or not.
26219 cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225 #include <sys/types.h>
26226 #include <sys/param.h>
26227
26228 int
26229 main ()
26230 {
26231 #if BYTE_ORDER != BIG_ENDIAN
26232  not big endian
26233 #endif
26234
26235   ;
26236   return 0;
26237 }
26238 _ACEOF
26239 rm -f conftest.$ac_objext
26240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26241   (eval $ac_compile) 2>conftest.er1
26242   ac_status=$?
26243   grep -v '^ *+' conftest.er1 >conftest.err
26244   rm -f conftest.er1
26245   cat conftest.err >&5
26246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247   (exit $ac_status); } &&
26248          { ac_try='test -z "$ac_c_werror_flag"
26249                          || test ! -s conftest.err'
26250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251   (eval $ac_try) 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; } &&
26255          { ac_try='test -s conftest.$ac_objext'
26256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257   (eval $ac_try) 2>&5
26258   ac_status=$?
26259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260   (exit $ac_status); }; }; then
26261   ac_cv_c_bigendian=yes
26262 else
26263   echo "$as_me: failed program was:" >&5
26264 sed 's/^/| /' conftest.$ac_ext >&5
26265
26266 ac_cv_c_bigendian=no
26267 fi
26268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26269 else
26270   echo "$as_me: failed program was:" >&5
26271 sed 's/^/| /' conftest.$ac_ext >&5
26272
26273 # It does not; compile a test program.
26274 if test "$cross_compiling" = yes; then
26275   # try to guess the endianness by grepping values into an object file
26276   ac_cv_c_bigendian=unknown
26277   cat >conftest.$ac_ext <<_ACEOF
26278 /* confdefs.h.  */
26279 _ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h.  */
26283 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26284 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26285 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26286 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26287 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26288 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26289 int
26290 main ()
26291 {
26292  _ascii (); _ebcdic ();
26293   ;
26294   return 0;
26295 }
26296 _ACEOF
26297 rm -f conftest.$ac_objext
26298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26299   (eval $ac_compile) 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } &&
26306          { ac_try='test -z "$ac_c_werror_flag"
26307                          || test ! -s conftest.err'
26308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26309   (eval $ac_try) 2>&5
26310   ac_status=$?
26311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312   (exit $ac_status); }; } &&
26313          { ac_try='test -s conftest.$ac_objext'
26314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26315   (eval $ac_try) 2>&5
26316   ac_status=$?
26317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26318   (exit $ac_status); }; }; then
26319   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26320   ac_cv_c_bigendian=yes
26321 fi
26322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26323   if test "$ac_cv_c_bigendian" = unknown; then
26324     ac_cv_c_bigendian=no
26325   else
26326     # finding both strings is unlikely to happen, but who knows?
26327     ac_cv_c_bigendian=unknown
26328   fi
26329 fi
26330 else
26331   echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26333
26334 fi
26335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26336 else
26337   cat >conftest.$ac_ext <<_ACEOF
26338 /* confdefs.h.  */
26339 _ACEOF
26340 cat confdefs.h >>conftest.$ac_ext
26341 cat >>conftest.$ac_ext <<_ACEOF
26342 /* end confdefs.h.  */
26343 int
26344 main ()
26345 {
26346   /* Are we little or big endian?  From Harbison&Steele.  */
26347   union
26348   {
26349     long l;
26350     char c[sizeof (long)];
26351   } u;
26352   u.l = 1;
26353   exit (u.c[sizeof (long) - 1] == 1);
26354 }
26355 _ACEOF
26356 rm -f conftest$ac_exeext
26357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26358   (eval $ac_link) 2>&5
26359   ac_status=$?
26360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363   (eval $ac_try) 2>&5
26364   ac_status=$?
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; }; then
26367   ac_cv_c_bigendian=no
26368 else
26369   echo "$as_me: program exited with status $ac_status" >&5
26370 echo "$as_me: failed program was:" >&5
26371 sed 's/^/| /' conftest.$ac_ext >&5
26372
26373 ( exit $ac_status )
26374 ac_cv_c_bigendian=yes
26375 fi
26376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26377 fi
26378 fi
26379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26380 fi
26381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26383 case $ac_cv_c_bigendian in
26384   yes)
26385
26386 cat >>confdefs.h <<\_ACEOF
26387 #define WORDS_BIGENDIAN 1
26388 _ACEOF
26389  ;;
26390   no)
26391      ;;
26392   *)
26393     { { echo "$as_me:$LINENO: error: unknown endianness
26394 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26395 echo "$as_me: error: unknown endianness
26396 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26397    { (exit 1); exit 1; }; } ;;
26398 esac
26399
26400
26401 ZLIBS=
26402 SYS_ZLIBS=
26403 ZINCS=
26404
26405 if test -z "$ZLIBSPEC"; then
26406    # Use zlib from the GCC tree.
26407    ZINCS='-I$(top_srcdir)/../zlib'
26408    ZLIBS=../zlib/libzgcj_convenience.la
26409 else
26410    # System's zlib.
26411    SYS_ZLIBS="$ZLIBSPEC"
26412 fi
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424 if test "$NATIVE" = yes; then
26425   NATIVE_TRUE=
26426   NATIVE_FALSE='#'
26427 else
26428   NATIVE_TRUE='#'
26429   NATIVE_FALSE=
26430 fi
26431
26432
26433
26434 if test "$enable_shared" = yes; then
26435   ENABLE_SHARED_TRUE=
26436   ENABLE_SHARED_FALSE='#'
26437 else
26438   ENABLE_SHARED_TRUE='#'
26439   ENABLE_SHARED_FALSE=
26440 fi
26441
26442
26443
26444 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26445   NEEDS_DATA_START_TRUE=
26446   NEEDS_DATA_START_FALSE='#'
26447 else
26448   NEEDS_DATA_START_TRUE='#'
26449   NEEDS_DATA_START_FALSE=
26450 fi
26451
26452
26453
26454 if test -z "${with_multisubdir}"; then
26455   INSTALL_BINARIES_TRUE=
26456   INSTALL_BINARIES_FALSE='#'
26457 else
26458   INSTALL_BINARIES_TRUE='#'
26459   INSTALL_BINARIES_FALSE=
26460 fi
26461
26462
26463
26464 # Process the option "--enable-version-specific-runtime-libs"
26465 # Calculate toolexeclibdir
26466 case ${version_specific_libs} in
26467   yes)
26468     # Need the gcc compiler version to know where to install libraries
26469     # and header files if --enable-version-specific-runtime-libs option
26470     # is selected.
26471     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26472     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26473     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26474     toolexeclibdir=$toolexecmainlibdir
26475     ;;
26476   no)
26477     if test -n "$with_cross_host" &&
26478        test x"$with_cross_host" != x"no"; then
26479       # Install a library built with a cross compiler in tooldir, not libdir.
26480       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26481       toolexecmainlibdir='$(toolexecdir)/lib'
26482     else
26483       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26484       toolexecmainlibdir='$(libdir)'
26485     fi
26486     multi_os_directory=`$CC -print-multi-os-directory`
26487     case $multi_os_directory in
26488       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26489       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26490     esac
26491     ;;
26492 esac
26493
26494
26495
26496
26497 # Determine gcj and libgcj version number.
26498 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26499 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26500 GCJVERSION=$gcjversion
26501
26502
26503 cat >>confdefs.h <<_ACEOF
26504 #define GCJVERSION "$GCJVERSION"
26505 _ACEOF
26506
26507
26508 # Determine where the standard .db file and GNU Classpath JNI
26509 # libraries are found.
26510 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26511 multi_os_directory=`$CC -print-multi-os-directory`
26512 case $multi_os_directory in
26513   .)
26514    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26515    ;;
26516   *)
26517    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26518    ;;
26519 esac
26520
26521
26522
26523
26524 cat >>confdefs.h <<\_ACEOF
26525 #define JV_VERSION "1.5.0"
26526 _ACEOF
26527
26528
26529 cat >>confdefs.h <<\_ACEOF
26530 #define JV_API_VERSION "1.5"
26531 _ACEOF
26532
26533
26534
26535 case "${with_gxx_include_dir}" in
26536   yes)
26537     { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26538 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26539    { (exit 1); exit 1; }; }
26540     ;;
26541   no | "")
26542     case "${enable_version_specific_runtime_libs}" in
26543       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26544       *)
26545         libstdcxx_incdir='c++/$(gcc_version)'
26546         gxx_include_dir='include/$(libstdcxx_incdir)'
26547         if test -n "$with_cross_host" &&
26548            test x"$with_cross_host" != x"no"; then
26549           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26550         else
26551           gxx_include_dir='${prefix}/'"$gxx_include_dir"
26552         fi;;
26553     esac ;;
26554   *) gxx_include_dir=${with_gxx_include_dir} ;;
26555 esac
26556
26557
26558
26559
26560 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26561 # On that system, sys/ioctl.h will not include sys/filio.h unless
26562 # BSD_COMP is defined; just including sys/filio.h is simpler.
26563 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26564 # for now.  If you change this, you also must update natFile.cc.
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26589                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26590                   sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26591                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
26592                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
26593 do
26594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26596   echo "$as_me:$LINENO: checking for $ac_header" >&5
26597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 fi
26601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26603 else
26604   # Is the header compilable?
26605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26607 cat >conftest.$ac_ext <<_ACEOF
26608 /* confdefs.h.  */
26609 _ACEOF
26610 cat confdefs.h >>conftest.$ac_ext
26611 cat >>conftest.$ac_ext <<_ACEOF
26612 /* end confdefs.h.  */
26613 $ac_includes_default
26614 #include <$ac_header>
26615 _ACEOF
26616 rm -f conftest.$ac_objext
26617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26618   (eval $ac_compile) 2>conftest.er1
26619   ac_status=$?
26620   grep -v '^ *+' conftest.er1 >conftest.err
26621   rm -f conftest.er1
26622   cat conftest.err >&5
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); } &&
26625          { ac_try='test -z "$ac_c_werror_flag"
26626                          || test ! -s conftest.err'
26627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26628   (eval $ac_try) 2>&5
26629   ac_status=$?
26630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631   (exit $ac_status); }; } &&
26632          { ac_try='test -s conftest.$ac_objext'
26633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26634   (eval $ac_try) 2>&5
26635   ac_status=$?
26636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637   (exit $ac_status); }; }; then
26638   ac_header_compiler=yes
26639 else
26640   echo "$as_me: failed program was:" >&5
26641 sed 's/^/| /' conftest.$ac_ext >&5
26642
26643 ac_header_compiler=no
26644 fi
26645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26647 echo "${ECHO_T}$ac_header_compiler" >&6
26648
26649 # Is the header present?
26650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26652 cat >conftest.$ac_ext <<_ACEOF
26653 /* confdefs.h.  */
26654 _ACEOF
26655 cat confdefs.h >>conftest.$ac_ext
26656 cat >>conftest.$ac_ext <<_ACEOF
26657 /* end confdefs.h.  */
26658 #include <$ac_header>
26659 _ACEOF
26660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26661   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26662   ac_status=$?
26663   grep -v '^ *+' conftest.er1 >conftest.err
26664   rm -f conftest.er1
26665   cat conftest.err >&5
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); } >/dev/null; then
26668   if test -s conftest.err; then
26669     ac_cpp_err=$ac_c_preproc_warn_flag
26670     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26671   else
26672     ac_cpp_err=
26673   fi
26674 else
26675   ac_cpp_err=yes
26676 fi
26677 if test -z "$ac_cpp_err"; then
26678   ac_header_preproc=yes
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683   ac_header_preproc=no
26684 fi
26685 rm -f conftest.err conftest.$ac_ext
26686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26687 echo "${ECHO_T}$ac_header_preproc" >&6
26688
26689 # So?  What about this header?
26690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26691   yes:no: )
26692     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26696     ac_header_preproc=yes
26697     ;;
26698   no:yes:* )
26699     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26701     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26702 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26703     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26705     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26706 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26707     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26709     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26711     (
26712       cat <<\_ASBOX
26713 ## ---------------------------------- ##
26714 ## Report this to the libjava lists.  ##
26715 ## ---------------------------------- ##
26716 _ASBOX
26717     ) |
26718       sed "s/^/$as_me: WARNING:     /" >&2
26719     ;;
26720 esac
26721 echo "$as_me:$LINENO: checking for $ac_header" >&5
26722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26724   echo $ECHO_N "(cached) $ECHO_C" >&6
26725 else
26726   eval "$as_ac_Header=\$ac_header_preproc"
26727 fi
26728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26730
26731 fi
26732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26733   cat >>confdefs.h <<_ACEOF
26734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26735 _ACEOF
26736
26737 fi
26738
26739 done
26740
26741
26742 for ac_header in inttypes.h
26743 do
26744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26746   echo "$as_me:$LINENO: checking for $ac_header" >&5
26747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26749   echo $ECHO_N "(cached) $ECHO_C" >&6
26750 fi
26751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26753 else
26754   # Is the header compilable?
26755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26757 cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h.  */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h.  */
26763 $ac_includes_default
26764 #include <$ac_header>
26765 _ACEOF
26766 rm -f conftest.$ac_objext
26767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26768   (eval $ac_compile) 2>conftest.er1
26769   ac_status=$?
26770   grep -v '^ *+' conftest.er1 >conftest.err
26771   rm -f conftest.er1
26772   cat conftest.err >&5
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); } &&
26775          { ac_try='test -z "$ac_c_werror_flag"
26776                          || test ! -s conftest.err'
26777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26778   (eval $ac_try) 2>&5
26779   ac_status=$?
26780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781   (exit $ac_status); }; } &&
26782          { ac_try='test -s conftest.$ac_objext'
26783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784   (eval $ac_try) 2>&5
26785   ac_status=$?
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); }; }; then
26788   ac_header_compiler=yes
26789 else
26790   echo "$as_me: failed program was:" >&5
26791 sed 's/^/| /' conftest.$ac_ext >&5
26792
26793 ac_header_compiler=no
26794 fi
26795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26797 echo "${ECHO_T}$ac_header_compiler" >&6
26798
26799 # Is the header present?
26800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26802 cat >conftest.$ac_ext <<_ACEOF
26803 /* confdefs.h.  */
26804 _ACEOF
26805 cat confdefs.h >>conftest.$ac_ext
26806 cat >>conftest.$ac_ext <<_ACEOF
26807 /* end confdefs.h.  */
26808 #include <$ac_header>
26809 _ACEOF
26810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26812   ac_status=$?
26813   grep -v '^ *+' conftest.er1 >conftest.err
26814   rm -f conftest.er1
26815   cat conftest.err >&5
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } >/dev/null; then
26818   if test -s conftest.err; then
26819     ac_cpp_err=$ac_c_preproc_warn_flag
26820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26821   else
26822     ac_cpp_err=
26823   fi
26824 else
26825   ac_cpp_err=yes
26826 fi
26827 if test -z "$ac_cpp_err"; then
26828   ac_header_preproc=yes
26829 else
26830   echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.$ac_ext >&5
26832
26833   ac_header_preproc=no
26834 fi
26835 rm -f conftest.err conftest.$ac_ext
26836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26837 echo "${ECHO_T}$ac_header_preproc" >&6
26838
26839 # So?  What about this header?
26840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26841   yes:no: )
26842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26846     ac_header_preproc=yes
26847     ;;
26848   no:yes:* )
26849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26861     (
26862       cat <<\_ASBOX
26863 ## ---------------------------------- ##
26864 ## Report this to the libjava lists.  ##
26865 ## ---------------------------------- ##
26866 _ASBOX
26867     ) |
26868       sed "s/^/$as_me: WARNING:     /" >&2
26869     ;;
26870 esac
26871 echo "$as_me:$LINENO: checking for $ac_header" >&5
26872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26874   echo $ECHO_N "(cached) $ECHO_C" >&6
26875 else
26876   eval "$as_ac_Header=\$ac_header_preproc"
26877 fi
26878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26880
26881 fi
26882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26883   cat >>confdefs.h <<_ACEOF
26884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26885 _ACEOF
26886
26887
26888 cat >>confdefs.h <<\_ACEOF
26889 #define HAVE_INTTYPES_H 1
26890 _ACEOF
26891
26892
26893 cat >>confdefs.h <<\_ACEOF
26894 #define JV_HAVE_INTTYPES_H 1
26895 _ACEOF
26896
26897
26898 fi
26899
26900 done
26901
26902
26903 echo "$as_me:$LINENO: checking for ssize_t" >&5
26904 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26905 if test "${ac_cv_type_ssize_t+set}" = set; then
26906   echo $ECHO_N "(cached) $ECHO_C" >&6
26907 else
26908   cat >conftest.$ac_ext <<_ACEOF
26909 /* confdefs.h.  */
26910 _ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h.  */
26914 $ac_includes_default
26915 int
26916 main ()
26917 {
26918 if ((ssize_t *) 0)
26919   return 0;
26920 if (sizeof (ssize_t))
26921   return 0;
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 rm -f conftest.$ac_objext
26927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26928   (eval $ac_compile) 2>conftest.er1
26929   ac_status=$?
26930   grep -v '^ *+' conftest.er1 >conftest.err
26931   rm -f conftest.er1
26932   cat conftest.err >&5
26933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934   (exit $ac_status); } &&
26935          { ac_try='test -z "$ac_c_werror_flag"
26936                          || test ! -s conftest.err'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; } &&
26942          { ac_try='test -s conftest.$ac_objext'
26943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26944   (eval $ac_try) 2>&5
26945   ac_status=$?
26946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947   (exit $ac_status); }; }; then
26948   ac_cv_type_ssize_t=yes
26949 else
26950   echo "$as_me: failed program was:" >&5
26951 sed 's/^/| /' conftest.$ac_ext >&5
26952
26953 ac_cv_type_ssize_t=no
26954 fi
26955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26956 fi
26957 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26958 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26959 if test $ac_cv_type_ssize_t = yes; then
26960   :
26961 else
26962
26963 cat >>confdefs.h <<_ACEOF
26964 #define ssize_t int
26965 _ACEOF
26966
26967 fi
26968
26969 echo "$as_me:$LINENO: checking for magic_t" >&5
26970 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26971 if test "${ac_cv_type_magic_t+set}" = set; then
26972   echo $ECHO_N "(cached) $ECHO_C" >&6
26973 else
26974   cat >conftest.$ac_ext <<_ACEOF
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980
26981 #ifdef HAVE_MAGIC_H
26982 #include <magic.h>
26983 #endif
26984
26985 int
26986 main ()
26987 {
26988 if ((magic_t *) 0)
26989   return 0;
26990 if (sizeof (magic_t))
26991   return 0;
26992   ;
26993   return 0;
26994 }
26995 _ACEOF
26996 rm -f conftest.$ac_objext
26997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26998   (eval $ac_compile) 2>conftest.er1
26999   ac_status=$?
27000   grep -v '^ *+' conftest.er1 >conftest.err
27001   rm -f conftest.er1
27002   cat conftest.err >&5
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); } &&
27005          { ac_try='test -z "$ac_c_werror_flag"
27006                          || test ! -s conftest.err'
27007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008   (eval $ac_try) 2>&5
27009   ac_status=$?
27010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011   (exit $ac_status); }; } &&
27012          { ac_try='test -s conftest.$ac_objext'
27013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014   (eval $ac_try) 2>&5
27015   ac_status=$?
27016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017   (exit $ac_status); }; }; then
27018   ac_cv_type_magic_t=yes
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023 ac_cv_type_magic_t=no
27024 fi
27025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27026 fi
27027 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
27028 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
27029 if test $ac_cv_type_magic_t = yes; then
27030
27031
27032 cat >>confdefs.h <<\_ACEOF
27033 #define HAVE_MAGIC_T 1
27034 _ACEOF
27035
27036 fi
27037
27038
27039 echo "$as_me:$LINENO: checking for in_addr_t" >&5
27040 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
27041 cat >conftest.$ac_ext <<_ACEOF
27042 /* confdefs.h.  */
27043 _ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h.  */
27047 #include <sys/types.h>
27048 #if STDC_HEADERS
27049 #include <stdlib.h>
27050 #include <stddef.h>
27051 #endif
27052 #if HAVE_NETINET_IN_H
27053 #include <netinet/in.h>
27054 #endif
27055 int
27056 main ()
27057 {
27058 in_addr_t foo;
27059   ;
27060   return 0;
27061 }
27062 _ACEOF
27063 rm -f conftest.$ac_objext
27064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27065   (eval $ac_compile) 2>conftest.er1
27066   ac_status=$?
27067   grep -v '^ *+' conftest.er1 >conftest.err
27068   rm -f conftest.er1
27069   cat conftest.err >&5
27070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071   (exit $ac_status); } &&
27072          { ac_try='test -z "$ac_c_werror_flag"
27073                          || test ! -s conftest.err'
27074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075   (eval $ac_try) 2>&5
27076   ac_status=$?
27077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078   (exit $ac_status); }; } &&
27079          { ac_try='test -s conftest.$ac_objext'
27080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081   (eval $ac_try) 2>&5
27082   ac_status=$?
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); }; }; then
27085
27086 cat >>confdefs.h <<\_ACEOF
27087 #define HAVE_IN_ADDR_T 1
27088 _ACEOF
27089
27090    echo "$as_me:$LINENO: result: yes" >&5
27091 echo "${ECHO_T}yes" >&6
27092 else
27093   echo "$as_me: failed program was:" >&5
27094 sed 's/^/| /' conftest.$ac_ext >&5
27095
27096 echo "$as_me:$LINENO: result: no" >&5
27097 echo "${ECHO_T}no" >&6
27098 fi
27099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27100
27101 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
27102 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
27103 cat >conftest.$ac_ext <<_ACEOF
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109 #include <netinet/in.h>
27110 int
27111 main ()
27112 {
27113 struct ip_mreq mreq;
27114   ;
27115   return 0;
27116 }
27117 _ACEOF
27118 rm -f conftest.$ac_objext
27119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27120   (eval $ac_compile) 2>conftest.er1
27121   ac_status=$?
27122   grep -v '^ *+' conftest.er1 >conftest.err
27123   rm -f conftest.er1
27124   cat conftest.err >&5
27125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126   (exit $ac_status); } &&
27127          { ac_try='test -z "$ac_c_werror_flag"
27128                          || test ! -s conftest.err'
27129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130   (eval $ac_try) 2>&5
27131   ac_status=$?
27132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133   (exit $ac_status); }; } &&
27134          { ac_try='test -s conftest.$ac_objext'
27135   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27136   (eval $ac_try) 2>&5
27137   ac_status=$?
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); }; }; then
27140
27141 cat >>confdefs.h <<\_ACEOF
27142 #define HAVE_STRUCT_IP_MREQ 1
27143 _ACEOF
27144
27145    echo "$as_me:$LINENO: result: yes" >&5
27146 echo "${ECHO_T}yes" >&6
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151 echo "$as_me:$LINENO: result: no" >&5
27152 echo "${ECHO_T}no" >&6
27153 fi
27154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27155
27156 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
27157 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
27158 cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 #include <netinet/in.h>
27165 int
27166 main ()
27167 {
27168 struct ipv6_mreq mreq6;
27169   ;
27170   return 0;
27171 }
27172 _ACEOF
27173 rm -f conftest.$ac_objext
27174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27175   (eval $ac_compile) 2>conftest.er1
27176   ac_status=$?
27177   grep -v '^ *+' conftest.er1 >conftest.err
27178   rm -f conftest.er1
27179   cat conftest.err >&5
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); } &&
27182          { ac_try='test -z "$ac_c_werror_flag"
27183                          || test ! -s conftest.err'
27184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27185   (eval $ac_try) 2>&5
27186   ac_status=$?
27187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188   (exit $ac_status); }; } &&
27189          { ac_try='test -s conftest.$ac_objext'
27190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27191   (eval $ac_try) 2>&5
27192   ac_status=$?
27193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194   (exit $ac_status); }; }; then
27195
27196 cat >>confdefs.h <<\_ACEOF
27197 #define HAVE_STRUCT_IPV6_MREQ 1
27198 _ACEOF
27199
27200    echo "$as_me:$LINENO: result: yes" >&5
27201 echo "${ECHO_T}yes" >&6
27202 else
27203   echo "$as_me: failed program was:" >&5
27204 sed 's/^/| /' conftest.$ac_ext >&5
27205
27206 echo "$as_me:$LINENO: result: no" >&5
27207 echo "${ECHO_T}no" >&6
27208 fi
27209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210
27211 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27212 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27213 cat >conftest.$ac_ext <<_ACEOF
27214 /* confdefs.h.  */
27215 _ACEOF
27216 cat confdefs.h >>conftest.$ac_ext
27217 cat >>conftest.$ac_ext <<_ACEOF
27218 /* end confdefs.h.  */
27219 #include <netinet/in.h>
27220 int
27221 main ()
27222 {
27223 struct sockaddr_in6 addr6;
27224   ;
27225   return 0;
27226 }
27227 _ACEOF
27228 rm -f conftest.$ac_objext
27229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27230   (eval $ac_compile) 2>conftest.er1
27231   ac_status=$?
27232   grep -v '^ *+' conftest.er1 >conftest.err
27233   rm -f conftest.er1
27234   cat conftest.err >&5
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); } &&
27237          { ac_try='test -z "$ac_c_werror_flag"
27238                          || test ! -s conftest.err'
27239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240   (eval $ac_try) 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; } &&
27244          { ac_try='test -s conftest.$ac_objext'
27245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27246   (eval $ac_try) 2>&5
27247   ac_status=$?
27248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249   (exit $ac_status); }; }; then
27250
27251 cat >>confdefs.h <<\_ACEOF
27252 #define HAVE_INET6 1
27253 _ACEOF
27254
27255    echo "$as_me:$LINENO: result: yes" >&5
27256 echo "${ECHO_T}yes" >&6
27257 else
27258   echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27260
27261 echo "$as_me:$LINENO: result: no" >&5
27262 echo "${ECHO_T}no" >&6
27263 fi
27264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27265
27266 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27267 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27268 cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 #define _POSIX_PII_SOCKET
27275 #include <sys/types.h>
27276 #include <sys/socket.h>
27277 int
27278 main ()
27279 {
27280 socklen_t x = 5;
27281   ;
27282   return 0;
27283 }
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287   (eval $ac_compile) 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } &&
27294          { ac_try='test -z "$ac_c_werror_flag"
27295                          || test ! -s conftest.err'
27296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297   (eval $ac_try) 2>&5
27298   ac_status=$?
27299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300   (exit $ac_status); }; } &&
27301          { ac_try='test -s conftest.$ac_objext'
27302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303   (eval $ac_try) 2>&5
27304   ac_status=$?
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); }; }; then
27307
27308 cat >>confdefs.h <<\_ACEOF
27309 #define HAVE_SOCKLEN_T 1
27310 _ACEOF
27311
27312    echo "$as_me:$LINENO: result: yes" >&5
27313 echo "${ECHO_T}yes" >&6
27314 else
27315   echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27317
27318 echo "$as_me:$LINENO: result: no" >&5
27319 echo "${ECHO_T}no" >&6
27320 fi
27321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27322
27323 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27324 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27325 cat >conftest.$ac_ext <<_ACEOF
27326 /* confdefs.h.  */
27327 _ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h.  */
27331 #include <time.h>
27332 int
27333 main ()
27334 {
27335 struct tm tim; tim.tm_gmtoff = 0;
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 rm -f conftest.$ac_objext
27341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27342   (eval $ac_compile) 2>conftest.er1
27343   ac_status=$?
27344   grep -v '^ *+' conftest.er1 >conftest.err
27345   rm -f conftest.er1
27346   cat conftest.err >&5
27347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27348   (exit $ac_status); } &&
27349          { ac_try='test -z "$ac_c_werror_flag"
27350                          || test ! -s conftest.err'
27351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27352   (eval $ac_try) 2>&5
27353   ac_status=$?
27354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355   (exit $ac_status); }; } &&
27356          { ac_try='test -s conftest.$ac_objext'
27357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27358   (eval $ac_try) 2>&5
27359   ac_status=$?
27360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361   (exit $ac_status); }; }; then
27362
27363 cat >>confdefs.h <<\_ACEOF
27364 #define STRUCT_TM_HAS_GMTOFF 1
27365 _ACEOF
27366
27367    echo "$as_me:$LINENO: result: yes" >&5
27368 echo "${ECHO_T}yes" >&6
27369 else
27370   echo "$as_me: failed program was:" >&5
27371 sed 's/^/| /' conftest.$ac_ext >&5
27372
27373 echo "$as_me:$LINENO: result: no" >&5
27374 echo "${ECHO_T}no" >&6
27375    echo "$as_me:$LINENO: checking for global timezone variable" >&5
27376 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27377                cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h.  */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h.  */
27383 #include <time.h>
27384 int
27385 main ()
27386 {
27387 void i(){long z2 = 2*timezone;}
27388   ;
27389   return 0;
27390 }
27391 _ACEOF
27392 rm -f conftest.$ac_objext
27393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27394   (eval $ac_compile) 2>conftest.er1
27395   ac_status=$?
27396   grep -v '^ *+' conftest.er1 >conftest.err
27397   rm -f conftest.er1
27398   cat conftest.err >&5
27399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400   (exit $ac_status); } &&
27401          { ac_try='test -z "$ac_c_werror_flag"
27402                          || test ! -s conftest.err'
27403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27404   (eval $ac_try) 2>&5
27405   ac_status=$?
27406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27407   (exit $ac_status); }; } &&
27408          { ac_try='test -s conftest.$ac_objext'
27409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27410   (eval $ac_try) 2>&5
27411   ac_status=$?
27412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413   (exit $ac_status); }; }; then
27414
27415 cat >>confdefs.h <<\_ACEOF
27416 #define HAVE_TIMEZONE 1
27417 _ACEOF
27418
27419       echo "$as_me:$LINENO: result: yes" >&5
27420 echo "${ECHO_T}yes" >&6
27421 else
27422   echo "$as_me: failed program was:" >&5
27423 sed 's/^/| /' conftest.$ac_ext >&5
27424
27425 echo "$as_me:$LINENO: result: no" >&5
27426 echo "${ECHO_T}no" >&6
27427        echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27428 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27429               cat >conftest.$ac_ext <<_ACEOF
27430 /* confdefs.h.  */
27431 _ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h.  */
27435 #include <time.h>
27436 int
27437 main ()
27438 {
27439 long z2 = _timezone;
27440   ;
27441   return 0;
27442 }
27443 _ACEOF
27444 rm -f conftest.$ac_objext
27445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27446   (eval $ac_compile) 2>conftest.er1
27447   ac_status=$?
27448   grep -v '^ *+' conftest.er1 >conftest.err
27449   rm -f conftest.er1
27450   cat conftest.err >&5
27451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452   (exit $ac_status); } &&
27453          { ac_try='test -z "$ac_c_werror_flag"
27454                          || test ! -s conftest.err'
27455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27456   (eval $ac_try) 2>&5
27457   ac_status=$?
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); }; } &&
27460          { ac_try='test -s conftest.$ac_objext'
27461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27462   (eval $ac_try) 2>&5
27463   ac_status=$?
27464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); }; }; then
27466
27467 cat >>confdefs.h <<\_ACEOF
27468 #define HAVE_UNDERSCORE_TIMEZONE 1
27469 _ACEOF
27470
27471           echo "$as_me:$LINENO: result: yes" >&5
27472 echo "${ECHO_T}yes" >&6
27473 else
27474   echo "$as_me: failed program was:" >&5
27475 sed 's/^/| /' conftest.$ac_ext >&5
27476
27477 echo "$as_me:$LINENO: result: no" >&5
27478 echo "${ECHO_T}no" >&6
27479 fi
27480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27481 fi
27482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27483 fi
27484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27485
27486 for ac_prog in perl
27487 do
27488   # Extract the first word of "$ac_prog", so it can be a program name with args.
27489 set dummy $ac_prog; ac_word=$2
27490 echo "$as_me:$LINENO: checking for $ac_word" >&5
27491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27492 if test "${ac_cv_prog_PERL+set}" = set; then
27493   echo $ECHO_N "(cached) $ECHO_C" >&6
27494 else
27495   if test -n "$PERL"; then
27496   ac_cv_prog_PERL="$PERL" # Let the user override the test.
27497 else
27498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27499 for as_dir in $PATH
27500 do
27501   IFS=$as_save_IFS
27502   test -z "$as_dir" && as_dir=.
27503   for ac_exec_ext in '' $ac_executable_extensions; do
27504   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27505     ac_cv_prog_PERL="$ac_prog"
27506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27507     break 2
27508   fi
27509 done
27510 done
27511
27512 fi
27513 fi
27514 PERL=$ac_cv_prog_PERL
27515 if test -n "$PERL"; then
27516   echo "$as_me:$LINENO: result: $PERL" >&5
27517 echo "${ECHO_T}$PERL" >&6
27518 else
27519   echo "$as_me:$LINENO: result: no" >&5
27520 echo "${ECHO_T}no" >&6
27521 fi
27522
27523   test -n "$PERL" && break
27524 done
27525 test -n "$PERL" || PERL="false"
27526
27527
27528 SYSDEP_SOURCES=
27529 SIGNAL_HANDLER_AUX=
27530
27531 case "${host}" in
27532  i?86-*-linux*)
27533     SIGNAL_HANDLER=include/i386-signal.h
27534     ;;
27535  sparc*-sun-solaris*)
27536     SIGNAL_HANDLER=include/sparc-signal.h
27537     ;;
27538 # ia64-*)
27539 #    SYSDEP_SOURCES=sysdep/ia64.c
27540 #    test -d sysdep || mkdir sysdep
27541 #    ;;
27542  hppa*-*-linux*)
27543     SIGNAL_HANDLER=include/pa-signal.h
27544     ;;
27545  hppa*-hp-hpux*)
27546     SIGNAL_HANDLER=include/hppa-signal.h
27547     ;;
27548  ia64-*-linux*)
27549     SIGNAL_HANDLER=include/dwarf2-signal.h
27550     ;;
27551  powerpc*-*-linux*)
27552     SIGNAL_HANDLER=include/powerpc-signal.h
27553     ;;
27554  alpha*-*-linux*)
27555     SIGNAL_HANDLER=include/dwarf2-signal.h
27556     ;;
27557  s390*-*-linux*)
27558     SIGNAL_HANDLER=include/s390-signal.h
27559     ;;
27560  x86_64*-*-linux*)
27561     SIGNAL_HANDLER=include/x86_64-signal.h
27562     SIGNAL_HANDLER_AUX=include/i386-signal.h
27563     ;;
27564  sparc*-*-linux*)
27565     SIGNAL_HANDLER=include/dwarf2-signal.h
27566     ;;
27567  sh*-*-linux*)
27568     SIGNAL_HANDLER=include/sh-signal.h
27569     ;;
27570  *mingw*)
27571     SIGNAL_HANDLER=include/win32-signal.h
27572     ;;
27573  mips*-*-linux*)
27574     SIGNAL_HANDLER=include/mips-signal.h
27575     ;;
27576  m68*-*-linux*)
27577     SIGNAL_HANDLER=include/dwarf2-signal.h
27578     ;;
27579  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
27580     SIGNAL_HANDLER=include/darwin-signal.h
27581     ;;
27582  powerpc*-*-aix*)
27583     SIGNAL_HANDLER=include/aix-signal.h
27584     ;;
27585  *)
27586     SIGNAL_HANDLER=include/default-signal.h
27587     ;;
27588 esac
27589
27590 # If we're using sjlj exceptions, forget what we just learned.
27591 if test "$enable_sjlj_exceptions" = yes; then
27592    SIGNAL_HANDLER=include/default-signal.h
27593    SIGNAL_HANDLER_AUX=
27594 fi
27595
27596
27597
27598 if test -z "$SIGNAL_HANDLER_AUX"; then
27599   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27600 fi
27601
27602                     ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27603
27604
27605 if test "${multilib}" = "yes"; then
27606   multilib_arg="--enable-multilib"
27607 else
27608   multilib_arg=
27609 fi
27610
27611 # See if we support thread-local storage.
27612
27613
27614    # Check whether --enable-tls or --disable-tls was given.
27615 if test "${enable_tls+set}" = set; then
27616   enableval="$enable_tls"
27617
27618       case "$enableval" in
27619        yes|no) ;;
27620        *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27621 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27622    { (exit 1); exit 1; }; } ;;
27623       esac
27624
27625 else
27626   enable_tls=yes
27627 fi;
27628
27629   echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27630 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27631 if test "${gcc_cv_have_tls+set}" = set; then
27632   echo $ECHO_N "(cached) $ECHO_C" >&6
27633 else
27634
27635     if test "$cross_compiling" = yes; then
27636                 if test x$gcc_no_link = xyes; then
27637   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27638 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27639    { (exit 1); exit 1; }; }
27640 fi
27641 cat >conftest.$ac_ext <<_ACEOF
27642 __thread int a; int b; int main() { return a = b; }
27643 _ACEOF
27644 rm -f conftest.$ac_objext conftest$ac_exeext
27645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27646   (eval $ac_link) 2>conftest.er1
27647   ac_status=$?
27648   grep -v '^ *+' conftest.er1 >conftest.err
27649   rm -f conftest.er1
27650   cat conftest.err >&5
27651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652   (exit $ac_status); } &&
27653          { ac_try='test -z "$ac_c_werror_flag"
27654                          || test ! -s conftest.err'
27655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27656   (eval $ac_try) 2>&5
27657   ac_status=$?
27658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659   (exit $ac_status); }; } &&
27660          { ac_try='test -s conftest$ac_exeext'
27661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27662   (eval $ac_try) 2>&5
27663   ac_status=$?
27664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27665   (exit $ac_status); }; }; then
27666   chktls_save_LDFLAGS="$LDFLAGS"
27667                           case $host in
27668             *-*-linux*)
27669               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
27670               ;;
27671           esac
27672           chktls_save_CFLAGS="$CFLAGS"
27673           CFLAGS="-fPIC $CFLAGS"
27674                   if test x$gcc_no_link = xyes; then
27675   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27676 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27677    { (exit 1); exit 1; }; }
27678 fi
27679 cat >conftest.$ac_ext <<_ACEOF
27680 int f() { return 0; }
27681 _ACEOF
27682 rm -f conftest.$ac_objext conftest$ac_exeext
27683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27684   (eval $ac_link) 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } &&
27691          { ac_try='test -z "$ac_c_werror_flag"
27692                          || test ! -s conftest.err'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; } &&
27698          { ac_try='test -s conftest$ac_exeext'
27699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700   (eval $ac_try) 2>&5
27701   ac_status=$?
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); }; }; then
27704   if test x$gcc_no_link = xyes; then
27705   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27706 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27707    { (exit 1); exit 1; }; }
27708 fi
27709 cat >conftest.$ac_ext <<_ACEOF
27710 __thread int a; int b; int f() { return a = b; }
27711 _ACEOF
27712 rm -f conftest.$ac_objext conftest$ac_exeext
27713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27714   (eval $ac_link) 2>conftest.er1
27715   ac_status=$?
27716   grep -v '^ *+' conftest.er1 >conftest.err
27717   rm -f conftest.er1
27718   cat conftest.err >&5
27719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720   (exit $ac_status); } &&
27721          { ac_try='test -z "$ac_c_werror_flag"
27722                          || test ! -s conftest.err'
27723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27724   (eval $ac_try) 2>&5
27725   ac_status=$?
27726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27727   (exit $ac_status); }; } &&
27728          { ac_try='test -s conftest$ac_exeext'
27729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27730   (eval $ac_try) 2>&5
27731   ac_status=$?
27732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27733   (exit $ac_status); }; }; then
27734   gcc_cv_have_tls=yes
27735 else
27736   echo "$as_me: failed program was:" >&5
27737 sed 's/^/| /' conftest.$ac_ext >&5
27738
27739 gcc_cv_have_tls=no
27740 fi
27741 rm -f conftest.err conftest.$ac_objext \
27742       conftest$ac_exeext conftest.$ac_ext
27743 else
27744   echo "$as_me: failed program was:" >&5
27745 sed 's/^/| /' conftest.$ac_ext >&5
27746
27747 gcc_cv_have_tls=yes
27748 fi
27749 rm -f conftest.err conftest.$ac_objext \
27750       conftest$ac_exeext conftest.$ac_ext
27751           CFLAGS="$chktls_save_CFLAGS"
27752           LDFLAGS="$chktls_save_LDFLAGS"
27753 else
27754   echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27756
27757 gcc_cv_have_tls=no
27758 fi
27759 rm -f conftest.err conftest.$ac_objext \
27760       conftest$ac_exeext conftest.$ac_ext
27761
27762
27763 else
27764   cat >conftest.$ac_ext <<_ACEOF
27765 __thread int a; int b; int main() { return a = b; }
27766 _ACEOF
27767 rm -f conftest$ac_exeext
27768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27769   (eval $ac_link) 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774   (eval $ac_try) 2>&5
27775   ac_status=$?
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); }; }; then
27778                       chktls_save_LDFLAGS="$LDFLAGS"
27779       LDFLAGS="-static $LDFLAGS"
27780       if test x$gcc_no_link = xyes; then
27781   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27783    { (exit 1); exit 1; }; }
27784 fi
27785 cat >conftest.$ac_ext <<_ACEOF
27786 int main() { return 0; }
27787 _ACEOF
27788 rm -f conftest.$ac_objext conftest$ac_exeext
27789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27790   (eval $ac_link) 2>conftest.er1
27791   ac_status=$?
27792   grep -v '^ *+' conftest.er1 >conftest.err
27793   rm -f conftest.er1
27794   cat conftest.err >&5
27795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796   (exit $ac_status); } &&
27797          { ac_try='test -z "$ac_c_werror_flag"
27798                          || test ! -s conftest.err'
27799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27800   (eval $ac_try) 2>&5
27801   ac_status=$?
27802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27803   (exit $ac_status); }; } &&
27804          { ac_try='test -s conftest$ac_exeext'
27805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27806   (eval $ac_try) 2>&5
27807   ac_status=$?
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); }; }; then
27810   if test "$cross_compiling" = yes; then
27811   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27812 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27813 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27814 See \`config.log' for more details." >&5
27815 echo "$as_me: error: cannot run test program while cross compiling
27816 See \`config.log' for more details." >&2;}
27817    { (exit 1); exit 1; }; }; }
27818 else
27819   cat >conftest.$ac_ext <<_ACEOF
27820 __thread int a; int b; int main() { return a = b; }
27821 _ACEOF
27822 rm -f conftest$ac_exeext
27823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27824   (eval $ac_link) 2>&5
27825   ac_status=$?
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; }; then
27833   gcc_cv_have_tls=yes
27834 else
27835   echo "$as_me: program exited with status $ac_status" >&5
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27838
27839 ( exit $ac_status )
27840 gcc_cv_have_tls=no
27841 fi
27842 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27843 fi
27844 else
27845   echo "$as_me: failed program was:" >&5
27846 sed 's/^/| /' conftest.$ac_ext >&5
27847
27848 gcc_cv_have_tls=yes
27849 fi
27850 rm -f conftest.err conftest.$ac_objext \
27851       conftest$ac_exeext conftest.$ac_ext
27852       LDFLAGS="$chktls_save_LDFLAGS"
27853       if test $gcc_cv_have_tls = yes; then
27854                                                 chktls_save_CFLAGS="$CFLAGS"
27855         thread_CFLAGS=failed
27856         for flag in '' '-pthread' '-lpthread'; do
27857           CFLAGS="$flag $chktls_save_CFLAGS"
27858           if test x$gcc_no_link = xyes; then
27859   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27861    { (exit 1); exit 1; }; }
27862 fi
27863 cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 #include <pthread.h>
27870                 void *g(void *d) { return NULL; }
27871 int
27872 main ()
27873 {
27874 pthread_t t; pthread_create(&t,NULL,g,NULL);
27875   ;
27876   return 0;
27877 }
27878 _ACEOF
27879 rm -f conftest.$ac_objext conftest$ac_exeext
27880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27881   (eval $ac_link) 2>conftest.er1
27882   ac_status=$?
27883   grep -v '^ *+' conftest.er1 >conftest.err
27884   rm -f conftest.er1
27885   cat conftest.err >&5
27886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887   (exit $ac_status); } &&
27888          { ac_try='test -z "$ac_c_werror_flag"
27889                          || test ! -s conftest.err'
27890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27891   (eval $ac_try) 2>&5
27892   ac_status=$?
27893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894   (exit $ac_status); }; } &&
27895          { ac_try='test -s conftest$ac_exeext'
27896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27897   (eval $ac_try) 2>&5
27898   ac_status=$?
27899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900   (exit $ac_status); }; }; then
27901   thread_CFLAGS="$flag"
27902 else
27903   echo "$as_me: failed program was:" >&5
27904 sed 's/^/| /' conftest.$ac_ext >&5
27905
27906 fi
27907 rm -f conftest.err conftest.$ac_objext \
27908       conftest$ac_exeext conftest.$ac_ext
27909           if test "X$thread_CFLAGS" != Xfailed; then
27910             break
27911           fi
27912         done
27913         CFLAGS="$chktls_save_CFLAGS"
27914         if test "X$thread_CFLAGS" != Xfailed; then
27915           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27916           if test "$cross_compiling" = yes; then
27917   { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27918 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27919 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27920 See \`config.log' for more details." >&5
27921 echo "$as_me: error: cannot run test program while cross compiling
27922 See \`config.log' for more details." >&2;}
27923    { (exit 1); exit 1; }; }; }
27924 else
27925   cat >conftest.$ac_ext <<_ACEOF
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931 #include <pthread.h>
27932                 __thread int a;
27933                 static int *a_in_other_thread;
27934                 static void *
27935                 thread_func (void *arg)
27936                 {
27937                   a_in_other_thread = &a;
27938                   return (void *)0;
27939                 }
27940 int
27941 main ()
27942 {
27943 pthread_t thread;
27944                 void *thread_retval;
27945                 int *a_in_main_thread;
27946                 if (pthread_create (&thread, (pthread_attr_t *)0,
27947                                     thread_func, (void *)0))
27948                   return 0;
27949                 a_in_main_thread = &a;
27950                 if (pthread_join (thread, &thread_retval))
27951                   return 0;
27952                 return (a_in_other_thread == a_in_main_thread);
27953   ;
27954   return 0;
27955 }
27956 _ACEOF
27957 rm -f conftest$ac_exeext
27958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27959   (eval $ac_link) 2>&5
27960   ac_status=$?
27961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964   (eval $ac_try) 2>&5
27965   ac_status=$?
27966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967   (exit $ac_status); }; }; then
27968   gcc_cv_have_tls=yes
27969 else
27970   echo "$as_me: program exited with status $ac_status" >&5
27971 echo "$as_me: failed program was:" >&5
27972 sed 's/^/| /' conftest.$ac_ext >&5
27973
27974 ( exit $ac_status )
27975 gcc_cv_have_tls=no
27976 fi
27977 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27978 fi
27979           CFLAGS="$chktls_save_CFLAGS"
27980         fi
27981       fi
27982 else
27983   echo "$as_me: program exited with status $ac_status" >&5
27984 echo "$as_me: failed program was:" >&5
27985 sed 's/^/| /' conftest.$ac_ext >&5
27986
27987 ( exit $ac_status )
27988 gcc_cv_have_tls=no
27989 fi
27990 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27991 fi
27992 fi
27993 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27994 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27995   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27996
27997 cat >>confdefs.h <<\_ACEOF
27998 #define HAVE_TLS 1
27999 _ACEOF
28000
28001   fi
28002
28003 # For _Unwind_GetIPInfo.
28004
28005
28006 # Check whether --with-system-libunwind or --without-system-libunwind was given.
28007 if test "${with_system_libunwind+set}" = set; then
28008   withval="$with_system_libunwind"
28009
28010 fi;
28011   # If system-libunwind was not specifically set, pick a default setting.
28012   if test x$with_system_libunwind = x; then
28013     case ${target} in
28014       ia64-*-hpux*) with_system_libunwind=yes ;;
28015       *) with_system_libunwind=no ;;
28016     esac
28017   fi
28018   # Based on system-libunwind and target, do we have ipinfo?
28019   if  test x$with_system_libunwind = xyes; then
28020     case ${target} in
28021       ia64-*-*) have_unwind_getipinfo=no ;;
28022       *) have_unwind_getipinfo=yes ;;
28023     esac
28024   else
28025     # Darwin before version 9 does not have _Unwind_GetIPInfo.
28026
28027     case ${target} in
28028       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
28029       *) have_unwind_getipinfo=yes ;;
28030     esac
28031
28032   fi
28033
28034   if test x$have_unwind_getipinfo = xyes; then
28035
28036 cat >>confdefs.h <<\_ACEOF
28037 #define HAVE_GETIPINFO 1
28038 _ACEOF
28039
28040   fi
28041
28042
28043 # See if linker supports anonymous version scripts.
28044 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
28045 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
28046 if test "${libjava_cv_anon_version_script+set}" = set; then
28047   echo $ECHO_N "(cached) $ECHO_C" >&6
28048 else
28049   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
28050    libjava_cv_anon_version_script=no
28051    CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
28052    echo '{ global: globalsymb*; local: *; };' > conftest.map
28053    if test x$gcc_no_link = xyes; then
28054   { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
28055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
28056    { (exit 1); exit 1; }; }
28057 fi
28058 cat >conftest.$ac_ext <<_ACEOF
28059 /* confdefs.h.  */
28060 _ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h.  */
28064 void globalsymbol (void) {} void localsymbol (void) {}
28065 int
28066 main ()
28067 {
28068
28069   ;
28070   return 0;
28071 }
28072 _ACEOF
28073 rm -f conftest.$ac_objext conftest$ac_exeext
28074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28075   (eval $ac_link) 2>conftest.er1
28076   ac_status=$?
28077   grep -v '^ *+' conftest.er1 >conftest.err
28078   rm -f conftest.er1
28079   cat conftest.err >&5
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); } &&
28082          { ac_try='test -z "$ac_c_werror_flag"
28083                          || test ! -s conftest.err'
28084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28085   (eval $ac_try) 2>&5
28086   ac_status=$?
28087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088   (exit $ac_status); }; } &&
28089          { ac_try='test -s conftest$ac_exeext'
28090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091   (eval $ac_try) 2>&5
28092   ac_status=$?
28093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094   (exit $ac_status); }; }; then
28095   libjava_cv_anon_version_script=yes
28096 else
28097   echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100 fi
28101 rm -f conftest.err conftest.$ac_objext \
28102       conftest$ac_exeext conftest.$ac_ext
28103    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
28104
28105 fi
28106 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
28107 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
28108
28109
28110 if test "$libjava_cv_anon_version_script" = yes; then
28111   ANONVERSCRIPT_TRUE=
28112   ANONVERSCRIPT_FALSE='#'
28113 else
28114   ANONVERSCRIPT_TRUE='#'
28115   ANONVERSCRIPT_FALSE=
28116 fi
28117
28118
28119 # Check if linker supports static linking on a per library basis
28120 LD_START_STATIC_SPEC=
28121 LD_FINISH_STATIC_SPEC=
28122 if $LD --help 2>&1 | grep -q -e -call_shared ; then
28123   if $LD --help 2>&1 | grep -q -e -non_shared ; then
28124     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
28125     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
28126   fi
28127 fi
28128
28129
28130
28131 here=`${PWDCMD-pwd}`
28132
28133
28134 # We get this from the environment.
28135
28136
28137
28138 # Check whether --with-python-dir or --without-python-dir was given.
28139 if test "${with_python_dir+set}" = set; then
28140   withval="$with_python_dir"
28141   with_python_dir=$withval
28142 else
28143   with_python_dir=""
28144 fi;
28145
28146 if test "x${with_python_dir}" = "x"
28147 then
28148   # Needed for installing Python modules during make install.
28149   python_mod_dir="\${prefix}/share/python"
28150   # Needed for substituting into aot-compile*
28151   python_mod_dir_expanded="${prefix}/share/python"
28152 else
28153   python_mod_dir="\${prefix}${with_python_dir}"
28154   python_mod_dir_expanded="${prefix}${with_python_dir}"
28155 fi
28156 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
28157 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
28158
28159
28160
28161 # needed for aot-compile-rpm
28162 MAKE=`which make`
28163
28164
28165 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
28166 if test "${enable_aot_compile_rpm+set}" = set; then
28167   enableval="$enable_aot_compile_rpm"
28168   case "${enableval}" in
28169     yes) AOT_RPM_ENABLED=yes ;;
28170     no)  AOT_RPM_ENABLED=no ;;
28171     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
28172 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
28173    { (exit 1); exit 1; }; } ;;
28174   esac
28175 else
28176   AOT_RPM_ENABLED=no
28177
28178 fi;
28179
28180
28181 if test "x${AOT_RPM_ENABLED}" = xyes; then
28182   INSTALL_AOT_RPM_TRUE=
28183   INSTALL_AOT_RPM_FALSE='#'
28184 else
28185   INSTALL_AOT_RPM_TRUE='#'
28186   INSTALL_AOT_RPM_FALSE=
28187 fi
28188
28189
28190 # Check whether --enable-java-home or --disable-java-home was given.
28191 if test "${enable_java_home+set}" = set; then
28192   enableval="$enable_java_home"
28193   case "${enableval}" in
28194     yes) JAVA_HOME_ENABLED=yes ;;
28195     no)  JAVA_HOME_ENABLED=no ;;
28196     *)   { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
28197 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
28198    { (exit 1); exit 1; }; } ;;
28199   esac
28200 else
28201   JAVA_HOME_ENABLED=no
28202
28203 fi;
28204
28205
28206 if test "x${JAVA_HOME_ENABLED}" = xyes; then
28207   CREATE_JAVA_HOME_TRUE=
28208   CREATE_JAVA_HOME_FALSE='#'
28209 else
28210   CREATE_JAVA_HOME_TRUE='#'
28211   CREATE_JAVA_HOME_FALSE=
28212 fi
28213
28214
28215 # Only do these checks if java-home above is enabled.
28216 if test "x${JAVA_HOME_ENABLED}" = xyes
28217 then
28218
28219
28220 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28221 if test "${with_gcc_suffix+set}" = set; then
28222   withval="$with_gcc_suffix"
28223   gcc_suffix=$withval
28224 else
28225   gcc_suffix=""
28226 fi;
28227   echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28228 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28229
28230
28231
28232 # Check whether --with-arch-directory or --without-arch-directory was given.
28233 if test "${with_arch_directory+set}" = set; then
28234   withval="$with_arch_directory"
28235   host_cpu=$withval
28236 else
28237   host_cpu=""
28238 fi;
28239
28240
28241 # Check whether --with-os-directory or --without-os-directory was given.
28242 if test "${with_os_directory+set}" = set; then
28243   withval="$with_os_directory"
28244   host_os=$withval
28245 else
28246   host_os=""
28247 fi;
28248
28249
28250 # Check whether --with-origin-name or --without-origin-name was given.
28251 if test "${with_origin_name+set}" = set; then
28252   withval="$with_origin_name"
28253   origin_name=$withval
28254 else
28255   origin_name=gcj${gcc_suffix}
28256 fi;
28257   echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28258 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28259
28260
28261 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28262 if test "${with_arch_suffix+set}" = set; then
28263   withval="$with_arch_suffix"
28264   arch_suffix=$withval
28265 else
28266   arch_suffix=""
28267 fi;
28268   echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28269 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28270
28271
28272 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28273 if test "${with_jvm_root_dir+set}" = set; then
28274   withval="$with_jvm_root_dir"
28275   jvm_root_dir=$withval
28276 else
28277   jvm_root_dir="\${prefix}/lib/jvm"
28278 fi;
28279   echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28280 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28281
28282
28283 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28284 if test "${with_jvm_jar_dir+set}" = set; then
28285   withval="$with_jvm_jar_dir"
28286   jvm_jar_dir=$withval
28287 else
28288   jvm_jar_dir=\${prefix}/lib/jvm-exports
28289 fi;
28290   echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28291 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28292
28293   JAVA_VERSION=1.5.0
28294   BUILD_VERSION=0
28295
28296
28297   echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28298 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28299
28300   jre_dir=jre
28301   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28302   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28303
28304   JVM_ROOT_DIR=${jvm_root_dir}
28305
28306   echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28307 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28308
28309   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28310
28311   echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28312 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28313
28314   JVM_JAR_DIR=${jvm_jar_dir}
28315
28316   echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28317 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28318
28319   JRE_DIR=${jre_dir}
28320
28321
28322   JRE_LNK=${jre_lnk}
28323
28324
28325   SDK_LNK=${sdk_lnk}
28326
28327
28328   SDK_BIN_DIR=${jvm_root_dir}/bin
28329
28330   echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28331 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28332
28333   SDK_LIB_DIR=${jvm_root_dir}/lib
28334
28335   echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28336 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28337
28338   SDK_INCLUDE_DIR=${jvm_root_dir}/include
28339
28340   echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28341 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28342
28343   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28344
28345   echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28346 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28347
28348   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28349
28350   echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28351 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28352
28353   # Find gcj prefix using gcj found in PATH.
28354   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28355
28356   # Where do the gcj binaries live?
28357   # For jhbuild based builds, they all live in a sibling of bin called
28358   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
28359   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28360
28361   echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28362 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28363
28364   echo "$as_me:$LINENO: result: host is ${host}" >&5
28365 echo "${ECHO_T}host is ${host}" >&6
28366   if test "x${host_cpu}" = "x"
28367   then
28368     case ${host} in
28369       *-mingw* | *-cygwin*)
28370         host_cpu=x86;;
28371       i486-* | i586-* | i686-*)
28372         host_cpu=i386;;
28373       x86_64-*)
28374         host_cpu=amd64;;
28375       *)
28376         host_cpu=${host_cpu};;
28377     esac
28378   fi
28379   echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28380 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28381   CPU=${host_cpu}
28382
28383
28384   if test "x${host_os}" = "x"
28385   then
28386     case ${host} in
28387       *-mingw* | *-cygwin*)
28388         host_os=win32;;
28389       *-linux*)
28390         host_os=linux;;
28391       *)
28392         host_os=${host_os};;
28393     esac
28394   fi
28395   echo os directory: ${host_os}
28396   OS=${host_os}
28397
28398
28399   # make an expanded $libdir, for substituting into
28400   # scripts (and other non-Makefile things).
28401   LIBDIR=$libdir
28402   if test "x${exec_prefix}" = "xNONE"
28403   then
28404       lib_exec_prefix=$prefix
28405   else
28406       lib_exec_prefix=$exec_prefix
28407   fi
28408   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28409
28410 fi
28411
28412                                                                                                                         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/generate-cacerts.pl contrib/rebuild-gcj-db"
28413
28414
28415 if test ${multilib} = yes; then
28416   multilib_arg="--enable-multilib"
28417 else
28418   multilib_arg=
28419 fi
28420
28421           ac_config_files="$ac_config_files scripts/jar"
28422
28423 cat >confcache <<\_ACEOF
28424 # This file is a shell script that caches the results of configure
28425 # tests run on this system so they can be shared between configure
28426 # scripts and configure runs, see configure's option --config-cache.
28427 # It is not useful on other systems.  If it contains results you don't
28428 # want to keep, you may remove or edit it.
28429 #
28430 # config.status only pays attention to the cache file if you give it
28431 # the --recheck option to rerun configure.
28432 #
28433 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28434 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28435 # following values.
28436
28437 _ACEOF
28438
28439 # The following way of writing the cache mishandles newlines in values,
28440 # but we know of no workaround that is simple, portable, and efficient.
28441 # So, don't put newlines in cache variables' values.
28442 # Ultrix sh set writes to stderr and can't be redirected directly,
28443 # and sets the high bit in the cache file unless we assign to the vars.
28444 {
28445   (set) 2>&1 |
28446     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28447     *ac_space=\ *)
28448       # `set' does not quote correctly, so add quotes (double-quote
28449       # substitution turns \\\\ into \\, and sed turns \\ into \).
28450       sed -n \
28451         "s/'/'\\\\''/g;
28452           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28453       ;;
28454     *)
28455       # `set' quotes correctly as required by POSIX, so do not add quotes.
28456       sed -n \
28457         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28458       ;;
28459     esac;
28460 } |
28461   sed '
28462      t clear
28463      : clear
28464      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28465      t end
28466      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28467      : end' >>confcache
28468 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28469   if test -w $cache_file; then
28470     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28471     cat confcache >$cache_file
28472   else
28473     echo "not updating unwritable cache $cache_file"
28474   fi
28475 fi
28476 rm -f confcache
28477
28478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28479 # Let make expand exec_prefix.
28480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28481
28482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28484 # trailing colons and then remove the whole line if VPATH becomes empty
28485 # (actually we leave an empty line to preserve line numbers).
28486 if test "x$srcdir" = x.; then
28487   ac_vpsub='/^[  ]*VPATH[        ]*=/{
28488 s/:*\$(srcdir):*/:/;
28489 s/:*\${srcdir}:*/:/;
28490 s/:*@srcdir@:*/:/;
28491 s/^\([^=]*=[     ]*\):*/\1/;
28492 s/:*$//;
28493 s/^[^=]*=[       ]*$//;
28494 }'
28495 fi
28496
28497 DEFS=-DHAVE_CONFIG_H
28498
28499 ac_libobjs=
28500 ac_ltlibobjs=
28501 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28502   # 1. Remove the extension, and $U if already installed.
28503   ac_i=`echo "$ac_i" |
28504          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28505   # 2. Add them.
28506   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28507   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28508 done
28509 LIBOBJS=$ac_libobjs
28510
28511 LTLIBOBJS=$ac_ltlibobjs
28512
28513
28514 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
28515   { { echo "$as_me:$LINENO: error: conditional \"CREATE_GJDOC\" was never defined.
28516 Usually this means the macro was only invoked conditionally." >&5
28517 echo "$as_me: error: conditional \"CREATE_GJDOC\" was never defined.
28518 Usually this means the macro was only invoked conditionally." >&2;}
28519    { (exit 1); exit 1; }; }
28520 fi
28521 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28522   { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28523 Usually this means the macro was only invoked conditionally." >&5
28524 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28525 Usually this means the macro was only invoked conditionally." >&2;}
28526    { (exit 1); exit 1; }; }
28527 fi
28528 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28529   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28530 Usually this means the macro was only invoked conditionally." >&5
28531 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28532 Usually this means the macro was only invoked conditionally." >&2;}
28533    { (exit 1); exit 1; }; }
28534 fi
28535 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28536   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28537 Usually this means the macro was only invoked conditionally." >&5
28538 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28539 Usually this means the macro was only invoked conditionally." >&2;}
28540    { (exit 1); exit 1; }; }
28541 fi
28542 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28543   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28544 Usually this means the macro was only invoked conditionally." >&5
28545 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28546 Usually this means the macro was only invoked conditionally." >&2;}
28547    { (exit 1); exit 1; }; }
28548 fi
28549 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28550   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28551 Usually this means the macro was only invoked conditionally." >&5
28552 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28553 Usually this means the macro was only invoked conditionally." >&2;}
28554    { (exit 1); exit 1; }; }
28555 fi
28556 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28557   { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28558 Usually this means the macro was only invoked conditionally." >&5
28559 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28560 Usually this means the macro was only invoked conditionally." >&2;}
28561    { (exit 1); exit 1; }; }
28562 fi
28563 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28564   { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28565 Usually this means the macro was only invoked conditionally." >&5
28566 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28567 Usually this means the macro was only invoked conditionally." >&2;}
28568    { (exit 1); exit 1; }; }
28569 fi
28570 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28571   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28572 Usually this means the macro was only invoked conditionally." >&5
28573 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28574 Usually this means the macro was only invoked conditionally." >&2;}
28575    { (exit 1); exit 1; }; }
28576 fi
28577 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28578   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28579 Usually this means the macro was only invoked conditionally." >&5
28580 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28581 Usually this means the macro was only invoked conditionally." >&2;}
28582    { (exit 1); exit 1; }; }
28583 fi
28584 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28585   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28586 Usually this means the macro was only invoked conditionally." >&5
28587 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28588 Usually this means the macro was only invoked conditionally." >&2;}
28589    { (exit 1); exit 1; }; }
28590 fi
28591 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28592   { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28593 Usually this means the macro was only invoked conditionally." >&5
28594 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28595 Usually this means the macro was only invoked conditionally." >&2;}
28596    { (exit 1); exit 1; }; }
28597 fi
28598 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28599   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28600 Usually this means the macro was only invoked conditionally." >&5
28601 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28602 Usually this means the macro was only invoked conditionally." >&2;}
28603    { (exit 1); exit 1; }; }
28604 fi
28605 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28606   { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28607 Usually this means the macro was only invoked conditionally." >&5
28608 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28609 Usually this means the macro was only invoked conditionally." >&2;}
28610    { (exit 1); exit 1; }; }
28611 fi
28612 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28613   { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28614 Usually this means the macro was only invoked conditionally." >&5
28615 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28616 Usually this means the macro was only invoked conditionally." >&2;}
28617    { (exit 1); exit 1; }; }
28618 fi
28619 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28620   { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28621 Usually this means the macro was only invoked conditionally." >&5
28622 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28623 Usually this means the macro was only invoked conditionally." >&2;}
28624    { (exit 1); exit 1; }; }
28625 fi
28626 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28627   { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28628 Usually this means the macro was only invoked conditionally." >&5
28629 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28630 Usually this means the macro was only invoked conditionally." >&2;}
28631    { (exit 1); exit 1; }; }
28632 fi
28633 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28634   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28635 Usually this means the macro was only invoked conditionally." >&5
28636 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28637 Usually this means the macro was only invoked conditionally." >&2;}
28638    { (exit 1); exit 1; }; }
28639 fi
28640 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28641   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28642 Usually this means the macro was only invoked conditionally." >&5
28643 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28644 Usually this means the macro was only invoked conditionally." >&2;}
28645    { (exit 1); exit 1; }; }
28646 fi
28647 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28648   { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28649 Usually this means the macro was only invoked conditionally." >&5
28650 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28651 Usually this means the macro was only invoked conditionally." >&2;}
28652    { (exit 1); exit 1; }; }
28653 fi
28654 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28655   { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28656 Usually this means the macro was only invoked conditionally." >&5
28657 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28658 Usually this means the macro was only invoked conditionally." >&2;}
28659    { (exit 1); exit 1; }; }
28660 fi
28661 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28662   { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28663 Usually this means the macro was only invoked conditionally." >&5
28664 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28665 Usually this means the macro was only invoked conditionally." >&2;}
28666    { (exit 1); exit 1; }; }
28667 fi
28668 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28669   { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28670 Usually this means the macro was only invoked conditionally." >&5
28671 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28672 Usually this means the macro was only invoked conditionally." >&2;}
28673    { (exit 1); exit 1; }; }
28674 fi
28675 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28676   { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28677 Usually this means the macro was only invoked conditionally." >&5
28678 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28679 Usually this means the macro was only invoked conditionally." >&2;}
28680    { (exit 1); exit 1; }; }
28681 fi
28682 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28683   { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28684 Usually this means the macro was only invoked conditionally." >&5
28685 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28686 Usually this means the macro was only invoked conditionally." >&2;}
28687    { (exit 1); exit 1; }; }
28688 fi
28689 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28690   { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28691 Usually this means the macro was only invoked conditionally." >&5
28692 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28693 Usually this means the macro was only invoked conditionally." >&2;}
28694    { (exit 1); exit 1; }; }
28695 fi
28696 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28697   { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28698 Usually this means the macro was only invoked conditionally." >&5
28699 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28700 Usually this means the macro was only invoked conditionally." >&2;}
28701    { (exit 1); exit 1; }; }
28702 fi
28703 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28704   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28705 Usually this means the macro was only invoked conditionally." >&5
28706 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28707 Usually this means the macro was only invoked conditionally." >&2;}
28708    { (exit 1); exit 1; }; }
28709 fi
28710 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28711   { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28712 Usually this means the macro was only invoked conditionally." >&5
28713 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28714 Usually this means the macro was only invoked conditionally." >&2;}
28715    { (exit 1); exit 1; }; }
28716 fi
28717 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28718   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28719 Usually this means the macro was only invoked conditionally." >&5
28720 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28721 Usually this means the macro was only invoked conditionally." >&2;}
28722    { (exit 1); exit 1; }; }
28723 fi
28724 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28725   { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28726 Usually this means the macro was only invoked conditionally." >&5
28727 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28728 Usually this means the macro was only invoked conditionally." >&2;}
28729    { (exit 1); exit 1; }; }
28730 fi
28731 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
28732   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_BINARIES\" was never defined.
28733 Usually this means the macro was only invoked conditionally." >&5
28734 echo "$as_me: error: conditional \"INSTALL_BINARIES\" was never defined.
28735 Usually this means the macro was only invoked conditionally." >&2;}
28736    { (exit 1); exit 1; }; }
28737 fi
28738 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28739   { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28740 Usually this means the macro was only invoked conditionally." >&5
28741 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28742 Usually this means the macro was only invoked conditionally." >&2;}
28743    { (exit 1); exit 1; }; }
28744 fi
28745 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28746   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28747 Usually this means the macro was only invoked conditionally." >&5
28748 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28749 Usually this means the macro was only invoked conditionally." >&2;}
28750    { (exit 1); exit 1; }; }
28751 fi
28752 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28753   { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28754 Usually this means the macro was only invoked conditionally." >&5
28755 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28756 Usually this means the macro was only invoked conditionally." >&2;}
28757    { (exit 1); exit 1; }; }
28758 fi
28759
28760 : ${CONFIG_STATUS=./config.status}
28761 ac_clean_files_save=$ac_clean_files
28762 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28763 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28764 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28765 cat >$CONFIG_STATUS <<_ACEOF
28766 #! $SHELL
28767 # Generated by $as_me.
28768 # Run this file to recreate the current configuration.
28769 # Compiler output produced by configure, useful for debugging
28770 # configure, is in config.log if it exists.
28771
28772 debug=false
28773 ac_cs_recheck=false
28774 ac_cs_silent=false
28775 SHELL=\${CONFIG_SHELL-$SHELL}
28776 _ACEOF
28777
28778 cat >>$CONFIG_STATUS <<\_ACEOF
28779 ## --------------------- ##
28780 ## M4sh Initialization.  ##
28781 ## --------------------- ##
28782
28783 # Be Bourne compatible
28784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28785   emulate sh
28786   NULLCMD=:
28787   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28788   # is contrary to our usage.  Disable this feature.
28789   alias -g '${1+"$@"}'='"$@"'
28790 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28791   set -o posix
28792 fi
28793 DUALCASE=1; export DUALCASE # for MKS sh
28794
28795 # Support unset when possible.
28796 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28797   as_unset=unset
28798 else
28799   as_unset=false
28800 fi
28801
28802
28803 # Work around bugs in pre-3.0 UWIN ksh.
28804 $as_unset ENV MAIL MAILPATH
28805 PS1='$ '
28806 PS2='> '
28807 PS4='+ '
28808
28809 # NLS nuisances.
28810 for as_var in \
28811   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28812   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28813   LC_TELEPHONE LC_TIME
28814 do
28815   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28816     eval $as_var=C; export $as_var
28817   else
28818     $as_unset $as_var
28819   fi
28820 done
28821
28822 # Required to use basename.
28823 if expr a : '\(a\)' >/dev/null 2>&1; then
28824   as_expr=expr
28825 else
28826   as_expr=false
28827 fi
28828
28829 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28830   as_basename=basename
28831 else
28832   as_basename=false
28833 fi
28834
28835
28836 # Name of the executable.
28837 as_me=`$as_basename "$0" ||
28838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28839          X"$0" : 'X\(//\)$' \| \
28840          X"$0" : 'X\(/\)$' \| \
28841          .     : '\(.\)' 2>/dev/null ||
28842 echo X/"$0" |
28843     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28844           /^X\/\(\/\/\)$/{ s//\1/; q; }
28845           /^X\/\(\/\).*/{ s//\1/; q; }
28846           s/.*/./; q'`
28847
28848
28849 # PATH needs CR, and LINENO needs CR and PATH.
28850 # Avoid depending upon Character Ranges.
28851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28854 as_cr_digits='0123456789'
28855 as_cr_alnum=$as_cr_Letters$as_cr_digits
28856
28857 # The user is always right.
28858 if test "${PATH_SEPARATOR+set}" != set; then
28859   echo "#! /bin/sh" >conf$$.sh
28860   echo  "exit 0"   >>conf$$.sh
28861   chmod +x conf$$.sh
28862   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28863     PATH_SEPARATOR=';'
28864   else
28865     PATH_SEPARATOR=:
28866   fi
28867   rm -f conf$$.sh
28868 fi
28869
28870
28871   as_lineno_1=$LINENO
28872   as_lineno_2=$LINENO
28873   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28874   test "x$as_lineno_1" != "x$as_lineno_2" &&
28875   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
28876   # Find who we are.  Look in the path if we contain no path at all
28877   # relative or not.
28878   case $0 in
28879     *[\\/]* ) as_myself=$0 ;;
28880     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28881 for as_dir in $PATH
28882 do
28883   IFS=$as_save_IFS
28884   test -z "$as_dir" && as_dir=.
28885   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28886 done
28887
28888        ;;
28889   esac
28890   # We did not find ourselves, most probably we were run as `sh COMMAND'
28891   # in which case we are not to be found in the path.
28892   if test "x$as_myself" = x; then
28893     as_myself=$0
28894   fi
28895   if test ! -f "$as_myself"; then
28896     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28897 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28898    { (exit 1); exit 1; }; }
28899   fi
28900   case $CONFIG_SHELL in
28901   '')
28902     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28903 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28904 do
28905   IFS=$as_save_IFS
28906   test -z "$as_dir" && as_dir=.
28907   for as_base in sh bash ksh sh5; do
28908          case $as_dir in
28909          /*)
28910            if ("$as_dir/$as_base" -c '
28911   as_lineno_1=$LINENO
28912   as_lineno_2=$LINENO
28913   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28914   test "x$as_lineno_1" != "x$as_lineno_2" &&
28915   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
28916              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28917              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28918              CONFIG_SHELL=$as_dir/$as_base
28919              export CONFIG_SHELL
28920              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28921            fi;;
28922          esac
28923        done
28924 done
28925 ;;
28926   esac
28927
28928   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28929   # uniformly replaced by the line number.  The first 'sed' inserts a
28930   # line-number line before each line; the second 'sed' does the real
28931   # work.  The second script uses 'N' to pair each line-number line
28932   # with the numbered line, and appends trailing '-' during
28933   # substitution so that $LINENO is not a special case at line end.
28934   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28935   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
28936   sed '=' <$as_myself |
28937     sed '
28938       N
28939       s,$,-,
28940       : loop
28941       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28942       t loop
28943       s,-$,,
28944       s,^['$as_cr_digits']*\n,,
28945     ' >$as_me.lineno &&
28946   chmod +x $as_me.lineno ||
28947     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28948 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28949    { (exit 1); exit 1; }; }
28950
28951   # Don't try to exec as it changes $[0], causing all sort of problems
28952   # (the dirname of $[0] is not the place where we might find the
28953   # original and so on.  Autoconf is especially sensible to this).
28954   . ./$as_me.lineno
28955   # Exit status is that of the last command.
28956   exit
28957 }
28958
28959
28960 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28961   *c*,-n*) ECHO_N= ECHO_C='
28962 ' ECHO_T='      ' ;;
28963   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28964   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
28965 esac
28966
28967 if expr a : '\(a\)' >/dev/null 2>&1; then
28968   as_expr=expr
28969 else
28970   as_expr=false
28971 fi
28972
28973 rm -f conf$$ conf$$.exe conf$$.file
28974 echo >conf$$.file
28975 if ln -s conf$$.file conf$$ 2>/dev/null; then
28976   # We could just check for DJGPP; but this test a) works b) is more generic
28977   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28978   if test -f conf$$.exe; then
28979     # Don't use ln at all; we don't have any links
28980     as_ln_s='cp -p'
28981   else
28982     as_ln_s='ln -s'
28983   fi
28984 elif ln conf$$.file conf$$ 2>/dev/null; then
28985   as_ln_s=ln
28986 else
28987   as_ln_s='cp -p'
28988 fi
28989 rm -f conf$$ conf$$.exe conf$$.file
28990
28991 if mkdir -p . 2>/dev/null; then
28992   as_mkdir_p=:
28993 else
28994   test -d ./-p && rmdir ./-p
28995   as_mkdir_p=false
28996 fi
28997
28998 as_executable_p="test -f"
28999
29000 # Sed expression to map a string onto a valid CPP name.
29001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29002
29003 # Sed expression to map a string onto a valid variable name.
29004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29005
29006
29007 # IFS
29008 # We need space, tab and new line, in precisely that order.
29009 as_nl='
29010 '
29011 IFS="   $as_nl"
29012
29013 # CDPATH.
29014 $as_unset CDPATH
29015
29016 exec 6>&1
29017
29018 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29019 # report actual input values of CONFIG_FILES etc. instead of their
29020 # values after options handling.  Logging --version etc. is OK.
29021 exec 5>>config.log
29022 {
29023   echo
29024   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29025 ## Running $as_me. ##
29026 _ASBOX
29027 } >&5
29028 cat >&5 <<_CSEOF
29029
29030 This file was extended by libjava $as_me version-unused, which was
29031 generated by GNU Autoconf 2.59.  Invocation command line was
29032
29033   CONFIG_FILES    = $CONFIG_FILES
29034   CONFIG_HEADERS  = $CONFIG_HEADERS
29035   CONFIG_LINKS    = $CONFIG_LINKS
29036   CONFIG_COMMANDS = $CONFIG_COMMANDS
29037   $ $0 $@
29038
29039 _CSEOF
29040 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29041 echo >&5
29042 _ACEOF
29043
29044 # Files that config.status was made for.
29045 if test -n "$ac_config_files"; then
29046   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29047 fi
29048
29049 if test -n "$ac_config_headers"; then
29050   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29051 fi
29052
29053 if test -n "$ac_config_links"; then
29054   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29055 fi
29056
29057 if test -n "$ac_config_commands"; then
29058   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29059 fi
29060
29061 cat >>$CONFIG_STATUS <<\_ACEOF
29062
29063 ac_cs_usage="\
29064 \`$as_me' instantiates files from templates according to the
29065 current configuration.
29066
29067 Usage: $0 [OPTIONS] [FILE]...
29068
29069   -h, --help       print this help, then exit
29070   -V, --version    print version number, then exit
29071   -q, --quiet      do not print progress messages
29072   -d, --debug      don't remove temporary files
29073       --recheck    update $as_me by reconfiguring in the same conditions
29074   --file=FILE[:TEMPLATE]
29075                    instantiate the configuration file FILE
29076   --header=FILE[:TEMPLATE]
29077                    instantiate the configuration header FILE
29078
29079 Configuration files:
29080 $config_files
29081
29082 Configuration headers:
29083 $config_headers
29084
29085 Configuration links:
29086 $config_links
29087
29088 Configuration commands:
29089 $config_commands
29090
29091 Report bugs to <bug-autoconf@gnu.org>."
29092 _ACEOF
29093
29094 cat >>$CONFIG_STATUS <<_ACEOF
29095 ac_cs_version="\\
29096 libjava config.status version-unused
29097 configured by $0, generated by GNU Autoconf 2.59,
29098   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29099
29100 Copyright (C) 2003 Free Software Foundation, Inc.
29101 This config.status script is free software; the Free Software Foundation
29102 gives unlimited permission to copy, distribute and modify it."
29103 srcdir=$srcdir
29104 INSTALL="$INSTALL"
29105 _ACEOF
29106
29107 cat >>$CONFIG_STATUS <<\_ACEOF
29108 # If no file are specified by the user, then we need to provide default
29109 # value.  By we need to know if files were specified by the user.
29110 ac_need_defaults=:
29111 while test $# != 0
29112 do
29113   case $1 in
29114   --*=*)
29115     ac_option=`expr "x$1" : 'x\([^=]*\)='`
29116     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29117     ac_shift=:
29118     ;;
29119   -*)
29120     ac_option=$1
29121     ac_optarg=$2
29122     ac_shift=shift
29123     ;;
29124   *) # This is not an option, so the user has probably given explicit
29125      # arguments.
29126      ac_option=$1
29127      ac_need_defaults=false;;
29128   esac
29129
29130   case $ac_option in
29131   # Handling of the options.
29132 _ACEOF
29133 cat >>$CONFIG_STATUS <<\_ACEOF
29134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29135     ac_cs_recheck=: ;;
29136   --version | --vers* | -V )
29137     echo "$ac_cs_version"; exit 0 ;;
29138   --he | --h)
29139     # Conflict between --help and --header
29140     { { echo "$as_me:$LINENO: error: ambiguous option: $1
29141 Try \`$0 --help' for more information." >&5
29142 echo "$as_me: error: ambiguous option: $1
29143 Try \`$0 --help' for more information." >&2;}
29144    { (exit 1); exit 1; }; };;
29145   --help | --hel | -h )
29146     echo "$ac_cs_usage"; exit 0 ;;
29147   --debug | --d* | -d )
29148     debug=: ;;
29149   --file | --fil | --fi | --f )
29150     $ac_shift
29151     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29152     ac_need_defaults=false;;
29153   --header | --heade | --head | --hea )
29154     $ac_shift
29155     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29156     ac_need_defaults=false;;
29157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29158   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29159     ac_cs_silent=: ;;
29160
29161   # This is an error.
29162   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29163 Try \`$0 --help' for more information." >&5
29164 echo "$as_me: error: unrecognized option: $1
29165 Try \`$0 --help' for more information." >&2;}
29166    { (exit 1); exit 1; }; } ;;
29167
29168   *) ac_config_targets="$ac_config_targets $1" ;;
29169
29170   esac
29171   shift
29172 done
29173
29174 ac_configure_extra_args=
29175
29176 if $ac_cs_silent; then
29177   exec 6>/dev/null
29178   ac_configure_extra_args="$ac_configure_extra_args --silent"
29179 fi
29180
29181 _ACEOF
29182 cat >>$CONFIG_STATUS <<_ACEOF
29183 if \$ac_cs_recheck; then
29184   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29185   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29186 fi
29187
29188 _ACEOF
29189
29190 cat >>$CONFIG_STATUS <<_ACEOF
29191 #
29192 # INIT-COMMANDS section.
29193 #
29194
29195
29196 srcdir="$srcdir"
29197 host="$host"
29198 target="$target"
29199 with_multisubdir="$with_multisubdir"
29200 with_multisrctop="$with_multisrctop"
29201 with_target_subdir="$with_target_subdir"
29202 ac_configure_args="${multilib_arg} ${ac_configure_args}"
29203 multi_basedir="$multi_basedir"
29204 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
29205 CC="$CC"
29206 CXX="$CXX"
29207 GFORTRAN="$GFORTRAN"
29208 GCJ="$GCJ"
29209 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29210
29211
29212 # The HP-UX ksh and POSIX shell print the target directory to stdout
29213 # if CDPATH is set.
29214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29215
29216 sed_quote_subst='$sed_quote_subst'
29217 double_quote_subst='$double_quote_subst'
29218 delay_variable_subst='$delay_variable_subst'
29219 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29220 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29221 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29222 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29223 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29224 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29225 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29226 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29227 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29228 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29229 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29230 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29231 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29232 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29233 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29234 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29235 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29236 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29237 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29238 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29239 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29240 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29241 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29242 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29243 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29244 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29245 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29246 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29247 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29248 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29249 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29250 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29251 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29252 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29253 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29254 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29255 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29256 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29257 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29258 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29259 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29260 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29261 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29262 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29263 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"`'
29264 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29265 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29266 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29267 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29268 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29269 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29270 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29271 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29272 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29273 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29274 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29275 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29276 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29277 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29278 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29279 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29280 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29281 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29282 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29283 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29284 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29285 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29286 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29287 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29288 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29289 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29290 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29291 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29292 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29293 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29294 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29295 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29296 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29297 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29298 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29300 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29301 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29303 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29304 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29305 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29306 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29307 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29308 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29309 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29310 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29311 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29312 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29313 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29314 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29315 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29316 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29317 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29318 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29319 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29320 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29321 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29322 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29323 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29324 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29325 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29326 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29327 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29328 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29329 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29330 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29331 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29332 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29333 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29334 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29335 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29336 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29337 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29338 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29339 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29340 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29341 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29342 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29343 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29344 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29345 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29346 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29347 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29348 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29349 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29350 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29351 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29352 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29353 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29354 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29355 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29356 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29357 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29358 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29359 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29360 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29361 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29362 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29363 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29364 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29365 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29366 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29367 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29368 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29369 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29370 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29371 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29372 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29373 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29374 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29375 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29376 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29377 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29378 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29379 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29380 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29381 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29382 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29383 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29384 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29385 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29386 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29387 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29388 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29389 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29390 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29391 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29392 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29393 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29394 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29395 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29396 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29397 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29398 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29399 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29400 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29401 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29402 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29403 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29404 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29405 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29406 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29407 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29408 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29409 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29410 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29411 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29412 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29413 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29414 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29415 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29416 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29417 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29418 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29419 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29420 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29421 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29422 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29423 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29424 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29425 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29426 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29427 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29428 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29429 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29430 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29431 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29432 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29433 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29434 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29435 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29436 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29437
29438 LTCC='$LTCC'
29439 LTCFLAGS='$LTCFLAGS'
29440 compiler='$compiler_DEFAULT'
29441
29442 # Quote evaled strings.
29443 for var in SED \
29444 GREP \
29445 EGREP \
29446 FGREP \
29447 LD \
29448 NM \
29449 LN_S \
29450 lt_SP2NL \
29451 lt_NL2SP \
29452 reload_flag \
29453 OBJDUMP \
29454 deplibs_check_method \
29455 file_magic_cmd \
29456 AR \
29457 AR_FLAGS \
29458 STRIP \
29459 RANLIB \
29460 CC \
29461 CFLAGS \
29462 compiler \
29463 lt_cv_sys_global_symbol_pipe \
29464 lt_cv_sys_global_symbol_to_cdecl \
29465 lt_cv_sys_global_symbol_to_c_name_address \
29466 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29467 SHELL \
29468 ECHO \
29469 lt_prog_compiler_no_builtin_flag \
29470 lt_prog_compiler_wl \
29471 lt_prog_compiler_pic \
29472 lt_prog_compiler_static \
29473 lt_cv_prog_compiler_c_o \
29474 need_locks \
29475 DSYMUTIL \
29476 NMEDIT \
29477 LIPO \
29478 OTOOL \
29479 OTOOL64 \
29480 shrext_cmds \
29481 export_dynamic_flag_spec \
29482 whole_archive_flag_spec \
29483 compiler_needs_object \
29484 with_gnu_ld \
29485 allow_undefined_flag \
29486 no_undefined_flag \
29487 hardcode_libdir_flag_spec \
29488 hardcode_libdir_flag_spec_ld \
29489 hardcode_libdir_separator \
29490 fix_srcfile_path \
29491 exclude_expsyms \
29492 include_expsyms \
29493 file_list_spec \
29494 variables_saved_for_relink \
29495 libname_spec \
29496 library_names_spec \
29497 soname_spec \
29498 finish_eval \
29499 old_striplib \
29500 striplib \
29501 compiler_lib_search_dirs \
29502 predep_objects \
29503 postdep_objects \
29504 predeps \
29505 postdeps \
29506 compiler_lib_search_path \
29507 LD_CXX \
29508 LD_GCJ \
29509 compiler_CXX \
29510 compiler_GCJ \
29511 lt_prog_compiler_no_builtin_flag_CXX \
29512 lt_prog_compiler_no_builtin_flag_GCJ \
29513 lt_prog_compiler_wl_CXX \
29514 lt_prog_compiler_wl_GCJ \
29515 lt_prog_compiler_pic_CXX \
29516 lt_prog_compiler_pic_GCJ \
29517 lt_prog_compiler_static_CXX \
29518 lt_prog_compiler_static_GCJ \
29519 lt_cv_prog_compiler_c_o_CXX \
29520 lt_cv_prog_compiler_c_o_GCJ \
29521 export_dynamic_flag_spec_CXX \
29522 export_dynamic_flag_spec_GCJ \
29523 whole_archive_flag_spec_CXX \
29524 whole_archive_flag_spec_GCJ \
29525 compiler_needs_object_CXX \
29526 compiler_needs_object_GCJ \
29527 with_gnu_ld_CXX \
29528 with_gnu_ld_GCJ \
29529 allow_undefined_flag_CXX \
29530 allow_undefined_flag_GCJ \
29531 no_undefined_flag_CXX \
29532 no_undefined_flag_GCJ \
29533 hardcode_libdir_flag_spec_CXX \
29534 hardcode_libdir_flag_spec_GCJ \
29535 hardcode_libdir_flag_spec_ld_CXX \
29536 hardcode_libdir_flag_spec_ld_GCJ \
29537 hardcode_libdir_separator_CXX \
29538 hardcode_libdir_separator_GCJ \
29539 fix_srcfile_path_CXX \
29540 fix_srcfile_path_GCJ \
29541 exclude_expsyms_CXX \
29542 exclude_expsyms_GCJ \
29543 include_expsyms_CXX \
29544 include_expsyms_GCJ \
29545 file_list_spec_CXX \
29546 file_list_spec_GCJ \
29547 compiler_lib_search_dirs_CXX \
29548 compiler_lib_search_dirs_GCJ \
29549 predep_objects_CXX \
29550 predep_objects_GCJ \
29551 postdep_objects_CXX \
29552 postdep_objects_GCJ \
29553 predeps_CXX \
29554 predeps_GCJ \
29555 postdeps_CXX \
29556 postdeps_GCJ \
29557 compiler_lib_search_path_CXX \
29558 compiler_lib_search_path_GCJ; do
29559     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29560     *[\\\\\\\`\\"\\\$]*)
29561       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29562       ;;
29563     *)
29564       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29565       ;;
29566     esac
29567 done
29568
29569 # Double-quote double-evaled strings.
29570 for var in reload_cmds \
29571 old_postinstall_cmds \
29572 old_postuninstall_cmds \
29573 old_archive_cmds \
29574 extract_expsyms_cmds \
29575 old_archive_from_new_cmds \
29576 old_archive_from_expsyms_cmds \
29577 archive_cmds \
29578 archive_expsym_cmds \
29579 module_cmds \
29580 module_expsym_cmds \
29581 export_symbols_cmds \
29582 prelink_cmds \
29583 postinstall_cmds \
29584 postuninstall_cmds \
29585 finish_cmds \
29586 sys_lib_search_path_spec \
29587 sys_lib_dlsearch_path_spec \
29588 old_archive_cmds_CXX \
29589 old_archive_cmds_GCJ \
29590 old_archive_from_new_cmds_CXX \
29591 old_archive_from_new_cmds_GCJ \
29592 old_archive_from_expsyms_cmds_CXX \
29593 old_archive_from_expsyms_cmds_GCJ \
29594 archive_cmds_CXX \
29595 archive_cmds_GCJ \
29596 archive_expsym_cmds_CXX \
29597 archive_expsym_cmds_GCJ \
29598 module_cmds_CXX \
29599 module_cmds_GCJ \
29600 module_expsym_cmds_CXX \
29601 module_expsym_cmds_GCJ \
29602 export_symbols_cmds_CXX \
29603 export_symbols_cmds_GCJ \
29604 prelink_cmds_CXX \
29605 prelink_cmds_GCJ; do
29606     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29607     *[\\\\\\\`\\"\\\$]*)
29608       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29609       ;;
29610     *)
29611       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29612       ;;
29613     esac
29614 done
29615
29616 # Fix-up fallback echo if it was mangled by the above quoting rules.
29617 case \$lt_ECHO in
29618 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29619   ;;
29620 esac
29621
29622 ac_aux_dir='$ac_aux_dir'
29623 xsi_shell='$xsi_shell'
29624 lt_shell_append='$lt_shell_append'
29625
29626 # See if we are running on zsh, and set the options which allow our
29627 # commands through without removal of \ escapes INIT.
29628 if test -n "\${ZSH_VERSION+set}" ; then
29629    setopt NO_GLOB_SUBST
29630 fi
29631
29632
29633     PACKAGE='$PACKAGE'
29634     VERSION='$VERSION'
29635     TIMESTAMP='$TIMESTAMP'
29636     RM='$RM'
29637     ofile='$ofile'
29638
29639
29640
29641
29642
29643
29644
29645
29646 _ACEOF
29647
29648
29649
29650 cat >>$CONFIG_STATUS <<\_ACEOF
29651 for ac_config_target in $ac_config_targets
29652 do
29653   case "$ac_config_target" in
29654   # Handling of arguments.
29655   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29656   "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29657   "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29658   "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29659   "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29660   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29661   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29662   "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29663   "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29664   "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29665   "contrib/generate-cacerts.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
29666   "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29667   "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29668   "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29669   "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29670   "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29671   "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29672   "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29673   "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29674   "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29675   "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29676   "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29677   "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29678   "gnu/java/security/jce/prng/natVMSecureRandom.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
29679   "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29680   "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29681   "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29682   "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29683   "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29684   "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29685   "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29686   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29687   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29688   "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29689   "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29690   "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29691   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29692 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29693    { (exit 1); exit 1; }; };;
29694   esac
29695 done
29696
29697 # If the user did not use the arguments to specify the items to instantiate,
29698 # then the envvar interface is used.  Set only those that are not.
29699 # We use the long form for the default assignment because of an extremely
29700 # bizarre bug on SunOS 4.1.3.
29701 if $ac_need_defaults; then
29702   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29703   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29704   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29705   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29706 fi
29707
29708 # Have a temporary directory for convenience.  Make it in the build tree
29709 # simply because there is no reason to put it here, and in addition,
29710 # creating and moving files from /tmp can sometimes cause problems.
29711 # Create a temporary directory, and hook for its removal unless debugging.
29712 $debug ||
29713 {
29714   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29715   trap '{ (exit 1); exit 1; }' 1 2 13 15
29716 }
29717
29718 # Create a (secure) tmp directory for tmp files.
29719
29720 {
29721   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29722   test -n "$tmp" && test -d "$tmp"
29723 }  ||
29724 {
29725   tmp=./confstat$$-$RANDOM
29726   (umask 077 && mkdir $tmp)
29727 } ||
29728 {
29729    echo "$me: cannot create a temporary directory in ." >&2
29730    { (exit 1); exit 1; }
29731 }
29732
29733 _ACEOF
29734
29735 cat >>$CONFIG_STATUS <<_ACEOF
29736
29737 #
29738 # CONFIG_FILES section.
29739 #
29740
29741 # No need to generate the scripts if there are no CONFIG_FILES.
29742 # This happens for instance when ./config.status config.h
29743 if test -n "\$CONFIG_FILES"; then
29744   # Protect against being on the right side of a sed subst in config.status.
29745   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29746    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29747 s,@SHELL@,$SHELL,;t t
29748 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29749 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29750 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29751 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29752 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29753 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29754 s,@exec_prefix@,$exec_prefix,;t t
29755 s,@prefix@,$prefix,;t t
29756 s,@program_transform_name@,$program_transform_name,;t t
29757 s,@bindir@,$bindir,;t t
29758 s,@sbindir@,$sbindir,;t t
29759 s,@libexecdir@,$libexecdir,;t t
29760 s,@datadir@,$datadir,;t t
29761 s,@sysconfdir@,$sysconfdir,;t t
29762 s,@sharedstatedir@,$sharedstatedir,;t t
29763 s,@localstatedir@,$localstatedir,;t t
29764 s,@libdir@,$libdir,;t t
29765 s,@includedir@,$includedir,;t t
29766 s,@oldincludedir@,$oldincludedir,;t t
29767 s,@infodir@,$infodir,;t t
29768 s,@mandir@,$mandir,;t t
29769 s,@build_alias@,$build_alias,;t t
29770 s,@host_alias@,$host_alias,;t t
29771 s,@target_alias@,$target_alias,;t t
29772 s,@DEFS@,$DEFS,;t t
29773 s,@ECHO_C@,$ECHO_C,;t t
29774 s,@ECHO_N@,$ECHO_N,;t t
29775 s,@ECHO_T@,$ECHO_T,;t t
29776 s,@LIBS@,$LIBS,;t t
29777 s,@build@,$build,;t t
29778 s,@build_cpu@,$build_cpu,;t t
29779 s,@build_vendor@,$build_vendor,;t t
29780 s,@build_os@,$build_os,;t t
29781 s,@build_libsubdir@,$build_libsubdir,;t t
29782 s,@build_subdir@,$build_subdir,;t t
29783 s,@host_subdir@,$host_subdir,;t t
29784 s,@target_subdir@,$target_subdir,;t t
29785 s,@multi_basedir@,$multi_basedir,;t t
29786 s,@host@,$host,;t t
29787 s,@host_cpu@,$host_cpu,;t t
29788 s,@host_vendor@,$host_vendor,;t t
29789 s,@host_os@,$host_os,;t t
29790 s,@target@,$target,;t t
29791 s,@target_cpu@,$target_cpu,;t t
29792 s,@target_vendor@,$target_vendor,;t t
29793 s,@target_os@,$target_os,;t t
29794 s,@target_noncanonical@,$target_noncanonical,;t t
29795 s,@LN_S@,$LN_S,;t t
29796 s,@mkinstalldirs@,$mkinstalldirs,;t t
29797 s,@ANTLR_JAR@,$ANTLR_JAR,;t t
29798 s,@CREATE_GJDOC_TRUE@,$CREATE_GJDOC_TRUE,;t t
29799 s,@CREATE_GJDOC_FALSE@,$CREATE_GJDOC_FALSE,;t t
29800 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29801 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29802 s,@CC@,$CC,;t t
29803 s,@ac_ct_CC@,$ac_ct_CC,;t t
29804 s,@EXEEXT@,$EXEEXT,;t t
29805 s,@OBJEXT@,$OBJEXT,;t t
29806 s,@CXX@,$CXX,;t t
29807 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29808 s,@CFLAGS@,$CFLAGS,;t t
29809 s,@CXXFLAGS@,$CXXFLAGS,;t t
29810 s,@LDFLAGS@,$LDFLAGS,;t t
29811 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29812 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29813 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29814 s,@CYGPATH_W@,$CYGPATH_W,;t t
29815 s,@PACKAGE@,$PACKAGE,;t t
29816 s,@VERSION@,$VERSION,;t t
29817 s,@ACLOCAL@,$ACLOCAL,;t t
29818 s,@AUTOCONF@,$AUTOCONF,;t t
29819 s,@AUTOMAKE@,$AUTOMAKE,;t t
29820 s,@AUTOHEADER@,$AUTOHEADER,;t t
29821 s,@MAKEINFO@,$MAKEINFO,;t t
29822 s,@install_sh@,$install_sh,;t t
29823 s,@STRIP@,$STRIP,;t t
29824 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29825 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29826 s,@mkdir_p@,$mkdir_p,;t t
29827 s,@AWK@,$AWK,;t t
29828 s,@SET_MAKE@,$SET_MAKE,;t t
29829 s,@am__leading_dot@,$am__leading_dot,;t t
29830 s,@AMTAR@,$AMTAR,;t t
29831 s,@am__tar@,$am__tar,;t t
29832 s,@am__untar@,$am__untar,;t t
29833 s,@DEPDIR@,$DEPDIR,;t t
29834 s,@am__include@,$am__include,;t t
29835 s,@am__quote@,$am__quote,;t t
29836 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29837 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29838 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29839 s,@CCDEPMODE@,$CCDEPMODE,;t t
29840 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29841 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29842 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29843 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29844 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29845 s,@AS@,$AS,;t t
29846 s,@ac_ct_AS@,$ac_ct_AS,;t t
29847 s,@LD@,$LD,;t t
29848 s,@ac_ct_LD@,$ac_ct_LD,;t t
29849 s,@AR@,$AR,;t t
29850 s,@ac_ct_AR@,$ac_ct_AR,;t t
29851 s,@RANLIB@,$RANLIB,;t t
29852 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29853 s,@JAR@,$JAR,;t t
29854 s,@ZIP@,$ZIP,;t t
29855 s,@UNZIP@,$UNZIP,;t t
29856 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29857 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29858 s,@MAINT@,$MAINT,;t t
29859 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29860 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29861 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29862 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29863 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29864 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29865 s,@TOOLKIT@,$TOOLKIT,;t t
29866 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29867 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29868 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29869 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29870 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29871 s,@GCJH@,$GCJH,;t t
29872 s,@host_exeext@,$host_exeext,;t t
29873 s,@INCLTDL@,$INCLTDL,;t t
29874 s,@LIBLTDL@,$LIBLTDL,;t t
29875 s,@DIRLTDL@,$DIRLTDL,;t t
29876 s,@LIBTOOL@,$LIBTOOL,;t t
29877 s,@SED@,$SED,;t t
29878 s,@EGREP@,$EGREP,;t t
29879 s,@FGREP@,$FGREP,;t t
29880 s,@GREP@,$GREP,;t t
29881 s,@DUMPBIN@,$DUMPBIN,;t t
29882 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29883 s,@NM@,$NM,;t t
29884 s,@OBJDUMP@,$OBJDUMP,;t t
29885 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29886 s,@lt_ECHO@,$lt_ECHO,;t t
29887 s,@DSYMUTIL@,$DSYMUTIL,;t t
29888 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29889 s,@NMEDIT@,$NMEDIT,;t t
29890 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29891 s,@LIPO@,$LIPO,;t t
29892 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29893 s,@OTOOL@,$OTOOL,;t t
29894 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29895 s,@OTOOL64@,$OTOOL64,;t t
29896 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29897 s,@CPP@,$CPP,;t t
29898 s,@CPPFLAGS@,$CPPFLAGS,;t t
29899 s,@CXXCPP@,$CXXCPP,;t t
29900 s,@GCJ@,$GCJ,;t t
29901 s,@GCJFLAGS@,$GCJFLAGS,;t t
29902 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29903 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29904 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29905 s,@subdirs@,$subdirs,;t t
29906 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29907 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29908 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29909 s,@ECJ_JAR@,$ECJ_JAR,;t t
29910 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29911 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29912 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29913 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29914 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29915 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29916 s,@JAVA_HOME@,$JAVA_HOME,;t t
29917 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29918 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29919 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29920 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29921 s,@INTERPRETER@,$INTERPRETER,;t t
29922 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29923 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29924 s,@LIBFFI@,$LIBFFI,;t t
29925 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29926 s,@PLATFORM@,$PLATFORM,;t t
29927 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29928 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29929 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29930 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29931 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29932 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29933 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29934 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29935 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29936 s,@X_CFLAGS@,$X_CFLAGS,;t t
29937 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29938 s,@X_LIBS@,$X_LIBS,;t t
29939 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29940 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29941 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29942 s,@extra_ldflags@,$extra_ldflags,;t t
29943 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29944 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29945 s,@GCLIBS@,$GCLIBS,;t t
29946 s,@GCINCS@,$GCINCS,;t t
29947 s,@GCDEPS@,$GCDEPS,;t t
29948 s,@GCSPEC@,$GCSPEC,;t t
29949 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29950 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29951 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29952 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29953 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29954 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29955 s,@THREADLIBS@,$THREADLIBS,;t t
29956 s,@THREADINCS@,$THREADINCS,;t t
29957 s,@THREADDEPS@,$THREADDEPS,;t t
29958 s,@THREADSPEC@,$THREADSPEC,;t t
29959 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29960 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29961 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29962 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29963 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29964 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29965 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29966 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29967 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29968 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29969 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29970 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29971 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29972 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29973 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29974 s,@LIBICONV@,$LIBICONV,;t t
29975 s,@LTLIBICONV@,$LTLIBICONV,;t t
29976 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29977 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29978 s,@GTK_LIBS@,$GTK_LIBS,;t t
29979 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29980 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29981 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29982 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29983 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29984 s,@ZLIBS@,$ZLIBS,;t t
29985 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29986 s,@ZINCS@,$ZINCS,;t t
29987 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29988 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29989 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29990 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29991 s,@IEEESPEC@,$IEEESPEC,;t t
29992 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29993 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29994 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29995 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29996 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29997 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29998 s,@INSTALL_BINARIES_TRUE@,$INSTALL_BINARIES_TRUE,;t t
29999 s,@INSTALL_BINARIES_FALSE@,$INSTALL_BINARIES_FALSE,;t t
30000 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
30001 s,@toolexecdir@,$toolexecdir,;t t
30002 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
30003 s,@toolexeclibdir@,$toolexeclibdir,;t t
30004 s,@GCJVERSION@,$GCJVERSION,;t t
30005 s,@dbexecdir@,$dbexecdir,;t t
30006 s,@gcjsubdir@,$gcjsubdir,;t t
30007 s,@gxx_include_dir@,$gxx_include_dir,;t t
30008 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
30009 s,@PERL@,$PERL,;t t
30010 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
30011 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
30012 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
30013 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
30014 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
30015 s,@here@,$here,;t t
30016 s,@python_mod_dir@,$python_mod_dir,;t t
30017 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
30018 s,@MAKE@,$MAKE,;t t
30019 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
30020 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
30021 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
30022 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
30023 s,@gcc_suffix@,$gcc_suffix,;t t
30024 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
30025 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
30026 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
30027 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
30028 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
30029 s,@JRE_DIR@,$JRE_DIR,;t t
30030 s,@JRE_LNK@,$JRE_LNK,;t t
30031 s,@SDK_LNK@,$SDK_LNK,;t t
30032 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
30033 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
30034 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
30035 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
30036 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
30037 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
30038 s,@CPU@,$CPU,;t t
30039 s,@OS@,$OS,;t t
30040 s,@LIBDIR@,$LIBDIR,;t t
30041 s,@LIBOBJS@,$LIBOBJS,;t t
30042 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30043 CEOF
30044
30045 _ACEOF
30046
30047   cat >>$CONFIG_STATUS <<\_ACEOF
30048   # Split the substitutions into bite-sized pieces for seds with
30049   # small command number limits, like on Digital OSF/1 and HP-UX.
30050   ac_max_sed_lines=48
30051   ac_sed_frag=1 # Number of current file.
30052   ac_beg=1 # First line for current file.
30053   ac_end=$ac_max_sed_lines # Line after last line for current file.
30054   ac_more_lines=:
30055   ac_sed_cmds=
30056   while $ac_more_lines; do
30057     if test $ac_beg -gt 1; then
30058       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30059     else
30060       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30061     fi
30062     if test ! -s $tmp/subs.frag; then
30063       ac_more_lines=false
30064     else
30065       # The purpose of the label and of the branching condition is to
30066       # speed up the sed processing (if there are no `@' at all, there
30067       # is no need to browse any of the substitutions).
30068       # These are the two extra sed commands mentioned above.
30069       (echo ':t
30070   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30071       if test -z "$ac_sed_cmds"; then
30072         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30073       else
30074         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30075       fi
30076       ac_sed_frag=`expr $ac_sed_frag + 1`
30077       ac_beg=$ac_end
30078       ac_end=`expr $ac_end + $ac_max_sed_lines`
30079     fi
30080   done
30081   if test -z "$ac_sed_cmds"; then
30082     ac_sed_cmds=cat
30083   fi
30084 fi # test -n "$CONFIG_FILES"
30085
30086 _ACEOF
30087 cat >>$CONFIG_STATUS <<\_ACEOF
30088 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30089   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30090   case $ac_file in
30091   - | *:- | *:-:* ) # input from stdin
30092         cat >$tmp/stdin
30093         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30094         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30095   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30096         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30097   * )   ac_file_in=$ac_file.in ;;
30098   esac
30099
30100   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30101   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30102 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30103          X"$ac_file" : 'X\(//\)[^/]' \| \
30104          X"$ac_file" : 'X\(//\)$' \| \
30105          X"$ac_file" : 'X\(/\)' \| \
30106          .     : '\(.\)' 2>/dev/null ||
30107 echo X"$ac_file" |
30108     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30109           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30110           /^X\(\/\/\)$/{ s//\1/; q; }
30111           /^X\(\/\).*/{ s//\1/; q; }
30112           s/.*/./; q'`
30113   { if $as_mkdir_p; then
30114     mkdir -p "$ac_dir"
30115   else
30116     as_dir="$ac_dir"
30117     as_dirs=
30118     while test ! -d "$as_dir"; do
30119       as_dirs="$as_dir $as_dirs"
30120       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30122          X"$as_dir" : 'X\(//\)[^/]' \| \
30123          X"$as_dir" : 'X\(//\)$' \| \
30124          X"$as_dir" : 'X\(/\)' \| \
30125          .     : '\(.\)' 2>/dev/null ||
30126 echo X"$as_dir" |
30127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30129           /^X\(\/\/\)$/{ s//\1/; q; }
30130           /^X\(\/\).*/{ s//\1/; q; }
30131           s/.*/./; q'`
30132     done
30133     test ! -n "$as_dirs" || mkdir $as_dirs
30134   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30135 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30136    { (exit 1); exit 1; }; }; }
30137
30138   ac_builddir=.
30139
30140 if test "$ac_dir" != .; then
30141   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30142   # A "../" for each directory in $ac_dir_suffix.
30143   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30144 else
30145   ac_dir_suffix= ac_top_builddir=
30146 fi
30147
30148 case $srcdir in
30149   .)  # No --srcdir option.  We are building in place.
30150     ac_srcdir=.
30151     if test -z "$ac_top_builddir"; then
30152        ac_top_srcdir=.
30153     else
30154        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30155     fi ;;
30156   [\\/]* | ?:[\\/]* )  # Absolute path.
30157     ac_srcdir=$srcdir$ac_dir_suffix;
30158     ac_top_srcdir=$srcdir ;;
30159   *) # Relative path.
30160     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30161     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30162 esac
30163
30164 # Do not use `cd foo && pwd` to compute absolute paths, because
30165 # the directories may not exist.
30166 case `pwd` in
30167 .) ac_abs_builddir="$ac_dir";;
30168 *)
30169   case "$ac_dir" in
30170   .) ac_abs_builddir=`pwd`;;
30171   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30172   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30173   esac;;
30174 esac
30175 case $ac_abs_builddir in
30176 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30177 *)
30178   case ${ac_top_builddir}. in
30179   .) ac_abs_top_builddir=$ac_abs_builddir;;
30180   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30181   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30182   esac;;
30183 esac
30184 case $ac_abs_builddir in
30185 .) ac_abs_srcdir=$ac_srcdir;;
30186 *)
30187   case $ac_srcdir in
30188   .) ac_abs_srcdir=$ac_abs_builddir;;
30189   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30190   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30191   esac;;
30192 esac
30193 case $ac_abs_builddir in
30194 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30195 *)
30196   case $ac_top_srcdir in
30197   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30198   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30199   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30200   esac;;
30201 esac
30202
30203
30204   case $INSTALL in
30205   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30206   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30207   esac
30208
30209   if test x"$ac_file" != x-; then
30210     { echo "$as_me:$LINENO: creating $ac_file" >&5
30211 echo "$as_me: creating $ac_file" >&6;}
30212     rm -f "$ac_file"
30213   fi
30214   # Let's still pretend it is `configure' which instantiates (i.e., don't
30215   # use $as_me), people would be surprised to read:
30216   #    /* config.h.  Generated by config.status.  */
30217   if test x"$ac_file" = x-; then
30218     configure_input=
30219   else
30220     configure_input="$ac_file.  "
30221   fi
30222   configure_input=$configure_input"Generated from `echo $ac_file_in |
30223                                      sed 's,.*/,,'` by configure."
30224
30225   # First look for the input files in the build tree, otherwise in the
30226   # src tree.
30227   ac_file_inputs=`IFS=:
30228     for f in $ac_file_in; do
30229       case $f in
30230       -) echo $tmp/stdin ;;
30231       [\\/$]*)
30232          # Absolute (can't be DOS-style, as IFS=:)
30233          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30234 echo "$as_me: error: cannot find input file: $f" >&2;}
30235    { (exit 1); exit 1; }; }
30236          echo "$f";;
30237       *) # Relative
30238          if test -f "$f"; then
30239            # Build tree
30240            echo "$f"
30241          elif test -f "$srcdir/$f"; then
30242            # Source tree
30243            echo "$srcdir/$f"
30244          else
30245            # /dev/null tree
30246            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30247 echo "$as_me: error: cannot find input file: $f" >&2;}
30248    { (exit 1); exit 1; }; }
30249          fi;;
30250       esac
30251     done` || { (exit 1); exit 1; }
30252 _ACEOF
30253 cat >>$CONFIG_STATUS <<_ACEOF
30254   sed "$ac_vpsub
30255 $extrasub
30256 _ACEOF
30257 cat >>$CONFIG_STATUS <<\_ACEOF
30258 :t
30259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30260 s,@configure_input@,$configure_input,;t t
30261 s,@srcdir@,$ac_srcdir,;t t
30262 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30263 s,@top_srcdir@,$ac_top_srcdir,;t t
30264 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30265 s,@builddir@,$ac_builddir,;t t
30266 s,@abs_builddir@,$ac_abs_builddir,;t t
30267 s,@top_builddir@,$ac_top_builddir,;t t
30268 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30269 s,@INSTALL@,$ac_INSTALL,;t t
30270 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30271   rm -f $tmp/stdin
30272   if test x"$ac_file" != x-; then
30273     mv $tmp/out $ac_file
30274   else
30275     cat $tmp/out
30276     rm -f $tmp/out
30277   fi
30278
30279   # Run the commands associated with the file.
30280   case $ac_file in
30281     scripts/jar ) chmod +x scripts/jar ;;
30282   esac
30283 done
30284 _ACEOF
30285 cat >>$CONFIG_STATUS <<\_ACEOF
30286
30287 #
30288 # CONFIG_HEADER section.
30289 #
30290
30291 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30292 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30293 #
30294 # ac_d sets the value in "#define NAME VALUE" lines.
30295 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
30296 ac_dB='[         ].*$,\1#\2'
30297 ac_dC=' '
30298 ac_dD=',;t'
30299 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30300 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
30301 ac_uB='$,\1#\2define\3'
30302 ac_uC=' '
30303 ac_uD=',;t'
30304
30305 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30306   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30307   case $ac_file in
30308   - | *:- | *:-:* ) # input from stdin
30309         cat >$tmp/stdin
30310         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30311         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30312   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30313         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30314   * )   ac_file_in=$ac_file.in ;;
30315   esac
30316
30317   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30318 echo "$as_me: creating $ac_file" >&6;}
30319
30320   # First look for the input files in the build tree, otherwise in the
30321   # src tree.
30322   ac_file_inputs=`IFS=:
30323     for f in $ac_file_in; do
30324       case $f in
30325       -) echo $tmp/stdin ;;
30326       [\\/$]*)
30327          # Absolute (can't be DOS-style, as IFS=:)
30328          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30329 echo "$as_me: error: cannot find input file: $f" >&2;}
30330    { (exit 1); exit 1; }; }
30331          # Do quote $f, to prevent DOS paths from being IFS'd.
30332          echo "$f";;
30333       *) # Relative
30334          if test -f "$f"; then
30335            # Build tree
30336            echo "$f"
30337          elif test -f "$srcdir/$f"; then
30338            # Source tree
30339            echo "$srcdir/$f"
30340          else
30341            # /dev/null tree
30342            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30343 echo "$as_me: error: cannot find input file: $f" >&2;}
30344    { (exit 1); exit 1; }; }
30345          fi;;
30346       esac
30347     done` || { (exit 1); exit 1; }
30348   # Remove the trailing spaces.
30349   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
30350
30351 _ACEOF
30352
30353 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30354 # `conftest.undefs', that substitutes the proper values into
30355 # config.h.in to produce config.h.  The first handles `#define'
30356 # templates, and the second `#undef' templates.
30357 # And first: Protect against being on the right side of a sed subst in
30358 # config.status.  Protect against being in an unquoted here document
30359 # in config.status.
30360 rm -f conftest.defines conftest.undefs
30361 # Using a here document instead of a string reduces the quoting nightmare.
30362 # Putting comments in sed scripts is not portable.
30363 #
30364 # `end' is used to avoid that the second main sed command (meant for
30365 # 0-ary CPP macros) applies to n-ary macro definitions.
30366 # See the Autoconf documentation for `clear'.
30367 cat >confdef2sed.sed <<\_ACEOF
30368 s/[\\&,]/\\&/g
30369 s,[\\$`],\\&,g
30370 t clear
30371 : clear
30372 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30373 t end
30374 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30375 : end
30376 _ACEOF
30377 # If some macros were called several times there might be several times
30378 # the same #defines, which is useless.  Nevertheless, we may not want to
30379 # sort them, since we want the *last* AC-DEFINE to be honored.
30380 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30381 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30382 rm -f confdef2sed.sed
30383
30384 # This sed command replaces #undef with comments.  This is necessary, for
30385 # example, in the case of _POSIX_SOURCE, which is predefined and required
30386 # on some systems where configure will not decide to define it.
30387 cat >>conftest.undefs <<\_ACEOF
30388 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30389 _ACEOF
30390
30391 # Break up conftest.defines because some shells have a limit on the size
30392 # of here documents, and old seds have small limits too (100 cmds).
30393 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30394 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30395 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30396 echo '  :' >>$CONFIG_STATUS
30397 rm -f conftest.tail
30398 while grep . conftest.defines >/dev/null
30399 do
30400   # Write a limited-size here document to $tmp/defines.sed.
30401   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30402   # Speed up: don't consider the non `#define' lines.
30403   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
30404   # Work around the forget-to-reset-the-flag bug.
30405   echo 't clr' >>$CONFIG_STATUS
30406   echo ': clr' >>$CONFIG_STATUS
30407   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30408   echo 'CEOF
30409   sed -f $tmp/defines.sed $tmp/in >$tmp/out
30410   rm -f $tmp/in
30411   mv $tmp/out $tmp/in
30412 ' >>$CONFIG_STATUS
30413   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30414   rm -f conftest.defines
30415   mv conftest.tail conftest.defines
30416 done
30417 rm -f conftest.defines
30418 echo '  fi # grep' >>$CONFIG_STATUS
30419 echo >>$CONFIG_STATUS
30420
30421 # Break up conftest.undefs because some shells have a limit on the size
30422 # of here documents, and old seds have small limits too (100 cmds).
30423 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
30424 rm -f conftest.tail
30425 while grep . conftest.undefs >/dev/null
30426 do
30427   # Write a limited-size here document to $tmp/undefs.sed.
30428   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30429   # Speed up: don't consider the non `#undef'
30430   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
30431   # Work around the forget-to-reset-the-flag bug.
30432   echo 't clr' >>$CONFIG_STATUS
30433   echo ': clr' >>$CONFIG_STATUS
30434   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30435   echo 'CEOF
30436   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30437   rm -f $tmp/in
30438   mv $tmp/out $tmp/in
30439 ' >>$CONFIG_STATUS
30440   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30441   rm -f conftest.undefs
30442   mv conftest.tail conftest.undefs
30443 done
30444 rm -f conftest.undefs
30445
30446 cat >>$CONFIG_STATUS <<\_ACEOF
30447   # Let's still pretend it is `configure' which instantiates (i.e., don't
30448   # use $as_me), people would be surprised to read:
30449   #    /* config.h.  Generated by config.status.  */
30450   if test x"$ac_file" = x-; then
30451     echo "/* Generated by configure.  */" >$tmp/config.h
30452   else
30453     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
30454   fi
30455   cat $tmp/in >>$tmp/config.h
30456   rm -f $tmp/in
30457   if test x"$ac_file" != x-; then
30458     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30459       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30460 echo "$as_me: $ac_file is unchanged" >&6;}
30461     else
30462       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30464          X"$ac_file" : 'X\(//\)[^/]' \| \
30465          X"$ac_file" : 'X\(//\)$' \| \
30466          X"$ac_file" : 'X\(/\)' \| \
30467          .     : '\(.\)' 2>/dev/null ||
30468 echo X"$ac_file" |
30469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30471           /^X\(\/\/\)$/{ s//\1/; q; }
30472           /^X\(\/\).*/{ s//\1/; q; }
30473           s/.*/./; q'`
30474       { if $as_mkdir_p; then
30475     mkdir -p "$ac_dir"
30476   else
30477     as_dir="$ac_dir"
30478     as_dirs=
30479     while test ! -d "$as_dir"; do
30480       as_dirs="$as_dir $as_dirs"
30481       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30483          X"$as_dir" : 'X\(//\)[^/]' \| \
30484          X"$as_dir" : 'X\(//\)$' \| \
30485          X"$as_dir" : 'X\(/\)' \| \
30486          .     : '\(.\)' 2>/dev/null ||
30487 echo X"$as_dir" |
30488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30490           /^X\(\/\/\)$/{ s//\1/; q; }
30491           /^X\(\/\).*/{ s//\1/; q; }
30492           s/.*/./; q'`
30493     done
30494     test ! -n "$as_dirs" || mkdir $as_dirs
30495   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30497    { (exit 1); exit 1; }; }; }
30498
30499       rm -f $ac_file
30500       mv $tmp/config.h $ac_file
30501     fi
30502   else
30503     cat $tmp/config.h
30504     rm -f $tmp/config.h
30505   fi
30506 # Compute $ac_file's index in $config_headers.
30507 _am_stamp_count=1
30508 for _am_header in $config_headers :; do
30509   case $_am_header in
30510     $ac_file | $ac_file:* )
30511       break ;;
30512     * )
30513       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30514   esac
30515 done
30516 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30517 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30518          X$ac_file : 'X\(//\)[^/]' \| \
30519          X$ac_file : 'X\(//\)$' \| \
30520          X$ac_file : 'X\(/\)' \| \
30521          .     : '\(.\)' 2>/dev/null ||
30522 echo X$ac_file |
30523     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30524           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30525           /^X\(\/\/\)$/{ s//\1/; q; }
30526           /^X\(\/\).*/{ s//\1/; q; }
30527           s/.*/./; q'`/stamp-h$_am_stamp_count
30528 done
30529 _ACEOF
30530 cat >>$CONFIG_STATUS <<\_ACEOF
30531
30532 #
30533 # CONFIG_LINKS section.
30534 #
30535
30536 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30537   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30538   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30539
30540   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30541 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30542
30543   if test ! -r $srcdir/$ac_source; then
30544     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30545 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30546    { (exit 1); exit 1; }; }
30547   fi
30548   rm -f $ac_dest
30549
30550   # Make relative symlinks.
30551   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30552 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30553          X"$ac_dest" : 'X\(//\)[^/]' \| \
30554          X"$ac_dest" : 'X\(//\)$' \| \
30555          X"$ac_dest" : 'X\(/\)' \| \
30556          .     : '\(.\)' 2>/dev/null ||
30557 echo X"$ac_dest" |
30558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30559           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30560           /^X\(\/\/\)$/{ s//\1/; q; }
30561           /^X\(\/\).*/{ s//\1/; q; }
30562           s/.*/./; q'`
30563   { if $as_mkdir_p; then
30564     mkdir -p "$ac_dest_dir"
30565   else
30566     as_dir="$ac_dest_dir"
30567     as_dirs=
30568     while test ! -d "$as_dir"; do
30569       as_dirs="$as_dir $as_dirs"
30570       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30571 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30572          X"$as_dir" : 'X\(//\)[^/]' \| \
30573          X"$as_dir" : 'X\(//\)$' \| \
30574          X"$as_dir" : 'X\(/\)' \| \
30575          .     : '\(.\)' 2>/dev/null ||
30576 echo X"$as_dir" |
30577     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30578           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30579           /^X\(\/\/\)$/{ s//\1/; q; }
30580           /^X\(\/\).*/{ s//\1/; q; }
30581           s/.*/./; q'`
30582     done
30583     test ! -n "$as_dirs" || mkdir $as_dirs
30584   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30585 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30586    { (exit 1); exit 1; }; }; }
30587
30588   ac_builddir=.
30589
30590 if test "$ac_dest_dir" != .; then
30591   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30592   # A "../" for each directory in $ac_dir_suffix.
30593   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30594 else
30595   ac_dir_suffix= ac_top_builddir=
30596 fi
30597
30598 case $srcdir in
30599   .)  # No --srcdir option.  We are building in place.
30600     ac_srcdir=.
30601     if test -z "$ac_top_builddir"; then
30602        ac_top_srcdir=.
30603     else
30604        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30605     fi ;;
30606   [\\/]* | ?:[\\/]* )  # Absolute path.
30607     ac_srcdir=$srcdir$ac_dir_suffix;
30608     ac_top_srcdir=$srcdir ;;
30609   *) # Relative path.
30610     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30611     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30612 esac
30613
30614 # Do not use `cd foo && pwd` to compute absolute paths, because
30615 # the directories may not exist.
30616 case `pwd` in
30617 .) ac_abs_builddir="$ac_dest_dir";;
30618 *)
30619   case "$ac_dest_dir" in
30620   .) ac_abs_builddir=`pwd`;;
30621   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30622   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30623   esac;;
30624 esac
30625 case $ac_abs_builddir in
30626 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30627 *)
30628   case ${ac_top_builddir}. in
30629   .) ac_abs_top_builddir=$ac_abs_builddir;;
30630   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30631   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30632   esac;;
30633 esac
30634 case $ac_abs_builddir in
30635 .) ac_abs_srcdir=$ac_srcdir;;
30636 *)
30637   case $ac_srcdir in
30638   .) ac_abs_srcdir=$ac_abs_builddir;;
30639   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30640   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30641   esac;;
30642 esac
30643 case $ac_abs_builddir in
30644 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30645 *)
30646   case $ac_top_srcdir in
30647   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30648   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30649   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30650   esac;;
30651 esac
30652
30653
30654   case $srcdir in
30655   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30656       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30657   esac
30658
30659   # Try a symlink, then a hard link, then a copy.
30660   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30661     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30662     cp -p $srcdir/$ac_source $ac_dest ||
30663     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30664 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30665    { (exit 1); exit 1; }; }
30666 done
30667 _ACEOF
30668 cat >>$CONFIG_STATUS <<\_ACEOF
30669
30670 #
30671 # CONFIG_COMMANDS section.
30672 #
30673 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30674   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30675   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30676   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30677 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30678          X"$ac_dest" : 'X\(//\)[^/]' \| \
30679          X"$ac_dest" : 'X\(//\)$' \| \
30680          X"$ac_dest" : 'X\(/\)' \| \
30681          .     : '\(.\)' 2>/dev/null ||
30682 echo X"$ac_dest" |
30683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30684           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30685           /^X\(\/\/\)$/{ s//\1/; q; }
30686           /^X\(\/\).*/{ s//\1/; q; }
30687           s/.*/./; q'`
30688   { if $as_mkdir_p; then
30689     mkdir -p "$ac_dir"
30690   else
30691     as_dir="$ac_dir"
30692     as_dirs=
30693     while test ! -d "$as_dir"; do
30694       as_dirs="$as_dir $as_dirs"
30695       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30697          X"$as_dir" : 'X\(//\)[^/]' \| \
30698          X"$as_dir" : 'X\(//\)$' \| \
30699          X"$as_dir" : 'X\(/\)' \| \
30700          .     : '\(.\)' 2>/dev/null ||
30701 echo X"$as_dir" |
30702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30703           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30704           /^X\(\/\/\)$/{ s//\1/; q; }
30705           /^X\(\/\).*/{ s//\1/; q; }
30706           s/.*/./; q'`
30707     done
30708     test ! -n "$as_dirs" || mkdir $as_dirs
30709   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30711    { (exit 1); exit 1; }; }; }
30712
30713   ac_builddir=.
30714
30715 if test "$ac_dir" != .; then
30716   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30717   # A "../" for each directory in $ac_dir_suffix.
30718   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30719 else
30720   ac_dir_suffix= ac_top_builddir=
30721 fi
30722
30723 case $srcdir in
30724   .)  # No --srcdir option.  We are building in place.
30725     ac_srcdir=.
30726     if test -z "$ac_top_builddir"; then
30727        ac_top_srcdir=.
30728     else
30729        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30730     fi ;;
30731   [\\/]* | ?:[\\/]* )  # Absolute path.
30732     ac_srcdir=$srcdir$ac_dir_suffix;
30733     ac_top_srcdir=$srcdir ;;
30734   *) # Relative path.
30735     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30736     ac_top_srcdir=$ac_top_builddir$srcdir ;;
30737 esac
30738
30739 # Do not use `cd foo && pwd` to compute absolute paths, because
30740 # the directories may not exist.
30741 case `pwd` in
30742 .) ac_abs_builddir="$ac_dir";;
30743 *)
30744   case "$ac_dir" in
30745   .) ac_abs_builddir=`pwd`;;
30746   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30747   *) ac_abs_builddir=`pwd`/"$ac_dir";;
30748   esac;;
30749 esac
30750 case $ac_abs_builddir in
30751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30752 *)
30753   case ${ac_top_builddir}. in
30754   .) ac_abs_top_builddir=$ac_abs_builddir;;
30755   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30756   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30757   esac;;
30758 esac
30759 case $ac_abs_builddir in
30760 .) ac_abs_srcdir=$ac_srcdir;;
30761 *)
30762   case $ac_srcdir in
30763   .) ac_abs_srcdir=$ac_abs_builddir;;
30764   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30765   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30766   esac;;
30767 esac
30768 case $ac_abs_builddir in
30769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30770 *)
30771   case $ac_top_srcdir in
30772   .) ac_abs_top_srcdir=$ac_abs_builddir;;
30773   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30774   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30775   esac;;
30776 esac
30777
30778
30779   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30780 echo "$as_me: executing $ac_dest commands" >&6;}
30781   case $ac_dest in
30782     default-1 )
30783 # Only add multilib support code if we just rebuilt the top-level
30784 # Makefile.
30785 case " $CONFIG_FILES " in
30786  *" Makefile "*)
30787    ac_file=Makefile . ${multi_basedir}/config-ml.in
30788    ;;
30789 esac ;;
30790     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30791   # Strip MF so we end up with the name of the file.
30792   mf=`echo "$mf" | sed -e 's/:.*$//'`
30793   # Check whether this is an Automake generated Makefile or not.
30794   # We used to match only the files named `Makefile.in', but
30795   # some people rename them; so instead we look at the file content.
30796   # Grep'ing the first line is not enough: some people post-process
30797   # each Makefile.in and add a new line on top of each file to say so.
30798   # So let's grep whole file.
30799   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30800     dirpart=`(dirname "$mf") 2>/dev/null ||
30801 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30802          X"$mf" : 'X\(//\)[^/]' \| \
30803          X"$mf" : 'X\(//\)$' \| \
30804          X"$mf" : 'X\(/\)' \| \
30805          .     : '\(.\)' 2>/dev/null ||
30806 echo X"$mf" |
30807     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30808           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30809           /^X\(\/\/\)$/{ s//\1/; q; }
30810           /^X\(\/\).*/{ s//\1/; q; }
30811           s/.*/./; q'`
30812   else
30813     continue
30814   fi
30815   # Extract the definition of DEPDIR, am__include, and am__quote
30816   # from the Makefile without running `make'.
30817   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30818   test -z "$DEPDIR" && continue
30819   am__include=`sed -n 's/^am__include = //p' < "$mf"`
30820   test -z "am__include" && continue
30821   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30822   # When using ansi2knr, U may be empty or an underscore; expand it
30823   U=`sed -n 's/^U = //p' < "$mf"`
30824   # Find all dependency output files, they are included files with
30825   # $(DEPDIR) in their names.  We invoke sed twice because it is the
30826   # simplest approach to changing $(DEPDIR) to its actual value in the
30827   # expansion.
30828   for file in `sed -n "
30829     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30830        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30831     # Make sure the directory exists.
30832     test -f "$dirpart/$file" && continue
30833     fdir=`(dirname "$file") 2>/dev/null ||
30834 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30835          X"$file" : 'X\(//\)[^/]' \| \
30836          X"$file" : 'X\(//\)$' \| \
30837          X"$file" : 'X\(/\)' \| \
30838          .     : '\(.\)' 2>/dev/null ||
30839 echo X"$file" |
30840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30841           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30842           /^X\(\/\/\)$/{ s//\1/; q; }
30843           /^X\(\/\).*/{ s//\1/; q; }
30844           s/.*/./; q'`
30845     { if $as_mkdir_p; then
30846     mkdir -p $dirpart/$fdir
30847   else
30848     as_dir=$dirpart/$fdir
30849     as_dirs=
30850     while test ! -d "$as_dir"; do
30851       as_dirs="$as_dir $as_dirs"
30852       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30854          X"$as_dir" : 'X\(//\)[^/]' \| \
30855          X"$as_dir" : 'X\(//\)$' \| \
30856          X"$as_dir" : 'X\(/\)' \| \
30857          .     : '\(.\)' 2>/dev/null ||
30858 echo X"$as_dir" |
30859     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30860           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30861           /^X\(\/\/\)$/{ s//\1/; q; }
30862           /^X\(\/\).*/{ s//\1/; q; }
30863           s/.*/./; q'`
30864     done
30865     test ! -n "$as_dirs" || mkdir $as_dirs
30866   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30867 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30868    { (exit 1); exit 1; }; }; }
30869
30870     # echo "creating $dirpart/$file"
30871     echo '# dummy' > "$dirpart/$file"
30872   done
30873 done
30874  ;;
30875     libtool )
30876
30877     # See if we are running on zsh, and set the options which allow our
30878     # commands through without removal of \ escapes.
30879     if test -n "${ZSH_VERSION+set}" ; then
30880       setopt NO_GLOB_SUBST
30881     fi
30882
30883     cfgfile="${ofile}T"
30884     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30885     $RM "$cfgfile"
30886
30887     cat <<_LT_EOF >> "$cfgfile"
30888 #! $SHELL
30889
30890 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30891 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30892 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30894 #
30895 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30896 #                 2006, 2007, 2008 Free Software Foundation, Inc.
30897 #   Written by Gordon Matzigkeit, 1996
30898 #
30899 #   This file is part of GNU Libtool.
30900 #
30901 # GNU Libtool is free software; you can redistribute it and/or
30902 # modify it under the terms of the GNU General Public License as
30903 # published by the Free Software Foundation; either version 2 of
30904 # the License, or (at your option) any later version.
30905 #
30906 # As a special exception to the GNU General Public License,
30907 # if you distribute this file as part of a program or library that
30908 # is built using GNU Libtool, you may include this file under the
30909 # same distribution terms that you use for the rest of that program.
30910 #
30911 # GNU Libtool is distributed in the hope that it will be useful,
30912 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30914 # GNU General Public License for more details.
30915 #
30916 # You should have received a copy of the GNU General Public License
30917 # along with GNU Libtool; see the file COPYING.  If not, a copy
30918 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30919 # obtained by writing to the Free Software Foundation, Inc.,
30920 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30921
30922
30923 # The names of the tagged configurations supported by this script.
30924 available_tags="CXX GCJ "
30925
30926 # ### BEGIN LIBTOOL CONFIG
30927
30928 # Which release of libtool.m4 was used?
30929 macro_version=$macro_version
30930 macro_revision=$macro_revision
30931
30932 # Whether or not to build shared libraries.
30933 build_libtool_libs=$enable_shared
30934
30935 # Whether or not to build static libraries.
30936 build_old_libs=$enable_static
30937
30938 # What type of objects to build.
30939 pic_mode=$pic_mode
30940
30941 # Whether or not to optimize for fast installation.
30942 fast_install=$enable_fast_install
30943
30944 # The host system.
30945 host_alias=$host_alias
30946 host=$host
30947 host_os=$host_os
30948
30949 # The build system.
30950 build_alias=$build_alias
30951 build=$build
30952 build_os=$build_os
30953
30954 # A sed program that does not truncate output.
30955 SED=$lt_SED
30956
30957 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30958 Xsed="\$SED -e 1s/^X//"
30959
30960 # A grep program that handles long lines.
30961 GREP=$lt_GREP
30962
30963 # An ERE matcher.
30964 EGREP=$lt_EGREP
30965
30966 # A literal string matcher.
30967 FGREP=$lt_FGREP
30968
30969 # A BSD- or MS-compatible name lister.
30970 NM=$lt_NM
30971
30972 # Whether we need soft or hard links.
30973 LN_S=$lt_LN_S
30974
30975 # What is the maximum length of a command?
30976 max_cmd_len=$max_cmd_len
30977
30978 # Object file suffix (normally "o").
30979 objext=$ac_objext
30980
30981 # Executable file suffix (normally "").
30982 exeext=$exeext
30983
30984 # whether the shell understands "unset".
30985 lt_unset=$lt_unset
30986
30987 # turn spaces into newlines.
30988 SP2NL=$lt_lt_SP2NL
30989
30990 # turn newlines into spaces.
30991 NL2SP=$lt_lt_NL2SP
30992
30993 # How to create reloadable object files.
30994 reload_flag=$lt_reload_flag
30995 reload_cmds=$lt_reload_cmds
30996
30997 # An object symbol dumper.
30998 OBJDUMP=$lt_OBJDUMP
30999
31000 # Method to check whether dependent libraries are shared objects.
31001 deplibs_check_method=$lt_deplibs_check_method
31002
31003 # Command to use when deplibs_check_method == "file_magic".
31004 file_magic_cmd=$lt_file_magic_cmd
31005
31006 # The archiver.
31007 AR=$lt_AR
31008 AR_FLAGS=$lt_AR_FLAGS
31009
31010 # A symbol stripping program.
31011 STRIP=$lt_STRIP
31012
31013 # Commands used to install an old-style archive.
31014 RANLIB=$lt_RANLIB
31015 old_postinstall_cmds=$lt_old_postinstall_cmds
31016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31017
31018 # A C compiler.
31019 LTCC=$lt_CC
31020
31021 # LTCC compiler flags.
31022 LTCFLAGS=$lt_CFLAGS
31023
31024 # Take the output of nm and produce a listing of raw symbols and C names.
31025 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31026
31027 # Transform the output of nm in a proper C declaration.
31028 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31029
31030 # Transform the output of nm in a C name address pair.
31031 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31032
31033 # Transform the output of nm in a C name address pair when lib prefix is needed.
31034 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31035
31036 # The name of the directory that contains temporary libtool files.
31037 objdir=$objdir
31038
31039 # Shell to use when invoking shell scripts.
31040 SHELL=$lt_SHELL
31041
31042 # An echo program that does not interpret backslashes.
31043 ECHO=$lt_ECHO
31044
31045 # Used to examine libraries when file_magic_cmd begins with "file".
31046 MAGIC_CMD=$MAGIC_CMD
31047
31048 # Must we lock files when doing compilation?
31049 need_locks=$lt_need_locks
31050
31051 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31052 DSYMUTIL=$lt_DSYMUTIL
31053
31054 # Tool to change global to local symbols on Mac OS X.
31055 NMEDIT=$lt_NMEDIT
31056
31057 # Tool to manipulate fat objects and archives on Mac OS X.
31058 LIPO=$lt_LIPO
31059
31060 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31061 OTOOL=$lt_OTOOL
31062
31063 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31064 OTOOL64=$lt_OTOOL64
31065
31066 # Old archive suffix (normally "a").
31067 libext=$libext
31068
31069 # Shared library suffix (normally ".so").
31070 shrext_cmds=$lt_shrext_cmds
31071
31072 # The commands to extract the exported symbol list from a shared archive.
31073 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31074
31075 # Variables whose values should be saved in libtool wrapper scripts and
31076 # restored at link time.
31077 variables_saved_for_relink=$lt_variables_saved_for_relink
31078
31079 # Do we need the "lib" prefix for modules?
31080 need_lib_prefix=$need_lib_prefix
31081
31082 # Do we need a version for libraries?
31083 need_version=$need_version
31084
31085 # Library versioning type.
31086 version_type=$version_type
31087
31088 # Shared library runtime path variable.
31089 runpath_var=$runpath_var
31090
31091 # Shared library path variable.
31092 shlibpath_var=$shlibpath_var
31093
31094 # Is shlibpath searched before the hard-coded library search path?
31095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31096
31097 # Format of library name prefix.
31098 libname_spec=$lt_libname_spec
31099
31100 # List of archive names.  First name is the real one, the rest are links.
31101 # The last name is the one that the linker finds with -lNAME
31102 library_names_spec=$lt_library_names_spec
31103
31104 # The coded name of the library, if different from the real name.
31105 soname_spec=$lt_soname_spec
31106
31107 # Command to use after installation of a shared archive.
31108 postinstall_cmds=$lt_postinstall_cmds
31109
31110 # Command to use after uninstallation of a shared archive.
31111 postuninstall_cmds=$lt_postuninstall_cmds
31112
31113 # Commands used to finish a libtool library installation in a directory.
31114 finish_cmds=$lt_finish_cmds
31115
31116 # As "finish_cmds", except a single script fragment to be evaled but
31117 # not shown.
31118 finish_eval=$lt_finish_eval
31119
31120 # Whether we should hardcode library paths into libraries.
31121 hardcode_into_libs=$hardcode_into_libs
31122
31123 # Compile-time system search path for libraries.
31124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31125
31126 # Run-time system search path for libraries.
31127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31128
31129 # Whether dlopen is supported.
31130 dlopen_support=$enable_dlopen
31131
31132 # Whether dlopen of programs is supported.
31133 dlopen_self=$enable_dlopen_self
31134
31135 # Whether dlopen of statically linked programs is supported.
31136 dlopen_self_static=$enable_dlopen_self_static
31137
31138 # Commands to strip libraries.
31139 old_striplib=$lt_old_striplib
31140 striplib=$lt_striplib
31141
31142
31143 # The linker used to build libraries.
31144 LD=$lt_LD
31145
31146 # Commands used to build an old-style archive.
31147 old_archive_cmds=$lt_old_archive_cmds
31148
31149 # A language specific compiler.
31150 CC=$lt_compiler
31151
31152 # Is the compiler the GNU compiler?
31153 with_gcc=$GCC
31154
31155 # Compiler flag to turn off builtin functions.
31156 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31157
31158 # How to pass a linker flag through the compiler.
31159 wl=$lt_lt_prog_compiler_wl
31160
31161 # Additional compiler flags for building library objects.
31162 pic_flag=$lt_lt_prog_compiler_pic
31163
31164 # Compiler flag to prevent dynamic linking.
31165 link_static_flag=$lt_lt_prog_compiler_static
31166
31167 # Does compiler simultaneously support -c and -o options?
31168 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31169
31170 # Whether or not to add -lc for building shared libraries.
31171 build_libtool_need_lc=$archive_cmds_need_lc
31172
31173 # Whether or not to disallow shared libs when runtime libs are static.
31174 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31175
31176 # Compiler flag to allow reflexive dlopens.
31177 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31178
31179 # Compiler flag to generate shared objects directly from archives.
31180 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31181
31182 # Whether the compiler copes with passing no objects directly.
31183 compiler_needs_object=$lt_compiler_needs_object
31184
31185 # Create an old-style archive from a shared archive.
31186 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31187
31188 # Create a temporary old-style archive to link instead of a shared archive.
31189 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31190
31191 # Commands used to build a shared archive.
31192 archive_cmds=$lt_archive_cmds
31193 archive_expsym_cmds=$lt_archive_expsym_cmds
31194
31195 # Commands used to build a loadable module if different from building
31196 # a shared archive.
31197 module_cmds=$lt_module_cmds
31198 module_expsym_cmds=$lt_module_expsym_cmds
31199
31200 # Whether we are building with GNU ld or not.
31201 with_gnu_ld=$lt_with_gnu_ld
31202
31203 # Flag that allows shared libraries with undefined symbols to be built.
31204 allow_undefined_flag=$lt_allow_undefined_flag
31205
31206 # Flag that enforces no undefined symbols.
31207 no_undefined_flag=$lt_no_undefined_flag
31208
31209 # Flag to hardcode \$libdir into a binary during linking.
31210 # This must work even if \$libdir does not exist
31211 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31212
31213 # If ld is used when linking, flag to hardcode \$libdir into a binary
31214 # during linking.  This must work even if \$libdir does not exist.
31215 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31216
31217 # Whether we need a single "-rpath" flag with a separated argument.
31218 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31219
31220 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31221 # DIR into the resulting binary.
31222 hardcode_direct=$hardcode_direct
31223
31224 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31225 # DIR into the resulting binary and the resulting library dependency is
31226 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31227 # library is relocated.
31228 hardcode_direct_absolute=$hardcode_direct_absolute
31229
31230 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31231 # into the resulting binary.
31232 hardcode_minus_L=$hardcode_minus_L
31233
31234 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31235 # into the resulting binary.
31236 hardcode_shlibpath_var=$hardcode_shlibpath_var
31237
31238 # Set to "yes" if building a shared library automatically hardcodes DIR
31239 # into the library and all subsequent libraries and executables linked
31240 # against it.
31241 hardcode_automatic=$hardcode_automatic
31242
31243 # Set to yes if linker adds runtime paths of dependent libraries
31244 # to runtime path list.
31245 inherit_rpath=$inherit_rpath
31246
31247 # Whether libtool must link a program against all its dependency libraries.
31248 link_all_deplibs=$link_all_deplibs
31249
31250 # Fix the shell variable \$srcfile for the compiler.
31251 fix_srcfile_path=$lt_fix_srcfile_path
31252
31253 # Set to "yes" if exported symbols are required.
31254 always_export_symbols=$always_export_symbols
31255
31256 # The commands to list exported symbols.
31257 export_symbols_cmds=$lt_export_symbols_cmds
31258
31259 # Symbols that should not be listed in the preloaded symbols.
31260 exclude_expsyms=$lt_exclude_expsyms
31261
31262 # Symbols that must always be exported.
31263 include_expsyms=$lt_include_expsyms
31264
31265 # Commands necessary for linking programs (against libraries) with templates.
31266 prelink_cmds=$lt_prelink_cmds
31267
31268 # Specify filename containing input files.
31269 file_list_spec=$lt_file_list_spec
31270
31271 # How to hardcode a shared library path into an executable.
31272 hardcode_action=$hardcode_action
31273
31274 # The directories searched by this compiler when creating a shared library.
31275 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31276
31277 # Dependencies to place before and after the objects being linked to
31278 # create a shared library.
31279 predep_objects=$lt_predep_objects
31280 postdep_objects=$lt_postdep_objects
31281 predeps=$lt_predeps
31282 postdeps=$lt_postdeps
31283
31284 # The library search path used internally by the compiler when linking
31285 # a shared library.
31286 compiler_lib_search_path=$lt_compiler_lib_search_path
31287
31288 # ### END LIBTOOL CONFIG
31289
31290 _LT_EOF
31291
31292   case $host_os in
31293   aix3*)
31294     cat <<\_LT_EOF >> "$cfgfile"
31295 # AIX sometimes has problems with the GCC collect2 program.  For some
31296 # reason, if we set the COLLECT_NAMES environment variable, the problems
31297 # vanish in a puff of smoke.
31298 if test "X${COLLECT_NAMES+set}" != Xset; then
31299   COLLECT_NAMES=
31300   export COLLECT_NAMES
31301 fi
31302 _LT_EOF
31303     ;;
31304   esac
31305
31306
31307 ltmain="$ac_aux_dir/ltmain.sh"
31308
31309
31310   # We use sed instead of cat because bash on DJGPP gets confused if
31311   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31312   # text mode, it properly converts lines to CR/LF.  This bash problem
31313   # is reportedly fixed, but why not run on old versions too?
31314   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31315     || (rm -f "$cfgfile"; exit 1)
31316
31317   case $xsi_shell in
31318   yes)
31319     cat << \_LT_EOF >> "$cfgfile"
31320
31321 # func_dirname file append nondir_replacement
31322 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31323 # otherwise set result to NONDIR_REPLACEMENT.
31324 func_dirname ()
31325 {
31326   case ${1} in
31327     */*) func_dirname_result="${1%/*}${2}" ;;
31328     *  ) func_dirname_result="${3}" ;;
31329   esac
31330 }
31331
31332 # func_basename file
31333 func_basename ()
31334 {
31335   func_basename_result="${1##*/}"
31336 }
31337
31338 # func_dirname_and_basename file append nondir_replacement
31339 # perform func_basename and func_dirname in a single function
31340 # call:
31341 #   dirname:  Compute the dirname of FILE.  If nonempty,
31342 #             add APPEND to the result, otherwise set result
31343 #             to NONDIR_REPLACEMENT.
31344 #             value returned in "$func_dirname_result"
31345 #   basename: Compute filename of FILE.
31346 #             value retuned in "$func_basename_result"
31347 # Implementation must be kept synchronized with func_dirname
31348 # and func_basename. For efficiency, we do not delegate to
31349 # those functions but instead duplicate the functionality here.
31350 func_dirname_and_basename ()
31351 {
31352   case ${1} in
31353     */*) func_dirname_result="${1%/*}${2}" ;;
31354     *  ) func_dirname_result="${3}" ;;
31355   esac
31356   func_basename_result="${1##*/}"
31357 }
31358
31359 # func_stripname prefix suffix name
31360 # strip PREFIX and SUFFIX off of NAME.
31361 # PREFIX and SUFFIX must not contain globbing or regex special
31362 # characters, hashes, percent signs, but SUFFIX may contain a leading
31363 # dot (in which case that matches only a dot).
31364 func_stripname ()
31365 {
31366   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31367   # positional parameters, so assign one to ordinary parameter first.
31368   func_stripname_result=${3}
31369   func_stripname_result=${func_stripname_result#"${1}"}
31370   func_stripname_result=${func_stripname_result%"${2}"}
31371 }
31372
31373 # func_opt_split
31374 func_opt_split ()
31375 {
31376   func_opt_split_opt=${1%%=*}
31377   func_opt_split_arg=${1#*=}
31378 }
31379
31380 # func_lo2o object
31381 func_lo2o ()
31382 {
31383   case ${1} in
31384     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31385     *)    func_lo2o_result=${1} ;;
31386   esac
31387 }
31388
31389 # func_xform libobj-or-source
31390 func_xform ()
31391 {
31392   func_xform_result=${1%.*}.lo
31393 }
31394
31395 # func_arith arithmetic-term...
31396 func_arith ()
31397 {
31398   func_arith_result=$(( $* ))
31399 }
31400
31401 # func_len string
31402 # STRING may not start with a hyphen.
31403 func_len ()
31404 {
31405   func_len_result=${#1}
31406 }
31407
31408 _LT_EOF
31409     ;;
31410   *) # Bourne compatible functions.
31411     cat << \_LT_EOF >> "$cfgfile"
31412
31413 # func_dirname file append nondir_replacement
31414 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31415 # otherwise set result to NONDIR_REPLACEMENT.
31416 func_dirname ()
31417 {
31418   # Extract subdirectory from the argument.
31419   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31420   if test "X$func_dirname_result" = "X${1}"; then
31421     func_dirname_result="${3}"
31422   else
31423     func_dirname_result="$func_dirname_result${2}"
31424   fi
31425 }
31426
31427 # func_basename file
31428 func_basename ()
31429 {
31430   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31431 }
31432
31433
31434 # func_stripname prefix suffix name
31435 # strip PREFIX and SUFFIX off of NAME.
31436 # PREFIX and SUFFIX must not contain globbing or regex special
31437 # characters, hashes, percent signs, but SUFFIX may contain a leading
31438 # dot (in which case that matches only a dot).
31439 # func_strip_suffix prefix name
31440 func_stripname ()
31441 {
31442   case ${2} in
31443     .*) func_stripname_result=`$ECHO "X${3}" \
31444            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31445     *)  func_stripname_result=`$ECHO "X${3}" \
31446            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31447   esac
31448 }
31449
31450 # sed scripts:
31451 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31452 my_sed_long_arg='1s/^-[^=]*=//'
31453
31454 # func_opt_split
31455 func_opt_split ()
31456 {
31457   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31458   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31459 }
31460
31461 # func_lo2o object
31462 func_lo2o ()
31463 {
31464   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31465 }
31466
31467 # func_xform libobj-or-source
31468 func_xform ()
31469 {
31470   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31471 }
31472
31473 # func_arith arithmetic-term...
31474 func_arith ()
31475 {
31476   func_arith_result=`expr "$@"`
31477 }
31478
31479 # func_len string
31480 # STRING may not start with a hyphen.
31481 func_len ()
31482 {
31483   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31484 }
31485
31486 _LT_EOF
31487 esac
31488
31489 case $lt_shell_append in
31490   yes)
31491     cat << \_LT_EOF >> "$cfgfile"
31492
31493 # func_append var value
31494 # Append VALUE to the end of shell variable VAR.
31495 func_append ()
31496 {
31497   eval "$1+=\$2"
31498 }
31499 _LT_EOF
31500     ;;
31501   *)
31502     cat << \_LT_EOF >> "$cfgfile"
31503
31504 # func_append var value
31505 # Append VALUE to the end of shell variable VAR.
31506 func_append ()
31507 {
31508   eval "$1=\$$1\$2"
31509 }
31510
31511 _LT_EOF
31512     ;;
31513   esac
31514
31515
31516   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31517     || (rm -f "$cfgfile"; exit 1)
31518
31519   mv -f "$cfgfile" "$ofile" ||
31520     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31521   chmod +x "$ofile"
31522
31523
31524     cat <<_LT_EOF >> "$ofile"
31525
31526 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31527
31528 # The linker used to build libraries.
31529 LD=$lt_LD_CXX
31530
31531 # Commands used to build an old-style archive.
31532 old_archive_cmds=$lt_old_archive_cmds_CXX
31533
31534 # A language specific compiler.
31535 CC=$lt_compiler_CXX
31536
31537 # Is the compiler the GNU compiler?
31538 with_gcc=$GCC_CXX
31539
31540 # Compiler flag to turn off builtin functions.
31541 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31542
31543 # How to pass a linker flag through the compiler.
31544 wl=$lt_lt_prog_compiler_wl_CXX
31545
31546 # Additional compiler flags for building library objects.
31547 pic_flag=$lt_lt_prog_compiler_pic_CXX
31548
31549 # Compiler flag to prevent dynamic linking.
31550 link_static_flag=$lt_lt_prog_compiler_static_CXX
31551
31552 # Does compiler simultaneously support -c and -o options?
31553 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31554
31555 # Whether or not to add -lc for building shared libraries.
31556 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31557
31558 # Whether or not to disallow shared libs when runtime libs are static.
31559 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31560
31561 # Compiler flag to allow reflexive dlopens.
31562 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31563
31564 # Compiler flag to generate shared objects directly from archives.
31565 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31566
31567 # Whether the compiler copes with passing no objects directly.
31568 compiler_needs_object=$lt_compiler_needs_object_CXX
31569
31570 # Create an old-style archive from a shared archive.
31571 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31572
31573 # Create a temporary old-style archive to link instead of a shared archive.
31574 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31575
31576 # Commands used to build a shared archive.
31577 archive_cmds=$lt_archive_cmds_CXX
31578 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31579
31580 # Commands used to build a loadable module if different from building
31581 # a shared archive.
31582 module_cmds=$lt_module_cmds_CXX
31583 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31584
31585 # Whether we are building with GNU ld or not.
31586 with_gnu_ld=$lt_with_gnu_ld_CXX
31587
31588 # Flag that allows shared libraries with undefined symbols to be built.
31589 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31590
31591 # Flag that enforces no undefined symbols.
31592 no_undefined_flag=$lt_no_undefined_flag_CXX
31593
31594 # Flag to hardcode \$libdir into a binary during linking.
31595 # This must work even if \$libdir does not exist
31596 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31597
31598 # If ld is used when linking, flag to hardcode \$libdir into a binary
31599 # during linking.  This must work even if \$libdir does not exist.
31600 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31601
31602 # Whether we need a single "-rpath" flag with a separated argument.
31603 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31604
31605 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31606 # DIR into the resulting binary.
31607 hardcode_direct=$hardcode_direct_CXX
31608
31609 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31610 # DIR into the resulting binary and the resulting library dependency is
31611 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31612 # library is relocated.
31613 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31614
31615 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31616 # into the resulting binary.
31617 hardcode_minus_L=$hardcode_minus_L_CXX
31618
31619 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31620 # into the resulting binary.
31621 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31622
31623 # Set to "yes" if building a shared library automatically hardcodes DIR
31624 # into the library and all subsequent libraries and executables linked
31625 # against it.
31626 hardcode_automatic=$hardcode_automatic_CXX
31627
31628 # Set to yes if linker adds runtime paths of dependent libraries
31629 # to runtime path list.
31630 inherit_rpath=$inherit_rpath_CXX
31631
31632 # Whether libtool must link a program against all its dependency libraries.
31633 link_all_deplibs=$link_all_deplibs_CXX
31634
31635 # Fix the shell variable \$srcfile for the compiler.
31636 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31637
31638 # Set to "yes" if exported symbols are required.
31639 always_export_symbols=$always_export_symbols_CXX
31640
31641 # The commands to list exported symbols.
31642 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31643
31644 # Symbols that should not be listed in the preloaded symbols.
31645 exclude_expsyms=$lt_exclude_expsyms_CXX
31646
31647 # Symbols that must always be exported.
31648 include_expsyms=$lt_include_expsyms_CXX
31649
31650 # Commands necessary for linking programs (against libraries) with templates.
31651 prelink_cmds=$lt_prelink_cmds_CXX
31652
31653 # Specify filename containing input files.
31654 file_list_spec=$lt_file_list_spec_CXX
31655
31656 # How to hardcode a shared library path into an executable.
31657 hardcode_action=$hardcode_action_CXX
31658
31659 # The directories searched by this compiler when creating a shared library.
31660 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31661
31662 # Dependencies to place before and after the objects being linked to
31663 # create a shared library.
31664 predep_objects=$lt_predep_objects_CXX
31665 postdep_objects=$lt_postdep_objects_CXX
31666 predeps=$lt_predeps_CXX
31667 postdeps=$lt_postdeps_CXX
31668
31669 # The library search path used internally by the compiler when linking
31670 # a shared library.
31671 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31672
31673 # ### END LIBTOOL TAG CONFIG: CXX
31674 _LT_EOF
31675
31676
31677     cat <<_LT_EOF >> "$ofile"
31678
31679 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31680
31681 # The linker used to build libraries.
31682 LD=$lt_LD_GCJ
31683
31684 # Commands used to build an old-style archive.
31685 old_archive_cmds=$lt_old_archive_cmds_GCJ
31686
31687 # A language specific compiler.
31688 CC=$lt_compiler_GCJ
31689
31690 # Is the compiler the GNU compiler?
31691 with_gcc=$GCC_GCJ
31692
31693 # Compiler flag to turn off builtin functions.
31694 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31695
31696 # How to pass a linker flag through the compiler.
31697 wl=$lt_lt_prog_compiler_wl_GCJ
31698
31699 # Additional compiler flags for building library objects.
31700 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31701
31702 # Compiler flag to prevent dynamic linking.
31703 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31704
31705 # Does compiler simultaneously support -c and -o options?
31706 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31707
31708 # Whether or not to add -lc for building shared libraries.
31709 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31710
31711 # Whether or not to disallow shared libs when runtime libs are static.
31712 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31713
31714 # Compiler flag to allow reflexive dlopens.
31715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31716
31717 # Compiler flag to generate shared objects directly from archives.
31718 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31719
31720 # Whether the compiler copes with passing no objects directly.
31721 compiler_needs_object=$lt_compiler_needs_object_GCJ
31722
31723 # Create an old-style archive from a shared archive.
31724 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31725
31726 # Create a temporary old-style archive to link instead of a shared archive.
31727 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31728
31729 # Commands used to build a shared archive.
31730 archive_cmds=$lt_archive_cmds_GCJ
31731 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31732
31733 # Commands used to build a loadable module if different from building
31734 # a shared archive.
31735 module_cmds=$lt_module_cmds_GCJ
31736 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31737
31738 # Whether we are building with GNU ld or not.
31739 with_gnu_ld=$lt_with_gnu_ld_GCJ
31740
31741 # Flag that allows shared libraries with undefined symbols to be built.
31742 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31743
31744 # Flag that enforces no undefined symbols.
31745 no_undefined_flag=$lt_no_undefined_flag_GCJ
31746
31747 # Flag to hardcode \$libdir into a binary during linking.
31748 # This must work even if \$libdir does not exist
31749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31750
31751 # If ld is used when linking, flag to hardcode \$libdir into a binary
31752 # during linking.  This must work even if \$libdir does not exist.
31753 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31754
31755 # Whether we need a single "-rpath" flag with a separated argument.
31756 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31757
31758 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31759 # DIR into the resulting binary.
31760 hardcode_direct=$hardcode_direct_GCJ
31761
31762 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31763 # DIR into the resulting binary and the resulting library dependency is
31764 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31765 # library is relocated.
31766 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31767
31768 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31769 # into the resulting binary.
31770 hardcode_minus_L=$hardcode_minus_L_GCJ
31771
31772 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31773 # into the resulting binary.
31774 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31775
31776 # Set to "yes" if building a shared library automatically hardcodes DIR
31777 # into the library and all subsequent libraries and executables linked
31778 # against it.
31779 hardcode_automatic=$hardcode_automatic_GCJ
31780
31781 # Set to yes if linker adds runtime paths of dependent libraries
31782 # to runtime path list.
31783 inherit_rpath=$inherit_rpath_GCJ
31784
31785 # Whether libtool must link a program against all its dependency libraries.
31786 link_all_deplibs=$link_all_deplibs_GCJ
31787
31788 # Fix the shell variable \$srcfile for the compiler.
31789 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31790
31791 # Set to "yes" if exported symbols are required.
31792 always_export_symbols=$always_export_symbols_GCJ
31793
31794 # The commands to list exported symbols.
31795 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31796
31797 # Symbols that should not be listed in the preloaded symbols.
31798 exclude_expsyms=$lt_exclude_expsyms_GCJ
31799
31800 # Symbols that must always be exported.
31801 include_expsyms=$lt_include_expsyms_GCJ
31802
31803 # Commands necessary for linking programs (against libraries) with templates.
31804 prelink_cmds=$lt_prelink_cmds_GCJ
31805
31806 # Specify filename containing input files.
31807 file_list_spec=$lt_file_list_spec_GCJ
31808
31809 # How to hardcode a shared library path into an executable.
31810 hardcode_action=$hardcode_action_GCJ
31811
31812 # The directories searched by this compiler when creating a shared library.
31813 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31814
31815 # Dependencies to place before and after the objects being linked to
31816 # create a shared library.
31817 predep_objects=$lt_predep_objects_GCJ
31818 postdep_objects=$lt_postdep_objects_GCJ
31819 predeps=$lt_predeps_GCJ
31820 postdeps=$lt_postdeps_GCJ
31821
31822 # The library search path used internally by the compiler when linking
31823 # a shared library.
31824 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31825
31826 # ### END LIBTOOL TAG CONFIG: GCJ
31827 _LT_EOF
31828
31829  ;;
31830   esac
31831 done
31832 _ACEOF
31833
31834 cat >>$CONFIG_STATUS <<\_ACEOF
31835
31836 { (exit 0); exit 0; }
31837 _ACEOF
31838 chmod +x $CONFIG_STATUS
31839 ac_clean_files=$ac_clean_files_save
31840
31841
31842 # configure is writing to config.log, and then calls config.status.
31843 # config.status does its own redirection, appending to config.log.
31844 # Unfortunately, on DOS this fails, as config.log is still kept open
31845 # by configure, so config.status won't be able to write to it; its
31846 # output is simply discarded.  So we exec the FD to /dev/null,
31847 # effectively closing config.log, so it can be properly (re)opened and
31848 # appended to by config.status.  When coming back to configure, we
31849 # need to make the FD available again.
31850 if test "$no_create" != yes; then
31851   ac_cs_success=:
31852   ac_config_status_args=
31853   test "$silent" = yes &&
31854     ac_config_status_args="$ac_config_status_args --quiet"
31855   exec 5>/dev/null
31856   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31857   exec 5>>config.log
31858   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31859   # would make configure fail if this is the last instruction.
31860   $ac_cs_success || { (exit 1); exit 1; }
31861 fi
31862
31863 #
31864 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31865 #
31866 if test "$no_recursion" != yes; then
31867
31868   # Remove --cache-file and --srcdir arguments so they do not pile up.
31869   ac_sub_configure_args=
31870   ac_prev=
31871   eval "set x $ac_configure_args"
31872   shift
31873   for ac_arg
31874   do
31875     if test -n "$ac_prev"; then
31876       ac_prev=
31877       continue
31878     fi
31879     case $ac_arg in
31880     -cache-file | --cache-file | --cache-fil | --cache-fi \
31881     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31882       ac_prev=cache_file ;;
31883     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31884     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31885     | --c=*)
31886       ;;
31887     --config-cache | -C)
31888       ;;
31889     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31890       ac_prev=srcdir ;;
31891     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31892       ;;
31893     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31894       ac_prev=prefix ;;
31895     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31896       ;;
31897     *)
31898       case $ac_arg in
31899       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31900       esac
31901       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31902     esac
31903   done
31904
31905   # Always prepend --prefix to ensure using the same prefix
31906   # in subdir configurations.
31907   ac_arg="--prefix=$prefix"
31908   case $ac_arg in
31909   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31910   esac
31911   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31912
31913   ac_popdir=`pwd`
31914   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31915
31916     # Do not complain, so a configure script can configure whichever
31917     # parts of a large source tree are present.
31918     test -d "$srcdir/$ac_dir" || continue
31919
31920     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31921 echo "$as_me: configuring in $ac_dir" >&6;}
31922     { if $as_mkdir_p; then
31923     mkdir -p "$ac_dir"
31924   else
31925     as_dir="$ac_dir"
31926     as_dirs=
31927     while test ! -d "$as_dir"; do
31928       as_dirs="$as_dir $as_dirs"
31929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31931          X"$as_dir" : 'X\(//\)[^/]' \| \
31932          X"$as_dir" : 'X\(//\)$' \| \
31933          X"$as_dir" : 'X\(/\)' \| \
31934          .     : '\(.\)' 2>/dev/null ||
31935 echo X"$as_dir" |
31936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31938           /^X\(\/\/\)$/{ s//\1/; q; }
31939           /^X\(\/\).*/{ s//\1/; q; }
31940           s/.*/./; q'`
31941     done
31942     test ! -n "$as_dirs" || mkdir $as_dirs
31943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31945    { (exit 1); exit 1; }; }; }
31946
31947     ac_builddir=.
31948
31949 if test "$ac_dir" != .; then
31950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31951   # A "../" for each directory in $ac_dir_suffix.
31952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31953 else
31954   ac_dir_suffix= ac_top_builddir=
31955 fi
31956
31957 case $srcdir in
31958   .)  # No --srcdir option.  We are building in place.
31959     ac_srcdir=.
31960     if test -z "$ac_top_builddir"; then
31961        ac_top_srcdir=.
31962     else
31963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31964     fi ;;
31965   [\\/]* | ?:[\\/]* )  # Absolute path.
31966     ac_srcdir=$srcdir$ac_dir_suffix;
31967     ac_top_srcdir=$srcdir ;;
31968   *) # Relative path.
31969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31971 esac
31972
31973 # Do not use `cd foo && pwd` to compute absolute paths, because
31974 # the directories may not exist.
31975 case `pwd` in
31976 .) ac_abs_builddir="$ac_dir";;
31977 *)
31978   case "$ac_dir" in
31979   .) ac_abs_builddir=`pwd`;;
31980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31982   esac;;
31983 esac
31984 case $ac_abs_builddir in
31985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31986 *)
31987   case ${ac_top_builddir}. in
31988   .) ac_abs_top_builddir=$ac_abs_builddir;;
31989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31991   esac;;
31992 esac
31993 case $ac_abs_builddir in
31994 .) ac_abs_srcdir=$ac_srcdir;;
31995 *)
31996   case $ac_srcdir in
31997   .) ac_abs_srcdir=$ac_abs_builddir;;
31998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32000   esac;;
32001 esac
32002 case $ac_abs_builddir in
32003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32004 *)
32005   case $ac_top_srcdir in
32006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32009   esac;;
32010 esac
32011
32012
32013     cd "$ac_dir"
32014
32015     # Check for guested configure; otherwise get Cygnus style configure.
32016     if test -f "$ac_srcdir/configure.gnu"; then
32017       ac_sub_configure=$ac_srcdir/configure.gnu
32018     elif test -f "$ac_srcdir/configure"; then
32019       ac_sub_configure=$ac_srcdir/configure
32020     elif test -f "$ac_srcdir/configure.in"; then
32021       # This should be Cygnus configure.
32022       ac_sub_configure=$ac_aux_dir/configure
32023     else
32024       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32025 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32026       ac_sub_configure=
32027     fi
32028
32029     # The recursion is here.
32030     if test -n "$ac_sub_configure"; then
32031       # Make the cache file name correct relative to the subdirectory.
32032       case $cache_file in
32033       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32034       *) # Relative path.
32035         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
32036       esac
32037
32038       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32039 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32040       # The eval makes quoting arguments work.
32041       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
32042            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
32043         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
32044 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32045    { (exit 1); exit 1; }; }
32046     fi
32047
32048     cd "$ac_popdir"
32049   done
32050 fi
32051