objc.exp (objc_libgcc_s_path): Set objc_libgcc_s_path instead of appending to it.
[official-gcc.git] / libjava / configure
blob1e1ecc83452ef7885b892f229384289b8d7a6760
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
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 ## --------------------- ##
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
22 DUALCASE=1; export DUALCASE # for MKS sh
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
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
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
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
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'`
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
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=:
96 rm -f conf$$.sh
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
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
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
154 esac
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 '
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
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
225 as_executable_p="test -f"
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'"
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'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
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','`
253 esac
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
262 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
275 _LT_EOF
276 exit 0
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
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
293 done
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
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'
305 # So, first we look for a working echo in the user's PATH.
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
317 done
318 IFS="$lt_save_ifs"
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
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=:
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
366 prev="$cmd"
367 done
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
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"
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`
398 exec 6>&1
401 # Initializations.
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}
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}
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=''
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"
461 ac_subdirs_all="$ac_subdirs_all classpath libltdl"
462 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir multi_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs JAVA_MAINTAINER_MODE_TRUE JAVA_MAINTAINER_MODE_FALSE CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB JAR ZIP UNZIP MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC LIBGCJ_LD_SYMBOLIC_FUNCTIONS LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE X_AWT_TRUE X_AWT_FALSE GCJ_FOR_ECJX GCJH host_exeext INCLTDL LIBLTDL DIRLTDL LIBTOOL SED EGREP FGREP GREP DUMPBIN ac_ct_DUMPBIN NM lt_ECHO CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CPP_set=${CPP+set}
904 ac_env_CPP_value=$CPP
905 ac_cv_env_CPP_set=${CPP+set}
906 ac_cv_env_CPP_value=$CPP
907 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908 ac_env_CPPFLAGS_value=$CPPFLAGS
909 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911 ac_env_CXX_set=${CXX+set}
912 ac_env_CXX_value=$CXX
913 ac_cv_env_CXX_set=${CXX+set}
914 ac_cv_env_CXX_value=$CXX
915 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916 ac_env_CXXFLAGS_value=$CXXFLAGS
917 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CXXCPP_set=${CXXCPP+set}
924 ac_env_CXXCPP_value=$CXXCPP
925 ac_cv_env_CXXCPP_set=${CXXCPP+set}
926 ac_cv_env_CXXCPP_value=$CXXCPP
929 # Report the --help message.
931 if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
935 \`configure' configures libjava version-unused to adapt to many kinds of systems.
937 Usage: $0 [OPTION]... [VAR=VALUE]...
939 To assign environment variables (e.g., CC, CFLAGS...), specify them as
940 VAR=VALUE. See below for descriptions of some of the useful variables.
942 Defaults for the options are specified in brackets.
944 Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
955 _ACEOF
957 cat <<_ACEOF
958 Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
960 [$ac_default_prefix]
961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
962 [PREFIX]
964 By default, \`make install' will install all the files in
965 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967 for instance \`--prefix=\$HOME'.
969 For better control, use the options below.
971 Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
984 _ACEOF
986 cat <<\_ACEOF
988 Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
993 X features:
994 --x-includes=DIR X include files are in DIR
995 --x-libraries=DIR X library files are in DIR
997 System types:
998 --build=BUILD configure for building on BUILD [guessed]
999 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1000 --target=TARGET configure for building compilers for TARGET [HOST]
1001 _ACEOF
1004 if test -n "$ac_init_help"; then
1005 case $ac_init_help in
1006 short | recursive ) echo "Configuration of libjava version-unused:";;
1007 esac
1008 cat <<\_ACEOF
1010 Optional Features:
1011 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1012 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1013 --enable-multilib build many library versions (default)
1014 --enable-version-specific-runtime-libs
1015 specify that runtime libraries should be installed
1016 in a compiler-specific directory
1017 --enable-plugin build gcjwebplugin web browser plugin
1018 --enable-gconf-peer compile GConf native peers for util.preferences
1019 --enable-java-maintainer-mode
1020 allow rebuilding of .class and .h files
1021 --disable-dependency-tracking speeds up one-time build
1022 --enable-dependency-tracking do not reject slow dependency extractors
1023 --enable-maintainer-mode enable make rules and dependencies not useful
1024 (and sometimes confusing) to the casual installer
1025 --enable-libgcj-debug enable runtime debugging code
1026 --enable-java-awt list of AWT peer implementations to be built
1027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
1033 --disable-libtool-lock avoid locking (might break parallel builds)
1034 --disable-getenv-properties
1035 don't set system properties from GCJ_PROPERTIES
1036 --enable-hash-synchronization
1037 use global hash table for monitor locks
1038 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1039 libgcj
1040 --enable-gc-debug include full support for pointer backtracing etc.
1041 --enable-interpreter enable interpreter
1042 --enable-sjlj-exceptions
1043 force use of builtin_setjmp for exceptions
1044 --disable-java-net disable java.net
1045 --disable-jvmpi disable JVMPI support
1046 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1047 --disable-rpath do not hardcode runtime library paths
1048 --enable-tls Use thread-local storage [default=yes]
1050 Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-build-libsubdir=DIR Directory where to find libraries for build system
1054 --with-target-subdir=SUBDIR
1055 configure in a subdirectory
1056 --with-cross-host=HOST configure with a cross compiler from HOST
1057 --with-newlib configure with newlib
1058 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1059 --with-pic try to use only PIC/non-PIC objects [default=use
1060 both]
1061 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1062 --with-ecj-jar=FILE use preinstalled ecj jar
1063 --with-java-home=DIRECTORY
1064 value of java.home system property
1065 --with-win32-nlsapi=ansi or unicows or unicode
1066 native MinGW libgcj Win32 OS API (default is ansi)
1067 --without-libffi don't use libffi
1068 --with-ecos enable runtime eCos target support
1069 --with-system-zlib use installed libz
1070 --with-x use the X Window System
1071 --with-gnu-ld assume the C compiler uses GNU ld default=no
1072 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1073 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1075 Some influential environment variables:
1076 CC C compiler command
1077 CFLAGS C compiler flags
1078 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1079 nonstandard directory <lib dir>
1080 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1081 headers in a nonstandard directory <include dir>
1082 CXX C++ compiler command
1083 CXXFLAGS C++ compiler flags
1084 CPP C preprocessor
1085 CXXCPP C++ preprocessor
1087 Use these variables to override the choices made by `configure' or to help
1088 it to find libraries and programs with nonstandard names/locations.
1090 _ACEOF
1093 if test "$ac_init_help" = "recursive"; then
1094 # If there are subdirs, report their specific --help.
1095 ac_popdir=`pwd`
1096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097 test -d $ac_dir || continue
1098 ac_builddir=.
1100 if test "$ac_dir" != .; then
1101 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102 # A "../" for each directory in $ac_dir_suffix.
1103 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105 ac_dir_suffix= ac_top_builddir=
1108 case $srcdir in
1109 .) # No --srcdir option. We are building in place.
1110 ac_srcdir=.
1111 if test -z "$ac_top_builddir"; then
1112 ac_top_srcdir=.
1113 else
1114 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115 fi ;;
1116 [\\/]* | ?:[\\/]* ) # Absolute path.
1117 ac_srcdir=$srcdir$ac_dir_suffix;
1118 ac_top_srcdir=$srcdir ;;
1119 *) # Relative path.
1120 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1129 case "$ac_dir" in
1130 .) ac_abs_builddir=`pwd`;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 case ${ac_top_builddir}. in
1139 .) ac_abs_top_builddir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142 esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1147 case $ac_srcdir in
1148 .) ac_abs_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151 esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 case $ac_top_srcdir in
1157 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 esac;;
1161 esac
1163 cd $ac_dir
1164 # Check for guested configure; otherwise get Cygnus style configure.
1165 if test -f $ac_srcdir/configure.gnu; then
1166 echo
1167 $SHELL $ac_srcdir/configure.gnu --help=recursive
1168 elif test -f $ac_srcdir/configure; then
1169 echo
1170 $SHELL $ac_srcdir/configure --help=recursive
1171 elif test -f $ac_srcdir/configure.ac ||
1172 test -f $ac_srcdir/configure.in; then
1173 echo
1174 $ac_configure --help
1175 else
1176 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 cd $ac_popdir
1179 done
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184 cat <<\_ACEOF
1185 libjava configure version-unused
1186 generated by GNU Autoconf 2.59
1188 Copyright (C) 2003 Free Software Foundation, Inc.
1189 This configure script is free software; the Free Software Foundation
1190 gives unlimited permission to copy, distribute and modify it.
1191 _ACEOF
1192 exit 0
1194 exec 5>config.log
1195 cat >&5 <<_ACEOF
1196 This file contains any messages produced by compilers while
1197 running configure, to aid debugging if configure makes a mistake.
1199 It was created by libjava $as_me version-unused, which was
1200 generated by GNU Autoconf 2.59. Invocation command line was
1202 $ $0 $@
1204 _ACEOF
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1220 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1221 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1224 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1225 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1226 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1228 _ASUNAME
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1233 IFS=$as_save_IFS
1234 test -z "$as_dir" && as_dir=.
1235 echo "PATH: $as_dir"
1236 done
1238 } >&5
1240 cat >&5 <<_ACEOF
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1247 _ACEOF
1250 # Keep a trace of the command line.
1251 # Strip out --no-create and --no-recursion so they do not pile up.
1252 # Strip out --silent because we don't want to record it for future runs.
1253 # Also quote any args containing shell meta-characters.
1254 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_configure_args=
1256 ac_configure_args0=
1257 ac_configure_args1=
1258 ac_sep=
1259 ac_must_keep_next=false
1260 for ac_pass in 1 2
1262 for ac_arg
1264 case $ac_arg in
1265 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267 | -silent | --silent | --silen | --sile | --sil)
1268 continue ;;
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 esac
1272 case $ac_pass in
1273 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1275 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276 if test $ac_must_keep_next = true; then
1277 ac_must_keep_next=false # Got value, back to normal.
1278 else
1279 case $ac_arg in
1280 *=* | --config-cache | -C | -disable-* | --disable-* \
1281 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283 | -with-* | --with-* | -without-* | --without-* | --x)
1284 case "$ac_configure_args0 " in
1285 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286 esac
1288 -* ) ac_must_keep_next=true ;;
1289 esac
1291 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292 # Get rid of the leading space.
1293 ac_sep=" "
1295 esac
1296 done
1297 done
1298 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1301 # When interrupted or exit'd, cleanup temporary files, and complete
1302 # config.log. We remove comments because anyway the quotes in there
1303 # would cause problems or look ugly.
1304 # WARNING: Be sure not to use single quotes in there, as some shells,
1305 # such as our DU 5.0 friend, will then `close' the trap.
1306 trap 'exit_status=$?
1307 # Save into config.log some information that might help in debugging.
1309 echo
1311 cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316 echo
1317 # The following way of writing the cache mishandles newlines in values,
1319 (set) 2>&1 |
1320 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321 *ac_space=\ *)
1322 sed -n \
1323 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327 sed -n \
1328 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1330 esac;
1332 echo
1334 cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339 echo
1340 for ac_var in $ac_subst_vars
1342 eval ac_val=$`echo $ac_var`
1343 echo "$ac_var='"'"'$ac_val'"'"'"
1344 done | sort
1345 echo
1347 if test -n "$ac_subst_files"; then
1348 cat <<\_ASBOX
1349 ## ------------- ##
1350 ## Output files. ##
1351 ## ------------- ##
1352 _ASBOX
1353 echo
1354 for ac_var in $ac_subst_files
1356 eval ac_val=$`echo $ac_var`
1357 echo "$ac_var='"'"'$ac_val'"'"'"
1358 done | sort
1359 echo
1362 if test -s confdefs.h; then
1363 cat <<\_ASBOX
1364 ## ----------- ##
1365 ## confdefs.h. ##
1366 ## ----------- ##
1367 _ASBOX
1368 echo
1369 sed "/^$/d" confdefs.h | sort
1370 echo
1372 test "$ac_signal" != 0 &&
1373 echo "$as_me: caught signal $ac_signal"
1374 echo "$as_me: exit $exit_status"
1375 } >&5
1376 rm -f core *.core &&
1377 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378 exit $exit_status
1380 for ac_signal in 1 2 13 15; do
1381 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 done
1383 ac_signal=0
1385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1386 rm -rf conftest* confdefs.h
1387 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 echo >confdefs.h
1390 # Predefined preprocessor variables.
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1417 # Let the site file select an alternate cache file if it wants to.
1418 # Prefer explicitly selected file to automatically selected ones.
1419 if test -z "$CONFIG_SITE"; then
1420 if test "x$prefix" != xNONE; then
1421 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422 else
1423 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 for ac_site_file in $CONFIG_SITE; do
1427 if test -r "$ac_site_file"; then
1428 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429 echo "$as_me: loading site script $ac_site_file" >&6;}
1430 sed 's/^/| /' "$ac_site_file" >&5
1431 . "$ac_site_file"
1433 done
1435 if test -r "$cache_file"; then
1436 # Some versions of bash will fail to source /dev/null (special
1437 # files actually), so we avoid doing that.
1438 if test -f "$cache_file"; then
1439 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440 echo "$as_me: loading cache $cache_file" >&6;}
1441 case $cache_file in
1442 [\\/]* | ?:[\\/]* ) . $cache_file;;
1443 *) . ./$cache_file;;
1444 esac
1446 else
1447 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449 >$cache_file
1452 # Check that the precious variables saved in the cache have kept the same
1453 # value.
1454 ac_cache_corrupted=false
1455 for ac_var in `(set) 2>&1 |
1456 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458 eval ac_new_set=\$ac_env_${ac_var}_set
1459 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460 eval ac_new_val="\$ac_env_${ac_var}_value"
1461 case $ac_old_set,$ac_new_set in
1462 set,)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,set)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,);;
1472 if test "x$ac_old_val" != "x$ac_new_val"; then
1473 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1476 echo "$as_me: former value: $ac_old_val" >&2;}
1477 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1478 echo "$as_me: current value: $ac_new_val" >&2;}
1479 ac_cache_corrupted=:
1480 fi;;
1481 esac
1482 # Pass precious variables to config.status.
1483 if test "$ac_new_set" = set; then
1484 case $ac_new_val in
1485 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487 *) ac_arg=$ac_var=$ac_new_val ;;
1488 esac
1489 case " $ac_configure_args " in
1490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1491 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492 esac
1494 done
1495 if $ac_cache_corrupted; then
1496 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500 { (exit 1); exit 1; }; }
1503 ac_ext=c
1504 ac_cpp='$CPP $CPPFLAGS'
1505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538 ac_aux_dir=
1539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c"
1543 break
1544 elif test -f $ac_dir/install.sh; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install.sh -c"
1547 break
1548 elif test -f $ac_dir/shtool; then
1549 ac_aux_dir=$ac_dir
1550 ac_install_sh="$ac_aux_dir/shtool install -c"
1551 break
1553 done
1554 if test -z "$ac_aux_dir"; then
1555 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557 { (exit 1); exit 1; }; }
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 # Make sure we can run config.sub.
1564 $ac_config_sub sun4 >/dev/null 2>&1 ||
1565 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567 { (exit 1); exit 1; }; }
1569 echo "$as_me:$LINENO: checking build system type" >&5
1570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571 if test "${ac_cv_build+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574 ac_cv_build_alias=$build_alias
1575 test -z "$ac_cv_build_alias" &&
1576 ac_cv_build_alias=`$ac_config_guess`
1577 test -z "$ac_cv_build_alias" &&
1578 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580 { (exit 1); exit 1; }; }
1581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584 { (exit 1); exit 1; }; }
1587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588 echo "${ECHO_T}$ac_cv_build" >&6
1589 build=$ac_cv_build
1590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595 case ${build_alias} in
1596 "") build_noncanonical=${build} ;;
1597 *) build_noncanonical=${build_alias} ;;
1598 esac
1600 case ${host_alias} in
1601 "") host_noncanonical=${build_noncanonical} ;;
1602 *) host_noncanonical=${host_alias} ;;
1603 esac
1605 case ${target_alias} in
1606 "") target_noncanonical=${host_noncanonical} ;;
1607 *) target_noncanonical=${target_alias} ;;
1608 esac
1611 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1612 # have matching libraries, they should use host libraries: Makefile.tpl
1613 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1614 # However, they still use the build modules, because the corresponding
1615 # host modules (e.g. bison) are only built for the host when bootstrap
1616 # finishes. So:
1617 # - build_subdir is where we find build modules, and never changes.
1618 # - build_libsubdir is where we find build libraries, and can be overridden.
1620 # Prefix 'build-' so this never conflicts with target_subdir.
1621 build_subdir="build-${build_noncanonical}"
1623 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1624 if test "${with_build_libsubdir+set}" = set; then
1625 withval="$with_build_libsubdir"
1626 build_libsubdir="$withval"
1627 else
1628 build_libsubdir="$build_subdir"
1630 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1631 if ( test $srcdir = . && test -d gcc ) \
1632 || test -d $srcdir/../host-${host_noncanonical}; then
1633 host_subdir="host-${host_noncanonical}"
1634 else
1635 host_subdir=.
1637 # No prefix.
1638 target_subdir=${target_noncanonical}
1641 # We use these options to decide which functions to include.
1643 # Check whether --with-target-subdir or --without-target-subdir was given.
1644 if test "${with_target_subdir+set}" = set; then
1645 withval="$with_target_subdir"
1649 # We may get other options which we don't document:
1650 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1652 # Find the rest of the source tree framework.
1653 # Default to --enable-multilib
1654 # Check whether --enable-multilib or --disable-multilib was given.
1655 if test "${enable_multilib+set}" = set; then
1656 enableval="$enable_multilib"
1657 case "$enableval" in
1658 yes) multilib=yes ;;
1659 no) multilib=no ;;
1660 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1661 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1662 { (exit 1); exit 1; }; } ;;
1663 esac
1664 else
1665 multilib=yes
1668 # We may get other options which we leave undocumented:
1669 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1670 # See config-ml.in if you want the gory details.
1672 if test "$srcdir" = "."; then
1673 if test "$with_target_subdir" != "."; then
1674 multi_basedir="$srcdir/$with_multisrctop../.."
1675 else
1676 multi_basedir="$srcdir/$with_multisrctop.."
1678 else
1679 multi_basedir="$srcdir/.."
1683 # Even if the default multilib is not a cross compilation,
1684 # it may be that some of the other multilibs are.
1685 if test $cross_compiling = no && test $multilib = yes \
1686 && test "x${with_multisubdir}" != x ; then
1687 cross_compiling=maybe
1690 ac_config_commands="$ac_config_commands default-1"
1693 echo "$as_me:$LINENO: checking host system type" >&5
1694 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1695 if test "${ac_cv_host+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1697 else
1698 ac_cv_host_alias=$host_alias
1699 test -z "$ac_cv_host_alias" &&
1700 ac_cv_host_alias=$ac_cv_build_alias
1701 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1702 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1703 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1704 { (exit 1); exit 1; }; }
1707 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1708 echo "${ECHO_T}$ac_cv_host" >&6
1709 host=$ac_cv_host
1710 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1711 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1712 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1715 echo "$as_me:$LINENO: checking target system type" >&5
1716 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1717 if test "${ac_cv_target+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 else
1720 ac_cv_target_alias=$target_alias
1721 test "x$ac_cv_target_alias" = "x" &&
1722 ac_cv_target_alias=$ac_cv_host_alias
1723 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1724 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1725 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1726 { (exit 1); exit 1; }; }
1729 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1730 echo "${ECHO_T}$ac_cv_target" >&6
1731 target=$ac_cv_target
1732 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1733 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1734 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737 # The aliases save the names the user supplied, while $host etc.
1738 # will get canonicalized.
1739 test -n "$target_alias" &&
1740 test "$program_prefix$program_suffix$program_transform_name" = \
1741 NONENONEs,x,x, &&
1742 program_prefix=${target_alias}-
1743 case ${build_alias} in
1744 "") build_noncanonical=${build} ;;
1745 *) build_noncanonical=${build_alias} ;;
1746 esac
1748 case ${target_alias} in
1749 "") target_noncanonical=${host_noncanonical} ;;
1750 *) target_noncanonical=${target_alias} ;;
1751 esac
1756 # This works around the fact that libtool configuration may change LD
1757 # for this particular configuration, but some shells, instead of
1758 # keeping the changes in LD private, export them just because LD is
1759 # exported.
1760 ORIGINAL_LD_FOR_MULTILIBS=$LD
1762 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1763 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1764 LN_S=$as_ln_s
1765 if test "$LN_S" = "ln -s"; then
1766 echo "$as_me:$LINENO: result: yes" >&5
1767 echo "${ECHO_T}yes" >&6
1768 else
1769 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1770 echo "${ECHO_T}no, using $LN_S" >&6
1774 # This works around an automake problem.
1775 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1779 # Check whether --with-cross-host or --without-cross-host was given.
1780 if test "${with_cross_host+set}" = set; then
1781 withval="$with_cross_host"
1786 # Check whether --with-newlib or --without-newlib was given.
1787 if test "${with_newlib+set}" = set; then
1788 withval="$with_newlib"
1792 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1793 if test "${enable_version_specific_runtime_libs+set}" = set; then
1794 enableval="$enable_version_specific_runtime_libs"
1795 case "$enableval" in
1796 yes) version_specific_libs=yes ;;
1797 no) version_specific_libs=no ;;
1798 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1799 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1800 { (exit 1); exit 1; }; };;
1801 esac
1802 else
1803 version_specific_libs=no
1807 # Check whether --enable-plugin or --disable-plugin was given.
1808 if test "${enable_plugin+set}" = set; then
1809 enableval="$enable_plugin"
1810 case "$enableval" in
1811 yes) plugin_enabled=yes ;;
1812 no) plugin_enabled=no ;;
1813 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1814 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1815 { (exit 1); exit 1; }; };;
1816 esac
1817 else
1818 plugin_enabled=no
1822 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1823 if test "${enable_gconf_peer+set}" = set; then
1824 enableval="$enable_gconf_peer"
1825 case "$enableval" in
1826 yes) gconf_enabled=yes ;;
1827 no) gconf_enabled=no ;;
1828 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1829 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1830 { (exit 1); exit 1; }; };;
1831 esac
1832 else
1833 gconf_enabled=no
1837 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1838 if test "${enable_java_maintainer_mode+set}" = set; then
1839 enableval="$enable_java_maintainer_mode"
1844 if test "$enable_java_maintainer_mode" = yes; then
1845 JAVA_MAINTAINER_MODE_TRUE=
1846 JAVA_MAINTAINER_MODE_FALSE='#'
1847 else
1848 JAVA_MAINTAINER_MODE_TRUE='#'
1849 JAVA_MAINTAINER_MODE_FALSE=
1853 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1856 # (1) We use an abnormal CXX (without library references), so we
1857 # must cache it under a different name.
1858 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1859 # the non-multilib-adjusted value will be used in multilibs.
1860 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1861 # (4) As another side effect, automake doesn't automatically include them
1862 # in Makefile.in.
1863 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1864 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1865 # used in later tests. This may not be necessary in libjava; I don't know.
1868 save_CXXFLAGS="$CXXFLAGS"
1869 CXXFLAGS="$CXXFLAGS -fno-builtin"
1870 ac_ext=c
1871 ac_cpp='$CPP $CPPFLAGS'
1872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1875 if test -n "$ac_tool_prefix"; then
1876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1877 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1878 echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1897 done
1898 done
1902 CC=$ac_cv_prog_CC
1903 if test -n "$CC"; then
1904 echo "$as_me:$LINENO: result: $CC" >&5
1905 echo "${ECHO_T}$CC" >&6
1906 else
1907 echo "$as_me:$LINENO: result: no" >&5
1908 echo "${ECHO_T}no" >&6
1912 if test -z "$ac_cv_prog_CC"; then
1913 ac_ct_CC=$CC
1914 # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 else
1921 if test -n "$ac_ct_CC"; then
1922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1927 IFS=$as_save_IFS
1928 test -z "$as_dir" && as_dir=.
1929 for ac_exec_ext in '' $ac_executable_extensions; do
1930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931 ac_cv_prog_ac_ct_CC="gcc"
1932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933 break 2
1935 done
1936 done
1940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1941 if test -n "$ac_ct_CC"; then
1942 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1943 echo "${ECHO_T}$ac_ct_CC" >&6
1944 else
1945 echo "$as_me:$LINENO: result: no" >&5
1946 echo "${ECHO_T}no" >&6
1949 CC=$ac_ct_CC
1950 else
1951 CC="$ac_cv_prog_CC"
1954 if test -z "$CC"; then
1955 if test -n "$ac_tool_prefix"; then
1956 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1957 set dummy ${ac_tool_prefix}cc; ac_word=$2
1958 echo "$as_me:$LINENO: checking for $ac_word" >&5
1959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960 if test "${ac_cv_prog_CC+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test -n "$CC"; then
1964 ac_cv_prog_CC="$CC" # Let the user override the test.
1965 else
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 for as_dir in $PATH
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 ac_cv_prog_CC="${ac_tool_prefix}cc"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1977 done
1978 done
1982 CC=$ac_cv_prog_CC
1983 if test -n "$CC"; then
1984 echo "$as_me:$LINENO: result: $CC" >&5
1985 echo "${ECHO_T}$CC" >&6
1986 else
1987 echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6
1992 if test -z "$ac_cv_prog_CC"; then
1993 ac_ct_CC=$CC
1994 # Extract the first word of "cc", so it can be a program name with args.
1995 set dummy cc; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 if test -n "$ac_ct_CC"; then
2002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2007 IFS=$as_save_IFS
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011 ac_cv_prog_ac_ct_CC="cc"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 break 2
2015 done
2016 done
2020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2021 if test -n "$ac_ct_CC"; then
2022 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2023 echo "${ECHO_T}$ac_ct_CC" >&6
2024 else
2025 echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2029 CC=$ac_ct_CC
2030 else
2031 CC="$ac_cv_prog_CC"
2035 if test -z "$CC"; then
2036 # Extract the first word of "cc", so it can be a program name with args.
2037 set dummy cc; ac_word=$2
2038 echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 else
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2045 else
2046 ac_prog_rejected=no
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2055 ac_prog_rejected=yes
2056 continue
2058 ac_cv_prog_CC="cc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2062 done
2063 done
2065 if test $ac_prog_rejected = yes; then
2066 # We found a bogon in the path, so make sure we never use it.
2067 set dummy $ac_cv_prog_CC
2068 shift
2069 if test $# != 0; then
2070 # We chose a different compiler from the bogus one.
2071 # However, it has the same basename, so the bogon will be chosen
2072 # first if we set CC to just the basename; use the full file name.
2073 shift
2074 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081 echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6
2083 else
2084 echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6
2089 if test -z "$CC"; then
2090 if test -n "$ac_tool_prefix"; then
2091 for ac_prog in cl
2093 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2094 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2095 echo "$as_me:$LINENO: checking for $ac_word" >&5
2096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097 if test "${ac_cv_prog_CC+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 else
2100 if test -n "$CC"; then
2101 ac_cv_prog_CC="$CC" # Let the user override the test.
2102 else
2103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104 for as_dir in $PATH
2106 IFS=$as_save_IFS
2107 test -z "$as_dir" && as_dir=.
2108 for ac_exec_ext in '' $ac_executable_extensions; do
2109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 break 2
2114 done
2115 done
2119 CC=$ac_cv_prog_CC
2120 if test -n "$CC"; then
2121 echo "$as_me:$LINENO: result: $CC" >&5
2122 echo "${ECHO_T}$CC" >&6
2123 else
2124 echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6
2128 test -n "$CC" && break
2129 done
2131 if test -z "$CC"; then
2132 ac_ct_CC=$CC
2133 for ac_prog in cl
2135 # Extract the first word of "$ac_prog", so it can be a program name with args.
2136 set dummy $ac_prog; ac_word=$2
2137 echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2148 IFS=$as_save_IFS
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2152 ac_cv_prog_ac_ct_CC="$ac_prog"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 break 2
2156 done
2157 done
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6
2165 else
2166 echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6
2170 test -n "$ac_ct_CC" && break
2171 done
2173 CC=$ac_ct_CC
2179 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2180 See \`config.log' for more details." >&5
2181 echo "$as_me: error: no acceptable C compiler found in \$PATH
2182 See \`config.log' for more details." >&2;}
2183 { (exit 1); exit 1; }; }
2185 # Provide some information about the compiler.
2186 echo "$as_me:$LINENO:" \
2187 "checking for C compiler version" >&5
2188 ac_compiler=`set X $ac_compile; echo $2`
2189 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2190 (eval $ac_compiler --version </dev/null >&5) 2>&5
2191 ac_status=$?
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }
2194 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2195 (eval $ac_compiler -v </dev/null >&5) 2>&5
2196 ac_status=$?
2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2198 (exit $ac_status); }
2199 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2200 (eval $ac_compiler -V </dev/null >&5) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h. */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2213 main ()
2217 return 0;
2219 _ACEOF
2220 # FIXME: Cleanup?
2221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2222 (eval $ac_link) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; then
2226 gcc_no_link=no
2227 else
2228 gcc_no_link=yes
2231 if test x$gcc_no_link = xyes; then
2232 # Setting cross_compile will disable run tests; it will
2233 # also disable AC_CHECK_FILE but that's generally
2234 # correct if we can't link.
2235 cross_compiling=yes
2236 EXEEXT=
2237 else
2238 cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h. */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h. */
2246 main ()
2250 return 0;
2252 _ACEOF
2253 ac_clean_files_save=$ac_clean_files
2254 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2255 # Try to create an executable without -o first, disregard a.out.
2256 # It will help us diagnose broken compilers, and finding out an intuition
2257 # of exeext.
2258 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2259 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2260 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2261 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2262 (eval $ac_link_default) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # Find the output, starting from the most likely. This scheme is
2267 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2268 # resort.
2270 # Be careful to initialize this variable, since it used to be cached.
2271 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2272 ac_cv_exeext=
2273 # b.out is created by i960 compilers.
2274 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2276 test -f "$ac_file" || continue
2277 case $ac_file in
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2280 conftest.$ac_ext )
2281 # This is the source file.
2283 [ab].out )
2284 # We found the default executable, but exeext='' is most
2285 # certainly right.
2286 break;;
2287 *.* )
2288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2289 # FIXME: I believe we export ac_cv_exeext for Libtool,
2290 # but it would be cool to find out if it's true. Does anybody
2291 # maintain Libtool? --akim.
2292 export ac_cv_exeext
2293 break;;
2295 break;;
2296 esac
2297 done
2298 else
2299 echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2302 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: C compiler cannot create executables
2305 See \`config.log' for more details." >&2;}
2306 { (exit 77); exit 77; }; }
2309 ac_exeext=$ac_cv_exeext
2310 echo "$as_me:$LINENO: result: $ac_file" >&5
2311 echo "${ECHO_T}$ac_file" >&6
2313 # Check the compiler produces executables we can run. If not, either
2314 # the compiler is broken, or we cross compile.
2315 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320 if { ac_try='./$ac_file'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 cross_compiling=no
2327 else
2328 if test "$cross_compiling" = maybe; then
2329 cross_compiling=yes
2330 else
2331 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2341 echo "$as_me:$LINENO: result: yes" >&5
2342 echo "${ECHO_T}yes" >&6
2344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2345 ac_clean_files=$ac_clean_files_save
2346 # Check the compiler produces executables we can run. If not, either
2347 # the compiler is broken, or we cross compile.
2348 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2350 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2351 echo "${ECHO_T}$cross_compiling" >&6
2353 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2356 (eval $ac_link) 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; then
2360 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2361 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2362 # work properly (i.e., refer to `conftest.exe'), while it won't with
2363 # `rm'.
2364 for ac_file in conftest.exe conftest conftest.*; do
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2369 export ac_cv_exeext
2370 break;;
2371 * ) break;;
2372 esac
2373 done
2374 else
2375 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2376 See \`config.log' for more details." >&5
2377 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2378 See \`config.log' for more details." >&2;}
2379 { (exit 1); exit 1; }; }
2382 rm -f conftest$ac_cv_exeext
2383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2384 echo "${ECHO_T}$ac_cv_exeext" >&6
2386 rm -f conftest.$ac_ext
2387 EXEEXT=$ac_cv_exeext
2388 ac_exeext=$EXEEXT
2390 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2391 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2392 if test "${ac_cv_objext+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395 cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h. */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h. */
2403 main ()
2407 return 0;
2409 _ACEOF
2410 rm -f conftest.o conftest.obj
2411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412 (eval $ac_compile) 2>&5
2413 ac_status=$?
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; then
2416 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2417 case $ac_file in
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2419 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2420 break;;
2421 esac
2422 done
2423 else
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2427 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2434 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2436 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2437 echo "${ECHO_T}$ac_cv_objext" >&6
2438 OBJEXT=$ac_cv_objext
2439 ac_objext=$OBJEXT
2440 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2441 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2442 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 else
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h. */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2453 main ()
2455 #ifndef __GNUC__
2456 choke me
2457 #endif
2460 return 0;
2462 _ACEOF
2463 rm -f conftest.$ac_objext
2464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2465 (eval $ac_compile) 2>conftest.er1
2466 ac_status=$?
2467 grep -v '^ *+' conftest.er1 >conftest.err
2468 rm -f conftest.er1
2469 cat conftest.err >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -z "$ac_c_werror_flag"
2473 || test ! -s conftest.err'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; } &&
2479 { ac_try='test -s conftest.$ac_objext'
2480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481 (eval $ac_try) 2>&5
2482 ac_status=$?
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2485 ac_compiler_gnu=yes
2486 else
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2490 ac_compiler_gnu=no
2492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2493 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2496 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2497 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2498 GCC=`test $ac_compiler_gnu = yes && echo yes`
2499 ac_test_CFLAGS=${CFLAGS+set}
2500 ac_save_CFLAGS=$CFLAGS
2501 CFLAGS="-g"
2502 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2503 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2504 if test "${ac_cv_prog_cc_g+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507 cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h. */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2515 main ()
2519 return 0;
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2524 (eval $ac_compile) 2>conftest.er1
2525 ac_status=$?
2526 grep -v '^ *+' conftest.er1 >conftest.err
2527 rm -f conftest.er1
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -z "$ac_c_werror_flag"
2532 || test ! -s conftest.err'
2533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 (eval $ac_try) 2>&5
2535 ac_status=$?
2536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537 (exit $ac_status); }; } &&
2538 { ac_try='test -s conftest.$ac_objext'
2539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 (eval $ac_try) 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }; }; then
2544 ac_cv_prog_cc_g=yes
2545 else
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2549 ac_cv_prog_cc_g=no
2551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2554 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2555 if test "$ac_test_CFLAGS" = set; then
2556 CFLAGS=$ac_save_CFLAGS
2557 elif test $ac_cv_prog_cc_g = yes; then
2558 if test "$GCC" = yes; then
2559 CFLAGS="-g -O2"
2560 else
2561 CFLAGS="-g"
2563 else
2564 if test "$GCC" = yes; then
2565 CFLAGS="-O2"
2566 else
2567 CFLAGS=
2570 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2571 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2572 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575 ac_cv_prog_cc_stdc=no
2576 ac_save_CC=$CC
2577 cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h. */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2583 #include <stdarg.h>
2584 #include <stdio.h>
2585 #include <sys/types.h>
2586 #include <sys/stat.h>
2587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2588 struct buf { int x; };
2589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2590 static char *e (p, i)
2591 char **p;
2592 int i;
2594 return p[i];
2596 static char *f (char * (*g) (char **, int), char **p, ...)
2598 char *s;
2599 va_list v;
2600 va_start (v,p);
2601 s = g (p, va_arg (v,int));
2602 va_end (v);
2603 return s;
2606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2607 function prototypes and stuff, but not '\xHH' hex character constants.
2608 These don't provoke an error unfortunately, instead are silently treated
2609 as 'x'. The following induces an error, until -std1 is added to get
2610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2611 array size at least. It's necessary to write '\x00'==0 to get something
2612 that's true only with -std1. */
2613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2615 int test (int i, double x);
2616 struct s1 {int (*f) (int a);};
2617 struct s2 {int (*f) (double a);};
2618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2619 int argc;
2620 char **argv;
2622 main ()
2624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2626 return 0;
2628 _ACEOF
2629 # Don't try gcc -ansi; that turns off useful extensions and
2630 # breaks some systems' header files.
2631 # AIX -qlanglvl=ansi
2632 # Ultrix and OSF/1 -std1
2633 # HP-UX 10.20 and later -Ae
2634 # HP-UX older versions -Aa -D_HPUX_SOURCE
2635 # SVR4 -Xc -D__EXTENSIONS__
2636 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2638 CC="$ac_save_CC $ac_arg"
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2642 ac_status=$?
2643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 ac_cv_prog_cc_stdc=$ac_arg
2662 break
2663 else
2664 echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2668 rm -f conftest.err conftest.$ac_objext
2669 done
2670 rm -f conftest.$ac_ext conftest.$ac_objext
2671 CC=$ac_save_CC
2675 case "x$ac_cv_prog_cc_stdc" in
2676 x|xno)
2677 echo "$as_me:$LINENO: result: none needed" >&5
2678 echo "${ECHO_T}none needed" >&6 ;;
2680 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2681 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2682 CC="$CC $ac_cv_prog_cc_stdc" ;;
2683 esac
2685 # Some people use a C++ compiler to compile C. Since we use `exit',
2686 # in C++ we need to declare it. In case someone uses the same compiler
2687 # for both compiling C and C++ we need to have the C++ compiler decide
2688 # the declaration of exit, since it's the most demanding environment.
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #ifndef __cplusplus
2691 choke me
2692 #endif
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2696 (eval $ac_compile) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } &&
2703 { ac_try='test -z "$ac_c_werror_flag"
2704 || test ! -s conftest.err'
2705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706 (eval $ac_try) 2>&5
2707 ac_status=$?
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }; } &&
2710 { ac_try='test -s conftest.$ac_objext'
2711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 (eval $ac_try) 2>&5
2713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2716 for ac_declaration in \
2717 '' \
2718 'extern "C" void std::exit (int) throw (); using std::exit;' \
2719 'extern "C" void std::exit (int); using std::exit;' \
2720 'extern "C" void exit (int) throw ();' \
2721 'extern "C" void exit (int);' \
2722 'void exit (int);'
2724 cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h. */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2730 $ac_declaration
2731 #include <stdlib.h>
2733 main ()
2735 exit (42);
2737 return 0;
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742 (eval $ac_compile) 2>conftest.er1
2743 ac_status=$?
2744 grep -v '^ *+' conftest.er1 >conftest.err
2745 rm -f conftest.er1
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } &&
2749 { ac_try='test -z "$ac_c_werror_flag"
2750 || test ! -s conftest.err'
2751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752 (eval $ac_try) 2>&5
2753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }; } &&
2756 { ac_try='test -s conftest.$ac_objext'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2763 else
2764 echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2767 continue
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 $ac_declaration
2778 main ()
2780 exit (42);
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_c_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 break
2808 else
2809 echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2813 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814 done
2815 rm -f conftest*
2816 if test -n "$ac_declaration"; then
2817 echo '#ifdef __cplusplus' >>confdefs.h
2818 echo $ac_declaration >>confdefs.h
2819 echo '#endif' >>confdefs.h
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 ac_ext=c
2829 ac_cpp='$CPP $CPPFLAGS'
2830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 ac_ext=cc
2835 ac_cpp='$CXXCPP $CPPFLAGS'
2836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2844 echo "$as_me:$LINENO: checking for $ac_word" >&5
2845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846 if test "${ac_cv_prog_CXX+set}" = set; then
2847 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 else
2849 if test -n "$CXX"; then
2850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2851 else
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 break 2
2863 done
2864 done
2868 CXX=$ac_cv_prog_CXX
2869 if test -n "$CXX"; then
2870 echo "$as_me:$LINENO: result: $CXX" >&5
2871 echo "${ECHO_T}$CXX" >&6
2872 else
2873 echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6
2877 test -n "$CXX" && break
2878 done
2880 if test -z "$CXX"; then
2881 ac_ct_CXX=$CXX
2882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 echo "$as_me:$LINENO: checking for $ac_word" >&5
2887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if test -n "$ac_ct_CXX"; then
2892 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CXX="$ac_prog"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2910 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2911 if test -n "$ac_ct_CXX"; then
2912 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2913 echo "${ECHO_T}$ac_ct_CXX" >&6
2914 else
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2919 test -n "$ac_ct_CXX" && break
2920 done
2921 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2923 CXX=$ac_ct_CXX
2927 # Provide some information about the compiler.
2928 echo "$as_me:$LINENO:" \
2929 "checking for C++ compiler version" >&5
2930 ac_compiler=`set X $ac_compile; echo $2`
2931 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2932 (eval $ac_compiler --version </dev/null >&5) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }
2936 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2937 (eval $ac_compiler -v </dev/null >&5) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2942 (eval $ac_compiler -V </dev/null >&5) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2947 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2948 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2949 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2950 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h. */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h. */
2960 main ()
2962 #ifndef __GNUC__
2963 choke me
2964 #endif
2967 return 0;
2969 _ACEOF
2970 rm -f conftest.$ac_objext
2971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2972 (eval $ac_compile) 2>conftest.er1
2973 ac_status=$?
2974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -z "$ac_cxx_werror_flag"
2980 || test ! -s conftest.err'
2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982 (eval $ac_try) 2>&5
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988 (eval $ac_try) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }; }; then
2992 ac_compiler_gnu=yes
2993 else
2994 echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2997 ac_compiler_gnu=no
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3003 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3004 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3005 GXX=`test $ac_compiler_gnu = yes && echo yes`
3006 ac_test_CXXFLAGS=${CXXFLAGS+set}
3007 ac_save_CXXFLAGS=$CXXFLAGS
3008 CXXFLAGS="-g"
3009 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3010 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3011 if test "${ac_cv_prog_cxx_g+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3022 main ()
3026 return 0;
3028 _ACEOF
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>conftest.er1
3032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_cxx_werror_flag"
3039 || test ! -s conftest.err'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; } &&
3045 { ac_try='test -s conftest.$ac_objext'
3046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3047 (eval $ac_try) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 ac_cv_prog_cxx_g=no
3058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3060 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3061 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3062 if test "$ac_test_CXXFLAGS" = set; then
3063 CXXFLAGS=$ac_save_CXXFLAGS
3064 elif test $ac_cv_prog_cxx_g = yes; then
3065 if test "$GXX" = yes; then
3066 CXXFLAGS="-g -O2"
3067 else
3068 CXXFLAGS="-g"
3070 else
3071 if test "$GXX" = yes; then
3072 CXXFLAGS="-O2"
3073 else
3074 CXXFLAGS=
3077 for ac_declaration in \
3078 '' \
3079 'extern "C" void std::exit (int) throw (); using std::exit;' \
3080 'extern "C" void std::exit (int); using std::exit;' \
3081 'extern "C" void exit (int) throw ();' \
3082 'extern "C" void exit (int);' \
3083 'void exit (int);'
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 $ac_declaration
3092 #include <stdlib.h>
3094 main ()
3096 exit (42);
3098 return 0;
3100 _ACEOF
3101 rm -f conftest.$ac_objext
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3103 (eval $ac_compile) 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } &&
3110 { ac_try='test -z "$ac_cxx_werror_flag"
3111 || test ! -s conftest.err'
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3113 (eval $ac_try) 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119 (eval $ac_try) 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 continue
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 $ac_declaration
3139 main ()
3141 exit (42);
3143 return 0;
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_cxx_werror_flag"
3156 || test ! -s conftest.err'
3157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 (eval $ac_try) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 break
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 done
3176 rm -f conftest*
3177 if test -n "$ac_declaration"; then
3178 echo '#ifdef __cplusplus' >>confdefs.h
3179 echo $ac_declaration >>confdefs.h
3180 echo '#endif' >>confdefs.h
3183 ac_ext=c
3184 ac_cpp='$CPP $CPPFLAGS'
3185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 CXXFLAGS="$save_CXXFLAGS"
3195 am__api_version="1.9"
3196 # Find a good install program. We prefer a C program (faster),
3197 # so one script is as good as another. But avoid the broken or
3198 # incompatible versions:
3199 # SysV /etc/install, /usr/sbin/install
3200 # SunOS /usr/etc/install
3201 # IRIX /sbin/install
3202 # AIX /bin/install
3203 # AmigaOS /C/install, which installs bootblocks on floppy discs
3204 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207 # OS/2's system install, which has a completely different semantic
3208 # ./install, which can be erroneously created by make from ./install.sh.
3209 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3210 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3211 if test -z "$INSTALL"; then
3212 if test "${ac_cv_path_install+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 # Account for people who put trailing slashes in PATH elements.
3221 case $as_dir/ in
3222 ./ | .// | /cC/* | \
3223 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3224 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3225 /usr/ucb/* ) ;;
3227 # OSF1 and SCO ODT 3.0 have their own names for install.
3228 # Don't use installbsd from OSF since it installs stuff as root
3229 # by default.
3230 for ac_prog in ginstall scoinst install; do
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3233 if test $ac_prog = install &&
3234 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3235 # AIX install. It has an incompatible calling convention.
3237 elif test $ac_prog = install &&
3238 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3239 # program-specific install script used by HP pwplus--don't use.
3241 else
3242 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3243 break 3
3246 done
3247 done
3249 esac
3250 done
3254 if test "${ac_cv_path_install+set}" = set; then
3255 INSTALL=$ac_cv_path_install
3256 else
3257 # As a last resort, use the slow shell script. We don't cache a
3258 # path for INSTALL within a source directory, because that will
3259 # break other packages using the cache if that directory is
3260 # removed, or if the path is relative.
3261 INSTALL=$ac_install_sh
3264 echo "$as_me:$LINENO: result: $INSTALL" >&5
3265 echo "${ECHO_T}$INSTALL" >&6
3267 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3268 # It thinks the first close brace ends the variable substitution.
3269 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3271 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3273 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3275 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3276 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3277 # Just in case
3278 sleep 1
3279 echo timestamp > conftest.file
3280 # Do `set' in a subshell so we don't clobber the current shell's
3281 # arguments. Must try -L first in case configure is actually a
3282 # symlink; some systems play weird games with the mod time of symlinks
3283 # (eg FreeBSD returns the mod time of the symlink's containing
3284 # directory).
3285 if (
3286 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3287 if test "$*" = "X"; then
3288 # -L didn't work.
3289 set X `ls -t $srcdir/configure conftest.file`
3291 rm -f conftest.file
3292 if test "$*" != "X $srcdir/configure conftest.file" \
3293 && test "$*" != "X conftest.file $srcdir/configure"; then
3295 # If neither matched, then we have a broken ls. This can happen
3296 # if, for instance, CONFIG_SHELL is bash and it inherits a
3297 # broken ls alias from the environment. This has actually
3298 # happened. Such a system could not be considered "sane".
3299 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3300 alias in your environment" >&5
3301 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3302 alias in your environment" >&2;}
3303 { (exit 1); exit 1; }; }
3306 test "$2" = conftest.file
3308 then
3309 # Ok.
3311 else
3312 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3313 Check your system clock" >&5
3314 echo "$as_me: error: newly created file is older than distributed files!
3315 Check your system clock" >&2;}
3316 { (exit 1); exit 1; }; }
3318 echo "$as_me:$LINENO: result: yes" >&5
3319 echo "${ECHO_T}yes" >&6
3320 test "$program_prefix" != NONE &&
3321 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3322 # Use a double $ so make ignores it.
3323 test "$program_suffix" != NONE &&
3324 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3325 # Double any \ or $. echo might interpret backslashes.
3326 # By default was `s,x,x', remove it if useless.
3327 cat <<\_ACEOF >conftest.sed
3328 s/[\\$]/&&/g;s/;s,x,x,$//
3329 _ACEOF
3330 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3331 rm conftest.sed
3333 # expand $ac_aux_dir to an absolute path
3334 am_aux_dir=`cd $ac_aux_dir && pwd`
3336 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3337 # Use eval to expand $SHELL
3338 if eval "$MISSING --run true"; then
3339 am_missing_run="$MISSING --run "
3340 else
3341 am_missing_run=
3342 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3343 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3346 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3347 # We used to keeping the `.' as first argument, in order to
3348 # allow $(mkdir_p) to be used without argument. As in
3349 # $(mkdir_p) $(somedir)
3350 # where $(somedir) is conditionally defined. However this is wrong
3351 # for two reasons:
3352 # 1. if the package is installed by a user who cannot write `.'
3353 # make install will fail,
3354 # 2. the above comment should most certainly read
3355 # $(mkdir_p) $(DESTDIR)$(somedir)
3356 # so it does not work when $(somedir) is undefined and
3357 # $(DESTDIR) is not.
3358 # To support the latter case, we have to write
3359 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3360 # so the `.' trick is pointless.
3361 mkdir_p='mkdir -p --'
3362 else
3363 # On NextStep and OpenStep, the `mkdir' command does not
3364 # recognize any option. It will interpret all options as
3365 # directories to create, and then abort because `.' already
3366 # exists.
3367 for d in ./-p ./--version;
3369 test -d $d && rmdir $d
3370 done
3371 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3372 if test -f "$ac_aux_dir/mkinstalldirs"; then
3373 mkdir_p='$(mkinstalldirs)'
3374 else
3375 mkdir_p='$(install_sh) -d'
3379 for ac_prog in gawk mawk nawk awk
3381 # Extract the first word of "$ac_prog", so it can be a program name with args.
3382 set dummy $ac_prog; ac_word=$2
3383 echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385 if test "${ac_cv_prog_AWK+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 if test -n "$AWK"; then
3389 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398 ac_cv_prog_AWK="$ac_prog"
3399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3407 AWK=$ac_cv_prog_AWK
3408 if test -n "$AWK"; then
3409 echo "$as_me:$LINENO: result: $AWK" >&5
3410 echo "${ECHO_T}$AWK" >&6
3411 else
3412 echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3416 test -n "$AWK" && break
3417 done
3419 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3420 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3421 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3422 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425 cat >conftest.make <<\_ACEOF
3426 all:
3427 @echo 'ac_maketemp="$(MAKE)"'
3428 _ACEOF
3429 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3430 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3431 if test -n "$ac_maketemp"; then
3432 eval ac_cv_prog_make_${ac_make}_set=yes
3433 else
3434 eval ac_cv_prog_make_${ac_make}_set=no
3436 rm -f conftest.make
3438 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3441 SET_MAKE=
3442 else
3443 echo "$as_me:$LINENO: result: no" >&5
3444 echo "${ECHO_T}no" >&6
3445 SET_MAKE="MAKE=${MAKE-make}"
3448 rm -rf .tst 2>/dev/null
3449 mkdir .tst 2>/dev/null
3450 if test -d .tst; then
3451 am__leading_dot=.
3452 else
3453 am__leading_dot=_
3455 rmdir .tst 2>/dev/null
3457 DEPDIR="${am__leading_dot}deps"
3459 ac_config_commands="$ac_config_commands depfiles"
3462 am_make=${MAKE-make}
3463 cat > confinc << 'END'
3464 am__doit:
3465 @echo done
3466 .PHONY: am__doit
3468 # If we don't find an include directive, just comment out the code.
3469 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3470 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3471 am__include="#"
3472 am__quote=
3473 _am_result=none
3474 # First try GNU make style include.
3475 echo "include confinc" > confmf
3476 # We grep out `Entering directory' and `Leaving directory'
3477 # messages which can occur if `w' ends up in MAKEFLAGS.
3478 # In particular we don't look at `^make:' because GNU make might
3479 # be invoked under some other name (usually "gmake"), in which
3480 # case it prints its new name instead of `make'.
3481 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3482 am__include=include
3483 am__quote=
3484 _am_result=GNU
3486 # Now try BSD make style include.
3487 if test "$am__include" = "#"; then
3488 echo '.include "confinc"' > confmf
3489 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3490 am__include=.include
3491 am__quote="\""
3492 _am_result=BSD
3497 echo "$as_me:$LINENO: result: $_am_result" >&5
3498 echo "${ECHO_T}$_am_result" >&6
3499 rm -f confinc confmf
3501 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3502 if test "${enable_dependency_tracking+set}" = set; then
3503 enableval="$enable_dependency_tracking"
3506 if test "x$enable_dependency_tracking" != xno; then
3507 am_depcomp="$ac_aux_dir/depcomp"
3508 AMDEPBACKSLASH='\'
3512 if test "x$enable_dependency_tracking" != xno; then
3513 AMDEP_TRUE=
3514 AMDEP_FALSE='#'
3515 else
3516 AMDEP_TRUE='#'
3517 AMDEP_FALSE=
3522 # test to see if srcdir already configured
3523 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3524 test -f $srcdir/config.status; then
3525 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3526 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3527 { (exit 1); exit 1; }; }
3530 # test whether we have cygpath
3531 if test -z "$CYGPATH_W"; then
3532 if (cygpath --version) >/dev/null 2>/dev/null; then
3533 CYGPATH_W='cygpath -w'
3534 else
3535 CYGPATH_W=echo
3540 # Define the identity of the package.
3541 PACKAGE='libjava'
3542 VERSION='version-unused'
3545 cat >>confdefs.h <<_ACEOF
3546 #define PACKAGE "$PACKAGE"
3547 _ACEOF
3550 cat >>confdefs.h <<_ACEOF
3551 #define VERSION "$VERSION"
3552 _ACEOF
3554 # Some tools Automake needs.
3556 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3559 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3562 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3565 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3568 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3570 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3572 # Installed binaries are usually stripped using `strip' when the user
3573 # run `make install-strip'. However `strip' might not be the right
3574 # tool to use in cross-compilation environments, therefore Automake
3575 # will honor the `STRIP' environment variable to overrule this program.
3576 if test "$cross_compiling" != no; then
3577 if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3579 set dummy ${ac_tool_prefix}strip; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_prog_STRIP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585 if test -n "$STRIP"; then
3586 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3604 STRIP=$ac_cv_prog_STRIP
3605 if test -n "$STRIP"; then
3606 echo "$as_me:$LINENO: result: $STRIP" >&5
3607 echo "${ECHO_T}$STRIP" >&6
3608 else
3609 echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3614 if test -z "$ac_cv_prog_STRIP"; then
3615 ac_ct_STRIP=$STRIP
3616 # Extract the first word of "strip", so it can be a program name with args.
3617 set dummy strip; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623 if test -n "$ac_ct_STRIP"; then
3624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3633 ac_cv_prog_ac_ct_STRIP="strip"
3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3640 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3644 if test -n "$ac_ct_STRIP"; then
3645 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3646 echo "${ECHO_T}$ac_ct_STRIP" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649 echo "${ECHO_T}no" >&6
3652 STRIP=$ac_ct_STRIP
3653 else
3654 STRIP="$ac_cv_prog_STRIP"
3658 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3660 # We need awk for the "check" target. The system "awk" is bad on
3661 # some platforms.
3662 # Always define AMTAR for backward compatibility.
3664 AMTAR=${AMTAR-"${am_missing_run}tar"}
3666 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3671 depcc="$CC" am_compiler_list=
3673 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3674 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3675 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 else
3678 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3679 # We make a subdir and do the tests there. Otherwise we can end up
3680 # making bogus files that we don't know about and never remove. For
3681 # instance it was reported that on HP-UX the gcc test will end up
3682 # making a dummy file named `D' -- because `-MD' means `put the output
3683 # in D'.
3684 mkdir conftest.dir
3685 # Copy depcomp to subdir because otherwise we won't find it if we're
3686 # using a relative directory.
3687 cp "$am_depcomp" conftest.dir
3688 cd conftest.dir
3689 # We will build objects and dependencies in a subdirectory because
3690 # it helps to detect inapplicable dependency modes. For instance
3691 # both Tru64's cc and ICC support -MD to output dependencies as a
3692 # side effect of compilation, but ICC will put the dependencies in
3693 # the current directory while Tru64 will put them in the object
3694 # directory.
3695 mkdir sub
3697 am_cv_CC_dependencies_compiler_type=none
3698 if test "$am_compiler_list" = ""; then
3699 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3701 for depmode in $am_compiler_list; do
3702 # Setup a source with many dependencies, because some compilers
3703 # like to wrap large dependency lists on column 80 (with \), and
3704 # we should not choose a depcomp mode which is confused by this.
3706 # We need to recreate these files for each test, as the compiler may
3707 # overwrite some of them when testing with obscure command lines.
3708 # This happens at least with the AIX C compiler.
3709 : > sub/conftest.c
3710 for i in 1 2 3 4 5 6; do
3711 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713 # Solaris 8's {/usr,}/bin/sh.
3714 touch sub/conftst$i.h
3715 done
3716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3718 case $depmode in
3719 nosideeffect)
3720 # after this tag, mechanisms are not by side-effect, so they'll
3721 # only be used when explicitly requested
3722 if test "x$enable_dependency_tracking" = xyes; then
3723 continue
3724 else
3725 break
3728 none) break ;;
3729 esac
3730 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3731 # mode. It turns out that the SunPro C++ compiler does not properly
3732 # handle `-M -o', and we need to detect this.
3733 if depmode=$depmode \
3734 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3735 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3736 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3737 >/dev/null 2>conftest.err &&
3738 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3739 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3740 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3741 # icc doesn't choke on unknown options, it will just issue warnings
3742 # or remarks (even with -Werror). So we grep stderr for any message
3743 # that says an option was ignored or not supported.
3744 # When given -MP, icc 7.0 and 7.1 complain thusly:
3745 # icc: Command line warning: ignoring option '-M'; no argument required
3746 # The diagnosis changed in icc 8.0:
3747 # icc: Command line remark: option '-MP' not supported
3748 if (grep 'ignoring option' conftest.err ||
3749 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3750 am_cv_CC_dependencies_compiler_type=$depmode
3751 break
3754 done
3756 cd ..
3757 rm -rf conftest.dir
3758 else
3759 am_cv_CC_dependencies_compiler_type=none
3763 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3764 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3765 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3770 test "x$enable_dependency_tracking" != xno \
3771 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3772 am__fastdepCC_TRUE=
3773 am__fastdepCC_FALSE='#'
3774 else
3775 am__fastdepCC_TRUE='#'
3776 am__fastdepCC_FALSE=
3780 depcc="$CXX" am_compiler_list=
3782 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3783 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3784 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3788 # We make a subdir and do the tests there. Otherwise we can end up
3789 # making bogus files that we don't know about and never remove. For
3790 # instance it was reported that on HP-UX the gcc test will end up
3791 # making a dummy file named `D' -- because `-MD' means `put the output
3792 # in D'.
3793 mkdir conftest.dir
3794 # Copy depcomp to subdir because otherwise we won't find it if we're
3795 # using a relative directory.
3796 cp "$am_depcomp" conftest.dir
3797 cd conftest.dir
3798 # We will build objects and dependencies in a subdirectory because
3799 # it helps to detect inapplicable dependency modes. For instance
3800 # both Tru64's cc and ICC support -MD to output dependencies as a
3801 # side effect of compilation, but ICC will put the dependencies in
3802 # the current directory while Tru64 will put them in the object
3803 # directory.
3804 mkdir sub
3806 am_cv_CXX_dependencies_compiler_type=none
3807 if test "$am_compiler_list" = ""; then
3808 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3810 for depmode in $am_compiler_list; do
3811 # Setup a source with many dependencies, because some compilers
3812 # like to wrap large dependency lists on column 80 (with \), and
3813 # we should not choose a depcomp mode which is confused by this.
3815 # We need to recreate these files for each test, as the compiler may
3816 # overwrite some of them when testing with obscure command lines.
3817 # This happens at least with the AIX C compiler.
3818 : > sub/conftest.c
3819 for i in 1 2 3 4 5 6; do
3820 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3821 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3822 # Solaris 8's {/usr,}/bin/sh.
3823 touch sub/conftst$i.h
3824 done
3825 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827 case $depmode in
3828 nosideeffect)
3829 # after this tag, mechanisms are not by side-effect, so they'll
3830 # only be used when explicitly requested
3831 if test "x$enable_dependency_tracking" = xyes; then
3832 continue
3833 else
3834 break
3837 none) break ;;
3838 esac
3839 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3840 # mode. It turns out that the SunPro C++ compiler does not properly
3841 # handle `-M -o', and we need to detect this.
3842 if depmode=$depmode \
3843 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3844 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3845 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3846 >/dev/null 2>conftest.err &&
3847 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3848 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3849 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3850 # icc doesn't choke on unknown options, it will just issue warnings
3851 # or remarks (even with -Werror). So we grep stderr for any message
3852 # that says an option was ignored or not supported.
3853 # When given -MP, icc 7.0 and 7.1 complain thusly:
3854 # icc: Command line warning: ignoring option '-M'; no argument required
3855 # The diagnosis changed in icc 8.0:
3856 # icc: Command line remark: option '-MP' not supported
3857 if (grep 'ignoring option' conftest.err ||
3858 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3859 am_cv_CXX_dependencies_compiler_type=$depmode
3860 break
3863 done
3865 cd ..
3866 rm -rf conftest.dir
3867 else
3868 am_cv_CXX_dependencies_compiler_type=none
3872 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3873 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3874 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3879 test "x$enable_dependency_tracking" != xno \
3880 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3881 am__fastdepCXX_TRUE=
3882 am__fastdepCXX_FALSE='#'
3883 else
3884 am__fastdepCXX_TRUE='#'
3885 am__fastdepCXX_FALSE=
3891 if test -n "$ac_tool_prefix"; then
3892 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3893 set dummy ${ac_tool_prefix}as; ac_word=$2
3894 echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3896 if test "${ac_cv_prog_AS+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 if test -n "$AS"; then
3900 ac_cv_prog_AS="$AS" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3909 ac_cv_prog_AS="${ac_tool_prefix}as"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3918 AS=$ac_cv_prog_AS
3919 if test -n "$AS"; then
3920 echo "$as_me:$LINENO: result: $AS" >&5
3921 echo "${ECHO_T}$AS" >&6
3922 else
3923 echo "$as_me:$LINENO: result: no" >&5
3924 echo "${ECHO_T}no" >&6
3928 if test -z "$ac_cv_prog_AS"; then
3929 ac_ct_AS=$AS
3930 # Extract the first word of "as", so it can be a program name with args.
3931 set dummy as; ac_word=$2
3932 echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3934 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 if test -n "$ac_ct_AS"; then
3938 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3939 else
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 ac_cv_prog_ac_ct_AS="as"
3948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3951 done
3952 done
3956 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3957 if test -n "$ac_ct_AS"; then
3958 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3959 echo "${ECHO_T}$ac_ct_AS" >&6
3960 else
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3965 AS=$ac_ct_AS
3966 else
3967 AS="$ac_cv_prog_AS"
3970 if test -n "$ac_tool_prefix"; then
3971 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3972 set dummy ${ac_tool_prefix}ld; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_prog_LD+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 if test -n "$LD"; then
3979 ac_cv_prog_LD="$LD" # Let the user override the test.
3980 else
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 for as_dir in $PATH
3984 IFS=$as_save_IFS
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_prog_LD="${ac_tool_prefix}ld"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 break 2
3992 done
3993 done
3997 LD=$ac_cv_prog_LD
3998 if test -n "$LD"; then
3999 echo "$as_me:$LINENO: result: $LD" >&5
4000 echo "${ECHO_T}$LD" >&6
4001 else
4002 echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6
4007 if test -z "$ac_cv_prog_LD"; then
4008 ac_ct_LD=$LD
4009 # Extract the first word of "ld", so it can be a program name with args.
4010 set dummy ld; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 else
4016 if test -n "$ac_ct_LD"; then
4017 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4018 else
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 for as_dir in $PATH
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026 ac_cv_prog_ac_ct_LD="ld"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4030 done
4031 done
4035 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4036 if test -n "$ac_ct_LD"; then
4037 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4038 echo "${ECHO_T}$ac_ct_LD" >&6
4039 else
4040 echo "$as_me:$LINENO: result: no" >&5
4041 echo "${ECHO_T}no" >&6
4044 LD=$ac_ct_LD
4045 else
4046 LD="$ac_cv_prog_LD"
4049 if test -n "$ac_tool_prefix"; then
4050 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4051 set dummy ${ac_tool_prefix}ar; ac_word=$2
4052 echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4054 if test "${ac_cv_prog_AR+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 if test -n "$AR"; then
4058 ac_cv_prog_AR="$AR" # Let the user override the test.
4059 else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4067 ac_cv_prog_AR="${ac_tool_prefix}ar"
4068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4069 break 2
4071 done
4072 done
4076 AR=$ac_cv_prog_AR
4077 if test -n "$AR"; then
4078 echo "$as_me:$LINENO: result: $AR" >&5
4079 echo "${ECHO_T}$AR" >&6
4080 else
4081 echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6
4086 if test -z "$ac_cv_prog_AR"; then
4087 ac_ct_AR=$AR
4088 # Extract the first word of "ar", so it can be a program name with args.
4089 set dummy ar; ac_word=$2
4090 echo "$as_me:$LINENO: checking for $ac_word" >&5
4091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4092 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 else
4095 if test -n "$ac_ct_AR"; then
4096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4097 else
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_prog_ac_ct_AR="ar"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4109 done
4110 done
4114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4117 echo "${ECHO_T}$ac_ct_AR" >&6
4118 else
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4123 AR=$ac_ct_AR
4124 else
4125 AR="$ac_cv_prog_AR"
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4131 echo "$as_me:$LINENO: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_RANLIB+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136 if test -n "$RANLIB"; then
4137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4138 else
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4150 done
4151 done
4155 RANLIB=$ac_cv_prog_RANLIB
4156 if test -n "$RANLIB"; then
4157 echo "$as_me:$LINENO: result: $RANLIB" >&5
4158 echo "${ECHO_T}$RANLIB" >&6
4159 else
4160 echo "$as_me:$LINENO: result: no" >&5
4161 echo "${ECHO_T}no" >&6
4165 if test -z "$ac_cv_prog_RANLIB"; then
4166 ac_ct_RANLIB=$RANLIB
4167 # Extract the first word of "ranlib", so it can be a program name with args.
4168 set dummy ranlib; ac_word=$2
4169 echo "$as_me:$LINENO: checking for $ac_word" >&5
4170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 if test -n "$ac_ct_RANLIB"; then
4175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_RANLIB="ranlib"
4185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 break 2
4188 done
4189 done
4191 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4195 if test -n "$ac_ct_RANLIB"; then
4196 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4197 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4198 else
4199 echo "$as_me:$LINENO: result: no" >&5
4200 echo "${ECHO_T}no" >&6
4203 RANLIB=$ac_ct_RANLIB
4204 else
4205 RANLIB="$ac_cv_prog_RANLIB"
4208 for ac_prog in gawk mawk nawk awk
4210 # Extract the first word of "$ac_prog", so it can be a program name with args.
4211 set dummy $ac_prog; ac_word=$2
4212 echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4214 if test "${ac_cv_prog_AWK+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 if test -n "$AWK"; then
4218 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4227 ac_cv_prog_AWK="$ac_prog"
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4236 AWK=$ac_cv_prog_AWK
4237 if test -n "$AWK"; then
4238 echo "$as_me:$LINENO: result: $AWK" >&5
4239 echo "${ECHO_T}$AWK" >&6
4240 else
4241 echo "$as_me:$LINENO: result: no" >&5
4242 echo "${ECHO_T}no" >&6
4245 test -n "$AWK" && break
4246 done
4248 for ac_prog in jar fastjar gjar
4250 # Extract the first word of "$ac_prog", so it can be a program name with args.
4251 set dummy $ac_prog; ac_word=$2
4252 echo "$as_me:$LINENO: checking for $ac_word" >&5
4253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4254 if test "${ac_cv_prog_JAR+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4256 else
4257 if test -n "$JAR"; then
4258 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4259 else
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_JAR="$ac_prog"
4268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 break 2
4271 done
4272 done
4276 JAR=$ac_cv_prog_JAR
4277 if test -n "$JAR"; then
4278 echo "$as_me:$LINENO: result: $JAR" >&5
4279 echo "${ECHO_T}$JAR" >&6
4280 else
4281 echo "$as_me:$LINENO: result: no" >&5
4282 echo "${ECHO_T}no" >&6
4285 test -n "$JAR" && break
4286 done
4287 test -n "$JAR" || JAR="no"
4289 # Extract the first word of "zip", so it can be a program name with args.
4290 set dummy zip; ac_word=$2
4291 echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4293 if test "${ac_cv_path_ZIP+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 else
4296 case $ZIP in
4297 [\\/]* | ?:[\\/]*)
4298 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4304 IFS=$as_save_IFS
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4308 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310 break 2
4312 done
4313 done
4315 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4317 esac
4319 ZIP=$ac_cv_path_ZIP
4321 if test -n "$ZIP"; then
4322 echo "$as_me:$LINENO: result: $ZIP" >&5
4323 echo "${ECHO_T}$ZIP" >&6
4324 else
4325 echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6
4329 # Extract the first word of "unzip", so it can be a program name with args.
4330 set dummy unzip; ac_word=$2
4331 echo "$as_me:$LINENO: checking for $ac_word" >&5
4332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4333 if test "${ac_cv_path_UNZIP+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 else
4336 case $UNZIP in
4337 [\\/]* | ?:[\\/]*)
4338 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 for as_dir in $PATH
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4348 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4352 done
4353 done
4355 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4357 esac
4359 UNZIP=$ac_cv_path_UNZIP
4361 if test -n "$UNZIP"; then
4362 echo "$as_me:$LINENO: result: $UNZIP" >&5
4363 echo "${ECHO_T}$UNZIP" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366 echo "${ECHO_T}no" >&6
4370 # We need a jar that supports -@. This is a GNU extension.
4371 if test "$JAR" != no; then
4372 rm -f config-test.jar
4373 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4374 if test -f config-test.jar; then
4375 rm -f config-test.jar
4376 else
4377 JAR=no
4381 # Prefer the jar we found, but fall back to our jar script.
4382 if test "$JAR" = no; then
4383 if test "$ZIP" = no; then
4384 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4385 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4386 { (exit 1); exit 1; }; }
4387 else
4388 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4389 JAR=`pwd`/scripts/jar
4393 # Find a good install program. We prefer a C program (faster),
4394 # so one script is as good as another. But avoid the broken or
4395 # incompatible versions:
4396 # SysV /etc/install, /usr/sbin/install
4397 # SunOS /usr/etc/install
4398 # IRIX /sbin/install
4399 # AIX /bin/install
4400 # AmigaOS /C/install, which installs bootblocks on floppy discs
4401 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4402 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4403 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4404 # OS/2's system install, which has a completely different semantic
4405 # ./install, which can be erroneously created by make from ./install.sh.
4406 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4407 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4408 if test -z "$INSTALL"; then
4409 if test "${ac_cv_path_install+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4413 for as_dir in $PATH
4415 IFS=$as_save_IFS
4416 test -z "$as_dir" && as_dir=.
4417 # Account for people who put trailing slashes in PATH elements.
4418 case $as_dir/ in
4419 ./ | .// | /cC/* | \
4420 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4421 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4422 /usr/ucb/* ) ;;
4424 # OSF1 and SCO ODT 3.0 have their own names for install.
4425 # Don't use installbsd from OSF since it installs stuff as root
4426 # by default.
4427 for ac_prog in ginstall scoinst install; do
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4430 if test $ac_prog = install &&
4431 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4432 # AIX install. It has an incompatible calling convention.
4434 elif test $ac_prog = install &&
4435 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4436 # program-specific install script used by HP pwplus--don't use.
4438 else
4439 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4440 break 3
4443 done
4444 done
4446 esac
4447 done
4451 if test "${ac_cv_path_install+set}" = set; then
4452 INSTALL=$ac_cv_path_install
4453 else
4454 # As a last resort, use the slow shell script. We don't cache a
4455 # path for INSTALL within a source directory, because that will
4456 # break other packages using the cache if that directory is
4457 # removed, or if the path is relative.
4458 INSTALL=$ac_install_sh
4461 echo "$as_me:$LINENO: result: $INSTALL" >&5
4462 echo "${ECHO_T}$INSTALL" >&6
4464 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4465 # It thinks the first close brace ends the variable substitution.
4466 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4468 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4470 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4473 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4474 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4475 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4476 if test "${enable_maintainer_mode+set}" = set; then
4477 enableval="$enable_maintainer_mode"
4478 USE_MAINTAINER_MODE=$enableval
4479 else
4480 USE_MAINTAINER_MODE=no
4482 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4483 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4486 if test $USE_MAINTAINER_MODE = yes; then
4487 MAINTAINER_MODE_TRUE=
4488 MAINTAINER_MODE_FALSE='#'
4489 else
4490 MAINTAINER_MODE_TRUE='#'
4491 MAINTAINER_MODE_FALSE=
4494 MAINT=$MAINTAINER_MODE_TRUE
4500 # configure.host sets the following important variables
4501 # libgcj_cflags - host specific C compiler flags
4502 # libgcj_cxxflags - host specific C++ compiler flags
4503 # libgcj_javaflags - host specific Java compiler flags
4505 libgcj_cflags=
4506 libgcj_cxxflags=
4507 libgcj_javaflags=
4509 . ${srcdir}/configure.host
4511 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4512 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4513 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 else
4516 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4517 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4518 acl_cv_prog_gnu_ld=yes
4519 else
4520 acl_cv_prog_gnu_ld=no
4523 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4524 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4525 with_gnu_ld=$acl_cv_prog_gnu_ld
4527 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4528 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4529 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4533 acl_cv_prog_gnu_ld_symbolic=no
4535 if test x"$with_gnu_ld" = x"yes"; then
4536 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4537 acl_cv_prog_gnu_ld_symbolic=yes
4541 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4542 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4543 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4544 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4545 else
4546 SYMBOLIC_LDFLAGS=''
4549 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4550 if test -z "$libgcj_ld_symbolic"; then
4551 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4554 LIBGCJ_CFLAGS="${libgcj_cflags}"
4555 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4556 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4557 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4558 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4565 # Only use libltdl for non-newlib builds.
4566 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4567 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4568 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4569 library_names_spec=
4570 libname_spec='lib$name'
4571 soname_spec=
4572 shrext=".so"
4573 postinstall_cmds=
4574 postuninstall_cmds=
4575 finish_cmds=
4576 finish_eval=
4577 shlibpath_var=
4578 shlibpath_overrides_runpath=unknown
4579 version_type=none
4580 dynamic_linker="$host_os ld.so"
4581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4582 if test "$GCC" = yes; then
4583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4584 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4585 # if the path contains ";" then we assume it to be the separator
4586 # otherwise default to the standard path separator (i.e. ":") - it is
4587 # assumed that no part of a normal pathname contains ";" but that should
4588 # okay in the real world where ";" in dirpaths is itself problematic.
4589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4590 else
4591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4593 else
4594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4596 need_lib_prefix=unknown
4597 hardcode_into_libs=no
4599 # when you set need_version to no, make sure it does not cause -set_version
4600 # flags to be left without arguments
4601 need_version=unknown
4603 case $host_os in
4604 aix3*)
4605 version_type=linux
4606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4607 shlibpath_var=LIBPATH
4609 # AIX 3 has no versioning support, so we append a major version to the name.
4610 soname_spec='${libname}${release}${shared_ext}$major'
4613 aix4* | aix5*)
4614 version_type=linux
4615 need_lib_prefix=no
4616 need_version=no
4617 hardcode_into_libs=yes
4618 if test "$host_cpu" = ia64; then
4619 # AIX 5 supports IA64
4620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4621 shlibpath_var=LD_LIBRARY_PATH
4622 else
4623 # With GCC up to 2.95.x, collect2 would create an import file
4624 # for dependence libraries. The import file would start with
4625 # the line `#! .'. This would cause the generated library to
4626 # depend on `.', always an invalid library. This was fixed in
4627 # development snapshots of GCC prior to 3.0.
4628 case $host_os in
4629 aix4 | aix4.[01] | aix4.[01].*)
4630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4631 echo ' yes '
4632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4634 else
4635 can_build_shared=no
4638 esac
4639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4640 # soname into executable. Probably we can add versioning support to
4641 # collect2, so additional links can be useful in future.
4642 if test "$aix_use_runtimelinking" = yes; then
4643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4644 # instead of lib<name>.a to let people know that these are not
4645 # typical AIX shared libraries.
4646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4647 else
4648 # We preserve .a as extension for shared libraries through AIX4.2
4649 # and later when we are not doing run time linking.
4650 library_names_spec='${libname}${release}.a $libname.a'
4651 soname_spec='${libname}${release}${shared_ext}$major'
4653 shlibpath_var=LIBPATH
4657 amigaos*)
4658 library_names_spec='$libname.ixlibrary $libname.a'
4659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4660 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'
4663 beos*)
4664 library_names_spec='${libname}${shared_ext}'
4665 dynamic_linker="$host_os ld.so"
4666 shlibpath_var=LIBRARY_PATH
4669 bsdi4*)
4670 version_type=linux
4671 need_version=no
4672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4673 soname_spec='${libname}${release}${shared_ext}$major'
4674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4675 shlibpath_var=LD_LIBRARY_PATH
4676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4678 # the default ld.so.conf also contains /usr/contrib/lib and
4679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4680 # libtool to hard-code these into programs
4683 cygwin* | mingw* | pw32*)
4684 version_type=windows
4685 shrext=".dll"
4686 need_version=no
4687 need_lib_prefix=no
4689 case $GCC,$host_os in
4690 yes,cygwin* | yes,mingw* | yes,pw32*)
4691 library_names_spec='$libname.dll.a'
4692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4693 postinstall_cmds='base_file=`basename \${file}`~
4694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4695 dldir=$destdir/`dirname \$dlpath`~
4696 test -d \$dldir || mkdir -p \$dldir~
4697 $install_prog $dir/$dlname \$dldir/$dlname'
4698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4699 dlpath=$dir/\$dldll~
4700 $rm \$dlpath'
4701 shlibpath_overrides_runpath=yes
4703 case $host_os in
4704 cygwin*)
4705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4707 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4709 mingw*)
4710 # MinGW DLLs use traditional 'lib' prefix
4711 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4714 # It is most probably a Windows format PATH printed by
4715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4716 # path with ; separators, and with drive letters. We can handle the
4717 # drive letters (cygwin fileutils understands them), so leave them,
4718 # especially as we might pass files found there to a mingw objdump,
4719 # which wouldn't understand a cygwinified path. Ahh.
4720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4721 else
4722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4725 pw32*)
4726 # pw32 DLLs use 'pw' prefix rather than 'lib'
4727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4729 esac
4733 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4735 esac
4736 dynamic_linker='Win32 ld.exe'
4737 # FIXME: first we should search . and the directory the executable is in
4738 shlibpath_var=PATH
4741 darwin* | rhapsody*)
4742 dynamic_linker="$host_os dyld"
4743 version_type=darwin
4744 need_lib_prefix=no
4745 need_version=no
4746 # FIXME: Relying on posixy $() will cause problems for
4747 # cross-compilation, but unfortunately the echo tests do not
4748 # yet detect zsh echo's removal of \ escapes.
4749 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4750 soname_spec='${libname}${release}${major}$shared_ext'
4751 shlibpath_overrides_runpath=yes
4752 shlibpath_var=DYLD_LIBRARY_PATH
4753 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4754 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4755 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4756 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"`
4758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4761 dgux*)
4762 version_type=linux
4763 need_lib_prefix=no
4764 need_version=no
4765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4766 soname_spec='${libname}${release}${shared_ext}$major'
4767 shlibpath_var=LD_LIBRARY_PATH
4770 freebsd1*)
4771 dynamic_linker=no
4774 freebsd*)
4775 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4776 version_type=freebsd-$objformat
4777 case $version_type in
4778 freebsd-elf*)
4779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4780 need_version=no
4781 need_lib_prefix=no
4783 freebsd-*)
4784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4785 need_version=yes
4787 esac
4788 shlibpath_var=LD_LIBRARY_PATH
4789 case $host_os in
4790 freebsd2*)
4791 shlibpath_overrides_runpath=yes
4793 freebsd3.01* | freebsdelf3.01*)
4794 shlibpath_overrides_runpath=yes
4795 hardcode_into_libs=yes
4797 *) # from 3.2 on
4798 shlibpath_overrides_runpath=no
4799 hardcode_into_libs=yes
4801 esac
4804 gnu*)
4805 version_type=linux
4806 need_lib_prefix=no
4807 need_version=no
4808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4809 soname_spec='${libname}${release}${shared_ext}$major'
4810 shlibpath_var=LD_LIBRARY_PATH
4811 hardcode_into_libs=yes
4814 hpux9* | hpux10* | hpux11*)
4815 # Give a soname corresponding to the major version so that dld.sl refuses to
4816 # link against other versions.
4817 version_type=sunos
4818 need_lib_prefix=no
4819 need_version=no
4820 case "$host_cpu" in
4821 ia64*)
4822 shrext='.so'
4823 hardcode_into_libs=yes
4824 dynamic_linker="$host_os dld.so"
4825 shlibpath_var=LD_LIBRARY_PATH
4826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4828 soname_spec='${libname}${release}${shared_ext}$major'
4829 if test "X$HPUX_IA64_MODE" = X32; then
4830 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4831 else
4832 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4836 hppa*64*)
4837 shrext='.sl'
4838 hardcode_into_libs=yes
4839 dynamic_linker="$host_os dld.sl"
4840 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4841 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4843 soname_spec='${libname}${release}${shared_ext}$major'
4844 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4845 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4848 shrext='.sl'
4849 dynamic_linker="$host_os dld.sl"
4850 shlibpath_var=SHLIB_PATH
4851 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4853 soname_spec='${libname}${release}${shared_ext}$major'
4855 esac
4856 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4857 postinstall_cmds='chmod 555 $lib'
4860 irix5* | irix6* | nonstopux*)
4861 case $host_os in
4862 nonstopux*) version_type=nonstopux ;;
4864 if test "$lt_cv_prog_gnu_ld" = yes; then
4865 version_type=linux
4866 else
4867 version_type=irix
4868 fi ;;
4869 esac
4870 need_lib_prefix=no
4871 need_version=no
4872 soname_spec='${libname}${release}${shared_ext}$major'
4873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4874 case $host_os in
4875 irix5* | nonstopux*)
4876 libsuff= shlibsuff=
4879 case $LD in # libtool.m4 will add one of these switches to LD
4880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4881 libsuff= shlibsuff= libmagic=32-bit;;
4882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4883 libsuff=32 shlibsuff=N32 libmagic=N32;;
4884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4886 *) libsuff= shlibsuff= libmagic=never-match;;
4887 esac
4889 esac
4890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4891 shlibpath_overrides_runpath=no
4892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4894 hardcode_into_libs=yes
4897 # No shared lib support for Linux oldld, aout, or coff.
4898 linux*oldld* | linux*aout* | linux*coff*)
4899 dynamic_linker=no
4902 # This must be Linux ELF.
4903 linux*|k*bsd*-gnu)
4904 version_type=linux
4905 need_lib_prefix=no
4906 need_version=no
4907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4908 soname_spec='${libname}${release}${shared_ext}$major'
4909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4910 shlibpath_var=LD_LIBRARY_PATH
4911 shlibpath_overrides_runpath=no
4912 # This implies no fast_install, which is unacceptable.
4913 # Some rework will be needed to allow for fast_install
4914 # before this can be enabled.
4915 hardcode_into_libs=yes
4917 # We used to test for /lib/ld.so.1 and disable shared libraries on
4918 # powerpc, because MkLinux only supported shared libraries with the
4919 # GNU dynamic linker. Since this was broken with cross compilers,
4920 # most powerpc-linux boxes support dynamic linking these days and
4921 # people can always --disable-shared, the test was removed, and we
4922 # assume the GNU/Linux dynamic linker is in use.
4923 dynamic_linker='GNU/Linux ld.so'
4926 netbsd*)
4927 version_type=sunos
4928 need_lib_prefix=no
4929 need_version=no
4930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4933 dynamic_linker='NetBSD (a.out) ld.so'
4934 else
4935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
4936 soname_spec='${libname}${release}${shared_ext}$major'
4937 dynamic_linker='NetBSD ld.elf_so'
4939 shlibpath_var=LD_LIBRARY_PATH
4940 shlibpath_overrides_runpath=yes
4941 hardcode_into_libs=yes
4944 newsos6)
4945 version_type=linux
4946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4947 shlibpath_var=LD_LIBRARY_PATH
4948 shlibpath_overrides_runpath=yes
4951 nto-qnx)
4952 version_type=linux
4953 need_lib_prefix=no
4954 need_version=no
4955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4956 soname_spec='${libname}${release}${shared_ext}$major'
4957 shlibpath_var=LD_LIBRARY_PATH
4958 shlibpath_overrides_runpath=yes
4961 openbsd*)
4962 version_type=sunos
4963 need_lib_prefix=no
4964 need_version=no
4965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4967 shlibpath_var=LD_LIBRARY_PATH
4968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4969 case $host_os in
4970 openbsd2.[89] | openbsd2.[89].*)
4971 shlibpath_overrides_runpath=no
4974 shlibpath_overrides_runpath=yes
4976 esac
4977 else
4978 shlibpath_overrides_runpath=yes
4982 os2*)
4983 libname_spec='$name'
4984 shrext=".dll"
4985 need_lib_prefix=no
4986 library_names_spec='$libname${shared_ext} $libname.a'
4987 dynamic_linker='OS/2 ld.exe'
4988 shlibpath_var=LIBPATH
4991 osf3* | osf4* | osf5*)
4992 version_type=osf
4993 need_lib_prefix=no
4994 need_version=no
4995 soname_spec='${libname}${release}${shared_ext}$major'
4996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4997 shlibpath_var=LD_LIBRARY_PATH
4998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5002 sco3.2v5*)
5003 version_type=osf
5004 soname_spec='${libname}${release}${shared_ext}$major'
5005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5006 shlibpath_var=LD_LIBRARY_PATH
5009 solaris*)
5010 version_type=linux
5011 need_lib_prefix=no
5012 need_version=no
5013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5014 soname_spec='${libname}${release}${shared_ext}$major'
5015 shlibpath_var=LD_LIBRARY_PATH
5016 shlibpath_overrides_runpath=yes
5017 hardcode_into_libs=yes
5018 # ldd complains unless libraries are executable
5019 postinstall_cmds='chmod +x $lib'
5022 sunos4*)
5023 version_type=sunos
5024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5026 shlibpath_var=LD_LIBRARY_PATH
5027 shlibpath_overrides_runpath=yes
5028 if test "$with_gnu_ld" = yes; then
5029 need_lib_prefix=no
5031 need_version=yes
5034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5035 version_type=linux
5036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5037 soname_spec='${libname}${release}${shared_ext}$major'
5038 shlibpath_var=LD_LIBRARY_PATH
5039 case $host_vendor in
5040 sni)
5041 shlibpath_overrides_runpath=no
5042 need_lib_prefix=no
5043 export_dynamic_flag_spec='${wl}-Blargedynsym'
5044 runpath_var=LD_RUN_PATH
5046 siemens)
5047 need_lib_prefix=no
5049 motorola)
5050 need_lib_prefix=no
5051 need_version=no
5052 shlibpath_overrides_runpath=no
5053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5055 esac
5058 sysv4*MP*)
5059 if test -d /usr/nec ;then
5060 version_type=linux
5061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5062 soname_spec='$libname${shared_ext}.$major'
5063 shlibpath_var=LD_LIBRARY_PATH
5067 uts4*)
5068 version_type=linux
5069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5070 soname_spec='${libname}${release}${shared_ext}$major'
5071 shlibpath_var=LD_LIBRARY_PATH
5075 dynamic_linker=no
5077 esac
5078 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5079 echo "${ECHO_T}$dynamic_linker" >&6
5080 test "$dynamic_linker" = no && can_build_shared=no
5083 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5084 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5085 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088 libltdl_cv_shlibpath_var="$shlibpath_var"
5090 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5091 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5092 if test -n "$libltdl_cv_shlibpath_var"; then
5094 cat >>confdefs.h <<_ACEOF
5095 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5096 _ACEOF
5102 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5105 # See if the user has requested runtime debugging.
5106 LIBGCJDEBUG="disable"
5108 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5109 if test "${enable_libgcj_debug+set}" = set; then
5110 enableval="$enable_libgcj_debug"
5111 if test "$enable_libgcj_debug" = yes; then
5113 cat >>confdefs.h <<\_ACEOF
5114 #define DEBUG 1
5115 _ACEOF
5117 LIBGCJDEBUG="enable"
5122 # Check whether --with-escher or --without-escher was given.
5123 if test "${with_escher+set}" = set; then
5124 withval="$with_escher"
5127 case "$with_escher" in
5129 use_escher=false
5131 "no")
5132 use_escher=false
5134 "yes")
5135 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5136 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5137 { (exit 1); exit 1; }; }
5140 use_escher=true
5142 esac
5144 # Determine which AWT peer libraries to build
5145 # Check whether --enable-java-awt or --disable-java-awt was given.
5146 if test "${enable_java_awt+set}" = set; then
5147 enableval="$enable_java_awt"
5151 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5152 use_xlib_awt=""
5153 use_gtk_awt=""
5154 use_qt_awt=""
5155 use_x_awt=""
5156 # The default toolkit to use is the first one specified.
5157 TOOLKIT=
5160 for peer in $peerlibs ; do
5161 case $peer in
5162 xlib)
5163 if test "$no_x" = yes; then
5164 echo "*** xlib peers requested but no X library available" 1>&2
5165 exit 1
5166 else
5167 use_xlib_awt="yes"
5168 if test -z "$TOOLKIT"; then
5169 TOOLKIT=gnu.awt.xlib.XToolkit
5173 gtk)
5174 if test "$no_x" = yes; then
5175 echo "*** gtk peers requested but no X library available" 1>&2
5176 exit 1
5177 else
5178 use_gtk_awt=yes
5179 if test -z "$TOOLKIT"; then
5180 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5185 if test "$no_x" = yes; then
5186 # Perhaps we should admit the possibility of embedded Qt.
5187 echo "*** Qt peers requested but no X library available" 1>&2
5188 exit 1
5189 else
5190 use_qt_awt=yes
5191 if test -z "$TOOLKIT"; then
5192 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5197 use_x_awt=yes
5198 if test -z "$TOOLKIT"; then
5199 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5203 use_xlib_awt=
5204 use_gtk_awt=
5205 use_qt_awt=
5206 use_x_awt=
5207 break
5210 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5211 exit 1
5212 esac
5213 done
5217 if test "$use_xlib_awt" = yes; then
5218 XLIB_AWT_TRUE=
5219 XLIB_AWT_FALSE='#'
5220 else
5221 XLIB_AWT_TRUE='#'
5222 XLIB_AWT_FALSE=
5227 if test "$use_x_awt" = yes; then
5228 X_AWT_TRUE=
5229 X_AWT_FALSE='#'
5230 else
5231 X_AWT_TRUE='#'
5232 X_AWT_FALSE=
5237 cat >>confdefs.h <<_ACEOF
5238 #define AWT_TOOLKIT "$TOOLKIT"
5239 _ACEOF
5243 cat >>confdefs.h <<_ACEOF
5244 #define LIBGCJ_PREFIX "$prefix"
5245 _ACEOF
5248 # Create standard.omit based on decisions we just made.
5249 cp $srcdir/standard.omit.in standard.omit
5250 if test "$use_xlib_awt" != yes; then
5251 echo gnu/awt/xlib >> standard.omit
5252 echo gnu/gcj/xlib >> standard.omit
5254 if test "$use_x_awt" != yes; then
5255 echo gnu/java/awt/peer/x >> standard.omit
5258 # Tools that need to be compiled against classpath's tools classes
5259 : > vm-tools-packages
5260 for package in gnu/gcj/tools/gc_analyze ; do
5261 echo $package >> standard.omit
5262 echo $package >> vm-tools-packages
5263 done
5265 if test -z "${with_multisubdir}"; then
5266 builddotdot=.
5267 else
5268 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5271 NATIVE=yes
5273 # Which gcj and host gcj (for ecjx) do we use?
5274 which_gcj=default
5275 host_exeext=${ac_exeext}
5276 GCJ_FOR_ECJX=
5277 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5278 if test -n "${with_cross_host}"; then
5279 # We are being configured with a cross compiler. We can't
5280 # use ac_exeext, because that is for the target platform.
5281 NATIVE=no
5282 cross_host_exeext=
5283 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5284 case "${with_cross_host}" in
5285 *mingw* | *cygwin*)
5286 cross_host_exeext=.exe
5288 esac
5289 host_exeext=${cross_host_exeext}
5290 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5291 if test x"$build_noncanonical" = x"$with_cross_host"; then
5292 # Ordinary cross (host!=target and host=build)
5293 which_gcj=built
5294 else
5295 # Canadian cross (host!=target and host!=build)
5296 which_gcj=cross
5298 else
5299 which_gcj=cross
5301 else
5302 # We are being configured with a native or crossed-native compiler
5303 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5304 if test x"$build" = x"$host"; then
5305 # True native build (host=target and host=build)
5306 which_gcj=built
5307 else
5308 # Crossed-native build (host=target and host!=build)
5309 which_gcj=cross
5311 else
5312 which_gcj=path
5315 case "${which_gcj}" in
5316 built)
5317 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5318 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5320 cross)
5321 if test "x${with_newlib}" = "xyes"; then
5322 # FIXME (comment): Why is this needed?
5323 GCC_UNWIND_INCLUDE=
5324 GCJ="${target_noncanonical}-gcj"
5325 else
5326 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5328 GCJH='$(target_noncanonical)-gcjh'
5330 path)
5331 GCJ="gcj -B`${PWDCMD-pwd}`/"
5332 GCJH=gcjh
5334 esac
5340 # Create it, so that compile/link tests don't fail
5341 test -f libgcj.spec || touch libgcj.spec
5345 # Set up to configure Classpath.
5346 # FIXME: no supported way to pass args in autoconf.
5347 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5348 # Disable tool wrappers to avoid ltdl.h configure check.
5349 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5350 ac_configure_args="$ac_configure_args --disable-load-library"
5351 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5352 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5353 dir1=`cd $srcdir && pwd`
5354 dir2=`pwd`
5355 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5356 ac_configure_args="$ac_configure_args --disable-core-jni"
5357 ac_configure_args="$ac_configure_args --disable-examples"
5358 ac_configure_args="$ac_configure_args --with-glibj=build"
5359 if test "$plugin_enabled" != yes; then
5360 ac_configure_args="$ac_configure_args --disable-plugin"
5362 if test "$gconf_enabled" != yes; then
5363 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5364 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5366 if test "$use_gtk_awt" != yes; then
5367 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5369 if test "$use_qt_awt" != yes; then
5370 ac_configure_args="$ac_configure_args --disable-qt-peer"
5371 else
5372 # We need this as qt is disabled by default in classpath.
5373 ac_configure_args="$ac_configure_args --enable-qt-peer"
5375 if test "$use_x_awt" != yes; then
5376 ac_configure_args="$ac_configure_args --without-escher"
5377 else
5378 # We need this as escher is disabled by default in classpath.
5379 if test "$use_escher" != true; then
5380 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5381 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5382 { (exit 1); exit 1; }; }
5383 else
5384 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5387 # -Werror causes unavoidable problems in code using alsa.
5388 ac_configure_args="$ac_configure_args --disable-Werror"
5390 # Only use libltdl for non-newlib builds.
5391 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5392 case $enable_ltdl_convenience in
5393 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5394 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5395 { (exit 1); exit 1; }; } ;;
5396 "") enable_ltdl_convenience=yes
5397 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5398 esac
5399 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5400 LTDLINCL='-I${top_srcdir}/''libltdl'
5401 # For backwards non-gettext consistent compatibility...
5402 INCLTDL="$LTDLINCL"
5404 enable_dlopen=yes
5408 DIRLTDL=libltdl
5410 cat >>confdefs.h <<\_ACEOF
5411 #define USE_LTDL 1
5412 _ACEOF
5414 # Sigh. Libtool's macro doesn't do the right thing.
5415 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5416 # FIXME: this is a hack.
5417 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5418 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5425 macro_version='2.1a'
5426 macro_revision='1.2435'
5439 ltmain="$ac_aux_dir/ltmain.sh"
5441 # Set options
5444 enable_win32_dll=no
5447 # Check whether --enable-shared or --disable-shared was given.
5448 if test "${enable_shared+set}" = set; then
5449 enableval="$enable_shared"
5450 p=${PACKAGE-default}
5451 case $enableval in
5452 yes) enable_shared=yes ;;
5453 no) enable_shared=no ;;
5455 enable_shared=no
5456 # Look at the argument we got. We use all the common list separators.
5457 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5458 for pkg in $enableval; do
5459 IFS="$lt_save_ifs"
5460 if test "X$pkg" = "X$p"; then
5461 enable_shared=yes
5463 done
5464 IFS="$lt_save_ifs"
5466 esac
5467 else
5468 enable_shared=yes
5478 # Check whether --enable-static or --disable-static was given.
5479 if test "${enable_static+set}" = set; then
5480 enableval="$enable_static"
5481 p=${PACKAGE-default}
5482 case $enableval in
5483 yes) enable_static=yes ;;
5484 no) enable_static=no ;;
5486 enable_static=no
5487 # Look at the argument we got. We use all the common list separators.
5488 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5489 for pkg in $enableval; do
5490 IFS="$lt_save_ifs"
5491 if test "X$pkg" = "X$p"; then
5492 enable_static=yes
5494 done
5495 IFS="$lt_save_ifs"
5497 esac
5498 else
5499 enable_static=yes
5510 # Check whether --with-pic or --without-pic was given.
5511 if test "${with_pic+set}" = set; then
5512 withval="$with_pic"
5513 pic_mode="$withval"
5514 else
5515 pic_mode=default
5518 test -z "$pic_mode" && pic_mode=default
5526 # Check whether --enable-fast-install or --disable-fast-install was given.
5527 if test "${enable_fast_install+set}" = set; then
5528 enableval="$enable_fast_install"
5529 p=${PACKAGE-default}
5530 case $enableval in
5531 yes) enable_fast_install=yes ;;
5532 no) enable_fast_install=no ;;
5534 enable_fast_install=no
5535 # Look at the argument we got. We use all the common list separators.
5536 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5537 for pkg in $enableval; do
5538 IFS="$lt_save_ifs"
5539 if test "X$pkg" = "X$p"; then
5540 enable_fast_install=yes
5542 done
5543 IFS="$lt_save_ifs"
5545 esac
5546 else
5547 enable_fast_install=yes
5557 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5558 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5559 if test "${lt_cv_path_SED+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 # Loop through the user's path and test for sed and gsed.
5563 # Then use that list of sed's as ones to test for truncation.
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for lt_ac_prog in sed gsed; do
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5572 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5574 done
5575 done
5576 done
5577 IFS=$as_save_IFS
5578 lt_ac_max=0
5579 lt_ac_count=0
5580 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5581 # along with /bin/sed that truncates output.
5582 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5583 test ! -f $lt_ac_sed && continue
5584 cat /dev/null > conftest.in
5585 lt_ac_count=0
5586 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5587 # Check for GNU sed and select it if it is found.
5588 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5589 lt_cv_path_SED=$lt_ac_sed
5590 break
5592 while true; do
5593 cat conftest.in conftest.in >conftest.tmp
5594 mv conftest.tmp conftest.in
5595 cp conftest.in conftest.nl
5596 echo >>conftest.nl
5597 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5598 cmp -s conftest.out conftest.nl || break
5599 # 10000 chars as input seems more than enough
5600 test $lt_ac_count -gt 10 && break
5601 lt_ac_count=`expr $lt_ac_count + 1`
5602 if test $lt_ac_count -gt $lt_ac_max; then
5603 lt_ac_max=$lt_ac_count
5604 lt_cv_path_SED=$lt_ac_sed
5606 done
5607 done
5611 SED=$lt_cv_path_SED
5613 echo "$as_me:$LINENO: result: $SED" >&5
5614 echo "${ECHO_T}$SED" >&6
5616 test -z "$SED" && SED=sed
5617 Xsed="$SED -e 1s/^X//"
5629 echo "$as_me:$LINENO: checking for egrep" >&5
5630 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5631 if test "${ac_cv_prog_egrep+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5635 then ac_cv_prog_egrep='grep -E'
5636 else ac_cv_prog_egrep='egrep'
5639 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5640 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5641 EGREP=$ac_cv_prog_egrep
5644 echo "$as_me:$LINENO: checking for fgrep" >&5
5645 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5646 if test "${ac_cv_prog_fgrep+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5650 then ac_cv_prog_fgrep='grep -F'
5651 else ac_cv_prog_fgrep='fgrep'
5654 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5655 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5656 FGREP=$ac_cv_prog_fgrep
5659 test -z "$GREP" && GREP=grep
5679 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5680 if test "${with_gnu_ld+set}" = set; then
5681 withval="$with_gnu_ld"
5682 test "$withval" = no || with_gnu_ld=yes
5683 else
5684 with_gnu_ld=no
5686 ac_prog=ld
5687 if test "$GCC" = yes; then
5688 # Check if gcc -print-prog-name=ld gives a path.
5689 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5690 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5691 case $host in
5692 *-*-mingw*)
5693 # gcc leaves a trailing carriage return which upsets mingw
5694 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5696 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5697 esac
5698 case $ac_prog in
5699 # Accept absolute paths.
5700 [\\/]* | ?:[\\/]*)
5701 re_direlt='/[^/][^/]*/\.\./'
5702 # Canonicalize the pathname of ld
5703 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5704 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5705 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5706 done
5707 test -z "$LD" && LD="$ac_prog"
5710 # If it fails, then pretend we aren't using GCC.
5711 ac_prog=ld
5714 # If it is relative, then search for the first ld in PATH.
5715 with_gnu_ld=unknown
5717 esac
5718 elif test "$with_gnu_ld" = yes; then
5719 echo "$as_me:$LINENO: checking for GNU ld" >&5
5720 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5721 else
5722 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5723 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5725 if test "${lt_cv_path_LD+set}" = set; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 if test -z "$LD"; then
5729 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730 for ac_dir in $PATH; do
5731 IFS="$lt_save_ifs"
5732 test -z "$ac_dir" && ac_dir=.
5733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5734 lt_cv_path_LD="$ac_dir/$ac_prog"
5735 # Check to see if the program is GNU ld. I'd rather use --version,
5736 # but apparently some variants of GNU ld only accept -v.
5737 # Break only if it was the GNU/non-GNU ld that we prefer.
5738 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5739 *GNU* | *'with BFD'*)
5740 test "$with_gnu_ld" != no && break
5743 test "$with_gnu_ld" != yes && break
5745 esac
5747 done
5748 IFS="$lt_save_ifs"
5749 else
5750 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5754 LD="$lt_cv_path_LD"
5755 if test -n "$LD"; then
5756 echo "$as_me:$LINENO: result: $LD" >&5
5757 echo "${ECHO_T}$LD" >&6
5758 else
5759 echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5762 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5763 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5764 { (exit 1); exit 1; }; }
5765 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5766 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5767 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5771 case `$LD -v 2>&1 </dev/null` in
5772 *GNU* | *'with BFD'*)
5773 lt_cv_prog_gnu_ld=yes
5776 lt_cv_prog_gnu_ld=no
5778 esac
5780 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5781 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5782 with_gnu_ld=$lt_cv_prog_gnu_ld
5793 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5794 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5795 if test "${lt_cv_path_NM+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798 if test -n "$NM"; then
5799 # Let the user override the test.
5800 lt_cv_path_NM="$NM"
5801 else
5802 lt_nm_to_check="${ac_tool_prefix}nm"
5803 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5804 lt_nm_to_check="$lt_nm_to_check nm"
5806 for lt_tmp_nm in $lt_nm_to_check; do
5807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5808 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5809 IFS="$lt_save_ifs"
5810 test -z "$ac_dir" && ac_dir=.
5811 tmp_nm="$ac_dir/$lt_tmp_nm"
5812 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5813 # Check to see if the nm accepts a BSD-compat flag.
5814 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5815 # nm: unknown option "B" ignored
5816 # Tru64's nm complains that /dev/null is an invalid object file
5817 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5818 */dev/null* | *'Invalid file or object type'*)
5819 lt_cv_path_NM="$tmp_nm -B"
5820 break
5823 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 */dev/null*)
5825 lt_cv_path_NM="$tmp_nm -p"
5826 break
5829 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5830 continue # so that we can try to find one that supports BSD flags
5832 esac
5834 esac
5836 done
5837 IFS="$lt_save_ifs"
5838 done
5839 : ${lt_cv_path_NM=no}
5842 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5843 echo "${ECHO_T}$lt_cv_path_NM" >&6
5844 if test "$lt_cv_path_NM" != "no"; then
5845 NM="$lt_cv_path_NM"
5846 else
5847 # Didn't find any BSD compatible name lister, look for dumpbin.
5848 if test -n "$ac_tool_prefix"; then
5849 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5853 echo "$as_me:$LINENO: checking for $ac_word" >&5
5854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 else
5858 if test -n "$DUMPBIN"; then
5859 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5877 DUMPBIN=$ac_cv_prog_DUMPBIN
5878 if test -n "$DUMPBIN"; then
5879 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5880 echo "${ECHO_T}$DUMPBIN" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6
5886 test -n "$DUMPBIN" && break
5887 done
5889 if test -z "$DUMPBIN"; then
5890 ac_ct_DUMPBIN=$DUMPBIN
5891 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 echo "$as_me:$LINENO: checking for $ac_word" >&5
5896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5897 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900 if test -n "$ac_ct_DUMPBIN"; then
5901 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5910 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5914 done
5915 done
5919 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5920 if test -n "$ac_ct_DUMPBIN"; then
5921 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5922 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5923 else
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5928 test -n "$ac_ct_DUMPBIN" && break
5929 done
5930 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5932 DUMPBIN=$ac_ct_DUMPBIN
5936 if test "$DUMPBIN" != ":"; then
5937 NM="$DUMPBIN"
5940 test -z "$NM" && NM=nm
5947 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5948 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5949 if test "${lt_cv_nm_interface+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 lt_cv_nm_interface="BSD nm"
5953 echo "int some_variable = 0;" > conftest.$ac_ext
5954 (eval echo "\"\$as_me:5954: $ac_compile\"" >&5)
5955 (eval "$ac_compile" 2>conftest.err)
5956 cat conftest.err >&5
5957 (eval echo "\"\$as_me:5957: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5958 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5959 cat conftest.err >&5
5960 (eval echo "\"\$as_me:5960: output\"" >&5)
5961 cat conftest.out >&5
5962 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5963 lt_cv_nm_interface="MS dumpbin"
5965 rm -f conftest*
5967 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5968 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5970 # find the maximum length of command line arguments
5971 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5972 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5973 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5977 teststring="ABCD"
5979 case $build_os in
5980 msdosdjgpp*)
5981 # On DJGPP, this test can blow up pretty badly due to problems in libc
5982 # (any single argument exceeding 2000 bytes causes a buffer overrun
5983 # during glob expansion). Even if it were fixed, the result of this
5984 # check would be larger than it should be.
5985 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5988 gnu*)
5989 # Under GNU Hurd, this test is not required because there is
5990 # no limit to the length of command line arguments.
5991 # Libtool will interpret -1 as no limit whatsoever
5992 lt_cv_sys_max_cmd_len=-1;
5995 cygwin* | mingw*)
5996 # On Win9x/ME, this test blows up -- it succeeds, but takes
5997 # about 5 minutes as the teststring grows exponentially.
5998 # Worse, since 9x/ME are not pre-emptively multitasking,
5999 # you end up with a "frozen" computer, even though with patience
6000 # the test eventually succeeds (with a max line length of 256k).
6001 # Instead, let's just punt: use the minimum linelength reported by
6002 # all of the supported platforms: 8192 (on NT/2K/XP).
6003 lt_cv_sys_max_cmd_len=8192;
6006 amigaos*)
6007 # On AmigaOS with pdksh, this test takes hours, literally.
6008 # So we just punt and use a minimum line length of 8192.
6009 lt_cv_sys_max_cmd_len=8192;
6012 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6013 # This has been around since 386BSD, at least. Likely further.
6014 if test -x /sbin/sysctl; then
6015 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6016 elif test -x /usr/sbin/sysctl; then
6017 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6018 else
6019 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6021 # And add a safety zone
6022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6023 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6026 interix*)
6027 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6028 lt_cv_sys_max_cmd_len=196608
6031 osf*)
6032 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6033 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6034 # nice to cause kernel panics so lets avoid the loop below.
6035 # First set a reasonable default.
6036 lt_cv_sys_max_cmd_len=16384
6038 if test -x /sbin/sysconfig; then
6039 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6040 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6041 esac
6044 sco3.2v5*)
6045 lt_cv_sys_max_cmd_len=102400
6047 sysv5* | sco5v6* | sysv4.2uw2*)
6048 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6049 if test -n "$kargmax"; then
6050 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6051 else
6052 lt_cv_sys_max_cmd_len=32768
6056 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
6057 if test -n $lt_cv_sys_max_cmd_len; then
6058 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6059 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6060 else
6061 # Make teststring a little bigger before we do anything with it.
6062 # a 1K string should be a reasonable start.
6063 for i in 1 2 3 4 5 6 7 8 ; do
6064 teststring=$teststring$teststring
6065 done
6066 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6067 # If test is not a shell built-in, we'll probably end up computing a
6068 # maximum length that is only half of the actual maximum length, but
6069 # we can't tell.
6070 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6071 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6072 test $i != 17 # 1/2 MB should be enough
6074 i=`expr $i + 1`
6075 teststring=$teststring$teststring
6076 done
6077 # Only check the string length outside the loop.
6078 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6079 teststring=
6080 # Add a significant safety factor because C++ compilers can tack on
6081 # massive amounts of additional arguments before passing them to the
6082 # linker. It appears as though 1/2 is a usable value.
6083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6086 esac
6090 if test -n $lt_cv_sys_max_cmd_len ; then
6091 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6092 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6093 else
6094 echo "$as_me:$LINENO: result: none" >&5
6095 echo "${ECHO_T}none" >&6
6097 max_cmd_len=$lt_cv_sys_max_cmd_len
6104 : ${CP="cp -f"}
6105 : ${MV="mv -f"}
6106 : ${RM="rm -f"}
6108 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6109 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6110 # Try some XSI features
6111 xsi_shell=no
6112 ( _lt_dummy="a/b/c"
6113 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6114 = c,a/b,, ) >/dev/null 2>&1 \
6115 && xsi_shell=yes
6116 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6117 echo "${ECHO_T}$xsi_shell" >&6
6120 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6121 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6122 lt_shell_append=no
6123 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6124 >/dev/null 2>&1 \
6125 && lt_shell_append=yes
6126 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6127 echo "${ECHO_T}$lt_shell_append" >&6
6130 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6131 lt_unset=unset
6132 else
6133 lt_unset=false
6140 # test EBCDIC or ASCII
6141 case `echo X|tr X '\101'` in
6142 A) # ASCII based system
6143 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6144 lt_SP2NL='tr \040 \012'
6145 lt_NL2SP='tr \015\012 \040\040'
6147 *) # EBCDIC based system
6148 lt_SP2NL='tr \100 \n'
6149 lt_NL2SP='tr \r\n \100\100'
6151 esac
6161 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6162 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6163 if test "${lt_cv_ld_reload_flag+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 lt_cv_ld_reload_flag='-r'
6168 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6169 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6170 reload_flag=$lt_cv_ld_reload_flag
6171 case $reload_flag in
6172 "" | " "*) ;;
6173 *) reload_flag=" $reload_flag" ;;
6174 esac
6175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 case $host_os in
6177 darwin*)
6178 if test "$GCC" = yes; then
6179 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6180 else
6181 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6184 esac
6195 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6196 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6197 if test "${lt_cv_deplibs_check_method+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 lt_cv_file_magic_cmd='$MAGIC_CMD'
6201 lt_cv_file_magic_test_file=
6202 lt_cv_deplibs_check_method='unknown'
6203 # Need to set the preceding variable on all platforms that support
6204 # interlibrary dependencies.
6205 # 'none' -- dependencies not supported.
6206 # `unknown' -- same as none, but documents that we really don't know.
6207 # 'pass_all' -- all dependencies passed with no checks.
6208 # 'test_compile' -- check by making test program.
6209 # 'file_magic [[regex]]' -- check by looking for files in library path
6210 # which responds to the $file_magic_cmd with a given extended regex.
6211 # If you have `file' or equivalent on your system and you're not sure
6212 # whether `pass_all' will *always* work, you probably want this one.
6214 case $host_os in
6215 aix4* | aix5*)
6216 lt_cv_deplibs_check_method=pass_all
6219 beos*)
6220 lt_cv_deplibs_check_method=pass_all
6223 bsdi[45]*)
6224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6225 lt_cv_file_magic_cmd='/usr/bin/file -L'
6226 lt_cv_file_magic_test_file=/shlib/libc.so
6229 cygwin*)
6230 # func_win32_libid is a shell function defined in ltmain.sh
6231 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6232 lt_cv_file_magic_cmd='func_win32_libid'
6235 mingw* | pw32*)
6236 # Base MSYS/MinGW do not provide the 'file' command needed by
6237 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6238 # unless we find 'file', for example because we are cross-compiling.
6239 if ( file / ) >/dev/null 2>&1; then
6240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6241 lt_cv_file_magic_cmd='func_win32_libid'
6242 else
6243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6244 lt_cv_file_magic_cmd='$OBJDUMP -f'
6248 darwin* | rhapsody*)
6249 lt_cv_deplibs_check_method=pass_all
6252 freebsd* | dragonfly*)
6253 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6254 case $host_cpu in
6255 i*86 )
6256 # Not sure whether the presence of OpenBSD here was a mistake.
6257 # Let's accept both of them until this is cleared up.
6258 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6259 lt_cv_file_magic_cmd=/usr/bin/file
6260 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6262 esac
6263 else
6264 lt_cv_deplibs_check_method=pass_all
6268 gnu*)
6269 lt_cv_deplibs_check_method=pass_all
6272 hpux10.20* | hpux11*)
6273 lt_cv_file_magic_cmd=/usr/bin/file
6274 case $host_cpu in
6275 ia64*)
6276 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6277 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6279 hppa*64*)
6280 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]'
6281 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6284 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6285 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6287 esac
6290 interix[3-9]*)
6291 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6292 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6295 irix5* | irix6* | nonstopux*)
6296 case $LD in
6297 *-32|*"-32 ") libmagic=32-bit;;
6298 *-n32|*"-n32 ") libmagic=N32;;
6299 *-64|*"-64 ") libmagic=64-bit;;
6300 *) libmagic=never-match;;
6301 esac
6302 lt_cv_deplibs_check_method=pass_all
6305 # This must be Linux ELF.
6306 linux* | k*bsd*-gnu)
6307 lt_cv_deplibs_check_method=pass_all
6310 netbsd*)
6311 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6313 else
6314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318 newos6*)
6319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6320 lt_cv_file_magic_cmd=/usr/bin/file
6321 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6324 *nto* | *qnx*)
6325 lt_cv_deplibs_check_method=pass_all
6328 openbsd*)
6329 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6331 else
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336 osf3* | osf4* | osf5*)
6337 lt_cv_deplibs_check_method=pass_all
6340 rdos*)
6341 lt_cv_deplibs_check_method=pass_all
6344 solaris*)
6345 lt_cv_deplibs_check_method=pass_all
6348 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6349 lt_cv_deplibs_check_method=pass_all
6352 sysv4 | sysv4.3*)
6353 case $host_vendor in
6354 motorola)
6355 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]'
6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6358 ncr)
6359 lt_cv_deplibs_check_method=pass_all
6361 sequent)
6362 lt_cv_file_magic_cmd='/bin/file'
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6365 sni)
6366 lt_cv_file_magic_cmd='/bin/file'
6367 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6368 lt_cv_file_magic_test_file=/lib/libc.so
6370 siemens)
6371 lt_cv_deplibs_check_method=pass_all
6374 lt_cv_deplibs_check_method=pass_all
6376 esac
6379 tpf*)
6380 lt_cv_deplibs_check_method=pass_all
6382 esac
6385 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6386 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6387 file_magic_cmd=$lt_cv_file_magic_cmd
6388 deplibs_check_method=$lt_cv_deplibs_check_method
6389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6402 if test -n "$ac_tool_prefix"; then
6403 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}ar; ac_word=$2
6405 echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6407 if test "${ac_cv_prog_AR+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410 if test -n "$AR"; then
6411 ac_cv_prog_AR="$AR" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6416 IFS=$as_save_IFS
6417 test -z "$as_dir" && as_dir=.
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420 ac_cv_prog_AR="${ac_tool_prefix}ar"
6421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6422 break 2
6424 done
6425 done
6429 AR=$ac_cv_prog_AR
6430 if test -n "$AR"; then
6431 echo "$as_me:$LINENO: result: $AR" >&5
6432 echo "${ECHO_T}$AR" >&6
6433 else
6434 echo "$as_me:$LINENO: result: no" >&5
6435 echo "${ECHO_T}no" >&6
6439 if test -z "$ac_cv_prog_AR"; then
6440 ac_ct_AR=$AR
6441 # Extract the first word of "ar", so it can be a program name with args.
6442 set dummy ar; ac_word=$2
6443 echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6446 echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448 if test -n "$ac_ct_AR"; then
6449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_ac_ct_AR="ar"
6459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6465 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6469 if test -n "$ac_ct_AR"; then
6470 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6471 echo "${ECHO_T}$ac_ct_AR" >&6
6472 else
6473 echo "$as_me:$LINENO: result: no" >&5
6474 echo "${ECHO_T}no" >&6
6477 AR=$ac_ct_AR
6478 else
6479 AR="$ac_cv_prog_AR"
6482 test -z "$AR" && AR=ar
6483 test -z "$AR_FLAGS" && AR_FLAGS=cru
6495 if test -n "$ac_tool_prefix"; then
6496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6497 set dummy ${ac_tool_prefix}strip; ac_word=$2
6498 echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6500 if test "${ac_cv_prog_STRIP+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 if test -n "$STRIP"; then
6504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6522 STRIP=$ac_cv_prog_STRIP
6523 if test -n "$STRIP"; then
6524 echo "$as_me:$LINENO: result: $STRIP" >&5
6525 echo "${ECHO_T}$STRIP" >&6
6526 else
6527 echo "$as_me:$LINENO: result: no" >&5
6528 echo "${ECHO_T}no" >&6
6532 if test -z "$ac_cv_prog_STRIP"; then
6533 ac_ct_STRIP=$STRIP
6534 # Extract the first word of "strip", so it can be a program name with args.
6535 set dummy strip; ac_word=$2
6536 echo "$as_me:$LINENO: checking for $ac_word" >&5
6537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6538 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6539 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 else
6541 if test -n "$ac_ct_STRIP"; then
6542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6543 else
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6547 IFS=$as_save_IFS
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_ac_ct_STRIP="strip"
6552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6553 break 2
6555 done
6556 done
6558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6562 if test -n "$ac_ct_STRIP"; then
6563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6564 echo "${ECHO_T}$ac_ct_STRIP" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567 echo "${ECHO_T}no" >&6
6570 STRIP=$ac_ct_STRIP
6571 else
6572 STRIP="$ac_cv_prog_STRIP"
6575 test -z "$STRIP" && STRIP=:
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6585 echo "$as_me:$LINENO: checking for $ac_word" >&5
6586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6587 if test "${ac_cv_prog_RANLIB+set}" = set; then
6588 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590 if test -n "$RANLIB"; then
6591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6604 done
6605 done
6609 RANLIB=$ac_cv_prog_RANLIB
6610 if test -n "$RANLIB"; then
6611 echo "$as_me:$LINENO: result: $RANLIB" >&5
6612 echo "${ECHO_T}$RANLIB" >&6
6613 else
6614 echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6
6619 if test -z "$ac_cv_prog_RANLIB"; then
6620 ac_ct_RANLIB=$RANLIB
6621 # Extract the first word of "ranlib", so it can be a program name with args.
6622 set dummy ranlib; ac_word=$2
6623 echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6625 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628 if test -n "$ac_ct_RANLIB"; then
6629 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6630 else
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 for as_dir in $PATH
6634 IFS=$as_save_IFS
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6638 ac_cv_prog_ac_ct_RANLIB="ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 break 2
6642 done
6643 done
6645 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6648 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6649 if test -n "$ac_ct_RANLIB"; then
6650 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6651 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6652 else
6653 echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6
6657 RANLIB=$ac_ct_RANLIB
6658 else
6659 RANLIB="$ac_cv_prog_RANLIB"
6662 test -z "$RANLIB" && RANLIB=:
6669 # Determine commands to create old-style static archives.
6670 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6671 old_postinstall_cmds='chmod 644 $oldlib'
6672 old_postuninstall_cmds=
6674 if test -n "$RANLIB"; then
6675 case $host_os in
6676 openbsd*)
6677 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6680 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6682 esac
6683 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6719 # If no C compiler was specified, use CC.
6720 LTCC=${LTCC-"$CC"}
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6725 # Allow CC to be a program name with arguments.
6726 compiler=$CC
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6731 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6732 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745 # Define system-specific variables.
6746 case $host_os in
6747 aix*)
6748 symcode='[BCDT]'
6750 cygwin* | mingw* | pw32*)
6751 symcode='[ABCDGISTW]'
6753 hpux*)
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6758 irix* | nonstopux*)
6759 symcode='[BCDEGRST]'
6761 osf*)
6762 symcode='[BCDEGQRST]'
6764 solaris*)
6765 symcode='[BDRT]'
6767 sco3.2v5*)
6768 symcode='[DT]'
6770 sysv4.2uw2*)
6771 symcode='[DT]'
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6774 symcode='[ABDT]'
6776 sysv4)
6777 symcode='[DFNSTU]'
6779 esac
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6785 esac
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6795 # Handle CRLF in mingw tool chain
6796 opt_cr=
6797 case $build_os in
6798 mingw*)
6799 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6801 esac
6803 # Try without a prefix underscore, then with it.
6804 for ac_symprfx in "" "_"; do
6806 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6807 symxfrm="\\1 $ac_symprfx\\2 \\2"
6809 # Write the raw and C identifiers.
6810 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6811 # Fake it for dumpbin and say T for any non-static function
6812 # and D for any global variable.
6813 # Also find C++ and __fastcall symbols from MSVC++,
6814 # which start with @ or ?.
6815 lt_cv_sys_global_symbol_pipe="$AWK '"\
6816 " {last_section=section; section=\$ 3};"\
6817 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6818 " \$ 0!~/External *\|/{next};"\
6819 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6820 " {if(hide[section]) next};"\
6821 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6822 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6823 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6824 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6825 " ' prfx=^$ac_symprfx"
6826 else
6827 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6830 # Check to see that the pipe works correctly.
6831 pipe_works=no
6833 rm -f conftest*
6834 cat > conftest.$ac_ext <<_LT_EOF
6835 #ifdef __cplusplus
6836 extern "C" {
6837 #endif
6838 char nm_test_var;
6839 void nm_test_func(void);
6840 void nm_test_func(void){}
6841 #ifdef __cplusplus
6843 #endif
6844 int main(){nm_test_var='a';nm_test_func();return(0);}
6845 _LT_EOF
6847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6848 (eval $ac_compile) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; then
6852 # Now try to grab the symbols.
6853 nlist=conftest.nm
6854 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6855 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6856 ac_status=$?
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && test -s "$nlist"; then
6859 # Try sorting and uniquifying the output.
6860 if sort "$nlist" | uniq > "$nlist"T; then
6861 mv -f "$nlist"T "$nlist"
6862 else
6863 rm -f "$nlist"T
6866 # Make sure that we snagged all the symbols we need.
6867 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6868 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6869 cat <<_LT_EOF > conftest.$ac_ext
6870 #ifdef __cplusplus
6871 extern "C" {
6872 #endif
6874 _LT_EOF
6875 # Now generate the symbol file.
6876 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6878 cat <<_LT_EOF >> conftest.$ac_ext
6880 /* The mapping between symbol names and symbols. */
6881 const struct {
6882 const char *name;
6883 void *address;
6885 lt__PROGRAM__LTX_preloaded_symbols[] =
6887 { "@PROGRAM@", (void *) 0 },
6888 _LT_EOF
6889 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6890 cat <<\_LT_EOF >> conftest.$ac_ext
6891 {0, (void *) 0}
6894 /* This works around a problem in FreeBSD linker */
6895 #ifdef FREEBSD_WORKAROUND
6896 static const void *lt_preloaded_setup() {
6897 return lt__PROGRAM__LTX_preloaded_symbols;
6899 #endif
6901 #ifdef __cplusplus
6903 #endif
6904 _LT_EOF
6905 # Now try linking the two files.
6906 mv conftest.$ac_objext conftstm.$ac_objext
6907 lt_save_LIBS="$LIBS"
6908 lt_save_CFLAGS="$CFLAGS"
6909 LIBS="conftstm.$ac_objext"
6910 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6912 (eval $ac_link) 2>&5
6913 ac_status=$?
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6916 pipe_works=yes
6918 LIBS="$lt_save_LIBS"
6919 CFLAGS="$lt_save_CFLAGS"
6920 else
6921 echo "cannot find nm_test_func in $nlist" >&5
6923 else
6924 echo "cannot find nm_test_var in $nlist" >&5
6926 else
6927 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6929 else
6930 echo "$progname: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6933 rm -f conftest* conftst*
6935 # Do not use the global_symbol_pipe unless it works.
6936 if test "$pipe_works" = yes; then
6937 break
6938 else
6939 lt_cv_sys_global_symbol_pipe=
6941 done
6945 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6946 lt_cv_sys_global_symbol_to_cdecl=
6948 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6949 echo "$as_me:$LINENO: result: failed" >&5
6950 echo "${ECHO_T}failed" >&6
6951 else
6952 echo "$as_me:$LINENO: result: ok" >&5
6953 echo "${ECHO_T}ok" >&6
6973 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6974 if test "${enable_libtool_lock+set}" = set; then
6975 enableval="$enable_libtool_lock"
6978 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6980 # Some flags need to be propagated to the compiler or linker for good
6981 # libtool support.
6982 case $host in
6983 ia64-*-hpux*)
6984 # Find out which ABI we are using.
6985 echo 'int i;' > conftest.$ac_ext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987 (eval $ac_compile) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; then
6991 case `/usr/bin/file conftest.$ac_objext` in
6992 *ELF-32*)
6993 HPUX_IA64_MODE="32"
6995 *ELF-64*)
6996 HPUX_IA64_MODE="64"
6998 esac
7000 rm -rf conftest*
7002 *-*-irix6*)
7003 # Find out which ABI we are using.
7004 echo '#line 7004 "configure"' > conftest.$ac_ext
7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7006 (eval $ac_compile) 2>&5
7007 ac_status=$?
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); }; then
7010 if test "$lt_cv_prog_gnu_ld" = yes; then
7011 case `/usr/bin/file conftest.$ac_objext` in
7012 *32-bit*)
7013 LD="${LD-ld} -melf32bsmip"
7015 *N32*)
7016 LD="${LD-ld} -melf32bmipn32"
7018 *64-bit*)
7019 LD="${LD-ld} -melf64bmip"
7021 esac
7022 else
7023 case `/usr/bin/file conftest.$ac_objext` in
7024 *32-bit*)
7025 LD="${LD-ld} -32"
7027 *N32*)
7028 LD="${LD-ld} -n32"
7030 *64-bit*)
7031 LD="${LD-ld} -64"
7033 esac
7036 rm -rf conftest*
7039 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7040 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7041 # Find out which ABI we are using.
7042 echo 'int i;' > conftest.$ac_ext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>&5
7045 ac_status=$?
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); }; then
7048 case `/usr/bin/file conftest.o` in
7049 *32-bit*)
7050 case $host in
7051 x86_64-*kfreebsd*-gnu)
7052 LD="${LD-ld} -m elf_i386_fbsd"
7054 x86_64-*linux*)
7055 LD="${LD-ld} -m elf_i386"
7057 ppc64-*linux*|powerpc64-*linux*)
7058 LD="${LD-ld} -m elf32ppclinux"
7060 s390x-*linux*)
7061 LD="${LD-ld} -m elf_s390"
7063 sparc64-*linux*)
7064 LD="${LD-ld} -m elf32_sparc"
7066 esac
7068 *64-bit*)
7069 case $host in
7070 x86_64-*kfreebsd*-gnu)
7071 LD="${LD-ld} -m elf_x86_64_fbsd"
7073 x86_64-*linux*)
7074 LD="${LD-ld} -m elf_x86_64"
7076 ppc*-*linux*|powerpc*-*linux*)
7077 LD="${LD-ld} -m elf64ppc"
7079 s390*-*linux*|s390*-*tpf*)
7080 LD="${LD-ld} -m elf64_s390"
7082 sparc*-*linux*)
7083 LD="${LD-ld} -m elf64_sparc"
7085 esac
7087 esac
7089 rm -rf conftest*
7092 *-*-sco3.2v5*)
7093 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7094 SAVE_CFLAGS="$CFLAGS"
7095 CFLAGS="$CFLAGS -belf"
7096 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7097 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7098 if test "${lt_cv_cc_needs_belf+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 else
7101 ac_ext=c
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7107 if test x$gcc_no_link = xyes; then
7108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7110 { (exit 1); exit 1; }; }
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7120 main ()
7124 return 0;
7126 _ACEOF
7127 rm -f conftest.$ac_objext conftest$ac_exeext
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>conftest.er1
7130 ac_status=$?
7131 grep -v '^ *+' conftest.er1 >conftest.err
7132 rm -f conftest.er1
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } &&
7136 { ac_try='test -z "$ac_c_werror_flag"
7137 || test ! -s conftest.err'
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5
7140 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; } &&
7143 { ac_try='test -s conftest$ac_exeext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 (eval $ac_try) 2>&5
7146 ac_status=$?
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 lt_cv_cc_needs_belf=yes
7150 else
7151 echo "$as_me: failed program was:" >&5
7152 sed 's/^/| /' conftest.$ac_ext >&5
7154 lt_cv_cc_needs_belf=no
7156 rm -f conftest.err conftest.$ac_objext \
7157 conftest$ac_exeext conftest.$ac_ext
7158 ac_ext=c
7159 ac_cpp='$CPP $CPPFLAGS'
7160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7165 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7166 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7167 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7168 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7169 CFLAGS="$SAVE_CFLAGS"
7172 sparc*-*solaris*)
7173 # Find out which ABI we are using.
7174 echo 'int i;' > conftest.$ac_ext
7175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7176 (eval $ac_compile) 2>&5
7177 ac_status=$?
7178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); }; then
7180 case `/usr/bin/file conftest.o` in
7181 *64-bit*)
7182 case $lt_cv_prog_gnu_ld in
7183 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7184 *) LD="${LD-ld} -64" ;;
7185 esac
7187 esac
7189 rm -rf conftest*
7191 esac
7193 need_locks="$enable_libtool_lock"
7195 ac_ext=c
7196 ac_cpp='$CPP $CPPFLAGS'
7197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7200 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7202 # On Suns, sometimes $CPP names a directory.
7203 if test -n "$CPP" && test -d "$CPP"; then
7204 CPP=
7206 if test -z "$CPP"; then
7207 if test "${ac_cv_prog_CPP+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 # Double quotes because CPP needs to be expanded
7211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7213 ac_preproc_ok=false
7214 for ac_c_preproc_warn_flag in '' yes
7216 # Use a header file that comes with gcc, so configuring glibc
7217 # with a fresh cross-compiler works.
7218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7219 # <limits.h> exists even on freestanding compilers.
7220 # On the NeXT, cc -E runs the code through the compiler's parser,
7221 # not just through cpp. "Syntax error" is here to catch this case.
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h. */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h. */
7228 #ifdef __STDC__
7229 # include <limits.h>
7230 #else
7231 # include <assert.h>
7232 #endif
7233 Syntax error
7234 _ACEOF
7235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } >/dev/null; then
7243 if test -s conftest.err; then
7244 ac_cpp_err=$ac_c_preproc_warn_flag
7245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7246 else
7247 ac_cpp_err=
7249 else
7250 ac_cpp_err=yes
7252 if test -z "$ac_cpp_err"; then
7254 else
7255 echo "$as_me: failed program was:" >&5
7256 sed 's/^/| /' conftest.$ac_ext >&5
7258 # Broken: fails on valid input.
7259 continue
7261 rm -f conftest.err conftest.$ac_ext
7263 # OK, works on sane cases. Now check whether non-existent headers
7264 # can be detected and how.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <ac_nonexistent.h>
7272 _ACEOF
7273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } >/dev/null; then
7281 if test -s conftest.err; then
7282 ac_cpp_err=$ac_c_preproc_warn_flag
7283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7284 else
7285 ac_cpp_err=
7287 else
7288 ac_cpp_err=yes
7290 if test -z "$ac_cpp_err"; then
7291 # Broken: success on invalid input.
7292 continue
7293 else
7294 echo "$as_me: failed program was:" >&5
7295 sed 's/^/| /' conftest.$ac_ext >&5
7297 # Passes both tests.
7298 ac_preproc_ok=:
7299 break
7301 rm -f conftest.err conftest.$ac_ext
7303 done
7304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305 rm -f conftest.err conftest.$ac_ext
7306 if $ac_preproc_ok; then
7307 break
7310 done
7311 ac_cv_prog_CPP=$CPP
7314 CPP=$ac_cv_prog_CPP
7315 else
7316 ac_cv_prog_CPP=$CPP
7318 echo "$as_me:$LINENO: result: $CPP" >&5
7319 echo "${ECHO_T}$CPP" >&6
7320 ac_preproc_ok=false
7321 for ac_c_preproc_warn_flag in '' yes
7323 # Use a header file that comes with gcc, so configuring glibc
7324 # with a fresh cross-compiler works.
7325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7326 # <limits.h> exists even on freestanding compilers.
7327 # On the NeXT, cc -E runs the code through the compiler's parser,
7328 # not just through cpp. "Syntax error" is here to catch this case.
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #ifdef __STDC__
7336 # include <limits.h>
7337 #else
7338 # include <assert.h>
7339 #endif
7340 Syntax error
7341 _ACEOF
7342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } >/dev/null; then
7350 if test -s conftest.err; then
7351 ac_cpp_err=$ac_c_preproc_warn_flag
7352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7353 else
7354 ac_cpp_err=
7356 else
7357 ac_cpp_err=yes
7359 if test -z "$ac_cpp_err"; then
7361 else
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 # Broken: fails on valid input.
7366 continue
7368 rm -f conftest.err conftest.$ac_ext
7370 # OK, works on sane cases. Now check whether non-existent headers
7371 # can be detected and how.
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 #include <ac_nonexistent.h>
7379 _ACEOF
7380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } >/dev/null; then
7388 if test -s conftest.err; then
7389 ac_cpp_err=$ac_c_preproc_warn_flag
7390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7391 else
7392 ac_cpp_err=
7394 else
7395 ac_cpp_err=yes
7397 if test -z "$ac_cpp_err"; then
7398 # Broken: success on invalid input.
7399 continue
7400 else
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 # Passes both tests.
7405 ac_preproc_ok=:
7406 break
7408 rm -f conftest.err conftest.$ac_ext
7410 done
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then
7415 else
7416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7417 See \`config.log' for more details." >&5
7418 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7419 See \`config.log' for more details." >&2;}
7420 { (exit 1); exit 1; }; }
7423 ac_ext=c
7424 ac_cpp='$CPP $CPPFLAGS'
7425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7430 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7431 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7432 if test "${ac_cv_header_stdc+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435 cat >conftest.$ac_ext <<_ACEOF
7436 /* confdefs.h. */
7437 _ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 #include <stdlib.h>
7442 #include <stdarg.h>
7443 #include <string.h>
7444 #include <float.h>
7447 main ()
7451 return 0;
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_header_stdc=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_header_stdc=no
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 if test $ac_cv_header_stdc = yes; then
7486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 #include <string.h>
7495 _ACEOF
7496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7497 $EGREP "memchr" >/dev/null 2>&1; then
7499 else
7500 ac_cv_header_stdc=no
7502 rm -f conftest*
7506 if test $ac_cv_header_stdc = yes; then
7507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7508 cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h. */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 #include <stdlib.h>
7516 _ACEOF
7517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7518 $EGREP "free" >/dev/null 2>&1; then
7520 else
7521 ac_cv_header_stdc=no
7523 rm -f conftest*
7527 if test $ac_cv_header_stdc = yes; then
7528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7529 if test "$cross_compiling" = yes; then
7531 else
7532 cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h. */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 #include <ctype.h>
7539 #if ((' ' & 0x0FF) == 0x020)
7540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7542 #else
7543 # define ISLOWER(c) \
7544 (('a' <= (c) && (c) <= 'i') \
7545 || ('j' <= (c) && (c) <= 'r') \
7546 || ('s' <= (c) && (c) <= 'z'))
7547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7548 #endif
7550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7552 main ()
7554 int i;
7555 for (i = 0; i < 256; i++)
7556 if (XOR (islower (i), ISLOWER (i))
7557 || toupper (i) != TOUPPER (i))
7558 exit(2);
7559 exit (0);
7561 _ACEOF
7562 rm -f conftest$ac_exeext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564 (eval $ac_link) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569 (eval $ac_try) 2>&5
7570 ac_status=$?
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); }; }; then
7574 else
7575 echo "$as_me: program exited with status $ac_status" >&5
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 ( exit $ac_status )
7580 ac_cv_header_stdc=no
7582 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7586 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7587 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7588 if test $ac_cv_header_stdc = yes; then
7590 cat >>confdefs.h <<\_ACEOF
7591 #define STDC_HEADERS 1
7592 _ACEOF
7596 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7607 inttypes.h stdint.h unistd.h
7609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 echo "$as_me:$LINENO: checking for $ac_header" >&5
7611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7623 #include <$ac_header>
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7627 (eval $ac_compile) 2>conftest.er1
7628 ac_status=$?
7629 grep -v '^ *+' conftest.er1 >conftest.err
7630 rm -f conftest.er1
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag"
7635 || test ! -s conftest.err'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; } &&
7641 { ac_try='test -s conftest.$ac_objext'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7647 eval "$as_ac_Header=yes"
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7652 eval "$as_ac_Header=no"
7654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7659 cat >>confdefs.h <<_ACEOF
7660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7661 _ACEOF
7665 done
7669 for ac_header in dlfcn.h
7671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7685 #include <$ac_header>
7686 _ACEOF
7687 rm -f conftest.$ac_objext
7688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689 (eval $ac_compile) 2>conftest.er1
7690 ac_status=$?
7691 grep -v '^ *+' conftest.er1 >conftest.err
7692 rm -f conftest.er1
7693 cat conftest.err >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } &&
7696 { ac_try='test -z "$ac_c_werror_flag"
7697 || test ! -s conftest.err'
7698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7699 (eval $ac_try) 2>&5
7700 ac_status=$?
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); }; } &&
7703 { ac_try='test -s conftest.$ac_objext'
7704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7705 (eval $ac_try) 2>&5
7706 ac_status=$?
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7709 eval "$as_ac_Header=yes"
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 eval "$as_ac_Header=no"
7716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7723 _ACEOF
7727 done
7731 ac_ext=cc
7732 ac_cpp='$CXXCPP $CPPFLAGS'
7733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7736 if test -n "$ac_tool_prefix"; then
7737 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7741 echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_prog_CXX+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 if test -n "$CXX"; then
7747 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7748 else
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750 for as_dir in $PATH
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758 break 2
7760 done
7761 done
7765 CXX=$ac_cv_prog_CXX
7766 if test -n "$CXX"; then
7767 echo "$as_me:$LINENO: result: $CXX" >&5
7768 echo "${ECHO_T}$CXX" >&6
7769 else
7770 echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7774 test -n "$CXX" && break
7775 done
7777 if test -z "$CXX"; then
7778 ac_ct_CXX=$CXX
7779 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7781 # Extract the first word of "$ac_prog", so it can be a program name with args.
7782 set dummy $ac_prog; ac_word=$2
7783 echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7785 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788 if test -n "$ac_ct_CXX"; then
7789 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_ac_ct_CXX="$ac_prog"
7799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7802 done
7803 done
7807 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7808 if test -n "$ac_ct_CXX"; then
7809 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7810 echo "${ECHO_T}$ac_ct_CXX" >&6
7811 else
7812 echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6
7816 test -n "$ac_ct_CXX" && break
7817 done
7818 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
7820 CXX=$ac_ct_CXX
7824 # Provide some information about the compiler.
7825 echo "$as_me:$LINENO:" \
7826 "checking for C++ compiler version" >&5
7827 ac_compiler=`set X $ac_compile; echo $2`
7828 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7829 (eval $ac_compiler --version </dev/null >&5) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }
7833 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7834 (eval $ac_compiler -v </dev/null >&5) 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }
7838 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7839 (eval $ac_compiler -V </dev/null >&5) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }
7844 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7845 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
7846 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7857 main ()
7859 #ifndef __GNUC__
7860 choke me
7861 #endif
7864 return 0;
7866 _ACEOF
7867 rm -f conftest.$ac_objext
7868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7869 (eval $ac_compile) 2>conftest.er1
7870 ac_status=$?
7871 grep -v '^ *+' conftest.er1 >conftest.err
7872 rm -f conftest.er1
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_cxx_werror_flag"
7877 || test ! -s conftest.err'
7878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7879 (eval $ac_try) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_compiler_gnu=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_compiler_gnu=no
7896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7900 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7901 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
7902 GXX=`test $ac_compiler_gnu = yes && echo yes`
7903 ac_test_CXXFLAGS=${CXXFLAGS+set}
7904 ac_save_CXXFLAGS=$CXXFLAGS
7905 CXXFLAGS="-g"
7906 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7907 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
7908 if test "${ac_cv_prog_cxx_g+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7919 main ()
7923 return 0;
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928 (eval $ac_compile) 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } &&
7935 { ac_try='test -z "$ac_cxx_werror_flag"
7936 || test ! -s conftest.err'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; } &&
7942 { ac_try='test -s conftest.$ac_objext'
7943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 (eval $ac_try) 2>&5
7945 ac_status=$?
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 ac_cv_prog_cxx_g=yes
7949 else
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7953 ac_cv_prog_cxx_g=no
7955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
7959 if test "$ac_test_CXXFLAGS" = set; then
7960 CXXFLAGS=$ac_save_CXXFLAGS
7961 elif test $ac_cv_prog_cxx_g = yes; then
7962 if test "$GXX" = yes; then
7963 CXXFLAGS="-g -O2"
7964 else
7965 CXXFLAGS="-g"
7967 else
7968 if test "$GXX" = yes; then
7969 CXXFLAGS="-O2"
7970 else
7971 CXXFLAGS=
7974 for ac_declaration in \
7975 '' \
7976 'extern "C" void std::exit (int) throw (); using std::exit;' \
7977 'extern "C" void std::exit (int); using std::exit;' \
7978 'extern "C" void exit (int) throw ();' \
7979 'extern "C" void exit (int);' \
7980 'void exit (int);'
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 $ac_declaration
7989 #include <stdlib.h>
7991 main ()
7993 exit (42);
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8000 (eval $ac_compile) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_cxx_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest.$ac_objext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 continue
8027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8028 cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h. */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_declaration
8036 main ()
8038 exit (42);
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
8046 ac_status=$?
8047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -z "$ac_cxx_werror_flag"
8053 || test ! -s conftest.err'
8054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8055 (eval $ac_try) 2>&5
8056 ac_status=$?
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); }; } &&
8059 { ac_try='test -s conftest.$ac_objext'
8060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061 (eval $ac_try) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; }; then
8065 break
8066 else
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8072 done
8073 rm -f conftest*
8074 if test -n "$ac_declaration"; then
8075 echo '#ifdef __cplusplus' >>confdefs.h
8076 echo $ac_declaration >>confdefs.h
8077 echo '#endif' >>confdefs.h
8080 ac_ext=c
8081 ac_cpp='$CPP $CPPFLAGS'
8082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8087 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8088 (test "X$CXX" != "Xg++"))) ; then
8089 ac_ext=cc
8090 ac_cpp='$CXXCPP $CPPFLAGS'
8091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8094 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8095 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8096 if test -z "$CXXCPP"; then
8097 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100 # Double quotes because CXXCPP needs to be expanded
8101 for CXXCPP in "$CXX -E" "/lib/cpp"
8103 ac_preproc_ok=false
8104 for ac_cxx_preproc_warn_flag in '' yes
8106 # Use a header file that comes with gcc, so configuring glibc
8107 # with a fresh cross-compiler works.
8108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8109 # <limits.h> exists even on freestanding compilers.
8110 # On the NeXT, cc -E runs the code through the compiler's parser,
8111 # not just through cpp. "Syntax error" is here to catch this case.
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h. */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8118 #ifdef __STDC__
8119 # include <limits.h>
8120 #else
8121 # include <assert.h>
8122 #endif
8123 Syntax error
8124 _ACEOF
8125 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } >/dev/null; then
8133 if test -s conftest.err; then
8134 ac_cpp_err=$ac_cxx_preproc_warn_flag
8135 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8136 else
8137 ac_cpp_err=
8139 else
8140 ac_cpp_err=yes
8142 if test -z "$ac_cpp_err"; then
8144 else
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8148 # Broken: fails on valid input.
8149 continue
8151 rm -f conftest.err conftest.$ac_ext
8153 # OK, works on sane cases. Now check whether non-existent headers
8154 # can be detected and how.
8155 cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h. */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 #include <ac_nonexistent.h>
8162 _ACEOF
8163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8164 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8165 ac_status=$?
8166 grep -v '^ *+' conftest.er1 >conftest.err
8167 rm -f conftest.er1
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } >/dev/null; then
8171 if test -s conftest.err; then
8172 ac_cpp_err=$ac_cxx_preproc_warn_flag
8173 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8174 else
8175 ac_cpp_err=
8177 else
8178 ac_cpp_err=yes
8180 if test -z "$ac_cpp_err"; then
8181 # Broken: success on invalid input.
8182 continue
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 # Passes both tests.
8188 ac_preproc_ok=:
8189 break
8191 rm -f conftest.err conftest.$ac_ext
8193 done
8194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8195 rm -f conftest.err conftest.$ac_ext
8196 if $ac_preproc_ok; then
8197 break
8200 done
8201 ac_cv_prog_CXXCPP=$CXXCPP
8204 CXXCPP=$ac_cv_prog_CXXCPP
8205 else
8206 ac_cv_prog_CXXCPP=$CXXCPP
8208 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8209 echo "${ECHO_T}$CXXCPP" >&6
8210 ac_preproc_ok=false
8211 for ac_cxx_preproc_warn_flag in '' yes
8213 # Use a header file that comes with gcc, so configuring glibc
8214 # with a fresh cross-compiler works.
8215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8216 # <limits.h> exists even on freestanding compilers.
8217 # On the NeXT, cc -E runs the code through the compiler's parser,
8218 # not just through cpp. "Syntax error" is here to catch this case.
8219 cat >conftest.$ac_ext <<_ACEOF
8220 /* confdefs.h. */
8221 _ACEOF
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 #ifdef __STDC__
8226 # include <limits.h>
8227 #else
8228 # include <assert.h>
8229 #endif
8230 Syntax error
8231 _ACEOF
8232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } >/dev/null; then
8240 if test -s conftest.err; then
8241 ac_cpp_err=$ac_cxx_preproc_warn_flag
8242 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8243 else
8244 ac_cpp_err=
8246 else
8247 ac_cpp_err=yes
8249 if test -z "$ac_cpp_err"; then
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8255 # Broken: fails on valid input.
8256 continue
8258 rm -f conftest.err conftest.$ac_ext
8260 # OK, works on sane cases. Now check whether non-existent headers
8261 # can be detected and how.
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h. */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 #include <ac_nonexistent.h>
8269 _ACEOF
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } >/dev/null; then
8278 if test -s conftest.err; then
8279 ac_cpp_err=$ac_cxx_preproc_warn_flag
8280 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8281 else
8282 ac_cpp_err=
8284 else
8285 ac_cpp_err=yes
8287 if test -z "$ac_cpp_err"; then
8288 # Broken: success on invalid input.
8289 continue
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 # Passes both tests.
8295 ac_preproc_ok=:
8296 break
8298 rm -f conftest.err conftest.$ac_ext
8300 done
8301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8302 rm -f conftest.err conftest.$ac_ext
8303 if $ac_preproc_ok; then
8305 else
8306 _lt_caught_CXX_error=yes
8309 ac_ext=c
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315 else
8316 _lt_caught_CXX_error=yes
8323 # This can be used to rebuild libtool when needed
8324 LIBTOOL_DEPS="$ltmain"
8326 # Always use our own libtool.
8327 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8353 test -z "$LN_S" && LN_S="ln -s"
8368 if test -n "${ZSH_VERSION+set}" ; then
8369 setopt NO_GLOB_SUBST
8372 echo "$as_me:$LINENO: checking for objdir" >&5
8373 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8374 if test "${lt_cv_objdir+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 else
8377 rm -f .libs 2>/dev/null
8378 mkdir .libs 2>/dev/null
8379 if test -d .libs; then
8380 lt_cv_objdir=.libs
8381 else
8382 # MS-DOS does not allow filenames that begin with a dot.
8383 lt_cv_objdir=_libs
8385 rmdir .libs 2>/dev/null
8387 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8388 echo "${ECHO_T}$lt_cv_objdir" >&6
8389 objdir=$lt_cv_objdir
8395 cat >>confdefs.h <<_ACEOF
8396 #define LT_OBJDIR "$lt_cv_objdir/"
8397 _ACEOF
8415 case $host_os in
8416 aix3*)
8417 # AIX sometimes has problems with the GCC collect2 program. For some
8418 # reason, if we set the COLLECT_NAMES environment variable, the problems
8419 # vanish in a puff of smoke.
8420 if test "X${COLLECT_NAMES+set}" != Xset; then
8421 COLLECT_NAMES=
8422 export COLLECT_NAMES
8425 esac
8427 # Sed substitution that helps us do robust quoting. It backslashifies
8428 # metacharacters that are still active within double-quoted strings.
8429 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8431 # Same as above, but do not quote variable references.
8432 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8434 # Sed substitution to delay expansion of an escaped shell variable in a
8435 # double_quote_subst'ed string.
8436 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8438 # Sed substitution to delay expansion of an escaped single quote.
8439 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8441 # Sed substitution to avoid accidental globbing in evaled expressions
8442 no_glob_subst='s/\*/\\\*/g'
8444 # Global variables:
8445 ofile=libtool
8446 can_build_shared=yes
8448 # All known linkers require a `.a' archive for static linking (except MSVC,
8449 # which needs '.lib').
8450 libext=a
8452 with_gnu_ld="$lt_cv_prog_gnu_ld"
8454 old_CC="$CC"
8455 old_CFLAGS="$CFLAGS"
8457 # Set sane defaults for various variables
8458 test -z "$CC" && CC=cc
8459 test -z "$LTCC" && LTCC=$CC
8460 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8461 test -z "$LD" && LD=ld
8462 test -z "$ac_objext" && ac_objext=o
8464 for cc_temp in $compiler""; do
8465 case $cc_temp in
8466 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8467 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8468 \-*) ;;
8469 *) break;;
8470 esac
8471 done
8472 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8475 # Only perform the check for file, if the check method requires it
8476 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8477 case $deplibs_check_method in
8478 file_magic*)
8479 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8480 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8481 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8482 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485 case $MAGIC_CMD in
8486 [\\/*] | ?:[\\/]*)
8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8490 lt_save_MAGIC_CMD="$MAGIC_CMD"
8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8493 for ac_dir in $ac_dummy; do
8494 IFS="$lt_save_ifs"
8495 test -z "$ac_dir" && ac_dir=.
8496 if test -f $ac_dir/${ac_tool_prefix}file; then
8497 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8498 if test -n "$file_magic_test_file"; then
8499 case $deplibs_check_method in
8500 "file_magic "*)
8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8504 $EGREP "$file_magic_regex" > /dev/null; then
8506 else
8507 cat <<_LT_EOF 1>&2
8509 *** Warning: the command libtool uses to detect shared libraries,
8510 *** $file_magic_cmd, produces output that libtool cannot recognize.
8511 *** The result is that libtool may fail to recognize shared libraries
8512 *** as such. This will affect the creation of libtool libraries that
8513 *** depend on shared libraries, but programs linked with such libtool
8514 *** libraries will work regardless of this problem. Nevertheless, you
8515 *** may want to report the problem to your system manager and/or to
8516 *** bug-libtool@gnu.org
8518 _LT_EOF
8519 fi ;;
8520 esac
8522 break
8524 done
8525 IFS="$lt_save_ifs"
8526 MAGIC_CMD="$lt_save_MAGIC_CMD"
8528 esac
8531 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8532 if test -n "$MAGIC_CMD"; then
8533 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8534 echo "${ECHO_T}$MAGIC_CMD" >&6
8535 else
8536 echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6
8544 if test -z "$lt_cv_path_MAGIC_CMD"; then
8545 if test -n "$ac_tool_prefix"; then
8546 echo "$as_me:$LINENO: checking for file" >&5
8547 echo $ECHO_N "checking for file... $ECHO_C" >&6
8548 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551 case $MAGIC_CMD in
8552 [\\/*] | ?:[\\/]*)
8553 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8556 lt_save_MAGIC_CMD="$MAGIC_CMD"
8557 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8558 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8559 for ac_dir in $ac_dummy; do
8560 IFS="$lt_save_ifs"
8561 test -z "$ac_dir" && ac_dir=.
8562 if test -f $ac_dir/file; then
8563 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8564 if test -n "$file_magic_test_file"; then
8565 case $deplibs_check_method in
8566 "file_magic "*)
8567 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8568 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8569 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8570 $EGREP "$file_magic_regex" > /dev/null; then
8572 else
8573 cat <<_LT_EOF 1>&2
8575 *** Warning: the command libtool uses to detect shared libraries,
8576 *** $file_magic_cmd, produces output that libtool cannot recognize.
8577 *** The result is that libtool may fail to recognize shared libraries
8578 *** as such. This will affect the creation of libtool libraries that
8579 *** depend on shared libraries, but programs linked with such libtool
8580 *** libraries will work regardless of this problem. Nevertheless, you
8581 *** may want to report the problem to your system manager and/or to
8582 *** bug-libtool@gnu.org
8584 _LT_EOF
8585 fi ;;
8586 esac
8588 break
8590 done
8591 IFS="$lt_save_ifs"
8592 MAGIC_CMD="$lt_save_MAGIC_CMD"
8594 esac
8597 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8598 if test -n "$MAGIC_CMD"; then
8599 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8600 echo "${ECHO_T}$MAGIC_CMD" >&6
8601 else
8602 echo "$as_me:$LINENO: result: no" >&5
8603 echo "${ECHO_T}no" >&6
8607 else
8608 MAGIC_CMD=:
8614 esac
8616 # Use C for the default configuration in the libtool script
8618 lt_save_CC="$CC"
8619 ac_ext=c
8620 ac_cpp='$CPP $CPPFLAGS'
8621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8626 # Source file extension for C test sources.
8627 ac_ext=c
8629 # Object file extension for compiled C test sources.
8630 objext=o
8631 objext=$objext
8633 # Code to be used in simple compile tests
8634 lt_simple_compile_test_code="int some_variable = 0;"
8636 # Code to be used in simple link tests
8637 lt_simple_link_test_code='int main(){return(0);}'
8645 # If no C compiler was specified, use CC.
8646 LTCC=${LTCC-"$CC"}
8648 # If no C compiler flags were specified, use CFLAGS.
8649 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8651 # Allow CC to be a program name with arguments.
8652 compiler=$CC
8654 # Save the default compiler, since it gets overwritten when the other
8655 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8656 compiler_DEFAULT=$CC
8658 # save warnings/boilerplate of simple test code
8659 ac_outfile=conftest.$ac_objext
8660 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8662 _lt_compiler_boilerplate=`cat conftest.err`
8663 $RM conftest*
8665 ac_outfile=conftest.$ac_objext
8666 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8668 _lt_linker_boilerplate=`cat conftest.err`
8669 $RM conftest*
8672 ## CAVEAT EMPTOR:
8673 ## There is no encapsulation within the following macros, do not change
8674 ## the running order or otherwise move them around unless you know exactly
8675 ## what you are doing...
8676 if test -n "$compiler"; then
8678 lt_prog_compiler_no_builtin_flag=
8680 if test "$GCC" = yes; then
8681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8683 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8684 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8685 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 else
8688 lt_cv_prog_compiler_rtti_exceptions=no
8689 ac_outfile=conftest.$ac_objext
8690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8691 lt_compiler_flag="-fno-rtti -fno-exceptions"
8692 # Insert the option either (1) after the last *FLAGS variable, or
8693 # (2) before a word containing "conftest.", or (3) at the end.
8694 # Note that $ac_compile itself does not contain backslashes and begins
8695 # with a dollar sign (not a hyphen), so the echo should work correctly.
8696 # The option is referenced via a variable to avoid confusing sed.
8697 lt_compile=`echo "$ac_compile" | $SED \
8698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700 -e 's:$: $lt_compiler_flag:'`
8701 (eval echo "\"\$as_me:8701: $lt_compile\"" >&5)
8702 (eval "$lt_compile" 2>conftest.err)
8703 ac_status=$?
8704 cat conftest.err >&5
8705 echo "$as_me:8705: \$? = $ac_status" >&5
8706 if (exit $ac_status) && test -s "$ac_outfile"; then
8707 # The compiler can only warn and ignore the option if not recognized
8708 # So say no if there are warnings other than the usual output.
8709 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8712 lt_cv_prog_compiler_rtti_exceptions=yes
8715 $RM conftest*
8718 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8719 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8721 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8722 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8723 else
8734 lt_prog_compiler_wl=
8735 lt_prog_compiler_pic=
8736 lt_prog_compiler_static=
8738 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8739 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8741 if test "$GCC" = yes; then
8742 lt_prog_compiler_wl='-Wl,'
8743 lt_prog_compiler_static='-static'
8745 case $host_os in
8746 aix*)
8747 # All AIX code is PIC.
8748 if test "$host_cpu" = ia64; then
8749 # AIX 5 now supports IA64 processor
8750 lt_prog_compiler_static='-Bstatic'
8754 amigaos*)
8755 if test "$host_cpu" = m68k; then
8756 # FIXME: we need at least 68020 code to build shared libraries, but
8757 # adding the `-m68020' flag to GCC prevents building anything better,
8758 # like `-m68040'.
8759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8763 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8764 # PIC is the default for these OSes.
8767 mingw* | cygwin* | pw32* | os2*)
8768 # This hack is so that the source file can tell whether it is being
8769 # built for inclusion in a dll (and should export symbols for example).
8770 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8771 # (--disable-auto-import) libraries
8772 lt_prog_compiler_pic='-DDLL_EXPORT'
8775 darwin* | rhapsody*)
8776 # PIC is the default on this platform
8777 # Common symbols not allowed in MH_DYLIB files
8778 lt_prog_compiler_pic='-fno-common'
8781 hpux*)
8782 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8783 # not for PA HP-UX.
8784 case $host_cpu in
8785 hppa*64*|ia64*)
8786 # +Z the default
8789 lt_prog_compiler_pic='-fPIC'
8791 esac
8794 interix[3-9]*)
8795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8796 # Instead, we relocate shared libraries at runtime.
8799 msdosdjgpp*)
8800 # Just because we use GCC doesn't mean we suddenly get shared libraries
8801 # on systems that don't support them.
8802 lt_prog_compiler_can_build_shared=no
8803 enable_shared=no
8806 *nto* | *qnx*)
8807 # QNX uses GNU C++, but need to define -shared option too, otherwise
8808 # it will coredump.
8809 lt_prog_compiler_pic='-fPIC -shared'
8812 sysv4*MP*)
8813 if test -d /usr/nec; then
8814 lt_prog_compiler_pic=-Kconform_pic
8819 lt_prog_compiler_pic='-fPIC'
8821 esac
8822 else
8823 # PORTME Check for flag to pass linker flags through the system compiler.
8824 case $host_os in
8825 aix*)
8826 lt_prog_compiler_wl='-Wl,'
8827 if test "$host_cpu" = ia64; then
8828 # AIX 5 now supports IA64 processor
8829 lt_prog_compiler_static='-Bstatic'
8830 else
8831 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8834 darwin*)
8835 # PIC is the default on this platform
8836 # Common symbols not allowed in MH_DYLIB files
8837 case $cc_basename in
8838 xlc*)
8839 lt_prog_compiler_pic='-qnocommon'
8840 lt_prog_compiler_wl='-Wl,'
8842 esac
8845 mingw* | cygwin* | pw32* | os2*)
8846 # This hack is so that the source file can tell whether it is being
8847 # built for inclusion in a dll (and should export symbols for example).
8848 lt_prog_compiler_pic='-DDLL_EXPORT'
8851 hpux9* | hpux10* | hpux11*)
8852 lt_prog_compiler_wl='-Wl,'
8853 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8854 # not for PA HP-UX.
8855 case $host_cpu in
8856 hppa*64*|ia64*)
8857 # +Z the default
8860 lt_prog_compiler_pic='+Z'
8862 esac
8863 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8864 lt_prog_compiler_static='${wl}-a ${wl}archive'
8867 irix5* | irix6* | nonstopux*)
8868 lt_prog_compiler_wl='-Wl,'
8869 # PIC (with -KPIC) is the default.
8870 lt_prog_compiler_static='-non_shared'
8873 linux* | k*bsd*-gnu)
8874 case $cc_basename in
8875 icc* | ecc*)
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-static'
8880 pgcc* | pgf77* | pgf90* | pgf95*)
8881 # Portland Group compilers (*not* the Pentium gcc compiler,
8882 # which looks to be a dead project)
8883 lt_prog_compiler_wl='-Wl,'
8884 lt_prog_compiler_pic='-fpic'
8885 lt_prog_compiler_static='-Bstatic'
8887 ccc*)
8888 lt_prog_compiler_wl='-Wl,'
8889 # All Alpha code is PIC.
8890 lt_prog_compiler_static='-non_shared'
8893 case `$CC -V 2>&1 | sed 5q` in
8894 *Sun\ C*)
8895 # Sun C 5.9
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 lt_prog_compiler_wl='-Wl,'
8900 *Sun\ F*)
8901 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8902 lt_prog_compiler_pic='-KPIC'
8903 lt_prog_compiler_static='-Bstatic'
8904 lt_prog_compiler_wl=''
8906 esac
8908 esac
8911 newsos6)
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8916 *nto* | *qnx*)
8917 # QNX uses GNU C++, but need to define -shared option too, otherwise
8918 # it will coredump.
8919 lt_prog_compiler_pic='-fPIC -shared'
8922 osf3* | osf4* | osf5*)
8923 lt_prog_compiler_wl='-Wl,'
8924 # All OSF/1 code is PIC.
8925 lt_prog_compiler_static='-non_shared'
8928 rdos*)
8929 lt_prog_compiler_static='-non_shared'
8932 solaris*)
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 case $cc_basename in
8936 f77* | f90* | f95*)
8937 lt_prog_compiler_wl='-Qoption ld ';;
8939 lt_prog_compiler_wl='-Wl,';;
8940 esac
8943 sunos4*)
8944 lt_prog_compiler_wl='-Qoption ld '
8945 lt_prog_compiler_pic='-PIC'
8946 lt_prog_compiler_static='-Bstatic'
8949 sysv4 | sysv4.2uw2* | sysv4.3*)
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-KPIC'
8952 lt_prog_compiler_static='-Bstatic'
8955 sysv4*MP*)
8956 if test -d /usr/nec ;then
8957 lt_prog_compiler_pic='-Kconform_pic'
8958 lt_prog_compiler_static='-Bstatic'
8962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8968 unicos*)
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_can_build_shared=no
8973 uts4*)
8974 lt_prog_compiler_pic='-pic'
8975 lt_prog_compiler_static='-Bstatic'
8979 lt_prog_compiler_can_build_shared=no
8981 esac
8984 case $host_os in
8985 # For platforms which do not support PIC, -DPIC is meaningless:
8986 *djgpp*)
8987 lt_prog_compiler_pic=
8990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8992 esac
8993 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8994 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9002 # Check to make sure the PIC flag actually works.
9004 if test -n "$lt_prog_compiler_pic"; then
9005 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9006 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9007 if test "${lt_prog_compiler_pic_works+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 lt_prog_compiler_pic_works=no
9011 ac_outfile=conftest.$ac_objext
9012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9014 # Insert the option either (1) after the last *FLAGS variable, or
9015 # (2) before a word containing "conftest.", or (3) at the end.
9016 # Note that $ac_compile itself does not contain backslashes and begins
9017 # with a dollar sign (not a hyphen), so the echo should work correctly.
9018 # The option is referenced via a variable to avoid confusing sed.
9019 lt_compile=`echo "$ac_compile" | $SED \
9020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9022 -e 's:$: $lt_compiler_flag:'`
9023 (eval echo "\"\$as_me:9023: $lt_compile\"" >&5)
9024 (eval "$lt_compile" 2>conftest.err)
9025 ac_status=$?
9026 cat conftest.err >&5
9027 echo "$as_me:9027: \$? = $ac_status" >&5
9028 if (exit $ac_status) && test -s "$ac_outfile"; then
9029 # The compiler can only warn and ignore the option if not recognized
9030 # So say no if there are warnings other than the usual output.
9031 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9034 lt_prog_compiler_pic_works=yes
9037 $RM conftest*
9040 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9041 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9043 if test x"$lt_prog_compiler_pic_works" = xyes; then
9044 case $lt_prog_compiler_pic in
9045 "" | " "*) ;;
9046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9047 esac
9048 else
9049 lt_prog_compiler_pic=
9050 lt_prog_compiler_can_build_shared=no
9061 # Check to make sure the static flag actually works.
9063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9064 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9065 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9066 if test "${lt_prog_compiler_static_works+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 lt_prog_compiler_static_works=no
9070 save_LDFLAGS="$LDFLAGS"
9071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9074 # The linker can only warn and ignore the option if not recognized
9075 # So say no if there are warnings
9076 if test -s conftest.err; then
9077 # Append any errors to the config.log.
9078 cat conftest.err 1>&5
9079 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081 if diff conftest.exp conftest.er2 >/dev/null; then
9082 lt_prog_compiler_static_works=yes
9084 else
9085 lt_prog_compiler_static_works=yes
9088 $RM conftest*
9089 LDFLAGS="$save_LDFLAGS"
9092 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9093 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9095 if test x"$lt_prog_compiler_static_works" = xyes; then
9097 else
9098 lt_prog_compiler_static=
9107 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9109 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112 lt_cv_prog_compiler_c_o=no
9113 $RM -r conftest 2>/dev/null
9114 mkdir conftest
9115 cd conftest
9116 mkdir out
9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9119 lt_compiler_flag="-o out/conftest2.$ac_objext"
9120 # Insert the option either (1) after the last *FLAGS variable, or
9121 # (2) before a word containing "conftest.", or (3) at the end.
9122 # Note that $ac_compile itself does not contain backslashes and begins
9123 # with a dollar sign (not a hyphen), so the echo should work correctly.
9124 lt_compile=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:9128: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>out/conftest.err)
9130 ac_status=$?
9131 cat out/conftest.err >&5
9132 echo "$as_me:9132: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9134 then
9135 # The compiler can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_c_o=yes
9143 chmod u+w . 2>&5
9144 $RM conftest*
9145 # SGI C++ compiler will create directory out/ii_files/ for
9146 # template instantiation
9147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9148 $RM out/* && rmdir out
9149 cd ..
9150 $RM -r conftest
9151 $RM conftest*
9154 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9155 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9162 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9163 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 else
9167 lt_cv_prog_compiler_c_o=no
9168 $RM -r conftest 2>/dev/null
9169 mkdir conftest
9170 cd conftest
9171 mkdir out
9172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9174 lt_compiler_flag="-o out/conftest2.$ac_objext"
9175 # Insert the option either (1) after the last *FLAGS variable, or
9176 # (2) before a word containing "conftest.", or (3) at the end.
9177 # Note that $ac_compile itself does not contain backslashes and begins
9178 # with a dollar sign (not a hyphen), so the echo should work correctly.
9179 lt_compile=`echo "$ac_compile" | $SED \
9180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182 -e 's:$: $lt_compiler_flag:'`
9183 (eval echo "\"\$as_me:9183: $lt_compile\"" >&5)
9184 (eval "$lt_compile" 2>out/conftest.err)
9185 ac_status=$?
9186 cat out/conftest.err >&5
9187 echo "$as_me:9187: \$? = $ac_status" >&5
9188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189 then
9190 # The compiler can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
9192 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler_c_o=yes
9198 chmod u+w . 2>&5
9199 $RM conftest*
9200 # SGI C++ compiler will create directory out/ii_files/ for
9201 # template instantiation
9202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203 $RM out/* && rmdir out
9204 cd ..
9205 $RM -r conftest
9206 $RM conftest*
9209 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9210 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9215 hard_links="nottested"
9216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9217 # do not overwrite the value of need_locks provided by the user
9218 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9219 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9220 hard_links=yes
9221 $RM conftest*
9222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9223 touch conftest.a
9224 ln conftest.a conftest.b 2>&5 || hard_links=no
9225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9226 echo "$as_me:$LINENO: result: $hard_links" >&5
9227 echo "${ECHO_T}$hard_links" >&6
9228 if test "$hard_links" = no; then
9229 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9230 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9231 need_locks=warn
9233 else
9234 need_locks=no
9242 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9245 runpath_var=
9246 allow_undefined_flag=
9247 always_export_symbols=no
9248 archive_cmds=
9249 archive_expsym_cmds=
9250 compiler_needs_object=no
9251 enable_shared_with_static_runtimes=no
9252 export_dynamic_flag_spec=
9253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9254 hardcode_automatic=no
9255 hardcode_direct=no
9256 hardcode_direct_absolute=no
9257 hardcode_libdir_flag_spec=
9258 hardcode_libdir_flag_spec_ld=
9259 hardcode_libdir_separator=
9260 hardcode_minus_L=no
9261 hardcode_shlibpath_var=unsupported
9262 inherit_rpath=no
9263 link_all_deplibs=unknown
9264 module_cmds=
9265 module_expsym_cmds=
9266 old_archive_from_new_cmds=
9267 old_archive_from_expsyms_cmds=
9268 thread_safe_flag_spec=
9269 whole_archive_flag_spec=
9270 # include_expsyms should be a list of space-separated symbols to be *always*
9271 # included in the symbol list
9272 include_expsyms=
9273 # exclude_expsyms can be an extended regexp of symbols to exclude
9274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9276 # as well as any symbol that contains `d'.
9277 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9279 # platforms (ab)use it in PIC code, but their linkers get confused if
9280 # the symbol is explicitly referenced. Since portable code cannot
9281 # rely on this symbol name, it's probably fine to never include it in
9282 # preloaded symbol tables.
9283 extract_expsyms_cmds=
9285 case $host_os in
9286 cygwin* | mingw* | pw32*)
9287 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9288 # When not using gcc, we currently assume that we are using
9289 # Microsoft Visual C++.
9290 if test "$GCC" != yes; then
9291 with_gnu_ld=no
9294 interix*)
9295 # we just hope/assume this is gcc and not c89 (= MSVC++)
9296 with_gnu_ld=yes
9298 openbsd*)
9299 with_gnu_ld=no
9301 esac
9303 ld_shlibs=yes
9304 if test "$with_gnu_ld" = yes; then
9305 # If archive_cmds runs LD, not CC, wlarc should be empty
9306 wlarc='${wl}'
9308 # Set some defaults for GNU ld with shared library support. These
9309 # are reset later if shared libraries are not supported. Putting them
9310 # here allows them to be overridden if necessary.
9311 runpath_var=LD_RUN_PATH
9312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313 export_dynamic_flag_spec='${wl}--export-dynamic'
9314 # ancient GNU ld didn't support --whole-archive et. al.
9315 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9316 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9317 else
9318 whole_archive_flag_spec=
9320 supports_anon_versioning=no
9321 case `$LD -v 2>&1` in
9322 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9323 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9324 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9325 *\ 2.11.*) ;; # other 2.11 versions
9326 *) supports_anon_versioning=yes ;;
9327 esac
9329 # See if GNU ld supports shared libraries.
9330 case $host_os in
9331 aix3* | aix4* | aix5*)
9332 # On AIX/PPC, the GNU linker is very broken
9333 if test "$host_cpu" != ia64; then
9334 ld_shlibs=no
9335 cat <<_LT_EOF 1>&2
9337 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9338 *** to be unable to reliably create shared libraries on AIX.
9339 *** Therefore, libtool is disabling shared libraries support. If you
9340 *** really care for shared libraries, you may want to modify your PATH
9341 *** so that a non-GNU linker is found, and then restart.
9343 _LT_EOF
9347 amigaos*)
9348 if test "$host_cpu" = m68k; then
9349 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)'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_minus_L=yes
9354 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9355 # that the semantics of dynamic libraries on AmigaOS, at least up
9356 # to version 4, is to share data among multiple programs linked
9357 # with the same dynamic library. Since this doesn't match the
9358 # behavior of shared libraries on other platforms, we can't use
9359 # them.
9360 ld_shlibs=no
9363 beos*)
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 allow_undefined_flag=unsupported
9366 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9367 # support --undefined. This deserves some investigation. FIXME
9368 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 else
9370 ld_shlibs=no
9374 cygwin* | mingw* | pw32*)
9375 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9376 # as there is no search path for DLLs.
9377 hardcode_libdir_flag_spec='-L$libdir'
9378 allow_undefined_flag=unsupported
9379 always_export_symbols=no
9380 enable_shared_with_static_runtimes=yes
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9383 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9384 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385 # If the export-symbols file already is a .def file (1st line
9386 # is EXPORTS), use it as is; otherwise, prepend...
9387 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9388 cp $export_symbols $output_objdir/$soname.def;
9389 else
9390 echo EXPORTS > $output_objdir/$soname.def;
9391 cat $export_symbols >> $output_objdir/$soname.def;
9393 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394 else
9395 ld_shlibs=no
9399 interix[3-9]*)
9400 hardcode_direct=no
9401 hardcode_shlibpath_var=no
9402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9403 export_dynamic_flag_spec='${wl}-E'
9404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9405 # Instead, shared libraries are loaded at an image base (0x10000000 by
9406 # default) and relocated if they conflict, which is a slow very memory
9407 # consuming and fragmenting process. To avoid this, we pick a random,
9408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9410 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9411 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'
9414 gnu* | linux* | tpf* | k*bsd*-gnu)
9415 tmp_diet=no
9416 if test "$host_os" = linux-dietlibc; then
9417 case $cc_basename in
9418 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9419 esac
9421 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9422 && test "$tmp_diet" = no
9423 then
9424 tmp_addflag=
9425 case $cc_basename,$host_cpu in
9426 pgcc*) # Portland Group C compiler
9427 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'
9428 tmp_addflag=' $pic_flag'
9430 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9431 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'
9432 tmp_addflag=' $pic_flag -Mnomain' ;;
9433 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9434 tmp_addflag=' -i_dynamic' ;;
9435 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9436 tmp_addflag=' -i_dynamic -nofor_main' ;;
9437 ifc* | ifort*) # Intel Fortran compiler
9438 tmp_addflag=' -nofor_main' ;;
9439 esac
9440 case `$CC -V 2>&1 | sed 5q` in
9441 *Sun\ C*) # Sun C 5.9
9442 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'
9443 compiler_needs_object=yes
9444 tmp_sharedflag='-G' ;;
9445 *Sun\ F*) # Sun Fortran 8.3
9446 tmp_sharedflag='-G' ;;
9448 tmp_sharedflag='-shared' ;;
9449 esac
9450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 if test "x$supports_anon_versioning" = xyes; then
9453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455 echo "local: *; };" >> $output_objdir/$libname.ver~
9456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9458 else
9459 ld_shlibs=no
9463 netbsd*)
9464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9465 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9466 wlarc=
9467 else
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9469 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473 solaris*)
9474 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9475 ld_shlibs=no
9476 cat <<_LT_EOF 1>&2
9478 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9479 *** create shared libraries on Solaris systems. Therefore, libtool
9480 *** is disabling shared libraries support. We urge you to upgrade GNU
9481 *** binutils to release 2.9.1 or newer. Another option is to modify
9482 *** your PATH or compiler configuration so that the native linker is
9483 *** used, and then restart.
9485 _LT_EOF
9486 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9488 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9489 else
9490 ld_shlibs=no
9494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9495 case `$LD -v 2>&1` in
9496 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9497 ld_shlibs=no
9498 cat <<_LT_EOF 1>&2
9500 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9501 *** reliably create shared libraries on SCO systems. Therefore, libtool
9502 *** is disabling shared libraries support. We urge you to upgrade GNU
9503 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9504 *** your PATH or compiler configuration so that the native linker is
9505 *** used, and then restart.
9507 _LT_EOF
9510 # For security reasons, it is highly recommended that you always
9511 # use absolute paths for naming shared libraries, and exclude the
9512 # DT_RUNPATH tag from executables and libraries. But doing so
9513 # requires that you compile everything twice, which is a pain.
9514 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9515 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9518 else
9519 ld_shlibs=no
9522 esac
9525 sunos4*)
9526 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9527 wlarc=
9528 hardcode_direct=yes
9529 hardcode_shlibpath_var=no
9533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 else
9537 ld_shlibs=no
9540 esac
9542 if test "$ld_shlibs" = no; then
9543 runpath_var=
9544 hardcode_libdir_flag_spec=
9545 export_dynamic_flag_spec=
9546 whole_archive_flag_spec=
9548 else
9549 # PORTME fill in a description of your system's linker (not GNU ld)
9550 case $host_os in
9551 aix3*)
9552 allow_undefined_flag=unsupported
9553 always_export_symbols=yes
9554 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'
9555 # Note: this linker hardcodes the directories in LIBPATH if there
9556 # are no directories specified by -L.
9557 hardcode_minus_L=yes
9558 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9559 # Neither direct hardcoding nor static linking is supported with a
9560 # broken collect2.
9561 hardcode_direct=unsupported
9565 aix4* | aix5*)
9566 if test "$host_cpu" = ia64; then
9567 # On IA64, the linker does run time linking by default, so we don't
9568 # have to do anything special.
9569 aix_use_runtimelinking=no
9570 exp_sym_flag='-Bexport'
9571 no_entry_flag=""
9572 else
9573 # If we're using GNU nm, then we don't want the "-C" option.
9574 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9575 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9576 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'
9577 else
9578 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'
9580 aix_use_runtimelinking=no
9582 # Test if we are trying to use run time linking or normal
9583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9584 # need to do runtime linking.
9585 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9586 for ld_flag in $LDFLAGS; do
9587 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9588 aix_use_runtimelinking=yes
9589 break
9591 done
9593 esac
9595 exp_sym_flag='-bexport'
9596 no_entry_flag='-bnoentry'
9599 # When large executables or shared objects are built, AIX ld can
9600 # have problems creating the table of contents. If linking a library
9601 # or program results in "error TOC overflow" add -mminimal-toc to
9602 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9603 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9605 archive_cmds=''
9606 hardcode_direct=yes
9607 hardcode_direct_absolute=yes
9608 hardcode_libdir_separator=':'
9609 link_all_deplibs=yes
9610 file_list_spec='${wl}-f,'
9612 if test "$GCC" = yes; then
9613 case $host_os in aix4.[012]|aix4.[012].*)
9614 # We only want to do this on AIX 4.2 and lower, the check
9615 # below for broken collect2 doesn't work under 4.3+
9616 collect2name=`${CC} -print-prog-name=collect2`
9617 if test -f "$collect2name" &&
9618 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9619 then
9620 # We have reworked collect2
9622 else
9623 # We have old collect2
9624 hardcode_direct=unsupported
9625 # It fails to find uninstalled libraries when the uninstalled
9626 # path is not listed in the libpath. Setting hardcode_minus_L
9627 # to unsupported forces relinking
9628 hardcode_minus_L=yes
9629 hardcode_libdir_flag_spec='-L$libdir'
9630 hardcode_libdir_separator=
9633 esac
9634 shared_flag='-shared'
9635 if test "$aix_use_runtimelinking" = yes; then
9636 shared_flag="$shared_flag "'${wl}-G'
9638 else
9639 # not using gcc
9640 if test "$host_cpu" = ia64; then
9641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9642 # chokes on -Wl,-G. The following line is correct:
9643 shared_flag='-G'
9644 else
9645 if test "$aix_use_runtimelinking" = yes; then
9646 shared_flag='${wl}-G'
9647 else
9648 shared_flag='${wl}-bM:SRE'
9653 # It seems that -bexpall does not export symbols beginning with
9654 # underscore (_), so it is better to generate a list of symbols to export.
9655 always_export_symbols=yes
9656 if test "$aix_use_runtimelinking" = yes; then
9657 # Warning - without using the other runtime loading flags (-brtl),
9658 # -berok will link without error, but may produce a broken library.
9659 allow_undefined_flag='-berok'
9660 # Determine the default libpath from the value encoded in an
9661 # empty executable.
9662 if test x$gcc_no_link = xyes; then
9663 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9664 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9665 { (exit 1); exit 1; }; }
9667 cat >conftest.$ac_ext <<_ACEOF
9668 /* confdefs.h. */
9669 _ACEOF
9670 cat confdefs.h >>conftest.$ac_ext
9671 cat >>conftest.$ac_ext <<_ACEOF
9672 /* end confdefs.h. */
9675 main ()
9679 return 0;
9681 _ACEOF
9682 rm -f conftest.$ac_objext conftest$ac_exeext
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>conftest.er1
9685 ac_status=$?
9686 grep -v '^ *+' conftest.er1 >conftest.err
9687 rm -f conftest.er1
9688 cat conftest.err >&5
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } &&
9691 { ac_try='test -z "$ac_c_werror_flag"
9692 || test ! -s conftest.err'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694 (eval $ac_try) 2>&5
9695 ac_status=$?
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; } &&
9698 { ac_try='test -s conftest$ac_exeext'
9699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9700 (eval $ac_try) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9705 lt_aix_libpath_sed='
9706 /Import File Strings/,/^$/ {
9707 /^0/ {
9708 s/^0 *\(.*\)$/\1/
9712 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9713 # Check for a 64-bit object if we didn't find anything.
9714 if test -z "$aix_libpath"; then
9715 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9717 else
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9722 rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9726 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9727 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"
9728 else
9729 if test "$host_cpu" = ia64; then
9730 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9731 allow_undefined_flag="-z nodefs"
9732 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"
9733 else
9734 # Determine the default libpath from the value encoded in an
9735 # empty executable.
9736 if test x$gcc_no_link = xyes; then
9737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9739 { (exit 1); exit 1; }; }
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9749 main ()
9753 return 0;
9755 _ACEOF
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } &&
9765 { ac_try='test -z "$ac_c_werror_flag"
9766 || test ! -s conftest.err'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; } &&
9772 { ac_try='test -s conftest$ac_exeext'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 (eval $ac_try) 2>&5
9775 ac_status=$?
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; }; then
9779 lt_aix_libpath_sed='
9780 /Import File Strings/,/^$/ {
9781 /^0/ {
9782 s/^0 *\(.*\)$/\1/
9786 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787 # Check for a 64-bit object if we didn't find anything.
9788 if test -z "$aix_libpath"; then
9789 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791 else
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9796 rm -f conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9800 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9801 # Warning - without using the other run time loading flags,
9802 # -berok will link without error, but may produce a broken library.
9803 no_undefined_flag=' ${wl}-bernotok'
9804 allow_undefined_flag=' ${wl}-berok'
9805 # Exported symbols can be pulled into shared objects from archives
9806 whole_archive_flag_spec='$convenience'
9807 archive_cmds_need_lc=yes
9808 # This is similar to how AIX traditionally builds its shared libraries.
9809 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'
9814 amigaos*)
9815 if test "$host_cpu" = m68k; then
9816 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)'
9817 hardcode_libdir_flag_spec='-L$libdir'
9818 hardcode_minus_L=yes
9820 # see comment about different semantics on the GNU ld section
9821 ld_shlibs=no
9824 bsdi[45]*)
9825 export_dynamic_flag_spec=-rdynamic
9828 cygwin* | mingw* | pw32*)
9829 # When not using gcc, we currently assume that we are using
9830 # Microsoft Visual C++.
9831 # hardcode_libdir_flag_spec is actually meaningless, as there is
9832 # no search path for DLLs.
9833 hardcode_libdir_flag_spec=' '
9834 allow_undefined_flag=unsupported
9835 # Tell ltmain to make .lib files, not .a files.
9836 libext=lib
9837 # Tell ltmain to make .dll files, not .so files.
9838 shrext_cmds=".dll"
9839 # FIXME: Setting linknames here is a bad hack.
9840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9841 # The linker will automatically build a .lib file if we build a DLL.
9842 old_archive_from_new_cmds='true'
9843 # FIXME: Should let the user specify the lib program.
9844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9845 fix_srcfile_path='`cygpath -w "$srcfile"`'
9846 enable_shared_with_static_runtimes=yes
9849 darwin* | rhapsody*)
9850 case $host_os in
9851 rhapsody* | darwin1.[012])
9852 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9854 *) # Darwin 1.3 on
9855 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
9856 10.[012])
9857 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9859 10.*)
9860 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9862 esac
9864 esac
9865 archive_cmds_need_lc=no
9866 hardcode_direct=no
9867 hardcode_automatic=yes
9868 hardcode_shlibpath_var=unsupported
9869 whole_archive_flag_spec=''
9870 link_all_deplibs=yes
9871 if test "$GCC" = yes ; then
9872 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 else
9875 lt_cv_apple_cc_single_mod=no
9876 if test -z "${LT_MULTI_MODULE}"; then
9877 # By default we will add the -single_module flag. You can override
9878 # by either setting the environment variable LT_MULTI_MODULE
9879 # non-empty at configure time, or by adding -multi-module to the
9880 # link flags.
9881 echo "int foo(void){return 1;}" > conftest.c
9882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9883 -dynamiclib ${wl}-single_module conftest.c
9884 if test -f libconftest.dylib; then
9885 lt_cv_apple_cc_single_mod=yes
9886 rm libconftest.dylib
9888 rm conftest.$ac_ext
9892 output_verbose_link_cmd=echo
9893 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
9894 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9895 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9896 else
9897 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9898 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9900 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9901 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9902 else
9903 case $cc_basename in
9904 xlc*)
9905 output_verbose_link_cmd=echo
9906 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
9907 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9909 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9910 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9913 ld_shlibs=no
9915 esac
9919 dgux*)
9920 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9921 hardcode_libdir_flag_spec='-L$libdir'
9922 hardcode_shlibpath_var=no
9925 freebsd1*)
9926 ld_shlibs=no
9929 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9930 # support. Future versions do this automatically, but an explicit c++rt0.o
9931 # does not break anything, and helps significantly (at the cost of a little
9932 # extra space).
9933 freebsd2.2*)
9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9935 hardcode_libdir_flag_spec='-R$libdir'
9936 hardcode_direct=yes
9937 hardcode_shlibpath_var=no
9940 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9941 freebsd2*)
9942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9943 hardcode_direct=yes
9944 hardcode_minus_L=yes
9945 hardcode_shlibpath_var=no
9948 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9949 freebsd* | dragonfly*)
9950 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9951 hardcode_libdir_flag_spec='-R$libdir'
9952 hardcode_direct=yes
9953 hardcode_shlibpath_var=no
9956 hpux9*)
9957 if test "$GCC" = yes; then
9958 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'
9959 else
9960 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'
9962 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9963 hardcode_libdir_separator=:
9964 hardcode_direct=yes
9966 # hardcode_minus_L: Not really in the search PATH,
9967 # but as the default location of the library.
9968 hardcode_minus_L=yes
9969 export_dynamic_flag_spec='${wl}-E'
9972 hpux10*)
9973 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9974 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9975 else
9976 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9978 if test "$with_gnu_ld" = no; then
9979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9980 hardcode_libdir_flag_spec_ld='+b $libdir'
9981 hardcode_libdir_separator=:
9982 hardcode_direct=yes
9983 hardcode_direct_absolute=yes
9984 export_dynamic_flag_spec='${wl}-E'
9985 # hardcode_minus_L: Not really in the search PATH,
9986 # but as the default location of the library.
9987 hardcode_minus_L=yes
9991 hpux11*)
9992 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9993 case $host_cpu in
9994 hppa*64*)
9995 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997 ia64*)
9998 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10001 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10003 esac
10004 else
10005 case $host_cpu in
10006 hppa*64*)
10007 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 ia64*)
10010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10015 esac
10017 if test "$with_gnu_ld" = no; then
10018 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10019 hardcode_libdir_separator=:
10021 case $host_cpu in
10022 hppa*64*|ia64*)
10023 hardcode_direct=no
10024 hardcode_shlibpath_var=no
10027 hardcode_direct=yes
10028 hardcode_direct_absolute=yes
10029 export_dynamic_flag_spec='${wl}-E'
10031 # hardcode_minus_L: Not really in the search PATH,
10032 # but as the default location of the library.
10033 hardcode_minus_L=yes
10035 esac
10039 irix5* | irix6* | nonstopux*)
10040 if test "$GCC" = yes; then
10041 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'
10042 # Try to use the -exported_symbol ld option, if it does not
10043 # work, assume that -exports_file does not work either and
10044 # implicitly export all symbols.
10045 save_LDFLAGS="$LDFLAGS"
10046 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10047 if test x$gcc_no_link = xyes; then
10048 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10049 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10050 { (exit 1); exit 1; }; }
10052 cat >conftest.$ac_ext <<_ACEOF
10053 int foo(void) {}
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10058 ac_status=$?
10059 grep -v '^ *+' conftest.er1 >conftest.err
10060 rm -f conftest.er1
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10068 ac_status=$?
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10074 ac_status=$?
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 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'
10079 else
10080 echo "$as_me: failed program was:" >&5
10081 sed 's/^/| /' conftest.$ac_ext >&5
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LDFLAGS="$save_LDFLAGS"
10087 else
10088 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'
10089 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'
10091 archive_cmds_need_lc='no'
10092 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10093 hardcode_libdir_separator=:
10094 inherit_rpath=yes
10095 link_all_deplibs=yes
10098 netbsd*)
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10101 else
10102 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10104 hardcode_libdir_flag_spec='-R$libdir'
10105 hardcode_direct=yes
10106 hardcode_shlibpath_var=no
10109 newsos6)
10110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10111 hardcode_direct=yes
10112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator=:
10114 hardcode_shlibpath_var=no
10117 *nto* | *qnx*)
10120 openbsd*)
10121 hardcode_direct=yes
10122 hardcode_shlibpath_var=no
10123 hardcode_direct_absolute=yes
10124 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10128 export_dynamic_flag_spec='${wl}-E'
10129 else
10130 case $host_os in
10131 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_libdir_flag_spec='-R$libdir'
10136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10137 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10139 esac
10143 os2*)
10144 hardcode_libdir_flag_spec='-L$libdir'
10145 hardcode_minus_L=yes
10146 allow_undefined_flag=unsupported
10147 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'
10148 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10151 osf3*)
10152 if test "$GCC" = yes; then
10153 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10154 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'
10155 else
10156 allow_undefined_flag=' -expect_unresolved \*'
10157 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'
10159 archive_cmds_need_lc='no'
10160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10161 hardcode_libdir_separator=:
10164 osf4* | osf5*) # as osf3* with the addition of -msym flag
10165 if test "$GCC" = yes; then
10166 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10167 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'
10168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10169 else
10170 allow_undefined_flag=' -expect_unresolved \*'
10171 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'
10172 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~
10173 $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'
10175 # Both c and cxx compiler support -rpath directly
10176 hardcode_libdir_flag_spec='-rpath $libdir'
10178 archive_cmds_need_lc='no'
10179 hardcode_libdir_separator=:
10182 solaris*)
10183 no_undefined_flag=' -z defs'
10184 if test "$GCC" = yes; then
10185 wlarc='${wl}'
10186 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10188 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10189 else
10190 case `$CC -V 2>&1` in
10191 *"Compilers 5.0"*)
10192 wlarc=''
10193 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10194 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10195 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10198 wlarc='${wl}'
10199 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10200 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10203 esac
10205 hardcode_libdir_flag_spec='-R$libdir'
10206 hardcode_shlibpath_var=no
10207 case $host_os in
10208 solaris2.[0-5] | solaris2.[0-5].*) ;;
10210 # The compiler driver will combine and reorder linker options,
10211 # but understands `-z linker_flag'. GCC discards it without `$wl',
10212 # but is careful enough not to reorder.
10213 # Supported since Solaris 2.6 (maybe 2.5.1?)
10214 if test "$GCC" = yes; then
10215 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10216 else
10217 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10220 esac
10221 link_all_deplibs=yes
10224 sunos4*)
10225 if test "x$host_vendor" = xsequent; then
10226 # Use $CC to link under sequent, because it throws in some extra .o
10227 # files that make .init and .fini sections work.
10228 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10229 else
10230 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_libdir_flag_spec='-L$libdir'
10233 hardcode_direct=yes
10234 hardcode_minus_L=yes
10235 hardcode_shlibpath_var=no
10238 sysv4)
10239 case $host_vendor in
10240 sni)
10241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242 hardcode_direct=yes # is this really true???
10244 siemens)
10245 ## LD is ld it makes a PLAMLIB
10246 ## CC just makes a GrossModule.
10247 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10248 reload_cmds='$CC -r -o $output$reload_objs'
10249 hardcode_direct=no
10251 motorola)
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10255 esac
10256 runpath_var='LD_RUN_PATH'
10257 hardcode_shlibpath_var=no
10260 sysv4.3*)
10261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_shlibpath_var=no
10263 export_dynamic_flag_spec='-Bexport'
10266 sysv4*MP*)
10267 if test -d /usr/nec; then
10268 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10269 hardcode_shlibpath_var=no
10270 runpath_var=LD_RUN_PATH
10271 hardcode_runpath_var=yes
10272 ld_shlibs=yes
10276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10277 no_undefined_flag='${wl}-z,text'
10278 archive_cmds_need_lc=no
10279 hardcode_shlibpath_var=no
10280 runpath_var='LD_RUN_PATH'
10282 if test "$GCC" = yes; then
10283 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285 else
10286 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 sysv5* | sco3.2v5* | sco5v6*)
10292 # Note: We can NOT use -z defs as we might desire, because we do not
10293 # link with -lc, and that would cause any symbols used from libc to
10294 # always be unresolved, which means just about no library would
10295 # ever link correctly. If we're not using GNU ld we use -z text
10296 # though, which does catch some bad symbols but isn't as heavy-handed
10297 # as -z defs.
10298 no_undefined_flag='${wl}-z,text'
10299 allow_undefined_flag='${wl}-z,nodefs'
10300 archive_cmds_need_lc=no
10301 hardcode_shlibpath_var=no
10302 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10303 hardcode_libdir_separator=':'
10304 link_all_deplibs=yes
10305 export_dynamic_flag_spec='${wl}-Bexport'
10306 runpath_var='LD_RUN_PATH'
10308 if test "$GCC" = yes; then
10309 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10310 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 else
10312 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317 uts4*)
10318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10319 hardcode_libdir_flag_spec='-L$libdir'
10320 hardcode_shlibpath_var=no
10324 ld_shlibs=no
10326 esac
10328 if test x$host_vendor = xsni; then
10329 case $host in
10330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10331 export_dynamic_flag_spec='${wl}-Blargedynsym'
10333 esac
10337 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10338 echo "${ECHO_T}$ld_shlibs" >&6
10339 test "$ld_shlibs" = no && can_build_shared=no
10341 with_gnu_ld=$with_gnu_ld
10358 # Do we need to explicitly link libc?
10360 case "x$archive_cmds_need_lc" in
10361 x|xyes)
10362 # Assume -lc should be added
10363 archive_cmds_need_lc=yes
10365 if test "$enable_shared" = yes && test "$GCC" = yes; then
10366 case $archive_cmds in
10367 *'~'*)
10368 # FIXME: we may have to deal with multi-command sequences.
10370 '$CC '*)
10371 # Test whether the compiler implicitly links with -lc since on some
10372 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10373 # to ld, don't add -lc before -lgcc.
10374 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10375 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10376 $RM conftest*
10377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10380 (eval $ac_compile) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } 2>conftest.err; then
10384 soname=conftest
10385 lib=conftest
10386 libobjs=conftest.$ac_objext
10387 deplibs=
10388 wl=$lt_prog_compiler_wl
10389 pic_flag=$lt_prog_compiler_pic
10390 compiler_flags=-v
10391 linker_flags=-v
10392 verstring=
10393 output_objdir=.
10394 libname=conftest
10395 lt_save_allow_undefined_flag=$allow_undefined_flag
10396 allow_undefined_flag=
10397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10398 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }
10402 then
10403 archive_cmds_need_lc=no
10404 else
10405 archive_cmds_need_lc=yes
10407 allow_undefined_flag=$lt_save_allow_undefined_flag
10408 else
10409 cat conftest.err 1>&5
10411 $RM conftest*
10412 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10413 echo "${ECHO_T}$archive_cmds_need_lc" >&6
10415 esac
10418 esac
10576 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10578 withGCC=$GCC
10579 if test "$withGCC" = yes; then
10580 case $host_os in
10581 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10582 *) lt_awk_arg="/^libraries:/" ;;
10583 esac
10584 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10585 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10586 # if the path contains ";" then we assume it to be the separator
10587 # otherwise default to the standard path separator (i.e. ":") - it is
10588 # assumed that no part of a normal pathname contains ";" but that should
10589 # okay in the real world where ";" in dirpaths is itself problematic.
10590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10591 else
10592 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10594 # Ok, now we have the path, separated by spaces, we can step through it
10595 # and add multilib dir if necessary.
10596 lt_tmp_lt_search_path_spec=
10597 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10598 for lt_sys_path in $lt_search_path_spec; do
10599 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10600 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10601 else
10602 test -d "$lt_sys_path" && \
10603 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10605 done
10606 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10607 BEGIN {RS=" "; FS="/|\n";} {
10608 lt_foo="";
10609 lt_count=0;
10610 for (lt_i = NF; lt_i > 0; lt_i--) {
10611 if ($lt_i != "" && $lt_i != ".") {
10612 if ($lt_i == "..") {
10613 lt_count++;
10614 } else {
10615 if (lt_count == 0) {
10616 lt_foo="/" $lt_i lt_foo;
10617 } else {
10618 lt_count--;
10623 if (lt_foo != "") { lt_freq[lt_foo]++; }
10624 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10626 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10627 else
10628 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10630 library_names_spec=
10631 libname_spec='lib$name'
10632 soname_spec=
10633 shrext_cmds=".so"
10634 postinstall_cmds=
10635 postuninstall_cmds=
10636 finish_cmds=
10637 finish_eval=
10638 shlibpath_var=
10639 shlibpath_overrides_runpath=unknown
10640 version_type=none
10641 dynamic_linker="$host_os ld.so"
10642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10643 need_lib_prefix=unknown
10644 hardcode_into_libs=no
10646 # when you set need_version to no, make sure it does not cause -set_version
10647 # flags to be left without arguments
10648 need_version=unknown
10650 case $host_os in
10651 aix3*)
10652 version_type=linux
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10654 shlibpath_var=LIBPATH
10656 # AIX 3 has no versioning support, so we append a major version to the name.
10657 soname_spec='${libname}${release}${shared_ext}$major'
10660 aix4* | aix5*)
10661 version_type=linux
10662 need_lib_prefix=no
10663 need_version=no
10664 hardcode_into_libs=yes
10665 if test "$host_cpu" = ia64; then
10666 # AIX 5 supports IA64
10667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 else
10670 # With GCC up to 2.95.x, collect2 would create an import file
10671 # for dependence libraries. The import file would start with
10672 # the line `#! .'. This would cause the generated library to
10673 # depend on `.', always an invalid library. This was fixed in
10674 # development snapshots of GCC prior to 3.0.
10675 case $host_os in
10676 aix4 | aix4.[01] | aix4.[01].*)
10677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10678 echo ' yes '
10679 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10681 else
10682 can_build_shared=no
10685 esac
10686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10687 # soname into executable. Probably we can add versioning support to
10688 # collect2, so additional links can be useful in future.
10689 if test "$aix_use_runtimelinking" = yes; then
10690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10691 # instead of lib<name>.a to let people know that these are not
10692 # typical AIX shared libraries.
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 else
10695 # We preserve .a as extension for shared libraries through AIX4.2
10696 # and later when we are not doing run time linking.
10697 library_names_spec='${libname}${release}.a $libname.a'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10700 shlibpath_var=LIBPATH
10704 amigaos*)
10705 if test "$host_cpu" = m68k; then
10706 library_names_spec='$libname.ixlibrary $libname.a'
10707 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10708 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'
10709 else
10710 dynamic_linker=no
10714 beos*)
10715 library_names_spec='${libname}${shared_ext}'
10716 dynamic_linker="$host_os ld.so"
10717 shlibpath_var=LIBRARY_PATH
10720 bsdi[45]*)
10721 version_type=linux
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10729 # the default ld.so.conf also contains /usr/contrib/lib and
10730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10731 # libtool to hard-code these into programs
10734 cygwin* | mingw* | pw32*)
10735 version_type=windows
10736 shrext_cmds=".dll"
10737 need_version=no
10738 need_lib_prefix=no
10740 case $withGCC,$host_os in
10741 yes,cygwin* | yes,mingw* | yes,pw32*)
10742 library_names_spec='$libname.dll.a'
10743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10744 postinstall_cmds='base_file=`basename \${file}`~
10745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10746 dldir=$destdir/`dirname \$dlpath`~
10747 test -d \$dldir || mkdir -p \$dldir~
10748 $install_prog $dir/$dlname \$dldir/$dlname~
10749 chmod a+x \$dldir/$dlname~
10750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10754 dlpath=$dir/\$dldll~
10755 $RM \$dlpath'
10756 shlibpath_overrides_runpath=yes
10758 case $host_os in
10759 cygwin*)
10760 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10761 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10762 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10764 mingw*)
10765 # MinGW DLLs use traditional 'lib' prefix
10766 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10768 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10769 # It is most probably a Windows format PATH printed by
10770 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10771 # path with ; separators, and with drive letters. We can handle the
10772 # drive letters (cygwin fileutils understands them), so leave them,
10773 # especially as we might pass files found there to a mingw objdump,
10774 # which wouldn't understand a cygwinified path. Ahh.
10775 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10776 else
10777 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10780 pw32*)
10781 # pw32 DLLs use 'pw' prefix rather than 'lib'
10782 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10784 esac
10788 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10790 esac
10791 dynamic_linker='Win32 ld.exe'
10792 # FIXME: first we should search . and the directory the executable is in
10793 shlibpath_var=PATH
10796 darwin* | rhapsody*)
10797 dynamic_linker="$host_os dyld"
10798 version_type=darwin
10799 need_lib_prefix=no
10800 need_version=no
10801 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10802 soname_spec='${libname}${release}${major}$shared_ext'
10803 shlibpath_overrides_runpath=yes
10804 shlibpath_var=DYLD_LIBRARY_PATH
10805 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10807 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10808 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10811 dgux*)
10812 version_type=linux
10813 need_lib_prefix=no
10814 need_version=no
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10816 soname_spec='${libname}${release}${shared_ext}$major'
10817 shlibpath_var=LD_LIBRARY_PATH
10820 freebsd1*)
10821 dynamic_linker=no
10824 freebsd* | dragonfly*)
10825 # DragonFly does not have aout. When/if they implement a new
10826 # versioning mechanism, adjust this.
10827 if test -x /usr/bin/objformat; then
10828 objformat=`/usr/bin/objformat`
10829 else
10830 case $host_os in
10831 freebsd[123]*) objformat=aout ;;
10832 *) objformat=elf ;;
10833 esac
10835 version_type=freebsd-$objformat
10836 case $version_type in
10837 freebsd-elf*)
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10839 need_version=no
10840 need_lib_prefix=no
10842 freebsd-*)
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10844 need_version=yes
10846 esac
10847 shlibpath_var=LD_LIBRARY_PATH
10848 case $host_os in
10849 freebsd2*)
10850 shlibpath_overrides_runpath=yes
10852 freebsd3.[01]* | freebsdelf3.[01]*)
10853 shlibpath_overrides_runpath=yes
10854 hardcode_into_libs=yes
10856 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10857 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10858 shlibpath_overrides_runpath=no
10859 hardcode_into_libs=yes
10861 *) # from 4.6 on, and DragonFly
10862 shlibpath_overrides_runpath=yes
10863 hardcode_into_libs=yes
10865 esac
10868 gnu*)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 hardcode_into_libs=yes
10878 hpux9* | hpux10* | hpux11*)
10879 # Give a soname corresponding to the major version so that dld.sl refuses to
10880 # link against other versions.
10881 version_type=sunos
10882 need_lib_prefix=no
10883 need_version=no
10884 case $host_cpu in
10885 ia64*)
10886 shrext_cmds='.so'
10887 hardcode_into_libs=yes
10888 dynamic_linker="$host_os dld.so"
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10893 if test "X$HPUX_IA64_MODE" = X32; then
10894 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10895 else
10896 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10900 hppa*64*)
10901 shrext_cmds='.sl'
10902 hardcode_into_libs=yes
10903 dynamic_linker="$host_os dld.sl"
10904 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10912 shrext_cmds='.sl'
10913 dynamic_linker="$host_os dld.sl"
10914 shlibpath_var=SHLIB_PATH
10915 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10919 esac
10920 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10921 postinstall_cmds='chmod 555 $lib'
10924 interix[3-9]*)
10925 version_type=linux
10926 need_lib_prefix=no
10927 need_version=no
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10929 soname_spec='${libname}${release}${shared_ext}$major'
10930 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=no
10933 hardcode_into_libs=yes
10936 irix5* | irix6* | nonstopux*)
10937 case $host_os in
10938 nonstopux*) version_type=nonstopux ;;
10940 if test "$lt_cv_prog_gnu_ld" = yes; then
10941 version_type=linux
10942 else
10943 version_type=irix
10944 fi ;;
10945 esac
10946 need_lib_prefix=no
10947 need_version=no
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10950 case $host_os in
10951 irix5* | nonstopux*)
10952 libsuff= shlibsuff=
10955 case $LD in # libtool.m4 will add one of these switches to LD
10956 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10957 libsuff= shlibsuff= libmagic=32-bit;;
10958 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10959 libsuff=32 shlibsuff=N32 libmagic=N32;;
10960 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10961 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10962 *) libsuff= shlibsuff= libmagic=never-match;;
10963 esac
10965 esac
10966 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10967 shlibpath_overrides_runpath=no
10968 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10969 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10970 hardcode_into_libs=yes
10973 # No shared lib support for Linux oldld, aout, or coff.
10974 linux*oldld* | linux*aout* | linux*coff*)
10975 dynamic_linker=no
10978 # This must be Linux ELF.
10979 linux* | k*bsd*-gnu)
10980 version_type=linux
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 # Some binutils ld are patched to set DT_RUNPATH
10989 save_LDFLAGS=$LDFLAGS
10990 save_libdir=$libdir
10991 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10992 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10993 if test x$gcc_no_link = xyes; then
10994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10996 { (exit 1); exit 1; }; }
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11006 main ()
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11015 (eval $ac_link) 2>conftest.er1
11016 ac_status=$?
11017 grep -v '^ *+' conftest.er1 >conftest.err
11018 rm -f conftest.er1
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag"
11023 || test ! -s conftest.err'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try='test -s conftest$ac_exeext'
11030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11031 (eval $ac_try) 2>&5
11032 ac_status=$?
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); }; }; then
11035 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
11036 shlibpath_overrides_runpath=yes
11039 else
11040 echo "$as_me: failed program was:" >&5
11041 sed 's/^/| /' conftest.$ac_ext >&5
11044 rm -f conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LDFLAGS=$save_LDFLAGS
11047 libdir=$save_libdir
11049 # This implies no fast_install, which is unacceptable.
11050 # Some rework will be needed to allow for fast_install
11051 # before this can be enabled.
11052 hardcode_into_libs=yes
11054 # Append ld.so.conf contents to the search path
11055 if test -f /etc/ld.so.conf; then
11056 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11057 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11060 # We used to test for /lib/ld.so.1 and disable shared libraries on
11061 # powerpc, because MkLinux only supported shared libraries with the
11062 # GNU dynamic linker. Since this was broken with cross compilers,
11063 # most powerpc-linux boxes support dynamic linking these days and
11064 # people can always --disable-shared, the test was removed, and we
11065 # assume the GNU/Linux dynamic linker is in use.
11066 dynamic_linker='GNU/Linux ld.so'
11069 netbsd*)
11070 version_type=sunos
11071 need_lib_prefix=no
11072 need_version=no
11073 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11076 dynamic_linker='NetBSD (a.out) ld.so'
11077 else
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11079 soname_spec='${libname}${release}${shared_ext}$major'
11080 dynamic_linker='NetBSD ld.elf_so'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 hardcode_into_libs=yes
11087 newsos6)
11088 version_type=linux
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11094 *nto* | *qnx*)
11095 version_type=qnx
11096 need_lib_prefix=no
11097 need_version=no
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath=no
11102 hardcode_into_libs=yes
11103 dynamic_linker='ldqnx.so'
11106 openbsd*)
11107 version_type=sunos
11108 sys_lib_dlsearch_path_spec="/usr/lib"
11109 need_lib_prefix=no
11110 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11111 case $host_os in
11112 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11113 *) need_version=no ;;
11114 esac
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11119 case $host_os in
11120 openbsd2.[89] | openbsd2.[89].*)
11121 shlibpath_overrides_runpath=no
11124 shlibpath_overrides_runpath=yes
11126 esac
11127 else
11128 shlibpath_overrides_runpath=yes
11132 os2*)
11133 libname_spec='$name'
11134 shrext_cmds=".dll"
11135 need_lib_prefix=no
11136 library_names_spec='$libname${shared_ext} $libname.a'
11137 dynamic_linker='OS/2 ld.exe'
11138 shlibpath_var=LIBPATH
11141 osf3* | osf4* | osf5*)
11142 version_type=osf
11143 need_lib_prefix=no
11144 need_version=no
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11152 rdos*)
11153 dynamic_linker=no
11156 solaris*)
11157 version_type=linux
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes
11164 hardcode_into_libs=yes
11165 # ldd complains unless libraries are executable
11166 postinstall_cmds='chmod +x $lib'
11169 sunos4*)
11170 version_type=sunos
11171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11175 if test "$with_gnu_ld" = yes; then
11176 need_lib_prefix=no
11178 need_version=yes
11181 sysv4 | sysv4.3*)
11182 version_type=linux
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 case $host_vendor in
11187 sni)
11188 shlibpath_overrides_runpath=no
11189 need_lib_prefix=no
11190 runpath_var=LD_RUN_PATH
11192 siemens)
11193 need_lib_prefix=no
11195 motorola)
11196 need_lib_prefix=no
11197 need_version=no
11198 shlibpath_overrides_runpath=no
11199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11201 esac
11204 sysv4*MP*)
11205 if test -d /usr/nec ;then
11206 version_type=linux
11207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11208 soname_spec='$libname${shared_ext}.$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11214 version_type=freebsd-elf
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11218 soname_spec='${libname}${release}${shared_ext}$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 hardcode_into_libs=yes
11222 if test "$with_gnu_ld" = yes; then
11223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11224 else
11225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11226 case $host_os in
11227 sco3.2v5*)
11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11230 esac
11232 sys_lib_dlsearch_path_spec='/usr/lib'
11235 tpf*)
11236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11237 version_type=linux
11238 need_lib_prefix=no
11239 need_version=no
11240 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=no
11243 hardcode_into_libs=yes
11246 uts4*)
11247 version_type=linux
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11254 dynamic_linker=no
11256 esac
11257 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11258 echo "${ECHO_T}$dynamic_linker" >&6
11259 test "$dynamic_linker" = no && can_build_shared=no
11261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11262 if test "$GCC" = yes; then
11263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11352 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11353 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11354 hardcode_action=
11355 if test -n "$hardcode_libdir_flag_spec" ||
11356 test -n "$runpath_var" ||
11357 test "X$hardcode_automatic" = "Xyes" ; then
11359 # We can hardcode non-existent directories.
11360 if test "$hardcode_direct" != no &&
11361 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11362 # have to relink, otherwise we might link with an installed library
11363 # when we should be linking with a yet-to-be-installed one
11364 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11365 test "$hardcode_minus_L" != no; then
11366 # Linking always hardcodes the temporary library directory.
11367 hardcode_action=relink
11368 else
11369 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11370 hardcode_action=immediate
11372 else
11373 # We cannot hardcode anything, or else we can only hardcode existing
11374 # directories.
11375 hardcode_action=unsupported
11377 echo "$as_me:$LINENO: result: $hardcode_action" >&5
11378 echo "${ECHO_T}$hardcode_action" >&6
11380 if test "$hardcode_action" = relink ||
11381 test "$inherit_rpath" = yes; then
11382 # Fast installation is not supported
11383 enable_fast_install=no
11384 elif test "$shlibpath_overrides_runpath" = yes ||
11385 test "$enable_shared" = no; then
11386 # Fast installation is not necessary
11387 enable_fast_install=needless
11395 if test "x$enable_dlopen" != xyes; then
11396 enable_dlopen=unknown
11397 enable_dlopen_self=unknown
11398 enable_dlopen_self_static=unknown
11399 else
11400 lt_cv_dlopen=no
11401 lt_cv_dlopen_libs=
11403 case $host_os in
11404 beos*)
11405 lt_cv_dlopen="load_add_on"
11406 lt_cv_dlopen_libs=
11407 lt_cv_dlopen_self=yes
11410 mingw* | pw32*)
11411 lt_cv_dlopen="LoadLibrary"
11412 lt_cv_dlopen_libs=
11415 cygwin*)
11416 lt_cv_dlopen="dlopen"
11417 lt_cv_dlopen_libs=
11420 darwin*)
11421 # if libdl is installed we need to link against it
11422 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11423 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11424 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11425 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-ldl $LIBS"
11429 if test x$gcc_no_link = xyes; then
11430 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11431 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11432 { (exit 1); exit 1; }; }
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h. */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h. */
11441 /* Override any gcc2 internal prototype to avoid an error. */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446 builtin and then its argument prototype would still apply. */
11447 char dlopen ();
11449 main ()
11451 dlopen ();
11453 return 0;
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458 (eval $ac_link) 2>conftest.er1
11459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag"
11466 || test ! -s conftest.err'
11467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11469 ac_status=$?
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); }; } &&
11472 { ac_try='test -s conftest$ac_exeext'
11473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474 (eval $ac_try) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; }; then
11478 ac_cv_lib_dl_dlopen=yes
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11483 ac_cv_lib_dl_dlopen=no
11485 rm -f conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11489 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11490 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11491 if test $ac_cv_lib_dl_dlopen = yes; then
11492 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11493 else
11495 lt_cv_dlopen="dyld"
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11504 echo "$as_me:$LINENO: checking for shl_load" >&5
11505 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11506 if test "${ac_cv_func_shl_load+set}" = set; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 else
11509 if test x$gcc_no_link = xyes; then
11510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11512 { (exit 1); exit 1; }; }
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11522 #define shl_load innocuous_shl_load
11524 /* System header to define __stub macros and hopefully few prototypes,
11525 which can conflict with char shl_load (); below.
11526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11527 <limits.h> exists even on freestanding compilers. */
11529 #ifdef __STDC__
11530 # include <limits.h>
11531 #else
11532 # include <assert.h>
11533 #endif
11535 #undef shl_load
11537 /* Override any gcc2 internal prototype to avoid an error. */
11538 #ifdef __cplusplus
11539 extern "C"
11541 #endif
11542 /* We use char because int might match the return type of a gcc2
11543 builtin and then its argument prototype would still apply. */
11544 char shl_load ();
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11549 choke me
11550 #else
11551 char (*f) () = shl_load;
11552 #endif
11553 #ifdef __cplusplus
11555 #endif
11558 main ()
11560 return f != shl_load;
11562 return 0;
11564 _ACEOF
11565 rm -f conftest.$ac_objext conftest$ac_exeext
11566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11567 (eval $ac_link) 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } &&
11574 { ac_try='test -z "$ac_c_werror_flag"
11575 || test ! -s conftest.err'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; } &&
11581 { ac_try='test -s conftest$ac_exeext'
11582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11583 (eval $ac_try) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_func_shl_load=yes
11588 else
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_cv_func_shl_load=no
11594 rm -f conftest.err conftest.$ac_objext \
11595 conftest$ac_exeext conftest.$ac_ext
11597 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11598 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11599 if test $ac_cv_func_shl_load = yes; then
11600 lt_cv_dlopen="shl_load"
11601 else
11602 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11603 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11604 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607 ac_check_lib_save_LIBS=$LIBS
11608 LIBS="-ldld $LIBS"
11609 if test x$gcc_no_link = xyes; then
11610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11612 { (exit 1); exit 1; }; }
11614 cat >conftest.$ac_ext <<_ACEOF
11615 /* confdefs.h. */
11616 _ACEOF
11617 cat confdefs.h >>conftest.$ac_ext
11618 cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11621 /* Override any gcc2 internal prototype to avoid an error. */
11622 #ifdef __cplusplus
11623 extern "C"
11624 #endif
11625 /* We use char because int might match the return type of a gcc2
11626 builtin and then its argument prototype would still apply. */
11627 char shl_load ();
11629 main ()
11631 shl_load ();
11633 return 0;
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } &&
11645 { ac_try='test -z "$ac_c_werror_flag"
11646 || test ! -s conftest.err'
11647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11648 (eval $ac_try) 2>&5
11649 ac_status=$?
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); }; } &&
11652 { ac_try='test -s conftest$ac_exeext'
11653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11654 (eval $ac_try) 2>&5
11655 ac_status=$?
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); }; }; then
11658 ac_cv_lib_dld_shl_load=yes
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11663 ac_cv_lib_dld_shl_load=no
11665 rm -f conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11669 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11670 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11671 if test $ac_cv_lib_dld_shl_load = yes; then
11672 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11673 else
11674 echo "$as_me:$LINENO: checking for dlopen" >&5
11675 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11676 if test "${ac_cv_func_dlopen+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679 if test x$gcc_no_link = xyes; then
11680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11682 { (exit 1); exit 1; }; }
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11692 #define dlopen innocuous_dlopen
11694 /* System header to define __stub macros and hopefully few prototypes,
11695 which can conflict with char dlopen (); below.
11696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11697 <limits.h> exists even on freestanding compilers. */
11699 #ifdef __STDC__
11700 # include <limits.h>
11701 #else
11702 # include <assert.h>
11703 #endif
11705 #undef dlopen
11707 /* Override any gcc2 internal prototype to avoid an error. */
11708 #ifdef __cplusplus
11709 extern "C"
11711 #endif
11712 /* We use char because int might match the return type of a gcc2
11713 builtin and then its argument prototype would still apply. */
11714 char dlopen ();
11715 /* The GNU C library defines this for functions which it implements
11716 to always fail with ENOSYS. Some functions are actually named
11717 something starting with __ and the normal name is an alias. */
11718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11719 choke me
11720 #else
11721 char (*f) () = dlopen;
11722 #endif
11723 #ifdef __cplusplus
11725 #endif
11728 main ()
11730 return f != dlopen;
11732 return 0;
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737 (eval $ac_link) 2>conftest.er1
11738 ac_status=$?
11739 grep -v '^ *+' conftest.er1 >conftest.err
11740 rm -f conftest.er1
11741 cat conftest.err >&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } &&
11744 { ac_try='test -z "$ac_c_werror_flag"
11745 || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_func_dlopen=yes
11758 else
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_cv_func_dlopen=no
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11769 if test $ac_cv_func_dlopen = yes; then
11770 lt_cv_dlopen="dlopen"
11771 else
11772 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 else
11777 ac_check_lib_save_LIBS=$LIBS
11778 LIBS="-ldl $LIBS"
11779 if test x$gcc_no_link = xyes; then
11780 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11781 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11782 { (exit 1); exit 1; }; }
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11791 /* Override any gcc2 internal prototype to avoid an error. */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 /* We use char because int might match the return type of a gcc2
11796 builtin and then its argument prototype would still apply. */
11797 char dlopen ();
11799 main ()
11801 dlopen ();
11803 return 0;
11805 _ACEOF
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>conftest.er1
11809 ac_status=$?
11810 grep -v '^ *+' conftest.er1 >conftest.err
11811 rm -f conftest.er1
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag"
11816 || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest$ac_exeext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11825 ac_status=$?
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_lib_dl_dlopen=yes
11829 else
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_cv_lib_dl_dlopen=no
11835 rm -f conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11839 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11840 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11841 if test $ac_cv_lib_dl_dlopen = yes; then
11842 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11843 else
11844 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11845 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849 ac_check_lib_save_LIBS=$LIBS
11850 LIBS="-lsvld $LIBS"
11851 if test x$gcc_no_link = xyes; then
11852 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11853 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11854 { (exit 1); exit 1; }; }
11856 cat >conftest.$ac_ext <<_ACEOF
11857 /* confdefs.h. */
11858 _ACEOF
11859 cat confdefs.h >>conftest.$ac_ext
11860 cat >>conftest.$ac_ext <<_ACEOF
11861 /* end confdefs.h. */
11863 /* Override any gcc2 internal prototype to avoid an error. */
11864 #ifdef __cplusplus
11865 extern "C"
11866 #endif
11867 /* We use char because int might match the return type of a gcc2
11868 builtin and then its argument prototype would still apply. */
11869 char dlopen ();
11871 main ()
11873 dlopen ();
11875 return 0;
11877 _ACEOF
11878 rm -f conftest.$ac_objext conftest$ac_exeext
11879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11880 (eval $ac_link) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 ac_cv_lib_svld_dlopen=yes
11901 else
11902 echo "$as_me: failed program was:" >&5
11903 sed 's/^/| /' conftest.$ac_ext >&5
11905 ac_cv_lib_svld_dlopen=no
11907 rm -f conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11911 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11912 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11913 if test $ac_cv_lib_svld_dlopen = yes; then
11914 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11915 else
11916 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11917 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11918 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921 ac_check_lib_save_LIBS=$LIBS
11922 LIBS="-ldld $LIBS"
11923 if test x$gcc_no_link = xyes; then
11924 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11925 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11926 { (exit 1); exit 1; }; }
11928 cat >conftest.$ac_ext <<_ACEOF
11929 /* confdefs.h. */
11930 _ACEOF
11931 cat confdefs.h >>conftest.$ac_ext
11932 cat >>conftest.$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11935 /* Override any gcc2 internal prototype to avoid an error. */
11936 #ifdef __cplusplus
11937 extern "C"
11938 #endif
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941 char dld_link ();
11943 main ()
11945 dld_link ();
11947 return 0;
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>conftest.er1
11953 ac_status=$?
11954 grep -v '^ *+' conftest.er1 >conftest.err
11955 rm -f conftest.er1
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } &&
11959 { ac_try='test -z "$ac_c_werror_flag"
11960 || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_dld_dld_link=yes
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_cv_lib_dld_dld_link=no
11979 rm -f conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11984 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11985 if test $ac_cv_lib_dld_dld_link = yes; then
11986 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12005 esac
12007 if test "x$lt_cv_dlopen" != xno; then
12008 enable_dlopen=yes
12009 else
12010 enable_dlopen=no
12013 case $lt_cv_dlopen in
12014 dlopen)
12015 save_CPPFLAGS="$CPPFLAGS"
12016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12018 save_LDFLAGS="$LDFLAGS"
12019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12021 save_LIBS="$LIBS"
12022 LIBS="$lt_cv_dlopen_libs $LIBS"
12024 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12025 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12026 if test "${lt_cv_dlopen_self+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 else
12029 if test "$cross_compiling" = yes; then :
12030 lt_cv_dlopen_self=cross
12031 else
12032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12033 lt_status=$lt_dlunknown
12034 cat > conftest.$ac_ext <<_LT_EOF
12035 #line 12035 "configure"
12036 #include "confdefs.h"
12038 #if HAVE_DLFCN_H
12039 #include <dlfcn.h>
12040 #endif
12042 #include <stdio.h>
12044 #ifdef RTLD_GLOBAL
12045 # define LT_DLGLOBAL RTLD_GLOBAL
12046 #else
12047 # ifdef DL_GLOBAL
12048 # define LT_DLGLOBAL DL_GLOBAL
12049 # else
12050 # define LT_DLGLOBAL 0
12051 # endif
12052 #endif
12054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12055 find out it does not work in some platform. */
12056 #ifndef LT_DLLAZY_OR_NOW
12057 # ifdef RTLD_LAZY
12058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12059 # else
12060 # ifdef DL_LAZY
12061 # define LT_DLLAZY_OR_NOW DL_LAZY
12062 # else
12063 # ifdef RTLD_NOW
12064 # define LT_DLLAZY_OR_NOW RTLD_NOW
12065 # else
12066 # ifdef DL_NOW
12067 # define LT_DLLAZY_OR_NOW DL_NOW
12068 # else
12069 # define LT_DLLAZY_OR_NOW 0
12070 # endif
12071 # endif
12072 # endif
12073 # endif
12074 #endif
12076 #ifdef __cplusplus
12077 extern "C" void exit (int);
12078 #endif
12080 void fnord() { int i=42;}
12081 int main ()
12083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12084 int status = $lt_dlunknown;
12086 if (self)
12088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12090 /* dlclose (self); */
12092 else
12093 puts (dlerror ());
12095 exit (status);
12097 _LT_EOF
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>&5
12100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12103 (./conftest; exit; ) >&5 2>/dev/null
12104 lt_status=$?
12105 case x$lt_status in
12106 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12107 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12108 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12109 esac
12110 else :
12111 # compilation failed
12112 lt_cv_dlopen_self=no
12115 rm -fr conftest*
12119 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12120 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12122 if test "x$lt_cv_dlopen_self" = xyes; then
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12124 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12125 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12126 if test "${lt_cv_dlopen_self_static+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129 if test "$cross_compiling" = yes; then :
12130 lt_cv_dlopen_self_static=cross
12131 else
12132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12133 lt_status=$lt_dlunknown
12134 cat > conftest.$ac_ext <<_LT_EOF
12135 #line 12135 "configure"
12136 #include "confdefs.h"
12138 #if HAVE_DLFCN_H
12139 #include <dlfcn.h>
12140 #endif
12142 #include <stdio.h>
12144 #ifdef RTLD_GLOBAL
12145 # define LT_DLGLOBAL RTLD_GLOBAL
12146 #else
12147 # ifdef DL_GLOBAL
12148 # define LT_DLGLOBAL DL_GLOBAL
12149 # else
12150 # define LT_DLGLOBAL 0
12151 # endif
12152 #endif
12154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12155 find out it does not work in some platform. */
12156 #ifndef LT_DLLAZY_OR_NOW
12157 # ifdef RTLD_LAZY
12158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12159 # else
12160 # ifdef DL_LAZY
12161 # define LT_DLLAZY_OR_NOW DL_LAZY
12162 # else
12163 # ifdef RTLD_NOW
12164 # define LT_DLLAZY_OR_NOW RTLD_NOW
12165 # else
12166 # ifdef DL_NOW
12167 # define LT_DLLAZY_OR_NOW DL_NOW
12168 # else
12169 # define LT_DLLAZY_OR_NOW 0
12170 # endif
12171 # endif
12172 # endif
12173 # endif
12174 #endif
12176 #ifdef __cplusplus
12177 extern "C" void exit (int);
12178 #endif
12180 void fnord() { int i=42;}
12181 int main ()
12183 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12184 int status = $lt_dlunknown;
12186 if (self)
12188 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12189 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12190 /* dlclose (self); */
12192 else
12193 puts (dlerror ());
12195 exit (status);
12197 _LT_EOF
12198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>&5
12200 ac_status=$?
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12203 (./conftest; exit; ) >&5 2>/dev/null
12204 lt_status=$?
12205 case x$lt_status in
12206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12208 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12209 esac
12210 else :
12211 # compilation failed
12212 lt_cv_dlopen_self_static=no
12215 rm -fr conftest*
12219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12223 CPPFLAGS="$save_CPPFLAGS"
12224 LDFLAGS="$save_LDFLAGS"
12225 LIBS="$save_LIBS"
12227 esac
12229 case $lt_cv_dlopen_self in
12230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12231 *) enable_dlopen_self=unknown ;;
12232 esac
12234 case $lt_cv_dlopen_self_static in
12235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12236 *) enable_dlopen_self_static=unknown ;;
12237 esac
12256 striplib=
12257 old_striplib=
12258 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12260 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12263 echo "$as_me:$LINENO: result: yes" >&5
12264 echo "${ECHO_T}yes" >&6
12265 else
12266 # FIXME - insert some real tests, host_os isn't really good enough
12267 case $host_os in
12268 darwin*)
12269 if test -n "$STRIP" ; then
12270 striplib="$STRIP -x"
12271 old_striplib="$STRIP -S"
12272 echo "$as_me:$LINENO: result: yes" >&5
12273 echo "${ECHO_T}yes" >&6
12274 else
12275 echo "$as_me:$LINENO: result: no" >&5
12276 echo "${ECHO_T}no" >&6
12280 echo "$as_me:$LINENO: result: no" >&5
12281 echo "${ECHO_T}no" >&6
12283 esac
12297 # Report which library types will actually be built
12298 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12299 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12300 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12301 echo "${ECHO_T}$can_build_shared" >&6
12303 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12304 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12305 test "$can_build_shared" = "no" && enable_shared=no
12307 # On AIX, shared libraries and static libraries use the same namespace, and
12308 # are all built from PIC.
12309 case $host_os in
12310 aix3*)
12311 test "$enable_shared" = yes && enable_static=no
12312 if test -n "$RANLIB"; then
12313 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12314 postinstall_cmds='$RANLIB $lib'
12318 aix4* | aix5*)
12319 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12320 test "$enable_shared" = yes && enable_static=no
12323 esac
12324 echo "$as_me:$LINENO: result: $enable_shared" >&5
12325 echo "${ECHO_T}$enable_shared" >&6
12327 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12328 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12329 # Make sure either enable_shared or enable_static is yes.
12330 test "$enable_shared" = yes || enable_static=yes
12331 echo "$as_me:$LINENO: result: $enable_static" >&5
12332 echo "${ECHO_T}$enable_static" >&6
12338 ac_ext=c
12339 ac_cpp='$CPP $CPPFLAGS'
12340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12344 CC="$lt_save_CC"
12347 ac_ext=cc
12348 ac_cpp='$CXXCPP $CPPFLAGS'
12349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12353 archive_cmds_need_lc_CXX=no
12354 allow_undefined_flag_CXX=
12355 always_export_symbols_CXX=no
12356 archive_expsym_cmds_CXX=
12357 compiler_needs_object_CXX=no
12358 export_dynamic_flag_spec_CXX=
12359 hardcode_direct_CXX=no
12360 hardcode_direct_absolute_CXX=no
12361 hardcode_libdir_flag_spec_CXX=
12362 hardcode_libdir_flag_spec_ld_CXX=
12363 hardcode_libdir_separator_CXX=
12364 hardcode_minus_L_CXX=no
12365 hardcode_shlibpath_var_CXX=unsupported
12366 hardcode_automatic_CXX=no
12367 inherit_rpath_CXX=no
12368 module_cmds_CXX=
12369 module_expsym_cmds_CXX=
12370 link_all_deplibs_CXX=unknown
12371 old_archive_cmds_CXX=$old_archive_cmds
12372 no_undefined_flag_CXX=
12373 whole_archive_flag_spec_CXX=
12374 enable_shared_with_static_runtimes_CXX=no
12376 # Source file extension for C++ test sources.
12377 ac_ext=cpp
12379 # Object file extension for compiled C++ test sources.
12380 objext=o
12381 objext_CXX=$objext
12383 # No sense in running all these tests if we already determined that
12384 # the CXX compiler isn't working. Some variables (like enable_shared)
12385 # are currently assumed to apply to all compilers on this platform,
12386 # and will be corrupted by setting them based on a non-working compiler.
12387 if test "$_lt_caught_CXX_error" != yes; then
12388 # Code to be used in simple compile tests
12389 lt_simple_compile_test_code="int some_variable = 0;"
12391 # Code to be used in simple link tests
12392 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12394 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12401 # If no C compiler was specified, use CC.
12402 LTCC=${LTCC-"$CC"}
12404 # If no C compiler flags were specified, use CFLAGS.
12405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12407 # Allow CC to be a program name with arguments.
12408 compiler=$CC
12411 # save warnings/boilerplate of simple test code
12412 ac_outfile=conftest.$ac_objext
12413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415 _lt_compiler_boilerplate=`cat conftest.err`
12416 $RM conftest*
12418 ac_outfile=conftest.$ac_objext
12419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12421 _lt_linker_boilerplate=`cat conftest.err`
12422 $RM conftest*
12425 # Allow CC to be a program name with arguments.
12426 lt_save_CC=$CC
12427 lt_save_LD=$LD
12428 lt_save_GCC=$GCC
12429 GCC=$GXX
12430 lt_save_with_gnu_ld=$with_gnu_ld
12431 lt_save_path_LD=$lt_cv_path_LD
12432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12434 else
12435 $as_unset lt_cv_prog_gnu_ld
12437 if test -n "${lt_cv_path_LDCXX+set}"; then
12438 lt_cv_path_LD=$lt_cv_path_LDCXX
12439 else
12440 $as_unset lt_cv_path_LD
12442 test -z "${LDCXX+set}" || LD=$LDCXX
12443 CC=${CXX-"c++"}
12444 compiler=$CC
12445 compiler_CXX=$CC
12446 for cc_temp in $compiler""; do
12447 case $cc_temp in
12448 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12449 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12450 \-*) ;;
12451 *) break;;
12452 esac
12453 done
12454 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12457 if test -n "$compiler"; then
12458 # We don't want -fno-exception when compiling C++ code, so set the
12459 # no_builtin_flag separately
12460 if test "$GXX" = yes; then
12461 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12462 else
12463 lt_prog_compiler_no_builtin_flag_CXX=
12466 if test "$GXX" = yes; then
12467 # Set up default GNU C++ configuration
12471 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12472 if test "${with_gnu_ld+set}" = set; then
12473 withval="$with_gnu_ld"
12474 test "$withval" = no || with_gnu_ld=yes
12475 else
12476 with_gnu_ld=no
12478 ac_prog=ld
12479 if test "$GCC" = yes; then
12480 # Check if gcc -print-prog-name=ld gives a path.
12481 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12482 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12483 case $host in
12484 *-*-mingw*)
12485 # gcc leaves a trailing carriage return which upsets mingw
12486 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12488 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12489 esac
12490 case $ac_prog in
12491 # Accept absolute paths.
12492 [\\/]* | ?:[\\/]*)
12493 re_direlt='/[^/][^/]*/\.\./'
12494 # Canonicalize the pathname of ld
12495 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12496 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12497 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12498 done
12499 test -z "$LD" && LD="$ac_prog"
12502 # If it fails, then pretend we aren't using GCC.
12503 ac_prog=ld
12506 # If it is relative, then search for the first ld in PATH.
12507 with_gnu_ld=unknown
12509 esac
12510 elif test "$with_gnu_ld" = yes; then
12511 echo "$as_me:$LINENO: checking for GNU ld" >&5
12512 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12513 else
12514 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12515 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12517 if test "${lt_cv_path_LD+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 if test -z "$LD"; then
12521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12522 for ac_dir in $PATH; do
12523 IFS="$lt_save_ifs"
12524 test -z "$ac_dir" && ac_dir=.
12525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12526 lt_cv_path_LD="$ac_dir/$ac_prog"
12527 # Check to see if the program is GNU ld. I'd rather use --version,
12528 # but apparently some variants of GNU ld only accept -v.
12529 # Break only if it was the GNU/non-GNU ld that we prefer.
12530 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12531 *GNU* | *'with BFD'*)
12532 test "$with_gnu_ld" != no && break
12535 test "$with_gnu_ld" != yes && break
12537 esac
12539 done
12540 IFS="$lt_save_ifs"
12541 else
12542 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12546 LD="$lt_cv_path_LD"
12547 if test -n "$LD"; then
12548 echo "$as_me:$LINENO: result: $LD" >&5
12549 echo "${ECHO_T}$LD" >&6
12550 else
12551 echo "$as_me:$LINENO: result: no" >&5
12552 echo "${ECHO_T}no" >&6
12554 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12555 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12556 { (exit 1); exit 1; }; }
12557 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12558 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12559 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12563 case `$LD -v 2>&1 </dev/null` in
12564 *GNU* | *'with BFD'*)
12565 lt_cv_prog_gnu_ld=yes
12568 lt_cv_prog_gnu_ld=no
12570 esac
12572 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12573 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12574 with_gnu_ld=$lt_cv_prog_gnu_ld
12582 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12583 # archiving commands below assume that GNU ld is being used.
12584 if test "$with_gnu_ld" = yes; then
12585 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12586 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'
12588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12589 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12591 # If archive_cmds runs LD, not CC, wlarc should be empty
12592 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12593 # investigate it a little bit more. (MM)
12594 wlarc='${wl}'
12596 # ancient GNU ld didn't support --whole-archive et. al.
12597 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12598 $GREP 'no-whole-archive' > /dev/null; then
12599 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12600 else
12601 whole_archive_flag_spec_CXX=
12603 else
12604 with_gnu_ld=no
12605 wlarc=
12607 # A generic and very simple default shared library creation
12608 # command for GNU C++ for the case where it uses the native
12609 # linker, instead of GNU ld. If possible, this setting should
12610 # overridden to take advantage of the native linker features on
12611 # the platform it is being used on.
12612 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12615 # Commands to make compiler produce verbose output that lists
12616 # what "hidden" libraries, object files and flags are used when
12617 # linking a shared library.
12618 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12620 else
12621 GXX=no
12622 with_gnu_ld=no
12623 wlarc=
12626 # PORTME: fill in a description of your system's C++ link characteristics
12627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12629 ld_shlibs_CXX=yes
12630 case $host_os in
12631 aix3*)
12632 # FIXME: insert proper C++ library support
12633 ld_shlibs_CXX=no
12635 aix4* | aix5*)
12636 if test "$host_cpu" = ia64; then
12637 # On IA64, the linker does run time linking by default, so we don't
12638 # have to do anything special.
12639 aix_use_runtimelinking=no
12640 exp_sym_flag='-Bexport'
12641 no_entry_flag=""
12642 else
12643 aix_use_runtimelinking=no
12645 # Test if we are trying to use run time linking or normal
12646 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12647 # need to do runtime linking.
12648 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12649 for ld_flag in $LDFLAGS; do
12650 case $ld_flag in
12651 *-brtl*)
12652 aix_use_runtimelinking=yes
12653 break
12655 esac
12656 done
12658 esac
12660 exp_sym_flag='-bexport'
12661 no_entry_flag='-bnoentry'
12664 # When large executables or shared objects are built, AIX ld can
12665 # have problems creating the table of contents. If linking a library
12666 # or program results in "error TOC overflow" add -mminimal-toc to
12667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12670 archive_cmds_CXX=''
12671 hardcode_direct_CXX=yes
12672 hardcode_direct_absolute_CXX=yes
12673 hardcode_libdir_separator_CXX=':'
12674 link_all_deplibs_CXX=yes
12675 file_list_spec_CXX='${wl}-f,'
12677 if test "$GXX" = yes; then
12678 case $host_os in aix4.[012]|aix4.[012].*)
12679 # We only want to do this on AIX 4.2 and lower, the check
12680 # below for broken collect2 doesn't work under 4.3+
12681 collect2name=`${CC} -print-prog-name=collect2`
12682 if test -f "$collect2name" &&
12683 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12684 then
12685 # We have reworked collect2
12687 else
12688 # We have old collect2
12689 hardcode_direct_CXX=unsupported
12690 # It fails to find uninstalled libraries when the uninstalled
12691 # path is not listed in the libpath. Setting hardcode_minus_L
12692 # to unsupported forces relinking
12693 hardcode_minus_L_CXX=yes
12694 hardcode_libdir_flag_spec_CXX='-L$libdir'
12695 hardcode_libdir_separator_CXX=
12697 esac
12698 shared_flag='-shared'
12699 if test "$aix_use_runtimelinking" = yes; then
12700 shared_flag="$shared_flag "'${wl}-G'
12702 else
12703 # not using gcc
12704 if test "$host_cpu" = ia64; then
12705 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12706 # chokes on -Wl,-G. The following line is correct:
12707 shared_flag='-G'
12708 else
12709 if test "$aix_use_runtimelinking" = yes; then
12710 shared_flag='${wl}-G'
12711 else
12712 shared_flag='${wl}-bM:SRE'
12717 # It seems that -bexpall does not export symbols beginning with
12718 # underscore (_), so it is better to generate a list of symbols to
12719 # export.
12720 always_export_symbols_CXX=yes
12721 if test "$aix_use_runtimelinking" = yes; then
12722 # Warning - without using the other runtime loading flags (-brtl),
12723 # -berok will link without error, but may produce a broken library.
12724 allow_undefined_flag_CXX='-berok'
12725 # Determine the default libpath from the value encoded in an empty
12726 # executable.
12727 if test x$gcc_no_link = xyes; then
12728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12730 { (exit 1); exit 1; }; }
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12740 main ()
12744 return 0;
12746 _ACEOF
12747 rm -f conftest.$ac_objext conftest$ac_exeext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12749 (eval $ac_link) 2>conftest.er1
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -z "$ac_cxx_werror_flag"
12757 || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12770 lt_aix_libpath_sed='
12771 /Import File Strings/,/^$/ {
12772 /^0/ {
12773 s/^0 *\(.*\)$/\1/
12777 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12778 # Check for a 64-bit object if we didn't find anything.
12779 if test -z "$aix_libpath"; then
12780 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12782 else
12783 echo "$as_me: failed program was:" >&5
12784 sed 's/^/| /' conftest.$ac_ext >&5
12787 rm -f conftest.err conftest.$ac_objext \
12788 conftest$ac_exeext conftest.$ac_ext
12789 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12791 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12793 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"
12794 else
12795 if test "$host_cpu" = ia64; then
12796 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12797 allow_undefined_flag_CXX="-z nodefs"
12798 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"
12799 else
12800 # Determine the default libpath from the value encoded in an
12801 # empty executable.
12802 if test x$gcc_no_link = xyes; then
12803 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12804 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12805 { (exit 1); exit 1; }; }
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h. */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h. */
12815 main ()
12819 return 0;
12821 _ACEOF
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12824 (eval $ac_link) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } &&
12831 { ac_try='test -z "$ac_cxx_werror_flag"
12832 || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12845 lt_aix_libpath_sed='
12846 /Import File Strings/,/^$/ {
12847 /^0/ {
12848 s/^0 *\(.*\)$/\1/
12852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12853 # Check for a 64-bit object if we didn't find anything.
12854 if test -z "$aix_libpath"; then
12855 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12857 else
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12862 rm -f conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12866 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12867 # Warning - without using the other run time loading flags,
12868 # -berok will link without error, but may produce a broken library.
12869 no_undefined_flag_CXX=' ${wl}-bernotok'
12870 allow_undefined_flag_CXX=' ${wl}-berok'
12871 # Exported symbols can be pulled into shared objects from archives
12872 whole_archive_flag_spec_CXX='$convenience'
12873 archive_cmds_need_lc_CXX=yes
12874 # This is similar to how AIX traditionally builds its shared
12875 # libraries.
12876 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'
12881 beos*)
12882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12883 allow_undefined_flag_CXX=unsupported
12884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12885 # support --undefined. This deserves some investigation. FIXME
12886 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12887 else
12888 ld_shlibs_CXX=no
12892 chorus*)
12893 case $cc_basename in
12895 # FIXME: insert proper C++ library support
12896 ld_shlibs_CXX=no
12898 esac
12901 cygwin* | mingw* | pw32*)
12902 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12903 # as there is no search path for DLLs.
12904 hardcode_libdir_flag_spec_CXX='-L$libdir'
12905 allow_undefined_flag_CXX=unsupported
12906 always_export_symbols_CXX=no
12907 enable_shared_with_static_runtimes_CXX=yes
12909 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12910 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'
12911 # If the export-symbols file already is a .def file (1st line
12912 # is EXPORTS), use it as is; otherwise, prepend...
12913 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12914 cp $export_symbols $output_objdir/$soname.def;
12915 else
12916 echo EXPORTS > $output_objdir/$soname.def;
12917 cat $export_symbols >> $output_objdir/$soname.def;
12919 $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'
12920 else
12921 ld_shlibs_CXX=no
12924 darwin* | rhapsody*)
12925 case $host_os in
12926 rhapsody* | darwin1.[012])
12927 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12929 *) # Darwin 1.3 on
12930 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
12931 10.[012])
12932 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12934 10.*)
12935 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12937 esac
12939 esac
12940 archive_cmds_need_lc_CXX=no
12941 hardcode_direct_CXX=no
12942 hardcode_automatic_CXX=yes
12943 hardcode_shlibpath_var_CXX=unsupported
12944 whole_archive_flag_spec_CXX=''
12945 link_all_deplibs_CXX=yes
12947 if test "$GXX" = yes ; then
12948 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 lt_cv_apple_cc_single_mod=no
12952 if test -z "${LT_MULTI_MODULE}"; then
12953 # By default we will add the -single_module flag. You can override
12954 # by either setting the environment variable LT_MULTI_MODULE
12955 # non-empty at configure time, or by adding -multi-module to the
12956 # link flags.
12957 echo "int foo(void){return 1;}" > conftest.c
12958 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12959 -dynamiclib ${wl}-single_module conftest.c
12960 if test -f libconftest.dylib; then
12961 lt_cv_apple_cc_single_mod=yes
12962 rm libconftest.dylib
12964 rm conftest.$ac_ext
12968 output_verbose_link_cmd=echo
12969 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
12970 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12971 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12972 else
12973 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'
12974 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12976 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12977 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12978 else
12979 case $cc_basename in
12980 xlc*)
12981 output_verbose_link_cmd=echo
12982 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
12983 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12984 # Don't fix this by using the ld -exported_symbols_list flag,
12985 # it doesn't exist in older darwin lds
12986 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12987 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12990 ld_shlibs_CXX=no
12992 esac
12996 dgux*)
12997 case $cc_basename in
12998 ec++*)
12999 # FIXME: insert proper C++ library support
13000 ld_shlibs_CXX=no
13002 ghcx*)
13003 # Green Hills C++ Compiler
13004 # FIXME: insert proper C++ library support
13005 ld_shlibs_CXX=no
13008 # FIXME: insert proper C++ library support
13009 ld_shlibs_CXX=no
13011 esac
13014 freebsd[12]*)
13015 # C++ shared libraries reported to be fairly broken before
13016 # switch to ELF
13017 ld_shlibs_CXX=no
13020 freebsd-elf*)
13021 archive_cmds_need_lc_CXX=no
13024 freebsd* | dragonfly*)
13025 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13026 # conventions
13027 ld_shlibs_CXX=yes
13030 gnu*)
13033 hpux9*)
13034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13035 hardcode_libdir_separator_CXX=:
13036 export_dynamic_flag_spec_CXX='${wl}-E'
13037 hardcode_direct_CXX=yes
13038 hardcode_minus_L_CXX=yes # Not in the search PATH,
13039 # but as the default
13040 # location of the library.
13042 case $cc_basename in
13043 CC*)
13044 # FIXME: insert proper C++ library support
13045 ld_shlibs_CXX=no
13047 aCC*)
13048 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'
13049 # Commands to make compiler produce verbose output that lists
13050 # what "hidden" libraries, object files and flags are used when
13051 # linking a shared library.
13053 # There doesn't appear to be a way to prevent this compiler from
13054 # explicitly linking system object files so we need to strip them
13055 # from the output so that they don't get included in the library
13056 # dependencies.
13057 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'
13060 if test "$GXX" = yes; then
13061 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'
13062 else
13063 # FIXME: insert proper C++ library support
13064 ld_shlibs_CXX=no
13067 esac
13070 hpux10*|hpux11*)
13071 if test $with_gnu_ld = no; then
13072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13073 hardcode_libdir_separator_CXX=:
13075 case $host_cpu in
13076 hppa*64*|ia64*)
13079 export_dynamic_flag_spec_CXX='${wl}-E'
13081 esac
13083 case $host_cpu in
13084 hppa*64*|ia64*)
13085 hardcode_direct_CXX=no
13086 hardcode_shlibpath_var_CXX=no
13089 hardcode_direct_CXX=yes
13090 hardcode_direct_absolute_CXX=yes
13091 hardcode_minus_L_CXX=yes # Not in the search PATH,
13092 # but as the default
13093 # location of the library.
13095 esac
13097 case $cc_basename in
13098 CC*)
13099 # FIXME: insert proper C++ library support
13100 ld_shlibs_CXX=no
13102 aCC*)
13103 case $host_cpu in
13104 hppa*64*)
13105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13107 ia64*)
13108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13113 esac
13114 # Commands to make compiler produce verbose output that lists
13115 # what "hidden" libraries, object files and flags are used when
13116 # linking a shared library.
13118 # There doesn't appear to be a way to prevent this compiler from
13119 # explicitly linking system object files so we need to strip them
13120 # from the output so that they don't get included in the library
13121 # dependencies.
13122 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'
13125 if test "$GXX" = yes; then
13126 if test $with_gnu_ld = no; then
13127 case $host_cpu in
13128 hppa*64*)
13129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13131 ia64*)
13132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13135 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'
13137 esac
13139 else
13140 # FIXME: insert proper C++ library support
13141 ld_shlibs_CXX=no
13144 esac
13147 interix[3-9]*)
13148 hardcode_direct_CXX=no
13149 hardcode_shlibpath_var_CXX=no
13150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13151 export_dynamic_flag_spec_CXX='${wl}-E'
13152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13153 # Instead, shared libraries are loaded at an image base (0x10000000 by
13154 # default) and relocated if they conflict, which is a slow very memory
13155 # consuming and fragmenting process. To avoid this, we pick a random,
13156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13158 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'
13159 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'
13161 irix5* | irix6*)
13162 case $cc_basename in
13163 CC*)
13164 # SGI C++
13165 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'
13167 # Archives containing C++ object files must be created using
13168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13169 # necessary to make sure instantiated templates are included
13170 # in the archive.
13171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13174 if test "$GXX" = yes; then
13175 if test "$with_gnu_ld" = no; then
13176 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'
13177 else
13178 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'
13181 link_all_deplibs_CXX=yes
13183 esac
13184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13185 hardcode_libdir_separator_CXX=:
13186 inherit_rpath_CXX=yes
13189 linux* | k*bsd*-gnu)
13190 case $cc_basename in
13191 KCC*)
13192 # Kuck and Associates, Inc. (KAI) C++ Compiler
13194 # KCC will only create a shared library if the output file
13195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13196 # to its proper name (with version) after linking.
13197 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'
13198 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'
13199 # Commands to make compiler produce verbose output that lists
13200 # what "hidden" libraries, object files and flags are used when
13201 # linking a shared library.
13203 # There doesn't appear to be a way to prevent this compiler from
13204 # explicitly linking system object files so we need to strip them
13205 # from the output so that they don't get included in the library
13206 # dependencies.
13207 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'
13209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13212 # Archives containing C++ object files must be created using
13213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13216 icpc* | ecpc* )
13217 # Intel C++
13218 with_gnu_ld=yes
13219 # version 8.0 and above of icpc choke on multiply defined symbols
13220 # if we add $predep_objects and $postdep_objects, however 7.1 and
13221 # earlier do not add the objects themselves.
13222 case `$CC -V 2>&1` in
13223 *"Version 7."*)
13224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13225 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'
13227 *) # Version 8.0 or newer
13228 tmp_idyn=
13229 case $host_cpu in
13230 ia64*) tmp_idyn=' -i_dynamic';;
13231 esac
13232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13233 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'
13235 esac
13236 archive_cmds_need_lc_CXX=no
13237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13241 pgCC*)
13242 # Portland Group C++ compiler
13243 case `$CC -V` in
13244 *pgCC\ [1-5]*)
13245 prelink_cmds_CXX='tpldir=Template.dir~
13246 rm -rf $tpldir~
13247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13248 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13249 old_archive_cmds_CXX='tpldir=Template.dir~
13250 rm -rf $tpldir~
13251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13253 $RANLIB $oldlib'
13254 archive_cmds_CXX='tpldir=Template.dir~
13255 rm -rf $tpldir~
13256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13258 archive_expsym_cmds_CXX='tpldir=Template.dir~
13259 rm -rf $tpldir~
13260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13261 $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'
13263 *) # Version 6 will use weak symbols
13264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13265 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'
13267 esac
13269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13271 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'
13273 cxx*)
13274 # Compaq C++
13275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13276 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'
13278 runpath_var=LD_RUN_PATH
13279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13280 hardcode_libdir_separator_CXX=:
13282 # Commands to make compiler produce verbose output that lists
13283 # what "hidden" libraries, object files and flags are used when
13284 # linking a shared library.
13286 # There doesn't appear to be a way to prevent this compiler from
13287 # explicitly linking system object files so we need to strip them
13288 # from the output so that they don't get included in the library
13289 # dependencies.
13290 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'
13293 case `$CC -V 2>&1 | sed 5q` in
13294 *Sun\ C*)
13295 # Sun C++ 5.9
13296 no_undefined_flag_CXX=' -zdefs'
13297 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13298 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'
13299 hardcode_libdir_flag_spec_CXX='-R$libdir'
13300 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'
13301 compiler_needs_object_CXX=yes
13303 # Not sure whether something based on
13304 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13305 # would be better.
13306 output_verbose_link_cmd='echo'
13308 # Archives containing C++ object files must be created using
13309 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13310 # necessary to make sure instantiated templates are included
13311 # in the archive.
13312 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13314 esac
13316 esac
13319 lynxos*)
13320 # FIXME: insert proper C++ library support
13321 ld_shlibs_CXX=no
13324 m88k*)
13325 # FIXME: insert proper C++ library support
13326 ld_shlibs_CXX=no
13329 mvs*)
13330 case $cc_basename in
13331 cxx*)
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13339 esac
13342 netbsd*)
13343 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13344 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13345 wlarc=
13346 hardcode_libdir_flag_spec_CXX='-R$libdir'
13347 hardcode_direct_CXX=yes
13348 hardcode_shlibpath_var_CXX=no
13350 # Workaround some broken pre-1.5 toolchains
13351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13354 *nto* | *qnx*)
13355 ld_shlibs_CXX=yes
13358 openbsd2*)
13359 # C++ shared libraries are fairly broken
13360 ld_shlibs_CXX=no
13363 openbsd*)
13364 hardcode_direct_CXX=yes
13365 hardcode_shlibpath_var_CXX=no
13366 hardcode_direct_absolute_CXX=yes
13367 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13368 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13370 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13371 export_dynamic_flag_spec_CXX='${wl}-E'
13372 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13374 output_verbose_link_cmd=echo
13377 osf3* | osf4* | osf5*)
13378 case $cc_basename in
13379 KCC*)
13380 # Kuck and Associates, Inc. (KAI) C++ Compiler
13382 # KCC will only create a shared library if the output file
13383 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13384 # to its proper name (with version) after linking.
13385 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'
13387 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13388 hardcode_libdir_separator_CXX=:
13390 # Archives containing C++ object files must be created using
13391 # the KAI C++ compiler.
13392 case $host in
13393 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13394 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13395 esac
13397 RCC*)
13398 # Rational C++ 2.4.1
13399 # FIXME: insert proper C++ library support
13400 ld_shlibs_CXX=no
13402 cxx*)
13403 case $host in
13404 osf3*)
13405 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13406 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'
13407 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410 allow_undefined_flag_CXX=' -expect_unresolved \*'
13411 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'
13412 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13413 echo "-hidden">> $lib.exp~
13414 $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~
13415 $RM $lib.exp'
13416 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13418 esac
13420 hardcode_libdir_separator_CXX=:
13422 # Commands to make compiler produce verbose output that lists
13423 # what "hidden" libraries, object files and flags are used when
13424 # linking a shared library.
13426 # There doesn't appear to be a way to prevent this compiler from
13427 # explicitly linking system object files so we need to strip them
13428 # from the output so that they don't get included in the library
13429 # dependencies.
13430 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'
13433 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13434 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13435 case $host in
13436 osf3*)
13437 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'
13440 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'
13442 esac
13444 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13445 hardcode_libdir_separator_CXX=:
13447 # Commands to make compiler produce verbose output that lists
13448 # what "hidden" libraries, object files and flags are used when
13449 # linking a shared library.
13450 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13452 else
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13457 esac
13460 psos*)
13461 # FIXME: insert proper C++ library support
13462 ld_shlibs_CXX=no
13465 sunos4*)
13466 case $cc_basename in
13467 CC*)
13468 # Sun C++ 4.x
13469 # FIXME: insert proper C++ library support
13470 ld_shlibs_CXX=no
13472 lcc*)
13473 # Lucid
13474 # FIXME: insert proper C++ library support
13475 ld_shlibs_CXX=no
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13481 esac
13484 solaris*)
13485 case $cc_basename in
13486 CC*)
13487 # Sun C++ 4.2, 5.x and Centerline C++
13488 archive_cmds_need_lc_CXX=yes
13489 no_undefined_flag_CXX=' -zdefs'
13490 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13491 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13492 $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'
13494 hardcode_libdir_flag_spec_CXX='-R$libdir'
13495 hardcode_shlibpath_var_CXX=no
13496 case $host_os in
13497 solaris2.[0-5] | solaris2.[0-5].*) ;;
13499 # The compiler driver will combine and reorder linker options,
13500 # but understands `-z linker_flag'.
13501 # Supported since Solaris 2.6 (maybe 2.5.1?)
13502 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13504 esac
13505 link_all_deplibs_CXX=yes
13507 output_verbose_link_cmd='echo'
13509 # Archives containing C++ object files must be created using
13510 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13511 # necessary to make sure instantiated templates are included
13512 # in the archive.
13513 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13515 gcx*)
13516 # Green Hills C++ Compiler
13517 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13519 # The C++ compiler must be used to create the archive.
13520 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13523 # GNU C++ compiler with Solaris linker
13524 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13525 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13526 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13527 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13528 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13529 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13531 # Commands to make compiler produce verbose output that lists
13532 # what "hidden" libraries, object files and flags are used when
13533 # linking a shared library.
13534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13535 else
13536 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13537 # platform.
13538 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13539 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13540 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13542 # Commands to make compiler produce verbose output that lists
13543 # what "hidden" libraries, object files and flags are used when
13544 # linking a shared library.
13545 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13548 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13549 case $host_os in
13550 solaris2.[0-5] | solaris2.[0-5].*) ;;
13552 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13554 esac
13557 esac
13560 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13561 no_undefined_flag_CXX='${wl}-z,text'
13562 archive_cmds_need_lc_CXX=no
13563 hardcode_shlibpath_var_CXX=no
13564 runpath_var='LD_RUN_PATH'
13566 case $cc_basename in
13567 CC*)
13568 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13575 esac
13578 sysv5* | sco3.2v5* | sco5v6*)
13579 # Note: We can NOT use -z defs as we might desire, because we do not
13580 # link with -lc, and that would cause any symbols used from libc to
13581 # always be unresolved, which means just about no library would
13582 # ever link correctly. If we're not using GNU ld we use -z text
13583 # though, which does catch some bad symbols but isn't as heavy-handed
13584 # as -z defs.
13585 no_undefined_flag_CXX='${wl}-z,text'
13586 allow_undefined_flag_CXX='${wl}-z,nodefs'
13587 archive_cmds_need_lc_CXX=no
13588 hardcode_shlibpath_var_CXX=no
13589 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13590 hardcode_libdir_separator_CXX=':'
13591 link_all_deplibs_CXX=yes
13592 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13593 runpath_var='LD_RUN_PATH'
13595 case $cc_basename in
13596 CC*)
13597 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13598 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13601 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13602 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13604 esac
13607 tandem*)
13608 case $cc_basename in
13609 NCC*)
13610 # NonStop-UX NCC 3.20
13611 # FIXME: insert proper C++ library support
13612 ld_shlibs_CXX=no
13615 # FIXME: insert proper C++ library support
13616 ld_shlibs_CXX=no
13618 esac
13621 vxworks*)
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13627 # FIXME: insert proper C++ library support
13628 ld_shlibs_CXX=no
13630 esac
13632 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13633 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13634 test "$ld_shlibs_CXX" = no && can_build_shared=no
13636 GCC_CXX="$GXX"
13637 LD_CXX="$LD"
13639 ## CAVEAT EMPTOR:
13640 ## There is no encapsulation within the following macros, do not change
13641 ## the running order or otherwise move them around unless you know exactly
13642 ## what you are doing...
13643 # Dependencies to place before and after the object being linked:
13644 predep_objects_CXX=
13645 postdep_objects_CXX=
13646 predeps_CXX=
13647 postdeps_CXX=
13648 compiler_lib_search_path_CXX=
13650 cat > conftest.$ac_ext <<_LT_EOF
13651 class Foo
13653 public:
13654 Foo (void) { a = 0; }
13655 private:
13656 int a;
13658 _LT_EOF
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>&5
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); }; then
13665 # Parse the compiler output and extract the necessary
13666 # objects, libraries and library flags.
13668 # Sentinel used to keep track of whether or not we are before
13669 # the conftest object file.
13670 pre_test_object_deps_done=no
13672 # The `*' in the case matches for architectures that use `case' in
13673 # $output_verbose_cmd can trigger glob expansion during the loop
13674 # eval without this substitution.
13675 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13677 for p in `eval $output_verbose_link_cmd`; do
13678 case $p in
13680 -L* | -R* | -l*)
13681 # Some compilers place space between "-{L,R}" and the path.
13682 # Remove the space.
13683 if test $p = "-L" ||
13684 test $p = "-R"; then
13685 prev=$p
13686 continue
13687 else
13688 prev=
13691 if test "$pre_test_object_deps_done" = no; then
13692 case $p in
13693 -L* | -R*)
13694 # Internal compiler library paths should come after those
13695 # provided the user. The postdeps already come after the
13696 # user supplied libs so there is no need to process them.
13697 if test -z "$compiler_lib_search_path_CXX"; then
13698 compiler_lib_search_path_CXX="${prev}${p}"
13699 else
13700 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13703 # The "-l" case would never come before the object being
13704 # linked, so don't bother handling this case.
13705 esac
13706 else
13707 if test -z "$postdeps_CXX"; then
13708 postdeps_CXX="${prev}${p}"
13709 else
13710 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13715 *.$objext)
13716 # This assumes that the test object file only shows up
13717 # once in the compiler output.
13718 if test "$p" = "conftest.$objext"; then
13719 pre_test_object_deps_done=yes
13720 continue
13723 if test "$pre_test_object_deps_done" = no; then
13724 if test -z "$predep_objects_CXX"; then
13725 predep_objects_CXX="$p"
13726 else
13727 predep_objects_CXX="$predep_objects_CXX $p"
13729 else
13730 if test -z "$postdep_objects_CXX"; then
13731 postdep_objects_CXX="$p"
13732 else
13733 postdep_objects_CXX="$postdep_objects_CXX $p"
13738 *) ;; # Ignore the rest.
13740 esac
13741 done
13743 # Clean up.
13744 rm -f a.out a.exe
13745 else
13746 echo "libtool.m4: error: problem compiling CXX test program"
13749 $RM -f confest.$objext
13751 # PORTME: override above test on systems where it is broken
13752 case $host_os in
13753 interix[3-9]*)
13754 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13755 # hack all around it, let's just trust "g++" to DTRT.
13756 predep_objects_CXX=
13757 postdep_objects_CXX=
13758 postdeps_CXX=
13761 linux*)
13762 case `$CC -V 2>&1 | sed 5q` in
13763 *Sun\ C*)
13764 # Sun C++ 5.9
13766 # The more standards-conforming stlport4 library is
13767 # incompatible with the Cstd library. Avoid specifying
13768 # it if it's in CXXFLAGS. Ignore libCrun as
13769 # -library=stlport4 depends on it.
13770 case " $CXX $CXXFLAGS " in
13771 *" -library=stlport4 "*)
13772 solaris_use_stlport4=yes
13774 esac
13776 if test "$solaris_use_stlport4" != yes; then
13777 postdeps_CXX='-library=Cstd -library=Crun'
13780 esac
13783 solaris*)
13784 case $cc_basename in
13785 CC*)
13786 # The more standards-conforming stlport4 library is
13787 # incompatible with the Cstd library. Avoid specifying
13788 # it if it's in CXXFLAGS. Ignore libCrun as
13789 # -library=stlport4 depends on it.
13790 case " $CXX $CXXFLAGS " in
13791 *" -library=stlport4 "*)
13792 solaris_use_stlport4=yes
13794 esac
13796 # Adding this requires a known-good setup of shared libraries for
13797 # Sun compiler versions before 5.6, else PIC objects from an old
13798 # archive will be linked into the output, leading to subtle bugs.
13799 if test "$solaris_use_stlport4" != yes; then
13800 postdeps_CXX='-library=Cstd -library=Crun'
13803 esac
13805 esac
13808 case " $postdeps_CXX " in
13809 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13810 esac
13837 lt_prog_compiler_wl_CXX=
13838 lt_prog_compiler_pic_CXX=
13839 lt_prog_compiler_static_CXX=
13841 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13842 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13844 # C++ specific cases for pic, static, wl, etc.
13845 if test "$GXX" = yes; then
13846 lt_prog_compiler_wl_CXX='-Wl,'
13847 lt_prog_compiler_static_CXX='-static'
13849 case $host_os in
13850 aix*)
13851 # All AIX code is PIC.
13852 if test "$host_cpu" = ia64; then
13853 # AIX 5 now supports IA64 processor
13854 lt_prog_compiler_static_CXX='-Bstatic'
13857 amigaos*)
13858 if test "$host_cpu" = m68k; then
13859 # FIXME: we need at least 68020 code to build shared libraries, but
13860 # adding the `-m68020' flag to GCC prevents building anything better,
13861 # like `-m68040'.
13862 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13865 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13866 # PIC is the default for these OSes.
13868 mingw* | cygwin* | os2* | pw32*)
13869 # This hack is so that the source file can tell whether it is being
13870 # built for inclusion in a dll (and should export symbols for example).
13871 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13872 # (--disable-auto-import) libraries
13873 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13875 darwin* | rhapsody*)
13876 # PIC is the default on this platform
13877 # Common symbols not allowed in MH_DYLIB files
13878 lt_prog_compiler_pic_CXX='-fno-common'
13880 *djgpp*)
13881 # DJGPP does not support shared libraries at all
13882 lt_prog_compiler_pic_CXX=
13884 interix[3-9]*)
13885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13886 # Instead, we relocate shared libraries at runtime.
13888 sysv4*MP*)
13889 if test -d /usr/nec; then
13890 lt_prog_compiler_pic_CXX=-Kconform_pic
13893 hpux*)
13894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13895 # not for PA HP-UX.
13896 case $host_cpu in
13897 hppa*64*|ia64*)
13900 lt_prog_compiler_pic_CXX='-fPIC'
13902 esac
13904 *qnx* | *nto*)
13905 # QNX uses GNU C++, but need to define -shared option too, otherwise
13906 # it will coredump.
13907 lt_prog_compiler_pic_CXX='-fPIC -shared'
13910 lt_prog_compiler_pic_CXX='-fPIC'
13912 esac
13913 else
13914 case $host_os in
13915 aix4* | aix5*)
13916 # All AIX code is PIC.
13917 if test "$host_cpu" = ia64; then
13918 # AIX 5 now supports IA64 processor
13919 lt_prog_compiler_static_CXX='-Bstatic'
13920 else
13921 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13924 chorus*)
13925 case $cc_basename in
13926 cxch68*)
13927 # Green Hills C++ Compiler
13928 # _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"
13930 esac
13932 darwin*)
13933 # PIC is the default on this platform
13934 # Common symbols not allowed in MH_DYLIB files
13935 case $cc_basename in
13936 xlc*)
13937 lt_prog_compiler_pic_CXX='-qnocommon'
13938 lt_prog_compiler_wl_CXX='-Wl,'
13940 esac
13942 dgux*)
13943 case $cc_basename in
13944 ec++*)
13945 lt_prog_compiler_pic_CXX='-KPIC'
13947 ghcx*)
13948 # Green Hills C++ Compiler
13949 lt_prog_compiler_pic_CXX='-pic'
13953 esac
13955 freebsd* | dragonfly*)
13956 # FreeBSD uses GNU C++
13958 hpux9* | hpux10* | hpux11*)
13959 case $cc_basename in
13960 CC*)
13961 lt_prog_compiler_wl_CXX='-Wl,'
13962 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13963 if test "$host_cpu" != ia64; then
13964 lt_prog_compiler_pic_CXX='+Z'
13967 aCC*)
13968 lt_prog_compiler_wl_CXX='-Wl,'
13969 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13970 case $host_cpu in
13971 hppa*64*|ia64*)
13972 # +Z the default
13975 lt_prog_compiler_pic_CXX='+Z'
13977 esac
13981 esac
13983 interix*)
13984 # This is c89, which is MS Visual C++ (no shared libs)
13985 # Anyone wants to do a port?
13987 irix5* | irix6* | nonstopux*)
13988 case $cc_basename in
13989 CC*)
13990 lt_prog_compiler_wl_CXX='-Wl,'
13991 lt_prog_compiler_static_CXX='-non_shared'
13992 # CC pic flag -KPIC is the default.
13996 esac
13998 linux* | k*bsd*-gnu)
13999 case $cc_basename in
14000 KCC*)
14001 # KAI C++ Compiler
14002 lt_prog_compiler_wl_CXX='--backend -Wl,'
14003 lt_prog_compiler_pic_CXX='-fPIC'
14005 icpc* | ecpc* )
14006 # Intel C++
14007 lt_prog_compiler_wl_CXX='-Wl,'
14008 lt_prog_compiler_pic_CXX='-KPIC'
14009 lt_prog_compiler_static_CXX='-static'
14011 pgCC*)
14012 # Portland Group C++ compiler
14013 lt_prog_compiler_wl_CXX='-Wl,'
14014 lt_prog_compiler_pic_CXX='-fpic'
14015 lt_prog_compiler_static_CXX='-Bstatic'
14017 cxx*)
14018 # Compaq C++
14019 # Make sure the PIC flag is empty. It appears that all Alpha
14020 # Linux and Compaq Tru64 Unix objects are PIC.
14021 lt_prog_compiler_pic_CXX=
14022 lt_prog_compiler_static_CXX='-non_shared'
14025 case `$CC -V 2>&1 | sed 5q` in
14026 *Sun\ C*)
14027 # Sun C++ 5.9
14028 lt_prog_compiler_pic_CXX='-KPIC'
14029 lt_prog_compiler_static_CXX='-Bstatic'
14030 lt_prog_compiler_wl_CXX='-Qoption ld '
14032 esac
14034 esac
14036 lynxos*)
14038 m88k*)
14040 mvs*)
14041 case $cc_basename in
14042 cxx*)
14043 lt_prog_compiler_pic_CXX='-W c,exportall'
14047 esac
14049 netbsd*)
14051 *qnx* | *nto*)
14052 # QNX uses GNU C++, but need to define -shared option too, otherwise
14053 # it will coredump.
14054 lt_prog_compiler_pic_CXX='-fPIC -shared'
14056 osf3* | osf4* | osf5*)
14057 case $cc_basename in
14058 KCC*)
14059 lt_prog_compiler_wl_CXX='--backend -Wl,'
14061 RCC*)
14062 # Rational C++ 2.4.1
14063 lt_prog_compiler_pic_CXX='-pic'
14065 cxx*)
14066 # Digital/Compaq C++
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 # Make sure the PIC flag is empty. It appears that all Alpha
14069 # Linux and Compaq Tru64 Unix objects are PIC.
14070 lt_prog_compiler_pic_CXX=
14071 lt_prog_compiler_static_CXX='-non_shared'
14075 esac
14077 psos*)
14079 solaris*)
14080 case $cc_basename in
14081 CC*)
14082 # Sun C++ 4.2, 5.x and Centerline C++
14083 lt_prog_compiler_pic_CXX='-KPIC'
14084 lt_prog_compiler_static_CXX='-Bstatic'
14085 lt_prog_compiler_wl_CXX='-Qoption ld '
14087 gcx*)
14088 # Green Hills C++ Compiler
14089 lt_prog_compiler_pic_CXX='-PIC'
14093 esac
14095 sunos4*)
14096 case $cc_basename in
14097 CC*)
14098 # Sun C++ 4.x
14099 lt_prog_compiler_pic_CXX='-pic'
14100 lt_prog_compiler_static_CXX='-Bstatic'
14102 lcc*)
14103 # Lucid
14104 lt_prog_compiler_pic_CXX='-pic'
14108 esac
14110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14111 case $cc_basename in
14112 CC*)
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_pic_CXX='-KPIC'
14115 lt_prog_compiler_static_CXX='-Bstatic'
14117 esac
14119 tandem*)
14120 case $cc_basename in
14121 NCC*)
14122 # NonStop-UX NCC 3.20
14123 lt_prog_compiler_pic_CXX='-KPIC'
14127 esac
14129 vxworks*)
14132 lt_prog_compiler_can_build_shared_CXX=no
14134 esac
14137 case $host_os in
14138 # For platforms which do not support PIC, -DPIC is meaningless:
14139 *djgpp*)
14140 lt_prog_compiler_pic_CXX=
14143 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14145 esac
14146 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14147 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14152 # Check to make sure the PIC flag actually works.
14154 if test -n "$lt_prog_compiler_pic_CXX"; then
14155 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14156 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14157 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 else
14160 lt_prog_compiler_pic_works_CXX=no
14161 ac_outfile=conftest.$ac_objext
14162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14163 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14164 # Insert the option either (1) after the last *FLAGS variable, or
14165 # (2) before a word containing "conftest.", or (3) at the end.
14166 # Note that $ac_compile itself does not contain backslashes and begins
14167 # with a dollar sign (not a hyphen), so the echo should work correctly.
14168 # The option is referenced via a variable to avoid confusing sed.
14169 lt_compile=`echo "$ac_compile" | $SED \
14170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14172 -e 's:$: $lt_compiler_flag:'`
14173 (eval echo "\"\$as_me:14173: $lt_compile\"" >&5)
14174 (eval "$lt_compile" 2>conftest.err)
14175 ac_status=$?
14176 cat conftest.err >&5
14177 echo "$as_me:14177: \$? = $ac_status" >&5
14178 if (exit $ac_status) && test -s "$ac_outfile"; then
14179 # The compiler can only warn and ignore the option if not recognized
14180 # So say no if there are warnings other than the usual output.
14181 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_prog_compiler_pic_works_CXX=yes
14187 $RM conftest*
14190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14191 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14193 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14194 case $lt_prog_compiler_pic_CXX in
14195 "" | " "*) ;;
14196 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14197 esac
14198 else
14199 lt_prog_compiler_pic_CXX=
14200 lt_prog_compiler_can_build_shared_CXX=no
14208 # Check to make sure the static flag actually works.
14210 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14211 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14212 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14213 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215 else
14216 lt_prog_compiler_static_works_CXX=no
14217 save_LDFLAGS="$LDFLAGS"
14218 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14219 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14220 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14221 # The linker can only warn and ignore the option if not recognized
14222 # So say no if there are warnings
14223 if test -s conftest.err; then
14224 # Append any errors to the config.log.
14225 cat conftest.err 1>&5
14226 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14227 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14228 if diff conftest.exp conftest.er2 >/dev/null; then
14229 lt_prog_compiler_static_works_CXX=yes
14231 else
14232 lt_prog_compiler_static_works_CXX=yes
14235 $RM conftest*
14236 LDFLAGS="$save_LDFLAGS"
14239 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14240 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14242 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14244 else
14245 lt_prog_compiler_static_CXX=
14251 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14252 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14253 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 lt_cv_prog_compiler_c_o_CXX=no
14257 $RM -r conftest 2>/dev/null
14258 mkdir conftest
14259 cd conftest
14260 mkdir out
14261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14263 lt_compiler_flag="-o out/conftest2.$ac_objext"
14264 # Insert the option either (1) after the last *FLAGS variable, or
14265 # (2) before a word containing "conftest.", or (3) at the end.
14266 # Note that $ac_compile itself does not contain backslashes and begins
14267 # with a dollar sign (not a hyphen), so the echo should work correctly.
14268 lt_compile=`echo "$ac_compile" | $SED \
14269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14271 -e 's:$: $lt_compiler_flag:'`
14272 (eval echo "\"\$as_me:14272: $lt_compile\"" >&5)
14273 (eval "$lt_compile" 2>out/conftest.err)
14274 ac_status=$?
14275 cat out/conftest.err >&5
14276 echo "$as_me:14276: \$? = $ac_status" >&5
14277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14278 then
14279 # The compiler can only warn and ignore the option if not recognized
14280 # So say no if there are warnings
14281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14284 lt_cv_prog_compiler_c_o_CXX=yes
14287 chmod u+w . 2>&5
14288 $RM conftest*
14289 # SGI C++ compiler will create directory out/ii_files/ for
14290 # template instantiation
14291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14292 $RM out/* && rmdir out
14293 cd ..
14294 $RM -r conftest
14295 $RM conftest*
14298 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14299 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14303 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14304 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14305 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308 lt_cv_prog_compiler_c_o_CXX=no
14309 $RM -r conftest 2>/dev/null
14310 mkdir conftest
14311 cd conftest
14312 mkdir out
14313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14315 lt_compiler_flag="-o out/conftest2.$ac_objext"
14316 # Insert the option either (1) after the last *FLAGS variable, or
14317 # (2) before a word containing "conftest.", or (3) at the end.
14318 # Note that $ac_compile itself does not contain backslashes and begins
14319 # with a dollar sign (not a hyphen), so the echo should work correctly.
14320 lt_compile=`echo "$ac_compile" | $SED \
14321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14323 -e 's:$: $lt_compiler_flag:'`
14324 (eval echo "\"\$as_me:14324: $lt_compile\"" >&5)
14325 (eval "$lt_compile" 2>out/conftest.err)
14326 ac_status=$?
14327 cat out/conftest.err >&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14330 then
14331 # The compiler can only warn and ignore the option if not recognized
14332 # So say no if there are warnings
14333 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14336 lt_cv_prog_compiler_c_o_CXX=yes
14339 chmod u+w . 2>&5
14340 $RM conftest*
14341 # SGI C++ compiler will create directory out/ii_files/ for
14342 # template instantiation
14343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14344 $RM out/* && rmdir out
14345 cd ..
14346 $RM -r conftest
14347 $RM conftest*
14350 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14351 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14356 hard_links="nottested"
14357 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14358 # do not overwrite the value of need_locks provided by the user
14359 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14360 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14361 hard_links=yes
14362 $RM conftest*
14363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14364 touch conftest.a
14365 ln conftest.a conftest.b 2>&5 || hard_links=no
14366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14367 echo "$as_me:$LINENO: result: $hard_links" >&5
14368 echo "${ECHO_T}$hard_links" >&6
14369 if test "$hard_links" = no; then
14370 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14371 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14372 need_locks=warn
14374 else
14375 need_locks=no
14380 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14381 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14383 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14384 case $host_os in
14385 aix4* | aix5*)
14386 # If we're using GNU nm, then we don't want the "-C" option.
14387 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14388 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14389 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'
14390 else
14391 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'
14394 pw32*)
14395 export_symbols_cmds_CXX="$ltdll_cmds"
14397 cygwin* | mingw*)
14398 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'
14401 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14403 esac
14405 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14406 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14407 test "$ld_shlibs_CXX" = no && can_build_shared=no
14409 with_gnu_ld_CXX=$with_gnu_ld
14417 # Do we need to explicitly link libc?
14419 case "x$archive_cmds_need_lc_CXX" in
14420 x|xyes)
14421 # Assume -lc should be added
14422 archive_cmds_need_lc_CXX=yes
14424 if test "$enable_shared" = yes && test "$GCC" = yes; then
14425 case $archive_cmds_CXX in
14426 *'~'*)
14427 # FIXME: we may have to deal with multi-command sequences.
14429 '$CC '*)
14430 # Test whether the compiler implicitly links with -lc since on some
14431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14432 # to ld, don't add -lc before -lgcc.
14433 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14434 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14435 $RM conftest*
14436 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14439 (eval $ac_compile) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } 2>conftest.err; then
14443 soname=conftest
14444 lib=conftest
14445 libobjs=conftest.$ac_objext
14446 deplibs=
14447 wl=$lt_prog_compiler_wl_CXX
14448 pic_flag=$lt_prog_compiler_pic_CXX
14449 compiler_flags=-v
14450 linker_flags=-v
14451 verstring=
14452 output_objdir=.
14453 libname=conftest
14454 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14455 allow_undefined_flag_CXX=
14456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14457 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }
14461 then
14462 archive_cmds_need_lc_CXX=no
14463 else
14464 archive_cmds_need_lc_CXX=yes
14466 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14467 else
14468 cat conftest.err 1>&5
14470 $RM conftest*
14471 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14472 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14474 esac
14477 esac
14542 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14543 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14544 withGCC=$GXX
14545 library_names_spec=
14546 libname_spec='lib$name'
14547 soname_spec=
14548 shrext_cmds=".so"
14549 postinstall_cmds=
14550 postuninstall_cmds=
14551 finish_cmds=
14552 finish_eval=
14553 shlibpath_var=
14554 shlibpath_overrides_runpath=unknown
14555 version_type=none
14556 dynamic_linker="$host_os ld.so"
14557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14558 need_lib_prefix=unknown
14559 hardcode_into_libs=no
14561 # when you set need_version to no, make sure it does not cause -set_version
14562 # flags to be left without arguments
14563 need_version=unknown
14565 case $host_os in
14566 aix3*)
14567 version_type=linux
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14569 shlibpath_var=LIBPATH
14571 # AIX 3 has no versioning support, so we append a major version to the name.
14572 soname_spec='${libname}${release}${shared_ext}$major'
14575 aix4* | aix5*)
14576 version_type=linux
14577 need_lib_prefix=no
14578 need_version=no
14579 hardcode_into_libs=yes
14580 if test "$host_cpu" = ia64; then
14581 # AIX 5 supports IA64
14582 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14583 shlibpath_var=LD_LIBRARY_PATH
14584 else
14585 # With GCC up to 2.95.x, collect2 would create an import file
14586 # for dependence libraries. The import file would start with
14587 # the line `#! .'. This would cause the generated library to
14588 # depend on `.', always an invalid library. This was fixed in
14589 # development snapshots of GCC prior to 3.0.
14590 case $host_os in
14591 aix4 | aix4.[01] | aix4.[01].*)
14592 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14593 echo ' yes '
14594 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14596 else
14597 can_build_shared=no
14600 esac
14601 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14602 # soname into executable. Probably we can add versioning support to
14603 # collect2, so additional links can be useful in future.
14604 if test "$aix_use_runtimelinking" = yes; then
14605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14606 # instead of lib<name>.a to let people know that these are not
14607 # typical AIX shared libraries.
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 else
14610 # We preserve .a as extension for shared libraries through AIX4.2
14611 # and later when we are not doing run time linking.
14612 library_names_spec='${libname}${release}.a $libname.a'
14613 soname_spec='${libname}${release}${shared_ext}$major'
14615 shlibpath_var=LIBPATH
14619 amigaos*)
14620 if test "$host_cpu" = m68k; then
14621 library_names_spec='$libname.ixlibrary $libname.a'
14622 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14623 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'
14624 else
14625 dynamic_linker=no
14629 beos*)
14630 library_names_spec='${libname}${shared_ext}'
14631 dynamic_linker="$host_os ld.so"
14632 shlibpath_var=LIBRARY_PATH
14635 bsdi[45]*)
14636 version_type=linux
14637 need_version=no
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14643 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14644 # the default ld.so.conf also contains /usr/contrib/lib and
14645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14646 # libtool to hard-code these into programs
14649 cygwin* | mingw* | pw32*)
14650 version_type=windows
14651 shrext_cmds=".dll"
14652 need_version=no
14653 need_lib_prefix=no
14655 case $withGCC,$host_os in
14656 yes,cygwin* | yes,mingw* | yes,pw32*)
14657 library_names_spec='$libname.dll.a'
14658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14659 postinstall_cmds='base_file=`basename \${file}`~
14660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14661 dldir=$destdir/`dirname \$dlpath`~
14662 test -d \$dldir || mkdir -p \$dldir~
14663 $install_prog $dir/$dlname \$dldir/$dlname~
14664 chmod a+x \$dldir/$dlname~
14665 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14666 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14668 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14669 dlpath=$dir/\$dldll~
14670 $RM \$dlpath'
14671 shlibpath_overrides_runpath=yes
14673 case $host_os in
14674 cygwin*)
14675 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14676 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14677 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14679 mingw*)
14680 # MinGW DLLs use traditional 'lib' prefix
14681 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14682 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14683 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14684 # It is most probably a Windows format PATH printed by
14685 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14686 # path with ; separators, and with drive letters. We can handle the
14687 # drive letters (cygwin fileutils understands them), so leave them,
14688 # especially as we might pass files found there to a mingw objdump,
14689 # which wouldn't understand a cygwinified path. Ahh.
14690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14691 else
14692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14695 pw32*)
14696 # pw32 DLLs use 'pw' prefix rather than 'lib'
14697 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14699 esac
14703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14705 esac
14706 dynamic_linker='Win32 ld.exe'
14707 # FIXME: first we should search . and the directory the executable is in
14708 shlibpath_var=PATH
14711 darwin* | rhapsody*)
14712 dynamic_linker="$host_os dyld"
14713 version_type=darwin
14714 need_lib_prefix=no
14715 need_version=no
14716 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14717 soname_spec='${libname}${release}${major}$shared_ext'
14718 shlibpath_overrides_runpath=yes
14719 shlibpath_var=DYLD_LIBRARY_PATH
14720 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14725 dgux*)
14726 version_type=linux
14727 need_lib_prefix=no
14728 need_version=no
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 shlibpath_var=LD_LIBRARY_PATH
14734 freebsd1*)
14735 dynamic_linker=no
14738 freebsd* | dragonfly*)
14739 # DragonFly does not have aout. When/if they implement a new
14740 # versioning mechanism, adjust this.
14741 if test -x /usr/bin/objformat; then
14742 objformat=`/usr/bin/objformat`
14743 else
14744 case $host_os in
14745 freebsd[123]*) objformat=aout ;;
14746 *) objformat=elf ;;
14747 esac
14749 version_type=freebsd-$objformat
14750 case $version_type in
14751 freebsd-elf*)
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14753 need_version=no
14754 need_lib_prefix=no
14756 freebsd-*)
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14758 need_version=yes
14760 esac
14761 shlibpath_var=LD_LIBRARY_PATH
14762 case $host_os in
14763 freebsd2*)
14764 shlibpath_overrides_runpath=yes
14766 freebsd3.[01]* | freebsdelf3.[01]*)
14767 shlibpath_overrides_runpath=yes
14768 hardcode_into_libs=yes
14770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14772 shlibpath_overrides_runpath=no
14773 hardcode_into_libs=yes
14775 *) # from 4.6 on, and DragonFly
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14779 esac
14782 gnu*)
14783 version_type=linux
14784 need_lib_prefix=no
14785 need_version=no
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 hardcode_into_libs=yes
14792 hpux9* | hpux10* | hpux11*)
14793 # Give a soname corresponding to the major version so that dld.sl refuses to
14794 # link against other versions.
14795 version_type=sunos
14796 need_lib_prefix=no
14797 need_version=no
14798 case $host_cpu in
14799 ia64*)
14800 shrext_cmds='.so'
14801 hardcode_into_libs=yes
14802 dynamic_linker="$host_os dld.so"
14803 shlibpath_var=LD_LIBRARY_PATH
14804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14806 soname_spec='${libname}${release}${shared_ext}$major'
14807 if test "X$HPUX_IA64_MODE" = X32; then
14808 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14809 else
14810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14814 hppa*64*)
14815 shrext_cmds='.sl'
14816 hardcode_into_libs=yes
14817 dynamic_linker="$host_os dld.sl"
14818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14826 shrext_cmds='.sl'
14827 dynamic_linker="$host_os dld.sl"
14828 shlibpath_var=SHLIB_PATH
14829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831 soname_spec='${libname}${release}${shared_ext}$major'
14833 esac
14834 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14835 postinstall_cmds='chmod 555 $lib'
14838 interix[3-9]*)
14839 version_type=linux
14840 need_lib_prefix=no
14841 need_version=no
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14845 shlibpath_var=LD_LIBRARY_PATH
14846 shlibpath_overrides_runpath=no
14847 hardcode_into_libs=yes
14850 irix5* | irix6* | nonstopux*)
14851 case $host_os in
14852 nonstopux*) version_type=nonstopux ;;
14854 if test "$lt_cv_prog_gnu_ld" = yes; then
14855 version_type=linux
14856 else
14857 version_type=irix
14858 fi ;;
14859 esac
14860 need_lib_prefix=no
14861 need_version=no
14862 soname_spec='${libname}${release}${shared_ext}$major'
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14864 case $host_os in
14865 irix5* | nonstopux*)
14866 libsuff= shlibsuff=
14869 case $LD in # libtool.m4 will add one of these switches to LD
14870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14871 libsuff= shlibsuff= libmagic=32-bit;;
14872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14873 libsuff=32 shlibsuff=N32 libmagic=N32;;
14874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14876 *) libsuff= shlibsuff= libmagic=never-match;;
14877 esac
14879 esac
14880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14881 shlibpath_overrides_runpath=no
14882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14884 hardcode_into_libs=yes
14887 # No shared lib support for Linux oldld, aout, or coff.
14888 linux*oldld* | linux*aout* | linux*coff*)
14889 dynamic_linker=no
14892 # This must be Linux ELF.
14893 linux* | k*bsd*-gnu)
14894 version_type=linux
14895 need_lib_prefix=no
14896 need_version=no
14897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14898 soname_spec='${libname}${release}${shared_ext}$major'
14899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=no
14902 # Some binutils ld are patched to set DT_RUNPATH
14903 save_LDFLAGS=$LDFLAGS
14904 save_libdir=$libdir
14905 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14906 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14907 if test x$gcc_no_link = xyes; then
14908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14910 { (exit 1); exit 1; }; }
14912 cat >conftest.$ac_ext <<_ACEOF
14913 /* confdefs.h. */
14914 _ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14920 main ()
14924 return 0;
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14929 (eval $ac_link) 2>conftest.er1
14930 ac_status=$?
14931 grep -v '^ *+' conftest.er1 >conftest.err
14932 rm -f conftest.er1
14933 cat conftest.err >&5
14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try='test -z "$ac_cxx_werror_flag"
14937 || test ! -s conftest.err'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; } &&
14943 { ac_try='test -s conftest$ac_exeext'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; }; then
14949 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
14950 shlibpath_overrides_runpath=yes
14953 else
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14958 rm -f conftest.err conftest.$ac_objext \
14959 conftest$ac_exeext conftest.$ac_ext
14960 LDFLAGS=$save_LDFLAGS
14961 libdir=$save_libdir
14963 # This implies no fast_install, which is unacceptable.
14964 # Some rework will be needed to allow for fast_install
14965 # before this can be enabled.
14966 hardcode_into_libs=yes
14968 # Append ld.so.conf contents to the search path
14969 if test -f /etc/ld.so.conf; then
14970 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14974 # We used to test for /lib/ld.so.1 and disable shared libraries on
14975 # powerpc, because MkLinux only supported shared libraries with the
14976 # GNU dynamic linker. Since this was broken with cross compilers,
14977 # most powerpc-linux boxes support dynamic linking these days and
14978 # people can always --disable-shared, the test was removed, and we
14979 # assume the GNU/Linux dynamic linker is in use.
14980 dynamic_linker='GNU/Linux ld.so'
14983 netbsd*)
14984 version_type=sunos
14985 need_lib_prefix=no
14986 need_version=no
14987 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14990 dynamic_linker='NetBSD (a.out) ld.so'
14991 else
14992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14993 soname_spec='${libname}${release}${shared_ext}$major'
14994 dynamic_linker='NetBSD ld.elf_so'
14996 shlibpath_var=LD_LIBRARY_PATH
14997 shlibpath_overrides_runpath=yes
14998 hardcode_into_libs=yes
15001 newsos6)
15002 version_type=linux
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 shlibpath_var=LD_LIBRARY_PATH
15005 shlibpath_overrides_runpath=yes
15008 *nto* | *qnx*)
15009 version_type=qnx
15010 need_lib_prefix=no
15011 need_version=no
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 shlibpath_var=LD_LIBRARY_PATH
15015 shlibpath_overrides_runpath=no
15016 hardcode_into_libs=yes
15017 dynamic_linker='ldqnx.so'
15020 openbsd*)
15021 version_type=sunos
15022 sys_lib_dlsearch_path_spec="/usr/lib"
15023 need_lib_prefix=no
15024 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15025 case $host_os in
15026 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15027 *) need_version=no ;;
15028 esac
15029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15031 shlibpath_var=LD_LIBRARY_PATH
15032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15033 case $host_os in
15034 openbsd2.[89] | openbsd2.[89].*)
15035 shlibpath_overrides_runpath=no
15038 shlibpath_overrides_runpath=yes
15040 esac
15041 else
15042 shlibpath_overrides_runpath=yes
15046 os2*)
15047 libname_spec='$name'
15048 shrext_cmds=".dll"
15049 need_lib_prefix=no
15050 library_names_spec='$libname${shared_ext} $libname.a'
15051 dynamic_linker='OS/2 ld.exe'
15052 shlibpath_var=LIBPATH
15055 osf3* | osf4* | osf5*)
15056 version_type=osf
15057 need_lib_prefix=no
15058 need_version=no
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15061 shlibpath_var=LD_LIBRARY_PATH
15062 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15063 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15066 rdos*)
15067 dynamic_linker=no
15070 solaris*)
15071 version_type=linux
15072 need_lib_prefix=no
15073 need_version=no
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15075 soname_spec='${libname}${release}${shared_ext}$major'
15076 shlibpath_var=LD_LIBRARY_PATH
15077 shlibpath_overrides_runpath=yes
15078 hardcode_into_libs=yes
15079 # ldd complains unless libraries are executable
15080 postinstall_cmds='chmod +x $lib'
15083 sunos4*)
15084 version_type=sunos
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=yes
15089 if test "$with_gnu_ld" = yes; then
15090 need_lib_prefix=no
15092 need_version=yes
15095 sysv4 | sysv4.3*)
15096 version_type=linux
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 shlibpath_var=LD_LIBRARY_PATH
15100 case $host_vendor in
15101 sni)
15102 shlibpath_overrides_runpath=no
15103 need_lib_prefix=no
15104 runpath_var=LD_RUN_PATH
15106 siemens)
15107 need_lib_prefix=no
15109 motorola)
15110 need_lib_prefix=no
15111 need_version=no
15112 shlibpath_overrides_runpath=no
15113 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15115 esac
15118 sysv4*MP*)
15119 if test -d /usr/nec ;then
15120 version_type=linux
15121 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15122 soname_spec='$libname${shared_ext}.$major'
15123 shlibpath_var=LD_LIBRARY_PATH
15127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15128 version_type=freebsd-elf
15129 need_lib_prefix=no
15130 need_version=no
15131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15132 soname_spec='${libname}${release}${shared_ext}$major'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15135 hardcode_into_libs=yes
15136 if test "$with_gnu_ld" = yes; then
15137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15138 else
15139 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15140 case $host_os in
15141 sco3.2v5*)
15142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15144 esac
15146 sys_lib_dlsearch_path_spec='/usr/lib'
15149 tpf*)
15150 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15151 version_type=linux
15152 need_lib_prefix=no
15153 need_version=no
15154 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15155 shlibpath_var=LD_LIBRARY_PATH
15156 shlibpath_overrides_runpath=no
15157 hardcode_into_libs=yes
15160 uts4*)
15161 version_type=linux
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 shlibpath_var=LD_LIBRARY_PATH
15168 dynamic_linker=no
15170 esac
15171 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15172 echo "${ECHO_T}$dynamic_linker" >&6
15173 test "$dynamic_linker" = no && can_build_shared=no
15175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15176 if test "$GCC" = yes; then
15177 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15215 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15216 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15217 hardcode_action_CXX=
15218 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15219 test -n "$runpath_var_CXX" ||
15220 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15222 # We can hardcode non-existent directories.
15223 if test "$hardcode_direct_CXX" != no &&
15224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15225 # have to relink, otherwise we might link with an installed library
15226 # when we should be linking with a yet-to-be-installed one
15227 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15228 test "$hardcode_minus_L_CXX" != no; then
15229 # Linking always hardcodes the temporary library directory.
15230 hardcode_action_CXX=relink
15231 else
15232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15233 hardcode_action_CXX=immediate
15235 else
15236 # We cannot hardcode anything, or else we can only hardcode existing
15237 # directories.
15238 hardcode_action_CXX=unsupported
15240 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15241 echo "${ECHO_T}$hardcode_action_CXX" >&6
15243 if test "$hardcode_action_CXX" = relink ||
15244 test "$inherit_rpath_CXX" = yes; then
15245 # Fast installation is not supported
15246 enable_fast_install=no
15247 elif test "$shlibpath_overrides_runpath" = yes ||
15248 test "$enable_shared" = no; then
15249 # Fast installation is not necessary
15250 enable_fast_install=needless
15259 fi # test -n "$compiler"
15261 CC=$lt_save_CC
15262 LDCXX=$LD
15263 LD=$lt_save_LD
15264 GCC=$lt_save_GCC
15265 with_gnu_ld=$lt_save_with_gnu_ld
15266 lt_cv_path_LDCXX=$lt_cv_path_LD
15267 lt_cv_path_LD=$lt_save_path_LD
15268 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15269 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15270 fi # test "$_lt_caught_CXX_error" != yes
15272 ac_ext=c
15273 ac_cpp='$CPP $CPPFLAGS'
15274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15290 ac_config_commands="$ac_config_commands libtool"
15295 # Only expand once:
15299 for ac_prog in gcj
15301 # Extract the first word of "$ac_prog", so it can be a program name with args.
15302 set dummy $ac_prog; ac_word=$2
15303 echo "$as_me:$LINENO: checking for $ac_word" >&5
15304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15305 if test "${ac_cv_prog_GCJ+set}" = set; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308 if test -n "$GCJ"; then
15309 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15310 else
15311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312 for as_dir in $PATH
15314 IFS=$as_save_IFS
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
15317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318 ac_cv_prog_GCJ="$ac_prog"
15319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15320 break 2
15322 done
15323 done
15327 GCJ=$ac_cv_prog_GCJ
15328 if test -n "$GCJ"; then
15329 echo "$as_me:$LINENO: result: $GCJ" >&5
15330 echo "${ECHO_T}$GCJ" >&6
15331 else
15332 echo "$as_me:$LINENO: result: no" >&5
15333 echo "${ECHO_T}no" >&6
15336 test -n "$GCJ" && break
15337 done
15338 test -n "$GCJ" || GCJ="gcj"
15340 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15341 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15342 { (exit 1); exit 1; }; }
15343 if test "x${GCJFLAGS-unset}" = xunset; then
15344 GCJFLAGS="-g -O2"
15348 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15350 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15351 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15352 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15356 # We make a subdir and do the tests there. Otherwise we can end up
15357 # making bogus files that we don't know about and never remove. For
15358 # instance it was reported that on HP-UX the gcc test will end up
15359 # making a dummy file named `D' -- because `-MD' means `put the output
15360 # in D'.
15361 mkdir conftest.dir
15362 # Copy depcomp to subdir because otherwise we won't find it if we're
15363 # using a relative directory.
15364 cp "$am_depcomp" conftest.dir
15365 cd conftest.dir
15366 # We will build objects and dependencies in a subdirectory because
15367 # it helps to detect inapplicable dependency modes. For instance
15368 # both Tru64's cc and ICC support -MD to output dependencies as a
15369 # side effect of compilation, but ICC will put the dependencies in
15370 # the current directory while Tru64 will put them in the object
15371 # directory.
15372 mkdir sub
15374 am_cv_GCJ_dependencies_compiler_type=none
15375 if test "$am_compiler_list" = ""; then
15376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15378 for depmode in $am_compiler_list; do
15379 # Setup a source with many dependencies, because some compilers
15380 # like to wrap large dependency lists on column 80 (with \), and
15381 # we should not choose a depcomp mode which is confused by this.
15383 # We need to recreate these files for each test, as the compiler may
15384 # overwrite some of them when testing with obscure command lines.
15385 # This happens at least with the AIX C compiler.
15386 : > sub/conftest.c
15387 for i in 1 2 3 4 5 6; do
15388 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15389 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15390 # Solaris 8's {/usr,}/bin/sh.
15391 touch sub/conftst$i.h
15392 done
15393 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15395 case $depmode in
15396 nosideeffect)
15397 # after this tag, mechanisms are not by side-effect, so they'll
15398 # only be used when explicitly requested
15399 if test "x$enable_dependency_tracking" = xyes; then
15400 continue
15401 else
15402 break
15405 none) break ;;
15406 esac
15407 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15408 # mode. It turns out that the SunPro C++ compiler does not properly
15409 # handle `-M -o', and we need to detect this.
15410 if depmode=$depmode \
15411 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15412 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15413 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15414 >/dev/null 2>conftest.err &&
15415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15416 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15418 # icc doesn't choke on unknown options, it will just issue warnings
15419 # or remarks (even with -Werror). So we grep stderr for any message
15420 # that says an option was ignored or not supported.
15421 # When given -MP, icc 7.0 and 7.1 complain thusly:
15422 # icc: Command line warning: ignoring option '-M'; no argument required
15423 # The diagnosis changed in icc 8.0:
15424 # icc: Command line remark: option '-MP' not supported
15425 if (grep 'ignoring option' conftest.err ||
15426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15427 am_cv_GCJ_dependencies_compiler_type=$depmode
15428 break
15431 done
15433 cd ..
15434 rm -rf conftest.dir
15435 else
15436 am_cv_GCJ_dependencies_compiler_type=none
15440 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15441 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15442 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15447 test "x$enable_dependency_tracking" != xno \
15448 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15449 am__fastdepGCJ_TRUE=
15450 am__fastdepGCJ_FALSE='#'
15451 else
15452 am__fastdepGCJ_TRUE='#'
15453 am__fastdepGCJ_FALSE=
15458 for ac_prog in gcj
15460 # Extract the first word of "$ac_prog", so it can be a program name with args.
15461 set dummy $ac_prog; ac_word=$2
15462 echo "$as_me:$LINENO: checking for $ac_word" >&5
15463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15464 if test "${ac_cv_prog_GCJ+set}" = set; then
15465 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 else
15467 if test -n "$GCJ"; then
15468 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15469 else
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in $PATH
15473 IFS=$as_save_IFS
15474 test -z "$as_dir" && as_dir=.
15475 for ac_exec_ext in '' $ac_executable_extensions; do
15476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15477 ac_cv_prog_GCJ="$ac_prog"
15478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15479 break 2
15481 done
15482 done
15486 GCJ=$ac_cv_prog_GCJ
15487 if test -n "$GCJ"; then
15488 echo "$as_me:$LINENO: result: $GCJ" >&5
15489 echo "${ECHO_T}$GCJ" >&6
15490 else
15491 echo "$as_me:$LINENO: result: no" >&5
15492 echo "${ECHO_T}no" >&6
15495 test -n "$GCJ" && break
15496 done
15497 test -n "$GCJ" || GCJ="gcj"
15499 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
15500 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
15501 { (exit 1); exit 1; }; }
15502 if test "x${GCJFLAGS-unset}" = xunset; then
15503 GCJFLAGS="-g -O2"
15507 depcc="$GCJ" am_compiler_list='gcc3 gcc'
15509 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15510 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15511 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15515 # We make a subdir and do the tests there. Otherwise we can end up
15516 # making bogus files that we don't know about and never remove. For
15517 # instance it was reported that on HP-UX the gcc test will end up
15518 # making a dummy file named `D' -- because `-MD' means `put the output
15519 # in D'.
15520 mkdir conftest.dir
15521 # Copy depcomp to subdir because otherwise we won't find it if we're
15522 # using a relative directory.
15523 cp "$am_depcomp" conftest.dir
15524 cd conftest.dir
15525 # We will build objects and dependencies in a subdirectory because
15526 # it helps to detect inapplicable dependency modes. For instance
15527 # both Tru64's cc and ICC support -MD to output dependencies as a
15528 # side effect of compilation, but ICC will put the dependencies in
15529 # the current directory while Tru64 will put them in the object
15530 # directory.
15531 mkdir sub
15533 am_cv_GCJ_dependencies_compiler_type=none
15534 if test "$am_compiler_list" = ""; then
15535 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15537 for depmode in $am_compiler_list; do
15538 # Setup a source with many dependencies, because some compilers
15539 # like to wrap large dependency lists on column 80 (with \), and
15540 # we should not choose a depcomp mode which is confused by this.
15542 # We need to recreate these files for each test, as the compiler may
15543 # overwrite some of them when testing with obscure command lines.
15544 # This happens at least with the AIX C compiler.
15545 : > sub/conftest.c
15546 for i in 1 2 3 4 5 6; do
15547 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15548 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15549 # Solaris 8's {/usr,}/bin/sh.
15550 touch sub/conftst$i.h
15551 done
15552 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15554 case $depmode in
15555 nosideeffect)
15556 # after this tag, mechanisms are not by side-effect, so they'll
15557 # only be used when explicitly requested
15558 if test "x$enable_dependency_tracking" = xyes; then
15559 continue
15560 else
15561 break
15564 none) break ;;
15565 esac
15566 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15567 # mode. It turns out that the SunPro C++ compiler does not properly
15568 # handle `-M -o', and we need to detect this.
15569 if depmode=$depmode \
15570 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15571 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15572 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15573 >/dev/null 2>conftest.err &&
15574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15575 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15577 # icc doesn't choke on unknown options, it will just issue warnings
15578 # or remarks (even with -Werror). So we grep stderr for any message
15579 # that says an option was ignored or not supported.
15580 # When given -MP, icc 7.0 and 7.1 complain thusly:
15581 # icc: Command line warning: ignoring option '-M'; no argument required
15582 # The diagnosis changed in icc 8.0:
15583 # icc: Command line remark: option '-MP' not supported
15584 if (grep 'ignoring option' conftest.err ||
15585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15586 am_cv_GCJ_dependencies_compiler_type=$depmode
15587 break
15590 done
15592 cd ..
15593 rm -rf conftest.dir
15594 else
15595 am_cv_GCJ_dependencies_compiler_type=none
15599 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
15600 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
15601 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
15606 test "x$enable_dependency_tracking" != xno \
15607 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
15608 am__fastdepGCJ_TRUE=
15609 am__fastdepGCJ_FALSE='#'
15610 else
15611 am__fastdepGCJ_TRUE='#'
15612 am__fastdepGCJ_FALSE=
15620 # Source file extension for Java test sources.
15621 ac_ext=c
15623 # Object file extension for compiled Java test sources.
15624 objext=o
15625 objext_GCJ=$objext
15627 # Code to be used in simple compile tests
15628 lt_simple_compile_test_code="int some_variable = 0;"
15630 # Code to be used in simple link tests
15631 lt_simple_link_test_code='int main(){return(0);}'
15633 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15640 # If no C compiler was specified, use CC.
15641 LTCC=${LTCC-"$CC"}
15643 # If no C compiler flags were specified, use CFLAGS.
15644 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15646 # Allow CC to be a program name with arguments.
15647 compiler=$CC
15650 # save warnings/boilerplate of simple test code
15651 ac_outfile=conftest.$ac_objext
15652 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15653 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15654 _lt_compiler_boilerplate=`cat conftest.err`
15655 $RM conftest*
15657 ac_outfile=conftest.$ac_objext
15658 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15659 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15660 _lt_linker_boilerplate=`cat conftest.err`
15661 $RM conftest*
15664 # Allow CC to be a program name with arguments.
15665 compiler=$CC
15666 compiler_GCJ=$CC
15667 for cc_temp in $compiler""; do
15668 case $cc_temp in
15669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15671 \-*) ;;
15672 *) break;;
15673 esac
15674 done
15675 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15678 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15679 archive_cmds_need_lc_GCJ=no
15681 old_archive_cmds_GCJ=$old_archive_cmds
15683 ## CAVEAT EMPTOR:
15684 ## There is no encapsulation within the following macros, do not change
15685 ## the running order or otherwise move them around unless you know exactly
15686 ## what you are doing...
15687 if test -n "$compiler"; then
15689 lt_prog_compiler_no_builtin_flag_GCJ=
15691 if test "$GCC" = yes; then
15692 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699 lt_cv_prog_compiler_rtti_exceptions=no
15700 ac_outfile=conftest.$ac_objext
15701 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15702 lt_compiler_flag="-fno-rtti -fno-exceptions"
15703 # Insert the option either (1) after the last *FLAGS variable, or
15704 # (2) before a word containing "conftest.", or (3) at the end.
15705 # Note that $ac_compile itself does not contain backslashes and begins
15706 # with a dollar sign (not a hyphen), so the echo should work correctly.
15707 # The option is referenced via a variable to avoid confusing sed.
15708 lt_compile=`echo "$ac_compile" | $SED \
15709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15711 -e 's:$: $lt_compiler_flag:'`
15712 (eval echo "\"\$as_me:15712: $lt_compile\"" >&5)
15713 (eval "$lt_compile" 2>conftest.err)
15714 ac_status=$?
15715 cat conftest.err >&5
15716 echo "$as_me:15716: \$? = $ac_status" >&5
15717 if (exit $ac_status) && test -s "$ac_outfile"; then
15718 # The compiler can only warn and ignore the option if not recognized
15719 # So say no if there are warnings other than the usual output.
15720 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15722 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15723 lt_cv_prog_compiler_rtti_exceptions=yes
15726 $RM conftest*
15729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15733 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15734 else
15742 lt_prog_compiler_wl_GCJ=
15743 lt_prog_compiler_pic_GCJ=
15744 lt_prog_compiler_static_GCJ=
15746 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15747 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15749 if test "$GCC" = yes; then
15750 lt_prog_compiler_wl_GCJ='-Wl,'
15751 lt_prog_compiler_static_GCJ='-static'
15753 case $host_os in
15754 aix*)
15755 # All AIX code is PIC.
15756 if test "$host_cpu" = ia64; then
15757 # AIX 5 now supports IA64 processor
15758 lt_prog_compiler_static_GCJ='-Bstatic'
15762 amigaos*)
15763 if test "$host_cpu" = m68k; then
15764 # FIXME: we need at least 68020 code to build shared libraries, but
15765 # adding the `-m68020' flag to GCC prevents building anything better,
15766 # like `-m68040'.
15767 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15772 # PIC is the default for these OSes.
15775 mingw* | cygwin* | pw32* | os2*)
15776 # This hack is so that the source file can tell whether it is being
15777 # built for inclusion in a dll (and should export symbols for example).
15778 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15779 # (--disable-auto-import) libraries
15780 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15783 darwin* | rhapsody*)
15784 # PIC is the default on this platform
15785 # Common symbols not allowed in MH_DYLIB files
15786 lt_prog_compiler_pic_GCJ='-fno-common'
15789 hpux*)
15790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15791 # not for PA HP-UX.
15792 case $host_cpu in
15793 hppa*64*|ia64*)
15794 # +Z the default
15797 lt_prog_compiler_pic_GCJ='-fPIC'
15799 esac
15802 interix[3-9]*)
15803 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15804 # Instead, we relocate shared libraries at runtime.
15807 msdosdjgpp*)
15808 # Just because we use GCC doesn't mean we suddenly get shared libraries
15809 # on systems that don't support them.
15810 lt_prog_compiler_can_build_shared_GCJ=no
15811 enable_shared=no
15814 *nto* | *qnx*)
15815 # QNX uses GNU C++, but need to define -shared option too, otherwise
15816 # it will coredump.
15817 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15820 sysv4*MP*)
15821 if test -d /usr/nec; then
15822 lt_prog_compiler_pic_GCJ=-Kconform_pic
15827 lt_prog_compiler_pic_GCJ='-fPIC'
15829 esac
15830 else
15831 # PORTME Check for flag to pass linker flags through the system compiler.
15832 case $host_os in
15833 aix*)
15834 lt_prog_compiler_wl_GCJ='-Wl,'
15835 if test "$host_cpu" = ia64; then
15836 # AIX 5 now supports IA64 processor
15837 lt_prog_compiler_static_GCJ='-Bstatic'
15838 else
15839 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15842 darwin*)
15843 # PIC is the default on this platform
15844 # Common symbols not allowed in MH_DYLIB files
15845 case $cc_basename in
15846 xlc*)
15847 lt_prog_compiler_pic_GCJ='-qnocommon'
15848 lt_prog_compiler_wl_GCJ='-Wl,'
15850 esac
15853 mingw* | cygwin* | pw32* | os2*)
15854 # This hack is so that the source file can tell whether it is being
15855 # built for inclusion in a dll (and should export symbols for example).
15856 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15859 hpux9* | hpux10* | hpux11*)
15860 lt_prog_compiler_wl_GCJ='-Wl,'
15861 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15862 # not for PA HP-UX.
15863 case $host_cpu in
15864 hppa*64*|ia64*)
15865 # +Z the default
15868 lt_prog_compiler_pic_GCJ='+Z'
15870 esac
15871 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15872 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15875 irix5* | irix6* | nonstopux*)
15876 lt_prog_compiler_wl_GCJ='-Wl,'
15877 # PIC (with -KPIC) is the default.
15878 lt_prog_compiler_static_GCJ='-non_shared'
15881 linux* | k*bsd*-gnu)
15882 case $cc_basename in
15883 icc* | ecc*)
15884 lt_prog_compiler_wl_GCJ='-Wl,'
15885 lt_prog_compiler_pic_GCJ='-KPIC'
15886 lt_prog_compiler_static_GCJ='-static'
15888 pgcc* | pgf77* | pgf90* | pgf95*)
15889 # Portland Group compilers (*not* the Pentium gcc compiler,
15890 # which looks to be a dead project)
15891 lt_prog_compiler_wl_GCJ='-Wl,'
15892 lt_prog_compiler_pic_GCJ='-fpic'
15893 lt_prog_compiler_static_GCJ='-Bstatic'
15895 ccc*)
15896 lt_prog_compiler_wl_GCJ='-Wl,'
15897 # All Alpha code is PIC.
15898 lt_prog_compiler_static_GCJ='-non_shared'
15901 case `$CC -V 2>&1 | sed 5q` in
15902 *Sun\ C*)
15903 # Sun C 5.9
15904 lt_prog_compiler_pic_GCJ='-KPIC'
15905 lt_prog_compiler_static_GCJ='-Bstatic'
15906 lt_prog_compiler_wl_GCJ='-Wl,'
15908 *Sun\ F*)
15909 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15910 lt_prog_compiler_pic_GCJ='-KPIC'
15911 lt_prog_compiler_static_GCJ='-Bstatic'
15912 lt_prog_compiler_wl_GCJ=''
15914 esac
15916 esac
15919 newsos6)
15920 lt_prog_compiler_pic_GCJ='-KPIC'
15921 lt_prog_compiler_static_GCJ='-Bstatic'
15924 *nto* | *qnx*)
15925 # QNX uses GNU C++, but need to define -shared option too, otherwise
15926 # it will coredump.
15927 lt_prog_compiler_pic_GCJ='-fPIC -shared'
15930 osf3* | osf4* | osf5*)
15931 lt_prog_compiler_wl_GCJ='-Wl,'
15932 # All OSF/1 code is PIC.
15933 lt_prog_compiler_static_GCJ='-non_shared'
15936 rdos*)
15937 lt_prog_compiler_static_GCJ='-non_shared'
15940 solaris*)
15941 lt_prog_compiler_pic_GCJ='-KPIC'
15942 lt_prog_compiler_static_GCJ='-Bstatic'
15943 case $cc_basename in
15944 f77* | f90* | f95*)
15945 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15947 lt_prog_compiler_wl_GCJ='-Wl,';;
15948 esac
15951 sunos4*)
15952 lt_prog_compiler_wl_GCJ='-Qoption ld '
15953 lt_prog_compiler_pic_GCJ='-PIC'
15954 lt_prog_compiler_static_GCJ='-Bstatic'
15957 sysv4 | sysv4.2uw2* | sysv4.3*)
15958 lt_prog_compiler_wl_GCJ='-Wl,'
15959 lt_prog_compiler_pic_GCJ='-KPIC'
15960 lt_prog_compiler_static_GCJ='-Bstatic'
15963 sysv4*MP*)
15964 if test -d /usr/nec ;then
15965 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15966 lt_prog_compiler_static_GCJ='-Bstatic'
15970 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15971 lt_prog_compiler_wl_GCJ='-Wl,'
15972 lt_prog_compiler_pic_GCJ='-KPIC'
15973 lt_prog_compiler_static_GCJ='-Bstatic'
15976 unicos*)
15977 lt_prog_compiler_wl_GCJ='-Wl,'
15978 lt_prog_compiler_can_build_shared_GCJ=no
15981 uts4*)
15982 lt_prog_compiler_pic_GCJ='-pic'
15983 lt_prog_compiler_static_GCJ='-Bstatic'
15987 lt_prog_compiler_can_build_shared_GCJ=no
15989 esac
15992 case $host_os in
15993 # For platforms which do not support PIC, -DPIC is meaningless:
15994 *djgpp*)
15995 lt_prog_compiler_pic_GCJ=
15998 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16000 esac
16001 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16002 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16007 # Check to make sure the PIC flag actually works.
16009 if test -n "$lt_prog_compiler_pic_GCJ"; then
16010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16012 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16013 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015 lt_prog_compiler_pic_works_GCJ=no
16016 ac_outfile=conftest.$ac_objext
16017 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16018 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16019 # Insert the option either (1) after the last *FLAGS variable, or
16020 # (2) before a word containing "conftest.", or (3) at the end.
16021 # Note that $ac_compile itself does not contain backslashes and begins
16022 # with a dollar sign (not a hyphen), so the echo should work correctly.
16023 # The option is referenced via a variable to avoid confusing sed.
16024 lt_compile=`echo "$ac_compile" | $SED \
16025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16027 -e 's:$: $lt_compiler_flag:'`
16028 (eval echo "\"\$as_me:16028: $lt_compile\"" >&5)
16029 (eval "$lt_compile" 2>conftest.err)
16030 ac_status=$?
16031 cat conftest.err >&5
16032 echo "$as_me:16032: \$? = $ac_status" >&5
16033 if (exit $ac_status) && test -s "$ac_outfile"; then
16034 # The compiler can only warn and ignore the option if not recognized
16035 # So say no if there are warnings other than the usual output.
16036 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16039 lt_prog_compiler_pic_works_GCJ=yes
16042 $RM conftest*
16045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16046 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16048 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16049 case $lt_prog_compiler_pic_GCJ in
16050 "" | " "*) ;;
16051 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16052 esac
16053 else
16054 lt_prog_compiler_pic_GCJ=
16055 lt_prog_compiler_can_build_shared_GCJ=no
16063 # Check to make sure the static flag actually works.
16065 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16066 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16067 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16068 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 else
16071 lt_prog_compiler_static_works_GCJ=no
16072 save_LDFLAGS="$LDFLAGS"
16073 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16076 # The linker can only warn and ignore the option if not recognized
16077 # So say no if there are warnings
16078 if test -s conftest.err; then
16079 # Append any errors to the config.log.
16080 cat conftest.err 1>&5
16081 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16083 if diff conftest.exp conftest.er2 >/dev/null; then
16084 lt_prog_compiler_static_works_GCJ=yes
16086 else
16087 lt_prog_compiler_static_works_GCJ=yes
16090 $RM conftest*
16091 LDFLAGS="$save_LDFLAGS"
16094 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16095 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16097 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16099 else
16100 lt_prog_compiler_static_GCJ=
16106 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16107 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16108 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111 lt_cv_prog_compiler_c_o_GCJ=no
16112 $RM -r conftest 2>/dev/null
16113 mkdir conftest
16114 cd conftest
16115 mkdir out
16116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16118 lt_compiler_flag="-o out/conftest2.$ac_objext"
16119 # Insert the option either (1) after the last *FLAGS variable, or
16120 # (2) before a word containing "conftest.", or (3) at the end.
16121 # Note that $ac_compile itself does not contain backslashes and begins
16122 # with a dollar sign (not a hyphen), so the echo should work correctly.
16123 lt_compile=`echo "$ac_compile" | $SED \
16124 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16125 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16126 -e 's:$: $lt_compiler_flag:'`
16127 (eval echo "\"\$as_me:16127: $lt_compile\"" >&5)
16128 (eval "$lt_compile" 2>out/conftest.err)
16129 ac_status=$?
16130 cat out/conftest.err >&5
16131 echo "$as_me:16131: \$? = $ac_status" >&5
16132 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16133 then
16134 # The compiler can only warn and ignore the option if not recognized
16135 # So say no if there are warnings
16136 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16137 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16138 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16139 lt_cv_prog_compiler_c_o_GCJ=yes
16142 chmod u+w . 2>&5
16143 $RM conftest*
16144 # SGI C++ compiler will create directory out/ii_files/ for
16145 # template instantiation
16146 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16147 $RM out/* && rmdir out
16148 cd ..
16149 $RM -r conftest
16150 $RM conftest*
16153 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16154 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16159 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16160 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16161 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 else
16163 lt_cv_prog_compiler_c_o_GCJ=no
16164 $RM -r conftest 2>/dev/null
16165 mkdir conftest
16166 cd conftest
16167 mkdir out
16168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16170 lt_compiler_flag="-o out/conftest2.$ac_objext"
16171 # Insert the option either (1) after the last *FLAGS variable, or
16172 # (2) before a word containing "conftest.", or (3) at the end.
16173 # Note that $ac_compile itself does not contain backslashes and begins
16174 # with a dollar sign (not a hyphen), so the echo should work correctly.
16175 lt_compile=`echo "$ac_compile" | $SED \
16176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16178 -e 's:$: $lt_compiler_flag:'`
16179 (eval echo "\"\$as_me:16179: $lt_compile\"" >&5)
16180 (eval "$lt_compile" 2>out/conftest.err)
16181 ac_status=$?
16182 cat out/conftest.err >&5
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16185 then
16186 # The compiler can only warn and ignore the option if not recognized
16187 # So say no if there are warnings
16188 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16191 lt_cv_prog_compiler_c_o_GCJ=yes
16194 chmod u+w . 2>&5
16195 $RM conftest*
16196 # SGI C++ compiler will create directory out/ii_files/ for
16197 # template instantiation
16198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16199 $RM out/* && rmdir out
16200 cd ..
16201 $RM -r conftest
16202 $RM conftest*
16205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16211 hard_links="nottested"
16212 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16213 # do not overwrite the value of need_locks provided by the user
16214 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16215 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16216 hard_links=yes
16217 $RM conftest*
16218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16219 touch conftest.a
16220 ln conftest.a conftest.b 2>&5 || hard_links=no
16221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16222 echo "$as_me:$LINENO: result: $hard_links" >&5
16223 echo "${ECHO_T}$hard_links" >&6
16224 if test "$hard_links" = no; then
16225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16226 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16227 need_locks=warn
16229 else
16230 need_locks=no
16235 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16236 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16238 runpath_var=
16239 allow_undefined_flag_GCJ=
16240 always_export_symbols_GCJ=no
16241 archive_cmds_GCJ=
16242 archive_expsym_cmds_GCJ=
16243 compiler_needs_object_GCJ=no
16244 enable_shared_with_static_runtimes_GCJ=no
16245 export_dynamic_flag_spec_GCJ=
16246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16247 hardcode_automatic_GCJ=no
16248 hardcode_direct_GCJ=no
16249 hardcode_direct_absolute_GCJ=no
16250 hardcode_libdir_flag_spec_GCJ=
16251 hardcode_libdir_flag_spec_ld_GCJ=
16252 hardcode_libdir_separator_GCJ=
16253 hardcode_minus_L_GCJ=no
16254 hardcode_shlibpath_var_GCJ=unsupported
16255 inherit_rpath_GCJ=no
16256 link_all_deplibs_GCJ=unknown
16257 module_cmds_GCJ=
16258 module_expsym_cmds_GCJ=
16259 old_archive_from_new_cmds_GCJ=
16260 old_archive_from_expsyms_cmds_GCJ=
16261 thread_safe_flag_spec_GCJ=
16262 whole_archive_flag_spec_GCJ=
16263 # include_expsyms should be a list of space-separated symbols to be *always*
16264 # included in the symbol list
16265 include_expsyms_GCJ=
16266 # exclude_expsyms can be an extended regexp of symbols to exclude
16267 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16268 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16269 # as well as any symbol that contains `d'.
16270 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16272 # platforms (ab)use it in PIC code, but their linkers get confused if
16273 # the symbol is explicitly referenced. Since portable code cannot
16274 # rely on this symbol name, it's probably fine to never include it in
16275 # preloaded symbol tables.
16276 extract_expsyms_cmds=
16278 case $host_os in
16279 cygwin* | mingw* | pw32*)
16280 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16281 # When not using gcc, we currently assume that we are using
16282 # Microsoft Visual C++.
16283 if test "$GCC" != yes; then
16284 with_gnu_ld=no
16287 interix*)
16288 # we just hope/assume this is gcc and not c89 (= MSVC++)
16289 with_gnu_ld=yes
16291 openbsd*)
16292 with_gnu_ld=no
16294 esac
16296 ld_shlibs_GCJ=yes
16297 if test "$with_gnu_ld" = yes; then
16298 # If archive_cmds runs LD, not CC, wlarc should be empty
16299 wlarc='${wl}'
16301 # Set some defaults for GNU ld with shared library support. These
16302 # are reset later if shared libraries are not supported. Putting them
16303 # here allows them to be overridden if necessary.
16304 runpath_var=LD_RUN_PATH
16305 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16306 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16307 # ancient GNU ld didn't support --whole-archive et. al.
16308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16309 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16310 else
16311 whole_archive_flag_spec_GCJ=
16313 supports_anon_versioning=no
16314 case `$LD -v 2>&1` in
16315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16318 *\ 2.11.*) ;; # other 2.11 versions
16319 *) supports_anon_versioning=yes ;;
16320 esac
16322 # See if GNU ld supports shared libraries.
16323 case $host_os in
16324 aix3* | aix4* | aix5*)
16325 # On AIX/PPC, the GNU linker is very broken
16326 if test "$host_cpu" != ia64; then
16327 ld_shlibs_GCJ=no
16328 cat <<_LT_EOF 1>&2
16330 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16331 *** to be unable to reliably create shared libraries on AIX.
16332 *** Therefore, libtool is disabling shared libraries support. If you
16333 *** really care for shared libraries, you may want to modify your PATH
16334 *** so that a non-GNU linker is found, and then restart.
16336 _LT_EOF
16340 amigaos*)
16341 if test "$host_cpu" = m68k; then
16342 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)'
16343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16344 hardcode_minus_L_GCJ=yes
16347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16348 # that the semantics of dynamic libraries on AmigaOS, at least up
16349 # to version 4, is to share data among multiple programs linked
16350 # with the same dynamic library. Since this doesn't match the
16351 # behavior of shared libraries on other platforms, we can't use
16352 # them.
16353 ld_shlibs_GCJ=no
16356 beos*)
16357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16358 allow_undefined_flag_GCJ=unsupported
16359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16360 # support --undefined. This deserves some investigation. FIXME
16361 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16362 else
16363 ld_shlibs_GCJ=no
16367 cygwin* | mingw* | pw32*)
16368 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16369 # as there is no search path for DLLs.
16370 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371 allow_undefined_flag_GCJ=unsupported
16372 always_export_symbols_GCJ=no
16373 enable_shared_with_static_runtimes_GCJ=yes
16374 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16377 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16378 # If the export-symbols file already is a .def file (1st line
16379 # is EXPORTS), use it as is; otherwise, prepend...
16380 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16381 cp $export_symbols $output_objdir/$soname.def;
16382 else
16383 echo EXPORTS > $output_objdir/$soname.def;
16384 cat $export_symbols >> $output_objdir/$soname.def;
16386 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16387 else
16388 ld_shlibs_GCJ=no
16392 interix[3-9]*)
16393 hardcode_direct_GCJ=no
16394 hardcode_shlibpath_var_GCJ=no
16395 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16396 export_dynamic_flag_spec_GCJ='${wl}-E'
16397 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16398 # Instead, shared libraries are loaded at an image base (0x10000000 by
16399 # default) and relocated if they conflict, which is a slow very memory
16400 # consuming and fragmenting process. To avoid this, we pick a random,
16401 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16402 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16403 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'
16404 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'
16407 gnu* | linux* | tpf* | k*bsd*-gnu)
16408 tmp_diet=no
16409 if test "$host_os" = linux-dietlibc; then
16410 case $cc_basename in
16411 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16412 esac
16414 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16415 && test "$tmp_diet" = no
16416 then
16417 tmp_addflag=
16418 case $cc_basename,$host_cpu in
16419 pgcc*) # Portland Group C compiler
16420 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'
16421 tmp_addflag=' $pic_flag'
16423 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16424 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'
16425 tmp_addflag=' $pic_flag -Mnomain' ;;
16426 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16427 tmp_addflag=' -i_dynamic' ;;
16428 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16429 tmp_addflag=' -i_dynamic -nofor_main' ;;
16430 ifc* | ifort*) # Intel Fortran compiler
16431 tmp_addflag=' -nofor_main' ;;
16432 esac
16433 case `$CC -V 2>&1 | sed 5q` in
16434 *Sun\ C*) # Sun C 5.9
16435 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'
16436 compiler_needs_object_GCJ=yes
16437 tmp_sharedflag='-G' ;;
16438 *Sun\ F*) # Sun Fortran 8.3
16439 tmp_sharedflag='-G' ;;
16441 tmp_sharedflag='-shared' ;;
16442 esac
16443 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16445 if test "x$supports_anon_versioning" = xyes; then
16446 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
16447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16448 echo "local: *; };" >> $output_objdir/$libname.ver~
16449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16451 else
16452 ld_shlibs_GCJ=no
16456 netbsd*)
16457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16458 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16459 wlarc=
16460 else
16461 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16462 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16466 solaris*)
16467 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16468 ld_shlibs_GCJ=no
16469 cat <<_LT_EOF 1>&2
16471 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16472 *** create shared libraries on Solaris systems. Therefore, libtool
16473 *** is disabling shared libraries support. We urge you to upgrade GNU
16474 *** binutils to release 2.9.1 or newer. Another option is to modify
16475 *** your PATH or compiler configuration so that the native linker is
16476 *** used, and then restart.
16478 _LT_EOF
16479 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16480 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16481 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16482 else
16483 ld_shlibs_GCJ=no
16487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16488 case `$LD -v 2>&1` in
16489 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16490 ld_shlibs_GCJ=no
16491 cat <<_LT_EOF 1>&2
16493 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16494 *** reliably create shared libraries on SCO systems. Therefore, libtool
16495 *** is disabling shared libraries support. We urge you to upgrade GNU
16496 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16497 *** your PATH or compiler configuration so that the native linker is
16498 *** used, and then restart.
16500 _LT_EOF
16503 # For security reasons, it is highly recommended that you always
16504 # use absolute paths for naming shared libraries, and exclude the
16505 # DT_RUNPATH tag from executables and libraries. But doing so
16506 # requires that you compile everything twice, which is a pain.
16507 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16511 else
16512 ld_shlibs_GCJ=no
16515 esac
16518 sunos4*)
16519 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16520 wlarc=
16521 hardcode_direct_GCJ=yes
16522 hardcode_shlibpath_var_GCJ=no
16526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16527 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16528 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16529 else
16530 ld_shlibs_GCJ=no
16533 esac
16535 if test "$ld_shlibs_GCJ" = no; then
16536 runpath_var=
16537 hardcode_libdir_flag_spec_GCJ=
16538 export_dynamic_flag_spec_GCJ=
16539 whole_archive_flag_spec_GCJ=
16541 else
16542 # PORTME fill in a description of your system's linker (not GNU ld)
16543 case $host_os in
16544 aix3*)
16545 allow_undefined_flag_GCJ=unsupported
16546 always_export_symbols_GCJ=yes
16547 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'
16548 # Note: this linker hardcodes the directories in LIBPATH if there
16549 # are no directories specified by -L.
16550 hardcode_minus_L_GCJ=yes
16551 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16552 # Neither direct hardcoding nor static linking is supported with a
16553 # broken collect2.
16554 hardcode_direct_GCJ=unsupported
16558 aix4* | aix5*)
16559 if test "$host_cpu" = ia64; then
16560 # On IA64, the linker does run time linking by default, so we don't
16561 # have to do anything special.
16562 aix_use_runtimelinking=no
16563 exp_sym_flag='-Bexport'
16564 no_entry_flag=""
16565 else
16566 # If we're using GNU nm, then we don't want the "-C" option.
16567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16568 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16569 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'
16570 else
16571 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'
16573 aix_use_runtimelinking=no
16575 # Test if we are trying to use run time linking or normal
16576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16577 # need to do runtime linking.
16578 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16579 for ld_flag in $LDFLAGS; do
16580 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16581 aix_use_runtimelinking=yes
16582 break
16584 done
16586 esac
16588 exp_sym_flag='-bexport'
16589 no_entry_flag='-bnoentry'
16592 # When large executables or shared objects are built, AIX ld can
16593 # have problems creating the table of contents. If linking a library
16594 # or program results in "error TOC overflow" add -mminimal-toc to
16595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16598 archive_cmds_GCJ=''
16599 hardcode_direct_GCJ=yes
16600 hardcode_direct_absolute_GCJ=yes
16601 hardcode_libdir_separator_GCJ=':'
16602 link_all_deplibs_GCJ=yes
16603 file_list_spec_GCJ='${wl}-f,'
16605 if test "$GCC" = yes; then
16606 case $host_os in aix4.[012]|aix4.[012].*)
16607 # We only want to do this on AIX 4.2 and lower, the check
16608 # below for broken collect2 doesn't work under 4.3+
16609 collect2name=`${CC} -print-prog-name=collect2`
16610 if test -f "$collect2name" &&
16611 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16612 then
16613 # We have reworked collect2
16615 else
16616 # We have old collect2
16617 hardcode_direct_GCJ=unsupported
16618 # It fails to find uninstalled libraries when the uninstalled
16619 # path is not listed in the libpath. Setting hardcode_minus_L
16620 # to unsupported forces relinking
16621 hardcode_minus_L_GCJ=yes
16622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16623 hardcode_libdir_separator_GCJ=
16626 esac
16627 shared_flag='-shared'
16628 if test "$aix_use_runtimelinking" = yes; then
16629 shared_flag="$shared_flag "'${wl}-G'
16631 else
16632 # not using gcc
16633 if test "$host_cpu" = ia64; then
16634 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16635 # chokes on -Wl,-G. The following line is correct:
16636 shared_flag='-G'
16637 else
16638 if test "$aix_use_runtimelinking" = yes; then
16639 shared_flag='${wl}-G'
16640 else
16641 shared_flag='${wl}-bM:SRE'
16646 # It seems that -bexpall does not export symbols beginning with
16647 # underscore (_), so it is better to generate a list of symbols to export.
16648 always_export_symbols_GCJ=yes
16649 if test "$aix_use_runtimelinking" = yes; then
16650 # Warning - without using the other runtime loading flags (-brtl),
16651 # -berok will link without error, but may produce a broken library.
16652 allow_undefined_flag_GCJ='-berok'
16653 # Determine the default libpath from the value encoded in an
16654 # empty executable.
16655 if test x$gcc_no_link = xyes; then
16656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16658 { (exit 1); exit 1; }; }
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16668 main ()
16672 return 0;
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677 (eval $ac_link) 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag"
16685 || test ! -s conftest.err'
16686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687 (eval $ac_try) 2>&5
16688 ac_status=$?
16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690 (exit $ac_status); }; } &&
16691 { ac_try='test -s conftest$ac_exeext'
16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693 (eval $ac_try) 2>&5
16694 ac_status=$?
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16698 lt_aix_libpath_sed='
16699 /Import File Strings/,/^$/ {
16700 /^0/ {
16701 s/^0 *\(.*\)$/\1/
16705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16706 # Check for a 64-bit object if we didn't find anything.
16707 if test -z "$aix_libpath"; then
16708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16710 else
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.$ac_ext >&5
16715 rm -f conftest.err conftest.$ac_objext \
16716 conftest$ac_exeext conftest.$ac_ext
16717 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16719 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16720 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"
16721 else
16722 if test "$host_cpu" = ia64; then
16723 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16724 allow_undefined_flag_GCJ="-z nodefs"
16725 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"
16726 else
16727 # Determine the default libpath from the value encoded in an
16728 # empty executable.
16729 if test x$gcc_no_link = xyes; then
16730 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
16731 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
16732 { (exit 1); exit 1; }; }
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h. */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16742 main ()
16746 return 0;
16748 _ACEOF
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>conftest.er1
16752 ac_status=$?
16753 grep -v '^ *+' conftest.er1 >conftest.err
16754 rm -f conftest.er1
16755 cat conftest.err >&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -z "$ac_c_werror_flag"
16759 || test ! -s conftest.err'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16762 ac_status=$?
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; } &&
16765 { ac_try='test -s conftest$ac_exeext'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16772 lt_aix_libpath_sed='
16773 /Import File Strings/,/^$/ {
16774 /^0/ {
16775 s/^0 *\(.*\)$/\1/
16779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16780 # Check for a 64-bit object if we didn't find anything.
16781 if test -z "$aix_libpath"; then
16782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16789 rm -f conftest.err conftest.$ac_objext \
16790 conftest$ac_exeext conftest.$ac_ext
16791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16793 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16794 # Warning - without using the other run time loading flags,
16795 # -berok will link without error, but may produce a broken library.
16796 no_undefined_flag_GCJ=' ${wl}-bernotok'
16797 allow_undefined_flag_GCJ=' ${wl}-berok'
16798 # Exported symbols can be pulled into shared objects from archives
16799 whole_archive_flag_spec_GCJ='$convenience'
16800 archive_cmds_need_lc_GCJ=yes
16801 # This is similar to how AIX traditionally builds its shared libraries.
16802 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'
16807 amigaos*)
16808 if test "$host_cpu" = m68k; then
16809 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)'
16810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16811 hardcode_minus_L_GCJ=yes
16813 # see comment about different semantics on the GNU ld section
16814 ld_shlibs_GCJ=no
16817 bsdi[45]*)
16818 export_dynamic_flag_spec_GCJ=-rdynamic
16821 cygwin* | mingw* | pw32*)
16822 # When not using gcc, we currently assume that we are using
16823 # Microsoft Visual C++.
16824 # hardcode_libdir_flag_spec is actually meaningless, as there is
16825 # no search path for DLLs.
16826 hardcode_libdir_flag_spec_GCJ=' '
16827 allow_undefined_flag_GCJ=unsupported
16828 # Tell ltmain to make .lib files, not .a files.
16829 libext=lib
16830 # Tell ltmain to make .dll files, not .so files.
16831 shrext_cmds=".dll"
16832 # FIXME: Setting linknames here is a bad hack.
16833 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16834 # The linker will automatically build a .lib file if we build a DLL.
16835 old_archive_from_new_cmds_GCJ='true'
16836 # FIXME: Should let the user specify the lib program.
16837 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
16838 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16839 enable_shared_with_static_runtimes_GCJ=yes
16842 darwin* | rhapsody*)
16843 case $host_os in
16844 rhapsody* | darwin1.[012])
16845 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16847 *) # Darwin 1.3 on
16848 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
16849 10.[012])
16850 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16852 10.*)
16853 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16855 esac
16857 esac
16858 archive_cmds_need_lc_GCJ=no
16859 hardcode_direct_GCJ=no
16860 hardcode_automatic_GCJ=yes
16861 hardcode_shlibpath_var_GCJ=unsupported
16862 whole_archive_flag_spec_GCJ=''
16863 link_all_deplibs_GCJ=yes
16864 if test "$GCC" = yes ; then
16865 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868 lt_cv_apple_cc_single_mod=no
16869 if test -z "${LT_MULTI_MODULE}"; then
16870 # By default we will add the -single_module flag. You can override
16871 # by either setting the environment variable LT_MULTI_MODULE
16872 # non-empty at configure time, or by adding -multi-module to the
16873 # link flags.
16874 echo "int foo(void){return 1;}" > conftest.c
16875 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
16876 -dynamiclib ${wl}-single_module conftest.c
16877 if test -f libconftest.dylib; then
16878 lt_cv_apple_cc_single_mod=yes
16879 rm libconftest.dylib
16881 rm conftest.$ac_ext
16885 output_verbose_link_cmd=echo
16886 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
16887 archive_cmds_GCJ='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16888 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16889 else
16890 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16891 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16893 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16894 module_expsym_cmds_GCJ='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16895 else
16896 case $cc_basename in
16897 xlc*)
16898 output_verbose_link_cmd=echo
16899 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
16900 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16901 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16902 archive_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16903 module_expsym_cmds_GCJ='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16906 ld_shlibs_GCJ=no
16908 esac
16912 dgux*)
16913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16915 hardcode_shlibpath_var_GCJ=no
16918 freebsd1*)
16919 ld_shlibs_GCJ=no
16922 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16923 # support. Future versions do this automatically, but an explicit c++rt0.o
16924 # does not break anything, and helps significantly (at the cost of a little
16925 # extra space).
16926 freebsd2.2*)
16927 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16928 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16929 hardcode_direct_GCJ=yes
16930 hardcode_shlibpath_var_GCJ=no
16933 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16934 freebsd2*)
16935 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16936 hardcode_direct_GCJ=yes
16937 hardcode_minus_L_GCJ=yes
16938 hardcode_shlibpath_var_GCJ=no
16941 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16942 freebsd* | dragonfly*)
16943 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16944 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16945 hardcode_direct_GCJ=yes
16946 hardcode_shlibpath_var_GCJ=no
16949 hpux9*)
16950 if test "$GCC" = yes; then
16951 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'
16952 else
16953 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'
16955 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16956 hardcode_libdir_separator_GCJ=:
16957 hardcode_direct_GCJ=yes
16959 # hardcode_minus_L: Not really in the search PATH,
16960 # but as the default location of the library.
16961 hardcode_minus_L_GCJ=yes
16962 export_dynamic_flag_spec_GCJ='${wl}-E'
16965 hpux10*)
16966 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16967 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16968 else
16969 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16971 if test "$with_gnu_ld" = no; then
16972 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16973 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16974 hardcode_libdir_separator_GCJ=:
16975 hardcode_direct_GCJ=yes
16976 hardcode_direct_absolute_GCJ=yes
16977 export_dynamic_flag_spec_GCJ='${wl}-E'
16978 # hardcode_minus_L: Not really in the search PATH,
16979 # but as the default location of the library.
16980 hardcode_minus_L_GCJ=yes
16984 hpux11*)
16985 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16986 case $host_cpu in
16987 hppa*64*)
16988 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16990 ia64*)
16991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16994 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16996 esac
16997 else
16998 case $host_cpu in
16999 hppa*64*)
17000 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17002 ia64*)
17003 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17006 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17008 esac
17010 if test "$with_gnu_ld" = no; then
17011 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17012 hardcode_libdir_separator_GCJ=:
17014 case $host_cpu in
17015 hppa*64*|ia64*)
17016 hardcode_direct_GCJ=no
17017 hardcode_shlibpath_var_GCJ=no
17020 hardcode_direct_GCJ=yes
17021 hardcode_direct_absolute_GCJ=yes
17022 export_dynamic_flag_spec_GCJ='${wl}-E'
17024 # hardcode_minus_L: Not really in the search PATH,
17025 # but as the default location of the library.
17026 hardcode_minus_L_GCJ=yes
17028 esac
17032 irix5* | irix6* | nonstopux*)
17033 if test "$GCC" = yes; then
17034 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'
17035 # Try to use the -exported_symbol ld option, if it does not
17036 # work, assume that -exports_file does not work either and
17037 # implicitly export all symbols.
17038 save_LDFLAGS="$LDFLAGS"
17039 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17040 if test x$gcc_no_link = xyes; then
17041 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17042 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17043 { (exit 1); exit 1; }; }
17045 cat >conftest.$ac_ext <<_ACEOF
17046 int foo(void) {}
17047 _ACEOF
17048 rm -f conftest.$ac_objext conftest$ac_exeext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17050 (eval $ac_link) 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 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'
17072 else
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17077 rm -f conftest.err conftest.$ac_objext \
17078 conftest$ac_exeext conftest.$ac_ext
17079 LDFLAGS="$save_LDFLAGS"
17080 else
17081 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'
17082 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'
17084 archive_cmds_need_lc_GCJ='no'
17085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17086 hardcode_libdir_separator_GCJ=:
17087 inherit_rpath_GCJ=yes
17088 link_all_deplibs_GCJ=yes
17091 netbsd*)
17092 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17093 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17094 else
17095 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17097 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17098 hardcode_direct_GCJ=yes
17099 hardcode_shlibpath_var_GCJ=no
17102 newsos6)
17103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17104 hardcode_direct_GCJ=yes
17105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17106 hardcode_libdir_separator_GCJ=:
17107 hardcode_shlibpath_var_GCJ=no
17110 *nto* | *qnx*)
17113 openbsd*)
17114 hardcode_direct_GCJ=yes
17115 hardcode_shlibpath_var_GCJ=no
17116 hardcode_direct_absolute_GCJ=yes
17117 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17118 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17119 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17120 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17121 export_dynamic_flag_spec_GCJ='${wl}-E'
17122 else
17123 case $host_os in
17124 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17125 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17129 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17130 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17132 esac
17136 os2*)
17137 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17138 hardcode_minus_L_GCJ=yes
17139 allow_undefined_flag_GCJ=unsupported
17140 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'
17141 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17144 osf3*)
17145 if test "$GCC" = yes; then
17146 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17147 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'
17148 else
17149 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17150 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'
17152 archive_cmds_need_lc_GCJ='no'
17153 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17154 hardcode_libdir_separator_GCJ=:
17157 osf4* | osf5*) # as osf3* with the addition of -msym flag
17158 if test "$GCC" = yes; then
17159 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17160 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'
17161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17162 else
17163 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17164 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'
17165 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~
17166 $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'
17168 # Both c and cxx compiler support -rpath directly
17169 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17171 archive_cmds_need_lc_GCJ='no'
17172 hardcode_libdir_separator_GCJ=:
17175 solaris*)
17176 no_undefined_flag_GCJ=' -z defs'
17177 if test "$GCC" = yes; then
17178 wlarc='${wl}'
17179 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17180 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17181 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17182 else
17183 case `$CC -V 2>&1` in
17184 *"Compilers 5.0"*)
17185 wlarc=''
17186 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17187 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17191 wlarc='${wl}'
17192 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17193 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17194 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17196 esac
17198 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17199 hardcode_shlibpath_var_GCJ=no
17200 case $host_os in
17201 solaris2.[0-5] | solaris2.[0-5].*) ;;
17203 # The compiler driver will combine and reorder linker options,
17204 # but understands `-z linker_flag'. GCC discards it without `$wl',
17205 # but is careful enough not to reorder.
17206 # Supported since Solaris 2.6 (maybe 2.5.1?)
17207 if test "$GCC" = yes; then
17208 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17209 else
17210 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17213 esac
17214 link_all_deplibs_GCJ=yes
17217 sunos4*)
17218 if test "x$host_vendor" = xsequent; then
17219 # Use $CC to link under sequent, because it throws in some extra .o
17220 # files that make .init and .fini sections work.
17221 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17222 else
17223 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17225 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17226 hardcode_direct_GCJ=yes
17227 hardcode_minus_L_GCJ=yes
17228 hardcode_shlibpath_var_GCJ=no
17231 sysv4)
17232 case $host_vendor in
17233 sni)
17234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17235 hardcode_direct_GCJ=yes # is this really true???
17237 siemens)
17238 ## LD is ld it makes a PLAMLIB
17239 ## CC just makes a GrossModule.
17240 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17241 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17242 hardcode_direct_GCJ=no
17244 motorola)
17245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17248 esac
17249 runpath_var='LD_RUN_PATH'
17250 hardcode_shlibpath_var_GCJ=no
17253 sysv4.3*)
17254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17255 hardcode_shlibpath_var_GCJ=no
17256 export_dynamic_flag_spec_GCJ='-Bexport'
17259 sysv4*MP*)
17260 if test -d /usr/nec; then
17261 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17262 hardcode_shlibpath_var_GCJ=no
17263 runpath_var=LD_RUN_PATH
17264 hardcode_runpath_var=yes
17265 ld_shlibs_GCJ=yes
17269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17270 no_undefined_flag_GCJ='${wl}-z,text'
17271 archive_cmds_need_lc_GCJ=no
17272 hardcode_shlibpath_var_GCJ=no
17273 runpath_var='LD_RUN_PATH'
17275 if test "$GCC" = yes; then
17276 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17277 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17278 else
17279 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17284 sysv5* | sco3.2v5* | sco5v6*)
17285 # Note: We can NOT use -z defs as we might desire, because we do not
17286 # link with -lc, and that would cause any symbols used from libc to
17287 # always be unresolved, which means just about no library would
17288 # ever link correctly. If we're not using GNU ld we use -z text
17289 # though, which does catch some bad symbols but isn't as heavy-handed
17290 # as -z defs.
17291 no_undefined_flag_GCJ='${wl}-z,text'
17292 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17293 archive_cmds_need_lc_GCJ=no
17294 hardcode_shlibpath_var_GCJ=no
17295 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
17296 hardcode_libdir_separator_GCJ=':'
17297 link_all_deplibs_GCJ=yes
17298 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17299 runpath_var='LD_RUN_PATH'
17301 if test "$GCC" = yes; then
17302 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17303 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17304 else
17305 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17306 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17310 uts4*)
17311 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17313 hardcode_shlibpath_var_GCJ=no
17317 ld_shlibs_GCJ=no
17319 esac
17321 if test x$host_vendor = xsni; then
17322 case $host in
17323 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17324 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
17326 esac
17330 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17331 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17332 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17334 with_gnu_ld_GCJ=$with_gnu_ld
17342 # Do we need to explicitly link libc?
17344 case "x$archive_cmds_need_lc_GCJ" in
17345 x|xyes)
17346 # Assume -lc should be added
17347 archive_cmds_need_lc_GCJ=yes
17349 if test "$enable_shared" = yes && test "$GCC" = yes; then
17350 case $archive_cmds_GCJ in
17351 *'~'*)
17352 # FIXME: we may have to deal with multi-command sequences.
17354 '$CC '*)
17355 # Test whether the compiler implicitly links with -lc since on some
17356 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17357 # to ld, don't add -lc before -lgcc.
17358 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17359 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17360 $RM conftest*
17361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } 2>conftest.err; then
17368 soname=conftest
17369 lib=conftest
17370 libobjs=conftest.$ac_objext
17371 deplibs=
17372 wl=$lt_prog_compiler_wl_GCJ
17373 pic_flag=$lt_prog_compiler_pic_GCJ
17374 compiler_flags=-v
17375 linker_flags=-v
17376 verstring=
17377 output_objdir=.
17378 libname=conftest
17379 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17380 allow_undefined_flag_GCJ=
17381 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17382 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }
17386 then
17387 archive_cmds_need_lc_GCJ=no
17388 else
17389 archive_cmds_need_lc_GCJ=yes
17391 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17392 else
17393 cat conftest.err 1>&5
17395 $RM conftest*
17396 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17397 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17399 esac
17402 esac
17467 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17468 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17469 withGCC=$GCC
17470 library_names_spec=
17471 libname_spec='lib$name'
17472 soname_spec=
17473 shrext_cmds=".so"
17474 postinstall_cmds=
17475 postuninstall_cmds=
17476 finish_cmds=
17477 finish_eval=
17478 shlibpath_var=
17479 shlibpath_overrides_runpath=unknown
17480 version_type=none
17481 dynamic_linker="$host_os ld.so"
17482 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17483 need_lib_prefix=unknown
17484 hardcode_into_libs=no
17486 # when you set need_version to no, make sure it does not cause -set_version
17487 # flags to be left without arguments
17488 need_version=unknown
17490 case $host_os in
17491 aix3*)
17492 version_type=linux
17493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17494 shlibpath_var=LIBPATH
17496 # AIX 3 has no versioning support, so we append a major version to the name.
17497 soname_spec='${libname}${release}${shared_ext}$major'
17500 aix4* | aix5*)
17501 version_type=linux
17502 need_lib_prefix=no
17503 need_version=no
17504 hardcode_into_libs=yes
17505 if test "$host_cpu" = ia64; then
17506 # AIX 5 supports IA64
17507 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17508 shlibpath_var=LD_LIBRARY_PATH
17509 else
17510 # With GCC up to 2.95.x, collect2 would create an import file
17511 # for dependence libraries. The import file would start with
17512 # the line `#! .'. This would cause the generated library to
17513 # depend on `.', always an invalid library. This was fixed in
17514 # development snapshots of GCC prior to 3.0.
17515 case $host_os in
17516 aix4 | aix4.[01] | aix4.[01].*)
17517 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17518 echo ' yes '
17519 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17521 else
17522 can_build_shared=no
17525 esac
17526 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17527 # soname into executable. Probably we can add versioning support to
17528 # collect2, so additional links can be useful in future.
17529 if test "$aix_use_runtimelinking" = yes; then
17530 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17531 # instead of lib<name>.a to let people know that these are not
17532 # typical AIX shared libraries.
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 else
17535 # We preserve .a as extension for shared libraries through AIX4.2
17536 # and later when we are not doing run time linking.
17537 library_names_spec='${libname}${release}.a $libname.a'
17538 soname_spec='${libname}${release}${shared_ext}$major'
17540 shlibpath_var=LIBPATH
17544 amigaos*)
17545 if test "$host_cpu" = m68k; then
17546 library_names_spec='$libname.ixlibrary $libname.a'
17547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17548 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'
17549 else
17550 dynamic_linker=no
17554 beos*)
17555 library_names_spec='${libname}${shared_ext}'
17556 dynamic_linker="$host_os ld.so"
17557 shlibpath_var=LIBRARY_PATH
17560 bsdi[45]*)
17561 version_type=linux
17562 need_version=no
17563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17564 soname_spec='${libname}${release}${shared_ext}$major'
17565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17569 # the default ld.so.conf also contains /usr/contrib/lib and
17570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17571 # libtool to hard-code these into programs
17574 cygwin* | mingw* | pw32*)
17575 version_type=windows
17576 shrext_cmds=".dll"
17577 need_version=no
17578 need_lib_prefix=no
17580 case $withGCC,$host_os in
17581 yes,cygwin* | yes,mingw* | yes,pw32*)
17582 library_names_spec='$libname.dll.a'
17583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17584 postinstall_cmds='base_file=`basename \${file}`~
17585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17586 dldir=$destdir/`dirname \$dlpath`~
17587 test -d \$dldir || mkdir -p \$dldir~
17588 $install_prog $dir/$dlname \$dldir/$dlname~
17589 chmod a+x \$dldir/$dlname~
17590 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17591 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17594 dlpath=$dir/\$dldll~
17595 $RM \$dlpath'
17596 shlibpath_overrides_runpath=yes
17598 case $host_os in
17599 cygwin*)
17600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17604 mingw*)
17605 # MinGW DLLs use traditional 'lib' prefix
17606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17607 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17608 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17609 # It is most probably a Windows format PATH printed by
17610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17611 # path with ; separators, and with drive letters. We can handle the
17612 # drive letters (cygwin fileutils understands them), so leave them,
17613 # especially as we might pass files found there to a mingw objdump,
17614 # which wouldn't understand a cygwinified path. Ahh.
17615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17616 else
17617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17620 pw32*)
17621 # pw32 DLLs use 'pw' prefix rather than 'lib'
17622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17624 esac
17628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17630 esac
17631 dynamic_linker='Win32 ld.exe'
17632 # FIXME: first we should search . and the directory the executable is in
17633 shlibpath_var=PATH
17636 darwin* | rhapsody*)
17637 dynamic_linker="$host_os dyld"
17638 version_type=darwin
17639 need_lib_prefix=no
17640 need_version=no
17641 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17642 soname_spec='${libname}${release}${major}$shared_ext'
17643 shlibpath_overrides_runpath=yes
17644 shlibpath_var=DYLD_LIBRARY_PATH
17645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17647 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17650 dgux*)
17651 version_type=linux
17652 need_lib_prefix=no
17653 need_version=no
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17659 freebsd1*)
17660 dynamic_linker=no
17663 freebsd* | dragonfly*)
17664 # DragonFly does not have aout. When/if they implement a new
17665 # versioning mechanism, adjust this.
17666 if test -x /usr/bin/objformat; then
17667 objformat=`/usr/bin/objformat`
17668 else
17669 case $host_os in
17670 freebsd[123]*) objformat=aout ;;
17671 *) objformat=elf ;;
17672 esac
17674 version_type=freebsd-$objformat
17675 case $version_type in
17676 freebsd-elf*)
17677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17678 need_version=no
17679 need_lib_prefix=no
17681 freebsd-*)
17682 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17683 need_version=yes
17685 esac
17686 shlibpath_var=LD_LIBRARY_PATH
17687 case $host_os in
17688 freebsd2*)
17689 shlibpath_overrides_runpath=yes
17691 freebsd3.[01]* | freebsdelf3.[01]*)
17692 shlibpath_overrides_runpath=yes
17693 hardcode_into_libs=yes
17695 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17696 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17697 shlibpath_overrides_runpath=no
17698 hardcode_into_libs=yes
17700 *) # from 4.6 on, and DragonFly
17701 shlibpath_overrides_runpath=yes
17702 hardcode_into_libs=yes
17704 esac
17707 gnu*)
17708 version_type=linux
17709 need_lib_prefix=no
17710 need_version=no
17711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17712 soname_spec='${libname}${release}${shared_ext}$major'
17713 shlibpath_var=LD_LIBRARY_PATH
17714 hardcode_into_libs=yes
17717 hpux9* | hpux10* | hpux11*)
17718 # Give a soname corresponding to the major version so that dld.sl refuses to
17719 # link against other versions.
17720 version_type=sunos
17721 need_lib_prefix=no
17722 need_version=no
17723 case $host_cpu in
17724 ia64*)
17725 shrext_cmds='.so'
17726 hardcode_into_libs=yes
17727 dynamic_linker="$host_os dld.so"
17728 shlibpath_var=LD_LIBRARY_PATH
17729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 if test "X$HPUX_IA64_MODE" = X32; then
17733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17734 else
17735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17739 hppa*64*)
17740 shrext_cmds='.sl'
17741 hardcode_into_libs=yes
17742 dynamic_linker="$host_os dld.sl"
17743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17746 soname_spec='${libname}${release}${shared_ext}$major'
17747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17751 shrext_cmds='.sl'
17752 dynamic_linker="$host_os dld.sl"
17753 shlibpath_var=SHLIB_PATH
17754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756 soname_spec='${libname}${release}${shared_ext}$major'
17758 esac
17759 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17760 postinstall_cmds='chmod 555 $lib'
17763 interix[3-9]*)
17764 version_type=linux
17765 need_lib_prefix=no
17766 need_version=no
17767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17768 soname_spec='${libname}${release}${shared_ext}$major'
17769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17770 shlibpath_var=LD_LIBRARY_PATH
17771 shlibpath_overrides_runpath=no
17772 hardcode_into_libs=yes
17775 irix5* | irix6* | nonstopux*)
17776 case $host_os in
17777 nonstopux*) version_type=nonstopux ;;
17779 if test "$lt_cv_prog_gnu_ld" = yes; then
17780 version_type=linux
17781 else
17782 version_type=irix
17783 fi ;;
17784 esac
17785 need_lib_prefix=no
17786 need_version=no
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17789 case $host_os in
17790 irix5* | nonstopux*)
17791 libsuff= shlibsuff=
17794 case $LD in # libtool.m4 will add one of these switches to LD
17795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17796 libsuff= shlibsuff= libmagic=32-bit;;
17797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17798 libsuff=32 shlibsuff=N32 libmagic=N32;;
17799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17801 *) libsuff= shlibsuff= libmagic=never-match;;
17802 esac
17804 esac
17805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17806 shlibpath_overrides_runpath=no
17807 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17808 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17809 hardcode_into_libs=yes
17812 # No shared lib support for Linux oldld, aout, or coff.
17813 linux*oldld* | linux*aout* | linux*coff*)
17814 dynamic_linker=no
17817 # This must be Linux ELF.
17818 linux* | k*bsd*-gnu)
17819 version_type=linux
17820 need_lib_prefix=no
17821 need_version=no
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823 soname_spec='${libname}${release}${shared_ext}$major'
17824 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 shlibpath_overrides_runpath=no
17827 # Some binutils ld are patched to set DT_RUNPATH
17828 save_LDFLAGS=$LDFLAGS
17829 save_libdir=$libdir
17830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_GCJ\"; \
17831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_GCJ\""
17832 if test x$gcc_no_link = xyes; then
17833 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17834 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17835 { (exit 1); exit 1; }; }
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17845 main ()
17849 return 0;
17851 _ACEOF
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17854 (eval $ac_link) 2>conftest.er1
17855 ac_status=$?
17856 grep -v '^ *+' conftest.er1 >conftest.err
17857 rm -f conftest.er1
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); } &&
17861 { ac_try='test -z "$ac_c_werror_flag"
17862 || test ! -s conftest.err'
17863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17864 (eval $ac_try) 2>&5
17865 ac_status=$?
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); }; } &&
17868 { ac_try='test -s conftest$ac_exeext'
17869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17870 (eval $ac_try) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); }; }; then
17874 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
17875 shlibpath_overrides_runpath=yes
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17883 rm -f conftest.err conftest.$ac_objext \
17884 conftest$ac_exeext conftest.$ac_ext
17885 LDFLAGS=$save_LDFLAGS
17886 libdir=$save_libdir
17888 # This implies no fast_install, which is unacceptable.
17889 # Some rework will be needed to allow for fast_install
17890 # before this can be enabled.
17891 hardcode_into_libs=yes
17893 # Append ld.so.conf contents to the search path
17894 if test -f /etc/ld.so.conf; then
17895 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17896 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17899 # We used to test for /lib/ld.so.1 and disable shared libraries on
17900 # powerpc, because MkLinux only supported shared libraries with the
17901 # GNU dynamic linker. Since this was broken with cross compilers,
17902 # most powerpc-linux boxes support dynamic linking these days and
17903 # people can always --disable-shared, the test was removed, and we
17904 # assume the GNU/Linux dynamic linker is in use.
17905 dynamic_linker='GNU/Linux ld.so'
17908 netbsd*)
17909 version_type=sunos
17910 need_lib_prefix=no
17911 need_version=no
17912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17914 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17915 dynamic_linker='NetBSD (a.out) ld.so'
17916 else
17917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17918 soname_spec='${libname}${release}${shared_ext}$major'
17919 dynamic_linker='NetBSD ld.elf_so'
17921 shlibpath_var=LD_LIBRARY_PATH
17922 shlibpath_overrides_runpath=yes
17923 hardcode_into_libs=yes
17926 newsos6)
17927 version_type=linux
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=yes
17933 *nto* | *qnx*)
17934 version_type=qnx
17935 need_lib_prefix=no
17936 need_version=no
17937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938 soname_spec='${libname}${release}${shared_ext}$major'
17939 shlibpath_var=LD_LIBRARY_PATH
17940 shlibpath_overrides_runpath=no
17941 hardcode_into_libs=yes
17942 dynamic_linker='ldqnx.so'
17945 openbsd*)
17946 version_type=sunos
17947 sys_lib_dlsearch_path_spec="/usr/lib"
17948 need_lib_prefix=no
17949 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17950 case $host_os in
17951 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17952 *) need_version=no ;;
17953 esac
17954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17955 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17956 shlibpath_var=LD_LIBRARY_PATH
17957 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17958 case $host_os in
17959 openbsd2.[89] | openbsd2.[89].*)
17960 shlibpath_overrides_runpath=no
17963 shlibpath_overrides_runpath=yes
17965 esac
17966 else
17967 shlibpath_overrides_runpath=yes
17971 os2*)
17972 libname_spec='$name'
17973 shrext_cmds=".dll"
17974 need_lib_prefix=no
17975 library_names_spec='$libname${shared_ext} $libname.a'
17976 dynamic_linker='OS/2 ld.exe'
17977 shlibpath_var=LIBPATH
17980 osf3* | osf4* | osf5*)
17981 version_type=osf
17982 need_lib_prefix=no
17983 need_version=no
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17986 shlibpath_var=LD_LIBRARY_PATH
17987 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17988 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17991 rdos*)
17992 dynamic_linker=no
17995 solaris*)
17996 version_type=linux
17997 need_lib_prefix=no
17998 need_version=no
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18000 soname_spec='${libname}${release}${shared_ext}$major'
18001 shlibpath_var=LD_LIBRARY_PATH
18002 shlibpath_overrides_runpath=yes
18003 hardcode_into_libs=yes
18004 # ldd complains unless libraries are executable
18005 postinstall_cmds='chmod +x $lib'
18008 sunos4*)
18009 version_type=sunos
18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18011 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18012 shlibpath_var=LD_LIBRARY_PATH
18013 shlibpath_overrides_runpath=yes
18014 if test "$with_gnu_ld" = yes; then
18015 need_lib_prefix=no
18017 need_version=yes
18020 sysv4 | sysv4.3*)
18021 version_type=linux
18022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18023 soname_spec='${libname}${release}${shared_ext}$major'
18024 shlibpath_var=LD_LIBRARY_PATH
18025 case $host_vendor in
18026 sni)
18027 shlibpath_overrides_runpath=no
18028 need_lib_prefix=no
18029 runpath_var=LD_RUN_PATH
18031 siemens)
18032 need_lib_prefix=no
18034 motorola)
18035 need_lib_prefix=no
18036 need_version=no
18037 shlibpath_overrides_runpath=no
18038 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18040 esac
18043 sysv4*MP*)
18044 if test -d /usr/nec ;then
18045 version_type=linux
18046 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18047 soname_spec='$libname${shared_ext}.$major'
18048 shlibpath_var=LD_LIBRARY_PATH
18052 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18053 version_type=freebsd-elf
18054 need_lib_prefix=no
18055 need_version=no
18056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18057 soname_spec='${libname}${release}${shared_ext}$major'
18058 shlibpath_var=LD_LIBRARY_PATH
18059 shlibpath_overrides_runpath=yes
18060 hardcode_into_libs=yes
18061 if test "$with_gnu_ld" = yes; then
18062 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18063 else
18064 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18065 case $host_os in
18066 sco3.2v5*)
18067 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18069 esac
18071 sys_lib_dlsearch_path_spec='/usr/lib'
18074 tpf*)
18075 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18076 version_type=linux
18077 need_lib_prefix=no
18078 need_version=no
18079 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18080 shlibpath_var=LD_LIBRARY_PATH
18081 shlibpath_overrides_runpath=no
18082 hardcode_into_libs=yes
18085 uts4*)
18086 version_type=linux
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088 soname_spec='${libname}${release}${shared_ext}$major'
18089 shlibpath_var=LD_LIBRARY_PATH
18093 dynamic_linker=no
18095 esac
18096 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18097 echo "${ECHO_T}$dynamic_linker" >&6
18098 test "$dynamic_linker" = no && can_build_shared=no
18100 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18101 if test "$GCC" = yes; then
18102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18140 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18141 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18142 hardcode_action_GCJ=
18143 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18144 test -n "$runpath_var_GCJ" ||
18145 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18147 # We can hardcode non-existent directories.
18148 if test "$hardcode_direct_GCJ" != no &&
18149 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18150 # have to relink, otherwise we might link with an installed library
18151 # when we should be linking with a yet-to-be-installed one
18152 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18153 test "$hardcode_minus_L_GCJ" != no; then
18154 # Linking always hardcodes the temporary library directory.
18155 hardcode_action_GCJ=relink
18156 else
18157 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18158 hardcode_action_GCJ=immediate
18160 else
18161 # We cannot hardcode anything, or else we can only hardcode existing
18162 # directories.
18163 hardcode_action_GCJ=unsupported
18165 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18166 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18168 if test "$hardcode_action_GCJ" = relink ||
18169 test "$inherit_rpath_GCJ" = yes; then
18170 # Fast installation is not supported
18171 enable_fast_install=no
18172 elif test "$shlibpath_overrides_runpath" = yes ||
18173 test "$enable_shared" = no; then
18174 # Fast installation is not necessary
18175 enable_fast_install=needless
18186 compiler_GCJ=${GCJ-gcj}
18187 ac_ext=c
18188 ac_cpp='$CPP $CPPFLAGS'
18189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18194 if test "x$CC" != xcc; then
18195 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18196 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18197 else
18198 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18199 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18201 set dummy $CC; ac_cc=`echo $2 |
18202 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18203 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18214 main ()
18218 return 0;
18220 _ACEOF
18221 # Make sure it works both with $CC and with simple cc.
18222 # We do the test twice because some compilers refuse to overwrite an
18223 # existing .o file with -o, though they will create one.
18224 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18225 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18232 ac_status=$?
18233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); };
18235 then
18236 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18237 if test "x$CC" != xcc; then
18238 # Test first that cc exists at all.
18239 if { ac_try='cc -c conftest.$ac_ext >&5'
18240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18241 (eval $ac_try) 2>&5
18242 ac_status=$?
18243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18244 (exit $ac_status); }; }; then
18245 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18246 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18248 ac_status=$?
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
18251 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); };
18256 then
18257 # cc works too.
18259 else
18260 # cc exists but doesn't like -o.
18261 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18265 else
18266 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18268 rm -f conftest*
18271 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18272 echo "$as_me:$LINENO: result: yes" >&5
18273 echo "${ECHO_T}yes" >&6
18274 else
18275 echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18278 cat >>confdefs.h <<\_ACEOF
18279 #define NO_MINUS_C_MINUS_O 1
18280 _ACEOF
18284 # FIXME: we rely on the cache variable name because
18285 # there is no other way.
18286 set dummy $CC
18287 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18288 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18289 # Losing compiler, so override with the script.
18290 # FIXME: It is wrong to rewrite CC.
18291 # But if we don't then we get into trouble of one sort or another.
18292 # A longer-term fix would be to have automake use am__CC in this case,
18293 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18294 CC="$am_aux_dir/compile $CC"
18300 subdirs="$subdirs classpath libltdl"
18303 # The -no-testsuite modules omit the test subdir.
18306 if test -d $srcdir/testsuite; then
18307 TESTSUBDIR_TRUE=
18308 TESTSUBDIR_FALSE='#'
18309 else
18310 TESTSUBDIR_TRUE='#'
18311 TESTSUBDIR_FALSE=
18315 # Should the runtime set system properties by examining the
18316 # environment variable GCJ_PROPERTIES?
18317 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18318 if test "${enable_getenv_properties+set}" = set; then
18319 enableval="$enable_getenv_properties"
18323 # Whether GCJ_PROPERTIES is used depends on the target.
18324 if test -z "$enable_getenv_properties"; then
18325 enable_getenv_properties=${enable_getenv_properties_default-yes}
18327 if test "$enable_getenv_properties" = no; then
18329 cat >>confdefs.h <<\_ACEOF
18330 #define DISABLE_GETENV_PROPERTIES 1
18331 _ACEOF
18335 # Whether we should use arguments to main()
18336 if test -z "$enable_main_args"; then
18337 enable_main_args=${enable_main_args_default-yes}
18339 if test "$enable_main_args" = no; then
18341 cat >>confdefs.h <<\_ACEOF
18342 #define DISABLE_MAIN_ARGS 1
18343 _ACEOF
18348 # Should we use hashtable-based synchronization?
18349 # Currently works only for Linux X86/ia64
18350 # Typically faster and more space-efficient
18351 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18352 if test "${enable_hash_synchronization+set}" = set; then
18353 enableval="$enable_hash_synchronization"
18357 if test -z "$enable_hash_synchronization"; then
18358 enable_hash_synchronization=$enable_hash_synchronization_default
18362 install_ecj_jar=no
18363 ECJ_BUILD_JAR=
18364 ECJ_JAR=
18366 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18367 if test "${with_ecj_jar+set}" = set; then
18368 withval="$with_ecj_jar"
18369 ECJ_JAR=$withval
18370 else
18371 if test -f $multi_basedir/ecj.jar; then
18372 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18373 ECJ_JAR='$(jardir)/ecj.jar'
18374 install_ecj_jar=yes
18381 if test "$ECJ_JAR" != ""; then
18382 BUILD_ECJ1_TRUE=
18383 BUILD_ECJ1_FALSE='#'
18384 else
18385 BUILD_ECJ1_TRUE='#'
18386 BUILD_ECJ1_FALSE=
18391 if test $install_ecj_jar = yes; then
18392 INSTALL_ECJ_JAR_TRUE=
18393 INSTALL_ECJ_JAR_FALSE='#'
18394 else
18395 INSTALL_ECJ_JAR_TRUE='#'
18396 INSTALL_ECJ_JAR_FALSE=
18401 # Check whether --with-java-home or --without-java-home was given.
18402 if test "${with_java_home+set}" = set; then
18403 withval="$with_java_home"
18404 JAVA_HOME="${withval}"
18405 else
18406 JAVA_HOME=""
18410 if test ! -z "$JAVA_HOME"; then
18411 JAVA_HOME_SET_TRUE=
18412 JAVA_HOME_SET_FALSE='#'
18413 else
18414 JAVA_HOME_SET_TRUE='#'
18415 JAVA_HOME_SET_FALSE=
18420 suppress_libgcj_bc=no
18421 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18422 if test "${enable_libgcj_bc+set}" = set; then
18423 enableval="$enable_libgcj_bc"
18424 if test "$enable_libgcj_bc" = "no"; then
18425 suppress_libgcj_bc=yes
18430 if test "$suppress_libgcj_bc" = "yes"; then
18431 SUPPRESS_LIBGCJ_BC_TRUE=
18432 SUPPRESS_LIBGCJ_BC_FALSE='#'
18433 else
18434 SUPPRESS_LIBGCJ_BC_TRUE='#'
18435 SUPPRESS_LIBGCJ_BC_FALSE=
18439 # What is the native OS API for MinGW?
18441 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18442 if test "${with_win32_nlsapi+set}" = set; then
18443 withval="$with_win32_nlsapi"
18444 case "${withval}" in
18445 ansi) with_win32_nlsapi=ansi ;;
18446 unicows) with_win32_nlsapi=unicows ;;
18447 unicode) with_win32_nlsapi=unicode ;;
18448 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18449 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18450 { (exit 1); exit 1; }; } ;;
18451 esac
18452 else
18453 with_win32_nlsapi=ansi
18456 case "${with_win32_nlsapi}" in
18457 unicows | unicode)
18459 cat >>confdefs.h <<\_ACEOF
18460 #define MINGW_LIBGCJ_UNICODE 1
18461 _ACEOF
18464 esac
18466 # configure.host sets slow_pthread_self if the synchronization code should
18467 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18468 if test "${slow_pthread_self}" = "yes"; then
18470 cat >>confdefs.h <<\_ACEOF
18471 #define SLOW_PTHREAD_SELF 1
18472 _ACEOF
18476 # Check for gc debugging. This option is handled both here and in the GC.
18477 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18478 if test "${enable_gc_debug+set}" = set; then
18479 enableval="$enable_gc_debug"
18480 if test "$enable_gc_debug" = "yes"; then
18482 cat >>confdefs.h <<\_ACEOF
18483 #define LIBGCJ_GC_DEBUG 1
18484 _ACEOF
18489 # See if the user has the interpreter included.
18490 # Check whether --enable-interpreter or --disable-interpreter was given.
18491 if test "${enable_interpreter+set}" = set; then
18492 enableval="$enable_interpreter"
18493 if test "$enable_interpreter" = yes; then
18494 # This can also be set in configure.host.
18495 libgcj_interpreter=yes
18496 elif test "$enable_interpreter" = no; then
18497 libgcj_interpreter=no
18501 if test "$libgcj_interpreter" = yes; then
18503 cat >>confdefs.h <<\_ACEOF
18504 #define INTERPRETER 1
18505 _ACEOF
18508 INTERPRETER="$libgcj_interpreter"
18512 if test "$libgcj_interpreter" = yes; then
18513 INTERPRETER_TRUE=
18514 INTERPRETER_FALSE='#'
18515 else
18516 INTERPRETER_TRUE='#'
18517 INTERPRETER_FALSE=
18521 echo "$as_me:$LINENO: checking for exception model to use" >&5
18522 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18523 ac_ext=cc
18524 ac_cpp='$CXXCPP $CPPFLAGS'
18525 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18526 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18527 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18529 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18530 if test "${enable_sjlj_exceptions+set}" = set; then
18531 enableval="$enable_sjlj_exceptions"
18533 else
18534 cat > conftest.$ac_ext << EOF
18535 #line 18535 "configure"
18536 struct S { ~S(); };
18537 void bar();
18538 void foo()
18540 S s;
18541 bar();
18544 old_CXXFLAGS="$CXXFLAGS"
18545 CXXFLAGS=-S
18546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18547 (eval $ac_compile) 2>&5
18548 ac_status=$?
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); }; then
18551 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18552 enable_sjlj_exceptions=yes
18553 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18554 enable_sjlj_exceptions=no
18557 CXXFLAGS="$old_CXXFLAGS"
18558 rm -f conftest*
18560 if test x$enable_sjlj_exceptions = xyes; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define SJLJ_EXCEPTIONS 1
18564 _ACEOF
18566 ac_exception_model_name=sjlj
18567 elif test x$enable_sjlj_exceptions = xno; then
18568 ac_exception_model_name="call frame"
18569 else
18570 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18571 echo "$as_me: error: unable to detect exception model" >&2;}
18572 { (exit 1); exit 1; }; }
18574 ac_ext=c
18575 ac_cpp='$CPP $CPPFLAGS'
18576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18580 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18581 echo "${ECHO_T}$ac_exception_model_name" >&6
18583 # If we are non using SJLJ exceptions, and this host does not have support
18584 # for unwinding from a signal handler, enable checked dereferences and divides.
18585 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18586 CHECKREFSPEC=-fcheck-references
18587 DIVIDESPEC=-fuse-divide-subroutine
18588 EXCEPTIONSPEC=
18591 # See if the user wants to disable java.net. This is the mildly
18592 # ugly way that we admit that target-side configuration sucks.
18593 # Check whether --enable-java-net or --disable-java-net was given.
18594 if test "${enable_java_net+set}" = set; then
18595 enableval="$enable_java_net"
18599 # Whether java.net is built by default can depend on the target.
18600 if test -z "$enable_java_net"; then
18601 enable_java_net=${enable_java_net_default-yes}
18603 if test "$enable_java_net" = no; then
18605 cat >>confdefs.h <<\_ACEOF
18606 #define DISABLE_JAVA_NET 1
18607 _ACEOF
18611 # See if the user wants to configure without libffi. Some
18612 # architectures don't support it, and default values are set in
18613 # configure.host.
18615 # Check whether --with-libffi or --without-libffi was given.
18616 if test "${with_libffi+set}" = set; then
18617 withval="$with_libffi"
18619 else
18620 with_libffi=${with_libffi_default-yes}
18623 LIBFFI=
18624 LIBFFIINCS=
18625 if test "$with_libffi" != no; then
18627 cat >>confdefs.h <<\_ACEOF
18628 #define USE_LIBFFI 1
18629 _ACEOF
18631 LIBFFI=../libffi/libffi_convenience.la
18632 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18637 # See if the user wants to disable JVMPI support.
18638 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18639 if test "${enable_jvmpi+set}" = set; then
18640 enableval="$enable_jvmpi"
18644 if test "$enable_jvmpi" != no; then
18646 cat >>confdefs.h <<\_ACEOF
18647 #define ENABLE_JVMPI 1
18648 _ACEOF
18652 # If the target is an eCos system, use the appropriate eCos
18653 # I/O routines.
18654 # FIXME: this should not be a local option but a global target
18655 # system; at present there is no eCos target.
18656 TARGET_ECOS=${PROCESS-"no"}
18658 # Check whether --with-ecos or --without-ecos was given.
18659 if test "${with_ecos+set}" = set; then
18660 withval="$with_ecos"
18661 TARGET_ECOS="$with_ecos"
18665 case "$TARGET_ECOS" in
18666 no) case "$host" in
18667 *mingw*)
18668 PLATFORM=Win32
18669 PLATFORMNET=Win32
18670 PLATFORMH=win32.h
18672 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18673 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18674 LD_PROG=`$CC --print-prog-name=ld`
18675 LD_VERSION=`$LD_PROG --version`
18676 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18677 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18678 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18679 LD_OK="ok"
18680 else
18681 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18682 LD_OK="ok"
18685 if test "x$LD_OK" != x; then
18686 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18687 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18688 else
18689 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18690 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18691 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18692 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18694 cat >>confdefs.h <<\_ACEOF
18695 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18696 _ACEOF
18701 PLATFORM=Posix
18702 PLATFORMNET=Posix
18703 PLATFORMH=posix.h
18705 esac
18708 PLATFORM=Ecos
18709 PLATFORMNET=NoNet
18711 cat >>confdefs.h <<\_ACEOF
18712 #define ECOS 1
18713 _ACEOF
18715 PLATFORMH=posix.h
18717 esac
18719 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <stdint.h>
18730 _ACEOF
18731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18732 $EGREP "uint32_t" >/dev/null 2>&1; then
18734 cat >>confdefs.h <<\_ACEOF
18735 #define HAVE_INT32_DEFINED 1
18736 _ACEOF
18739 rm -f conftest*
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h. */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747 #include <inttypes.h>
18749 _ACEOF
18750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18751 $EGREP "uint32_t" >/dev/null 2>&1; then
18753 cat >>confdefs.h <<\_ACEOF
18754 #define HAVE_INT32_DEFINED 1
18755 _ACEOF
18758 rm -f conftest*
18760 cat >conftest.$ac_ext <<_ACEOF
18761 /* confdefs.h. */
18762 _ACEOF
18763 cat confdefs.h >>conftest.$ac_ext
18764 cat >>conftest.$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 #include <sys/types.h>
18768 _ACEOF
18769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18770 $EGREP "u_int32_t" >/dev/null 2>&1; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_BSD_INT32_DEFINED 1
18774 _ACEOF
18777 rm -f conftest*
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include <sys/config.h>
18787 _ACEOF
18788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18789 $EGREP "u_int32_t" >/dev/null 2>&1; then
18791 cat >>confdefs.h <<\_ACEOF
18792 #define HAVE_BSD_INT32_DEFINED 1
18793 _ACEOF
18796 rm -f conftest*
18801 if test "$PLATFORM" = Win32; then
18802 USING_WIN32_PLATFORM_TRUE=
18803 USING_WIN32_PLATFORM_FALSE='#'
18804 else
18805 USING_WIN32_PLATFORM_TRUE='#'
18806 USING_WIN32_PLATFORM_FALSE=
18811 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18812 USING_POSIX_PLATFORM_TRUE=
18813 USING_POSIX_PLATFORM_FALSE='#'
18814 else
18815 USING_POSIX_PLATFORM_TRUE='#'
18816 USING_POSIX_PLATFORM_FALSE=
18820 case "$host" in
18821 *-darwin*) DARWIN_CRT=true ;;
18822 *) DARWIN_CRT=false ;;
18823 esac
18826 if $DARWIN_CRT; then
18827 USING_DARWIN_CRT_TRUE=
18828 USING_DARWIN_CRT_FALSE='#'
18829 else
18830 USING_DARWIN_CRT_TRUE='#'
18831 USING_DARWIN_CRT_FALSE=
18835 # This may not be defined in a non-ANS conformant embedded system.
18836 # FIXME: Should these case a runtime exception in that case?
18837 cat >conftest.$ac_ext <<_ACEOF
18838 /* confdefs.h. */
18839 _ACEOF
18840 cat confdefs.h >>conftest.$ac_ext
18841 cat >>conftest.$ac_ext <<_ACEOF
18842 /* end confdefs.h. */
18843 #include <time.h>
18845 _ACEOF
18846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18847 $EGREP "localtime" >/dev/null 2>&1; then
18849 cat >>confdefs.h <<\_ACEOF
18850 #define HAVE_LOCALTIME 1
18851 _ACEOF
18854 rm -f conftest*
18857 # Create the subdirectory for natFile.cc, or the attempt
18858 # to create the link will fail.
18859 test -d java || mkdir java
18860 test -d java/io || mkdir java/io
18861 test -d gnu || mkdir gnu
18862 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18865 # Likewise for natConcreteProcess.cc.
18866 test -d java/lang || mkdir java/lang
18867 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18870 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18871 test -d java/net || mkdir java/net
18872 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18874 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18877 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18878 test -d gnu/java || mkdir gnu/java
18879 test -d gnu/java/net || mkdir gnu/java/net
18880 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
18882 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
18885 # Likewise for natVMPipe.cc and natVMSelector.cc.
18886 test -d gnu/java/nio || mkdir gnu/java/nio
18887 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
18889 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
18892 # Likewise for natFileChannelImpl.cc
18893 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
18894 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
18897 case "${host}" in
18898 *mingw*)
18899 SYSTEMSPEC="-lgdi32 -lws2_32"
18900 if test "${with_win32_nlsapi}" = "unicows"; then
18901 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
18905 SYSTEMSPEC=
18907 esac
18911 # Check whether --with-system-zlib or --without-system-zlib was given.
18912 if test "${with_system_zlib+set}" = set; then
18913 withval="$with_system_zlib"
18916 ZLIBSPEC=
18918 ZLIBTESTSPEC=
18921 echo "$as_me:$LINENO: checking for X" >&5
18922 echo $ECHO_N "checking for X... $ECHO_C" >&6
18925 # Check whether --with-x or --without-x was given.
18926 if test "${with_x+set}" = set; then
18927 withval="$with_x"
18930 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18931 if test "x$with_x" = xno; then
18932 # The user explicitly disabled X.
18933 have_x=disabled
18934 else
18935 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18936 # Both variables are already set.
18937 have_x=yes
18938 else
18939 if test "${ac_cv_have_x+set}" = set; then
18940 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 else
18942 # One or both of the vars are not set, and there is no cached value.
18943 ac_x_includes=no ac_x_libraries=no
18944 rm -fr conftest.dir
18945 if mkdir conftest.dir; then
18946 cd conftest.dir
18947 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18948 cat >Imakefile <<'_ACEOF'
18949 acfindx:
18950 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18951 _ACEOF
18952 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18953 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18954 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18955 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18956 for ac_extension in a so sl; do
18957 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18958 test -f $ac_im_libdir/libX11.$ac_extension; then
18959 ac_im_usrlibdir=$ac_im_libdir; break
18961 done
18962 # Screen out bogus values from the imake configuration. They are
18963 # bogus both because they are the default anyway, and because
18964 # using them would break gcc on systems where it needs fixed includes.
18965 case $ac_im_incroot in
18966 /usr/include) ;;
18967 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18968 esac
18969 case $ac_im_usrlibdir in
18970 /usr/lib | /lib) ;;
18971 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18972 esac
18974 cd ..
18975 rm -fr conftest.dir
18978 # Standard set of common directories for X headers.
18979 # Check X11 before X11Rn because it is often a symlink to the current release.
18980 ac_x_header_dirs='
18981 /usr/X11/include
18982 /usr/X11R6/include
18983 /usr/X11R5/include
18984 /usr/X11R4/include
18986 /usr/include/X11
18987 /usr/include/X11R6
18988 /usr/include/X11R5
18989 /usr/include/X11R4
18991 /usr/local/X11/include
18992 /usr/local/X11R6/include
18993 /usr/local/X11R5/include
18994 /usr/local/X11R4/include
18996 /usr/local/include/X11
18997 /usr/local/include/X11R6
18998 /usr/local/include/X11R5
18999 /usr/local/include/X11R4
19001 /usr/X386/include
19002 /usr/x386/include
19003 /usr/XFree86/include/X11
19005 /usr/include
19006 /usr/local/include
19007 /usr/unsupported/include
19008 /usr/athena/include
19009 /usr/local/x11r5/include
19010 /usr/lpp/Xamples/include
19012 /usr/openwin/include
19013 /usr/openwin/share/include'
19015 if test "$ac_x_includes" = no; then
19016 # Guess where to find include files, by looking for Xlib.h.
19017 # First, try using that file with no special directory specified.
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 #include <X11/Xlib.h>
19025 _ACEOF
19026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } >/dev/null; then
19034 if test -s conftest.err; then
19035 ac_cpp_err=$ac_c_preproc_warn_flag
19036 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19037 else
19038 ac_cpp_err=
19040 else
19041 ac_cpp_err=yes
19043 if test -z "$ac_cpp_err"; then
19044 # We can compile using X headers with no special include directory.
19045 ac_x_includes=
19046 else
19047 echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 for ac_dir in $ac_x_header_dirs; do
19051 if test -r "$ac_dir/X11/Xlib.h"; then
19052 ac_x_includes=$ac_dir
19053 break
19055 done
19057 rm -f conftest.err conftest.$ac_ext
19058 fi # $ac_x_includes = no
19060 if test "$ac_x_libraries" = no; then
19061 # Check for the libraries.
19062 # See if we find them without any special options.
19063 # Don't add to $LIBS permanently.
19064 ac_save_LIBS=$LIBS
19065 LIBS="-lX11 $LIBS"
19066 if test x$gcc_no_link = xyes; then
19067 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19068 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19069 { (exit 1); exit 1; }; }
19071 cat >conftest.$ac_ext <<_ACEOF
19072 /* confdefs.h. */
19073 _ACEOF
19074 cat confdefs.h >>conftest.$ac_ext
19075 cat >>conftest.$ac_ext <<_ACEOF
19076 /* end confdefs.h. */
19077 #include <X11/Xlib.h>
19079 main ()
19081 XrmInitialize ()
19083 return 0;
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19088 (eval $ac_link) 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } &&
19095 { ac_try='test -z "$ac_c_werror_flag"
19096 || test ! -s conftest.err'
19097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19098 (eval $ac_try) 2>&5
19099 ac_status=$?
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; } &&
19102 { ac_try='test -s conftest$ac_exeext'
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; }; then
19108 LIBS=$ac_save_LIBS
19109 # We can link X programs with no special library path.
19110 ac_x_libraries=
19111 else
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19115 LIBS=$ac_save_LIBS
19116 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19118 # Don't even attempt the hair of trying to link an X program!
19119 for ac_extension in a so sl; do
19120 if test -r $ac_dir/libXt.$ac_extension; then
19121 ac_x_libraries=$ac_dir
19122 break 2
19124 done
19125 done
19127 rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
19129 fi # $ac_x_libraries = no
19131 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19132 # Didn't find X anywhere. Cache the known absence of X.
19133 ac_cv_have_x="have_x=no"
19134 else
19135 # Record where we found X for the cache.
19136 ac_cv_have_x="have_x=yes \
19137 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19142 eval "$ac_cv_have_x"
19143 fi # $with_x != no
19145 if test "$have_x" != yes; then
19146 echo "$as_me:$LINENO: result: $have_x" >&5
19147 echo "${ECHO_T}$have_x" >&6
19148 no_x=yes
19149 else
19150 # If each of the values was on the command line, it overrides each guess.
19151 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19152 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19153 # Update the cache value to reflect the command line values.
19154 ac_cv_have_x="have_x=yes \
19155 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19156 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19157 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19160 if test "$no_x" = yes; then
19161 # Not all programs may use this symbol, but it does not hurt to define it.
19163 cat >>confdefs.h <<\_ACEOF
19164 #define X_DISPLAY_MISSING 1
19165 _ACEOF
19167 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19168 else
19169 if test -n "$x_includes"; then
19170 X_CFLAGS="$X_CFLAGS -I$x_includes"
19173 # It would also be nice to do this for all -L options, not just this one.
19174 if test -n "$x_libraries"; then
19175 X_LIBS="$X_LIBS -L$x_libraries"
19176 # For Solaris; some versions of Sun CC require a space after -R and
19177 # others require no space. Words are not sufficient . . . .
19178 case `(uname -sr) 2>/dev/null` in
19179 "SunOS 5"*)
19180 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19181 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19182 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19183 if test x$gcc_no_link = xyes; then
19184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19185 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19186 { (exit 1); exit 1; }; }
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h. */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19196 main ()
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext conftest$ac_exeext
19204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19205 (eval $ac_link) 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
19212 { ac_try='test -z "$ac_c_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest$ac_exeext'
19220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225 ac_R_nospace=yes
19226 else
19227 echo "$as_me: failed program was:" >&5
19228 sed 's/^/| /' conftest.$ac_ext >&5
19230 ac_R_nospace=no
19232 rm -f conftest.err conftest.$ac_objext \
19233 conftest$ac_exeext conftest.$ac_ext
19234 if test $ac_R_nospace = yes; then
19235 echo "$as_me:$LINENO: result: no" >&5
19236 echo "${ECHO_T}no" >&6
19237 X_LIBS="$X_LIBS -R$x_libraries"
19238 else
19239 LIBS="$ac_xsave_LIBS -R $x_libraries"
19240 if test x$gcc_no_link = xyes; then
19241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19243 { (exit 1); exit 1; }; }
19245 cat >conftest.$ac_ext <<_ACEOF
19246 /* confdefs.h. */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h. */
19253 main ()
19257 return 0;
19259 _ACEOF
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19262 (eval $ac_link) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } &&
19269 { ac_try='test -z "$ac_c_werror_flag"
19270 || test ! -s conftest.err'
19271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; } &&
19276 { ac_try='test -s conftest$ac_exeext'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 ac_R_space=yes
19283 else
19284 echo "$as_me: failed program was:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 ac_R_space=no
19289 rm -f conftest.err conftest.$ac_objext \
19290 conftest$ac_exeext conftest.$ac_ext
19291 if test $ac_R_space = yes; then
19292 echo "$as_me:$LINENO: result: yes" >&5
19293 echo "${ECHO_T}yes" >&6
19294 X_LIBS="$X_LIBS -R $x_libraries"
19295 else
19296 echo "$as_me:$LINENO: result: neither works" >&5
19297 echo "${ECHO_T}neither works" >&6
19300 LIBS=$ac_xsave_LIBS
19301 esac
19304 # Check for system-dependent libraries X programs must link with.
19305 # Do this before checking for the system-independent R6 libraries
19306 # (-lICE), since we may need -lsocket or whatever for X linking.
19308 if test "$ISC" = yes; then
19309 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19310 else
19311 # Martyn Johnson says this is needed for Ultrix, if the X
19312 # libraries were built with DECnet support. And Karl Berry says
19313 # the Alpha needs dnet_stub (dnet does not exist).
19314 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19315 if test x$gcc_no_link = xyes; then
19316 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19317 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19318 { (exit 1); exit 1; }; }
19320 cat >conftest.$ac_ext <<_ACEOF
19321 /* confdefs.h. */
19322 _ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any gcc2 internal prototype to avoid an error. */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 /* We use char because int might match the return type of a gcc2
19332 builtin and then its argument prototype would still apply. */
19333 char XOpenDisplay ();
19335 main ()
19337 XOpenDisplay ();
19339 return 0;
19341 _ACEOF
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19344 (eval $ac_link) 2>conftest.er1
19345 ac_status=$?
19346 grep -v '^ *+' conftest.er1 >conftest.err
19347 rm -f conftest.er1
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag"
19352 || test ! -s conftest.err'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; } &&
19358 { ac_try='test -s conftest$ac_exeext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19365 else
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19370 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19371 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-ldnet $LIBS"
19376 if test x$gcc_no_link = xyes; then
19377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19379 { (exit 1); exit 1; }; }
19381 cat >conftest.$ac_ext <<_ACEOF
19382 /* confdefs.h. */
19383 _ACEOF
19384 cat confdefs.h >>conftest.$ac_ext
19385 cat >>conftest.$ac_ext <<_ACEOF
19386 /* end confdefs.h. */
19388 /* Override any gcc2 internal prototype to avoid an error. */
19389 #ifdef __cplusplus
19390 extern "C"
19391 #endif
19392 /* We use char because int might match the return type of a gcc2
19393 builtin and then its argument prototype would still apply. */
19394 char dnet_ntoa ();
19396 main ()
19398 dnet_ntoa ();
19400 return 0;
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19405 (eval $ac_link) 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } &&
19412 { ac_try='test -z "$ac_c_werror_flag"
19413 || test ! -s conftest.err'
19414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415 (eval $ac_try) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; } &&
19419 { ac_try='test -s conftest$ac_exeext'
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 ac_cv_lib_dnet_dnet_ntoa=yes
19426 else
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19430 ac_cv_lib_dnet_dnet_ntoa=no
19432 rm -f conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19437 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19438 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19439 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19442 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19443 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19444 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19445 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447 else
19448 ac_check_lib_save_LIBS=$LIBS
19449 LIBS="-ldnet_stub $LIBS"
19450 if test x$gcc_no_link = xyes; then
19451 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19452 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19453 { (exit 1); exit 1; }; }
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19462 /* Override any gcc2 internal prototype to avoid an error. */
19463 #ifdef __cplusplus
19464 extern "C"
19465 #endif
19466 /* We use char because int might match the return type of a gcc2
19467 builtin and then its argument prototype would still apply. */
19468 char dnet_ntoa ();
19470 main ()
19472 dnet_ntoa ();
19474 return 0;
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19479 (eval $ac_link) 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag"
19487 || test ! -s conftest.err'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest$ac_exeext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19500 else
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19504 ac_cv_lib_dnet_stub_dnet_ntoa=no
19506 rm -f conftest.err conftest.$ac_objext \
19507 conftest$ac_exeext conftest.$ac_ext
19508 LIBS=$ac_check_lib_save_LIBS
19510 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19511 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19512 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19513 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19518 rm -f conftest.err conftest.$ac_objext \
19519 conftest$ac_exeext conftest.$ac_ext
19520 LIBS="$ac_xsave_LIBS"
19522 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19523 # to get the SysV transport functions.
19524 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19525 # needs -lnsl.
19526 # The nsl library prevents programs from opening the X display
19527 # on Irix 5.2, according to T.E. Dickey.
19528 # The functions gethostbyname, getservbyname, and inet_addr are
19529 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19530 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19531 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19532 if test "${ac_cv_func_gethostbyname+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 if test x$gcc_no_link = xyes; then
19536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19538 { (exit 1); exit 1; }; }
19540 cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h. */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h. */
19546 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19548 #define gethostbyname innocuous_gethostbyname
19550 /* System header to define __stub macros and hopefully few prototypes,
19551 which can conflict with char gethostbyname (); below.
19552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19553 <limits.h> exists even on freestanding compilers. */
19555 #ifdef __STDC__
19556 # include <limits.h>
19557 #else
19558 # include <assert.h>
19559 #endif
19561 #undef gethostbyname
19563 /* Override any gcc2 internal prototype to avoid an error. */
19564 #ifdef __cplusplus
19565 extern "C"
19567 #endif
19568 /* We use char because int might match the return type of a gcc2
19569 builtin and then its argument prototype would still apply. */
19570 char gethostbyname ();
19571 /* The GNU C library defines this for functions which it implements
19572 to always fail with ENOSYS. Some functions are actually named
19573 something starting with __ and the normal name is an alias. */
19574 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19575 choke me
19576 #else
19577 char (*f) () = gethostbyname;
19578 #endif
19579 #ifdef __cplusplus
19581 #endif
19584 main ()
19586 return f != gethostbyname;
19588 return 0;
19590 _ACEOF
19591 rm -f conftest.$ac_objext conftest$ac_exeext
19592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19593 (eval $ac_link) 2>conftest.er1
19594 ac_status=$?
19595 grep -v '^ *+' conftest.er1 >conftest.err
19596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } &&
19600 { ac_try='test -z "$ac_c_werror_flag"
19601 || test ! -s conftest.err'
19602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19603 (eval $ac_try) 2>&5
19604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest$ac_exeext'
19608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19609 (eval $ac_try) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); }; }; then
19613 ac_cv_func_gethostbyname=yes
19614 else
19615 echo "$as_me: failed program was:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 ac_cv_func_gethostbyname=no
19620 rm -f conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19623 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19624 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19626 if test $ac_cv_func_gethostbyname = no; then
19627 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19628 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19629 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19630 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 else
19632 ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-lnsl $LIBS"
19634 if test x$gcc_no_link = xyes; then
19635 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19636 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19637 { (exit 1); exit 1; }; }
19639 cat >conftest.$ac_ext <<_ACEOF
19640 /* confdefs.h. */
19641 _ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19646 /* Override any gcc2 internal prototype to avoid an error. */
19647 #ifdef __cplusplus
19648 extern "C"
19649 #endif
19650 /* We use char because int might match the return type of a gcc2
19651 builtin and then its argument prototype would still apply. */
19652 char gethostbyname ();
19654 main ()
19656 gethostbyname ();
19658 return 0;
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>conftest.er1
19664 ac_status=$?
19665 grep -v '^ *+' conftest.er1 >conftest.err
19666 rm -f conftest.er1
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19674 ac_status=$?
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19680 ac_status=$?
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_lib_nsl_gethostbyname=yes
19684 else
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_lib_nsl_gethostbyname=no
19690 rm -f conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19692 LIBS=$ac_check_lib_save_LIBS
19694 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19695 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19696 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19697 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19700 if test $ac_cv_lib_nsl_gethostbyname = no; then
19701 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19702 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19703 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lbsd $LIBS"
19708 if test x$gcc_no_link = xyes; then
19709 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19710 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19711 { (exit 1); exit 1; }; }
19713 cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h. */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h. */
19720 /* Override any gcc2 internal prototype to avoid an error. */
19721 #ifdef __cplusplus
19722 extern "C"
19723 #endif
19724 /* We use char because int might match the return type of a gcc2
19725 builtin and then its argument prototype would still apply. */
19726 char gethostbyname ();
19728 main ()
19730 gethostbyname ();
19732 return 0;
19734 _ACEOF
19735 rm -f conftest.$ac_objext conftest$ac_exeext
19736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19737 (eval $ac_link) 2>conftest.er1
19738 ac_status=$?
19739 grep -v '^ *+' conftest.er1 >conftest.err
19740 rm -f conftest.er1
19741 cat conftest.err >&5
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); } &&
19744 { ac_try='test -z "$ac_c_werror_flag"
19745 || test ! -s conftest.err'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19748 ac_status=$?
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; } &&
19751 { ac_try='test -s conftest$ac_exeext'
19752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753 (eval $ac_try) 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_lib_bsd_gethostbyname=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_lib_bsd_gethostbyname=no
19764 rm -f conftest.err conftest.$ac_objext \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19769 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19770 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19771 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19777 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19778 # socket/setsockopt and other routines are undefined under SCO ODT
19779 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19780 # on later versions), says Simon Leinen: it contains gethostby*
19781 # variants that don't use the name server (or something). -lsocket
19782 # must be given before -lnsl if both are needed. We assume that
19783 # if connect needs -lnsl, so does gethostbyname.
19784 echo "$as_me:$LINENO: checking for connect" >&5
19785 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19786 if test "${ac_cv_func_connect+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 if test x$gcc_no_link = xyes; then
19790 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19791 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19792 { (exit 1); exit 1; }; }
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19802 #define connect innocuous_connect
19804 /* System header to define __stub macros and hopefully few prototypes,
19805 which can conflict with char connect (); below.
19806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19807 <limits.h> exists even on freestanding compilers. */
19809 #ifdef __STDC__
19810 # include <limits.h>
19811 #else
19812 # include <assert.h>
19813 #endif
19815 #undef connect
19817 /* Override any gcc2 internal prototype to avoid an error. */
19818 #ifdef __cplusplus
19819 extern "C"
19821 #endif
19822 /* We use char because int might match the return type of a gcc2
19823 builtin and then its argument prototype would still apply. */
19824 char connect ();
19825 /* The GNU C library defines this for functions which it implements
19826 to always fail with ENOSYS. Some functions are actually named
19827 something starting with __ and the normal name is an alias. */
19828 #if defined (__stub_connect) || defined (__stub___connect)
19829 choke me
19830 #else
19831 char (*f) () = connect;
19832 #endif
19833 #ifdef __cplusplus
19835 #endif
19838 main ()
19840 return f != connect;
19842 return 0;
19844 _ACEOF
19845 rm -f conftest.$ac_objext conftest$ac_exeext
19846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19847 (eval $ac_link) 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } &&
19854 { ac_try='test -z "$ac_c_werror_flag"
19855 || test ! -s conftest.err'
19856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19857 (eval $ac_try) 2>&5
19858 ac_status=$?
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; } &&
19861 { ac_try='test -s conftest$ac_exeext'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19864 ac_status=$?
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_func_connect=yes
19868 else
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_func_connect=no
19874 rm -f conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
19877 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19878 echo "${ECHO_T}$ac_cv_func_connect" >&6
19880 if test $ac_cv_func_connect = no; then
19881 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19882 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19883 if test "${ac_cv_lib_socket_connect+set}" = set; then
19884 echo $ECHO_N "(cached) $ECHO_C" >&6
19885 else
19886 ac_check_lib_save_LIBS=$LIBS
19887 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19888 if test x$gcc_no_link = xyes; then
19889 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19890 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19891 { (exit 1); exit 1; }; }
19893 cat >conftest.$ac_ext <<_ACEOF
19894 /* confdefs.h. */
19895 _ACEOF
19896 cat confdefs.h >>conftest.$ac_ext
19897 cat >>conftest.$ac_ext <<_ACEOF
19898 /* end confdefs.h. */
19900 /* Override any gcc2 internal prototype to avoid an error. */
19901 #ifdef __cplusplus
19902 extern "C"
19903 #endif
19904 /* We use char because int might match the return type of a gcc2
19905 builtin and then its argument prototype would still apply. */
19906 char connect ();
19908 main ()
19910 connect ();
19912 return 0;
19914 _ACEOF
19915 rm -f conftest.$ac_objext conftest$ac_exeext
19916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19917 (eval $ac_link) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
19924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
19932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_lib_socket_connect=yes
19938 else
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19942 ac_cv_lib_socket_connect=no
19944 rm -f conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19948 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19949 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19950 if test $ac_cv_lib_socket_connect = yes; then
19951 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19956 # Guillermo Gomez says -lposix is necessary on A/UX.
19957 echo "$as_me:$LINENO: checking for remove" >&5
19958 echo $ECHO_N "checking for remove... $ECHO_C" >&6
19959 if test "${ac_cv_func_remove+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 else
19962 if test x$gcc_no_link = xyes; then
19963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19965 { (exit 1); exit 1; }; }
19967 cat >conftest.$ac_ext <<_ACEOF
19968 /* confdefs.h. */
19969 _ACEOF
19970 cat confdefs.h >>conftest.$ac_ext
19971 cat >>conftest.$ac_ext <<_ACEOF
19972 /* end confdefs.h. */
19973 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19975 #define remove innocuous_remove
19977 /* System header to define __stub macros and hopefully few prototypes,
19978 which can conflict with char remove (); below.
19979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19980 <limits.h> exists even on freestanding compilers. */
19982 #ifdef __STDC__
19983 # include <limits.h>
19984 #else
19985 # include <assert.h>
19986 #endif
19988 #undef remove
19990 /* Override any gcc2 internal prototype to avoid an error. */
19991 #ifdef __cplusplus
19992 extern "C"
19994 #endif
19995 /* We use char because int might match the return type of a gcc2
19996 builtin and then its argument prototype would still apply. */
19997 char remove ();
19998 /* The GNU C library defines this for functions which it implements
19999 to always fail with ENOSYS. Some functions are actually named
20000 something starting with __ and the normal name is an alias. */
20001 #if defined (__stub_remove) || defined (__stub___remove)
20002 choke me
20003 #else
20004 char (*f) () = remove;
20005 #endif
20006 #ifdef __cplusplus
20008 #endif
20011 main ()
20013 return f != remove;
20015 return 0;
20017 _ACEOF
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20020 (eval $ac_link) 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest$ac_exeext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_func_remove=yes
20041 else
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 ac_cv_func_remove=no
20047 rm -f conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20050 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20051 echo "${ECHO_T}$ac_cv_func_remove" >&6
20053 if test $ac_cv_func_remove = no; then
20054 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20055 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20056 if test "${ac_cv_lib_posix_remove+set}" = set; then
20057 echo $ECHO_N "(cached) $ECHO_C" >&6
20058 else
20059 ac_check_lib_save_LIBS=$LIBS
20060 LIBS="-lposix $LIBS"
20061 if test x$gcc_no_link = xyes; then
20062 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20063 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20064 { (exit 1); exit 1; }; }
20066 cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h. */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any gcc2 internal prototype to avoid an error. */
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 /* We use char because int might match the return type of a gcc2
20078 builtin and then its argument prototype would still apply. */
20079 char remove ();
20081 main ()
20083 remove ();
20085 return 0;
20087 _ACEOF
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20090 (eval $ac_link) 2>conftest.er1
20091 ac_status=$?
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
20097 { ac_try='test -z "$ac_c_werror_flag"
20098 || test ! -s conftest.err'
20099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20100 (eval $ac_try) 2>&5
20101 ac_status=$?
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; } &&
20104 { ac_try='test -s conftest$ac_exeext'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; }; then
20110 ac_cv_lib_posix_remove=yes
20111 else
20112 echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20115 ac_cv_lib_posix_remove=no
20117 rm -f conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119 LIBS=$ac_check_lib_save_LIBS
20121 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20122 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20123 if test $ac_cv_lib_posix_remove = yes; then
20124 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20129 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20130 echo "$as_me:$LINENO: checking for shmat" >&5
20131 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20132 if test "${ac_cv_func_shmat+set}" = set; then
20133 echo $ECHO_N "(cached) $ECHO_C" >&6
20134 else
20135 if test x$gcc_no_link = xyes; then
20136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20138 { (exit 1); exit 1; }; }
20140 cat >conftest.$ac_ext <<_ACEOF
20141 /* confdefs.h. */
20142 _ACEOF
20143 cat confdefs.h >>conftest.$ac_ext
20144 cat >>conftest.$ac_ext <<_ACEOF
20145 /* end confdefs.h. */
20146 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20148 #define shmat innocuous_shmat
20150 /* System header to define __stub macros and hopefully few prototypes,
20151 which can conflict with char shmat (); below.
20152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20153 <limits.h> exists even on freestanding compilers. */
20155 #ifdef __STDC__
20156 # include <limits.h>
20157 #else
20158 # include <assert.h>
20159 #endif
20161 #undef shmat
20163 /* Override any gcc2 internal prototype to avoid an error. */
20164 #ifdef __cplusplus
20165 extern "C"
20167 #endif
20168 /* We use char because int might match the return type of a gcc2
20169 builtin and then its argument prototype would still apply. */
20170 char shmat ();
20171 /* The GNU C library defines this for functions which it implements
20172 to always fail with ENOSYS. Some functions are actually named
20173 something starting with __ and the normal name is an alias. */
20174 #if defined (__stub_shmat) || defined (__stub___shmat)
20175 choke me
20176 #else
20177 char (*f) () = shmat;
20178 #endif
20179 #ifdef __cplusplus
20181 #endif
20184 main ()
20186 return f != shmat;
20188 return 0;
20190 _ACEOF
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20193 (eval $ac_link) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
20200 { ac_try='test -z "$ac_c_werror_flag"
20201 || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest$ac_exeext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20213 ac_cv_func_shmat=yes
20214 else
20215 echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20218 ac_cv_func_shmat=no
20220 rm -f conftest.err conftest.$ac_objext \
20221 conftest$ac_exeext conftest.$ac_ext
20223 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20224 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20226 if test $ac_cv_func_shmat = no; then
20227 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20228 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20229 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lipc $LIBS"
20234 if test x$gcc_no_link = xyes; then
20235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20237 { (exit 1); exit 1; }; }
20239 cat >conftest.$ac_ext <<_ACEOF
20240 /* confdefs.h. */
20241 _ACEOF
20242 cat confdefs.h >>conftest.$ac_ext
20243 cat >>conftest.$ac_ext <<_ACEOF
20244 /* end confdefs.h. */
20246 /* Override any gcc2 internal prototype to avoid an error. */
20247 #ifdef __cplusplus
20248 extern "C"
20249 #endif
20250 /* We use char because int might match the return type of a gcc2
20251 builtin and then its argument prototype would still apply. */
20252 char shmat ();
20254 main ()
20256 shmat ();
20258 return 0;
20260 _ACEOF
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20274 ac_status=$?
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_lib_ipc_shmat=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_lib_ipc_shmat=no
20290 rm -f conftest.err conftest.$ac_objext \
20291 conftest$ac_exeext conftest.$ac_ext
20292 LIBS=$ac_check_lib_save_LIBS
20294 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20295 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20296 if test $ac_cv_lib_ipc_shmat = yes; then
20297 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20303 # Check for libraries that X11R6 Xt/Xaw programs need.
20304 ac_save_LDFLAGS=$LDFLAGS
20305 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20306 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20307 # check for ICE first), but we must link in the order -lSM -lICE or
20308 # we get undefined symbols. So assume we have SM if we have ICE.
20309 # These have to be linked with before -lX11, unlike the other
20310 # libraries we check for below, so use a different variable.
20311 # John Interrante, Karl Berry
20312 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20313 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20314 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316 else
20317 ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20319 if test x$gcc_no_link = xyes; then
20320 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20321 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20322 { (exit 1); exit 1; }; }
20324 cat >conftest.$ac_ext <<_ACEOF
20325 /* confdefs.h. */
20326 _ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20331 /* Override any gcc2 internal prototype to avoid an error. */
20332 #ifdef __cplusplus
20333 extern "C"
20334 #endif
20335 /* We use char because int might match the return type of a gcc2
20336 builtin and then its argument prototype would still apply. */
20337 char IceConnectionNumber ();
20339 main ()
20341 IceConnectionNumber ();
20343 return 0;
20345 _ACEOF
20346 rm -f conftest.$ac_objext conftest$ac_exeext
20347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20348 (eval $ac_link) 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
20355 { ac_try='test -z "$ac_c_werror_flag"
20356 || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest$ac_exeext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_cv_lib_ICE_IceConnectionNumber=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_lib_ICE_IceConnectionNumber=no
20375 rm -f conftest.err conftest.$ac_objext \
20376 conftest$ac_exeext conftest.$ac_ext
20377 LIBS=$ac_check_lib_save_LIBS
20379 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20380 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20381 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20382 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20385 LDFLAGS=$ac_save_LDFLAGS
20390 # FIXME: this should be _libs on some hosts.
20391 libsubdir=.libs
20393 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20395 LIBSTDCXXSPEC=
20396 # extra LD Flags which are required for targets
20397 case "${host}" in
20398 *-*-darwin[0-7].*)
20399 # For now we have to disable it on darwin[8-9] because it slows down
20400 # the linking phase. A possible bug in ld?
20401 # on Darwin -single_module speeds up loading of the dynamic libraries.
20402 extra_ldflags_libjava=-Wl,-single_module
20404 *-*-darwin[9]*)
20405 extra_gij_ldflags=-Wl,-allow_stack_execute
20407 arm*linux*eabi)
20408 # Some of the ARM unwinder code is actually in libstdc++. We
20409 # could in principle replicate it in libgcj, but it's better to
20410 # have a dependency on libstdc++.
20411 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20412 LIBSTDCXXSPEC=-lstdc++
20413 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20415 esac
20423 # Allow the GC to be disabled. Can be useful when debugging.
20424 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20425 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20426 # Check whether --enable-java-gc or --disable-java-gc was given.
20427 if test "${enable_java_gc+set}" = set; then
20428 enableval="$enable_java_gc"
20429 GC=$enableval
20430 else
20431 GC=boehm
20433 GCLIBS=
20434 GCINCS=
20435 GCDEPS=
20436 GCSPEC=
20437 JC1GCSPEC=
20438 GCTESTSPEC=
20439 case "$GC" in
20440 boehm)
20441 echo "$as_me:$LINENO: result: boehm" >&5
20442 echo "${ECHO_T}boehm" >&6
20443 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20444 JC1GCSPEC='-fuse-boehm-gc'
20445 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20446 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20447 GCOBJS=boehm.lo
20448 GCHDR=boehm-gc.h
20449 # The POSIX thread support needs to know this.
20451 cat >>confdefs.h <<\_ACEOF
20452 #define HAVE_BOEHM_GC 1
20453 _ACEOF
20457 echo "$as_me:$LINENO: result: none" >&5
20458 echo "${ECHO_T}none" >&6
20459 GCHDR=no-gc.h
20462 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20463 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20464 { (exit 1); exit 1; }; }
20466 esac
20473 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20477 if test "$GC" = boehm; then
20478 USING_BOEHMGC_TRUE=
20479 USING_BOEHMGC_FALSE='#'
20480 else
20481 USING_BOEHMGC_TRUE='#'
20482 USING_BOEHMGC_FALSE=
20487 if test "$GC" = no; then
20488 USING_NOGC_TRUE=
20489 USING_NOGC_FALSE='#'
20490 else
20491 USING_NOGC_TRUE='#'
20492 USING_NOGC_FALSE=
20497 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20498 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20499 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20500 echo "$as_me:$LINENO: result: $THREADS" >&5
20501 echo "${ECHO_T}$THREADS" >&6
20503 case "$THREADS" in
20504 no | none | single)
20505 THREADS=none
20507 posix | posix95 | pthreads)
20508 THREADS=posix
20509 case "$host" in
20510 *-*-linux*)
20512 cat >>confdefs.h <<\_ACEOF
20513 #define LINUX_THREADS 1
20514 _ACEOF
20517 esac
20519 win32)
20521 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20522 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20523 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20524 { (exit 1); exit 1; }; }
20527 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20528 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20529 { (exit 1); exit 1; }; }
20531 esac
20533 THREADCXXFLAGS=
20534 THREADLDFLAGS=
20535 THREADLIBS=
20536 THREADINCS=
20537 THREADDEPS=
20538 THREADH=
20539 THREADSPEC=
20540 THREADSTARTFILESPEC=
20541 case "$THREADS" in
20542 posix)
20543 case "$host" in
20544 *-*-cygwin*)
20545 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20547 *-*-freebsd[1234]*)
20548 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20549 # merely adds pthread_* functions) but it does have a -pthread switch
20550 # which is required at link-time to select -lc_r *instead* of -lc.
20551 THREADLDFLAGS=-pthread
20552 # Don't set THREADSPEC here as might be expected since -pthread is
20553 # not processed when found within a spec file, it must come from
20554 # the command line. For now, the user must provide the -pthread
20555 # switch to link code compiled with gcj. In future, consider adding
20556 # support for weak references to pthread_* functions ala gthr.h API.
20557 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20559 *-*-freebsd*)
20560 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20561 # systems which support threads and -lpthread.
20562 THREADLDFLAGS=-pthread
20563 THREADSPEC=-lpthread
20565 alpha*-dec-osf* | hppa*-hp-hpux*)
20566 THREADCXXFLAGS=-pthread
20567 # boehm-gc needs some functions from librt, so link that too.
20568 THREADLIBS='-lpthread -lrt'
20569 THREADSPEC='-lpthread -lrt'
20572 THREADLIBS=-lpthread
20573 THREADSPEC=-lpthread
20575 esac
20576 THREADH=posix-threads.h
20577 # MIT pthreads doesn't seem to have the mutexattr functions.
20578 # But for now we don't check for it. We just assume you aren't
20579 # using MIT pthreads.
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20583 _ACEOF
20586 # If we're using the Boehm GC, then we happen to know that it
20587 # defines _REENTRANT, so we don't bother. Eww.
20588 if test "$GC" != boehm; then
20590 cat >>confdefs.h <<\_ACEOF
20591 #define _REENTRANT 1
20592 _ACEOF
20596 cat >>confdefs.h <<\_ACEOF
20597 #define _POSIX_PTHREAD_SEMANTICS 1
20598 _ACEOF
20602 win32)
20603 THREADH=win32-threads.h
20604 THREADCXXFLAGS=-mthreads
20605 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20606 # But we do not want the executables created to be dependent on
20607 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20608 # exception handling contexts. The following kludge achieves this effect
20609 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20610 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20611 # A workaround is to explicitly use -mthreads while linking Java programs.
20612 # See PR libgcj/28263.
20614 # FIXME: In Java we are able to detect thread death at the end of
20615 # Thread.run() so we should be able to clean up the exception handling
20616 # contexts ourselves.
20617 THREADSTARTFILESPEC='crtmt%O%s'
20620 none)
20621 THREADH=no-threads.h
20623 esac
20624 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20635 if test "$THREADS" = posix; then
20636 USING_POSIX_THREADS_TRUE=
20637 USING_POSIX_THREADS_FALSE='#'
20638 else
20639 USING_POSIX_THREADS_TRUE='#'
20640 USING_POSIX_THREADS_FALSE=
20645 if test "$THREADS" = win32; then
20646 USING_WIN32_THREADS_TRUE=
20647 USING_WIN32_THREADS_FALSE='#'
20648 else
20649 USING_WIN32_THREADS_TRUE='#'
20650 USING_WIN32_THREADS_FALSE=
20655 if test "$THREADS" = none; then
20656 USING_NO_THREADS_TRUE=
20657 USING_NO_THREADS_FALSE='#'
20658 else
20659 USING_NO_THREADS_TRUE='#'
20660 USING_NO_THREADS_FALSE=
20665 if test "$use_libgcj_bc" = yes; then
20666 USE_LIBGCJ_BC_TRUE=
20667 USE_LIBGCJ_BC_FALSE='#'
20668 else
20669 USE_LIBGCJ_BC_TRUE='#'
20670 USE_LIBGCJ_BC_FALSE=
20674 if test -d sysdep; then true; else mkdir sysdep; fi
20675 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20677 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20679 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20682 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20683 if test "$use_libgcj_bc" = yes; then
20684 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20688 HASH_SYNC_SPEC=
20689 # Hash synchronization is only useful with posix threads right now.
20690 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20691 HASH_SYNC_SPEC=-fhash-synchronization
20693 cat >>confdefs.h <<\_ACEOF
20694 #define JV_HASH_SYNCHRONIZATION 1
20695 _ACEOF
20702 if test "$GCC" = yes; then
20703 USING_GCC_TRUE=
20704 USING_GCC_FALSE='#'
20705 else
20706 USING_GCC_TRUE='#'
20707 USING_GCC_FALSE=
20711 # We're in the tree with gcc, and need to include some of its headers.
20712 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20714 if test "x${with_newlib}" = "xyes"; then
20715 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20716 # may not work correctly, because the compiler may not be able to
20717 # link executables.
20719 # We assume newlib. This lets us hard-code the functions we know
20720 # we'll have.
20722 cat >>confdefs.h <<\_ACEOF
20723 #define HAVE_MEMMOVE 1
20724 _ACEOF
20727 cat >>confdefs.h <<\_ACEOF
20728 #define HAVE_MEMCPY 1
20729 _ACEOF
20732 cat >>confdefs.h <<\_ACEOF
20733 #define HAVE_TIME 1
20734 _ACEOF
20737 cat >>confdefs.h <<\_ACEOF
20738 #define HAVE_GMTIME_R 1
20739 _ACEOF
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_LOCALTIME_R 1
20744 _ACEOF
20747 cat >>confdefs.h <<\_ACEOF
20748 #define HAVE_USLEEP_DECL 1
20749 _ACEOF
20751 # This is only for POSIX threads.
20753 cat >>confdefs.h <<\_ACEOF
20754 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20755 _ACEOF
20758 # Assume we do not have getuid and friends.
20760 cat >>confdefs.h <<\_ACEOF
20761 #define NO_GETUID 1
20762 _ACEOF
20764 PLATFORMNET=NoNet
20765 else
20797 for ac_func in strerror_r select fstat open fsync sleep opendir \
20798 localtime_r readdir_r getpwuid_r getcwd \
20799 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20800 nl_langinfo setlocale \
20801 inet_pton uname inet_ntoa \
20802 getrlimit sigaction ftruncate mmap \
20803 getifaddrs
20805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20806 echo "$as_me:$LINENO: checking for $ac_func" >&5
20807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20808 if eval "test \"\${$as_ac_var+set}\" = set"; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 else
20811 if test x$gcc_no_link = xyes; then
20812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20814 { (exit 1); exit 1; }; }
20816 cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h. */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20824 #define $ac_func innocuous_$ac_func
20826 /* System header to define __stub macros and hopefully few prototypes,
20827 which can conflict with char $ac_func (); below.
20828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20829 <limits.h> exists even on freestanding compilers. */
20831 #ifdef __STDC__
20832 # include <limits.h>
20833 #else
20834 # include <assert.h>
20835 #endif
20837 #undef $ac_func
20839 /* Override any gcc2 internal prototype to avoid an error. */
20840 #ifdef __cplusplus
20841 extern "C"
20843 #endif
20844 /* We use char because int might match the return type of a gcc2
20845 builtin and then its argument prototype would still apply. */
20846 char $ac_func ();
20847 /* The GNU C library defines this for functions which it implements
20848 to always fail with ENOSYS. Some functions are actually named
20849 something starting with __ and the normal name is an alias. */
20850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20851 choke me
20852 #else
20853 char (*f) () = $ac_func;
20854 #endif
20855 #ifdef __cplusplus
20857 #endif
20860 main ()
20862 return f != $ac_func;
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_c_werror_flag"
20877 || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest$ac_exeext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 eval "$as_ac_var=yes"
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 eval "$as_ac_var=no"
20896 rm -f conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20900 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20901 if test `eval echo '${'$as_ac_var'}'` = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20904 _ACEOF
20907 done
20911 for ac_func in inet_aton inet_addr
20913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20914 echo "$as_me:$LINENO: checking for $ac_func" >&5
20915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20916 if eval "test \"\${$as_ac_var+set}\" = set"; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 if test x$gcc_no_link = xyes; then
20920 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20921 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20922 { (exit 1); exit 1; }; }
20924 cat >conftest.$ac_ext <<_ACEOF
20925 /* confdefs.h. */
20926 _ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20932 #define $ac_func innocuous_$ac_func
20934 /* System header to define __stub macros and hopefully few prototypes,
20935 which can conflict with char $ac_func (); below.
20936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20937 <limits.h> exists even on freestanding compilers. */
20939 #ifdef __STDC__
20940 # include <limits.h>
20941 #else
20942 # include <assert.h>
20943 #endif
20945 #undef $ac_func
20947 /* Override any gcc2 internal prototype to avoid an error. */
20948 #ifdef __cplusplus
20949 extern "C"
20951 #endif
20952 /* We use char because int might match the return type of a gcc2
20953 builtin and then its argument prototype would still apply. */
20954 char $ac_func ();
20955 /* The GNU C library defines this for functions which it implements
20956 to always fail with ENOSYS. Some functions are actually named
20957 something starting with __ and the normal name is an alias. */
20958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20959 choke me
20960 #else
20961 char (*f) () = $ac_func;
20962 #endif
20963 #ifdef __cplusplus
20965 #endif
20968 main ()
20970 return f != $ac_func;
20972 return 0;
20974 _ACEOF
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20977 (eval $ac_link) 2>conftest.er1
20978 ac_status=$?
20979 grep -v '^ *+' conftest.er1 >conftest.err
20980 rm -f conftest.er1
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } &&
20984 { ac_try='test -z "$ac_c_werror_flag"
20985 || test ! -s conftest.err'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20988 ac_status=$?
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; } &&
20991 { ac_try='test -s conftest$ac_exeext'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; }; then
20997 eval "$as_ac_var=yes"
20998 else
20999 echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21002 eval "$as_ac_var=no"
21004 rm -f conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21009 if test `eval echo '${'$as_ac_var'}'` = yes; then
21010 cat >>confdefs.h <<_ACEOF
21011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21012 _ACEOF
21013 break
21015 done
21020 for ac_header in unistd.h dlfcn.h sys/resource.h
21022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21024 echo "$as_me:$LINENO: checking for $ac_header" >&5
21025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21031 else
21032 # Is the header compilable?
21033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 $ac_includes_default
21042 #include <$ac_header>
21043 _ACEOF
21044 rm -f conftest.$ac_objext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21046 (eval $ac_compile) 2>conftest.er1
21047 ac_status=$?
21048 grep -v '^ *+' conftest.er1 >conftest.err
21049 rm -f conftest.er1
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } &&
21053 { ac_try='test -z "$ac_c_werror_flag"
21054 || test ! -s conftest.err'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; } &&
21060 { ac_try='test -s conftest.$ac_objext'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; }; then
21066 ac_header_compiler=yes
21067 else
21068 echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_header_compiler=no
21073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21075 echo "${ECHO_T}$ac_header_compiler" >&6
21077 # Is the header present?
21078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h. */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 #include <$ac_header>
21087 _ACEOF
21088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21090 ac_status=$?
21091 grep -v '^ *+' conftest.er1 >conftest.err
21092 rm -f conftest.er1
21093 cat conftest.err >&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); } >/dev/null; then
21096 if test -s conftest.err; then
21097 ac_cpp_err=$ac_c_preproc_warn_flag
21098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21099 else
21100 ac_cpp_err=
21102 else
21103 ac_cpp_err=yes
21105 if test -z "$ac_cpp_err"; then
21106 ac_header_preproc=yes
21107 else
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21111 ac_header_preproc=no
21113 rm -f conftest.err conftest.$ac_ext
21114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21115 echo "${ECHO_T}$ac_header_preproc" >&6
21117 # So? What about this header?
21118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21119 yes:no: )
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21124 ac_header_preproc=yes
21126 no:yes:* )
21127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21140 cat <<\_ASBOX
21141 ## ---------------------------------- ##
21142 ## Report this to the libjava lists. ##
21143 ## ---------------------------------- ##
21144 _ASBOX
21146 sed "s/^/$as_me: WARNING: /" >&2
21148 esac
21149 echo "$as_me:$LINENO: checking for $ac_header" >&5
21150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21153 else
21154 eval "$as_ac_Header=\$ac_header_preproc"
21156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21161 cat >>confdefs.h <<_ACEOF
21162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21163 _ACEOF
21167 done
21169 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21170 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21171 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21172 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21174 else
21175 ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-ldl $LIBS"
21177 if test x$gcc_no_link = xyes; then
21178 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21179 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21180 { (exit 1); exit 1; }; }
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21189 /* Override any gcc2 internal prototype to avoid an error. */
21190 #ifdef __cplusplus
21191 extern "C"
21192 #endif
21193 /* We use char because int might match the return type of a gcc2
21194 builtin and then its argument prototype would still apply. */
21195 char dladdr ();
21197 main ()
21199 dladdr ();
21201 return 0;
21203 _ACEOF
21204 rm -f conftest.$ac_objext conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206 (eval $ac_link) 2>conftest.er1
21207 ac_status=$?
21208 grep -v '^ *+' conftest.er1 >conftest.err
21209 rm -f conftest.er1
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); } &&
21213 { ac_try='test -z "$ac_c_werror_flag"
21214 || test ! -s conftest.err'
21215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; } &&
21220 { ac_try='test -s conftest$ac_exeext'
21221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222 (eval $ac_try) 2>&5
21223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 ac_cv_lib_dl_dladdr=yes
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_cv_lib_dl_dladdr=no
21233 rm -f conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21235 LIBS=$ac_check_lib_save_LIBS
21237 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21238 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21239 if test $ac_cv_lib_dl_dladdr = yes; then
21242 cat >>confdefs.h <<\_ACEOF
21243 #define HAVE_DLADDR 1
21244 _ACEOF
21246 else
21248 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21249 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21250 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 else
21253 ac_check_lib_save_LIBS=$LIBS
21254 LIBS="-ldld $LIBS"
21255 if test x$gcc_no_link = xyes; then
21256 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21257 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21258 { (exit 1); exit 1; }; }
21260 cat >conftest.$ac_ext <<_ACEOF
21261 /* confdefs.h. */
21262 _ACEOF
21263 cat confdefs.h >>conftest.$ac_ext
21264 cat >>conftest.$ac_ext <<_ACEOF
21265 /* end confdefs.h. */
21267 /* Override any gcc2 internal prototype to avoid an error. */
21268 #ifdef __cplusplus
21269 extern "C"
21270 #endif
21271 /* We use char because int might match the return type of a gcc2
21272 builtin and then its argument prototype would still apply. */
21273 char dladdr ();
21275 main ()
21277 dladdr ();
21279 return 0;
21281 _ACEOF
21282 rm -f conftest.$ac_objext conftest$ac_exeext
21283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21284 (eval $ac_link) 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } &&
21291 { ac_try='test -z "$ac_c_werror_flag"
21292 || test ! -s conftest.err'
21293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21294 (eval $ac_try) 2>&5
21295 ac_status=$?
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); }; } &&
21298 { ac_try='test -s conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21301 ac_status=$?
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_lib_dld_dladdr=yes
21305 else
21306 echo "$as_me: failed program was:" >&5
21307 sed 's/^/| /' conftest.$ac_ext >&5
21309 ac_cv_lib_dld_dladdr=no
21311 rm -f conftest.err conftest.$ac_objext \
21312 conftest$ac_exeext conftest.$ac_ext
21313 LIBS=$ac_check_lib_save_LIBS
21315 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21316 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21317 if test $ac_cv_lib_dld_dladdr = yes; then
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_DLADDR 1
21322 _ACEOF
21329 if test x"$cross_compiling" = x"no"; then
21330 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21331 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21332 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 else
21335 test "$cross_compiling" = yes &&
21336 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21337 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21338 { (exit 1); exit 1; }; }
21339 if test -r "/proc/self/exe"; then
21340 ac_cv_file__proc_self_exe=yes
21341 else
21342 ac_cv_file__proc_self_exe=no
21345 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21346 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21347 if test $ac_cv_file__proc_self_exe = yes; then
21349 cat >>confdefs.h <<_ACEOF
21350 #define HAVE__PROC_SELF_EXE 1
21351 _ACEOF
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_PROC_SELF_EXE 1
21357 _ACEOF
21361 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21362 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21363 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 else
21366 test "$cross_compiling" = yes &&
21367 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21368 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21369 { (exit 1); exit 1; }; }
21370 if test -r "/proc/self/maps"; then
21371 ac_cv_file__proc_self_maps=yes
21372 else
21373 ac_cv_file__proc_self_maps=no
21376 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21377 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21378 if test $ac_cv_file__proc_self_maps = yes; then
21380 cat >>confdefs.h <<_ACEOF
21381 #define HAVE__PROC_SELF_MAPS 1
21382 _ACEOF
21386 cat >>confdefs.h <<\_ACEOF
21387 #define HAVE_PROC_SELF_MAPS 1
21388 _ACEOF
21392 else
21393 case $host in
21394 *-linux*)
21396 cat >>confdefs.h <<\_ACEOF
21397 #define HAVE_PROC_SELF_EXE 1
21398 _ACEOF
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_PROC_SELF_MAPS 1
21403 _ACEOF
21406 esac
21410 if test "X$prefix" = "XNONE"; then
21411 acl_final_prefix="$ac_default_prefix"
21412 else
21413 acl_final_prefix="$prefix"
21415 if test "X$exec_prefix" = "XNONE"; then
21416 acl_final_exec_prefix='${prefix}'
21417 else
21418 acl_final_exec_prefix="$exec_prefix"
21420 acl_save_prefix="$prefix"
21421 prefix="$acl_final_prefix"
21422 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21423 prefix="$acl_save_prefix"
21426 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21427 if test "${with_gnu_ld+set}" = set; then
21428 withval="$with_gnu_ld"
21429 test "$withval" = no || with_gnu_ld=yes
21430 else
21431 with_gnu_ld=no
21433 # Prepare PATH_SEPARATOR.
21434 # The user is always right.
21435 if test "${PATH_SEPARATOR+set}" != set; then
21436 echo "#! /bin/sh" >conf$$.sh
21437 echo "exit 0" >>conf$$.sh
21438 chmod +x conf$$.sh
21439 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21440 PATH_SEPARATOR=';'
21441 else
21442 PATH_SEPARATOR=:
21444 rm -f conf$$.sh
21446 ac_prog=ld
21447 if test "$GCC" = yes; then
21448 # Check if gcc -print-prog-name=ld gives a path.
21449 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21450 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21451 case $host in
21452 *-*-mingw*)
21453 # gcc leaves a trailing carriage return which upsets mingw
21454 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21456 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21457 esac
21458 case $ac_prog in
21459 # Accept absolute paths.
21460 [\\/]* | [A-Za-z]:[\\/]*)
21461 re_direlt='/[^/][^/]*/\.\./'
21462 # Canonicalize the path of ld
21463 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21464 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21465 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21466 done
21467 test -z "$LD" && LD="$ac_prog"
21470 # If it fails, then pretend we aren't using GCC.
21471 ac_prog=ld
21474 # If it is relative, then search for the first ld in PATH.
21475 with_gnu_ld=unknown
21477 esac
21478 elif test "$with_gnu_ld" = yes; then
21479 echo "$as_me:$LINENO: checking for GNU ld" >&5
21480 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21481 else
21482 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21483 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21485 if test "${acl_cv_path_LD+set}" = set; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 else
21488 if test -z "$LD"; then
21489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21490 for ac_dir in $PATH; do
21491 test -z "$ac_dir" && ac_dir=.
21492 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21493 acl_cv_path_LD="$ac_dir/$ac_prog"
21494 # Check to see if the program is GNU ld. I'd rather use --version,
21495 # but apparently some GNU ld's only accept -v.
21496 # Break only if it was the GNU/non-GNU ld that we prefer.
21497 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21498 test "$with_gnu_ld" != no && break
21499 else
21500 test "$with_gnu_ld" != yes && break
21503 done
21504 IFS="$ac_save_ifs"
21505 else
21506 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21510 LD="$acl_cv_path_LD"
21511 if test -n "$LD"; then
21512 echo "$as_me:$LINENO: result: $LD" >&5
21513 echo "${ECHO_T}$LD" >&6
21514 else
21515 echo "$as_me:$LINENO: result: no" >&5
21516 echo "${ECHO_T}no" >&6
21518 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21519 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21520 { (exit 1); exit 1; }; }
21521 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21522 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21523 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21527 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21528 acl_cv_prog_gnu_ld=yes
21529 else
21530 acl_cv_prog_gnu_ld=no
21533 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21534 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21535 with_gnu_ld=$acl_cv_prog_gnu_ld
21539 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21540 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21541 if test "${acl_cv_rpath+set}" = set; then
21542 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 else
21545 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21546 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21547 . ./conftest.sh
21548 rm -f ./conftest.sh
21549 acl_cv_rpath=done
21552 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21553 echo "${ECHO_T}$acl_cv_rpath" >&6
21554 wl="$acl_cv_wl"
21555 libext="$acl_cv_libext"
21556 shlibext="$acl_cv_shlibext"
21557 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21558 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21559 hardcode_direct="$acl_cv_hardcode_direct"
21560 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21561 # Check whether --enable-rpath or --disable-rpath was given.
21562 if test "${enable_rpath+set}" = set; then
21563 enableval="$enable_rpath"
21565 else
21566 enable_rpath=yes
21575 use_additional=yes
21577 acl_save_prefix="$prefix"
21578 prefix="$acl_final_prefix"
21579 acl_save_exec_prefix="$exec_prefix"
21580 exec_prefix="$acl_final_exec_prefix"
21582 eval additional_includedir=\"$includedir\"
21583 eval additional_libdir=\"$libdir\"
21585 exec_prefix="$acl_save_exec_prefix"
21586 prefix="$acl_save_prefix"
21589 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21590 if test "${with_libiconv_prefix+set}" = set; then
21591 withval="$with_libiconv_prefix"
21593 if test "X$withval" = "Xno"; then
21594 use_additional=no
21595 else
21596 if test "X$withval" = "X"; then
21598 acl_save_prefix="$prefix"
21599 prefix="$acl_final_prefix"
21600 acl_save_exec_prefix="$exec_prefix"
21601 exec_prefix="$acl_final_exec_prefix"
21603 eval additional_includedir=\"$includedir\"
21604 eval additional_libdir=\"$libdir\"
21606 exec_prefix="$acl_save_exec_prefix"
21607 prefix="$acl_save_prefix"
21609 else
21610 additional_includedir="$withval/include"
21611 additional_libdir="$withval/lib"
21616 LIBICONV=
21617 LTLIBICONV=
21618 INCICONV=
21619 rpathdirs=
21620 ltrpathdirs=
21621 names_already_handled=
21622 names_next_round='iconv '
21623 while test -n "$names_next_round"; do
21624 names_this_round="$names_next_round"
21625 names_next_round=
21626 for name in $names_this_round; do
21627 already_handled=
21628 for n in $names_already_handled; do
21629 if test "$n" = "$name"; then
21630 already_handled=yes
21631 break
21633 done
21634 if test -z "$already_handled"; then
21635 names_already_handled="$names_already_handled $name"
21636 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21637 eval value=\"\$HAVE_LIB$uppername\"
21638 if test -n "$value"; then
21639 if test "$value" = yes; then
21640 eval value=\"\$LIB$uppername\"
21641 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21642 eval value=\"\$LTLIB$uppername\"
21643 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21644 else
21647 else
21648 found_dir=
21649 found_la=
21650 found_so=
21651 found_a=
21652 if test $use_additional = yes; then
21653 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21654 found_dir="$additional_libdir"
21655 found_so="$additional_libdir/lib$name.$shlibext"
21656 if test -f "$additional_libdir/lib$name.la"; then
21657 found_la="$additional_libdir/lib$name.la"
21659 else
21660 if test -f "$additional_libdir/lib$name.$libext"; then
21661 found_dir="$additional_libdir"
21662 found_a="$additional_libdir/lib$name.$libext"
21663 if test -f "$additional_libdir/lib$name.la"; then
21664 found_la="$additional_libdir/lib$name.la"
21669 if test "X$found_dir" = "X"; then
21670 for x in $LDFLAGS $LTLIBICONV; do
21672 acl_save_prefix="$prefix"
21673 prefix="$acl_final_prefix"
21674 acl_save_exec_prefix="$exec_prefix"
21675 exec_prefix="$acl_final_exec_prefix"
21676 eval x=\"$x\"
21677 exec_prefix="$acl_save_exec_prefix"
21678 prefix="$acl_save_prefix"
21680 case "$x" in
21681 -L*)
21682 dir=`echo "X$x" | sed -e 's/^X-L//'`
21683 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21684 found_dir="$dir"
21685 found_so="$dir/lib$name.$shlibext"
21686 if test -f "$dir/lib$name.la"; then
21687 found_la="$dir/lib$name.la"
21689 else
21690 if test -f "$dir/lib$name.$libext"; then
21691 found_dir="$dir"
21692 found_a="$dir/lib$name.$libext"
21693 if test -f "$dir/lib$name.la"; then
21694 found_la="$dir/lib$name.la"
21699 esac
21700 if test "X$found_dir" != "X"; then
21701 break
21703 done
21705 if test "X$found_dir" != "X"; then
21706 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21707 if test "X$found_so" != "X"; then
21708 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21709 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21710 else
21711 haveit=
21712 for x in $ltrpathdirs; do
21713 if test "X$x" = "X$found_dir"; then
21714 haveit=yes
21715 break
21717 done
21718 if test -z "$haveit"; then
21719 ltrpathdirs="$ltrpathdirs $found_dir"
21721 if test "$hardcode_direct" = yes; then
21722 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21723 else
21724 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21726 haveit=
21727 for x in $rpathdirs; do
21728 if test "X$x" = "X$found_dir"; then
21729 haveit=yes
21730 break
21732 done
21733 if test -z "$haveit"; then
21734 rpathdirs="$rpathdirs $found_dir"
21736 else
21737 haveit=
21738 for x in $LDFLAGS $LIBICONV; do
21740 acl_save_prefix="$prefix"
21741 prefix="$acl_final_prefix"
21742 acl_save_exec_prefix="$exec_prefix"
21743 exec_prefix="$acl_final_exec_prefix"
21744 eval x=\"$x\"
21745 exec_prefix="$acl_save_exec_prefix"
21746 prefix="$acl_save_prefix"
21748 if test "X$x" = "X-L$found_dir"; then
21749 haveit=yes
21750 break
21752 done
21753 if test -z "$haveit"; then
21754 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21756 if test "$hardcode_minus_L" != no; then
21757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21758 else
21759 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21764 else
21765 if test "X$found_a" != "X"; then
21766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21767 else
21768 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21771 additional_includedir=
21772 case "$found_dir" in
21773 */lib | */lib/)
21774 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21775 additional_includedir="$basedir/include"
21777 esac
21778 if test "X$additional_includedir" != "X"; then
21779 if test "X$additional_includedir" != "X/usr/include"; then
21780 haveit=
21781 if test "X$additional_includedir" = "X/usr/local/include"; then
21782 if test -n "$GCC"; then
21783 case $host_os in
21784 linux*) haveit=yes;;
21785 esac
21788 if test -z "$haveit"; then
21789 for x in $CPPFLAGS $INCICONV; do
21791 acl_save_prefix="$prefix"
21792 prefix="$acl_final_prefix"
21793 acl_save_exec_prefix="$exec_prefix"
21794 exec_prefix="$acl_final_exec_prefix"
21795 eval x=\"$x\"
21796 exec_prefix="$acl_save_exec_prefix"
21797 prefix="$acl_save_prefix"
21799 if test "X$x" = "X-I$additional_includedir"; then
21800 haveit=yes
21801 break
21803 done
21804 if test -z "$haveit"; then
21805 if test -d "$additional_includedir"; then
21806 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21812 if test -n "$found_la"; then
21813 save_libdir="$libdir"
21814 case "$found_la" in
21815 */* | *\\*) . "$found_la" ;;
21816 *) . "./$found_la" ;;
21817 esac
21818 libdir="$save_libdir"
21819 for dep in $dependency_libs; do
21820 case "$dep" in
21821 -L*)
21822 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21823 if test "X$additional_libdir" != "X/usr/lib"; then
21824 haveit=
21825 if test "X$additional_libdir" = "X/usr/local/lib"; then
21826 if test -n "$GCC"; then
21827 case $host_os in
21828 linux*) haveit=yes;;
21829 esac
21832 if test -z "$haveit"; then
21833 haveit=
21834 for x in $LDFLAGS $LIBICONV; do
21836 acl_save_prefix="$prefix"
21837 prefix="$acl_final_prefix"
21838 acl_save_exec_prefix="$exec_prefix"
21839 exec_prefix="$acl_final_exec_prefix"
21840 eval x=\"$x\"
21841 exec_prefix="$acl_save_exec_prefix"
21842 prefix="$acl_save_prefix"
21844 if test "X$x" = "X-L$additional_libdir"; then
21845 haveit=yes
21846 break
21848 done
21849 if test -z "$haveit"; then
21850 if test -d "$additional_libdir"; then
21851 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21854 haveit=
21855 for x in $LDFLAGS $LTLIBICONV; do
21857 acl_save_prefix="$prefix"
21858 prefix="$acl_final_prefix"
21859 acl_save_exec_prefix="$exec_prefix"
21860 exec_prefix="$acl_final_exec_prefix"
21861 eval x=\"$x\"
21862 exec_prefix="$acl_save_exec_prefix"
21863 prefix="$acl_save_prefix"
21865 if test "X$x" = "X-L$additional_libdir"; then
21866 haveit=yes
21867 break
21869 done
21870 if test -z "$haveit"; then
21871 if test -d "$additional_libdir"; then
21872 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21878 -R*)
21879 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21880 if test "$enable_rpath" != no; then
21881 haveit=
21882 for x in $rpathdirs; do
21883 if test "X$x" = "X$dir"; then
21884 haveit=yes
21885 break
21887 done
21888 if test -z "$haveit"; then
21889 rpathdirs="$rpathdirs $dir"
21891 haveit=
21892 for x in $ltrpathdirs; do
21893 if test "X$x" = "X$dir"; then
21894 haveit=yes
21895 break
21897 done
21898 if test -z "$haveit"; then
21899 ltrpathdirs="$ltrpathdirs $dir"
21903 -l*)
21904 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21906 *.la)
21907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21910 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21911 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21913 esac
21914 done
21916 else
21917 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21918 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21922 done
21923 done
21924 if test "X$rpathdirs" != "X"; then
21925 if test -n "$hardcode_libdir_separator"; then
21926 alldirs=
21927 for found_dir in $rpathdirs; do
21928 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21929 done
21930 acl_save_libdir="$libdir"
21931 libdir="$alldirs"
21932 eval flag=\"$hardcode_libdir_flag_spec\"
21933 libdir="$acl_save_libdir"
21934 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21935 else
21936 for found_dir in $rpathdirs; do
21937 acl_save_libdir="$libdir"
21938 libdir="$found_dir"
21939 eval flag=\"$hardcode_libdir_flag_spec\"
21940 libdir="$acl_save_libdir"
21941 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21942 done
21945 if test "X$ltrpathdirs" != "X"; then
21946 for found_dir in $ltrpathdirs; do
21947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21948 done
21957 am_save_CPPFLAGS="$CPPFLAGS"
21959 for element in $INCICONV; do
21960 haveit=
21961 for x in $CPPFLAGS; do
21963 acl_save_prefix="$prefix"
21964 prefix="$acl_final_prefix"
21965 acl_save_exec_prefix="$exec_prefix"
21966 exec_prefix="$acl_final_exec_prefix"
21967 eval x=\"$x\"
21968 exec_prefix="$acl_save_exec_prefix"
21969 prefix="$acl_save_prefix"
21971 if test "X$x" = "X$element"; then
21972 haveit=yes
21973 break
21975 done
21976 if test -z "$haveit"; then
21977 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21979 done
21982 echo "$as_me:$LINENO: checking for iconv" >&5
21983 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
21984 if test "${am_cv_func_iconv+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21986 else
21988 am_cv_func_iconv="no, consider installing GNU libiconv"
21989 am_cv_lib_iconv=no
21990 if test x$gcc_no_link = xyes; then
21991 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21992 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21993 { (exit 1); exit 1; }; }
21995 cat >conftest.$ac_ext <<_ACEOF
21996 /* confdefs.h. */
21997 _ACEOF
21998 cat confdefs.h >>conftest.$ac_ext
21999 cat >>conftest.$ac_ext <<_ACEOF
22000 /* end confdefs.h. */
22001 #include <stdlib.h>
22002 #include <iconv.h>
22004 main ()
22006 iconv_t cd = iconv_open("","");
22007 iconv(cd,NULL,NULL,NULL,NULL);
22008 iconv_close(cd);
22010 return 0;
22012 _ACEOF
22013 rm -f conftest.$ac_objext conftest$ac_exeext
22014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22015 (eval $ac_link) 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag"
22023 || test ! -s conftest.err'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; } &&
22029 { ac_try='test -s conftest$ac_exeext'
22030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22031 (eval $ac_try) 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
22035 am_cv_func_iconv=yes
22036 else
22037 echo "$as_me: failed program was:" >&5
22038 sed 's/^/| /' conftest.$ac_ext >&5
22041 rm -f conftest.err conftest.$ac_objext \
22042 conftest$ac_exeext conftest.$ac_ext
22043 if test "$am_cv_func_iconv" != yes; then
22044 am_save_LIBS="$LIBS"
22045 LIBS="$LIBS $LIBICONV"
22046 if test x$gcc_no_link = xyes; then
22047 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22048 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22049 { (exit 1); exit 1; }; }
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 #include <stdlib.h>
22058 #include <iconv.h>
22060 main ()
22062 iconv_t cd = iconv_open("","");
22063 iconv(cd,NULL,NULL,NULL,NULL);
22064 iconv_close(cd);
22066 return 0;
22068 _ACEOF
22069 rm -f conftest.$ac_objext conftest$ac_exeext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22071 (eval $ac_link) 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag"
22079 || test ! -s conftest.err'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest$ac_exeext'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 am_cv_lib_iconv=yes
22092 am_cv_func_iconv=yes
22093 else
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22098 rm -f conftest.err conftest.$ac_objext \
22099 conftest$ac_exeext conftest.$ac_ext
22100 LIBS="$am_save_LIBS"
22104 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22105 echo "${ECHO_T}$am_cv_func_iconv" >&6
22106 if test "$am_cv_func_iconv" = yes; then
22108 cat >>confdefs.h <<\_ACEOF
22109 #define HAVE_ICONV 1
22110 _ACEOF
22113 if test "$am_cv_lib_iconv" = yes; then
22114 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22115 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22116 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22117 echo "${ECHO_T}$LIBICONV" >&6
22118 else
22119 CPPFLAGS="$am_save_CPPFLAGS"
22120 LIBICONV=
22121 LTLIBICONV=
22126 if test "$am_cv_func_iconv" = yes; then
22127 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22128 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22129 if test "${am_cv_proto_iconv+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22131 else
22133 cat >conftest.$ac_ext <<_ACEOF
22134 /* confdefs.h. */
22135 _ACEOF
22136 cat confdefs.h >>conftest.$ac_ext
22137 cat >>conftest.$ac_ext <<_ACEOF
22138 /* end confdefs.h. */
22140 #include <stdlib.h>
22141 #include <iconv.h>
22142 extern
22143 #ifdef __cplusplus
22145 #endif
22146 #if defined(__STDC__) || defined(__cplusplus)
22147 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22148 #else
22149 size_t iconv();
22150 #endif
22153 main ()
22157 return 0;
22159 _ACEOF
22160 rm -f conftest.$ac_objext
22161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22162 (eval $ac_compile) 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } &&
22169 { ac_try='test -z "$ac_c_werror_flag"
22170 || test ! -s conftest.err'
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; } &&
22176 { ac_try='test -s conftest.$ac_objext'
22177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22178 (eval $ac_try) 2>&5
22179 ac_status=$?
22180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22181 (exit $ac_status); }; }; then
22182 am_cv_proto_iconv_arg1=""
22183 else
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22187 am_cv_proto_iconv_arg1="const"
22189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22190 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);"
22193 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22194 echo "$as_me:$LINENO: result: ${ac_t:-
22195 }$am_cv_proto_iconv" >&5
22196 echo "${ECHO_T}${ac_t:-
22197 }$am_cv_proto_iconv" >&6
22199 cat >>confdefs.h <<_ACEOF
22200 #define ICONV_CONST $am_cv_proto_iconv_arg1
22201 _ACEOF
22206 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22207 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22208 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22209 echo $ECHO_N "(cached) $ECHO_C" >&6
22210 else
22211 if test x$gcc_no_link = xyes; then
22212 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22213 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22214 { (exit 1); exit 1; }; }
22216 cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h. */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 #include <locale.h>
22224 main ()
22226 return LC_MESSAGES
22228 return 0;
22230 _ACEOF
22231 rm -f conftest.$ac_objext conftest$ac_exeext
22232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22233 (eval $ac_link) 2>conftest.er1
22234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
22240 { ac_try='test -z "$ac_c_werror_flag"
22241 || test ! -s conftest.err'
22242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22243 (eval $ac_try) 2>&5
22244 ac_status=$?
22245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246 (exit $ac_status); }; } &&
22247 { ac_try='test -s conftest$ac_exeext'
22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22249 (eval $ac_try) 2>&5
22250 ac_status=$?
22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22252 (exit $ac_status); }; }; then
22253 am_cv_val_LC_MESSAGES=yes
22254 else
22255 echo "$as_me: failed program was:" >&5
22256 sed 's/^/| /' conftest.$ac_ext >&5
22258 am_cv_val_LC_MESSAGES=no
22260 rm -f conftest.err conftest.$ac_objext \
22261 conftest$ac_exeext conftest.$ac_ext
22263 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22264 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22265 if test $am_cv_val_LC_MESSAGES = yes; then
22267 cat >>confdefs.h <<\_ACEOF
22268 #define HAVE_LC_MESSAGES 1
22269 _ACEOF
22273 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22274 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22275 if test "${ac_cv_struct_tm+set}" = set; then
22276 echo $ECHO_N "(cached) $ECHO_C" >&6
22277 else
22278 cat >conftest.$ac_ext <<_ACEOF
22279 /* confdefs.h. */
22280 _ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 #include <sys/types.h>
22285 #include <time.h>
22288 main ()
22290 struct tm *tp; tp->tm_sec;
22292 return 0;
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22297 (eval $ac_compile) 2>conftest.er1
22298 ac_status=$?
22299 grep -v '^ *+' conftest.er1 >conftest.err
22300 rm -f conftest.er1
22301 cat conftest.err >&5
22302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303 (exit $ac_status); } &&
22304 { ac_try='test -z "$ac_c_werror_flag"
22305 || test ! -s conftest.err'
22306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; } &&
22311 { ac_try='test -s conftest.$ac_objext'
22312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22313 (eval $ac_try) 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_struct_tm=time.h
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22322 ac_cv_struct_tm=sys/time.h
22324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22328 if test $ac_cv_struct_tm = sys/time.h; then
22330 cat >>confdefs.h <<\_ACEOF
22331 #define TM_IN_SYS_TIME 1
22332 _ACEOF
22336 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22337 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22338 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h. */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 #include <sys/types.h>
22348 #include <$ac_cv_struct_tm>
22352 main ()
22354 static struct tm ac_aggr;
22355 if (ac_aggr.tm_zone)
22356 return 0;
22358 return 0;
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
22370 { ac_try='test -z "$ac_c_werror_flag"
22371 || test ! -s conftest.err'
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest.$ac_objext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 ac_cv_member_struct_tm_tm_zone=yes
22384 else
22385 echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.$ac_ext >&5
22388 cat >conftest.$ac_ext <<_ACEOF
22389 /* confdefs.h. */
22390 _ACEOF
22391 cat confdefs.h >>conftest.$ac_ext
22392 cat >>conftest.$ac_ext <<_ACEOF
22393 /* end confdefs.h. */
22394 #include <sys/types.h>
22395 #include <$ac_cv_struct_tm>
22399 main ()
22401 static struct tm ac_aggr;
22402 if (sizeof ac_aggr.tm_zone)
22403 return 0;
22405 return 0;
22407 _ACEOF
22408 rm -f conftest.$ac_objext
22409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22410 (eval $ac_compile) 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
22417 { ac_try='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest.$ac_objext'
22425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 ac_cv_member_struct_tm_tm_zone=yes
22431 else
22432 echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22435 ac_cv_member_struct_tm_tm_zone=no
22437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22441 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22442 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22443 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22445 cat >>confdefs.h <<_ACEOF
22446 #define HAVE_STRUCT_TM_TM_ZONE 1
22447 _ACEOF
22452 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22454 cat >>confdefs.h <<\_ACEOF
22455 #define HAVE_TM_ZONE 1
22456 _ACEOF
22458 else
22459 echo "$as_me:$LINENO: checking for tzname" >&5
22460 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22461 if test "${ac_cv_var_tzname+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22463 else
22464 if test x$gcc_no_link = xyes; then
22465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22467 { (exit 1); exit 1; }; }
22469 cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h. */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 #include <time.h>
22476 #ifndef tzname /* For SGI. */
22477 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22478 #endif
22481 main ()
22483 atoi(*tzname);
22485 return 0;
22487 _ACEOF
22488 rm -f conftest.$ac_objext conftest$ac_exeext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22490 (eval $ac_link) 2>conftest.er1
22491 ac_status=$?
22492 grep -v '^ *+' conftest.er1 >conftest.err
22493 rm -f conftest.er1
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } &&
22497 { ac_try='test -z "$ac_c_werror_flag"
22498 || test ! -s conftest.err'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; } &&
22504 { ac_try='test -s conftest$ac_exeext'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 ac_cv_var_tzname=yes
22511 else
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_cv_var_tzname=no
22517 rm -f conftest.err conftest.$ac_objext \
22518 conftest$ac_exeext conftest.$ac_ext
22520 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22521 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22522 if test $ac_cv_var_tzname = yes; then
22524 cat >>confdefs.h <<\_ACEOF
22525 #define HAVE_TZNAME 1
22526 _ACEOF
22533 for ac_func in gethostbyname_r
22535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22536 echo "$as_me:$LINENO: checking for $ac_func" >&5
22537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22538 if eval "test \"\${$as_ac_var+set}\" = set"; then
22539 echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541 if test x$gcc_no_link = xyes; then
22542 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22543 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22544 { (exit 1); exit 1; }; }
22546 cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h. */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22554 #define $ac_func innocuous_$ac_func
22556 /* System header to define __stub macros and hopefully few prototypes,
22557 which can conflict with char $ac_func (); below.
22558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22559 <limits.h> exists even on freestanding compilers. */
22561 #ifdef __STDC__
22562 # include <limits.h>
22563 #else
22564 # include <assert.h>
22565 #endif
22567 #undef $ac_func
22569 /* Override any gcc2 internal prototype to avoid an error. */
22570 #ifdef __cplusplus
22571 extern "C"
22573 #endif
22574 /* We use char because int might match the return type of a gcc2
22575 builtin and then its argument prototype would still apply. */
22576 char $ac_func ();
22577 /* The GNU C library defines this for functions which it implements
22578 to always fail with ENOSYS. Some functions are actually named
22579 something starting with __ and the normal name is an alias. */
22580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22581 choke me
22582 #else
22583 char (*f) () = $ac_func;
22584 #endif
22585 #ifdef __cplusplus
22587 #endif
22590 main ()
22592 return f != $ac_func;
22594 return 0;
22596 _ACEOF
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22599 (eval $ac_link) 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } &&
22606 { ac_try='test -z "$ac_c_werror_flag"
22607 || test ! -s conftest.err'
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; } &&
22613 { ac_try='test -s conftest$ac_exeext'
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; }; then
22619 eval "$as_ac_var=yes"
22620 else
22621 echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 eval "$as_ac_var=no"
22626 rm -f conftest.err conftest.$ac_objext \
22627 conftest$ac_exeext conftest.$ac_ext
22629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22631 if test `eval echo '${'$as_ac_var'}'` = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22634 _ACEOF
22637 cat >>confdefs.h <<\_ACEOF
22638 #define HAVE_GETHOSTBYNAME_R 1
22639 _ACEOF
22641 # There are two different kinds of gethostbyname_r.
22642 # We look for the one that returns `int'.
22643 # Hopefully this check is robust enough.
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 #include <netdb.h>
22652 _ACEOF
22653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22654 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22657 cat >>confdefs.h <<\_ACEOF
22658 #define GETHOSTBYNAME_R_RETURNS_INT 1
22659 _ACEOF
22662 rm -f conftest*
22665 case " $GCINCS " in
22666 *" -D_REENTRANT "*) ;;
22668 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22669 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22670 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
22672 else
22673 ac_ext=cc
22674 ac_cpp='$CXXCPP $CPPFLAGS'
22675 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22676 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22677 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22679 cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h. */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 #include <netdb.h>
22687 main ()
22689 gethostbyname_r("", 0, 0);
22691 return 0;
22693 _ACEOF
22694 rm -f conftest.$ac_objext
22695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22696 (eval $ac_compile) 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } &&
22703 { ac_try='test -z "$ac_cxx_werror_flag"
22704 || test ! -s conftest.err'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22707 ac_status=$?
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; } &&
22710 { ac_try='test -s conftest.$ac_objext'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; }; then
22716 libjava_cv_gethostbyname_r_needs_reentrant=no
22717 else
22718 echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 CPPFLAGS_SAVE="$CPPFLAGS"
22722 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22723 cat >conftest.$ac_ext <<_ACEOF
22724 /* confdefs.h. */
22725 _ACEOF
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 #include <netdb.h>
22731 main ()
22733 gethostbyname_r("", 0, 0);
22735 return 0;
22737 _ACEOF
22738 rm -f conftest.$ac_objext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22740 (eval $ac_compile) 2>conftest.er1
22741 ac_status=$?
22742 grep -v '^ *+' conftest.er1 >conftest.err
22743 rm -f conftest.er1
22744 cat conftest.err >&5
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); } &&
22747 { ac_try='test -z "$ac_cxx_werror_flag"
22748 || test ! -s conftest.err'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; } &&
22754 { ac_try='test -s conftest.$ac_objext'
22755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22756 (eval $ac_try) 2>&5
22757 ac_status=$?
22758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22759 (exit $ac_status); }; }; then
22760 libjava_cv_gethostbyname_r_needs_reentrant=yes
22761 else
22762 echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.$ac_ext >&5
22765 libjava_cv_gethostbyname_r_needs_reentrant=fail
22767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22768 CPPFLAGS="$CPPFLAGS_SAVE"
22771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22772 ac_ext=c
22773 ac_cpp='$CPP $CPPFLAGS'
22774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22780 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22781 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22782 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22784 cat >>confdefs.h <<\_ACEOF
22785 #define _REENTRANT 1
22786 _ACEOF
22790 esac
22792 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22793 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22794 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797 cat >conftest.$ac_ext <<_ACEOF
22798 /* confdefs.h. */
22799 _ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22804 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22805 # define _REENTRANT 1
22806 #endif
22807 #include <netdb.h>
22809 main ()
22811 struct hostent_data data;
22813 return 0;
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22818 (eval $ac_compile) 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } &&
22825 { ac_try='test -z "$ac_c_werror_flag"
22826 || test ! -s conftest.err'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; } &&
22832 { ac_try='test -s conftest.$ac_objext'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22835 ac_status=$?
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22838 libjava_cv_struct_hostent_data=yes
22839 else
22840 echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22843 libjava_cv_struct_hostent_data=no
22845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22848 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22849 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_STRUCT_HOSTENT_DATA 1
22853 _ACEOF
22858 done
22861 # FIXME: libjava source code expects to find a prototype for
22862 # gethostbyaddr_r in netdb.h. The outer check ensures that
22863 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22864 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22865 # linkage check is enough, yet C++ code requires proper prototypes.)
22866 cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h. */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h. */
22872 #include <netdb.h>
22874 _ACEOF
22875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22876 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22879 for ac_func in gethostbyaddr_r
22881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22882 echo "$as_me:$LINENO: checking for $ac_func" >&5
22883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22884 if eval "test \"\${$as_ac_var+set}\" = set"; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 else
22887 if test x$gcc_no_link = xyes; then
22888 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22889 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22890 { (exit 1); exit 1; }; }
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22900 #define $ac_func innocuous_$ac_func
22902 /* System header to define __stub macros and hopefully few prototypes,
22903 which can conflict with char $ac_func (); below.
22904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22905 <limits.h> exists even on freestanding compilers. */
22907 #ifdef __STDC__
22908 # include <limits.h>
22909 #else
22910 # include <assert.h>
22911 #endif
22913 #undef $ac_func
22915 /* Override any gcc2 internal prototype to avoid an error. */
22916 #ifdef __cplusplus
22917 extern "C"
22919 #endif
22920 /* We use char because int might match the return type of a gcc2
22921 builtin and then its argument prototype would still apply. */
22922 char $ac_func ();
22923 /* The GNU C library defines this for functions which it implements
22924 to always fail with ENOSYS. Some functions are actually named
22925 something starting with __ and the normal name is an alias. */
22926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22927 choke me
22928 #else
22929 char (*f) () = $ac_func;
22930 #endif
22931 #ifdef __cplusplus
22933 #endif
22936 main ()
22938 return f != $ac_func;
22940 return 0;
22942 _ACEOF
22943 rm -f conftest.$ac_objext conftest$ac_exeext
22944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22945 (eval $ac_link) 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } &&
22952 { ac_try='test -z "$ac_c_werror_flag"
22953 || test ! -s conftest.err'
22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); }; } &&
22959 { ac_try='test -s conftest$ac_exeext'
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22962 ac_status=$?
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; }; then
22965 eval "$as_ac_var=yes"
22966 else
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 eval "$as_ac_var=no"
22972 rm -f conftest.err conftest.$ac_objext \
22973 conftest$ac_exeext conftest.$ac_ext
22975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22977 if test `eval echo '${'$as_ac_var'}'` = yes; then
22978 cat >>confdefs.h <<_ACEOF
22979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22980 _ACEOF
22983 cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_GETHOSTBYADDR_R 1
22985 _ACEOF
22987 # There are two different kinds of gethostbyaddr_r.
22988 # We look for the one that returns `int'.
22989 # Hopefully this check is robust enough.
22990 cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h. */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22996 #include <netdb.h>
22998 _ACEOF
22999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23000 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23003 cat >>confdefs.h <<\_ACEOF
23004 #define GETHOSTBYADDR_R_RETURNS_INT 1
23005 _ACEOF
23008 rm -f conftest*
23011 done
23014 rm -f conftest*
23018 for ac_func in gethostname
23020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23021 echo "$as_me:$LINENO: checking for $ac_func" >&5
23022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23023 if eval "test \"\${$as_ac_var+set}\" = set"; then
23024 echo $ECHO_N "(cached) $ECHO_C" >&6
23025 else
23026 if test x$gcc_no_link = xyes; then
23027 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23028 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23029 { (exit 1); exit 1; }; }
23031 cat >conftest.$ac_ext <<_ACEOF
23032 /* confdefs.h. */
23033 _ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23039 #define $ac_func innocuous_$ac_func
23041 /* System header to define __stub macros and hopefully few prototypes,
23042 which can conflict with char $ac_func (); below.
23043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23044 <limits.h> exists even on freestanding compilers. */
23046 #ifdef __STDC__
23047 # include <limits.h>
23048 #else
23049 # include <assert.h>
23050 #endif
23052 #undef $ac_func
23054 /* Override any gcc2 internal prototype to avoid an error. */
23055 #ifdef __cplusplus
23056 extern "C"
23058 #endif
23059 /* We use char because int might match the return type of a gcc2
23060 builtin and then its argument prototype would still apply. */
23061 char $ac_func ();
23062 /* The GNU C library defines this for functions which it implements
23063 to always fail with ENOSYS. Some functions are actually named
23064 something starting with __ and the normal name is an alias. */
23065 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23066 choke me
23067 #else
23068 char (*f) () = $ac_func;
23069 #endif
23070 #ifdef __cplusplus
23072 #endif
23075 main ()
23077 return f != $ac_func;
23079 return 0;
23081 _ACEOF
23082 rm -f conftest.$ac_objext conftest$ac_exeext
23083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23084 (eval $ac_link) 2>conftest.er1
23085 ac_status=$?
23086 grep -v '^ *+' conftest.er1 >conftest.err
23087 rm -f conftest.er1
23088 cat conftest.err >&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); } &&
23091 { ac_try='test -z "$ac_c_werror_flag"
23092 || test ! -s conftest.err'
23093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23094 (eval $ac_try) 2>&5
23095 ac_status=$?
23096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23097 (exit $ac_status); }; } &&
23098 { ac_try='test -s conftest$ac_exeext'
23099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23100 (eval $ac_try) 2>&5
23101 ac_status=$?
23102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); }; }; then
23104 eval "$as_ac_var=yes"
23105 else
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 eval "$as_ac_var=no"
23111 rm -f conftest.err conftest.$ac_objext \
23112 conftest$ac_exeext conftest.$ac_ext
23114 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23115 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23116 if test `eval echo '${'$as_ac_var'}'` = yes; then
23117 cat >>confdefs.h <<_ACEOF
23118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23119 _ACEOF
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_GETHOSTNAME 1
23124 _ACEOF
23126 cat >conftest.$ac_ext <<_ACEOF
23127 /* confdefs.h. */
23128 _ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 #include <unistd.h>
23134 _ACEOF
23135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23136 $EGREP "gethostname" >/dev/null 2>&1; then
23139 cat >>confdefs.h <<\_ACEOF
23140 #define HAVE_GETHOSTNAME_DECL 1
23141 _ACEOF
23144 rm -f conftest*
23147 done
23151 for ac_func in usleep
23153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23154 echo "$as_me:$LINENO: checking for $ac_func" >&5
23155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23156 if eval "test \"\${$as_ac_var+set}\" = set"; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159 if test x$gcc_no_link = xyes; then
23160 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23161 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23162 { (exit 1); exit 1; }; }
23164 cat >conftest.$ac_ext <<_ACEOF
23165 /* confdefs.h. */
23166 _ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23172 #define $ac_func innocuous_$ac_func
23174 /* System header to define __stub macros and hopefully few prototypes,
23175 which can conflict with char $ac_func (); below.
23176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23177 <limits.h> exists even on freestanding compilers. */
23179 #ifdef __STDC__
23180 # include <limits.h>
23181 #else
23182 # include <assert.h>
23183 #endif
23185 #undef $ac_func
23187 /* Override any gcc2 internal prototype to avoid an error. */
23188 #ifdef __cplusplus
23189 extern "C"
23191 #endif
23192 /* We use char because int might match the return type of a gcc2
23193 builtin and then its argument prototype would still apply. */
23194 char $ac_func ();
23195 /* The GNU C library defines this for functions which it implements
23196 to always fail with ENOSYS. Some functions are actually named
23197 something starting with __ and the normal name is an alias. */
23198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23199 choke me
23200 #else
23201 char (*f) () = $ac_func;
23202 #endif
23203 #ifdef __cplusplus
23205 #endif
23208 main ()
23210 return f != $ac_func;
23212 return 0;
23214 _ACEOF
23215 rm -f conftest.$ac_objext conftest$ac_exeext
23216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23217 (eval $ac_link) 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
23224 { ac_try='test -z "$ac_c_werror_flag"
23225 || test ! -s conftest.err'
23226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23227 (eval $ac_try) 2>&5
23228 ac_status=$?
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); }; } &&
23231 { ac_try='test -s conftest$ac_exeext'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; }; then
23237 eval "$as_ac_var=yes"
23238 else
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 eval "$as_ac_var=no"
23244 rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
23247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23248 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23249 if test `eval echo '${'$as_ac_var'}'` = yes; then
23250 cat >>confdefs.h <<_ACEOF
23251 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23252 _ACEOF
23254 cat >conftest.$ac_ext <<_ACEOF
23255 /* confdefs.h. */
23256 _ACEOF
23257 cat confdefs.h >>conftest.$ac_ext
23258 cat >>conftest.$ac_ext <<_ACEOF
23259 /* end confdefs.h. */
23260 #include <unistd.h>
23262 _ACEOF
23263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23264 $EGREP "usleep" >/dev/null 2>&1; then
23267 cat >>confdefs.h <<\_ACEOF
23268 #define HAVE_USLEEP_DECL 1
23269 _ACEOF
23272 rm -f conftest*
23275 done
23278 # Look for these functions in the thread library, but only bother
23279 # if using POSIX threads.
23280 if test "$THREADS" = posix; then
23281 save_LIBS="$LIBS"
23282 LIBS="$LIBS $THREADLIBS"
23284 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23285 # Solaris 7 the name librt is preferred.
23287 for ac_func in sched_yield
23289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23290 echo "$as_me:$LINENO: checking for $ac_func" >&5
23291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23292 if eval "test \"\${$as_ac_var+set}\" = set"; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23294 else
23295 if test x$gcc_no_link = xyes; then
23296 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23297 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23298 { (exit 1); exit 1; }; }
23300 cat >conftest.$ac_ext <<_ACEOF
23301 /* confdefs.h. */
23302 _ACEOF
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23308 #define $ac_func innocuous_$ac_func
23310 /* System header to define __stub macros and hopefully few prototypes,
23311 which can conflict with char $ac_func (); below.
23312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23313 <limits.h> exists even on freestanding compilers. */
23315 #ifdef __STDC__
23316 # include <limits.h>
23317 #else
23318 # include <assert.h>
23319 #endif
23321 #undef $ac_func
23323 /* Override any gcc2 internal prototype to avoid an error. */
23324 #ifdef __cplusplus
23325 extern "C"
23327 #endif
23328 /* We use char because int might match the return type of a gcc2
23329 builtin and then its argument prototype would still apply. */
23330 char $ac_func ();
23331 /* The GNU C library defines this for functions which it implements
23332 to always fail with ENOSYS. Some functions are actually named
23333 something starting with __ and the normal name is an alias. */
23334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23335 choke me
23336 #else
23337 char (*f) () = $ac_func;
23338 #endif
23339 #ifdef __cplusplus
23341 #endif
23344 main ()
23346 return f != $ac_func;
23348 return 0;
23350 _ACEOF
23351 rm -f conftest.$ac_objext conftest$ac_exeext
23352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23353 (eval $ac_link) 2>conftest.er1
23354 ac_status=$?
23355 grep -v '^ *+' conftest.er1 >conftest.err
23356 rm -f conftest.er1
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } &&
23360 { ac_try='test -z "$ac_c_werror_flag"
23361 || test ! -s conftest.err'
23362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23363 (eval $ac_try) 2>&5
23364 ac_status=$?
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); }; } &&
23367 { ac_try='test -s conftest$ac_exeext'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; }; then
23373 eval "$as_ac_var=yes"
23374 else
23375 echo "$as_me: failed program was:" >&5
23376 sed 's/^/| /' conftest.$ac_ext >&5
23378 eval "$as_ac_var=no"
23380 rm -f conftest.err conftest.$ac_objext \
23381 conftest$ac_exeext conftest.$ac_ext
23383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23385 if test `eval echo '${'$as_ac_var'}'` = yes; then
23386 cat >>confdefs.h <<_ACEOF
23387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23388 _ACEOF
23390 else
23392 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23393 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23394 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23395 echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397 ac_check_lib_save_LIBS=$LIBS
23398 LIBS="-lrt $LIBS"
23399 if test x$gcc_no_link = xyes; then
23400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23402 { (exit 1); exit 1; }; }
23404 cat >conftest.$ac_ext <<_ACEOF
23405 /* confdefs.h. */
23406 _ACEOF
23407 cat confdefs.h >>conftest.$ac_ext
23408 cat >>conftest.$ac_ext <<_ACEOF
23409 /* end confdefs.h. */
23411 /* Override any gcc2 internal prototype to avoid an error. */
23412 #ifdef __cplusplus
23413 extern "C"
23414 #endif
23415 /* We use char because int might match the return type of a gcc2
23416 builtin and then its argument prototype would still apply. */
23417 char sched_yield ();
23419 main ()
23421 sched_yield ();
23423 return 0;
23425 _ACEOF
23426 rm -f conftest.$ac_objext conftest$ac_exeext
23427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23428 (eval $ac_link) 2>conftest.er1
23429 ac_status=$?
23430 grep -v '^ *+' conftest.er1 >conftest.err
23431 rm -f conftest.er1
23432 cat conftest.err >&5
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); } &&
23435 { ac_try='test -z "$ac_c_werror_flag"
23436 || test ! -s conftest.err'
23437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23438 (eval $ac_try) 2>&5
23439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; } &&
23442 { ac_try='test -s conftest$ac_exeext'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23445 ac_status=$?
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23448 ac_cv_lib_rt_sched_yield=yes
23449 else
23450 echo "$as_me: failed program was:" >&5
23451 sed 's/^/| /' conftest.$ac_ext >&5
23453 ac_cv_lib_rt_sched_yield=no
23455 rm -f conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23457 LIBS=$ac_check_lib_save_LIBS
23459 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23460 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23461 if test $ac_cv_lib_rt_sched_yield = yes; then
23463 cat >>confdefs.h <<\_ACEOF
23464 #define HAVE_SCHED_YIELD 1
23465 _ACEOF
23467 THREADLIBS="$THREADLIBS -lrt"
23468 THREADSPEC="$THREADSPEC -lrt"
23469 else
23471 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23472 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23473 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23475 else
23476 ac_check_lib_save_LIBS=$LIBS
23477 LIBS="-lposix4 $LIBS"
23478 if test x$gcc_no_link = xyes; then
23479 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23480 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23481 { (exit 1); exit 1; }; }
23483 cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h. */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23490 /* Override any gcc2 internal prototype to avoid an error. */
23491 #ifdef __cplusplus
23492 extern "C"
23493 #endif
23494 /* We use char because int might match the return type of a gcc2
23495 builtin and then its argument prototype would still apply. */
23496 char sched_yield ();
23498 main ()
23500 sched_yield ();
23502 return 0;
23504 _ACEOF
23505 rm -f conftest.$ac_objext conftest$ac_exeext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23507 (eval $ac_link) 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -z "$ac_c_werror_flag"
23515 || test ! -s conftest.err'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest$ac_exeext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 ac_cv_lib_posix4_sched_yield=yes
23528 else
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ac_cv_lib_posix4_sched_yield=no
23534 rm -f conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23538 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23539 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23540 if test $ac_cv_lib_posix4_sched_yield = yes; then
23542 cat >>confdefs.h <<\_ACEOF
23543 #define HAVE_SCHED_YIELD 1
23544 _ACEOF
23546 THREADLIBS="$THREADLIBS -lposix4"
23547 THREADSPEC="$THREADSPEC -lposix4"
23553 done
23556 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23557 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23558 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23559 echo $ECHO_N "(cached) $ECHO_C" >&6
23560 else
23561 ac_check_lib_save_LIBS=$LIBS
23562 LIBS="-lrt $LIBS"
23563 if test x$gcc_no_link = xyes; then
23564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23566 { (exit 1); exit 1; }; }
23568 cat >conftest.$ac_ext <<_ACEOF
23569 /* confdefs.h. */
23570 _ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23575 /* Override any gcc2 internal prototype to avoid an error. */
23576 #ifdef __cplusplus
23577 extern "C"
23578 #endif
23579 /* We use char because int might match the return type of a gcc2
23580 builtin and then its argument prototype would still apply. */
23581 char clock_gettime ();
23583 main ()
23585 clock_gettime ();
23587 return 0;
23589 _ACEOF
23590 rm -f conftest.$ac_objext conftest$ac_exeext
23591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23592 (eval $ac_link) 2>conftest.er1
23593 ac_status=$?
23594 grep -v '^ *+' conftest.er1 >conftest.err
23595 rm -f conftest.er1
23596 cat conftest.err >&5
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } &&
23599 { ac_try='test -z "$ac_c_werror_flag"
23600 || test ! -s conftest.err'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; } &&
23606 { ac_try='test -s conftest$ac_exeext'
23607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23608 (eval $ac_try) 2>&5
23609 ac_status=$?
23610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23611 (exit $ac_status); }; }; then
23612 ac_cv_lib_rt_clock_gettime=yes
23613 else
23614 echo "$as_me: failed program was:" >&5
23615 sed 's/^/| /' conftest.$ac_ext >&5
23617 ac_cv_lib_rt_clock_gettime=no
23619 rm -f conftest.err conftest.$ac_objext \
23620 conftest$ac_exeext conftest.$ac_ext
23621 LIBS=$ac_check_lib_save_LIBS
23623 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23624 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23625 if test $ac_cv_lib_rt_clock_gettime = yes; then
23628 cat >>confdefs.h <<\_ACEOF
23629 #define HAVE_CLOCK_GETTIME 1
23630 _ACEOF
23632 case "$THREADSPEC" in
23633 *-lrt*) ;;
23635 THREADSPEC="$THREADSPEC -lrt"
23636 THREADLIBS="$THREADLIBS -lrt"
23638 esac
23642 LIBS="$save_LIBS"
23644 # We can save a little space at runtime if the mutex has m_count
23645 # or __m_count. This is a nice hack for Linux.
23646 cat >conftest.$ac_ext <<_ACEOF
23647 /* confdefs.h. */
23648 _ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23652 #include <pthread.h>
23654 main ()
23657 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23660 return 0;
23662 _ACEOF
23663 rm -f conftest.$ac_objext
23664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23665 (eval $ac_compile) 2>conftest.er1
23666 ac_status=$?
23667 grep -v '^ *+' conftest.er1 >conftest.err
23668 rm -f conftest.er1
23669 cat conftest.err >&5
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } &&
23672 { ac_try='test -z "$ac_c_werror_flag"
23673 || test ! -s conftest.err'
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; } &&
23679 { ac_try='test -s conftest.$ac_objext'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23686 cat >>confdefs.h <<\_ACEOF
23687 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23688 _ACEOF
23690 else
23691 echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 #include <pthread.h>
23703 main ()
23706 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23709 return 0;
23711 _ACEOF
23712 rm -f conftest.$ac_objext
23713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23714 (eval $ac_compile) 2>conftest.er1
23715 ac_status=$?
23716 grep -v '^ *+' conftest.er1 >conftest.err
23717 rm -f conftest.er1
23718 cat conftest.err >&5
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } &&
23721 { ac_try='test -z "$ac_c_werror_flag"
23722 || test ! -s conftest.err'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; } &&
23728 { ac_try='test -s conftest.$ac_objext'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23735 cat >>confdefs.h <<\_ACEOF
23736 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23737 _ACEOF
23739 else
23740 echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23749 # We require a way to get the time.
23750 time_found=no
23754 for ac_func in gettimeofday time ftime
23756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23757 echo "$as_me:$LINENO: checking for $ac_func" >&5
23758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23759 if eval "test \"\${$as_ac_var+set}\" = set"; then
23760 echo $ECHO_N "(cached) $ECHO_C" >&6
23761 else
23762 if test x$gcc_no_link = xyes; then
23763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23765 { (exit 1); exit 1; }; }
23767 cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h. */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23775 #define $ac_func innocuous_$ac_func
23777 /* System header to define __stub macros and hopefully few prototypes,
23778 which can conflict with char $ac_func (); below.
23779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23780 <limits.h> exists even on freestanding compilers. */
23782 #ifdef __STDC__
23783 # include <limits.h>
23784 #else
23785 # include <assert.h>
23786 #endif
23788 #undef $ac_func
23790 /* Override any gcc2 internal prototype to avoid an error. */
23791 #ifdef __cplusplus
23792 extern "C"
23794 #endif
23795 /* We use char because int might match the return type of a gcc2
23796 builtin and then its argument prototype would still apply. */
23797 char $ac_func ();
23798 /* The GNU C library defines this for functions which it implements
23799 to always fail with ENOSYS. Some functions are actually named
23800 something starting with __ and the normal name is an alias. */
23801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23802 choke me
23803 #else
23804 char (*f) () = $ac_func;
23805 #endif
23806 #ifdef __cplusplus
23808 #endif
23811 main ()
23813 return f != $ac_func;
23815 return 0;
23817 _ACEOF
23818 rm -f conftest.$ac_objext conftest$ac_exeext
23819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820 (eval $ac_link) 2>conftest.er1
23821 ac_status=$?
23822 grep -v '^ *+' conftest.er1 >conftest.err
23823 rm -f conftest.er1
23824 cat conftest.err >&5
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); } &&
23827 { ac_try='test -z "$ac_c_werror_flag"
23828 || test ! -s conftest.err'
23829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23830 (eval $ac_try) 2>&5
23831 ac_status=$?
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); }; } &&
23834 { ac_try='test -s conftest$ac_exeext'
23835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23836 (eval $ac_try) 2>&5
23837 ac_status=$?
23838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839 (exit $ac_status); }; }; then
23840 eval "$as_ac_var=yes"
23841 else
23842 echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23845 eval "$as_ac_var=no"
23847 rm -f conftest.err conftest.$ac_objext \
23848 conftest$ac_exeext conftest.$ac_ext
23850 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23851 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23852 if test `eval echo '${'$as_ac_var'}'` = yes; then
23853 cat >>confdefs.h <<_ACEOF
23854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23855 _ACEOF
23856 time_found=yes
23858 done
23860 if test "$time_found" = no; then
23861 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23862 echo "$as_me: error: no function found to get the time" >&2;}
23863 { (exit 1); exit 1; }; }
23867 for ac_func in memmove
23869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23870 echo "$as_me:$LINENO: checking for $ac_func" >&5
23871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23872 if eval "test \"\${$as_ac_var+set}\" = set"; then
23873 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 else
23875 if test x$gcc_no_link = xyes; then
23876 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23877 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23878 { (exit 1); exit 1; }; }
23880 cat >conftest.$ac_ext <<_ACEOF
23881 /* confdefs.h. */
23882 _ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23888 #define $ac_func innocuous_$ac_func
23890 /* System header to define __stub macros and hopefully few prototypes,
23891 which can conflict with char $ac_func (); below.
23892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23893 <limits.h> exists even on freestanding compilers. */
23895 #ifdef __STDC__
23896 # include <limits.h>
23897 #else
23898 # include <assert.h>
23899 #endif
23901 #undef $ac_func
23903 /* Override any gcc2 internal prototype to avoid an error. */
23904 #ifdef __cplusplus
23905 extern "C"
23907 #endif
23908 /* We use char because int might match the return type of a gcc2
23909 builtin and then its argument prototype would still apply. */
23910 char $ac_func ();
23911 /* The GNU C library defines this for functions which it implements
23912 to always fail with ENOSYS. Some functions are actually named
23913 something starting with __ and the normal name is an alias. */
23914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23915 choke me
23916 #else
23917 char (*f) () = $ac_func;
23918 #endif
23919 #ifdef __cplusplus
23921 #endif
23924 main ()
23926 return f != $ac_func;
23928 return 0;
23930 _ACEOF
23931 rm -f conftest.$ac_objext conftest$ac_exeext
23932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23933 (eval $ac_link) 2>conftest.er1
23934 ac_status=$?
23935 grep -v '^ *+' conftest.er1 >conftest.err
23936 rm -f conftest.er1
23937 cat conftest.err >&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); } &&
23940 { ac_try='test -z "$ac_c_werror_flag"
23941 || test ! -s conftest.err'
23942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23943 (eval $ac_try) 2>&5
23944 ac_status=$?
23945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); }; } &&
23947 { ac_try='test -s conftest$ac_exeext'
23948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23949 (eval $ac_try) 2>&5
23950 ac_status=$?
23951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23952 (exit $ac_status); }; }; then
23953 eval "$as_ac_var=yes"
23954 else
23955 echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23958 eval "$as_ac_var=no"
23960 rm -f conftest.err conftest.$ac_objext \
23961 conftest$ac_exeext conftest.$ac_ext
23963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23965 if test `eval echo '${'$as_ac_var'}'` = yes; then
23966 cat >>confdefs.h <<_ACEOF
23967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23968 _ACEOF
23971 done
23974 # We require memcpy.
23975 memcpy_found=no
23977 for ac_func in memcpy
23979 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23980 echo "$as_me:$LINENO: checking for $ac_func" >&5
23981 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23982 if eval "test \"\${$as_ac_var+set}\" = set"; then
23983 echo $ECHO_N "(cached) $ECHO_C" >&6
23984 else
23985 if test x$gcc_no_link = xyes; then
23986 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23987 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23988 { (exit 1); exit 1; }; }
23990 cat >conftest.$ac_ext <<_ACEOF
23991 /* confdefs.h. */
23992 _ACEOF
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h. */
23996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23998 #define $ac_func innocuous_$ac_func
24000 /* System header to define __stub macros and hopefully few prototypes,
24001 which can conflict with char $ac_func (); below.
24002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24003 <limits.h> exists even on freestanding compilers. */
24005 #ifdef __STDC__
24006 # include <limits.h>
24007 #else
24008 # include <assert.h>
24009 #endif
24011 #undef $ac_func
24013 /* Override any gcc2 internal prototype to avoid an error. */
24014 #ifdef __cplusplus
24015 extern "C"
24017 #endif
24018 /* We use char because int might match the return type of a gcc2
24019 builtin and then its argument prototype would still apply. */
24020 char $ac_func ();
24021 /* The GNU C library defines this for functions which it implements
24022 to always fail with ENOSYS. Some functions are actually named
24023 something starting with __ and the normal name is an alias. */
24024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24025 choke me
24026 #else
24027 char (*f) () = $ac_func;
24028 #endif
24029 #ifdef __cplusplus
24031 #endif
24034 main ()
24036 return f != $ac_func;
24038 return 0;
24040 _ACEOF
24041 rm -f conftest.$ac_objext conftest$ac_exeext
24042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24043 (eval $ac_link) 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } &&
24050 { ac_try='test -z "$ac_c_werror_flag"
24051 || test ! -s conftest.err'
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; } &&
24057 { ac_try='test -s conftest$ac_exeext'
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 eval "$as_ac_var=yes"
24064 else
24065 echo "$as_me: failed program was:" >&5
24066 sed 's/^/| /' conftest.$ac_ext >&5
24068 eval "$as_ac_var=no"
24070 rm -f conftest.err conftest.$ac_objext \
24071 conftest$ac_exeext conftest.$ac_ext
24073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24075 if test `eval echo '${'$as_ac_var'}'` = yes; then
24076 cat >>confdefs.h <<_ACEOF
24077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24078 _ACEOF
24079 memcpy_found=yes
24081 done
24083 if test "$memcpy_found" = no; then
24084 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24085 echo "$as_me: error: memcpy is required" >&2;}
24086 { (exit 1); exit 1; }; }
24088 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24089 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24090 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24092 echo $ECHO_N "(cached) $ECHO_C" >&6
24093 else
24094 ac_check_lib_save_LIBS=$LIBS
24095 LIBS="-ldl $LIBS"
24096 if test x$gcc_no_link = xyes; then
24097 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24098 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24099 { (exit 1); exit 1; }; }
24101 cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h. */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24108 /* Override any gcc2 internal prototype to avoid an error. */
24109 #ifdef __cplusplus
24110 extern "C"
24111 #endif
24112 /* We use char because int might match the return type of a gcc2
24113 builtin and then its argument prototype would still apply. */
24114 char dlopen ();
24116 main ()
24118 dlopen ();
24120 return 0;
24122 _ACEOF
24123 rm -f conftest.$ac_objext conftest$ac_exeext
24124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24125 (eval $ac_link) 2>conftest.er1
24126 ac_status=$?
24127 grep -v '^ *+' conftest.er1 >conftest.err
24128 rm -f conftest.er1
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); } &&
24132 { ac_try='test -z "$ac_c_werror_flag"
24133 || test ! -s conftest.err'
24134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; } &&
24139 { ac_try='test -s conftest$ac_exeext'
24140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24141 (eval $ac_try) 2>&5
24142 ac_status=$?
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); }; }; then
24145 ac_cv_lib_dl_dlopen=yes
24146 else
24147 echo "$as_me: failed program was:" >&5
24148 sed 's/^/| /' conftest.$ac_ext >&5
24150 ac_cv_lib_dl_dlopen=no
24152 rm -f conftest.err conftest.$ac_objext \
24153 conftest$ac_exeext conftest.$ac_ext
24154 LIBS=$ac_check_lib_save_LIBS
24156 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24157 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24158 if test $ac_cv_lib_dl_dlopen = yes; then
24161 cat >>confdefs.h <<\_ACEOF
24162 #define HAVE_DLOPEN 1
24163 _ACEOF
24165 else
24167 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24168 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24169 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171 else
24172 ac_check_lib_save_LIBS=$LIBS
24173 LIBS="-ldld $LIBS"
24174 if test x$gcc_no_link = xyes; then
24175 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24176 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24177 { (exit 1); exit 1; }; }
24179 cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h. */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24186 /* Override any gcc2 internal prototype to avoid an error. */
24187 #ifdef __cplusplus
24188 extern "C"
24189 #endif
24190 /* We use char because int might match the return type of a gcc2
24191 builtin and then its argument prototype would still apply. */
24192 char dlopen ();
24194 main ()
24196 dlopen ();
24198 return 0;
24200 _ACEOF
24201 rm -f conftest.$ac_objext conftest$ac_exeext
24202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24203 (eval $ac_link) 2>conftest.er1
24204 ac_status=$?
24205 grep -v '^ *+' conftest.er1 >conftest.err
24206 rm -f conftest.er1
24207 cat conftest.err >&5
24208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209 (exit $ac_status); } &&
24210 { ac_try='test -z "$ac_c_werror_flag"
24211 || test ! -s conftest.err'
24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; } &&
24217 { ac_try='test -s conftest$ac_exeext'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; }; then
24223 ac_cv_lib_dld_dlopen=yes
24224 else
24225 echo "$as_me: failed program was:" >&5
24226 sed 's/^/| /' conftest.$ac_ext >&5
24228 ac_cv_lib_dld_dlopen=no
24230 rm -f conftest.err conftest.$ac_objext \
24231 conftest$ac_exeext conftest.$ac_ext
24232 LIBS=$ac_check_lib_save_LIBS
24234 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24235 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24236 if test $ac_cv_lib_dld_dlopen = yes; then
24239 cat >>confdefs.h <<\_ACEOF
24240 #define HAVE_DLOPEN 1
24241 _ACEOF
24248 # Some library-finding code we stole from Tcl.
24249 #--------------------------------------------------------------------
24250 # Check for the existence of the -lsocket and -lnsl libraries.
24251 # The order here is important, so that they end up in the right
24252 # order in the command line generated by make. Here are some
24253 # special considerations:
24254 # 1. Use "connect" and "accept" to check for -lsocket, and
24255 # "gethostbyname" to check for -lnsl.
24256 # 2. Use each function name only once: can't redo a check because
24257 # autoconf caches the results of the last check and won't redo it.
24258 # 3. Use -lnsl and -lsocket only if they supply procedures that
24259 # aren't already present in the normal libraries. This is because
24260 # IRIX 5.2 has libraries, but they aren't needed and they're
24261 # bogus: they goof up name resolution if used.
24262 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24263 # To get around this problem, check for both libraries together
24264 # if -lsocket doesn't work by itself.
24265 #--------------------------------------------------------------------
24267 echo "$as_me:$LINENO: checking for socket libraries" >&5
24268 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24269 if test "${gcj_cv_lib_sockets+set}" = set; then
24270 echo $ECHO_N "(cached) $ECHO_C" >&6
24271 else
24272 gcj_cv_lib_sockets=
24273 gcj_checkBoth=0
24274 unset ac_cv_func_connect
24275 echo "$as_me:$LINENO: checking for connect" >&5
24276 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24277 if test "${ac_cv_func_connect+set}" = set; then
24278 echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280 if test x$gcc_no_link = xyes; then
24281 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24282 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24283 { (exit 1); exit 1; }; }
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h. */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24293 #define connect innocuous_connect
24295 /* System header to define __stub macros and hopefully few prototypes,
24296 which can conflict with char connect (); below.
24297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24298 <limits.h> exists even on freestanding compilers. */
24300 #ifdef __STDC__
24301 # include <limits.h>
24302 #else
24303 # include <assert.h>
24304 #endif
24306 #undef connect
24308 /* Override any gcc2 internal prototype to avoid an error. */
24309 #ifdef __cplusplus
24310 extern "C"
24312 #endif
24313 /* We use char because int might match the return type of a gcc2
24314 builtin and then its argument prototype would still apply. */
24315 char connect ();
24316 /* The GNU C library defines this for functions which it implements
24317 to always fail with ENOSYS. Some functions are actually named
24318 something starting with __ and the normal name is an alias. */
24319 #if defined (__stub_connect) || defined (__stub___connect)
24320 choke me
24321 #else
24322 char (*f) () = connect;
24323 #endif
24324 #ifdef __cplusplus
24326 #endif
24329 main ()
24331 return f != connect;
24333 return 0;
24335 _ACEOF
24336 rm -f conftest.$ac_objext conftest$ac_exeext
24337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24338 (eval $ac_link) 2>conftest.er1
24339 ac_status=$?
24340 grep -v '^ *+' conftest.er1 >conftest.err
24341 rm -f conftest.er1
24342 cat conftest.err >&5
24343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24344 (exit $ac_status); } &&
24345 { ac_try='test -z "$ac_c_werror_flag"
24346 || test ! -s conftest.err'
24347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348 (eval $ac_try) 2>&5
24349 ac_status=$?
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); }; } &&
24352 { ac_try='test -s conftest$ac_exeext'
24353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24354 (eval $ac_try) 2>&5
24355 ac_status=$?
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); }; }; then
24358 ac_cv_func_connect=yes
24359 else
24360 echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24363 ac_cv_func_connect=no
24365 rm -f conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
24368 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24369 echo "${ECHO_T}$ac_cv_func_connect" >&6
24370 if test $ac_cv_func_connect = yes; then
24371 gcj_checkSocket=0
24372 else
24373 gcj_checkSocket=1
24376 if test "$gcj_checkSocket" = 1; then
24377 unset ac_cv_func_connect
24378 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24379 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24380 if test "${ac_cv_lib_socket_main+set}" = set; then
24381 echo $ECHO_N "(cached) $ECHO_C" >&6
24382 else
24383 ac_check_lib_save_LIBS=$LIBS
24384 LIBS="-lsocket $LIBS"
24385 if test x$gcc_no_link = xyes; then
24386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24388 { (exit 1); exit 1; }; }
24390 cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h. */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24399 main ()
24401 main ();
24403 return 0;
24405 _ACEOF
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24408 (eval $ac_link) 2>conftest.er1
24409 ac_status=$?
24410 grep -v '^ *+' conftest.er1 >conftest.err
24411 rm -f conftest.er1
24412 cat conftest.err >&5
24413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414 (exit $ac_status); } &&
24415 { ac_try='test -z "$ac_c_werror_flag"
24416 || test ! -s conftest.err'
24417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418 (eval $ac_try) 2>&5
24419 ac_status=$?
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); }; } &&
24422 { ac_try='test -s conftest$ac_exeext'
24423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424 (eval $ac_try) 2>&5
24425 ac_status=$?
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); }; }; then
24428 ac_cv_lib_socket_main=yes
24429 else
24430 echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24433 ac_cv_lib_socket_main=no
24435 rm -f conftest.err conftest.$ac_objext \
24436 conftest$ac_exeext conftest.$ac_ext
24437 LIBS=$ac_check_lib_save_LIBS
24439 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24440 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24441 if test $ac_cv_lib_socket_main = yes; then
24442 gcj_cv_lib_sockets="-lsocket"
24443 else
24444 gcj_checkBoth=1
24448 if test "$gcj_checkBoth" = 1; then
24449 gcj_oldLibs=$LIBS
24450 LIBS="$LIBS -lsocket -lnsl"
24451 unset ac_cv_func_accept
24452 echo "$as_me:$LINENO: checking for accept" >&5
24453 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24454 if test "${ac_cv_func_accept+set}" = set; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24456 else
24457 if test x$gcc_no_link = xyes; then
24458 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24459 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24460 { (exit 1); exit 1; }; }
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h. */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h. */
24468 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24470 #define accept innocuous_accept
24472 /* System header to define __stub macros and hopefully few prototypes,
24473 which can conflict with char accept (); below.
24474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24475 <limits.h> exists even on freestanding compilers. */
24477 #ifdef __STDC__
24478 # include <limits.h>
24479 #else
24480 # include <assert.h>
24481 #endif
24483 #undef accept
24485 /* Override any gcc2 internal prototype to avoid an error. */
24486 #ifdef __cplusplus
24487 extern "C"
24489 #endif
24490 /* We use char because int might match the return type of a gcc2
24491 builtin and then its argument prototype would still apply. */
24492 char accept ();
24493 /* The GNU C library defines this for functions which it implements
24494 to always fail with ENOSYS. Some functions are actually named
24495 something starting with __ and the normal name is an alias. */
24496 #if defined (__stub_accept) || defined (__stub___accept)
24497 choke me
24498 #else
24499 char (*f) () = accept;
24500 #endif
24501 #ifdef __cplusplus
24503 #endif
24506 main ()
24508 return f != accept;
24510 return 0;
24512 _ACEOF
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24515 (eval $ac_link) 2>conftest.er1
24516 ac_status=$?
24517 grep -v '^ *+' conftest.er1 >conftest.err
24518 rm -f conftest.er1
24519 cat conftest.err >&5
24520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521 (exit $ac_status); } &&
24522 { ac_try='test -z "$ac_c_werror_flag"
24523 || test ! -s conftest.err'
24524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525 (eval $ac_try) 2>&5
24526 ac_status=$?
24527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528 (exit $ac_status); }; } &&
24529 { ac_try='test -s conftest$ac_exeext'
24530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531 (eval $ac_try) 2>&5
24532 ac_status=$?
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; }; then
24535 ac_cv_func_accept=yes
24536 else
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 ac_cv_func_accept=no
24542 rm -f conftest.err conftest.$ac_objext \
24543 conftest$ac_exeext conftest.$ac_ext
24545 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24546 echo "${ECHO_T}$ac_cv_func_accept" >&6
24547 if test $ac_cv_func_accept = yes; then
24548 gcj_checkNsl=0
24549 gcj_cv_lib_sockets="-lsocket -lnsl"
24552 unset ac_cv_func_accept
24553 LIBS=$gcj_oldLibs
24555 unset ac_cv_func_gethostbyname
24556 gcj_oldLibs=$LIBS
24557 LIBS="$LIBS $gcj_cv_lib_sockets"
24558 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24559 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24560 if test "${ac_cv_func_gethostbyname+set}" = set; then
24561 echo $ECHO_N "(cached) $ECHO_C" >&6
24562 else
24563 if test x$gcc_no_link = xyes; then
24564 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24565 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24566 { (exit 1); exit 1; }; }
24568 cat >conftest.$ac_ext <<_ACEOF
24569 /* confdefs.h. */
24570 _ACEOF
24571 cat confdefs.h >>conftest.$ac_ext
24572 cat >>conftest.$ac_ext <<_ACEOF
24573 /* end confdefs.h. */
24574 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24576 #define gethostbyname innocuous_gethostbyname
24578 /* System header to define __stub macros and hopefully few prototypes,
24579 which can conflict with char gethostbyname (); below.
24580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24581 <limits.h> exists even on freestanding compilers. */
24583 #ifdef __STDC__
24584 # include <limits.h>
24585 #else
24586 # include <assert.h>
24587 #endif
24589 #undef gethostbyname
24591 /* Override any gcc2 internal prototype to avoid an error. */
24592 #ifdef __cplusplus
24593 extern "C"
24595 #endif
24596 /* We use char because int might match the return type of a gcc2
24597 builtin and then its argument prototype would still apply. */
24598 char gethostbyname ();
24599 /* The GNU C library defines this for functions which it implements
24600 to always fail with ENOSYS. Some functions are actually named
24601 something starting with __ and the normal name is an alias. */
24602 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24603 choke me
24604 #else
24605 char (*f) () = gethostbyname;
24606 #endif
24607 #ifdef __cplusplus
24609 #endif
24612 main ()
24614 return f != gethostbyname;
24616 return 0;
24618 _ACEOF
24619 rm -f conftest.$ac_objext conftest$ac_exeext
24620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24621 (eval $ac_link) 2>conftest.er1
24622 ac_status=$?
24623 grep -v '^ *+' conftest.er1 >conftest.err
24624 rm -f conftest.er1
24625 cat conftest.err >&5
24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24627 (exit $ac_status); } &&
24628 { ac_try='test -z "$ac_c_werror_flag"
24629 || test ! -s conftest.err'
24630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631 (eval $ac_try) 2>&5
24632 ac_status=$?
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); }; } &&
24635 { ac_try='test -s conftest$ac_exeext'
24636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24637 (eval $ac_try) 2>&5
24638 ac_status=$?
24639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24640 (exit $ac_status); }; }; then
24641 ac_cv_func_gethostbyname=yes
24642 else
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 ac_cv_func_gethostbyname=no
24648 rm -f conftest.err conftest.$ac_objext \
24649 conftest$ac_exeext conftest.$ac_ext
24651 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24652 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24653 if test $ac_cv_func_gethostbyname = yes; then
24655 else
24656 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24657 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24658 if test "${ac_cv_lib_nsl_main+set}" = set; then
24659 echo $ECHO_N "(cached) $ECHO_C" >&6
24660 else
24661 ac_check_lib_save_LIBS=$LIBS
24662 LIBS="-lnsl $LIBS"
24663 if test x$gcc_no_link = xyes; then
24664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24666 { (exit 1); exit 1; }; }
24668 cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h. */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h. */
24677 main ()
24679 main ();
24681 return 0;
24683 _ACEOF
24684 rm -f conftest.$ac_objext conftest$ac_exeext
24685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24686 (eval $ac_link) 2>conftest.er1
24687 ac_status=$?
24688 grep -v '^ *+' conftest.er1 >conftest.err
24689 rm -f conftest.er1
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } &&
24693 { ac_try='test -z "$ac_c_werror_flag"
24694 || test ! -s conftest.err'
24695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696 (eval $ac_try) 2>&5
24697 ac_status=$?
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; } &&
24700 { ac_try='test -s conftest$ac_exeext'
24701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702 (eval $ac_try) 2>&5
24703 ac_status=$?
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; }; then
24706 ac_cv_lib_nsl_main=yes
24707 else
24708 echo "$as_me: failed program was:" >&5
24709 sed 's/^/| /' conftest.$ac_ext >&5
24711 ac_cv_lib_nsl_main=no
24713 rm -f conftest.err conftest.$ac_objext \
24714 conftest$ac_exeext conftest.$ac_ext
24715 LIBS=$ac_check_lib_save_LIBS
24717 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24718 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24719 if test $ac_cv_lib_nsl_main = yes; then
24720 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24725 unset ac_cv_func_gethostbyname
24726 LIBS=$gcj_oldLIBS
24729 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24730 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24731 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24733 if test "$with_system_zlib" = yes; then
24734 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24735 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24736 if test "${ac_cv_lib_z_deflate+set}" = set; then
24737 echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739 ac_check_lib_save_LIBS=$LIBS
24740 LIBS="-lz $LIBS"
24741 if test x$gcc_no_link = xyes; then
24742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24744 { (exit 1); exit 1; }; }
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h. */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24753 /* Override any gcc2 internal prototype to avoid an error. */
24754 #ifdef __cplusplus
24755 extern "C"
24756 #endif
24757 /* We use char because int might match the return type of a gcc2
24758 builtin and then its argument prototype would still apply. */
24759 char deflate ();
24761 main ()
24763 deflate ();
24765 return 0;
24767 _ACEOF
24768 rm -f conftest.$ac_objext conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770 (eval $ac_link) 2>conftest.er1
24771 ac_status=$?
24772 grep -v '^ *+' conftest.er1 >conftest.err
24773 rm -f conftest.er1
24774 cat conftest.err >&5
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); } &&
24777 { ac_try='test -z "$ac_c_werror_flag"
24778 || test ! -s conftest.err'
24779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24780 (eval $ac_try) 2>&5
24781 ac_status=$?
24782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783 (exit $ac_status); }; } &&
24784 { ac_try='test -s conftest$ac_exeext'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; }; then
24790 ac_cv_lib_z_deflate=yes
24791 else
24792 echo "$as_me: failed program was:" >&5
24793 sed 's/^/| /' conftest.$ac_ext >&5
24795 ac_cv_lib_z_deflate=no
24797 rm -f conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
24799 LIBS=$ac_check_lib_save_LIBS
24801 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24802 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24803 if test $ac_cv_lib_z_deflate = yes; then
24804 ZLIBSPEC=-lz
24805 else
24806 ZLIBSPEC=
24811 # Test for Gtk stuff, if asked for.
24812 if test "$use_gtk_awt" = yes; then
24814 succeeded=no
24816 if test -z "$PKG_CONFIG"; then
24817 # Extract the first word of "pkg-config", so it can be a program name with args.
24818 set dummy pkg-config; ac_word=$2
24819 echo "$as_me:$LINENO: checking for $ac_word" >&5
24820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24821 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824 case $PKG_CONFIG in
24825 [\\/]* | ?:[\\/]*)
24826 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24830 for as_dir in $PATH
24832 IFS=$as_save_IFS
24833 test -z "$as_dir" && as_dir=.
24834 for ac_exec_ext in '' $ac_executable_extensions; do
24835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24836 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24838 break 2
24840 done
24841 done
24843 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24845 esac
24847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24849 if test -n "$PKG_CONFIG"; then
24850 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24851 echo "${ECHO_T}$PKG_CONFIG" >&6
24852 else
24853 echo "$as_me:$LINENO: result: no" >&5
24854 echo "${ECHO_T}no" >&6
24859 if test "$PKG_CONFIG" = "no" ; then
24860 echo "*** The pkg-config script could not be found. Make sure it is"
24861 echo "*** in your path, or set the PKG_CONFIG environment variable"
24862 echo "*** to the full path to pkg-config."
24863 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24864 else
24865 PKG_CONFIG_MIN_VERSION=0.9.0
24866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24867 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24868 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24870 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24871 echo "$as_me:$LINENO: result: yes" >&5
24872 echo "${ECHO_T}yes" >&6
24873 succeeded=yes
24875 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24876 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24877 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24878 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24879 echo "${ECHO_T}$GTK_CFLAGS" >&6
24881 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24882 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
24883 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
24884 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
24885 echo "${ECHO_T}$GTK_LIBS" >&6
24886 else
24887 GTK_CFLAGS=""
24888 GTK_LIBS=""
24889 ## If we have a custom action on failure, don't print errors, but
24890 ## do set a variable so people can do so.
24891 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
24892 echo $GTK_PKG_ERRORS
24897 else
24898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24903 if test $succeeded = yes; then
24905 else
24906 { { 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
24907 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;}
24908 { (exit 1); exit 1; }; }
24915 succeeded=no
24917 if test -z "$PKG_CONFIG"; then
24918 # Extract the first word of "pkg-config", so it can be a program name with args.
24919 set dummy pkg-config; ac_word=$2
24920 echo "$as_me:$LINENO: checking for $ac_word" >&5
24921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24922 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24923 echo $ECHO_N "(cached) $ECHO_C" >&6
24924 else
24925 case $PKG_CONFIG in
24926 [\\/]* | ?:[\\/]*)
24927 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24931 for as_dir in $PATH
24933 IFS=$as_save_IFS
24934 test -z "$as_dir" && as_dir=.
24935 for ac_exec_ext in '' $ac_executable_extensions; do
24936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24937 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24939 break 2
24941 done
24942 done
24944 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24946 esac
24948 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24950 if test -n "$PKG_CONFIG"; then
24951 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24952 echo "${ECHO_T}$PKG_CONFIG" >&6
24953 else
24954 echo "$as_me:$LINENO: result: no" >&5
24955 echo "${ECHO_T}no" >&6
24960 if test "$PKG_CONFIG" = "no" ; then
24961 echo "*** The pkg-config script could not be found. Make sure it is"
24962 echo "*** in your path, or set the PKG_CONFIG environment variable"
24963 echo "*** to the full path to pkg-config."
24964 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24965 else
24966 PKG_CONFIG_MIN_VERSION=0.9.0
24967 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24968 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
24969 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
24971 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
24972 echo "$as_me:$LINENO: result: yes" >&5
24973 echo "${ECHO_T}yes" >&6
24974 succeeded=yes
24976 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
24977 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
24978 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24979 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
24980 echo "${ECHO_T}$GLIB_CFLAGS" >&6
24982 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
24983 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
24984 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24985 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
24986 echo "${ECHO_T}$GLIB_LIBS" >&6
24987 else
24988 GLIB_CFLAGS=""
24989 GLIB_LIBS=""
24990 ## If we have a custom action on failure, don't print errors, but
24991 ## do set a variable so people can do so.
24992 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
24993 echo $GLIB_PKG_ERRORS
24998 else
24999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25000 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25004 if test $succeeded = yes; then
25006 else
25007 { { 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
25008 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;}
25009 { (exit 1); exit 1; }; }
25016 succeeded=no
25018 if test -z "$PKG_CONFIG"; then
25019 # Extract the first word of "pkg-config", so it can be a program name with args.
25020 set dummy pkg-config; ac_word=$2
25021 echo "$as_me:$LINENO: checking for $ac_word" >&5
25022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026 case $PKG_CONFIG in
25027 [\\/]* | ?:[\\/]*)
25028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25032 for as_dir in $PATH
25034 IFS=$as_save_IFS
25035 test -z "$as_dir" && as_dir=.
25036 for ac_exec_ext in '' $ac_executable_extensions; do
25037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25040 break 2
25042 done
25043 done
25045 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25047 esac
25049 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25051 if test -n "$PKG_CONFIG"; then
25052 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25053 echo "${ECHO_T}$PKG_CONFIG" >&6
25054 else
25055 echo "$as_me:$LINENO: result: no" >&5
25056 echo "${ECHO_T}no" >&6
25061 if test "$PKG_CONFIG" = "no" ; then
25062 echo "*** The pkg-config script could not be found. Make sure it is"
25063 echo "*** in your path, or set the PKG_CONFIG environment variable"
25064 echo "*** to the full path to pkg-config."
25065 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25066 else
25067 PKG_CONFIG_MIN_VERSION=0.9.0
25068 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25069 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25070 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25072 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25073 echo "$as_me:$LINENO: result: yes" >&5
25074 echo "${ECHO_T}yes" >&6
25075 succeeded=yes
25077 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25078 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25079 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25080 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25081 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25083 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25084 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25085 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25086 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25087 echo "${ECHO_T}$LIBART_LIBS" >&6
25088 else
25089 LIBART_CFLAGS=""
25090 LIBART_LIBS=""
25091 ## If we have a custom action on failure, don't print errors, but
25092 ## do set a variable so people can do so.
25093 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25094 echo $LIBART_PKG_ERRORS
25099 else
25100 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25101 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25105 if test $succeeded = yes; then
25107 else
25108 { { 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
25109 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;}
25110 { (exit 1); exit 1; }; }
25116 # We require the XTest Extension to support java.awt.Robot.
25117 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25118 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25119 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25121 else
25122 ac_check_lib_save_LIBS=$LIBS
25123 LIBS="-lXtst ${X_LIBS} $LIBS"
25124 if test x$gcc_no_link = xyes; then
25125 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25126 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25127 { (exit 1); exit 1; }; }
25129 cat >conftest.$ac_ext <<_ACEOF
25130 /* confdefs.h. */
25131 _ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25136 /* Override any gcc2 internal prototype to avoid an error. */
25137 #ifdef __cplusplus
25138 extern "C"
25139 #endif
25140 /* We use char because int might match the return type of a gcc2
25141 builtin and then its argument prototype would still apply. */
25142 char XTestQueryExtension ();
25144 main ()
25146 XTestQueryExtension ();
25148 return 0;
25150 _ACEOF
25151 rm -f conftest.$ac_objext conftest$ac_exeext
25152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25153 (eval $ac_link) 2>conftest.er1
25154 ac_status=$?
25155 grep -v '^ *+' conftest.er1 >conftest.err
25156 rm -f conftest.er1
25157 cat conftest.err >&5
25158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159 (exit $ac_status); } &&
25160 { ac_try='test -z "$ac_c_werror_flag"
25161 || test ! -s conftest.err'
25162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25164 ac_status=$?
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; } &&
25167 { ac_try='test -s conftest$ac_exeext'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; }; then
25173 ac_cv_lib_Xtst_XTestQueryExtension=yes
25174 else
25175 echo "$as_me: failed program was:" >&5
25176 sed 's/^/| /' conftest.$ac_ext >&5
25178 ac_cv_lib_Xtst_XTestQueryExtension=no
25180 rm -f conftest.err conftest.$ac_objext \
25181 conftest$ac_exeext conftest.$ac_ext
25182 LIBS=$ac_check_lib_save_LIBS
25184 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25185 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25186 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25187 true
25188 else
25189 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25190 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25191 { (exit 1); exit 1; }; }
25196 # On Solaris, and maybe other architectures, the Boehm collector
25197 # requires -ldl.
25198 if test "$GC" = boehm; then
25199 case "${host}" in
25200 mips-sgi-irix6*)
25201 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25202 # libgcj.spec is used, so override here
25203 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25206 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25207 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25208 if test "${ac_cv_lib_dl_main+set}" = set; then
25209 echo $ECHO_N "(cached) $ECHO_C" >&6
25210 else
25211 ac_check_lib_save_LIBS=$LIBS
25212 LIBS="-ldl $LIBS"
25213 if test x$gcc_no_link = xyes; then
25214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25216 { (exit 1); exit 1; }; }
25218 cat >conftest.$ac_ext <<_ACEOF
25219 /* confdefs.h. */
25220 _ACEOF
25221 cat confdefs.h >>conftest.$ac_ext
25222 cat >>conftest.$ac_ext <<_ACEOF
25223 /* end confdefs.h. */
25227 main ()
25229 main ();
25231 return 0;
25233 _ACEOF
25234 rm -f conftest.$ac_objext conftest$ac_exeext
25235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25236 (eval $ac_link) 2>conftest.er1
25237 ac_status=$?
25238 grep -v '^ *+' conftest.er1 >conftest.err
25239 rm -f conftest.er1
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } &&
25243 { ac_try='test -z "$ac_c_werror_flag"
25244 || test ! -s conftest.err'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; } &&
25250 { ac_try='test -s conftest$ac_exeext'
25251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25252 (eval $ac_try) 2>&5
25253 ac_status=$?
25254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25255 (exit $ac_status); }; }; then
25256 ac_cv_lib_dl_main=yes
25257 else
25258 echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25261 ac_cv_lib_dl_main=no
25263 rm -f conftest.err conftest.$ac_objext \
25264 conftest$ac_exeext conftest.$ac_ext
25265 LIBS=$ac_check_lib_save_LIBS
25267 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25268 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25269 if test $ac_cv_lib_dl_main = yes; then
25270 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25274 esac
25278 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25279 case $build in
25280 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25281 *) CLASSPATH_SEPARATOR=':' ;;
25282 esac
25285 # We must search the source tree for java.lang, since we still don't
25286 # have libgcj.jar nor java/lang/*.class
25287 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25288 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25290 # Since some classes depend on this one, we need its source available
25291 # before we can do any GCJ compilation test :-(
25292 if test ! -f gnu/classpath/Configuration.java; then
25293 test -d gnu || mkdir gnu
25294 test -d gnu/classpath || mkdir gnu/classpath
25295 # Note that it is not crucial that all the values here be correct.
25296 sed -e "s,@prefix@,$prefix," \
25297 -e "s,@VERSION@,$VERSION," \
25298 -e "s,@LIBDEBUG@,false," \
25299 -e "s,@INIT_LOAD_LIBRARY@,false," \
25300 -e "s,@@,$LIBGCJDEBUG," \
25301 -e "s,@default_toolkit@,$TOOLKIT," \
25302 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25303 -e "s,@GTK_CAIRO_ENABLED@,false," \
25304 -e "s,@ECJ_JAR@,," \
25305 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25306 > gnu/classpath/Configuration.java
25307 # We do not want to redirect the output of the grep below to /dev/null,
25308 # but we add /dev/null to the input list so that grep will print the
25309 # filename of Configuration.java in case it finds any matches.
25310 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25311 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25312 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25313 { (exit 1); exit 1; }; }
25318 for ac_prog in gcj
25320 # Extract the first word of "$ac_prog", so it can be a program name with args.
25321 set dummy $ac_prog; ac_word=$2
25322 echo "$as_me:$LINENO: checking for $ac_word" >&5
25323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25324 if test "${ac_cv_prog_GCJ+set}" = set; then
25325 echo $ECHO_N "(cached) $ECHO_C" >&6
25326 else
25327 if test -n "$GCJ"; then
25328 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25329 else
25330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25331 for as_dir in $PATH
25333 IFS=$as_save_IFS
25334 test -z "$as_dir" && as_dir=.
25335 for ac_exec_ext in '' $ac_executable_extensions; do
25336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25337 ac_cv_prog_GCJ="$ac_prog"
25338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25339 break 2
25341 done
25342 done
25346 GCJ=$ac_cv_prog_GCJ
25347 if test -n "$GCJ"; then
25348 echo "$as_me:$LINENO: result: $GCJ" >&5
25349 echo "${ECHO_T}$GCJ" >&6
25350 else
25351 echo "$as_me:$LINENO: result: no" >&5
25352 echo "${ECHO_T}no" >&6
25355 test -n "$GCJ" && break
25356 done
25357 test -n "$GCJ" || GCJ="gcj"
25359 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25360 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25361 { (exit 1); exit 1; }; }
25362 if test "x${GCJFLAGS-unset}" = xunset; then
25363 GCJFLAGS="-g -O2"
25367 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25369 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25370 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25371 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25372 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 else
25374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25375 # We make a subdir and do the tests there. Otherwise we can end up
25376 # making bogus files that we don't know about and never remove. For
25377 # instance it was reported that on HP-UX the gcc test will end up
25378 # making a dummy file named `D' -- because `-MD' means `put the output
25379 # in D'.
25380 mkdir conftest.dir
25381 # Copy depcomp to subdir because otherwise we won't find it if we're
25382 # using a relative directory.
25383 cp "$am_depcomp" conftest.dir
25384 cd conftest.dir
25385 # We will build objects and dependencies in a subdirectory because
25386 # it helps to detect inapplicable dependency modes. For instance
25387 # both Tru64's cc and ICC support -MD to output dependencies as a
25388 # side effect of compilation, but ICC will put the dependencies in
25389 # the current directory while Tru64 will put them in the object
25390 # directory.
25391 mkdir sub
25393 am_cv_GCJ_dependencies_compiler_type=none
25394 if test "$am_compiler_list" = ""; then
25395 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25397 for depmode in $am_compiler_list; do
25398 # Setup a source with many dependencies, because some compilers
25399 # like to wrap large dependency lists on column 80 (with \), and
25400 # we should not choose a depcomp mode which is confused by this.
25402 # We need to recreate these files for each test, as the compiler may
25403 # overwrite some of them when testing with obscure command lines.
25404 # This happens at least with the AIX C compiler.
25405 : > sub/conftest.c
25406 for i in 1 2 3 4 5 6; do
25407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25408 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25409 # Solaris 8's {/usr,}/bin/sh.
25410 touch sub/conftst$i.h
25411 done
25412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25414 case $depmode in
25415 nosideeffect)
25416 # after this tag, mechanisms are not by side-effect, so they'll
25417 # only be used when explicitly requested
25418 if test "x$enable_dependency_tracking" = xyes; then
25419 continue
25420 else
25421 break
25424 none) break ;;
25425 esac
25426 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25427 # mode. It turns out that the SunPro C++ compiler does not properly
25428 # handle `-M -o', and we need to detect this.
25429 if depmode=$depmode \
25430 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25432 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25433 >/dev/null 2>conftest.err &&
25434 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25435 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25436 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25437 # icc doesn't choke on unknown options, it will just issue warnings
25438 # or remarks (even with -Werror). So we grep stderr for any message
25439 # that says an option was ignored or not supported.
25440 # When given -MP, icc 7.0 and 7.1 complain thusly:
25441 # icc: Command line warning: ignoring option '-M'; no argument required
25442 # The diagnosis changed in icc 8.0:
25443 # icc: Command line remark: option '-MP' not supported
25444 if (grep 'ignoring option' conftest.err ||
25445 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25446 am_cv_GCJ_dependencies_compiler_type=$depmode
25447 break
25450 done
25452 cd ..
25453 rm -rf conftest.dir
25454 else
25455 am_cv_GCJ_dependencies_compiler_type=none
25459 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25460 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25461 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25466 test "x$enable_dependency_tracking" != xno \
25467 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25468 am__fastdepGCJ_TRUE=
25469 am__fastdepGCJ_FALSE='#'
25470 else
25471 am__fastdepGCJ_TRUE='#'
25472 am__fastdepGCJ_FALSE=
25478 # Now remove it.
25479 rm -f gnu/classpath/Configuration.java
25481 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25483 echo "$as_me:$LINENO: checking for void *" >&5
25484 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25485 if test "${ac_cv_type_void_p+set}" = set; then
25486 echo $ECHO_N "(cached) $ECHO_C" >&6
25487 else
25488 cat >conftest.$ac_ext <<_ACEOF
25489 /* confdefs.h. */
25490 _ACEOF
25491 cat confdefs.h >>conftest.$ac_ext
25492 cat >>conftest.$ac_ext <<_ACEOF
25493 /* end confdefs.h. */
25494 $ac_includes_default
25496 main ()
25498 if ((void * *) 0)
25499 return 0;
25500 if (sizeof (void *))
25501 return 0;
25503 return 0;
25505 _ACEOF
25506 rm -f conftest.$ac_objext
25507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25508 (eval $ac_compile) 2>conftest.er1
25509 ac_status=$?
25510 grep -v '^ *+' conftest.er1 >conftest.err
25511 rm -f conftest.er1
25512 cat conftest.err >&5
25513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514 (exit $ac_status); } &&
25515 { ac_try='test -z "$ac_c_werror_flag"
25516 || test ! -s conftest.err'
25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518 (eval $ac_try) 2>&5
25519 ac_status=$?
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); }; } &&
25522 { ac_try='test -s conftest.$ac_objext'
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; }; then
25528 ac_cv_type_void_p=yes
25529 else
25530 echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25533 ac_cv_type_void_p=no
25535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25537 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25538 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25540 echo "$as_me:$LINENO: checking size of void *" >&5
25541 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25542 if test "${ac_cv_sizeof_void_p+set}" = set; then
25543 echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545 if test "$ac_cv_type_void_p" = yes; then
25546 # The cast to unsigned long works around a bug in the HP C Compiler
25547 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25548 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25549 # This bug is HP SR number 8606223364.
25550 if test "$cross_compiling" = yes; then
25551 # Depending upon the size, compute the lo and hi bounds.
25552 cat >conftest.$ac_ext <<_ACEOF
25553 /* confdefs.h. */
25554 _ACEOF
25555 cat confdefs.h >>conftest.$ac_ext
25556 cat >>conftest.$ac_ext <<_ACEOF
25557 /* end confdefs.h. */
25558 $ac_includes_default
25560 main ()
25562 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25563 test_array [0] = 0
25566 return 0;
25568 _ACEOF
25569 rm -f conftest.$ac_objext
25570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25571 (eval $ac_compile) 2>conftest.er1
25572 ac_status=$?
25573 grep -v '^ *+' conftest.er1 >conftest.err
25574 rm -f conftest.er1
25575 cat conftest.err >&5
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); } &&
25578 { ac_try='test -z "$ac_c_werror_flag"
25579 || test ! -s conftest.err'
25580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581 (eval $ac_try) 2>&5
25582 ac_status=$?
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); }; } &&
25585 { ac_try='test -s conftest.$ac_objext'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; }; then
25591 ac_lo=0 ac_mid=0
25592 while :; do
25593 cat >conftest.$ac_ext <<_ACEOF
25594 /* confdefs.h. */
25595 _ACEOF
25596 cat confdefs.h >>conftest.$ac_ext
25597 cat >>conftest.$ac_ext <<_ACEOF
25598 /* end confdefs.h. */
25599 $ac_includes_default
25601 main ()
25603 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25604 test_array [0] = 0
25607 return 0;
25609 _ACEOF
25610 rm -f conftest.$ac_objext
25611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25612 (eval $ac_compile) 2>conftest.er1
25613 ac_status=$?
25614 grep -v '^ *+' conftest.er1 >conftest.err
25615 rm -f conftest.er1
25616 cat conftest.err >&5
25617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25618 (exit $ac_status); } &&
25619 { ac_try='test -z "$ac_c_werror_flag"
25620 || test ! -s conftest.err'
25621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622 (eval $ac_try) 2>&5
25623 ac_status=$?
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); }; } &&
25626 { ac_try='test -s conftest.$ac_objext'
25627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25628 (eval $ac_try) 2>&5
25629 ac_status=$?
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
25632 ac_hi=$ac_mid; break
25633 else
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 ac_lo=`expr $ac_mid + 1`
25638 if test $ac_lo -le $ac_mid; then
25639 ac_lo= ac_hi=
25640 break
25642 ac_mid=`expr 2 '*' $ac_mid + 1`
25644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25645 done
25646 else
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h. */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 $ac_includes_default
25658 main ()
25660 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25661 test_array [0] = 0
25664 return 0;
25666 _ACEOF
25667 rm -f conftest.$ac_objext
25668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25669 (eval $ac_compile) 2>conftest.er1
25670 ac_status=$?
25671 grep -v '^ *+' conftest.er1 >conftest.err
25672 rm -f conftest.er1
25673 cat conftest.err >&5
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } &&
25676 { ac_try='test -z "$ac_c_werror_flag"
25677 || test ! -s conftest.err'
25678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25679 (eval $ac_try) 2>&5
25680 ac_status=$?
25681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682 (exit $ac_status); }; } &&
25683 { ac_try='test -s conftest.$ac_objext'
25684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25685 (eval $ac_try) 2>&5
25686 ac_status=$?
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; }; then
25689 ac_hi=-1 ac_mid=-1
25690 while :; do
25691 cat >conftest.$ac_ext <<_ACEOF
25692 /* confdefs.h. */
25693 _ACEOF
25694 cat confdefs.h >>conftest.$ac_ext
25695 cat >>conftest.$ac_ext <<_ACEOF
25696 /* end confdefs.h. */
25697 $ac_includes_default
25699 main ()
25701 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25702 test_array [0] = 0
25705 return 0;
25707 _ACEOF
25708 rm -f conftest.$ac_objext
25709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25710 (eval $ac_compile) 2>conftest.er1
25711 ac_status=$?
25712 grep -v '^ *+' conftest.er1 >conftest.err
25713 rm -f conftest.er1
25714 cat conftest.err >&5
25715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25716 (exit $ac_status); } &&
25717 { ac_try='test -z "$ac_c_werror_flag"
25718 || test ! -s conftest.err'
25719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720 (eval $ac_try) 2>&5
25721 ac_status=$?
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); }; } &&
25724 { ac_try='test -s conftest.$ac_objext'
25725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; }; then
25730 ac_lo=$ac_mid; break
25731 else
25732 echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 ac_hi=`expr '(' $ac_mid ')' - 1`
25736 if test $ac_mid -le $ac_hi; then
25737 ac_lo= ac_hi=
25738 break
25740 ac_mid=`expr 2 '*' $ac_mid`
25742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25743 done
25744 else
25745 echo "$as_me: failed program was:" >&5
25746 sed 's/^/| /' conftest.$ac_ext >&5
25748 ac_lo= ac_hi=
25750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25753 # Binary search between lo and hi bounds.
25754 while test "x$ac_lo" != "x$ac_hi"; do
25755 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25756 cat >conftest.$ac_ext <<_ACEOF
25757 /* confdefs.h. */
25758 _ACEOF
25759 cat confdefs.h >>conftest.$ac_ext
25760 cat >>conftest.$ac_ext <<_ACEOF
25761 /* end confdefs.h. */
25762 $ac_includes_default
25764 main ()
25766 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25767 test_array [0] = 0
25770 return 0;
25772 _ACEOF
25773 rm -f conftest.$ac_objext
25774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25775 (eval $ac_compile) 2>conftest.er1
25776 ac_status=$?
25777 grep -v '^ *+' conftest.er1 >conftest.err
25778 rm -f conftest.er1
25779 cat conftest.err >&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } &&
25782 { ac_try='test -z "$ac_c_werror_flag"
25783 || test ! -s conftest.err'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; } &&
25789 { ac_try='test -s conftest.$ac_objext'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25792 ac_status=$?
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; }; then
25795 ac_hi=$ac_mid
25796 else
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 ac_lo=`expr '(' $ac_mid ')' + 1`
25802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25803 done
25804 case $ac_lo in
25805 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25806 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25807 See \`config.log' for more details." >&5
25808 echo "$as_me: error: cannot compute sizeof (void *), 77
25809 See \`config.log' for more details." >&2;}
25810 { (exit 1); exit 1; }; } ;;
25811 esac
25812 else
25813 if test "$cross_compiling" = yes; then
25814 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25815 See \`config.log' for more details." >&5
25816 echo "$as_me: error: cannot run test program while cross compiling
25817 See \`config.log' for more details." >&2;}
25818 { (exit 1); exit 1; }; }
25819 else
25820 cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h. */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25826 $ac_includes_default
25827 long longval () { return (long) (sizeof (void *)); }
25828 unsigned long ulongval () { return (long) (sizeof (void *)); }
25829 #include <stdio.h>
25830 #include <stdlib.h>
25832 main ()
25835 FILE *f = fopen ("conftest.val", "w");
25836 if (! f)
25837 exit (1);
25838 if (((long) (sizeof (void *))) < 0)
25840 long i = longval ();
25841 if (i != ((long) (sizeof (void *))))
25842 exit (1);
25843 fprintf (f, "%ld\n", i);
25845 else
25847 unsigned long i = ulongval ();
25848 if (i != ((long) (sizeof (void *))))
25849 exit (1);
25850 fprintf (f, "%lu\n", i);
25852 exit (ferror (f) || fclose (f) != 0);
25855 return 0;
25857 _ACEOF
25858 rm -f conftest$ac_exeext
25859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25860 (eval $ac_link) 2>&5
25861 ac_status=$?
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 ac_cv_sizeof_void_p=`cat conftest.val`
25870 else
25871 echo "$as_me: program exited with status $ac_status" >&5
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25875 ( exit $ac_status )
25876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25877 See \`config.log' for more details." >&5
25878 echo "$as_me: error: cannot compute sizeof (void *), 77
25879 See \`config.log' for more details." >&2;}
25880 { (exit 1); exit 1; }; }
25882 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25885 rm -f conftest.val
25886 else
25887 ac_cv_sizeof_void_p=0
25890 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25891 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25892 cat >>confdefs.h <<_ACEOF
25893 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25894 _ACEOF
25898 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
25899 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
25900 if test "${ac_cv_c_bigendian+set}" = set; then
25901 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903 # See if sys/param.h defines the BYTE_ORDER macro.
25904 cat >conftest.$ac_ext <<_ACEOF
25905 /* confdefs.h. */
25906 _ACEOF
25907 cat confdefs.h >>conftest.$ac_ext
25908 cat >>conftest.$ac_ext <<_ACEOF
25909 /* end confdefs.h. */
25910 #include <sys/types.h>
25911 #include <sys/param.h>
25914 main ()
25916 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
25917 bogus endian macros
25918 #endif
25921 return 0;
25923 _ACEOF
25924 rm -f conftest.$ac_objext
25925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25926 (eval $ac_compile) 2>conftest.er1
25927 ac_status=$?
25928 grep -v '^ *+' conftest.er1 >conftest.err
25929 rm -f conftest.er1
25930 cat conftest.err >&5
25931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25932 (exit $ac_status); } &&
25933 { ac_try='test -z "$ac_c_werror_flag"
25934 || test ! -s conftest.err'
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; } &&
25940 { ac_try='test -s conftest.$ac_objext'
25941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25942 (eval $ac_try) 2>&5
25943 ac_status=$?
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; }; then
25946 # It does; now see whether it defined to BIG_ENDIAN or not.
25947 cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h. */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h. */
25953 #include <sys/types.h>
25954 #include <sys/param.h>
25957 main ()
25959 #if BYTE_ORDER != BIG_ENDIAN
25960 not big endian
25961 #endif
25964 return 0;
25966 _ACEOF
25967 rm -f conftest.$ac_objext
25968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25969 (eval $ac_compile) 2>conftest.er1
25970 ac_status=$?
25971 grep -v '^ *+' conftest.er1 >conftest.err
25972 rm -f conftest.er1
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } &&
25976 { ac_try='test -z "$ac_c_werror_flag"
25977 || test ! -s conftest.err'
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; } &&
25983 { ac_try='test -s conftest.$ac_objext'
25984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25985 (eval $ac_try) 2>&5
25986 ac_status=$?
25987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988 (exit $ac_status); }; }; then
25989 ac_cv_c_bigendian=yes
25990 else
25991 echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25994 ac_cv_c_bigendian=no
25996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25997 else
25998 echo "$as_me: failed program was:" >&5
25999 sed 's/^/| /' conftest.$ac_ext >&5
26001 # It does not; compile a test program.
26002 if test "$cross_compiling" = yes; then
26003 # try to guess the endianness by grepping values into an object file
26004 ac_cv_c_bigendian=unknown
26005 cat >conftest.$ac_ext <<_ACEOF
26006 /* confdefs.h. */
26007 _ACEOF
26008 cat confdefs.h >>conftest.$ac_ext
26009 cat >>conftest.$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26012 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26013 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26014 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26015 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26016 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26018 main ()
26020 _ascii (); _ebcdic ();
26022 return 0;
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26027 (eval $ac_compile) 2>conftest.er1
26028 ac_status=$?
26029 grep -v '^ *+' conftest.er1 >conftest.err
26030 rm -f conftest.er1
26031 cat conftest.err >&5
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); } &&
26034 { ac_try='test -z "$ac_c_werror_flag"
26035 || test ! -s conftest.err'
26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26038 ac_status=$?
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; } &&
26041 { ac_try='test -s conftest.$ac_objext'
26042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26043 (eval $ac_try) 2>&5
26044 ac_status=$?
26045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046 (exit $ac_status); }; }; then
26047 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26048 ac_cv_c_bigendian=yes
26050 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26051 if test "$ac_cv_c_bigendian" = unknown; then
26052 ac_cv_c_bigendian=no
26053 else
26054 # finding both strings is unlikely to happen, but who knows?
26055 ac_cv_c_bigendian=unknown
26058 else
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26064 else
26065 cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h. */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h. */
26072 main ()
26074 /* Are we little or big endian? From Harbison&Steele. */
26075 union
26077 long l;
26078 char c[sizeof (long)];
26079 } u;
26080 u.l = 1;
26081 exit (u.c[sizeof (long) - 1] == 1);
26083 _ACEOF
26084 rm -f conftest$ac_exeext
26085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26086 (eval $ac_link) 2>&5
26087 ac_status=$?
26088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26091 (eval $ac_try) 2>&5
26092 ac_status=$?
26093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094 (exit $ac_status); }; }; then
26095 ac_cv_c_bigendian=no
26096 else
26097 echo "$as_me: program exited with status $ac_status" >&5
26098 echo "$as_me: failed program was:" >&5
26099 sed 's/^/| /' conftest.$ac_ext >&5
26101 ( exit $ac_status )
26102 ac_cv_c_bigendian=yes
26104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26109 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26110 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26111 case $ac_cv_c_bigendian in
26112 yes)
26114 cat >>confdefs.h <<\_ACEOF
26115 #define WORDS_BIGENDIAN 1
26116 _ACEOF
26121 { { echo "$as_me:$LINENO: error: unknown endianness
26122 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26123 echo "$as_me: error: unknown endianness
26124 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26125 { (exit 1); exit 1; }; } ;;
26126 esac
26129 ZLIBS=
26130 SYS_ZLIBS=
26131 ZINCS=
26133 if test -z "$ZLIBSPEC"; then
26134 # Use zlib from the GCC tree.
26135 ZINCS='-I$(top_srcdir)/../zlib'
26136 ZLIBS=../zlib/libzgcj_convenience.la
26137 else
26138 # System's zlib.
26139 SYS_ZLIBS="$ZLIBSPEC"
26152 if test "$NATIVE" = yes; then
26153 NATIVE_TRUE=
26154 NATIVE_FALSE='#'
26155 else
26156 NATIVE_TRUE='#'
26157 NATIVE_FALSE=
26162 if test "$enable_shared" = yes; then
26163 ENABLE_SHARED_TRUE=
26164 ENABLE_SHARED_FALSE='#'
26165 else
26166 ENABLE_SHARED_TRUE='#'
26167 ENABLE_SHARED_FALSE=
26172 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26173 NEEDS_DATA_START_TRUE=
26174 NEEDS_DATA_START_FALSE='#'
26175 else
26176 NEEDS_DATA_START_TRUE='#'
26177 NEEDS_DATA_START_FALSE=
26182 # Process the option "--enable-version-specific-runtime-libs"
26183 # Calculate toolexeclibdir
26184 case ${version_specific_libs} in
26185 yes)
26186 # Need the gcc compiler version to know where to install libraries
26187 # and header files if --enable-version-specific-runtime-libs option
26188 # is selected.
26189 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26190 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26191 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26192 toolexeclibdir=$toolexecmainlibdir
26195 if test -n "$with_cross_host" &&
26196 test x"$with_cross_host" != x"no"; then
26197 # Install a library built with a cross compiler in tooldir, not libdir.
26198 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26199 toolexecmainlibdir='$(toolexecdir)/lib'
26200 else
26201 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26202 toolexecmainlibdir='$(libdir)'
26204 multi_os_directory=`$CC -print-multi-os-directory`
26205 case $multi_os_directory in
26206 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26207 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26208 esac
26210 esac
26215 # Determine gcj and libgcj version number.
26216 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26217 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26218 GCJVERSION=$gcjversion
26221 cat >>confdefs.h <<_ACEOF
26222 #define GCJVERSION "$GCJVERSION"
26223 _ACEOF
26226 # Determine where the standard .db file and GNU Classpath JNI
26227 # libraries are found.
26228 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26229 multi_os_directory=`$CC -print-multi-os-directory`
26230 case $multi_os_directory in
26232 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26235 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26237 esac
26241 cat >>confdefs.h <<\_ACEOF
26242 #define JV_VERSION "1.5.0"
26243 _ACEOF
26246 cat >>confdefs.h <<\_ACEOF
26247 #define JV_API_VERSION "1.5"
26248 _ACEOF
26252 case "${with_gxx_include_dir}" in
26253 yes)
26254 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26255 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26256 { (exit 1); exit 1; }; }
26258 no | "")
26259 case "${enable_version_specific_runtime_libs}" in
26260 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26262 libstdcxx_incdir='c++/$(gcc_version)'
26263 gxx_include_dir='include/$(libstdcxx_incdir)'
26264 if test -n "$with_cross_host" &&
26265 test x"$with_cross_host" != x"no"; then
26266 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26267 else
26268 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26269 fi;;
26270 esac ;;
26271 *) gxx_include_dir=${with_gxx_include_dir} ;;
26272 esac
26277 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26278 # On that system, sys/ioctl.h will not include sys/filio.h unless
26279 # BSD_COMP is defined; just including sys/filio.h is simpler.
26280 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26281 # for now. If you change this, you also must update natFile.cc.
26305 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26306 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26307 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26308 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26309 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26313 echo "$as_me:$LINENO: checking for $ac_header" >&5
26314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26316 echo $ECHO_N "(cached) $ECHO_C" >&6
26318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26320 else
26321 # Is the header compilable?
26322 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26323 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26324 cat >conftest.$ac_ext <<_ACEOF
26325 /* confdefs.h. */
26326 _ACEOF
26327 cat confdefs.h >>conftest.$ac_ext
26328 cat >>conftest.$ac_ext <<_ACEOF
26329 /* end confdefs.h. */
26330 $ac_includes_default
26331 #include <$ac_header>
26332 _ACEOF
26333 rm -f conftest.$ac_objext
26334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26335 (eval $ac_compile) 2>conftest.er1
26336 ac_status=$?
26337 grep -v '^ *+' conftest.er1 >conftest.err
26338 rm -f conftest.er1
26339 cat conftest.err >&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); } &&
26342 { ac_try='test -z "$ac_c_werror_flag"
26343 || test ! -s conftest.err'
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; } &&
26349 { ac_try='test -s conftest.$ac_objext'
26350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26351 (eval $ac_try) 2>&5
26352 ac_status=$?
26353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354 (exit $ac_status); }; }; then
26355 ac_header_compiler=yes
26356 else
26357 echo "$as_me: failed program was:" >&5
26358 sed 's/^/| /' conftest.$ac_ext >&5
26360 ac_header_compiler=no
26362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26363 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26364 echo "${ECHO_T}$ac_header_compiler" >&6
26366 # Is the header present?
26367 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26369 cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h. */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h. */
26375 #include <$ac_header>
26376 _ACEOF
26377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } >/dev/null; then
26385 if test -s conftest.err; then
26386 ac_cpp_err=$ac_c_preproc_warn_flag
26387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26388 else
26389 ac_cpp_err=
26391 else
26392 ac_cpp_err=yes
26394 if test -z "$ac_cpp_err"; then
26395 ac_header_preproc=yes
26396 else
26397 echo "$as_me: failed program was:" >&5
26398 sed 's/^/| /' conftest.$ac_ext >&5
26400 ac_header_preproc=no
26402 rm -f conftest.err conftest.$ac_ext
26403 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26404 echo "${ECHO_T}$ac_header_preproc" >&6
26406 # So? What about this header?
26407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26408 yes:no: )
26409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26413 ac_header_preproc=yes
26415 no:yes:* )
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26429 cat <<\_ASBOX
26430 ## ---------------------------------- ##
26431 ## Report this to the libjava lists. ##
26432 ## ---------------------------------- ##
26433 _ASBOX
26435 sed "s/^/$as_me: WARNING: /" >&2
26437 esac
26438 echo "$as_me:$LINENO: checking for $ac_header" >&5
26439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443 eval "$as_ac_Header=\$ac_header_preproc"
26445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26450 cat >>confdefs.h <<_ACEOF
26451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26452 _ACEOF
26456 done
26459 for ac_header in inttypes.h
26461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26463 echo "$as_me:$LINENO: checking for $ac_header" >&5
26464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26466 echo $ECHO_N "(cached) $ECHO_C" >&6
26468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26470 else
26471 # Is the header compilable?
26472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26474 cat >conftest.$ac_ext <<_ACEOF
26475 /* confdefs.h. */
26476 _ACEOF
26477 cat confdefs.h >>conftest.$ac_ext
26478 cat >>conftest.$ac_ext <<_ACEOF
26479 /* end confdefs.h. */
26480 $ac_includes_default
26481 #include <$ac_header>
26482 _ACEOF
26483 rm -f conftest.$ac_objext
26484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26485 (eval $ac_compile) 2>conftest.er1
26486 ac_status=$?
26487 grep -v '^ *+' conftest.er1 >conftest.err
26488 rm -f conftest.er1
26489 cat conftest.err >&5
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); } &&
26492 { ac_try='test -z "$ac_c_werror_flag"
26493 || test ! -s conftest.err'
26494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495 (eval $ac_try) 2>&5
26496 ac_status=$?
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); }; } &&
26499 { ac_try='test -s conftest.$ac_objext'
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; }; then
26505 ac_header_compiler=yes
26506 else
26507 echo "$as_me: failed program was:" >&5
26508 sed 's/^/| /' conftest.$ac_ext >&5
26510 ac_header_compiler=no
26512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26514 echo "${ECHO_T}$ac_header_compiler" >&6
26516 # Is the header present?
26517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26519 cat >conftest.$ac_ext <<_ACEOF
26520 /* confdefs.h. */
26521 _ACEOF
26522 cat confdefs.h >>conftest.$ac_ext
26523 cat >>conftest.$ac_ext <<_ACEOF
26524 /* end confdefs.h. */
26525 #include <$ac_header>
26526 _ACEOF
26527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } >/dev/null; then
26535 if test -s conftest.err; then
26536 ac_cpp_err=$ac_c_preproc_warn_flag
26537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26538 else
26539 ac_cpp_err=
26541 else
26542 ac_cpp_err=yes
26544 if test -z "$ac_cpp_err"; then
26545 ac_header_preproc=yes
26546 else
26547 echo "$as_me: failed program was:" >&5
26548 sed 's/^/| /' conftest.$ac_ext >&5
26550 ac_header_preproc=no
26552 rm -f conftest.err conftest.$ac_ext
26553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26554 echo "${ECHO_T}$ac_header_preproc" >&6
26556 # So? What about this header?
26557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26558 yes:no: )
26559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26563 ac_header_preproc=yes
26565 no:yes:* )
26566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26579 cat <<\_ASBOX
26580 ## ---------------------------------- ##
26581 ## Report this to the libjava lists. ##
26582 ## ---------------------------------- ##
26583 _ASBOX
26585 sed "s/^/$as_me: WARNING: /" >&2
26587 esac
26588 echo "$as_me:$LINENO: checking for $ac_header" >&5
26589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26591 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 else
26593 eval "$as_ac_Header=\$ac_header_preproc"
26595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26600 cat >>confdefs.h <<_ACEOF
26601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26602 _ACEOF
26605 cat >>confdefs.h <<\_ACEOF
26606 #define HAVE_INTTYPES_H 1
26607 _ACEOF
26610 cat >>confdefs.h <<\_ACEOF
26611 #define JV_HAVE_INTTYPES_H 1
26612 _ACEOF
26617 done
26620 echo "$as_me:$LINENO: checking for ssize_t" >&5
26621 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26622 if test "${ac_cv_type_ssize_t+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 else
26625 cat >conftest.$ac_ext <<_ACEOF
26626 /* confdefs.h. */
26627 _ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26631 $ac_includes_default
26633 main ()
26635 if ((ssize_t *) 0)
26636 return 0;
26637 if (sizeof (ssize_t))
26638 return 0;
26640 return 0;
26642 _ACEOF
26643 rm -f conftest.$ac_objext
26644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26645 (eval $ac_compile) 2>conftest.er1
26646 ac_status=$?
26647 grep -v '^ *+' conftest.er1 >conftest.err
26648 rm -f conftest.er1
26649 cat conftest.err >&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); } &&
26652 { ac_try='test -z "$ac_c_werror_flag"
26653 || test ! -s conftest.err'
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; } &&
26659 { ac_try='test -s conftest.$ac_objext'
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; }; then
26665 ac_cv_type_ssize_t=yes
26666 else
26667 echo "$as_me: failed program was:" >&5
26668 sed 's/^/| /' conftest.$ac_ext >&5
26670 ac_cv_type_ssize_t=no
26672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26674 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26675 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26676 if test $ac_cv_type_ssize_t = yes; then
26678 else
26680 cat >>confdefs.h <<_ACEOF
26681 #define ssize_t int
26682 _ACEOF
26686 echo "$as_me:$LINENO: checking for magic_t" >&5
26687 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26688 if test "${ac_cv_type_magic_t+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26690 else
26691 cat >conftest.$ac_ext <<_ACEOF
26692 /* confdefs.h. */
26693 _ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h. */
26698 #ifdef HAVE_MAGIC_H
26699 #include <magic.h>
26700 #endif
26703 main ()
26705 if ((magic_t *) 0)
26706 return 0;
26707 if (sizeof (magic_t))
26708 return 0;
26710 return 0;
26712 _ACEOF
26713 rm -f conftest.$ac_objext
26714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26715 (eval $ac_compile) 2>conftest.er1
26716 ac_status=$?
26717 grep -v '^ *+' conftest.er1 >conftest.err
26718 rm -f conftest.er1
26719 cat conftest.err >&5
26720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26721 (exit $ac_status); } &&
26722 { ac_try='test -z "$ac_c_werror_flag"
26723 || test ! -s conftest.err'
26724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26725 (eval $ac_try) 2>&5
26726 ac_status=$?
26727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728 (exit $ac_status); }; } &&
26729 { ac_try='test -s conftest.$ac_objext'
26730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731 (eval $ac_try) 2>&5
26732 ac_status=$?
26733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734 (exit $ac_status); }; }; then
26735 ac_cv_type_magic_t=yes
26736 else
26737 echo "$as_me: failed program was:" >&5
26738 sed 's/^/| /' conftest.$ac_ext >&5
26740 ac_cv_type_magic_t=no
26742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26744 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26745 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26746 if test $ac_cv_type_magic_t = yes; then
26749 cat >>confdefs.h <<\_ACEOF
26750 #define HAVE_MAGIC_T 1
26751 _ACEOF
26756 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26757 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26758 cat >conftest.$ac_ext <<_ACEOF
26759 /* confdefs.h. */
26760 _ACEOF
26761 cat confdefs.h >>conftest.$ac_ext
26762 cat >>conftest.$ac_ext <<_ACEOF
26763 /* end confdefs.h. */
26764 #include <sys/types.h>
26765 #if STDC_HEADERS
26766 #include <stdlib.h>
26767 #include <stddef.h>
26768 #endif
26769 #if HAVE_NETINET_IN_H
26770 #include <netinet/in.h>
26771 #endif
26773 main ()
26775 in_addr_t foo;
26777 return 0;
26779 _ACEOF
26780 rm -f conftest.$ac_objext
26781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26782 (eval $ac_compile) 2>conftest.er1
26783 ac_status=$?
26784 grep -v '^ *+' conftest.er1 >conftest.err
26785 rm -f conftest.er1
26786 cat conftest.err >&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); } &&
26789 { ac_try='test -z "$ac_c_werror_flag"
26790 || test ! -s conftest.err'
26791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26792 (eval $ac_try) 2>&5
26793 ac_status=$?
26794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795 (exit $ac_status); }; } &&
26796 { ac_try='test -s conftest.$ac_objext'
26797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26798 (eval $ac_try) 2>&5
26799 ac_status=$?
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); }; }; then
26803 cat >>confdefs.h <<\_ACEOF
26804 #define HAVE_IN_ADDR_T 1
26805 _ACEOF
26807 echo "$as_me:$LINENO: result: yes" >&5
26808 echo "${ECHO_T}yes" >&6
26809 else
26810 echo "$as_me: failed program was:" >&5
26811 sed 's/^/| /' conftest.$ac_ext >&5
26813 echo "$as_me:$LINENO: result: no" >&5
26814 echo "${ECHO_T}no" >&6
26816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26818 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26819 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26820 cat >conftest.$ac_ext <<_ACEOF
26821 /* confdefs.h. */
26822 _ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826 #include <netinet/in.h>
26828 main ()
26830 struct ip_mreq mreq;
26832 return 0;
26834 _ACEOF
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837 (eval $ac_compile) 2>conftest.er1
26838 ac_status=$?
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26858 cat >>confdefs.h <<\_ACEOF
26859 #define HAVE_STRUCT_IP_MREQ 1
26860 _ACEOF
26862 echo "$as_me:$LINENO: result: yes" >&5
26863 echo "${ECHO_T}yes" >&6
26864 else
26865 echo "$as_me: failed program was:" >&5
26866 sed 's/^/| /' conftest.$ac_ext >&5
26868 echo "$as_me:$LINENO: result: no" >&5
26869 echo "${ECHO_T}no" >&6
26871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26873 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26874 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26875 cat >conftest.$ac_ext <<_ACEOF
26876 /* confdefs.h. */
26877 _ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26881 #include <netinet/in.h>
26883 main ()
26885 struct ipv6_mreq mreq6;
26887 return 0;
26889 _ACEOF
26890 rm -f conftest.$ac_objext
26891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26892 (eval $ac_compile) 2>conftest.er1
26893 ac_status=$?
26894 grep -v '^ *+' conftest.er1 >conftest.err
26895 rm -f conftest.er1
26896 cat conftest.err >&5
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); } &&
26899 { ac_try='test -z "$ac_c_werror_flag"
26900 || test ! -s conftest.err'
26901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26902 (eval $ac_try) 2>&5
26903 ac_status=$?
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); }; } &&
26906 { ac_try='test -s conftest.$ac_objext'
26907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26908 (eval $ac_try) 2>&5
26909 ac_status=$?
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); }; }; then
26913 cat >>confdefs.h <<\_ACEOF
26914 #define HAVE_STRUCT_IPV6_MREQ 1
26915 _ACEOF
26917 echo "$as_me:$LINENO: result: yes" >&5
26918 echo "${ECHO_T}yes" >&6
26919 else
26920 echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26923 echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6
26926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26928 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
26929 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
26930 cat >conftest.$ac_ext <<_ACEOF
26931 /* confdefs.h. */
26932 _ACEOF
26933 cat confdefs.h >>conftest.$ac_ext
26934 cat >>conftest.$ac_ext <<_ACEOF
26935 /* end confdefs.h. */
26936 #include <netinet/in.h>
26938 main ()
26940 struct sockaddr_in6 addr6;
26942 return 0;
26944 _ACEOF
26945 rm -f conftest.$ac_objext
26946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26947 (eval $ac_compile) 2>conftest.er1
26948 ac_status=$?
26949 grep -v '^ *+' conftest.er1 >conftest.err
26950 rm -f conftest.er1
26951 cat conftest.err >&5
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); } &&
26954 { ac_try='test -z "$ac_c_werror_flag"
26955 || test ! -s conftest.err'
26956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26957 (eval $ac_try) 2>&5
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; } &&
26961 { ac_try='test -s conftest.$ac_objext'
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26968 cat >>confdefs.h <<\_ACEOF
26969 #define HAVE_INET6 1
26970 _ACEOF
26972 echo "$as_me:$LINENO: result: yes" >&5
26973 echo "${ECHO_T}yes" >&6
26974 else
26975 echo "$as_me: failed program was:" >&5
26976 sed 's/^/| /' conftest.$ac_ext >&5
26978 echo "$as_me:$LINENO: result: no" >&5
26979 echo "${ECHO_T}no" >&6
26981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26983 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
26984 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
26985 cat >conftest.$ac_ext <<_ACEOF
26986 /* confdefs.h. */
26987 _ACEOF
26988 cat confdefs.h >>conftest.$ac_ext
26989 cat >>conftest.$ac_ext <<_ACEOF
26990 /* end confdefs.h. */
26991 #define _POSIX_PII_SOCKET
26992 #include <sys/types.h>
26993 #include <sys/socket.h>
26995 main ()
26997 socklen_t x = 5;
26999 return 0;
27001 _ACEOF
27002 rm -f conftest.$ac_objext
27003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27004 (eval $ac_compile) 2>conftest.er1
27005 ac_status=$?
27006 grep -v '^ *+' conftest.er1 >conftest.err
27007 rm -f conftest.er1
27008 cat conftest.err >&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
27011 { ac_try='test -z "$ac_c_werror_flag"
27012 || test ! -s conftest.err'
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); }; } &&
27018 { ac_try='test -s conftest.$ac_objext'
27019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020 (eval $ac_try) 2>&5
27021 ac_status=$?
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); }; }; then
27025 cat >>confdefs.h <<\_ACEOF
27026 #define HAVE_SOCKLEN_T 1
27027 _ACEOF
27029 echo "$as_me:$LINENO: result: yes" >&5
27030 echo "${ECHO_T}yes" >&6
27031 else
27032 echo "$as_me: failed program was:" >&5
27033 sed 's/^/| /' conftest.$ac_ext >&5
27035 echo "$as_me:$LINENO: result: no" >&5
27036 echo "${ECHO_T}no" >&6
27038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27040 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27041 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27042 cat >conftest.$ac_ext <<_ACEOF
27043 /* confdefs.h. */
27044 _ACEOF
27045 cat confdefs.h >>conftest.$ac_ext
27046 cat >>conftest.$ac_ext <<_ACEOF
27047 /* end confdefs.h. */
27048 #include <time.h>
27050 main ()
27052 struct tm tim; tim.tm_gmtoff = 0;
27054 return 0;
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27059 (eval $ac_compile) 2>conftest.er1
27060 ac_status=$?
27061 grep -v '^ *+' conftest.er1 >conftest.err
27062 rm -f conftest.er1
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } &&
27066 { ac_try='test -z "$ac_c_werror_flag"
27067 || test ! -s conftest.err'
27068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27069 (eval $ac_try) 2>&5
27070 ac_status=$?
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; } &&
27073 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
27080 cat >>confdefs.h <<\_ACEOF
27081 #define STRUCT_TM_HAS_GMTOFF 1
27082 _ACEOF
27084 echo "$as_me:$LINENO: result: yes" >&5
27085 echo "${ECHO_T}yes" >&6
27086 else
27087 echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27090 echo "$as_me:$LINENO: result: no" >&5
27091 echo "${ECHO_T}no" >&6
27092 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27093 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27094 cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h. */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h. */
27100 #include <time.h>
27102 main ()
27104 void i(){long z2 = 2*timezone;}
27106 return 0;
27108 _ACEOF
27109 rm -f conftest.$ac_objext
27110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27111 (eval $ac_compile) 2>conftest.er1
27112 ac_status=$?
27113 grep -v '^ *+' conftest.er1 >conftest.err
27114 rm -f conftest.er1
27115 cat conftest.err >&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); } &&
27118 { ac_try='test -z "$ac_c_werror_flag"
27119 || test ! -s conftest.err'
27120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27121 (eval $ac_try) 2>&5
27122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest.$ac_objext'
27126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127 (eval $ac_try) 2>&5
27128 ac_status=$?
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; }; then
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_TIMEZONE 1
27134 _ACEOF
27136 echo "$as_me:$LINENO: result: yes" >&5
27137 echo "${ECHO_T}yes" >&6
27138 else
27139 echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27142 echo "$as_me:$LINENO: result: no" >&5
27143 echo "${ECHO_T}no" >&6
27144 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27145 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27146 cat >conftest.$ac_ext <<_ACEOF
27147 /* confdefs.h. */
27148 _ACEOF
27149 cat confdefs.h >>conftest.$ac_ext
27150 cat >>conftest.$ac_ext <<_ACEOF
27151 /* end confdefs.h. */
27152 #include <time.h>
27154 main ()
27156 long z2 = _timezone;
27158 return 0;
27160 _ACEOF
27161 rm -f conftest.$ac_objext
27162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27163 (eval $ac_compile) 2>conftest.er1
27164 ac_status=$?
27165 grep -v '^ *+' conftest.er1 >conftest.err
27166 rm -f conftest.er1
27167 cat conftest.err >&5
27168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27169 (exit $ac_status); } &&
27170 { ac_try='test -z "$ac_c_werror_flag"
27171 || test ! -s conftest.err'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27174 ac_status=$?
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; } &&
27177 { ac_try='test -s conftest.$ac_objext'
27178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27179 (eval $ac_try) 2>&5
27180 ac_status=$?
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); }; }; then
27184 cat >>confdefs.h <<\_ACEOF
27185 #define HAVE_UNDERSCORE_TIMEZONE 1
27186 _ACEOF
27188 echo "$as_me:$LINENO: result: yes" >&5
27189 echo "${ECHO_T}yes" >&6
27190 else
27191 echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27194 echo "$as_me:$LINENO: result: no" >&5
27195 echo "${ECHO_T}no" >&6
27197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27203 for ac_prog in perl
27205 # Extract the first word of "$ac_prog", so it can be a program name with args.
27206 set dummy $ac_prog; ac_word=$2
27207 echo "$as_me:$LINENO: checking for $ac_word" >&5
27208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27209 if test "${ac_cv_prog_PERL+set}" = set; then
27210 echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212 if test -n "$PERL"; then
27213 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27214 else
27215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27216 for as_dir in $PATH
27218 IFS=$as_save_IFS
27219 test -z "$as_dir" && as_dir=.
27220 for ac_exec_ext in '' $ac_executable_extensions; do
27221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27222 ac_cv_prog_PERL="$ac_prog"
27223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27224 break 2
27226 done
27227 done
27231 PERL=$ac_cv_prog_PERL
27232 if test -n "$PERL"; then
27233 echo "$as_me:$LINENO: result: $PERL" >&5
27234 echo "${ECHO_T}$PERL" >&6
27235 else
27236 echo "$as_me:$LINENO: result: no" >&5
27237 echo "${ECHO_T}no" >&6
27240 test -n "$PERL" && break
27241 done
27242 test -n "$PERL" || PERL="false"
27245 SYSDEP_SOURCES=
27246 SIGNAL_HANDLER_AUX=
27248 case "${host}" in
27249 i?86-*-linux*)
27250 SIGNAL_HANDLER=include/i386-signal.h
27252 sparc*-sun-solaris*)
27253 SIGNAL_HANDLER=include/sparc-signal.h
27255 # ia64-*)
27256 # SYSDEP_SOURCES=sysdep/ia64.c
27257 # test -d sysdep || mkdir sysdep
27258 # ;;
27259 hppa*-*-linux*)
27260 SIGNAL_HANDLER=include/pa-signal.h
27262 hppa*-hp-hpux*)
27263 SIGNAL_HANDLER=include/hppa-signal.h
27265 ia64-*-linux*)
27266 SIGNAL_HANDLER=include/dwarf2-signal.h
27268 powerpc*-*-linux*)
27269 SIGNAL_HANDLER=include/powerpc-signal.h
27271 alpha*-*-linux*)
27272 SIGNAL_HANDLER=include/dwarf2-signal.h
27274 s390*-*-linux*)
27275 SIGNAL_HANDLER=include/s390-signal.h
27277 x86_64*-*-linux*)
27278 SIGNAL_HANDLER=include/x86_64-signal.h
27279 SIGNAL_HANDLER_AUX=include/i386-signal.h
27281 sparc*-*-linux*)
27282 SIGNAL_HANDLER=include/dwarf2-signal.h
27284 sh*-*-linux*)
27285 SIGNAL_HANDLER=include/sh-signal.h
27287 *mingw*)
27288 SIGNAL_HANDLER=include/win32-signal.h
27290 mips*-*-linux*)
27291 SIGNAL_HANDLER=include/mips-signal.h
27293 m68*-*-linux*)
27294 SIGNAL_HANDLER=include/dwarf2-signal.h
27296 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27297 SIGNAL_HANDLER=include/darwin-signal.h
27300 SIGNAL_HANDLER=include/default-signal.h
27302 esac
27304 # If we're using sjlj exceptions, forget what we just learned.
27305 if test "$enable_sjlj_exceptions" = yes; then
27306 SIGNAL_HANDLER=include/default-signal.h
27307 SIGNAL_HANDLER_AUX=
27312 if test -z "$SIGNAL_HANDLER_AUX"; then
27313 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27316 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27319 if test "${multilib}" = "yes"; then
27320 multilib_arg="--enable-multilib"
27321 else
27322 multilib_arg=
27325 # See if we support thread-local storage.
27327 # Check whether --enable-tls or --disable-tls was given.
27328 if test "${enable_tls+set}" = set; then
27329 enableval="$enable_tls"
27331 case "$enableval" in
27332 yes|no) ;;
27333 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27334 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27335 { (exit 1); exit 1; }; } ;;
27336 esac
27338 else
27339 enable_tls=yes
27342 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27343 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27344 if test "${gcc_cv_have_tls+set}" = set; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346 else
27348 if test "$cross_compiling" = yes; then
27349 if test x$gcc_no_link = xyes; then
27350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27352 { (exit 1); exit 1; }; }
27354 cat >conftest.$ac_ext <<_ACEOF
27355 __thread int a; int b; int main() { return a = b; }
27356 _ACEOF
27357 rm -f conftest.$ac_objext conftest$ac_exeext
27358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27359 (eval $ac_link) 2>conftest.er1
27360 ac_status=$?
27361 grep -v '^ *+' conftest.er1 >conftest.err
27362 rm -f conftest.er1
27363 cat conftest.err >&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } &&
27366 { ac_try='test -z "$ac_c_werror_flag"
27367 || test ! -s conftest.err'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27370 ac_status=$?
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; } &&
27373 { ac_try='test -s conftest$ac_exeext'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; }; then
27379 gcc_cv_have_tls=yes
27380 else
27381 echo "$as_me: failed program was:" >&5
27382 sed 's/^/| /' conftest.$ac_ext >&5
27384 gcc_cv_have_tls=no
27386 rm -f conftest.err conftest.$ac_objext \
27387 conftest$ac_exeext conftest.$ac_ext
27390 else
27391 cat >conftest.$ac_ext <<_ACEOF
27392 __thread int a; int b; int main() { return a = b; }
27393 _ACEOF
27394 rm -f conftest$ac_exeext
27395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27396 (eval $ac_link) 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27401 (eval $ac_try) 2>&5
27402 ac_status=$?
27403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404 (exit $ac_status); }; }; then
27405 chktls_save_LDFLAGS="$LDFLAGS"
27406 LDFLAGS="-static $LDFLAGS"
27407 if test x$gcc_no_link = xyes; then
27408 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27409 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27410 { (exit 1); exit 1; }; }
27412 cat >conftest.$ac_ext <<_ACEOF
27413 int main() { return 0; }
27414 _ACEOF
27415 rm -f conftest.$ac_objext conftest$ac_exeext
27416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27417 (eval $ac_link) 2>conftest.er1
27418 ac_status=$?
27419 grep -v '^ *+' conftest.er1 >conftest.err
27420 rm -f conftest.er1
27421 cat conftest.err >&5
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); } &&
27424 { ac_try='test -z "$ac_c_werror_flag"
27425 || test ! -s conftest.err'
27426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27427 (eval $ac_try) 2>&5
27428 ac_status=$?
27429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430 (exit $ac_status); }; } &&
27431 { ac_try='test -s conftest$ac_exeext'
27432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27434 ac_status=$?
27435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27436 (exit $ac_status); }; }; then
27437 if test "$cross_compiling" = yes; then
27438 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27439 See \`config.log' for more details." >&5
27440 echo "$as_me: error: cannot run test program while cross compiling
27441 See \`config.log' for more details." >&2;}
27442 { (exit 1); exit 1; }; }
27443 else
27444 cat >conftest.$ac_ext <<_ACEOF
27445 __thread int a; int b; int main() { return a = b; }
27446 _ACEOF
27447 rm -f conftest$ac_exeext
27448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27449 (eval $ac_link) 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454 (eval $ac_try) 2>&5
27455 ac_status=$?
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); }; }; then
27458 gcc_cv_have_tls=yes
27459 else
27460 echo "$as_me: program exited with status $ac_status" >&5
27461 echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27464 ( exit $ac_status )
27465 gcc_cv_have_tls=no
27467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27469 else
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 gcc_cv_have_tls=yes
27475 rm -f conftest.err conftest.$ac_objext \
27476 conftest$ac_exeext conftest.$ac_ext
27477 LDFLAGS="$chktls_save_LDFLAGS"
27478 if test $gcc_cv_have_tls = yes; then
27479 chktls_save_CFLAGS="$CFLAGS"
27480 thread_CFLAGS=failed
27481 for flag in '' '-pthread' '-lpthread'; do
27482 CFLAGS="$flag $chktls_save_CFLAGS"
27483 if test x$gcc_no_link = xyes; then
27484 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27485 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27486 { (exit 1); exit 1; }; }
27488 cat >conftest.$ac_ext <<_ACEOF
27489 /* confdefs.h. */
27490 _ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h. */
27494 #include <pthread.h>
27495 void *g(void *d) { return NULL; }
27497 main ()
27499 pthread_t t; pthread_create(&t,NULL,g,NULL);
27501 return 0;
27503 _ACEOF
27504 rm -f conftest.$ac_objext conftest$ac_exeext
27505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27506 (eval $ac_link) 2>conftest.er1
27507 ac_status=$?
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } &&
27513 { ac_try='test -z "$ac_c_werror_flag"
27514 || test ! -s conftest.err'
27515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27516 (eval $ac_try) 2>&5
27517 ac_status=$?
27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27519 (exit $ac_status); }; } &&
27520 { ac_try='test -s conftest$ac_exeext'
27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27522 (eval $ac_try) 2>&5
27523 ac_status=$?
27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); }; }; then
27526 thread_CFLAGS="$flag"
27527 else
27528 echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27532 rm -f conftest.err conftest.$ac_objext \
27533 conftest$ac_exeext conftest.$ac_ext
27534 if test "X$thread_CFLAGS" != Xfailed; then
27535 break
27537 done
27538 CFLAGS="$chktls_save_CFLAGS"
27539 if test "X$thread_CFLAGS" != Xfailed; then
27540 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27541 if test "$cross_compiling" = yes; then
27542 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27543 See \`config.log' for more details." >&5
27544 echo "$as_me: error: cannot run test program while cross compiling
27545 See \`config.log' for more details." >&2;}
27546 { (exit 1); exit 1; }; }
27547 else
27548 cat >conftest.$ac_ext <<_ACEOF
27549 /* confdefs.h. */
27550 _ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 #include <pthread.h>
27555 __thread int a;
27556 static int *a_in_other_thread;
27557 static void *
27558 thread_func (void *arg)
27560 a_in_other_thread = &a;
27561 return (void *)0;
27564 main ()
27566 pthread_t thread;
27567 void *thread_retval;
27568 int *a_in_main_thread;
27569 if (pthread_create (&thread, (pthread_attr_t *)0,
27570 thread_func, (void *)0))
27571 return 0;
27572 a_in_main_thread = &a;
27573 if (pthread_join (thread, &thread_retval))
27574 return 0;
27575 return (a_in_other_thread == a_in_main_thread);
27577 return 0;
27579 _ACEOF
27580 rm -f conftest$ac_exeext
27581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27582 (eval $ac_link) 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
27591 gcc_cv_have_tls=yes
27592 else
27593 echo "$as_me: program exited with status $ac_status" >&5
27594 echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.$ac_ext >&5
27597 ( exit $ac_status )
27598 gcc_cv_have_tls=no
27600 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27602 CFLAGS="$chktls_save_CFLAGS"
27605 else
27606 echo "$as_me: program exited with status $ac_status" >&5
27607 echo "$as_me: failed program was:" >&5
27608 sed 's/^/| /' conftest.$ac_ext >&5
27610 ( exit $ac_status )
27611 gcc_cv_have_tls=no
27613 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27616 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27617 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27618 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27620 cat >>confdefs.h <<\_ACEOF
27621 #define HAVE_TLS 1
27622 _ACEOF
27626 # For _Unwind_GetIPInfo.
27630 ac_ext=cc
27631 ac_cpp='$CXXCPP $CPPFLAGS'
27632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27636 ac_save_CXXFLAGS="$CXXFLAGS"
27637 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27638 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27639 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27640 if test "${gcc_cv_getipinfo+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642 else
27644 if test x$gcc_no_link = xyes; then
27645 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27646 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27647 { (exit 1); exit 1; }; }
27649 cat >conftest.$ac_ext <<_ACEOF
27650 /* confdefs.h. */
27651 _ACEOF
27652 cat confdefs.h >>conftest.$ac_ext
27653 cat >>conftest.$ac_ext <<_ACEOF
27654 /* end confdefs.h. */
27655 extern "C" { extern void _Unwind_GetIPInfo(); }
27657 main ()
27659 _Unwind_GetIPInfo();
27661 return 0;
27663 _ACEOF
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27666 (eval $ac_link) 2>conftest.er1
27667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_cxx_werror_flag"
27674 || test ! -s conftest.err'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest$ac_exeext'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 gcc_cv_getipinfo=yes
27687 else
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27691 gcc_cv_getipinfo=no
27693 rm -f conftest.err conftest.$ac_objext \
27694 conftest$ac_exeext conftest.$ac_ext
27698 if test $gcc_cv_getipinfo = yes; then
27700 cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_GETIPINFO 1
27702 _ACEOF
27705 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27706 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27707 CXXFLAGS="$ac_save_CXXFLAGS"
27708 ac_ext=c
27709 ac_cpp='$CPP $CPPFLAGS'
27710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27716 # See if linker supports anonymous version scripts.
27717 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27718 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27719 if test "${libjava_cv_anon_version_script+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27721 else
27722 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27723 libjava_cv_anon_version_script=no
27724 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27725 echo '{ global: globalsymb*; local: *; };' > conftest.map
27726 if test x$gcc_no_link = xyes; then
27727 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27728 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27729 { (exit 1); exit 1; }; }
27731 cat >conftest.$ac_ext <<_ACEOF
27732 /* confdefs.h. */
27733 _ACEOF
27734 cat confdefs.h >>conftest.$ac_ext
27735 cat >>conftest.$ac_ext <<_ACEOF
27736 /* end confdefs.h. */
27737 void globalsymbol (void) {} void localsymbol (void) {}
27739 main ()
27743 return 0;
27745 _ACEOF
27746 rm -f conftest.$ac_objext conftest$ac_exeext
27747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27748 (eval $ac_link) 2>conftest.er1
27749 ac_status=$?
27750 grep -v '^ *+' conftest.er1 >conftest.err
27751 rm -f conftest.er1
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } &&
27755 { ac_try='test -z "$ac_c_werror_flag"
27756 || test ! -s conftest.err'
27757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27758 (eval $ac_try) 2>&5
27759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; } &&
27762 { ac_try='test -s conftest$ac_exeext'
27763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27764 (eval $ac_try) 2>&5
27765 ac_status=$?
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767 (exit $ac_status); }; }; then
27768 libjava_cv_anon_version_script=yes
27769 else
27770 echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27774 rm -f conftest.err conftest.$ac_objext \
27775 conftest$ac_exeext conftest.$ac_ext
27776 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27779 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27780 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27783 if test "$libjava_cv_anon_version_script" = yes; then
27784 ANONVERSCRIPT_TRUE=
27785 ANONVERSCRIPT_FALSE='#'
27786 else
27787 ANONVERSCRIPT_TRUE='#'
27788 ANONVERSCRIPT_FALSE=
27792 # Check if linker supports static linking on a per library basis
27793 LD_START_STATIC_SPEC=
27794 LD_FINISH_STATIC_SPEC=
27795 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27796 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27797 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27798 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27804 here=`${PWDCMD-pwd}`
27807 # We get this from the environment.
27810 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
27813 if test ${multilib} = yes; then
27814 multilib_arg="--enable-multilib"
27815 else
27816 multilib_arg=
27819 ac_config_files="$ac_config_files scripts/jar"
27821 cat >confcache <<\_ACEOF
27822 # This file is a shell script that caches the results of configure
27823 # tests run on this system so they can be shared between configure
27824 # scripts and configure runs, see configure's option --config-cache.
27825 # It is not useful on other systems. If it contains results you don't
27826 # want to keep, you may remove or edit it.
27828 # config.status only pays attention to the cache file if you give it
27829 # the --recheck option to rerun configure.
27831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27833 # following values.
27835 _ACEOF
27837 # The following way of writing the cache mishandles newlines in values,
27838 # but we know of no workaround that is simple, portable, and efficient.
27839 # So, don't put newlines in cache variables' values.
27840 # Ultrix sh set writes to stderr and can't be redirected directly,
27841 # and sets the high bit in the cache file unless we assign to the vars.
27843 (set) 2>&1 |
27844 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27845 *ac_space=\ *)
27846 # `set' does not quote correctly, so add quotes (double-quote
27847 # substitution turns \\\\ into \\, and sed turns \\ into \).
27848 sed -n \
27849 "s/'/'\\\\''/g;
27850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27853 # `set' quotes correctly as required by POSIX, so do not add quotes.
27854 sed -n \
27855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27857 esac;
27859 sed '
27860 t clear
27861 : clear
27862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27863 t end
27864 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27865 : end' >>confcache
27866 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27867 if test -w $cache_file; then
27868 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27869 cat confcache >$cache_file
27870 else
27871 echo "not updating unwritable cache $cache_file"
27874 rm -f confcache
27876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27877 # Let make expand exec_prefix.
27878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27880 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27881 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27882 # trailing colons and then remove the whole line if VPATH becomes empty
27883 # (actually we leave an empty line to preserve line numbers).
27884 if test "x$srcdir" = x.; then
27885 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27886 s/:*\$(srcdir):*/:/;
27887 s/:*\${srcdir}:*/:/;
27888 s/:*@srcdir@:*/:/;
27889 s/^\([^=]*=[ ]*\):*/\1/;
27890 s/:*$//;
27891 s/^[^=]*=[ ]*$//;
27895 DEFS=-DHAVE_CONFIG_H
27897 ac_libobjs=
27898 ac_ltlibobjs=
27899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27900 # 1. Remove the extension, and $U if already installed.
27901 ac_i=`echo "$ac_i" |
27902 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27903 # 2. Add them.
27904 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27905 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27906 done
27907 LIBOBJS=$ac_libobjs
27909 LTLIBOBJS=$ac_ltlibobjs
27912 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
27913 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27914 Usually this means the macro was only invoked conditionally." >&5
27915 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
27916 Usually this means the macro was only invoked conditionally." >&2;}
27917 { (exit 1); exit 1; }; }
27919 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27920 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27921 Usually this means the macro was only invoked conditionally." >&5
27922 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27923 Usually this means the macro was only invoked conditionally." >&2;}
27924 { (exit 1); exit 1; }; }
27926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27927 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27928 Usually this means the macro was only invoked conditionally." >&5
27929 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27930 Usually this means the macro was only invoked conditionally." >&2;}
27931 { (exit 1); exit 1; }; }
27933 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27934 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27935 Usually this means the macro was only invoked conditionally." >&5
27936 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27937 Usually this means the macro was only invoked conditionally." >&2;}
27938 { (exit 1); exit 1; }; }
27940 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27941 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27942 Usually this means the macro was only invoked conditionally." >&5
27943 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27944 Usually this means the macro was only invoked conditionally." >&2;}
27945 { (exit 1); exit 1; }; }
27947 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
27948 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
27949 Usually this means the macro was only invoked conditionally." >&5
27950 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
27951 Usually this means the macro was only invoked conditionally." >&2;}
27952 { (exit 1); exit 1; }; }
27954 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
27955 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
27956 Usually this means the macro was only invoked conditionally." >&5
27957 echo "$as_me: error: conditional \"X_AWT\" was never defined.
27958 Usually this means the macro was only invoked conditionally." >&2;}
27959 { (exit 1); exit 1; }; }
27961 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27962 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27963 Usually this means the macro was only invoked conditionally." >&5
27964 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27965 Usually this means the macro was only invoked conditionally." >&2;}
27966 { (exit 1); exit 1; }; }
27968 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
27969 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
27970 Usually this means the macro was only invoked conditionally." >&5
27971 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
27972 Usually this means the macro was only invoked conditionally." >&2;}
27973 { (exit 1); exit 1; }; }
27975 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
27976 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
27977 Usually this means the macro was only invoked conditionally." >&5
27978 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
27979 Usually this means the macro was only invoked conditionally." >&2;}
27980 { (exit 1); exit 1; }; }
27982 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
27983 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
27984 Usually this means the macro was only invoked conditionally." >&5
27985 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
27986 Usually this means the macro was only invoked conditionally." >&2;}
27987 { (exit 1); exit 1; }; }
27989 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
27990 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27991 Usually this means the macro was only invoked conditionally." >&5
27992 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
27993 Usually this means the macro was only invoked conditionally." >&2;}
27994 { (exit 1); exit 1; }; }
27996 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
27997 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
27998 Usually this means the macro was only invoked conditionally." >&5
27999 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28000 Usually this means the macro was only invoked conditionally." >&2;}
28001 { (exit 1); exit 1; }; }
28003 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28004 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28005 Usually this means the macro was only invoked conditionally." >&5
28006 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28007 Usually this means the macro was only invoked conditionally." >&2;}
28008 { (exit 1); exit 1; }; }
28010 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28011 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28012 Usually this means the macro was only invoked conditionally." >&5
28013 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28014 Usually this means the macro was only invoked conditionally." >&2;}
28015 { (exit 1); exit 1; }; }
28017 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28018 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28019 Usually this means the macro was only invoked conditionally." >&5
28020 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28021 Usually this means the macro was only invoked conditionally." >&2;}
28022 { (exit 1); exit 1; }; }
28024 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28025 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28026 Usually this means the macro was only invoked conditionally." >&5
28027 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28028 Usually this means the macro was only invoked conditionally." >&2;}
28029 { (exit 1); exit 1; }; }
28031 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28032 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28033 Usually this means the macro was only invoked conditionally." >&5
28034 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28035 Usually this means the macro was only invoked conditionally." >&2;}
28036 { (exit 1); exit 1; }; }
28038 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28039 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28040 Usually this means the macro was only invoked conditionally." >&5
28041 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28042 Usually this means the macro was only invoked conditionally." >&2;}
28043 { (exit 1); exit 1; }; }
28045 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28046 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28047 Usually this means the macro was only invoked conditionally." >&5
28048 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28049 Usually this means the macro was only invoked conditionally." >&2;}
28050 { (exit 1); exit 1; }; }
28052 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28053 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28054 Usually this means the macro was only invoked conditionally." >&5
28055 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28056 Usually this means the macro was only invoked conditionally." >&2;}
28057 { (exit 1); exit 1; }; }
28059 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28060 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28061 Usually this means the macro was only invoked conditionally." >&5
28062 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28063 Usually this means the macro was only invoked conditionally." >&2;}
28064 { (exit 1); exit 1; }; }
28066 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28067 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28068 Usually this means the macro was only invoked conditionally." >&5
28069 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28070 Usually this means the macro was only invoked conditionally." >&2;}
28071 { (exit 1); exit 1; }; }
28073 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28074 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28075 Usually this means the macro was only invoked conditionally." >&5
28076 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28077 Usually this means the macro was only invoked conditionally." >&2;}
28078 { (exit 1); exit 1; }; }
28080 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28081 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28082 Usually this means the macro was only invoked conditionally." >&5
28083 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28084 Usually this means the macro was only invoked conditionally." >&2;}
28085 { (exit 1); exit 1; }; }
28087 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28088 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28089 Usually this means the macro was only invoked conditionally." >&5
28090 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28091 Usually this means the macro was only invoked conditionally." >&2;}
28092 { (exit 1); exit 1; }; }
28094 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28095 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28096 Usually this means the macro was only invoked conditionally." >&5
28097 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28098 Usually this means the macro was only invoked conditionally." >&2;}
28099 { (exit 1); exit 1; }; }
28101 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28102 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28103 Usually this means the macro was only invoked conditionally." >&5
28104 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28105 Usually this means the macro was only invoked conditionally." >&2;}
28106 { (exit 1); exit 1; }; }
28108 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28109 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28110 Usually this means the macro was only invoked conditionally." >&5
28111 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28112 Usually this means the macro was only invoked conditionally." >&2;}
28113 { (exit 1); exit 1; }; }
28115 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28116 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28117 Usually this means the macro was only invoked conditionally." >&5
28118 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28119 Usually this means the macro was only invoked conditionally." >&2;}
28120 { (exit 1); exit 1; }; }
28123 : ${CONFIG_STATUS=./config.status}
28124 ac_clean_files_save=$ac_clean_files
28125 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28126 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28127 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28128 cat >$CONFIG_STATUS <<_ACEOF
28129 #! $SHELL
28130 # Generated by $as_me.
28131 # Run this file to recreate the current configuration.
28132 # Compiler output produced by configure, useful for debugging
28133 # configure, is in config.log if it exists.
28135 debug=false
28136 ac_cs_recheck=false
28137 ac_cs_silent=false
28138 SHELL=\${CONFIG_SHELL-$SHELL}
28139 _ACEOF
28141 cat >>$CONFIG_STATUS <<\_ACEOF
28142 ## --------------------- ##
28143 ## M4sh Initialization. ##
28144 ## --------------------- ##
28146 # Be Bourne compatible
28147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28148 emulate sh
28149 NULLCMD=:
28150 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28151 # is contrary to our usage. Disable this feature.
28152 alias -g '${1+"$@"}'='"$@"'
28153 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28154 set -o posix
28156 DUALCASE=1; export DUALCASE # for MKS sh
28158 # Support unset when possible.
28159 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28160 as_unset=unset
28161 else
28162 as_unset=false
28166 # Work around bugs in pre-3.0 UWIN ksh.
28167 $as_unset ENV MAIL MAILPATH
28168 PS1='$ '
28169 PS2='> '
28170 PS4='+ '
28172 # NLS nuisances.
28173 for as_var in \
28174 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28175 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28176 LC_TELEPHONE LC_TIME
28178 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28179 eval $as_var=C; export $as_var
28180 else
28181 $as_unset $as_var
28183 done
28185 # Required to use basename.
28186 if expr a : '\(a\)' >/dev/null 2>&1; then
28187 as_expr=expr
28188 else
28189 as_expr=false
28192 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28193 as_basename=basename
28194 else
28195 as_basename=false
28199 # Name of the executable.
28200 as_me=`$as_basename "$0" ||
28201 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28202 X"$0" : 'X\(//\)$' \| \
28203 X"$0" : 'X\(/\)$' \| \
28204 . : '\(.\)' 2>/dev/null ||
28205 echo X/"$0" |
28206 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28207 /^X\/\(\/\/\)$/{ s//\1/; q; }
28208 /^X\/\(\/\).*/{ s//\1/; q; }
28209 s/.*/./; q'`
28212 # PATH needs CR, and LINENO needs CR and PATH.
28213 # Avoid depending upon Character Ranges.
28214 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28215 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28216 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28217 as_cr_digits='0123456789'
28218 as_cr_alnum=$as_cr_Letters$as_cr_digits
28220 # The user is always right.
28221 if test "${PATH_SEPARATOR+set}" != set; then
28222 echo "#! /bin/sh" >conf$$.sh
28223 echo "exit 0" >>conf$$.sh
28224 chmod +x conf$$.sh
28225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28226 PATH_SEPARATOR=';'
28227 else
28228 PATH_SEPARATOR=:
28230 rm -f conf$$.sh
28234 as_lineno_1=$LINENO
28235 as_lineno_2=$LINENO
28236 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28237 test "x$as_lineno_1" != "x$as_lineno_2" &&
28238 test "x$as_lineno_3" = "x$as_lineno_2" || {
28239 # Find who we are. Look in the path if we contain no path at all
28240 # relative or not.
28241 case $0 in
28242 *[\\/]* ) as_myself=$0 ;;
28243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28244 for as_dir in $PATH
28246 IFS=$as_save_IFS
28247 test -z "$as_dir" && as_dir=.
28248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28249 done
28252 esac
28253 # We did not find ourselves, most probably we were run as `sh COMMAND'
28254 # in which case we are not to be found in the path.
28255 if test "x$as_myself" = x; then
28256 as_myself=$0
28258 if test ! -f "$as_myself"; then
28259 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28260 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28261 { (exit 1); exit 1; }; }
28263 case $CONFIG_SHELL in
28265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28266 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28268 IFS=$as_save_IFS
28269 test -z "$as_dir" && as_dir=.
28270 for as_base in sh bash ksh sh5; do
28271 case $as_dir in
28273 if ("$as_dir/$as_base" -c '
28274 as_lineno_1=$LINENO
28275 as_lineno_2=$LINENO
28276 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28277 test "x$as_lineno_1" != "x$as_lineno_2" &&
28278 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28279 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28280 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28281 CONFIG_SHELL=$as_dir/$as_base
28282 export CONFIG_SHELL
28283 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28284 fi;;
28285 esac
28286 done
28287 done
28289 esac
28291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28292 # uniformly replaced by the line number. The first 'sed' inserts a
28293 # line-number line before each line; the second 'sed' does the real
28294 # work. The second script uses 'N' to pair each line-number line
28295 # with the numbered line, and appends trailing '-' during
28296 # substitution so that $LINENO is not a special case at line end.
28297 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28298 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28299 sed '=' <$as_myself |
28300 sed '
28302 s,$,-,
28303 : loop
28304 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28305 t loop
28306 s,-$,,
28307 s,^['$as_cr_digits']*\n,,
28308 ' >$as_me.lineno &&
28309 chmod +x $as_me.lineno ||
28310 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28311 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28312 { (exit 1); exit 1; }; }
28314 # Don't try to exec as it changes $[0], causing all sort of problems
28315 # (the dirname of $[0] is not the place where we might find the
28316 # original and so on. Autoconf is especially sensible to this).
28317 . ./$as_me.lineno
28318 # Exit status is that of the last command.
28319 exit
28323 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28324 *c*,-n*) ECHO_N= ECHO_C='
28325 ' ECHO_T=' ' ;;
28326 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28327 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28328 esac
28330 if expr a : '\(a\)' >/dev/null 2>&1; then
28331 as_expr=expr
28332 else
28333 as_expr=false
28336 rm -f conf$$ conf$$.exe conf$$.file
28337 echo >conf$$.file
28338 if ln -s conf$$.file conf$$ 2>/dev/null; then
28339 # We could just check for DJGPP; but this test a) works b) is more generic
28340 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28341 if test -f conf$$.exe; then
28342 # Don't use ln at all; we don't have any links
28343 as_ln_s='cp -p'
28344 else
28345 as_ln_s='ln -s'
28347 elif ln conf$$.file conf$$ 2>/dev/null; then
28348 as_ln_s=ln
28349 else
28350 as_ln_s='cp -p'
28352 rm -f conf$$ conf$$.exe conf$$.file
28354 if mkdir -p . 2>/dev/null; then
28355 as_mkdir_p=:
28356 else
28357 test -d ./-p && rmdir ./-p
28358 as_mkdir_p=false
28361 as_executable_p="test -f"
28363 # Sed expression to map a string onto a valid CPP name.
28364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28366 # Sed expression to map a string onto a valid variable name.
28367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28370 # IFS
28371 # We need space, tab and new line, in precisely that order.
28372 as_nl='
28374 IFS=" $as_nl"
28376 # CDPATH.
28377 $as_unset CDPATH
28379 exec 6>&1
28381 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28382 # report actual input values of CONFIG_FILES etc. instead of their
28383 # values after options handling. Logging --version etc. is OK.
28384 exec 5>>config.log
28386 echo
28387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28388 ## Running $as_me. ##
28389 _ASBOX
28390 } >&5
28391 cat >&5 <<_CSEOF
28393 This file was extended by libjava $as_me version-unused, which was
28394 generated by GNU Autoconf 2.59. Invocation command line was
28396 CONFIG_FILES = $CONFIG_FILES
28397 CONFIG_HEADERS = $CONFIG_HEADERS
28398 CONFIG_LINKS = $CONFIG_LINKS
28399 CONFIG_COMMANDS = $CONFIG_COMMANDS
28400 $ $0 $@
28402 _CSEOF
28403 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28404 echo >&5
28405 _ACEOF
28407 # Files that config.status was made for.
28408 if test -n "$ac_config_files"; then
28409 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28412 if test -n "$ac_config_headers"; then
28413 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28416 if test -n "$ac_config_links"; then
28417 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28420 if test -n "$ac_config_commands"; then
28421 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28424 cat >>$CONFIG_STATUS <<\_ACEOF
28426 ac_cs_usage="\
28427 \`$as_me' instantiates files from templates according to the
28428 current configuration.
28430 Usage: $0 [OPTIONS] [FILE]...
28432 -h, --help print this help, then exit
28433 -V, --version print version number, then exit
28434 -q, --quiet do not print progress messages
28435 -d, --debug don't remove temporary files
28436 --recheck update $as_me by reconfiguring in the same conditions
28437 --file=FILE[:TEMPLATE]
28438 instantiate the configuration file FILE
28439 --header=FILE[:TEMPLATE]
28440 instantiate the configuration header FILE
28442 Configuration files:
28443 $config_files
28445 Configuration headers:
28446 $config_headers
28448 Configuration links:
28449 $config_links
28451 Configuration commands:
28452 $config_commands
28454 Report bugs to <bug-autoconf@gnu.org>."
28455 _ACEOF
28457 cat >>$CONFIG_STATUS <<_ACEOF
28458 ac_cs_version="\\
28459 libjava config.status version-unused
28460 configured by $0, generated by GNU Autoconf 2.59,
28461 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28463 Copyright (C) 2003 Free Software Foundation, Inc.
28464 This config.status script is free software; the Free Software Foundation
28465 gives unlimited permission to copy, distribute and modify it."
28466 srcdir=$srcdir
28467 INSTALL="$INSTALL"
28468 _ACEOF
28470 cat >>$CONFIG_STATUS <<\_ACEOF
28471 # If no file are specified by the user, then we need to provide default
28472 # value. By we need to know if files were specified by the user.
28473 ac_need_defaults=:
28474 while test $# != 0
28476 case $1 in
28477 --*=*)
28478 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28479 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28480 ac_shift=:
28483 ac_option=$1
28484 ac_optarg=$2
28485 ac_shift=shift
28487 *) # This is not an option, so the user has probably given explicit
28488 # arguments.
28489 ac_option=$1
28490 ac_need_defaults=false;;
28491 esac
28493 case $ac_option in
28494 # Handling of the options.
28495 _ACEOF
28496 cat >>$CONFIG_STATUS <<\_ACEOF
28497 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28498 ac_cs_recheck=: ;;
28499 --version | --vers* | -V )
28500 echo "$ac_cs_version"; exit 0 ;;
28501 --he | --h)
28502 # Conflict between --help and --header
28503 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28504 Try \`$0 --help' for more information." >&5
28505 echo "$as_me: error: ambiguous option: $1
28506 Try \`$0 --help' for more information." >&2;}
28507 { (exit 1); exit 1; }; };;
28508 --help | --hel | -h )
28509 echo "$ac_cs_usage"; exit 0 ;;
28510 --debug | --d* | -d )
28511 debug=: ;;
28512 --file | --fil | --fi | --f )
28513 $ac_shift
28514 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28515 ac_need_defaults=false;;
28516 --header | --heade | --head | --hea )
28517 $ac_shift
28518 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28519 ac_need_defaults=false;;
28520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28521 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28522 ac_cs_silent=: ;;
28524 # This is an error.
28525 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28526 Try \`$0 --help' for more information." >&5
28527 echo "$as_me: error: unrecognized option: $1
28528 Try \`$0 --help' for more information." >&2;}
28529 { (exit 1); exit 1; }; } ;;
28531 *) ac_config_targets="$ac_config_targets $1" ;;
28533 esac
28534 shift
28535 done
28537 ac_configure_extra_args=
28539 if $ac_cs_silent; then
28540 exec 6>/dev/null
28541 ac_configure_extra_args="$ac_configure_extra_args --silent"
28544 _ACEOF
28545 cat >>$CONFIG_STATUS <<_ACEOF
28546 if \$ac_cs_recheck; then
28547 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28548 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28551 _ACEOF
28553 cat >>$CONFIG_STATUS <<_ACEOF
28555 # INIT-COMMANDS section.
28559 srcdir="$srcdir"
28560 host="$host"
28561 target="$target"
28562 with_multisubdir="$with_multisubdir"
28563 with_multisrctop="$with_multisrctop"
28564 with_target_subdir="$with_target_subdir"
28565 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28566 multi_basedir="$multi_basedir"
28567 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28568 CC="$CC"
28569 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28572 # The HP-UX ksh and POSIX shell print the target directory to stdout
28573 # if CDPATH is set.
28574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28576 sed_quote_subst='$sed_quote_subst'
28577 double_quote_subst='$double_quote_subst'
28578 delay_variable_subst='$delay_variable_subst'
28579 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
28580 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
28581 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
28582 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
28583 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
28584 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
28585 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
28586 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
28587 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
28588 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
28589 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
28590 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
28591 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
28592 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
28593 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
28594 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
28595 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
28596 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
28597 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
28598 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
28599 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
28600 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
28601 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
28602 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
28603 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
28604 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
28605 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
28606 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28607 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
28608 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
28609 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
28610 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28611 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
28612 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
28613 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28614 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28615 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28616 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
28617 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
28618 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
28619 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
28620 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
28621 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
28622 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"`'
28623 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
28624 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
28625 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
28626 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
28627 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
28628 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
28629 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
28630 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
28631 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
28632 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
28633 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
28634 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28635 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28636 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
28637 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
28638 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28639 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28640 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
28641 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28642 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28643 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28644 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28645 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28646 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28647 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
28648 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28649 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
28650 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
28651 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
28652 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
28653 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
28654 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
28655 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
28656 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28657 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
28658 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
28659 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
28660 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
28661 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
28662 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28663 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28664 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
28665 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28666 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
28667 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
28668 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
28669 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
28670 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
28671 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28672 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
28673 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
28674 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28675 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
28676 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
28677 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28678 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28679 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
28680 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
28681 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
28682 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28683 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
28684 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
28685 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
28686 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
28687 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
28688 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
28689 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
28690 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28691 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
28692 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
28693 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
28694 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
28695 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28696 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28697 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28698 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28699 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28700 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28701 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28702 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28703 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28704 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28705 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28706 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28707 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28708 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28709 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28710 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28711 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28712 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28713 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28714 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28715 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28716 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28717 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28718 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28719 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28720 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28721 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28722 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28723 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28724 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28725 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28726 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28727 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28728 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28729 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28730 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28731 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28732 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28733 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28734 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28735 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28736 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28737 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28738 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28739 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28740 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28741 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28742 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28743 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28744 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28745 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28746 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28747 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28748 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28749 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28750 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28751 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28752 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28753 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28754 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28755 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28756 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28757 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28758 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28759 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28760 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28761 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28762 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28763 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28764 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28765 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28766 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28767 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28768 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28769 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28770 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28771 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28772 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28773 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28774 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28775 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28776 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28777 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28778 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28779 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28780 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28781 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28782 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28783 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28784 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28785 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
28786 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
28788 LTCC='$LTCC'
28789 LTCFLAGS='$LTCFLAGS'
28790 compiler='$compiler_DEFAULT'
28792 # Quote evaled strings.
28793 for var in SED \
28794 GREP \
28795 EGREP \
28796 FGREP \
28797 LD \
28798 NM \
28799 LN_S \
28800 lt_SP2NL \
28801 lt_NL2SP \
28802 reload_flag \
28803 deplibs_check_method \
28804 file_magic_cmd \
28805 AR \
28806 AR_FLAGS \
28807 STRIP \
28808 RANLIB \
28809 CC \
28810 CFLAGS \
28811 compiler \
28812 lt_cv_sys_global_symbol_pipe \
28813 lt_cv_sys_global_symbol_to_cdecl \
28814 lt_cv_sys_global_symbol_to_c_name_address \
28815 SHELL \
28816 ECHO \
28817 lt_prog_compiler_no_builtin_flag \
28818 lt_prog_compiler_wl \
28819 lt_prog_compiler_pic \
28820 lt_prog_compiler_static \
28821 lt_cv_prog_compiler_c_o \
28822 need_locks \
28823 shrext_cmds \
28824 export_dynamic_flag_spec \
28825 whole_archive_flag_spec \
28826 compiler_needs_object \
28827 with_gnu_ld \
28828 allow_undefined_flag \
28829 no_undefined_flag \
28830 hardcode_libdir_flag_spec \
28831 hardcode_libdir_flag_spec_ld \
28832 hardcode_libdir_separator \
28833 fix_srcfile_path \
28834 exclude_expsyms \
28835 include_expsyms \
28836 file_list_spec \
28837 variables_saved_for_relink \
28838 libname_spec \
28839 library_names_spec \
28840 soname_spec \
28841 finish_eval \
28842 old_striplib \
28843 striplib \
28844 predep_objects \
28845 postdep_objects \
28846 predeps \
28847 postdeps \
28848 compiler_lib_search_path \
28849 LD_CXX \
28850 LD_GCJ \
28851 compiler_CXX \
28852 compiler_GCJ \
28853 lt_prog_compiler_no_builtin_flag_CXX \
28854 lt_prog_compiler_no_builtin_flag_GCJ \
28855 lt_prog_compiler_wl_CXX \
28856 lt_prog_compiler_wl_GCJ \
28857 lt_prog_compiler_pic_CXX \
28858 lt_prog_compiler_pic_GCJ \
28859 lt_prog_compiler_static_CXX \
28860 lt_prog_compiler_static_GCJ \
28861 lt_cv_prog_compiler_c_o_CXX \
28862 lt_cv_prog_compiler_c_o_GCJ \
28863 export_dynamic_flag_spec_CXX \
28864 export_dynamic_flag_spec_GCJ \
28865 whole_archive_flag_spec_CXX \
28866 whole_archive_flag_spec_GCJ \
28867 compiler_needs_object_CXX \
28868 compiler_needs_object_GCJ \
28869 with_gnu_ld_CXX \
28870 with_gnu_ld_GCJ \
28871 allow_undefined_flag_CXX \
28872 allow_undefined_flag_GCJ \
28873 no_undefined_flag_CXX \
28874 no_undefined_flag_GCJ \
28875 hardcode_libdir_flag_spec_CXX \
28876 hardcode_libdir_flag_spec_GCJ \
28877 hardcode_libdir_flag_spec_ld_CXX \
28878 hardcode_libdir_flag_spec_ld_GCJ \
28879 hardcode_libdir_separator_CXX \
28880 hardcode_libdir_separator_GCJ \
28881 fix_srcfile_path_CXX \
28882 fix_srcfile_path_GCJ \
28883 exclude_expsyms_CXX \
28884 exclude_expsyms_GCJ \
28885 include_expsyms_CXX \
28886 include_expsyms_GCJ \
28887 file_list_spec_CXX \
28888 file_list_spec_GCJ \
28889 predep_objects_CXX \
28890 predep_objects_GCJ \
28891 postdep_objects_CXX \
28892 postdep_objects_GCJ \
28893 predeps_CXX \
28894 predeps_GCJ \
28895 postdeps_CXX \
28896 postdeps_GCJ \
28897 compiler_lib_search_path_CXX \
28898 compiler_lib_search_path_GCJ; do
28899 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28900 *[\\\\\\\`\\"\\\$]*)
28901 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
28904 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28906 esac
28907 done
28909 # Double-quote double-evaled strings.
28910 for var in reload_cmds \
28911 old_postinstall_cmds \
28912 old_postuninstall_cmds \
28913 old_archive_cmds \
28914 extract_expsyms_cmds \
28915 old_archive_from_new_cmds \
28916 old_archive_from_expsyms_cmds \
28917 archive_cmds \
28918 archive_expsym_cmds \
28919 module_cmds \
28920 module_expsym_cmds \
28921 export_symbols_cmds \
28922 prelink_cmds \
28923 postinstall_cmds \
28924 postuninstall_cmds \
28925 finish_cmds \
28926 sys_lib_search_path_spec \
28927 sys_lib_dlsearch_path_spec \
28928 old_archive_cmds_CXX \
28929 old_archive_cmds_GCJ \
28930 old_archive_from_new_cmds_CXX \
28931 old_archive_from_new_cmds_GCJ \
28932 old_archive_from_expsyms_cmds_CXX \
28933 old_archive_from_expsyms_cmds_GCJ \
28934 archive_cmds_CXX \
28935 archive_cmds_GCJ \
28936 archive_expsym_cmds_CXX \
28937 archive_expsym_cmds_GCJ \
28938 module_cmds_CXX \
28939 module_cmds_GCJ \
28940 module_expsym_cmds_CXX \
28941 module_expsym_cmds_GCJ \
28942 export_symbols_cmds_CXX \
28943 export_symbols_cmds_GCJ \
28944 prelink_cmds_CXX \
28945 prelink_cmds_GCJ; do
28946 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
28947 *[\\\\\\\`\\"\\\$]*)
28948 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
28951 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
28953 esac
28954 done
28956 # Fix-up fallback echo if it was mangled by the above quoting rules.
28957 case \$lt_ECHO in
28958 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
28960 esac
28962 ac_aux_dir='$ac_aux_dir'
28963 xsi_shell='$xsi_shell'
28964 lt_shell_append='$lt_shell_append'
28966 # See if we are running on zsh, and set the options which allow our
28967 # commands through without removal of \ escapes INIT.
28968 if test -n "\${ZSH_VERSION+set}" ; then
28969 setopt NO_GLOB_SUBST
28973 PACKAGE='$PACKAGE'
28974 VERSION='$VERSION'
28975 TIMESTAMP='$TIMESTAMP'
28976 RM='$RM'
28977 ofile='$ofile'
28986 _ACEOF
28990 cat >>$CONFIG_STATUS <<\_ACEOF
28991 for ac_config_target in $ac_config_targets
28993 case "$ac_config_target" in
28994 # Handling of arguments.
28995 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28996 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
28997 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
28998 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
28999 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29000 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29001 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29002 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29003 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29004 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29005 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29006 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29007 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29008 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29009 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29010 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29011 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29012 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29013 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29014 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29015 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29016 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29017 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29018 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29019 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29020 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29021 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29022 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29023 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29024 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29025 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29026 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29027 { (exit 1); exit 1; }; };;
29028 esac
29029 done
29031 # If the user did not use the arguments to specify the items to instantiate,
29032 # then the envvar interface is used. Set only those that are not.
29033 # We use the long form for the default assignment because of an extremely
29034 # bizarre bug on SunOS 4.1.3.
29035 if $ac_need_defaults; then
29036 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29037 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29038 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29039 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29042 # Have a temporary directory for convenience. Make it in the build tree
29043 # simply because there is no reason to put it here, and in addition,
29044 # creating and moving files from /tmp can sometimes cause problems.
29045 # Create a temporary directory, and hook for its removal unless debugging.
29046 $debug ||
29048 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29049 trap '{ (exit 1); exit 1; }' 1 2 13 15
29052 # Create a (secure) tmp directory for tmp files.
29055 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29056 test -n "$tmp" && test -d "$tmp"
29057 } ||
29059 tmp=./confstat$$-$RANDOM
29060 (umask 077 && mkdir $tmp)
29061 } ||
29063 echo "$me: cannot create a temporary directory in ." >&2
29064 { (exit 1); exit 1; }
29067 _ACEOF
29069 cat >>$CONFIG_STATUS <<_ACEOF
29072 # CONFIG_FILES section.
29075 # No need to generate the scripts if there are no CONFIG_FILES.
29076 # This happens for instance when ./config.status config.h
29077 if test -n "\$CONFIG_FILES"; then
29078 # Protect against being on the right side of a sed subst in config.status.
29079 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29080 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29081 s,@SHELL@,$SHELL,;t t
29082 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29083 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29084 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29085 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29086 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29087 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29088 s,@exec_prefix@,$exec_prefix,;t t
29089 s,@prefix@,$prefix,;t t
29090 s,@program_transform_name@,$program_transform_name,;t t
29091 s,@bindir@,$bindir,;t t
29092 s,@sbindir@,$sbindir,;t t
29093 s,@libexecdir@,$libexecdir,;t t
29094 s,@datadir@,$datadir,;t t
29095 s,@sysconfdir@,$sysconfdir,;t t
29096 s,@sharedstatedir@,$sharedstatedir,;t t
29097 s,@localstatedir@,$localstatedir,;t t
29098 s,@libdir@,$libdir,;t t
29099 s,@includedir@,$includedir,;t t
29100 s,@oldincludedir@,$oldincludedir,;t t
29101 s,@infodir@,$infodir,;t t
29102 s,@mandir@,$mandir,;t t
29103 s,@build_alias@,$build_alias,;t t
29104 s,@host_alias@,$host_alias,;t t
29105 s,@target_alias@,$target_alias,;t t
29106 s,@DEFS@,$DEFS,;t t
29107 s,@ECHO_C@,$ECHO_C,;t t
29108 s,@ECHO_N@,$ECHO_N,;t t
29109 s,@ECHO_T@,$ECHO_T,;t t
29110 s,@LIBS@,$LIBS,;t t
29111 s,@build@,$build,;t t
29112 s,@build_cpu@,$build_cpu,;t t
29113 s,@build_vendor@,$build_vendor,;t t
29114 s,@build_os@,$build_os,;t t
29115 s,@build_libsubdir@,$build_libsubdir,;t t
29116 s,@build_subdir@,$build_subdir,;t t
29117 s,@host_subdir@,$host_subdir,;t t
29118 s,@target_subdir@,$target_subdir,;t t
29119 s,@multi_basedir@,$multi_basedir,;t t
29120 s,@host@,$host,;t t
29121 s,@host_cpu@,$host_cpu,;t t
29122 s,@host_vendor@,$host_vendor,;t t
29123 s,@host_os@,$host_os,;t t
29124 s,@target@,$target,;t t
29125 s,@target_cpu@,$target_cpu,;t t
29126 s,@target_vendor@,$target_vendor,;t t
29127 s,@target_os@,$target_os,;t t
29128 s,@target_noncanonical@,$target_noncanonical,;t t
29129 s,@LN_S@,$LN_S,;t t
29130 s,@mkinstalldirs@,$mkinstalldirs,;t t
29131 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29132 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29133 s,@CC@,$CC,;t t
29134 s,@ac_ct_CC@,$ac_ct_CC,;t t
29135 s,@EXEEXT@,$EXEEXT,;t t
29136 s,@OBJEXT@,$OBJEXT,;t t
29137 s,@CXX@,$CXX,;t t
29138 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29139 s,@CFLAGS@,$CFLAGS,;t t
29140 s,@CXXFLAGS@,$CXXFLAGS,;t t
29141 s,@LDFLAGS@,$LDFLAGS,;t t
29142 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29143 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29144 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29145 s,@CYGPATH_W@,$CYGPATH_W,;t t
29146 s,@PACKAGE@,$PACKAGE,;t t
29147 s,@VERSION@,$VERSION,;t t
29148 s,@ACLOCAL@,$ACLOCAL,;t t
29149 s,@AUTOCONF@,$AUTOCONF,;t t
29150 s,@AUTOMAKE@,$AUTOMAKE,;t t
29151 s,@AUTOHEADER@,$AUTOHEADER,;t t
29152 s,@MAKEINFO@,$MAKEINFO,;t t
29153 s,@install_sh@,$install_sh,;t t
29154 s,@STRIP@,$STRIP,;t t
29155 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29156 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29157 s,@mkdir_p@,$mkdir_p,;t t
29158 s,@AWK@,$AWK,;t t
29159 s,@SET_MAKE@,$SET_MAKE,;t t
29160 s,@am__leading_dot@,$am__leading_dot,;t t
29161 s,@AMTAR@,$AMTAR,;t t
29162 s,@am__tar@,$am__tar,;t t
29163 s,@am__untar@,$am__untar,;t t
29164 s,@DEPDIR@,$DEPDIR,;t t
29165 s,@am__include@,$am__include,;t t
29166 s,@am__quote@,$am__quote,;t t
29167 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29168 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29169 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29170 s,@CCDEPMODE@,$CCDEPMODE,;t t
29171 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29172 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29173 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29174 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29175 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29176 s,@AS@,$AS,;t t
29177 s,@ac_ct_AS@,$ac_ct_AS,;t t
29178 s,@LD@,$LD,;t t
29179 s,@ac_ct_LD@,$ac_ct_LD,;t t
29180 s,@AR@,$AR,;t t
29181 s,@ac_ct_AR@,$ac_ct_AR,;t t
29182 s,@RANLIB@,$RANLIB,;t t
29183 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29184 s,@JAR@,$JAR,;t t
29185 s,@ZIP@,$ZIP,;t t
29186 s,@UNZIP@,$UNZIP,;t t
29187 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29188 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29189 s,@MAINT@,$MAINT,;t t
29190 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29191 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29192 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29193 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29194 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29195 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29196 s,@TOOLKIT@,$TOOLKIT,;t t
29197 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29198 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29199 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29200 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29201 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29202 s,@GCJH@,$GCJH,;t t
29203 s,@host_exeext@,$host_exeext,;t t
29204 s,@INCLTDL@,$INCLTDL,;t t
29205 s,@LIBLTDL@,$LIBLTDL,;t t
29206 s,@DIRLTDL@,$DIRLTDL,;t t
29207 s,@LIBTOOL@,$LIBTOOL,;t t
29208 s,@SED@,$SED,;t t
29209 s,@EGREP@,$EGREP,;t t
29210 s,@FGREP@,$FGREP,;t t
29211 s,@GREP@,$GREP,;t t
29212 s,@DUMPBIN@,$DUMPBIN,;t t
29213 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29214 s,@NM@,$NM,;t t
29215 s,@lt_ECHO@,$lt_ECHO,;t t
29216 s,@CPP@,$CPP,;t t
29217 s,@CPPFLAGS@,$CPPFLAGS,;t t
29218 s,@CXXCPP@,$CXXCPP,;t t
29219 s,@GCJ@,$GCJ,;t t
29220 s,@GCJFLAGS@,$GCJFLAGS,;t t
29221 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29222 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29223 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29224 s,@subdirs@,$subdirs,;t t
29225 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29226 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29227 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29228 s,@ECJ_JAR@,$ECJ_JAR,;t t
29229 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29230 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29231 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29232 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29233 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29234 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29235 s,@JAVA_HOME@,$JAVA_HOME,;t t
29236 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29237 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29238 s,@INTERPRETER@,$INTERPRETER,;t t
29239 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29240 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29241 s,@LIBFFI@,$LIBFFI,;t t
29242 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29243 s,@PLATFORM@,$PLATFORM,;t t
29244 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29245 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29246 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29247 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29248 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29249 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29250 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29251 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29252 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29253 s,@X_CFLAGS@,$X_CFLAGS,;t t
29254 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29255 s,@X_LIBS@,$X_LIBS,;t t
29256 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29257 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29258 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29259 s,@extra_ldflags@,$extra_ldflags,;t t
29260 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29261 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29262 s,@GCLIBS@,$GCLIBS,;t t
29263 s,@GCINCS@,$GCINCS,;t t
29264 s,@GCDEPS@,$GCDEPS,;t t
29265 s,@GCSPEC@,$GCSPEC,;t t
29266 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29267 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29268 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29269 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29270 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29271 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29272 s,@THREADLIBS@,$THREADLIBS,;t t
29273 s,@THREADINCS@,$THREADINCS,;t t
29274 s,@THREADDEPS@,$THREADDEPS,;t t
29275 s,@THREADSPEC@,$THREADSPEC,;t t
29276 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29277 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29278 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29279 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29280 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29281 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29282 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29283 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29284 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29285 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29286 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29287 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29288 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29289 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29290 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29291 s,@LIBICONV@,$LIBICONV,;t t
29292 s,@LTLIBICONV@,$LTLIBICONV,;t t
29293 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29294 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29295 s,@GTK_LIBS@,$GTK_LIBS,;t t
29296 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29297 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29298 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29299 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29300 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29301 s,@ZLIBS@,$ZLIBS,;t t
29302 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29303 s,@ZINCS@,$ZINCS,;t t
29304 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29305 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29306 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29307 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29308 s,@IEEESPEC@,$IEEESPEC,;t t
29309 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29310 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29311 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29312 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29313 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29314 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29315 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29316 s,@toolexecdir@,$toolexecdir,;t t
29317 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29318 s,@toolexeclibdir@,$toolexeclibdir,;t t
29319 s,@GCJVERSION@,$GCJVERSION,;t t
29320 s,@dbexecdir@,$dbexecdir,;t t
29321 s,@gxx_include_dir@,$gxx_include_dir,;t t
29322 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29323 s,@PERL@,$PERL,;t t
29324 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29325 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29326 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29327 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29328 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29329 s,@here@,$here,;t t
29330 s,@LIBOBJS@,$LIBOBJS,;t t
29331 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29332 CEOF
29334 _ACEOF
29336 cat >>$CONFIG_STATUS <<\_ACEOF
29337 # Split the substitutions into bite-sized pieces for seds with
29338 # small command number limits, like on Digital OSF/1 and HP-UX.
29339 ac_max_sed_lines=48
29340 ac_sed_frag=1 # Number of current file.
29341 ac_beg=1 # First line for current file.
29342 ac_end=$ac_max_sed_lines # Line after last line for current file.
29343 ac_more_lines=:
29344 ac_sed_cmds=
29345 while $ac_more_lines; do
29346 if test $ac_beg -gt 1; then
29347 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29348 else
29349 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29351 if test ! -s $tmp/subs.frag; then
29352 ac_more_lines=false
29353 else
29354 # The purpose of the label and of the branching condition is to
29355 # speed up the sed processing (if there are no `@' at all, there
29356 # is no need to browse any of the substitutions).
29357 # These are the two extra sed commands mentioned above.
29358 (echo ':t
29359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29360 if test -z "$ac_sed_cmds"; then
29361 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29362 else
29363 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29365 ac_sed_frag=`expr $ac_sed_frag + 1`
29366 ac_beg=$ac_end
29367 ac_end=`expr $ac_end + $ac_max_sed_lines`
29369 done
29370 if test -z "$ac_sed_cmds"; then
29371 ac_sed_cmds=cat
29373 fi # test -n "$CONFIG_FILES"
29375 _ACEOF
29376 cat >>$CONFIG_STATUS <<\_ACEOF
29377 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29378 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29379 case $ac_file in
29380 - | *:- | *:-:* ) # input from stdin
29381 cat >$tmp/stdin
29382 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29383 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29384 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29385 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29386 * ) ac_file_in=$ac_file.in ;;
29387 esac
29389 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29390 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29391 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392 X"$ac_file" : 'X\(//\)[^/]' \| \
29393 X"$ac_file" : 'X\(//\)$' \| \
29394 X"$ac_file" : 'X\(/\)' \| \
29395 . : '\(.\)' 2>/dev/null ||
29396 echo X"$ac_file" |
29397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29398 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29399 /^X\(\/\/\)$/{ s//\1/; q; }
29400 /^X\(\/\).*/{ s//\1/; q; }
29401 s/.*/./; q'`
29402 { if $as_mkdir_p; then
29403 mkdir -p "$ac_dir"
29404 else
29405 as_dir="$ac_dir"
29406 as_dirs=
29407 while test ! -d "$as_dir"; do
29408 as_dirs="$as_dir $as_dirs"
29409 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29411 X"$as_dir" : 'X\(//\)[^/]' \| \
29412 X"$as_dir" : 'X\(//\)$' \| \
29413 X"$as_dir" : 'X\(/\)' \| \
29414 . : '\(.\)' 2>/dev/null ||
29415 echo X"$as_dir" |
29416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29417 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29418 /^X\(\/\/\)$/{ s//\1/; q; }
29419 /^X\(\/\).*/{ s//\1/; q; }
29420 s/.*/./; q'`
29421 done
29422 test ! -n "$as_dirs" || mkdir $as_dirs
29423 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29424 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29425 { (exit 1); exit 1; }; }; }
29427 ac_builddir=.
29429 if test "$ac_dir" != .; then
29430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29431 # A "../" for each directory in $ac_dir_suffix.
29432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29433 else
29434 ac_dir_suffix= ac_top_builddir=
29437 case $srcdir in
29438 .) # No --srcdir option. We are building in place.
29439 ac_srcdir=.
29440 if test -z "$ac_top_builddir"; then
29441 ac_top_srcdir=.
29442 else
29443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29444 fi ;;
29445 [\\/]* | ?:[\\/]* ) # Absolute path.
29446 ac_srcdir=$srcdir$ac_dir_suffix;
29447 ac_top_srcdir=$srcdir ;;
29448 *) # Relative path.
29449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29450 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29451 esac
29453 # Do not use `cd foo && pwd` to compute absolute paths, because
29454 # the directories may not exist.
29455 case `pwd` in
29456 .) ac_abs_builddir="$ac_dir";;
29458 case "$ac_dir" in
29459 .) ac_abs_builddir=`pwd`;;
29460 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29461 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29462 esac;;
29463 esac
29464 case $ac_abs_builddir in
29465 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29467 case ${ac_top_builddir}. in
29468 .) ac_abs_top_builddir=$ac_abs_builddir;;
29469 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29470 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29471 esac;;
29472 esac
29473 case $ac_abs_builddir in
29474 .) ac_abs_srcdir=$ac_srcdir;;
29476 case $ac_srcdir in
29477 .) ac_abs_srcdir=$ac_abs_builddir;;
29478 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29479 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29480 esac;;
29481 esac
29482 case $ac_abs_builddir in
29483 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29485 case $ac_top_srcdir in
29486 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29487 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29488 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29489 esac;;
29490 esac
29493 case $INSTALL in
29494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29495 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29496 esac
29498 if test x"$ac_file" != x-; then
29499 { echo "$as_me:$LINENO: creating $ac_file" >&5
29500 echo "$as_me: creating $ac_file" >&6;}
29501 rm -f "$ac_file"
29503 # Let's still pretend it is `configure' which instantiates (i.e., don't
29504 # use $as_me), people would be surprised to read:
29505 # /* config.h. Generated by config.status. */
29506 if test x"$ac_file" = x-; then
29507 configure_input=
29508 else
29509 configure_input="$ac_file. "
29511 configure_input=$configure_input"Generated from `echo $ac_file_in |
29512 sed 's,.*/,,'` by configure."
29514 # First look for the input files in the build tree, otherwise in the
29515 # src tree.
29516 ac_file_inputs=`IFS=:
29517 for f in $ac_file_in; do
29518 case $f in
29519 -) echo $tmp/stdin ;;
29520 [\\/$]*)
29521 # Absolute (can't be DOS-style, as IFS=:)
29522 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29523 echo "$as_me: error: cannot find input file: $f" >&2;}
29524 { (exit 1); exit 1; }; }
29525 echo "$f";;
29526 *) # Relative
29527 if test -f "$f"; then
29528 # Build tree
29529 echo "$f"
29530 elif test -f "$srcdir/$f"; then
29531 # Source tree
29532 echo "$srcdir/$f"
29533 else
29534 # /dev/null tree
29535 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29536 echo "$as_me: error: cannot find input file: $f" >&2;}
29537 { (exit 1); exit 1; }; }
29538 fi;;
29539 esac
29540 done` || { (exit 1); exit 1; }
29541 _ACEOF
29542 cat >>$CONFIG_STATUS <<_ACEOF
29543 sed "$ac_vpsub
29544 $extrasub
29545 _ACEOF
29546 cat >>$CONFIG_STATUS <<\_ACEOF
29548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29549 s,@configure_input@,$configure_input,;t t
29550 s,@srcdir@,$ac_srcdir,;t t
29551 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29552 s,@top_srcdir@,$ac_top_srcdir,;t t
29553 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29554 s,@builddir@,$ac_builddir,;t t
29555 s,@abs_builddir@,$ac_abs_builddir,;t t
29556 s,@top_builddir@,$ac_top_builddir,;t t
29557 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29558 s,@INSTALL@,$ac_INSTALL,;t t
29559 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29560 rm -f $tmp/stdin
29561 if test x"$ac_file" != x-; then
29562 mv $tmp/out $ac_file
29563 else
29564 cat $tmp/out
29565 rm -f $tmp/out
29568 # Run the commands associated with the file.
29569 case $ac_file in
29570 scripts/jar ) chmod +x scripts/jar ;;
29571 esac
29572 done
29573 _ACEOF
29574 cat >>$CONFIG_STATUS <<\_ACEOF
29577 # CONFIG_HEADER section.
29580 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29581 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29583 # ac_d sets the value in "#define NAME VALUE" lines.
29584 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29585 ac_dB='[ ].*$,\1#\2'
29586 ac_dC=' '
29587 ac_dD=',;t'
29588 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29589 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29590 ac_uB='$,\1#\2define\3'
29591 ac_uC=' '
29592 ac_uD=',;t'
29594 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29596 case $ac_file in
29597 - | *:- | *:-:* ) # input from stdin
29598 cat >$tmp/stdin
29599 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29601 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29603 * ) ac_file_in=$ac_file.in ;;
29604 esac
29606 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29607 echo "$as_me: creating $ac_file" >&6;}
29609 # First look for the input files in the build tree, otherwise in the
29610 # src tree.
29611 ac_file_inputs=`IFS=:
29612 for f in $ac_file_in; do
29613 case $f in
29614 -) echo $tmp/stdin ;;
29615 [\\/$]*)
29616 # Absolute (can't be DOS-style, as IFS=:)
29617 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29618 echo "$as_me: error: cannot find input file: $f" >&2;}
29619 { (exit 1); exit 1; }; }
29620 # Do quote $f, to prevent DOS paths from being IFS'd.
29621 echo "$f";;
29622 *) # Relative
29623 if test -f "$f"; then
29624 # Build tree
29625 echo "$f"
29626 elif test -f "$srcdir/$f"; then
29627 # Source tree
29628 echo "$srcdir/$f"
29629 else
29630 # /dev/null tree
29631 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29632 echo "$as_me: error: cannot find input file: $f" >&2;}
29633 { (exit 1); exit 1; }; }
29634 fi;;
29635 esac
29636 done` || { (exit 1); exit 1; }
29637 # Remove the trailing spaces.
29638 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29640 _ACEOF
29642 # Transform confdefs.h into two sed scripts, `conftest.defines' and
29643 # `conftest.undefs', that substitutes the proper values into
29644 # config.h.in to produce config.h. The first handles `#define'
29645 # templates, and the second `#undef' templates.
29646 # And first: Protect against being on the right side of a sed subst in
29647 # config.status. Protect against being in an unquoted here document
29648 # in config.status.
29649 rm -f conftest.defines conftest.undefs
29650 # Using a here document instead of a string reduces the quoting nightmare.
29651 # Putting comments in sed scripts is not portable.
29653 # `end' is used to avoid that the second main sed command (meant for
29654 # 0-ary CPP macros) applies to n-ary macro definitions.
29655 # See the Autoconf documentation for `clear'.
29656 cat >confdef2sed.sed <<\_ACEOF
29657 s/[\\&,]/\\&/g
29658 s,[\\$`],\\&,g
29659 t clear
29660 : clear
29661 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
29662 t end
29663 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
29664 : end
29665 _ACEOF
29666 # If some macros were called several times there might be several times
29667 # the same #defines, which is useless. Nevertheless, we may not want to
29668 # sort them, since we want the *last* AC-DEFINE to be honored.
29669 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
29670 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
29671 rm -f confdef2sed.sed
29673 # This sed command replaces #undef with comments. This is necessary, for
29674 # example, in the case of _POSIX_SOURCE, which is predefined and required
29675 # on some systems where configure will not decide to define it.
29676 cat >>conftest.undefs <<\_ACEOF
29677 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
29678 _ACEOF
29680 # Break up conftest.defines because some shells have a limit on the size
29681 # of here documents, and old seds have small limits too (100 cmds).
29682 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
29683 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
29684 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
29685 echo ' :' >>$CONFIG_STATUS
29686 rm -f conftest.tail
29687 while grep . conftest.defines >/dev/null
29689 # Write a limited-size here document to $tmp/defines.sed.
29690 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
29691 # Speed up: don't consider the non `#define' lines.
29692 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
29693 # Work around the forget-to-reset-the-flag bug.
29694 echo 't clr' >>$CONFIG_STATUS
29695 echo ': clr' >>$CONFIG_STATUS
29696 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
29697 echo 'CEOF
29698 sed -f $tmp/defines.sed $tmp/in >$tmp/out
29699 rm -f $tmp/in
29700 mv $tmp/out $tmp/in
29701 ' >>$CONFIG_STATUS
29702 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
29703 rm -f conftest.defines
29704 mv conftest.tail conftest.defines
29705 done
29706 rm -f conftest.defines
29707 echo ' fi # grep' >>$CONFIG_STATUS
29708 echo >>$CONFIG_STATUS
29710 # Break up conftest.undefs because some shells have a limit on the size
29711 # of here documents, and old seds have small limits too (100 cmds).
29712 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
29713 rm -f conftest.tail
29714 while grep . conftest.undefs >/dev/null
29716 # Write a limited-size here document to $tmp/undefs.sed.
29717 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
29718 # Speed up: don't consider the non `#undef'
29719 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
29720 # Work around the forget-to-reset-the-flag bug.
29721 echo 't clr' >>$CONFIG_STATUS
29722 echo ': clr' >>$CONFIG_STATUS
29723 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
29724 echo 'CEOF
29725 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
29726 rm -f $tmp/in
29727 mv $tmp/out $tmp/in
29728 ' >>$CONFIG_STATUS
29729 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
29730 rm -f conftest.undefs
29731 mv conftest.tail conftest.undefs
29732 done
29733 rm -f conftest.undefs
29735 cat >>$CONFIG_STATUS <<\_ACEOF
29736 # Let's still pretend it is `configure' which instantiates (i.e., don't
29737 # use $as_me), people would be surprised to read:
29738 # /* config.h. Generated by config.status. */
29739 if test x"$ac_file" = x-; then
29740 echo "/* Generated by configure. */" >$tmp/config.h
29741 else
29742 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
29744 cat $tmp/in >>$tmp/config.h
29745 rm -f $tmp/in
29746 if test x"$ac_file" != x-; then
29747 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
29748 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29749 echo "$as_me: $ac_file is unchanged" >&6;}
29750 else
29751 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29752 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29753 X"$ac_file" : 'X\(//\)[^/]' \| \
29754 X"$ac_file" : 'X\(//\)$' \| \
29755 X"$ac_file" : 'X\(/\)' \| \
29756 . : '\(.\)' 2>/dev/null ||
29757 echo X"$ac_file" |
29758 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29759 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29760 /^X\(\/\/\)$/{ s//\1/; q; }
29761 /^X\(\/\).*/{ s//\1/; q; }
29762 s/.*/./; q'`
29763 { if $as_mkdir_p; then
29764 mkdir -p "$ac_dir"
29765 else
29766 as_dir="$ac_dir"
29767 as_dirs=
29768 while test ! -d "$as_dir"; do
29769 as_dirs="$as_dir $as_dirs"
29770 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29771 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29772 X"$as_dir" : 'X\(//\)[^/]' \| \
29773 X"$as_dir" : 'X\(//\)$' \| \
29774 X"$as_dir" : 'X\(/\)' \| \
29775 . : '\(.\)' 2>/dev/null ||
29776 echo X"$as_dir" |
29777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29778 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29779 /^X\(\/\/\)$/{ s//\1/; q; }
29780 /^X\(\/\).*/{ s//\1/; q; }
29781 s/.*/./; q'`
29782 done
29783 test ! -n "$as_dirs" || mkdir $as_dirs
29784 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29785 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29786 { (exit 1); exit 1; }; }; }
29788 rm -f $ac_file
29789 mv $tmp/config.h $ac_file
29791 else
29792 cat $tmp/config.h
29793 rm -f $tmp/config.h
29795 # Compute $ac_file's index in $config_headers.
29796 _am_stamp_count=1
29797 for _am_header in $config_headers :; do
29798 case $_am_header in
29799 $ac_file | $ac_file:* )
29800 break ;;
29802 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29803 esac
29804 done
29805 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
29806 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29807 X$ac_file : 'X\(//\)[^/]' \| \
29808 X$ac_file : 'X\(//\)$' \| \
29809 X$ac_file : 'X\(/\)' \| \
29810 . : '\(.\)' 2>/dev/null ||
29811 echo X$ac_file |
29812 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29813 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29814 /^X\(\/\/\)$/{ s//\1/; q; }
29815 /^X\(\/\).*/{ s//\1/; q; }
29816 s/.*/./; q'`/stamp-h$_am_stamp_count
29817 done
29818 _ACEOF
29819 cat >>$CONFIG_STATUS <<\_ACEOF
29822 # CONFIG_LINKS section.
29825 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
29826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29829 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
29830 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
29832 if test ! -r $srcdir/$ac_source; then
29833 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29834 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29835 { (exit 1); exit 1; }; }
29837 rm -f $ac_dest
29839 # Make relative symlinks.
29840 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
29841 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29842 X"$ac_dest" : 'X\(//\)[^/]' \| \
29843 X"$ac_dest" : 'X\(//\)$' \| \
29844 X"$ac_dest" : 'X\(/\)' \| \
29845 . : '\(.\)' 2>/dev/null ||
29846 echo X"$ac_dest" |
29847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29848 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29849 /^X\(\/\/\)$/{ s//\1/; q; }
29850 /^X\(\/\).*/{ s//\1/; q; }
29851 s/.*/./; q'`
29852 { if $as_mkdir_p; then
29853 mkdir -p "$ac_dest_dir"
29854 else
29855 as_dir="$ac_dest_dir"
29856 as_dirs=
29857 while test ! -d "$as_dir"; do
29858 as_dirs="$as_dir $as_dirs"
29859 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29861 X"$as_dir" : 'X\(//\)[^/]' \| \
29862 X"$as_dir" : 'X\(//\)$' \| \
29863 X"$as_dir" : 'X\(/\)' \| \
29864 . : '\(.\)' 2>/dev/null ||
29865 echo X"$as_dir" |
29866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29868 /^X\(\/\/\)$/{ s//\1/; q; }
29869 /^X\(\/\).*/{ s//\1/; q; }
29870 s/.*/./; q'`
29871 done
29872 test ! -n "$as_dirs" || mkdir $as_dirs
29873 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
29874 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
29875 { (exit 1); exit 1; }; }; }
29877 ac_builddir=.
29879 if test "$ac_dest_dir" != .; then
29880 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
29881 # A "../" for each directory in $ac_dir_suffix.
29882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29883 else
29884 ac_dir_suffix= ac_top_builddir=
29887 case $srcdir in
29888 .) # No --srcdir option. We are building in place.
29889 ac_srcdir=.
29890 if test -z "$ac_top_builddir"; then
29891 ac_top_srcdir=.
29892 else
29893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29894 fi ;;
29895 [\\/]* | ?:[\\/]* ) # Absolute path.
29896 ac_srcdir=$srcdir$ac_dir_suffix;
29897 ac_top_srcdir=$srcdir ;;
29898 *) # Relative path.
29899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29901 esac
29903 # Do not use `cd foo && pwd` to compute absolute paths, because
29904 # the directories may not exist.
29905 case `pwd` in
29906 .) ac_abs_builddir="$ac_dest_dir";;
29908 case "$ac_dest_dir" in
29909 .) ac_abs_builddir=`pwd`;;
29910 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
29911 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
29912 esac;;
29913 esac
29914 case $ac_abs_builddir in
29915 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29917 case ${ac_top_builddir}. in
29918 .) ac_abs_top_builddir=$ac_abs_builddir;;
29919 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29920 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29921 esac;;
29922 esac
29923 case $ac_abs_builddir in
29924 .) ac_abs_srcdir=$ac_srcdir;;
29926 case $ac_srcdir in
29927 .) ac_abs_srcdir=$ac_abs_builddir;;
29928 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29929 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29930 esac;;
29931 esac
29932 case $ac_abs_builddir in
29933 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29935 case $ac_top_srcdir in
29936 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29937 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29938 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29939 esac;;
29940 esac
29943 case $srcdir in
29944 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29945 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
29946 esac
29948 # Try a symlink, then a hard link, then a copy.
29949 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
29950 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
29951 cp -p $srcdir/$ac_source $ac_dest ||
29952 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
29953 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
29954 { (exit 1); exit 1; }; }
29955 done
29956 _ACEOF
29957 cat >>$CONFIG_STATUS <<\_ACEOF
29960 # CONFIG_COMMANDS section.
29962 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29963 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29964 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29965 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
29966 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29967 X"$ac_dest" : 'X\(//\)[^/]' \| \
29968 X"$ac_dest" : 'X\(//\)$' \| \
29969 X"$ac_dest" : 'X\(/\)' \| \
29970 . : '\(.\)' 2>/dev/null ||
29971 echo X"$ac_dest" |
29972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29974 /^X\(\/\/\)$/{ s//\1/; q; }
29975 /^X\(\/\).*/{ s//\1/; q; }
29976 s/.*/./; q'`
29977 { if $as_mkdir_p; then
29978 mkdir -p "$ac_dir"
29979 else
29980 as_dir="$ac_dir"
29981 as_dirs=
29982 while test ! -d "$as_dir"; do
29983 as_dirs="$as_dir $as_dirs"
29984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29986 X"$as_dir" : 'X\(//\)[^/]' \| \
29987 X"$as_dir" : 'X\(//\)$' \| \
29988 X"$as_dir" : 'X\(/\)' \| \
29989 . : '\(.\)' 2>/dev/null ||
29990 echo X"$as_dir" |
29991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29993 /^X\(\/\/\)$/{ s//\1/; q; }
29994 /^X\(\/\).*/{ s//\1/; q; }
29995 s/.*/./; q'`
29996 done
29997 test ! -n "$as_dirs" || mkdir $as_dirs
29998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30000 { (exit 1); exit 1; }; }; }
30002 ac_builddir=.
30004 if test "$ac_dir" != .; then
30005 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30006 # A "../" for each directory in $ac_dir_suffix.
30007 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30008 else
30009 ac_dir_suffix= ac_top_builddir=
30012 case $srcdir in
30013 .) # No --srcdir option. We are building in place.
30014 ac_srcdir=.
30015 if test -z "$ac_top_builddir"; then
30016 ac_top_srcdir=.
30017 else
30018 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30019 fi ;;
30020 [\\/]* | ?:[\\/]* ) # Absolute path.
30021 ac_srcdir=$srcdir$ac_dir_suffix;
30022 ac_top_srcdir=$srcdir ;;
30023 *) # Relative path.
30024 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30025 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30026 esac
30028 # Do not use `cd foo && pwd` to compute absolute paths, because
30029 # the directories may not exist.
30030 case `pwd` in
30031 .) ac_abs_builddir="$ac_dir";;
30033 case "$ac_dir" in
30034 .) ac_abs_builddir=`pwd`;;
30035 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30036 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30037 esac;;
30038 esac
30039 case $ac_abs_builddir in
30040 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30042 case ${ac_top_builddir}. in
30043 .) ac_abs_top_builddir=$ac_abs_builddir;;
30044 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30045 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30046 esac;;
30047 esac
30048 case $ac_abs_builddir in
30049 .) ac_abs_srcdir=$ac_srcdir;;
30051 case $ac_srcdir in
30052 .) ac_abs_srcdir=$ac_abs_builddir;;
30053 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30054 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30055 esac;;
30056 esac
30057 case $ac_abs_builddir in
30058 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30060 case $ac_top_srcdir in
30061 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30062 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30063 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30064 esac;;
30065 esac
30068 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30069 echo "$as_me: executing $ac_dest commands" >&6;}
30070 case $ac_dest in
30071 default-1 )
30072 # Only add multilib support code if we just rebuilt the top-level
30073 # Makefile.
30074 case " $CONFIG_FILES " in
30075 *" Makefile "*)
30076 ac_file=Makefile . ${multi_basedir}/config-ml.in
30078 esac ;;
30079 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30080 # Strip MF so we end up with the name of the file.
30081 mf=`echo "$mf" | sed -e 's/:.*$//'`
30082 # Check whether this is an Automake generated Makefile or not.
30083 # We used to match only the files named `Makefile.in', but
30084 # some people rename them; so instead we look at the file content.
30085 # Grep'ing the first line is not enough: some people post-process
30086 # each Makefile.in and add a new line on top of each file to say so.
30087 # So let's grep whole file.
30088 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30089 dirpart=`(dirname "$mf") 2>/dev/null ||
30090 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30091 X"$mf" : 'X\(//\)[^/]' \| \
30092 X"$mf" : 'X\(//\)$' \| \
30093 X"$mf" : 'X\(/\)' \| \
30094 . : '\(.\)' 2>/dev/null ||
30095 echo X"$mf" |
30096 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30097 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30098 /^X\(\/\/\)$/{ s//\1/; q; }
30099 /^X\(\/\).*/{ s//\1/; q; }
30100 s/.*/./; q'`
30101 else
30102 continue
30104 # Extract the definition of DEPDIR, am__include, and am__quote
30105 # from the Makefile without running `make'.
30106 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30107 test -z "$DEPDIR" && continue
30108 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30109 test -z "am__include" && continue
30110 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30111 # When using ansi2knr, U may be empty or an underscore; expand it
30112 U=`sed -n 's/^U = //p' < "$mf"`
30113 # Find all dependency output files, they are included files with
30114 # $(DEPDIR) in their names. We invoke sed twice because it is the
30115 # simplest approach to changing $(DEPDIR) to its actual value in the
30116 # expansion.
30117 for file in `sed -n "
30118 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30119 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30120 # Make sure the directory exists.
30121 test -f "$dirpart/$file" && continue
30122 fdir=`(dirname "$file") 2>/dev/null ||
30123 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30124 X"$file" : 'X\(//\)[^/]' \| \
30125 X"$file" : 'X\(//\)$' \| \
30126 X"$file" : 'X\(/\)' \| \
30127 . : '\(.\)' 2>/dev/null ||
30128 echo X"$file" |
30129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30131 /^X\(\/\/\)$/{ s//\1/; q; }
30132 /^X\(\/\).*/{ s//\1/; q; }
30133 s/.*/./; q'`
30134 { if $as_mkdir_p; then
30135 mkdir -p $dirpart/$fdir
30136 else
30137 as_dir=$dirpart/$fdir
30138 as_dirs=
30139 while test ! -d "$as_dir"; do
30140 as_dirs="$as_dir $as_dirs"
30141 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30143 X"$as_dir" : 'X\(//\)[^/]' \| \
30144 X"$as_dir" : 'X\(//\)$' \| \
30145 X"$as_dir" : 'X\(/\)' \| \
30146 . : '\(.\)' 2>/dev/null ||
30147 echo X"$as_dir" |
30148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30149 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30150 /^X\(\/\/\)$/{ s//\1/; q; }
30151 /^X\(\/\).*/{ s//\1/; q; }
30152 s/.*/./; q'`
30153 done
30154 test ! -n "$as_dirs" || mkdir $as_dirs
30155 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30156 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30157 { (exit 1); exit 1; }; }; }
30159 # echo "creating $dirpart/$file"
30160 echo '# dummy' > "$dirpart/$file"
30161 done
30162 done
30164 libtool )
30166 # See if we are running on zsh, and set the options which allow our
30167 # commands through without removal of \ escapes.
30168 if test -n "${ZSH_VERSION+set}" ; then
30169 setopt NO_GLOB_SUBST
30172 cfgfile="${ofile}T"
30173 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30174 $RM "$cfgfile"
30176 cat <<_LT_EOF >> "$cfgfile"
30177 #! $SHELL
30179 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30180 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
30181 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30182 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30184 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30185 # 2006, 2007 Free Software Foundation, Inc.
30187 # This file is part of GNU Libtool:
30188 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
30190 # This program is free software; you can redistribute it and/or modify
30191 # it under the terms of the GNU General Public License as published by
30192 # the Free Software Foundation; either version 2 of the License, or
30193 # (at your option) any later version.
30195 # This program is distributed in the hope that it will be useful, but
30196 # WITHOUT ANY WARRANTY; without even the implied warranty of
30197 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30198 # General Public License for more details.
30200 # You should have received a copy of the GNU General Public License
30201 # along with this program; if not, a copy can be downloaded from
30202 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
30203 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
30204 # MA 02110-1301, USA.
30206 # As a special exception to the GNU General Public License, if you
30207 # distribute this file as part of a program that contains a
30208 # configuration script generated by Autoconf, you may include it under
30209 # the same distribution terms that you use for the rest of that program.
30212 # The names of the tagged configurations supported by this script.
30213 available_tags="CXX GCJ "
30215 # ### BEGIN LIBTOOL CONFIG
30217 # Which release of libtool.m4 was used?
30218 macro_version=$macro_version
30219 macro_revision=$macro_revision
30221 # Whether or not to build shared libraries.
30222 build_libtool_libs=$enable_shared
30224 # Whether or not to build static libraries.
30225 build_old_libs=$enable_static
30227 # What type of objects to build.
30228 pic_mode=$pic_mode
30230 # Whether or not to optimize for fast installation.
30231 fast_install=$enable_fast_install
30233 # The host system.
30234 host_alias=$host_alias
30235 host=$host
30236 host_os=$host_os
30238 # The build system.
30239 build_alias=$build_alias
30240 build=$build
30241 build_os=$build_os
30243 # A sed program that does not truncate output.
30244 SED=$lt_SED
30246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30247 Xsed="\$SED -e 1s/^X//"
30249 # A grep program that handles long lines.
30250 GREP=$lt_GREP
30252 # An ERE matcher.
30253 EGREP=$lt_EGREP
30255 # A literal string matcher.
30256 FGREP=$lt_FGREP
30258 # A BSD- or MS-compatible name lister.
30259 NM=$lt_NM
30261 # Whether we need soft or hard links.
30262 LN_S=$lt_LN_S
30264 # What is the maximum length of a command?
30265 max_cmd_len=$max_cmd_len
30267 # Object file suffix (normally "o").
30268 objext=$ac_objext
30270 # Executable file suffix (normally "").
30271 exeext=$exeext
30273 # whether the shell understands "unset".
30274 lt_unset=$lt_unset
30276 # turn spaces into newlines.
30277 SP2NL=$lt_lt_SP2NL
30279 # turn newlines into spaces.
30280 NL2SP=$lt_lt_NL2SP
30282 # How to create reloadable object files.
30283 reload_flag=$lt_reload_flag
30284 reload_cmds=$lt_reload_cmds
30286 # Method to check whether dependent libraries are shared objects.
30287 deplibs_check_method=$lt_deplibs_check_method
30289 # Command to use when deplibs_check_method == "file_magic".
30290 file_magic_cmd=$lt_file_magic_cmd
30292 # The archiver.
30293 AR=$lt_AR
30294 AR_FLAGS=$lt_AR_FLAGS
30296 # A symbol stripping program.
30297 STRIP=$lt_STRIP
30299 # Commands used to install an old-style archive.
30300 RANLIB=$lt_RANLIB
30301 old_postinstall_cmds=$lt_old_postinstall_cmds
30302 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30304 # A C compiler.
30305 LTCC=$lt_CC
30307 # LTCC compiler flags.
30308 LTCFLAGS=$lt_CFLAGS
30310 # Take the output of nm and produce a listing of raw symbols and C names.
30311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30313 # Transform the output of nm in a proper C declaration.
30314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30316 # Transform the output of nm in a C name address pair.
30317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30319 # The name of the directory that contains temporary libtool files.
30320 objdir=$objdir
30322 # Shell to use when invoking shell scripts.
30323 SHELL=$lt_SHELL
30325 # An echo program that does not interpret backslashes.
30326 ECHO=$lt_ECHO
30328 # Used to examine libraries when file_magic_cmd begins with "file".
30329 MAGIC_CMD=$MAGIC_CMD
30331 # Must we lock files when doing compilation?
30332 need_locks=$lt_need_locks
30334 # Old archive suffix (normally "a").
30335 libext=$libext
30337 # Shared library suffix (normally ".so").
30338 shrext_cmds=$lt_shrext_cmds
30340 # The commands to extract the exported symbol list from a shared archive.
30341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30343 # Variables whose values should be saved in libtool wrapper scripts and
30344 # restored at link time.
30345 variables_saved_for_relink=$lt_variables_saved_for_relink
30347 # Do we need the "lib" prefix for modules?
30348 need_lib_prefix=$need_lib_prefix
30350 # Do we need a version for libraries?
30351 need_version=$need_version
30353 # Library versioning type.
30354 version_type=$version_type
30356 # Shared library runtime path variable.
30357 runpath_var=$runpath_var
30359 # Shared library path variable.
30360 shlibpath_var=$shlibpath_var
30362 # Is shlibpath searched before the hard-coded library search path?
30363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30365 # Format of library name prefix.
30366 libname_spec=$lt_libname_spec
30368 # List of archive names. First name is the real one, the rest are links.
30369 # The last name is the one that the linker finds with -lNAME
30370 library_names_spec=$lt_library_names_spec
30372 # The coded name of the library, if different from the real name.
30373 soname_spec=$lt_soname_spec
30375 # Command to use after installation of a shared archive.
30376 postinstall_cmds=$lt_postinstall_cmds
30378 # Command to use after uninstallation of a shared archive.
30379 postuninstall_cmds=$lt_postuninstall_cmds
30381 # Commands used to finish a libtool library installation in a directory.
30382 finish_cmds=$lt_finish_cmds
30384 # As "finish_cmds", except a single script fragment to be evaled but
30385 # not shown.
30386 finish_eval=$lt_finish_eval
30388 # Whether we should hardcode library paths into libraries.
30389 hardcode_into_libs=$hardcode_into_libs
30391 # Compile-time system search path for libraries.
30392 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30394 # Run-time system search path for libraries.
30395 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30397 # Whether dlopen is supported.
30398 dlopen_support=$enable_dlopen
30400 # Whether dlopen of programs is supported.
30401 dlopen_self=$enable_dlopen_self
30403 # Whether dlopen of statically linked programs is supported.
30404 dlopen_self_static=$enable_dlopen_self_static
30406 # Commands to strip libraries.
30407 old_striplib=$lt_old_striplib
30408 striplib=$lt_striplib
30411 # The linker used to build libraries.
30412 LD=$lt_LD
30414 # Commands used to build an old-style archive.
30415 old_archive_cmds=$lt_old_archive_cmds
30417 # A language specific compiler.
30418 CC=$lt_compiler
30420 # Is the compiler the GNU compiler?
30421 with_gcc=$GCC
30423 # Compiler flag to turn off builtin functions.
30424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30426 # How to pass a linker flag through the compiler.
30427 wl=$lt_lt_prog_compiler_wl
30429 # Additional compiler flags for building library objects.
30430 pic_flag=$lt_lt_prog_compiler_pic
30432 # Compiler flag to prevent dynamic linking.
30433 link_static_flag=$lt_lt_prog_compiler_static
30435 # Does compiler simultaneously support -c and -o options?
30436 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30438 # Whether or not to add -lc for building shared libraries.
30439 build_libtool_need_lc=$archive_cmds_need_lc
30441 # Whether or not to disallow shared libs when runtime libs are static.
30442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30444 # Compiler flag to allow reflexive dlopens.
30445 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30447 # Compiler flag to generate shared objects directly from archives.
30448 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30450 # Whether the compiler copes with passing no objects directly.
30451 compiler_needs_object=$lt_compiler_needs_object
30453 # Create an old-style archive from a shared archive.
30454 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30456 # Create a temporary old-style archive to link instead of a shared archive.
30457 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30459 # Commands used to build a shared archive.
30460 archive_cmds=$lt_archive_cmds
30461 archive_expsym_cmds=$lt_archive_expsym_cmds
30463 # Commands used to build a loadable module if different from building
30464 # a shared archive.
30465 module_cmds=$lt_module_cmds
30466 module_expsym_cmds=$lt_module_expsym_cmds
30468 # Whether we are building with GNU ld or not.
30469 with_gnu_ld=$lt_with_gnu_ld
30471 # Flag that allows shared libraries with undefined symbols to be built.
30472 allow_undefined_flag=$lt_allow_undefined_flag
30474 # Flag that enforces no undefined symbols.
30475 no_undefined_flag=$lt_no_undefined_flag
30477 # Flag to hardcode \$libdir into a binary during linking.
30478 # This must work even if \$libdir does not exist
30479 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30481 # If ld is used when linking, flag to hardcode \$libdir into a binary
30482 # during linking. This must work even if \$libdir does not exist.
30483 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30485 # Whether we need a single "-rpath" flag with a separated argument.
30486 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30488 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30489 # DIR into the resulting binary.
30490 hardcode_direct=$hardcode_direct
30492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30493 # DIR into the resulting binary and the resulting library dependency is
30494 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30495 # library is relocated.
30496 hardcode_direct_absolute=$hardcode_direct_absolute
30498 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30499 # into the resulting binary.
30500 hardcode_minus_L=$hardcode_minus_L
30502 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30503 # into the resulting binary.
30504 hardcode_shlibpath_var=$hardcode_shlibpath_var
30506 # Set to "yes" if building a shared library automatically hardcodes DIR
30507 # into the library and all subsequent libraries and executables linked
30508 # against it.
30509 hardcode_automatic=$hardcode_automatic
30511 # Set to yes if linker adds runtime paths of dependent libraries
30512 # to runtime path list.
30513 inherit_rpath=$inherit_rpath
30515 # Whether libtool must link a program against all its dependency libraries.
30516 link_all_deplibs=$link_all_deplibs
30518 # Fix the shell variable \$srcfile for the compiler.
30519 fix_srcfile_path=$lt_fix_srcfile_path
30521 # Set to "yes" if exported symbols are required.
30522 always_export_symbols=$always_export_symbols
30524 # The commands to list exported symbols.
30525 export_symbols_cmds=$lt_export_symbols_cmds
30527 # Symbols that should not be listed in the preloaded symbols.
30528 exclude_expsyms=$lt_exclude_expsyms
30530 # Symbols that must always be exported.
30531 include_expsyms=$lt_include_expsyms
30533 # Commands necessary for linking programs (against libraries) with templates.
30534 prelink_cmds=$lt_prelink_cmds
30536 # Specify filename containing input files.
30537 file_list_spec=$lt_file_list_spec
30539 # How to hardcode a shared library path into an executable.
30540 hardcode_action=$hardcode_action
30542 # Dependencies to place before and after the objects being linked to
30543 # create a shared library.
30544 predep_objects=$lt_predep_objects
30545 postdep_objects=$lt_postdep_objects
30546 predeps=$lt_predeps
30547 postdeps=$lt_postdeps
30549 # The library search path used internally by the compiler when linking
30550 # a shared library.
30551 compiler_lib_search_path=$lt_compiler_lib_search_path
30553 # ### END LIBTOOL CONFIG
30555 _LT_EOF
30557 case $host_os in
30558 aix3*)
30559 cat <<\_LT_EOF >> "$cfgfile"
30560 # AIX sometimes has problems with the GCC collect2 program. For some
30561 # reason, if we set the COLLECT_NAMES environment variable, the problems
30562 # vanish in a puff of smoke.
30563 if test "X${COLLECT_NAMES+set}" != Xset; then
30564 COLLECT_NAMES=
30565 export COLLECT_NAMES
30567 _LT_EOF
30569 esac
30572 ltmain="$ac_aux_dir/ltmain.sh"
30575 # We use sed instead of cat because bash on DJGPP gets confused if
30576 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30577 # text mode, it properly converts lines to CR/LF. This bash problem
30578 # is reportedly fixed, but why not run on old versions too?
30579 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30580 || (rm -f "$cfgfile"; exit 1)
30582 case $xsi_shell in
30583 yes)
30584 cat << \_LT_EOF >> "$cfgfile"
30585 # func_dirname file append nondir_replacement
30586 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30587 # otherwise set result to NONDIR_REPLACEMENT.
30588 func_dirname ()
30590 case ${1} in
30591 */*) func_dirname_result="${1%/*}${2}" ;;
30592 * ) func_dirname_result="${3}" ;;
30593 esac
30596 # func_basename file
30597 func_basename ()
30599 func_basename_result="${1##*/}"
30602 # func_stripname prefix suffix name
30603 # strip PREFIX and SUFFIX off of NAME.
30604 # PREFIX and SUFFIX must not contain globbing or regex special
30605 # characters, hashes, percent signs, but SUFFIX may contain a leading
30606 # dot (in which case that matches only a dot).
30607 func_stripname ()
30609 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30610 # positional parameters, so assign one to ordinary parameter first.
30611 func_stripname_result=${3}
30612 func_stripname_result=${func_stripname_result#"${1}"}
30613 func_stripname_result=${func_stripname_result%"${2}"}
30616 # func_opt_split
30617 func_opt_split ()
30619 func_opt_split_opt=${1%%=*}
30620 func_opt_split_arg=${1#*=}
30623 # func_lo2o object
30624 func_lo2o ()
30626 case ${1} in
30627 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30628 *) func_lo2o_result=${1} ;;
30629 esac
30631 _LT_EOF
30633 *) # Bourne compatible functions.
30634 cat << \_LT_EOF >> "$cfgfile"
30635 # func_dirname file append nondir_replacement
30636 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30637 # otherwise set result to NONDIR_REPLACEMENT.
30638 func_dirname ()
30640 # Extract subdirectory from the argument.
30641 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30642 if test "X$func_dirname_result" = "X${1}"; then
30643 func_dirname_result="${3}"
30644 else
30645 func_dirname_result="$func_dirname_result${2}"
30649 # func_basename file
30650 func_basename ()
30652 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30655 # func_stripname prefix suffix name
30656 # strip PREFIX and SUFFIX off of NAME.
30657 # PREFIX and SUFFIX must not contain globbing or regex special
30658 # characters, hashes, percent signs, but SUFFIX may contain a leading
30659 # dot (in which case that matches only a dot).
30660 # func_strip_suffix prefix name
30661 func_stripname ()
30663 case ${2} in
30664 .*) func_stripname_result=`$ECHO "X${3}" \
30665 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30666 *) func_stripname_result=`$ECHO "X${3}" \
30667 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30668 esac
30671 # sed scripts:
30672 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30673 my_sed_long_arg='1s/^-[^=]*=//'
30675 # func_opt_split
30676 func_opt_split ()
30678 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30679 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30682 # func_lo2o object
30683 func_lo2o ()
30685 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30687 _LT_EOF
30688 esac
30690 case $lt_shell_append in
30691 yes)
30692 cat << \_LT_EOF >> "$cfgfile"
30694 # func_append var value
30695 # Append VALUE to the end of shell variable VAR.
30696 func_append ()
30698 eval "$1+=\$2"
30700 _LT_EOF
30703 cat << \_LT_EOF >> "$cfgfile"
30705 # func_append var value
30706 # Append VALUE to the end of shell variable VAR.
30707 func_append ()
30709 eval "$1=\$$1\$2"
30711 _LT_EOF
30713 esac
30716 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30717 || (rm -f "$cfgfile"; exit 1)
30719 mv -f "$cfgfile" "$ofile" ||
30720 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30721 chmod +x "$ofile"
30724 cat <<_LT_EOF >> "$ofile"
30726 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30728 # The linker used to build libraries.
30729 LD=$lt_LD_CXX
30731 # Commands used to build an old-style archive.
30732 old_archive_cmds=$lt_old_archive_cmds_CXX
30734 # A language specific compiler.
30735 CC=$lt_compiler_CXX
30737 # Is the compiler the GNU compiler?
30738 with_gcc=$GCC_CXX
30740 # Compiler flag to turn off builtin functions.
30741 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30743 # How to pass a linker flag through the compiler.
30744 wl=$lt_lt_prog_compiler_wl_CXX
30746 # Additional compiler flags for building library objects.
30747 pic_flag=$lt_lt_prog_compiler_pic_CXX
30749 # Compiler flag to prevent dynamic linking.
30750 link_static_flag=$lt_lt_prog_compiler_static_CXX
30752 # Does compiler simultaneously support -c and -o options?
30753 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30755 # Whether or not to add -lc for building shared libraries.
30756 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30758 # Whether or not to disallow shared libs when runtime libs are static.
30759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30761 # Compiler flag to allow reflexive dlopens.
30762 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30764 # Compiler flag to generate shared objects directly from archives.
30765 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30767 # Whether the compiler copes with passing no objects directly.
30768 compiler_needs_object=$lt_compiler_needs_object_CXX
30770 # Create an old-style archive from a shared archive.
30771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30773 # Create a temporary old-style archive to link instead of a shared archive.
30774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30776 # Commands used to build a shared archive.
30777 archive_cmds=$lt_archive_cmds_CXX
30778 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30780 # Commands used to build a loadable module if different from building
30781 # a shared archive.
30782 module_cmds=$lt_module_cmds_CXX
30783 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30785 # Whether we are building with GNU ld or not.
30786 with_gnu_ld=$lt_with_gnu_ld_CXX
30788 # Flag that allows shared libraries with undefined symbols to be built.
30789 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30791 # Flag that enforces no undefined symbols.
30792 no_undefined_flag=$lt_no_undefined_flag_CXX
30794 # Flag to hardcode \$libdir into a binary during linking.
30795 # This must work even if \$libdir does not exist
30796 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
30798 # If ld is used when linking, flag to hardcode \$libdir into a binary
30799 # during linking. This must work even if \$libdir does not exist.
30800 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
30802 # Whether we need a single "-rpath" flag with a separated argument.
30803 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
30805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30806 # DIR into the resulting binary.
30807 hardcode_direct=$hardcode_direct_CXX
30809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30810 # DIR into the resulting binary and the resulting library dependency is
30811 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30812 # library is relocated.
30813 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
30815 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30816 # into the resulting binary.
30817 hardcode_minus_L=$hardcode_minus_L_CXX
30819 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30820 # into the resulting binary.
30821 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
30823 # Set to "yes" if building a shared library automatically hardcodes DIR
30824 # into the library and all subsequent libraries and executables linked
30825 # against it.
30826 hardcode_automatic=$hardcode_automatic_CXX
30828 # Set to yes if linker adds runtime paths of dependent libraries
30829 # to runtime path list.
30830 inherit_rpath=$inherit_rpath_CXX
30832 # Whether libtool must link a program against all its dependency libraries.
30833 link_all_deplibs=$link_all_deplibs_CXX
30835 # Fix the shell variable \$srcfile for the compiler.
30836 fix_srcfile_path=$lt_fix_srcfile_path_CXX
30838 # Set to "yes" if exported symbols are required.
30839 always_export_symbols=$always_export_symbols_CXX
30841 # The commands to list exported symbols.
30842 export_symbols_cmds=$lt_export_symbols_cmds_CXX
30844 # Symbols that should not be listed in the preloaded symbols.
30845 exclude_expsyms=$lt_exclude_expsyms_CXX
30847 # Symbols that must always be exported.
30848 include_expsyms=$lt_include_expsyms_CXX
30850 # Commands necessary for linking programs (against libraries) with templates.
30851 prelink_cmds=$lt_prelink_cmds_CXX
30853 # Specify filename containing input files.
30854 file_list_spec=$lt_file_list_spec_CXX
30856 # How to hardcode a shared library path into an executable.
30857 hardcode_action=$hardcode_action_CXX
30859 # Dependencies to place before and after the objects being linked to
30860 # create a shared library.
30861 predep_objects=$lt_predep_objects_CXX
30862 postdep_objects=$lt_postdep_objects_CXX
30863 predeps=$lt_predeps_CXX
30864 postdeps=$lt_postdeps_CXX
30866 # The library search path used internally by the compiler when linking
30867 # a shared library.
30868 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
30870 # ### END LIBTOOL TAG CONFIG: CXX
30871 _LT_EOF
30874 cat <<_LT_EOF >> "$ofile"
30876 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
30878 # The linker used to build libraries.
30879 LD=$lt_LD_GCJ
30881 # Commands used to build an old-style archive.
30882 old_archive_cmds=$lt_old_archive_cmds_GCJ
30884 # A language specific compiler.
30885 CC=$lt_compiler_GCJ
30887 # Is the compiler the GNU compiler?
30888 with_gcc=$GCC_GCJ
30890 # Compiler flag to turn off builtin functions.
30891 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30893 # How to pass a linker flag through the compiler.
30894 wl=$lt_lt_prog_compiler_wl_GCJ
30896 # Additional compiler flags for building library objects.
30897 pic_flag=$lt_lt_prog_compiler_pic_GCJ
30899 # Compiler flag to prevent dynamic linking.
30900 link_static_flag=$lt_lt_prog_compiler_static_GCJ
30902 # Does compiler simultaneously support -c and -o options?
30903 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30905 # Whether or not to add -lc for building shared libraries.
30906 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30908 # Whether or not to disallow shared libs when runtime libs are static.
30909 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30911 # Compiler flag to allow reflexive dlopens.
30912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30914 # Compiler flag to generate shared objects directly from archives.
30915 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30917 # Whether the compiler copes with passing no objects directly.
30918 compiler_needs_object=$lt_compiler_needs_object_GCJ
30920 # Create an old-style archive from a shared archive.
30921 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30923 # Create a temporary old-style archive to link instead of a shared archive.
30924 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30926 # Commands used to build a shared archive.
30927 archive_cmds=$lt_archive_cmds_GCJ
30928 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30930 # Commands used to build a loadable module if different from building
30931 # a shared archive.
30932 module_cmds=$lt_module_cmds_GCJ
30933 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30935 # Whether we are building with GNU ld or not.
30936 with_gnu_ld=$lt_with_gnu_ld_GCJ
30938 # Flag that allows shared libraries with undefined symbols to be built.
30939 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
30941 # Flag that enforces no undefined symbols.
30942 no_undefined_flag=$lt_no_undefined_flag_GCJ
30944 # Flag to hardcode \$libdir into a binary during linking.
30945 # This must work even if \$libdir does not exist
30946 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
30948 # If ld is used when linking, flag to hardcode \$libdir into a binary
30949 # during linking. This must work even if \$libdir does not exist.
30950 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
30952 # Whether we need a single "-rpath" flag with a separated argument.
30953 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
30955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30956 # DIR into the resulting binary.
30957 hardcode_direct=$hardcode_direct_GCJ
30959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30960 # DIR into the resulting binary and the resulting library dependency is
30961 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30962 # library is relocated.
30963 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
30965 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30966 # into the resulting binary.
30967 hardcode_minus_L=$hardcode_minus_L_GCJ
30969 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30970 # into the resulting binary.
30971 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
30973 # Set to "yes" if building a shared library automatically hardcodes DIR
30974 # into the library and all subsequent libraries and executables linked
30975 # against it.
30976 hardcode_automatic=$hardcode_automatic_GCJ
30978 # Set to yes if linker adds runtime paths of dependent libraries
30979 # to runtime path list.
30980 inherit_rpath=$inherit_rpath_GCJ
30982 # Whether libtool must link a program against all its dependency libraries.
30983 link_all_deplibs=$link_all_deplibs_GCJ
30985 # Fix the shell variable \$srcfile for the compiler.
30986 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
30988 # Set to "yes" if exported symbols are required.
30989 always_export_symbols=$always_export_symbols_GCJ
30991 # The commands to list exported symbols.
30992 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
30994 # Symbols that should not be listed in the preloaded symbols.
30995 exclude_expsyms=$lt_exclude_expsyms_GCJ
30997 # Symbols that must always be exported.
30998 include_expsyms=$lt_include_expsyms_GCJ
31000 # Commands necessary for linking programs (against libraries) with templates.
31001 prelink_cmds=$lt_prelink_cmds_GCJ
31003 # Specify filename containing input files.
31004 file_list_spec=$lt_file_list_spec_GCJ
31006 # How to hardcode a shared library path into an executable.
31007 hardcode_action=$hardcode_action_GCJ
31009 # Dependencies to place before and after the objects being linked to
31010 # create a shared library.
31011 predep_objects=$lt_predep_objects_GCJ
31012 postdep_objects=$lt_postdep_objects_GCJ
31013 predeps=$lt_predeps_GCJ
31014 postdeps=$lt_postdeps_GCJ
31016 # The library search path used internally by the compiler when linking
31017 # a shared library.
31018 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31020 # ### END LIBTOOL TAG CONFIG: GCJ
31021 _LT_EOF
31024 esac
31025 done
31026 _ACEOF
31028 cat >>$CONFIG_STATUS <<\_ACEOF
31030 { (exit 0); exit 0; }
31031 _ACEOF
31032 chmod +x $CONFIG_STATUS
31033 ac_clean_files=$ac_clean_files_save
31036 # configure is writing to config.log, and then calls config.status.
31037 # config.status does its own redirection, appending to config.log.
31038 # Unfortunately, on DOS this fails, as config.log is still kept open
31039 # by configure, so config.status won't be able to write to it; its
31040 # output is simply discarded. So we exec the FD to /dev/null,
31041 # effectively closing config.log, so it can be properly (re)opened and
31042 # appended to by config.status. When coming back to configure, we
31043 # need to make the FD available again.
31044 if test "$no_create" != yes; then
31045 ac_cs_success=:
31046 ac_config_status_args=
31047 test "$silent" = yes &&
31048 ac_config_status_args="$ac_config_status_args --quiet"
31049 exec 5>/dev/null
31050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31051 exec 5>>config.log
31052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31053 # would make configure fail if this is the last instruction.
31054 $ac_cs_success || { (exit 1); exit 1; }
31058 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31060 if test "$no_recursion" != yes; then
31062 # Remove --cache-file and --srcdir arguments so they do not pile up.
31063 ac_sub_configure_args=
31064 ac_prev=
31065 eval "set x $ac_configure_args"
31066 shift
31067 for ac_arg
31069 if test -n "$ac_prev"; then
31070 ac_prev=
31071 continue
31073 case $ac_arg in
31074 -cache-file | --cache-file | --cache-fil | --cache-fi \
31075 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31076 ac_prev=cache_file ;;
31077 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31078 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31079 | --c=*)
31081 --config-cache | -C)
31083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31084 ac_prev=srcdir ;;
31085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31088 ac_prev=prefix ;;
31089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31092 case $ac_arg in
31093 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31094 esac
31095 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31096 esac
31097 done
31099 # Always prepend --prefix to ensure using the same prefix
31100 # in subdir configurations.
31101 ac_arg="--prefix=$prefix"
31102 case $ac_arg in
31103 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31104 esac
31105 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31107 ac_popdir=`pwd`
31108 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31110 # Do not complain, so a configure script can configure whichever
31111 # parts of a large source tree are present.
31112 test -d "$srcdir/$ac_dir" || continue
31114 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31115 echo "$as_me: configuring in $ac_dir" >&6;}
31116 { if $as_mkdir_p; then
31117 mkdir -p "$ac_dir"
31118 else
31119 as_dir="$ac_dir"
31120 as_dirs=
31121 while test ! -d "$as_dir"; do
31122 as_dirs="$as_dir $as_dirs"
31123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31125 X"$as_dir" : 'X\(//\)[^/]' \| \
31126 X"$as_dir" : 'X\(//\)$' \| \
31127 X"$as_dir" : 'X\(/\)' \| \
31128 . : '\(.\)' 2>/dev/null ||
31129 echo X"$as_dir" |
31130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31132 /^X\(\/\/\)$/{ s//\1/; q; }
31133 /^X\(\/\).*/{ s//\1/; q; }
31134 s/.*/./; q'`
31135 done
31136 test ! -n "$as_dirs" || mkdir $as_dirs
31137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31139 { (exit 1); exit 1; }; }; }
31141 ac_builddir=.
31143 if test "$ac_dir" != .; then
31144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31145 # A "../" for each directory in $ac_dir_suffix.
31146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31147 else
31148 ac_dir_suffix= ac_top_builddir=
31151 case $srcdir in
31152 .) # No --srcdir option. We are building in place.
31153 ac_srcdir=.
31154 if test -z "$ac_top_builddir"; then
31155 ac_top_srcdir=.
31156 else
31157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31158 fi ;;
31159 [\\/]* | ?:[\\/]* ) # Absolute path.
31160 ac_srcdir=$srcdir$ac_dir_suffix;
31161 ac_top_srcdir=$srcdir ;;
31162 *) # Relative path.
31163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31165 esac
31167 # Do not use `cd foo && pwd` to compute absolute paths, because
31168 # the directories may not exist.
31169 case `pwd` in
31170 .) ac_abs_builddir="$ac_dir";;
31172 case "$ac_dir" in
31173 .) ac_abs_builddir=`pwd`;;
31174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31176 esac;;
31177 esac
31178 case $ac_abs_builddir in
31179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31181 case ${ac_top_builddir}. in
31182 .) ac_abs_top_builddir=$ac_abs_builddir;;
31183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31185 esac;;
31186 esac
31187 case $ac_abs_builddir in
31188 .) ac_abs_srcdir=$ac_srcdir;;
31190 case $ac_srcdir in
31191 .) ac_abs_srcdir=$ac_abs_builddir;;
31192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31194 esac;;
31195 esac
31196 case $ac_abs_builddir in
31197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31199 case $ac_top_srcdir in
31200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31203 esac;;
31204 esac
31207 cd "$ac_dir"
31209 # Check for guested configure; otherwise get Cygnus style configure.
31210 if test -f "$ac_srcdir/configure.gnu"; then
31211 ac_sub_configure=$ac_srcdir/configure.gnu
31212 elif test -f "$ac_srcdir/configure"; then
31213 ac_sub_configure=$ac_srcdir/configure
31214 elif test -f "$ac_srcdir/configure.in"; then
31215 # This should be Cygnus configure.
31216 ac_sub_configure=$ac_aux_dir/configure
31217 else
31218 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31219 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31220 ac_sub_configure=
31223 # The recursion is here.
31224 if test -n "$ac_sub_configure"; then
31225 # Make the cache file name correct relative to the subdirectory.
31226 case $cache_file in
31227 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31228 *) # Relative path.
31229 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31230 esac
31232 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31233 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31234 # The eval makes quoting arguments work.
31235 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31236 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31237 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31238 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31239 { (exit 1); exit 1; }; }
31242 cd "$ac_popdir"
31243 done