re PR tree-optimization/36891 (ICE with vector division and -ffast-math and LIM)
[official-gcc.git] / libjava / configure
bloba5071029b44515662c83d67e298ac645c8b1f028
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 OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS CXXCPP GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ECJ_BUILD_JAR ECJ_JAR BUILD_ECJ1_TRUE BUILD_ECJ1_FALSE INSTALL_ECJ_JAR_TRUE INSTALL_ECJ_JAR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME SUPPRESS_LIBGCJ_BC_TRUE SUPPRESS_LIBGCJ_BC_FALSE BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE INTERPRETER INTERPRETER_TRUE INTERPRETER_FALSE LIBFFI LIBFFIINCS PLATFORM USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS extra_ldflags_libjava extra_gij_ldflags extra_ldflags LIBSTDCXXSPEC LIBGCJTESTSPEC GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADSTARTFILESPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE USE_LIBGCJ_BC_TRUE USE_LIBGCJ_BC_FALSE LIBGCJ_SPEC HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV PKG_CONFIG GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS CLASSPATH_SEPARATOR ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE ENABLE_SHARED_TRUE ENABLE_SHARED_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION dbexecdir gcjsubdir gxx_include_dir libstdcxx_incdir PERL SYSDEP_SOURCES ANONVERSCRIPT_TRUE ANONVERSCRIPT_FALSE LD_START_STATIC_SPEC LD_FINISH_STATIC_SPEC here python_mod_dir python_mod_dir_expanded MAKE INSTALL_AOT_RPM_TRUE INSTALL_AOT_RPM_FALSE CREATE_JAVA_HOME_TRUE CREATE_JAVA_HOME_FALSE gcc_suffix JAVA_VERSION BUILD_VERSION JVM_ROOT_DIR JVM_JAR_ROOT_DIR JVM_JAR_DIR JRE_DIR SDK_DIR JRE_LNK SDK_LNK SDK_BIN_DIR SDK_LIB_DIR SDK_INCLUDE_DIR JRE_BIN_DIR JRE_LIB_DIR GCJ_BIN_DIR CPU OS LIBDIR LIBOBJS LTLIBOBJS'
463 ac_subst_files=''
464 ac_pwd=`pwd`
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
504 ac_prev=
505 for ac_option
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
518 case $ac_option in
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 bindir=$ac_optarg ;;
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535 cache_file=$ac_optarg ;;
537 --config-cache | -C)
538 cache_file=config.cache ;;
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir=$ac_optarg ;;
546 -disable-* | --disable-*)
547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
555 -enable-* | --enable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 case $ac_option in
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_$ac_feature='$ac_optarg'" ;;
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix=$ac_optarg ;;
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
581 -help | --help | --hel | --he | -h)
582 ac_init_help=long ;;
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
598 includedir=$ac_optarg ;;
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 libdir=$ac_optarg ;;
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
615 libexecdir=$ac_optarg ;;
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624 localstatedir=$ac_optarg ;;
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 mandir=$ac_optarg ;;
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
637 no_create=yes ;;
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 no_recursion=yes ;;
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650 oldincludedir=$ac_optarg ;;
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 prefix=$ac_optarg ;;
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662 program_prefix=$ac_optarg ;;
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669 program_suffix=$ac_optarg ;;
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
686 program_transform_name=$ac_optarg ;;
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 ac_prev=sbindir ;;
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 | --sbi=* | --sb=*)
696 sbindir=$ac_optarg ;;
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
701 | --sha | --sh)
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 | --sha=* | --sh=*)
707 sharedstatedir=$ac_optarg ;;
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
712 site=$ac_optarg ;;
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 srcdir=$ac_optarg ;;
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724 sysconfdir=$ac_optarg ;;
726 -target | --target | --targe | --targ | --tar | --ta | --t)
727 ac_prev=target_alias ;;
728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729 target_alias=$ac_optarg ;;
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
737 -with-* | --with-*)
738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 case $ac_option in
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 *) ac_optarg=yes ;;
747 esac
748 eval "with_$ac_package='$ac_optarg'" ;;
750 -without-* | --without-*)
751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768 x_includes=$ac_optarg ;;
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775 x_libraries=$ac_optarg ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
782 *=*)
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
790 export $ac_envvar ;;
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 esac
801 done
803 if test -n "$ac_prev"; then
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
846 cross_compiling=yes
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853 test "$silent" = yes && exec 6>/dev/null
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
872 srcdir=$ac_confdir
873 if test ! -r $srcdir/$ac_unique_file; then
874 srcdir=..
876 else
877 ac_srcdir_defaulted=no
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
883 else
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CPP_set=${CPP+set}
905 ac_env_CPP_value=$CPP
906 ac_cv_env_CPP_set=${CPP+set}
907 ac_cv_env_CPP_value=$CPP
908 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_env_CPPFLAGS_value=$CPPFLAGS
910 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912 ac_env_CXX_set=${CXX+set}
913 ac_env_CXX_value=$CXX
914 ac_cv_env_CXX_set=${CXX+set}
915 ac_cv_env_CXX_value=$CXX
916 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
917 ac_env_CXXFLAGS_value=$CXXFLAGS
918 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
919 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CXXCPP_set=${CXXCPP+set}
925 ac_env_CXXCPP_value=$CXXCPP
926 ac_cv_env_CXXCPP_set=${CXXCPP+set}
927 ac_cv_env_CXXCPP_value=$CXXCPP
930 # Report the --help message.
932 if test "$ac_init_help" = "long"; then
933 # Omit some internal or obsolete options to make the list less imposing.
934 # This message is too long to be a string in the A/UX 3.1 sh.
935 cat <<_ACEOF
936 \`configure' configures libjava version-unused to adapt to many kinds of systems.
938 Usage: $0 [OPTION]... [VAR=VALUE]...
940 To assign environment variables (e.g., CC, CFLAGS...), specify them as
941 VAR=VALUE. See below for descriptions of some of the useful variables.
943 Defaults for the options are specified in brackets.
945 Configuration:
946 -h, --help display this help and exit
947 --help=short display options specific to this package
948 --help=recursive display the short help of all the included packages
949 -V, --version display version information and exit
950 -q, --quiet, --silent do not print \`checking...' messages
951 --cache-file=FILE cache test results in FILE [disabled]
952 -C, --config-cache alias for \`--cache-file=config.cache'
953 -n, --no-create do not create output files
954 --srcdir=DIR find the sources in DIR [configure dir or \`..']
956 _ACEOF
958 cat <<_ACEOF
959 Installation directories:
960 --prefix=PREFIX install architecture-independent files in PREFIX
961 [$ac_default_prefix]
962 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
963 [PREFIX]
965 By default, \`make install' will install all the files in
966 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
967 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
968 for instance \`--prefix=\$HOME'.
970 For better control, use the options below.
972 Fine tuning of the installation directories:
973 --bindir=DIR user executables [EPREFIX/bin]
974 --sbindir=DIR system admin executables [EPREFIX/sbin]
975 --libexecdir=DIR program executables [EPREFIX/libexec]
976 --datadir=DIR read-only architecture-independent data [PREFIX/share]
977 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
978 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
979 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
980 --libdir=DIR object code libraries [EPREFIX/lib]
981 --includedir=DIR C header files [PREFIX/include]
982 --oldincludedir=DIR C header files for non-gcc [/usr/include]
983 --infodir=DIR info documentation [PREFIX/info]
984 --mandir=DIR man documentation [PREFIX/man]
985 _ACEOF
987 cat <<\_ACEOF
989 Program names:
990 --program-prefix=PREFIX prepend PREFIX to installed program names
991 --program-suffix=SUFFIX append SUFFIX to installed program names
992 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
994 X features:
995 --x-includes=DIR X include files are in DIR
996 --x-libraries=DIR X library files are in DIR
998 System types:
999 --build=BUILD configure for building on BUILD [guessed]
1000 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1001 --target=TARGET configure for building compilers for TARGET [HOST]
1002 _ACEOF
1005 if test -n "$ac_init_help"; then
1006 case $ac_init_help in
1007 short | recursive ) echo "Configuration of libjava version-unused:";;
1008 esac
1009 cat <<\_ACEOF
1011 Optional Features:
1012 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1013 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1014 --enable-multilib build many library versions (default)
1015 --enable-version-specific-runtime-libs
1016 specify that runtime libraries should be installed
1017 in a compiler-specific directory
1018 --enable-plugin build gcjwebplugin web browser plugin
1019 --enable-gconf-peer compile GConf native peers for util.preferences
1020 --enable-java-maintainer-mode
1021 allow rebuilding of .class and .h files
1022 --disable-dependency-tracking speeds up one-time build
1023 --enable-dependency-tracking do not reject slow dependency extractors
1024 --enable-maintainer-mode enable make rules and dependencies not useful
1025 (and sometimes confusing) to the casual installer
1026 --enable-libgcj-debug enable runtime debugging code
1027 --enable-java-awt list of AWT peer implementations to be built
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --disable-getenv-properties
1036 don't set system properties from GCJ_PROPERTIES
1037 --enable-hash-synchronization
1038 use global hash table for monitor locks
1039 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1040 libgcj
1041 --enable-reduced-reflection
1042 enable or disable(default) -freduced-reflection when
1043 building portions of libgcj
1044 --enable-gc-debug include full support for pointer backtracing etc.
1045 --enable-interpreter enable interpreter
1046 --enable-sjlj-exceptions
1047 force use of builtin_setjmp for exceptions
1048 --disable-java-net disable java.net
1049 --disable-jvmpi disable JVMPI support
1050 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1051 --disable-rpath do not hardcode runtime library paths
1052 --enable-tls Use thread-local storage [default=yes]
1053 --enable-aot-compile-rpm
1054 enable installation of aot-compile-rpm [default=no]
1055 --enable-java-home create a standard JDK-style directory layout in the
1056 install tree [default=no]
1058 Optional Packages:
1059 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1060 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1061 --with-build-libsubdir=DIR Directory where to find libraries for build system
1062 --with-target-subdir=SUBDIR
1063 configure in a subdirectory
1064 --with-cross-host=HOST configure with a cross compiler from HOST
1065 --with-newlib configure with newlib
1066 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1067 --with-pic try to use only PIC/non-PIC objects [default=use
1068 both]
1069 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1070 --with-ecj-jar=FILE use preinstalled ecj jar
1071 --with-java-home=DIRECTORY
1072 value of java.home system property
1073 --with-win32-nlsapi=ansi or unicows or unicode
1074 native MinGW libgcj Win32 OS API (default is ansi)
1075 --without-libffi don't use libffi
1076 --with-ecos enable runtime eCos target support
1077 --with-system-zlib use installed libz
1078 --with-x use the X Window System
1079 --with-gnu-ld assume the C compiler uses GNU ld default=no
1080 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1081 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1082 --with-python-dir the location to install Python modules. This path
1083 should NOT include the prefix.
1084 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1085 --with-arch-directory the arch directory under jre/lib (defaults to
1086 auto-detect)
1087 --with-os-directory the os directory under include (defaults to
1088 auto-detect)
1089 --with-origin-name the JPackage origin name of this package (default is
1090 gcj${gcc_suffix}
1091 --with-arch-suffix the arch directory suffix (default is the empty
1092 string
1093 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1094 --with-jvm-jar-dir where to install jars (default is
1095 ${prefix}/lib/jvm-exports)
1097 Some influential environment variables:
1098 CC C compiler command
1099 CFLAGS C compiler flags
1100 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1101 nonstandard directory <lib dir>
1102 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1103 headers in a nonstandard directory <include dir>
1104 CXX C++ compiler command
1105 CXXFLAGS C++ compiler flags
1106 CPP C preprocessor
1107 CXXCPP C++ preprocessor
1109 Use these variables to override the choices made by `configure' or to help
1110 it to find libraries and programs with nonstandard names/locations.
1112 _ACEOF
1115 if test "$ac_init_help" = "recursive"; then
1116 # If there are subdirs, report their specific --help.
1117 ac_popdir=`pwd`
1118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119 test -d $ac_dir || continue
1120 ac_builddir=.
1122 if test "$ac_dir" != .; then
1123 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124 # A "../" for each directory in $ac_dir_suffix.
1125 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126 else
1127 ac_dir_suffix= ac_top_builddir=
1130 case $srcdir in
1131 .) # No --srcdir option. We are building in place.
1132 ac_srcdir=.
1133 if test -z "$ac_top_builddir"; then
1134 ac_top_srcdir=.
1135 else
1136 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137 fi ;;
1138 [\\/]* | ?:[\\/]* ) # Absolute path.
1139 ac_srcdir=$srcdir$ac_dir_suffix;
1140 ac_top_srcdir=$srcdir ;;
1141 *) # Relative path.
1142 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144 esac
1146 # Do not use `cd foo && pwd` to compute absolute paths, because
1147 # the directories may not exist.
1148 case `pwd` in
1149 .) ac_abs_builddir="$ac_dir";;
1151 case "$ac_dir" in
1152 .) ac_abs_builddir=`pwd`;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155 esac;;
1156 esac
1157 case $ac_abs_builddir in
1158 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 case ${ac_top_builddir}. in
1161 .) ac_abs_top_builddir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164 esac;;
1165 esac
1166 case $ac_abs_builddir in
1167 .) ac_abs_srcdir=$ac_srcdir;;
1169 case $ac_srcdir in
1170 .) ac_abs_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173 esac;;
1174 esac
1175 case $ac_abs_builddir in
1176 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 case $ac_top_srcdir in
1179 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182 esac;;
1183 esac
1185 cd $ac_dir
1186 # Check for guested configure; otherwise get Cygnus style configure.
1187 if test -f $ac_srcdir/configure.gnu; then
1188 echo
1189 $SHELL $ac_srcdir/configure.gnu --help=recursive
1190 elif test -f $ac_srcdir/configure; then
1191 echo
1192 $SHELL $ac_srcdir/configure --help=recursive
1193 elif test -f $ac_srcdir/configure.ac ||
1194 test -f $ac_srcdir/configure.in; then
1195 echo
1196 $ac_configure --help
1197 else
1198 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1200 cd $ac_popdir
1201 done
1204 test -n "$ac_init_help" && exit 0
1205 if $ac_init_version; then
1206 cat <<\_ACEOF
1207 libjava configure version-unused
1208 generated by GNU Autoconf 2.59
1210 Copyright (C) 2003 Free Software Foundation, Inc.
1211 This configure script is free software; the Free Software Foundation
1212 gives unlimited permission to copy, distribute and modify it.
1213 _ACEOF
1214 exit 0
1216 exec 5>config.log
1217 cat >&5 <<_ACEOF
1218 This file contains any messages produced by compilers while
1219 running configure, to aid debugging if configure makes a mistake.
1221 It was created by libjava $as_me version-unused, which was
1222 generated by GNU Autoconf 2.59. Invocation command line was
1224 $ $0 $@
1226 _ACEOF
1228 cat <<_ASUNAME
1229 ## --------- ##
1230 ## Platform. ##
1231 ## --------- ##
1233 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1234 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1235 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1236 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1237 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1240 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1242 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1243 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1244 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1245 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1246 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1247 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1248 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1250 _ASUNAME
1252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1253 for as_dir in $PATH
1255 IFS=$as_save_IFS
1256 test -z "$as_dir" && as_dir=.
1257 echo "PATH: $as_dir"
1258 done
1260 } >&5
1262 cat >&5 <<_ACEOF
1265 ## ----------- ##
1266 ## Core tests. ##
1267 ## ----------- ##
1269 _ACEOF
1272 # Keep a trace of the command line.
1273 # Strip out --no-create and --no-recursion so they do not pile up.
1274 # Strip out --silent because we don't want to record it for future runs.
1275 # Also quote any args containing shell meta-characters.
1276 # Make two passes to allow for proper duplicate-argument suppression.
1277 ac_configure_args=
1278 ac_configure_args0=
1279 ac_configure_args1=
1280 ac_sep=
1281 ac_must_keep_next=false
1282 for ac_pass in 1 2
1284 for ac_arg
1286 case $ac_arg in
1287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1289 | -silent | --silent | --silen | --sile | --sil)
1290 continue ;;
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 esac
1294 case $ac_pass in
1295 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1298 if test $ac_must_keep_next = true; then
1299 ac_must_keep_next=false # Got value, back to normal.
1300 else
1301 case $ac_arg in
1302 *=* | --config-cache | -C | -disable-* | --disable-* \
1303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1305 | -with-* | --with-* | -without-* | --without-* | --x)
1306 case "$ac_configure_args0 " in
1307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1308 esac
1310 -* ) ac_must_keep_next=true ;;
1311 esac
1313 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1314 # Get rid of the leading space.
1315 ac_sep=" "
1317 esac
1318 done
1319 done
1320 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1321 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323 # When interrupted or exit'd, cleanup temporary files, and complete
1324 # config.log. We remove comments because anyway the quotes in there
1325 # would cause problems or look ugly.
1326 # WARNING: Be sure not to use single quotes in there, as some shells,
1327 # such as our DU 5.0 friend, will then `close' the trap.
1328 trap 'exit_status=$?
1329 # Save into config.log some information that might help in debugging.
1331 echo
1333 cat <<\_ASBOX
1334 ## ---------------- ##
1335 ## Cache variables. ##
1336 ## ---------------- ##
1337 _ASBOX
1338 echo
1339 # The following way of writing the cache mishandles newlines in values,
1341 (set) 2>&1 |
1342 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1343 *ac_space=\ *)
1344 sed -n \
1345 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1346 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1349 sed -n \
1350 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352 esac;
1354 echo
1356 cat <<\_ASBOX
1357 ## ----------------- ##
1358 ## Output variables. ##
1359 ## ----------------- ##
1360 _ASBOX
1361 echo
1362 for ac_var in $ac_subst_vars
1364 eval ac_val=$`echo $ac_var`
1365 echo "$ac_var='"'"'$ac_val'"'"'"
1366 done | sort
1367 echo
1369 if test -n "$ac_subst_files"; then
1370 cat <<\_ASBOX
1371 ## ------------- ##
1372 ## Output files. ##
1373 ## ------------- ##
1374 _ASBOX
1375 echo
1376 for ac_var in $ac_subst_files
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1380 done | sort
1381 echo
1384 if test -s confdefs.h; then
1385 cat <<\_ASBOX
1386 ## ----------- ##
1387 ## confdefs.h. ##
1388 ## ----------- ##
1389 _ASBOX
1390 echo
1391 sed "/^$/d" confdefs.h | sort
1392 echo
1394 test "$ac_signal" != 0 &&
1395 echo "$as_me: caught signal $ac_signal"
1396 echo "$as_me: exit $exit_status"
1397 } >&5
1398 rm -f core *.core &&
1399 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1400 exit $exit_status
1402 for ac_signal in 1 2 13 15; do
1403 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1404 done
1405 ac_signal=0
1407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1408 rm -rf conftest* confdefs.h
1409 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1410 echo >confdefs.h
1412 # Predefined preprocessor variables.
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_NAME "$PACKAGE_NAME"
1416 _ACEOF
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1421 _ACEOF
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1426 _ACEOF
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_STRING "$PACKAGE_STRING"
1431 _ACEOF
1434 cat >>confdefs.h <<_ACEOF
1435 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1436 _ACEOF
1439 # Let the site file select an alternate cache file if it wants to.
1440 # Prefer explicitly selected file to automatically selected ones.
1441 if test -z "$CONFIG_SITE"; then
1442 if test "x$prefix" != xNONE; then
1443 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1444 else
1445 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1448 for ac_site_file in $CONFIG_SITE; do
1449 if test -r "$ac_site_file"; then
1450 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1451 echo "$as_me: loading site script $ac_site_file" >&6;}
1452 sed 's/^/| /' "$ac_site_file" >&5
1453 . "$ac_site_file"
1455 done
1457 if test -r "$cache_file"; then
1458 # Some versions of bash will fail to source /dev/null (special
1459 # files actually), so we avoid doing that.
1460 if test -f "$cache_file"; then
1461 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1462 echo "$as_me: loading cache $cache_file" >&6;}
1463 case $cache_file in
1464 [\\/]* | ?:[\\/]* ) . $cache_file;;
1465 *) . ./$cache_file;;
1466 esac
1468 else
1469 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1470 echo "$as_me: creating cache $cache_file" >&6;}
1471 >$cache_file
1474 # Check that the precious variables saved in the cache have kept the same
1475 # value.
1476 ac_cache_corrupted=false
1477 for ac_var in `(set) 2>&1 |
1478 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1479 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1480 eval ac_new_set=\$ac_env_${ac_var}_set
1481 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1482 eval ac_new_val="\$ac_env_${ac_var}_value"
1483 case $ac_old_set,$ac_new_set in
1484 set,)
1485 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1486 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1487 ac_cache_corrupted=: ;;
1488 ,set)
1489 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1490 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1491 ac_cache_corrupted=: ;;
1492 ,);;
1494 if test "x$ac_old_val" != "x$ac_new_val"; then
1495 # differences in whitespace do not lead to failure.
1496 ac_old_val_w=`echo x $ac_old_val`
1497 ac_new_val_w=`echo x $ac_new_val`
1498 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1499 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1500 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1501 ac_cache_corrupted=:
1502 else
1503 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1504 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1505 eval $ac_var=\$ac_old_val
1507 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1508 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1509 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1510 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1511 fi;;
1512 esac
1513 # Pass precious variables to config.status.
1514 if test "$ac_new_set" = set; then
1515 case $ac_new_val in
1516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1517 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1518 *) ac_arg=$ac_var=$ac_new_val ;;
1519 esac
1520 case " $ac_configure_args " in
1521 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1522 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1523 esac
1525 done
1526 if $ac_cache_corrupted; then
1527 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1528 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1529 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1530 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1531 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1532 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1533 { (exit 1); exit 1; }; }
1536 ac_ext=c
1537 ac_cpp='$CPP $CPPFLAGS'
1538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574 ac_aux_dir=
1575 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1589 done
1590 if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1599 # Make sure we can run config.sub.
1600 $ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1605 echo "$as_me:$LINENO: checking build system type" >&5
1606 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607 if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609 else
1610 ac_cv_build_alias=$build_alias
1611 test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613 test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1623 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624 echo "${ECHO_T}$ac_cv_build" >&6
1625 build=$ac_cv_build
1626 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631 case ${build_alias} in
1632 "") build_noncanonical=${build} ;;
1633 *) build_noncanonical=${build_alias} ;;
1634 esac
1636 case ${host_alias} in
1637 "") host_noncanonical=${build_noncanonical} ;;
1638 *) host_noncanonical=${host_alias} ;;
1639 esac
1641 case ${target_alias} in
1642 "") target_noncanonical=${host_noncanonical} ;;
1643 *) target_noncanonical=${target_alias} ;;
1644 esac
1647 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
1648 # have matching libraries, they should use host libraries: Makefile.tpl
1649 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
1650 # However, they still use the build modules, because the corresponding
1651 # host modules (e.g. bison) are only built for the host when bootstrap
1652 # finishes. So:
1653 # - build_subdir is where we find build modules, and never changes.
1654 # - build_libsubdir is where we find build libraries, and can be overridden.
1656 # Prefix 'build-' so this never conflicts with target_subdir.
1657 build_subdir="build-${build_noncanonical}"
1659 # Check whether --with-build-libsubdir or --without-build-libsubdir was given.
1660 if test "${with_build_libsubdir+set}" = set; then
1661 withval="$with_build_libsubdir"
1662 build_libsubdir="$withval"
1663 else
1664 build_libsubdir="$build_subdir"
1666 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1667 if ( test $srcdir = . && test -d gcc ) \
1668 || test -d $srcdir/../host-${host_noncanonical}; then
1669 host_subdir="host-${host_noncanonical}"
1670 else
1671 host_subdir=.
1673 # No prefix.
1674 target_subdir=${target_noncanonical}
1677 # We use these options to decide which functions to include.
1679 # Check whether --with-target-subdir or --without-target-subdir was given.
1680 if test "${with_target_subdir+set}" = set; then
1681 withval="$with_target_subdir"
1685 # We may get other options which we don't document:
1686 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1688 # Find the rest of the source tree framework.
1689 # Default to --enable-multilib
1690 # Check whether --enable-multilib or --disable-multilib was given.
1691 if test "${enable_multilib+set}" = set; then
1692 enableval="$enable_multilib"
1693 case "$enableval" in
1694 yes) multilib=yes ;;
1695 no) multilib=no ;;
1696 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1697 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1698 { (exit 1); exit 1; }; } ;;
1699 esac
1700 else
1701 multilib=yes
1704 # We may get other options which we leave undocumented:
1705 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1706 # See config-ml.in if you want the gory details.
1708 if test "$srcdir" = "."; then
1709 if test "$with_target_subdir" != "."; then
1710 multi_basedir="$srcdir/$with_multisrctop../.."
1711 else
1712 multi_basedir="$srcdir/$with_multisrctop.."
1714 else
1715 multi_basedir="$srcdir/.."
1719 # Even if the default multilib is not a cross compilation,
1720 # it may be that some of the other multilibs are.
1721 if test $cross_compiling = no && test $multilib = yes \
1722 && test "x${with_multisubdir}" != x ; then
1723 cross_compiling=maybe
1726 ac_config_commands="$ac_config_commands default-1"
1729 echo "$as_me:$LINENO: checking host system type" >&5
1730 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1731 if test "${ac_cv_host+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733 else
1734 ac_cv_host_alias=$host_alias
1735 test -z "$ac_cv_host_alias" &&
1736 ac_cv_host_alias=$ac_cv_build_alias
1737 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1744 echo "${ECHO_T}$ac_cv_host" >&6
1745 host=$ac_cv_host
1746 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751 echo "$as_me:$LINENO: checking target system type" >&5
1752 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1753 if test "${ac_cv_target+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 ac_cv_target_alias=$target_alias
1757 test "x$ac_cv_target_alias" = "x" &&
1758 ac_cv_target_alias=$ac_cv_host_alias
1759 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1762 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1766 echo "${ECHO_T}$ac_cv_target" >&6
1767 target=$ac_cv_target
1768 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773 # The aliases save the names the user supplied, while $host etc.
1774 # will get canonicalized.
1775 test -n "$target_alias" &&
1776 test "$program_prefix$program_suffix$program_transform_name" = \
1777 NONENONEs,x,x, &&
1778 program_prefix=${target_alias}-
1779 case ${build_alias} in
1780 "") build_noncanonical=${build} ;;
1781 *) build_noncanonical=${build_alias} ;;
1782 esac
1784 case ${target_alias} in
1785 "") target_noncanonical=${host_noncanonical} ;;
1786 *) target_noncanonical=${target_alias} ;;
1787 esac
1792 # This works around the fact that libtool configuration may change LD
1793 # for this particular configuration, but some shells, instead of
1794 # keeping the changes in LD private, export them just because LD is
1795 # exported.
1796 ORIGINAL_LD_FOR_MULTILIBS=$LD
1798 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1799 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1800 LN_S=$as_ln_s
1801 if test "$LN_S" = "ln -s"; then
1802 echo "$as_me:$LINENO: result: yes" >&5
1803 echo "${ECHO_T}yes" >&6
1804 else
1805 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1806 echo "${ECHO_T}no, using $LN_S" >&6
1810 # This works around an automake problem.
1811 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1815 # Check whether --with-cross-host or --without-cross-host was given.
1816 if test "${with_cross_host+set}" = set; then
1817 withval="$with_cross_host"
1822 # Check whether --with-newlib or --without-newlib was given.
1823 if test "${with_newlib+set}" = set; then
1824 withval="$with_newlib"
1828 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1829 if test "${enable_version_specific_runtime_libs+set}" = set; then
1830 enableval="$enable_version_specific_runtime_libs"
1831 case "$enableval" in
1832 yes) version_specific_libs=yes ;;
1833 no) version_specific_libs=no ;;
1834 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1835 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1836 { (exit 1); exit 1; }; };;
1837 esac
1838 else
1839 version_specific_libs=no
1843 # Check whether --enable-plugin or --disable-plugin was given.
1844 if test "${enable_plugin+set}" = set; then
1845 enableval="$enable_plugin"
1846 case "$enableval" in
1847 yes) plugin_enabled=yes ;;
1848 no) plugin_enabled=no ;;
1849 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable plugin" >&5
1850 echo "$as_me: error: Unknown argument to enable/disable plugin" >&2;}
1851 { (exit 1); exit 1; }; };;
1852 esac
1853 else
1854 plugin_enabled=no
1858 # Check whether --enable-gconf-peer or --disable-gconf-peer was given.
1859 if test "${enable_gconf_peer+set}" = set; then
1860 enableval="$enable_gconf_peer"
1861 case "$enableval" in
1862 yes) gconf_enabled=yes ;;
1863 no) gconf_enabled=no ;;
1864 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable gconf-peer" >&5
1865 echo "$as_me: error: Unknown argument to enable/disable gconf-peer" >&2;}
1866 { (exit 1); exit 1; }; };;
1867 esac
1868 else
1869 gconf_enabled=no
1873 # Check whether --enable-java-maintainer-mode or --disable-java-maintainer-mode was given.
1874 if test "${enable_java_maintainer_mode+set}" = set; then
1875 enableval="$enable_java_maintainer_mode"
1880 if test "$enable_java_maintainer_mode" = yes; then
1881 JAVA_MAINTAINER_MODE_TRUE=
1882 JAVA_MAINTAINER_MODE_FALSE='#'
1883 else
1884 JAVA_MAINTAINER_MODE_TRUE='#'
1885 JAVA_MAINTAINER_MODE_FALSE=
1889 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1892 # (1) We use an abnormal CXX (without library references), so we
1893 # must cache it under a different name.
1894 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1895 # the non-multilib-adjusted value will be used in multilibs.
1896 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1897 # (4) As another side effect, automake doesn't automatically include them
1898 # in Makefile.in.
1899 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1900 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1901 # used in later tests. This may not be necessary in libjava; I don't know.
1904 save_CXXFLAGS="$CXXFLAGS"
1905 CXXFLAGS="$CXXFLAGS -fno-builtin"
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919 if test -n "$CC"; then
1920 ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931 break 2
1933 done
1934 done
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940 echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943 echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1948 if test -z "$ac_cv_prog_CC"; then
1949 ac_ct_CC=$CC
1950 # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957 if test -n "$ac_ct_CC"; then
1958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1963 IFS=$as_save_IFS
1964 test -z "$as_dir" && as_dir=.
1965 for ac_exec_ext in '' $ac_executable_extensions; do
1966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967 ac_cv_prog_ac_ct_CC="gcc"
1968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969 break 2
1971 done
1972 done
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979 echo "${ECHO_T}$ac_ct_CC" >&6
1980 else
1981 echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1985 CC=$ac_ct_CC
1986 else
1987 CC="$ac_cv_prog_CC"
1990 if test -z "$CC"; then
1991 if test -n "$ac_tool_prefix"; then
1992 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test -n "$CC"; then
2000 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2005 IFS=$as_save_IFS
2006 test -z "$as_dir" && as_dir=.
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009 ac_cv_prog_CC="${ac_tool_prefix}cc"
2010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011 break 2
2013 done
2014 done
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020 echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023 echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2028 if test -z "$ac_cv_prog_CC"; then
2029 ac_ct_CC=$CC
2030 # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2043 IFS=$as_save_IFS
2044 test -z "$as_dir" && as_dir=.
2045 for ac_exec_ext in '' $ac_executable_extensions; do
2046 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047 ac_cv_prog_ac_ct_CC="cc"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049 break 2
2051 done
2052 done
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6
2060 else
2061 echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2065 CC=$ac_ct_CC
2066 else
2067 CC="$ac_cv_prog_CC"
2071 if test -z "$CC"; then
2072 # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$CC"; then
2080 ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082 ac_prog_rejected=no
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 for ac_exec_ext in '' $ac_executable_extensions; do
2089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2091 ac_prog_rejected=yes
2092 continue
2094 ac_cv_prog_CC="cc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2101 if test $ac_prog_rejected = yes; then
2102 # We found a bogon in the path, so make sure we never use it.
2103 set dummy $ac_cv_prog_CC
2104 shift
2105 if test $# != 0; then
2106 # We chose a different compiler from the bogus one.
2107 # However, it has the same basename, so the bogon will be chosen
2108 # first if we set CC to just the basename; use the full file name.
2109 shift
2110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117 echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120 echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2125 if test -z "$CC"; then
2126 if test -n "$ac_tool_prefix"; then
2127 for ac_prog in cl
2129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2142 IFS=$as_save_IFS
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148 break 2
2150 done
2151 done
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157 echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160 echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2164 test -n "$CC" && break
2165 done
2167 if test -z "$CC"; then
2168 ac_ct_CC=$CC
2169 for ac_prog in cl
2171 # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178 if test -n "$ac_ct_CC"; then
2179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2184 IFS=$as_save_IFS
2185 test -z "$as_dir" && as_dir=.
2186 for ac_exec_ext in '' $ac_executable_extensions; do
2187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188 ac_cv_prog_ac_ct_CC="$ac_prog"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2192 done
2193 done
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6
2201 else
2202 echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2206 test -n "$ac_ct_CC" && break
2207 done
2209 CC=$ac_ct_CC
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2216 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&5
2219 echo "$as_me: error: no acceptable C compiler found in \$PATH
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }; }
2223 # Provide some information about the compiler.
2224 echo "$as_me:$LINENO:" \
2225 "checking for C compiler version" >&5
2226 ac_compiler=`set X $ac_compile; echo $2`
2227 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2228 (eval $ac_compiler --version </dev/null >&5) 2>&5
2229 ac_status=$?
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }
2232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2233 (eval $ac_compiler -v </dev/null >&5) 2>&5
2234 ac_status=$?
2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236 (exit $ac_status); }
2237 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2238 (eval $ac_compiler -V </dev/null >&5) 2>&5
2239 ac_status=$?
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }
2243 cat >conftest.$ac_ext <<_ACEOF
2244 /* confdefs.h. */
2245 _ACEOF
2246 cat confdefs.h >>conftest.$ac_ext
2247 cat >>conftest.$ac_ext <<_ACEOF
2248 /* end confdefs.h. */
2251 main ()
2255 return 0;
2257 _ACEOF
2258 # FIXME: Cleanup?
2259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2260 (eval $ac_link) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 gcc_no_link=no
2265 else
2266 gcc_no_link=yes
2269 if test x$gcc_no_link = xyes; then
2270 # Setting cross_compile will disable run tests; it will
2271 # also disable AC_CHECK_FILE but that's generally
2272 # correct if we can't link.
2273 cross_compiling=yes
2274 EXEEXT=
2275 else
2276 cat >conftest.$ac_ext <<_ACEOF
2277 /* confdefs.h. */
2278 _ACEOF
2279 cat confdefs.h >>conftest.$ac_ext
2280 cat >>conftest.$ac_ext <<_ACEOF
2281 /* end confdefs.h. */
2284 main ()
2288 return 0;
2290 _ACEOF
2291 ac_clean_files_save=$ac_clean_files
2292 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2293 # Try to create an executable without -o first, disregard a.out.
2294 # It will help us diagnose broken compilers, and finding out an intuition
2295 # of exeext.
2296 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2297 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2298 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2299 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2300 (eval $ac_link_default) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; then
2304 # Find the output, starting from the most likely. This scheme is
2305 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2306 # resort.
2308 # Be careful to initialize this variable, since it used to be cached.
2309 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2310 ac_cv_exeext=
2311 # b.out is created by i960 compilers.
2312 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2314 test -f "$ac_file" || continue
2315 case $ac_file in
2316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2318 conftest.$ac_ext )
2319 # This is the source file.
2321 [ab].out )
2322 # We found the default executable, but exeext='' is most
2323 # certainly right.
2324 break;;
2325 *.* )
2326 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327 # FIXME: I believe we export ac_cv_exeext for Libtool,
2328 # but it would be cool to find out if it's true. Does anybody
2329 # maintain Libtool? --akim.
2330 export ac_cv_exeext
2331 break;;
2333 break;;
2334 esac
2335 done
2336 else
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2341 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: C compiler cannot create executables
2345 See \`config.log' for more details." >&2;}
2346 { (exit 77); exit 77; }; }; }
2349 ac_exeext=$ac_cv_exeext
2350 echo "$as_me:$LINENO: result: $ac_file" >&5
2351 echo "${ECHO_T}$ac_file" >&6
2353 # Check the compiler produces executables we can run. If not, either
2354 # the compiler is broken, or we cross compile.
2355 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2356 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2357 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2358 # If not cross compiling, check that we can run a simple program.
2359 if test "$cross_compiling" != yes; then
2360 if { ac_try='./$ac_file'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; }; then
2366 cross_compiling=no
2367 else
2368 if test "$cross_compiling" = maybe; then
2369 cross_compiling=yes
2370 else
2371 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2372 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2373 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2374 If you meant to cross compile, use \`--host'.
2375 See \`config.log' for more details." >&5
2376 echo "$as_me: error: cannot run C compiled programs.
2377 If you meant to cross compile, use \`--host'.
2378 See \`config.log' for more details." >&2;}
2379 { (exit 1); exit 1; }; }; }
2383 echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6
2386 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2387 ac_clean_files=$ac_clean_files_save
2388 # Check the compiler produces executables we can run. If not, either
2389 # the compiler is broken, or we cross compile.
2390 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2391 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2392 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2393 echo "${ECHO_T}$cross_compiling" >&6
2395 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2396 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398 (eval $ac_link) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; then
2402 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2403 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2404 # work properly (i.e., refer to `conftest.exe'), while it won't with
2405 # `rm'.
2406 for ac_file in conftest.exe conftest conftest.*; do
2407 test -f "$ac_file" || continue
2408 case $ac_file in
2409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2411 export ac_cv_exeext
2412 break;;
2413 * ) break;;
2414 esac
2415 done
2416 else
2417 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2418 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2419 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420 See \`config.log' for more details." >&5
2421 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422 See \`config.log' for more details." >&2;}
2423 { (exit 1); exit 1; }; }; }
2426 rm -f conftest$ac_cv_exeext
2427 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428 echo "${ECHO_T}$ac_cv_exeext" >&6
2430 rm -f conftest.$ac_ext
2431 EXEEXT=$ac_cv_exeext
2432 ac_exeext=$EXEEXT
2434 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2435 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2436 if test "${ac_cv_objext+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h. */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2447 main ()
2451 return 0;
2453 _ACEOF
2454 rm -f conftest.o conftest.obj
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>&5
2457 ac_status=$?
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); }; then
2460 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2461 case $ac_file in
2462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2464 break;;
2465 esac
2466 done
2467 else
2468 echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2471 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2472 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2474 See \`config.log' for more details." >&5
2475 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2476 See \`config.log' for more details." >&2;}
2477 { (exit 1); exit 1; }; }; }
2480 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2482 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2483 echo "${ECHO_T}$ac_cv_objext" >&6
2484 OBJEXT=$ac_cv_objext
2485 ac_objext=$OBJEXT
2486 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2487 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2488 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 else
2491 cat >conftest.$ac_ext <<_ACEOF
2492 /* confdefs.h. */
2493 _ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2499 main ()
2501 #ifndef __GNUC__
2502 choke me
2503 #endif
2506 return 0;
2508 _ACEOF
2509 rm -f conftest.$ac_objext
2510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511 (eval $ac_compile) 2>conftest.er1
2512 ac_status=$?
2513 grep -v '^ *+' conftest.er1 >conftest.err
2514 rm -f conftest.er1
2515 cat conftest.err >&5
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); } &&
2518 { ac_try='test -z "$ac_c_werror_flag"
2519 || test ! -s conftest.err'
2520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521 (eval $ac_try) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 ac_compiler_gnu=yes
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 ac_compiler_gnu=no
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2542 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2543 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2544 GCC=`test $ac_compiler_gnu = yes && echo yes`
2545 ac_test_CFLAGS=${CFLAGS+set}
2546 ac_save_CFLAGS=$CFLAGS
2547 CFLAGS="-g"
2548 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2549 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2550 if test "${ac_cv_prog_cc_g+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553 cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h. */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h. */
2561 main ()
2565 return 0;
2567 _ACEOF
2568 rm -f conftest.$ac_objext
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570 (eval $ac_compile) 2>conftest.er1
2571 ac_status=$?
2572 grep -v '^ *+' conftest.er1 >conftest.err
2573 rm -f conftest.er1
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag"
2578 || test ! -s conftest.err'
2579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 (eval $ac_try) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }; } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2586 (eval $ac_try) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2590 ac_cv_prog_cc_g=yes
2591 else
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2595 ac_cv_prog_cc_g=no
2597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2600 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2601 if test "$ac_test_CFLAGS" = set; then
2602 CFLAGS=$ac_save_CFLAGS
2603 elif test $ac_cv_prog_cc_g = yes; then
2604 if test "$GCC" = yes; then
2605 CFLAGS="-g -O2"
2606 else
2607 CFLAGS="-g"
2609 else
2610 if test "$GCC" = yes; then
2611 CFLAGS="-O2"
2612 else
2613 CFLAGS=
2616 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2617 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2618 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620 else
2621 ac_cv_prog_cc_stdc=no
2622 ac_save_CC=$CC
2623 cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h. */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2629 #include <stdarg.h>
2630 #include <stdio.h>
2631 #include <sys/types.h>
2632 #include <sys/stat.h>
2633 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2634 struct buf { int x; };
2635 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2636 static char *e (p, i)
2637 char **p;
2638 int i;
2640 return p[i];
2642 static char *f (char * (*g) (char **, int), char **p, ...)
2644 char *s;
2645 va_list v;
2646 va_start (v,p);
2647 s = g (p, va_arg (v,int));
2648 va_end (v);
2649 return s;
2652 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2653 function prototypes and stuff, but not '\xHH' hex character constants.
2654 These don't provoke an error unfortunately, instead are silently treated
2655 as 'x'. The following induces an error, until -std1 is added to get
2656 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2657 array size at least. It's necessary to write '\x00'==0 to get something
2658 that's true only with -std1. */
2659 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2661 int test (int i, double x);
2662 struct s1 {int (*f) (int a);};
2663 struct s2 {int (*f) (double a);};
2664 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2665 int argc;
2666 char **argv;
2668 main ()
2670 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2672 return 0;
2674 _ACEOF
2675 # Don't try gcc -ansi; that turns off useful extensions and
2676 # breaks some systems' header files.
2677 # AIX -qlanglvl=ansi
2678 # Ultrix and OSF/1 -std1
2679 # HP-UX 10.20 and later -Ae
2680 # HP-UX older versions -Aa -D_HPUX_SOURCE
2681 # SVR4 -Xc -D__EXTENSIONS__
2682 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2684 CC="$ac_save_CC $ac_arg"
2685 rm -f conftest.$ac_objext
2686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687 (eval $ac_compile) 2>conftest.er1
2688 ac_status=$?
2689 grep -v '^ *+' conftest.er1 >conftest.err
2690 rm -f conftest.er1
2691 cat conftest.err >&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); } &&
2694 { ac_try='test -z "$ac_c_werror_flag"
2695 || test ! -s conftest.err'
2696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697 (eval $ac_try) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; } &&
2701 { ac_try='test -s conftest.$ac_objext'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; }; then
2707 ac_cv_prog_cc_stdc=$ac_arg
2708 break
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2714 rm -f conftest.err conftest.$ac_objext
2715 done
2716 rm -f conftest.$ac_ext conftest.$ac_objext
2717 CC=$ac_save_CC
2721 case "x$ac_cv_prog_cc_stdc" in
2722 x|xno)
2723 echo "$as_me:$LINENO: result: none needed" >&5
2724 echo "${ECHO_T}none needed" >&6 ;;
2726 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2727 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2728 CC="$CC $ac_cv_prog_cc_stdc" ;;
2729 esac
2731 # Some people use a C++ compiler to compile C. Since we use `exit',
2732 # in C++ we need to declare it. In case someone uses the same compiler
2733 # for both compiling C and C++ we need to have the C++ compiler decide
2734 # the declaration of exit, since it's the most demanding environment.
2735 cat >conftest.$ac_ext <<_ACEOF
2736 #ifndef __cplusplus
2737 choke me
2738 #endif
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
2762 for ac_declaration in \
2763 '' \
2764 'extern "C" void std::exit (int) throw (); using std::exit;' \
2765 'extern "C" void std::exit (int); using std::exit;' \
2766 'extern "C" void exit (int) throw ();' \
2767 'extern "C" void exit (int);' \
2768 'void exit (int);'
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
2777 #include <stdlib.h>
2779 main ()
2781 exit (42);
2783 return 0;
2785 _ACEOF
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2789 ac_status=$?
2790 grep -v '^ *+' conftest.er1 >conftest.err
2791 rm -f conftest.er1
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_c_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798 (eval $ac_try) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2809 else
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 continue
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h. */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2822 $ac_declaration
2824 main ()
2826 exit (42);
2828 return 0;
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 break
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860 done
2861 rm -f conftest*
2862 if test -n "$ac_declaration"; then
2863 echo '#ifdef __cplusplus' >>confdefs.h
2864 echo $ac_declaration >>confdefs.h
2865 echo '#endif' >>confdefs.h
2868 else
2869 echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880 ac_ext=cc
2881 ac_cpp='$CXXCPP $CPPFLAGS'
2882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2885 if test -n "$ac_tool_prefix"; then
2886 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2888 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2889 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_CXX+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$CXX"; then
2896 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2914 CXX=$ac_cv_prog_CXX
2915 if test -n "$CXX"; then
2916 echo "$as_me:$LINENO: result: $CXX" >&5
2917 echo "${ECHO_T}$CXX" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920 echo "${ECHO_T}no" >&6
2923 test -n "$CXX" && break
2924 done
2926 if test -z "$CXX"; then
2927 ac_ct_CXX=$CXX
2928 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2930 # Extract the first word of "$ac_prog", so it can be a program name with args.
2931 set dummy $ac_prog; ac_word=$2
2932 echo "$as_me:$LINENO: checking for $ac_word" >&5
2933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2934 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936 else
2937 if test -n "$ac_ct_CXX"; then
2938 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2939 else
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CXX="$ac_prog"
2948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 break 2
2951 done
2952 done
2956 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2957 if test -n "$ac_ct_CXX"; then
2958 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2959 echo "${ECHO_T}$ac_ct_CXX" >&6
2960 else
2961 echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2965 test -n "$ac_ct_CXX" && break
2966 done
2967 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2969 CXX=$ac_ct_CXX
2973 # Provide some information about the compiler.
2974 echo "$as_me:$LINENO:" \
2975 "checking for C++ compiler version" >&5
2976 ac_compiler=`set X $ac_compile; echo $2`
2977 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2978 (eval $ac_compiler --version </dev/null >&5) 2>&5
2979 ac_status=$?
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2982 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2983 (eval $ac_compiler -v </dev/null >&5) 2>&5
2984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }
2987 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2988 (eval $ac_compiler -V </dev/null >&5) 2>&5
2989 ac_status=$?
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); }
2993 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2994 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2995 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3006 main ()
3008 #ifndef __GNUC__
3009 choke me
3010 #endif
3013 return 0;
3015 _ACEOF
3016 rm -f conftest.$ac_objext
3017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3018 (eval $ac_compile) 2>conftest.er1
3019 ac_status=$?
3020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_cxx_werror_flag"
3026 || test ! -s conftest.err'
3027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028 (eval $ac_try) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }; } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 ac_compiler_gnu=yes
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3043 ac_compiler_gnu=no
3045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3049 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3050 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3051 GXX=`test $ac_compiler_gnu = yes && echo yes`
3052 ac_test_CXXFLAGS=${CXXFLAGS+set}
3053 ac_save_CXXFLAGS=$CXXFLAGS
3054 CXXFLAGS="-g"
3055 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3056 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3057 if test "${ac_cv_prog_cxx_g+set}" = set; then
3058 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 else
3060 cat >conftest.$ac_ext <<_ACEOF
3061 /* confdefs.h. */
3062 _ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag"
3085 || test ! -s conftest.err'
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_prog_cxx_g=yes
3098 else
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3102 ac_cv_prog_cxx_g=no
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3106 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3107 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3108 if test "$ac_test_CXXFLAGS" = set; then
3109 CXXFLAGS=$ac_save_CXXFLAGS
3110 elif test $ac_cv_prog_cxx_g = yes; then
3111 if test "$GXX" = yes; then
3112 CXXFLAGS="-g -O2"
3113 else
3114 CXXFLAGS="-g"
3116 else
3117 if test "$GXX" = yes; then
3118 CXXFLAGS="-O2"
3119 else
3120 CXXFLAGS=
3123 for ac_declaration in \
3124 '' \
3125 'extern "C" void std::exit (int) throw (); using std::exit;' \
3126 'extern "C" void std::exit (int); using std::exit;' \
3127 'extern "C" void exit (int) throw ();' \
3128 'extern "C" void exit (int);' \
3129 'void exit (int);'
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
3138 #include <stdlib.h>
3140 main ()
3142 exit (42);
3144 return 0;
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3149 (eval $ac_compile) 2>conftest.er1
3150 ac_status=$?
3151 grep -v '^ *+' conftest.er1 >conftest.err
3152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } &&
3156 { ac_try='test -z "$ac_cxx_werror_flag"
3157 || test ! -s conftest.err'
3158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159 (eval $ac_try) 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; } &&
3163 { ac_try='test -s conftest.$ac_objext'
3164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165 (eval $ac_try) 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3170 else
3171 echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3174 continue
3176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3183 $ac_declaration
3185 main ()
3187 exit (42);
3189 return 0;
3191 _ACEOF
3192 rm -f conftest.$ac_objext
3193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3194 (eval $ac_compile) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -z "$ac_cxx_werror_flag"
3202 || test ! -s conftest.err'
3203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204 (eval $ac_try) 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; } &&
3208 { ac_try='test -s conftest.$ac_objext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 break
3215 else
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3221 done
3222 rm -f conftest*
3223 if test -n "$ac_declaration"; then
3224 echo '#ifdef __cplusplus' >>confdefs.h
3225 echo $ac_declaration >>confdefs.h
3226 echo '#endif' >>confdefs.h
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3235 CXXFLAGS="$save_CXXFLAGS"
3241 am__api_version="1.9"
3242 # Find a good install program. We prefer a C program (faster),
3243 # so one script is as good as another. But avoid the broken or
3244 # incompatible versions:
3245 # SysV /etc/install, /usr/sbin/install
3246 # SunOS /usr/etc/install
3247 # IRIX /sbin/install
3248 # AIX /bin/install
3249 # AmigaOS /C/install, which installs bootblocks on floppy discs
3250 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3251 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3252 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3253 # OS/2's system install, which has a completely different semantic
3254 # ./install, which can be erroneously created by make from ./install.sh.
3255 # Reject install programs that cannot install multiple files.
3256 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3257 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3258 if test -z "$INSTALL"; then
3259 if test "${ac_cv_path_install+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 # Account for people who put trailing slashes in PATH elements.
3268 case $as_dir/ in
3269 ./ | .// | /cC/* | \
3270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3271 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3272 /usr/ucb/* ) ;;
3274 # OSF1 and SCO ODT 3.0 have their own names for install.
3275 # Don't use installbsd from OSF since it installs stuff as root
3276 # by default.
3277 for ac_prog in ginstall scoinst install; do
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3280 if test $ac_prog = install &&
3281 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3282 # AIX install. It has an incompatible calling convention.
3284 elif test $ac_prog = install &&
3285 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3286 # program-specific install script used by HP pwplus--don't use.
3288 else
3289 rm -rf conftest.one conftest.two conftest.dir
3290 echo one > conftest.one
3291 echo two > conftest.two
3292 mkdir conftest.dir
3293 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3294 test -s conftest.one && test -s conftest.two &&
3295 test -s conftest.dir/conftest.one &&
3296 test -s conftest.dir/conftest.two
3297 then
3298 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3299 break 3
3303 done
3304 done
3306 esac
3307 done
3309 rm -rf conftest.one conftest.two conftest.dir
3312 if test "${ac_cv_path_install+set}" = set; then
3313 INSTALL=$ac_cv_path_install
3314 else
3315 # As a last resort, use the slow shell script. Don't cache a
3316 # value for INSTALL within a source directory, because that will
3317 # break other packages using the cache if that directory is
3318 # removed, or if the value is a relative name.
3319 INSTALL=$ac_install_sh
3322 echo "$as_me:$LINENO: result: $INSTALL" >&5
3323 echo "${ECHO_T}$INSTALL" >&6
3325 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3326 # It thinks the first close brace ends the variable substitution.
3327 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3329 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3331 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3333 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3334 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3335 # Just in case
3336 sleep 1
3337 echo timestamp > conftest.file
3338 # Do `set' in a subshell so we don't clobber the current shell's
3339 # arguments. Must try -L first in case configure is actually a
3340 # symlink; some systems play weird games with the mod time of symlinks
3341 # (eg FreeBSD returns the mod time of the symlink's containing
3342 # directory).
3343 if (
3344 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3345 if test "$*" = "X"; then
3346 # -L didn't work.
3347 set X `ls -t $srcdir/configure conftest.file`
3349 rm -f conftest.file
3350 if test "$*" != "X $srcdir/configure conftest.file" \
3351 && test "$*" != "X conftest.file $srcdir/configure"; then
3353 # If neither matched, then we have a broken ls. This can happen
3354 # if, for instance, CONFIG_SHELL is bash and it inherits a
3355 # broken ls alias from the environment. This has actually
3356 # happened. Such a system could not be considered "sane".
3357 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3358 alias in your environment" >&5
3359 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3360 alias in your environment" >&2;}
3361 { (exit 1); exit 1; }; }
3364 test "$2" = conftest.file
3366 then
3367 # Ok.
3369 else
3370 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3371 Check your system clock" >&5
3372 echo "$as_me: error: newly created file is older than distributed files!
3373 Check your system clock" >&2;}
3374 { (exit 1); exit 1; }; }
3376 echo "$as_me:$LINENO: result: yes" >&5
3377 echo "${ECHO_T}yes" >&6
3378 test "$program_prefix" != NONE &&
3379 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3380 # Use a double $ so make ignores it.
3381 test "$program_suffix" != NONE &&
3382 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3383 # Double any \ or $. echo might interpret backslashes.
3384 # By default was `s,x,x', remove it if useless.
3385 cat <<\_ACEOF >conftest.sed
3386 s/[\\$]/&&/g;s/;s,x,x,$//
3387 _ACEOF
3388 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3389 rm conftest.sed
3391 # expand $ac_aux_dir to an absolute path
3392 am_aux_dir=`cd $ac_aux_dir && pwd`
3394 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3395 # Use eval to expand $SHELL
3396 if eval "$MISSING --run true"; then
3397 am_missing_run="$MISSING --run "
3398 else
3399 am_missing_run=
3400 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3401 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3404 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3405 # We used to keeping the `.' as first argument, in order to
3406 # allow $(mkdir_p) to be used without argument. As in
3407 # $(mkdir_p) $(somedir)
3408 # where $(somedir) is conditionally defined. However this is wrong
3409 # for two reasons:
3410 # 1. if the package is installed by a user who cannot write `.'
3411 # make install will fail,
3412 # 2. the above comment should most certainly read
3413 # $(mkdir_p) $(DESTDIR)$(somedir)
3414 # so it does not work when $(somedir) is undefined and
3415 # $(DESTDIR) is not.
3416 # To support the latter case, we have to write
3417 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3418 # so the `.' trick is pointless.
3419 mkdir_p='mkdir -p --'
3420 else
3421 # On NextStep and OpenStep, the `mkdir' command does not
3422 # recognize any option. It will interpret all options as
3423 # directories to create, and then abort because `.' already
3424 # exists.
3425 for d in ./-p ./--version;
3427 test -d $d && rmdir $d
3428 done
3429 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3430 if test -f "$ac_aux_dir/mkinstalldirs"; then
3431 mkdir_p='$(mkinstalldirs)'
3432 else
3433 mkdir_p='$(install_sh) -d'
3437 for ac_prog in gawk mawk nawk awk
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3443 if test "${ac_cv_prog_AWK+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 if test -n "$AWK"; then
3447 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_AWK="$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3460 done
3461 done
3465 AWK=$ac_cv_prog_AWK
3466 if test -n "$AWK"; then
3467 echo "$as_me:$LINENO: result: $AWK" >&5
3468 echo "${ECHO_T}$AWK" >&6
3469 else
3470 echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6
3474 test -n "$AWK" && break
3475 done
3477 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3479 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3480 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 cat >conftest.make <<\_ACEOF
3484 all:
3485 @echo 'ac_maketemp="$(MAKE)"'
3486 _ACEOF
3487 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3488 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3489 if test -n "$ac_maketemp"; then
3490 eval ac_cv_prog_make_${ac_make}_set=yes
3491 else
3492 eval ac_cv_prog_make_${ac_make}_set=no
3494 rm -f conftest.make
3496 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3497 echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3499 SET_MAKE=
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3503 SET_MAKE="MAKE=${MAKE-make}"
3506 rm -rf .tst 2>/dev/null
3507 mkdir .tst 2>/dev/null
3508 if test -d .tst; then
3509 am__leading_dot=.
3510 else
3511 am__leading_dot=_
3513 rmdir .tst 2>/dev/null
3515 DEPDIR="${am__leading_dot}deps"
3517 ac_config_commands="$ac_config_commands depfiles"
3520 am_make=${MAKE-make}
3521 cat > confinc << 'END'
3522 am__doit:
3523 @echo done
3524 .PHONY: am__doit
3526 # If we don't find an include directive, just comment out the code.
3527 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3528 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3529 am__include="#"
3530 am__quote=
3531 _am_result=none
3532 # First try GNU make style include.
3533 echo "include confinc" > confmf
3534 # We grep out `Entering directory' and `Leaving directory'
3535 # messages which can occur if `w' ends up in MAKEFLAGS.
3536 # In particular we don't look at `^make:' because GNU make might
3537 # be invoked under some other name (usually "gmake"), in which
3538 # case it prints its new name instead of `make'.
3539 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3540 am__include=include
3541 am__quote=
3542 _am_result=GNU
3544 # Now try BSD make style include.
3545 if test "$am__include" = "#"; then
3546 echo '.include "confinc"' > confmf
3547 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3548 am__include=.include
3549 am__quote="\""
3550 _am_result=BSD
3555 echo "$as_me:$LINENO: result: $_am_result" >&5
3556 echo "${ECHO_T}$_am_result" >&6
3557 rm -f confinc confmf
3559 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3560 if test "${enable_dependency_tracking+set}" = set; then
3561 enableval="$enable_dependency_tracking"
3564 if test "x$enable_dependency_tracking" != xno; then
3565 am_depcomp="$ac_aux_dir/depcomp"
3566 AMDEPBACKSLASH='\'
3570 if test "x$enable_dependency_tracking" != xno; then
3571 AMDEP_TRUE=
3572 AMDEP_FALSE='#'
3573 else
3574 AMDEP_TRUE='#'
3575 AMDEP_FALSE=
3580 # test to see if srcdir already configured
3581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3582 test -f $srcdir/config.status; then
3583 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3585 { (exit 1); exit 1; }; }
3588 # test whether we have cygpath
3589 if test -z "$CYGPATH_W"; then
3590 if (cygpath --version) >/dev/null 2>/dev/null; then
3591 CYGPATH_W='cygpath -w'
3592 else
3593 CYGPATH_W=echo
3598 # Define the identity of the package.
3599 PACKAGE='libjava'
3600 VERSION='version-unused'
3603 cat >>confdefs.h <<_ACEOF
3604 #define PACKAGE "$PACKAGE"
3605 _ACEOF
3608 cat >>confdefs.h <<_ACEOF
3609 #define VERSION "$VERSION"
3610 _ACEOF
3612 # Some tools Automake needs.
3614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3628 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3630 # Installed binaries are usually stripped using `strip' when the user
3631 # run `make install-strip'. However `strip' might not be the right
3632 # tool to use in cross-compilation environments, therefore Automake
3633 # will honor the `STRIP' environment variable to overrule this program.
3634 if test "$cross_compiling" != no; then
3635 if test -n "$ac_tool_prefix"; then
3636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3637 set dummy ${ac_tool_prefix}strip; ac_word=$2
3638 echo "$as_me:$LINENO: checking for $ac_word" >&5
3639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3640 if test "${ac_cv_prog_STRIP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642 else
3643 if test -n "$STRIP"; then
3644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3649 IFS=$as_save_IFS
3650 test -z "$as_dir" && as_dir=.
3651 for ac_exec_ext in '' $ac_executable_extensions; do
3652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 break 2
3657 done
3658 done
3662 STRIP=$ac_cv_prog_STRIP
3663 if test -n "$STRIP"; then
3664 echo "$as_me:$LINENO: result: $STRIP" >&5
3665 echo "${ECHO_T}$STRIP" >&6
3666 else
3667 echo "$as_me:$LINENO: result: no" >&5
3668 echo "${ECHO_T}no" >&6
3672 if test -z "$ac_cv_prog_STRIP"; then
3673 ac_ct_STRIP=$STRIP
3674 # Extract the first word of "strip", so it can be a program name with args.
3675 set dummy strip; ac_word=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681 if test -n "$ac_ct_STRIP"; then
3682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_ac_ct_STRIP="strip"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 break 2
3695 done
3696 done
3698 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3702 if test -n "$ac_ct_STRIP"; then
3703 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3704 echo "${ECHO_T}$ac_ct_STRIP" >&6
3705 else
3706 echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3710 STRIP=$ac_ct_STRIP
3711 else
3712 STRIP="$ac_cv_prog_STRIP"
3716 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3718 # We need awk for the "check" target. The system "awk" is bad on
3719 # some platforms.
3720 # Always define AMTAR for backward compatibility.
3722 AMTAR=${AMTAR-"${am_missing_run}tar"}
3724 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3729 depcc="$CC" am_compiler_list=
3731 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3737 # We make a subdir and do the tests there. Otherwise we can end up
3738 # making bogus files that we don't know about and never remove. For
3739 # instance it was reported that on HP-UX the gcc test will end up
3740 # making a dummy file named `D' -- because `-MD' means `put the output
3741 # in D'.
3742 mkdir conftest.dir
3743 # Copy depcomp to subdir because otherwise we won't find it if we're
3744 # using a relative directory.
3745 cp "$am_depcomp" conftest.dir
3746 cd conftest.dir
3747 # We will build objects and dependencies in a subdirectory because
3748 # it helps to detect inapplicable dependency modes. For instance
3749 # both Tru64's cc and ICC support -MD to output dependencies as a
3750 # side effect of compilation, but ICC will put the dependencies in
3751 # the current directory while Tru64 will put them in the object
3752 # directory.
3753 mkdir sub
3755 am_cv_CC_dependencies_compiler_type=none
3756 if test "$am_compiler_list" = ""; then
3757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3759 for depmode in $am_compiler_list; do
3760 # Setup a source with many dependencies, because some compilers
3761 # like to wrap large dependency lists on column 80 (with \), and
3762 # we should not choose a depcomp mode which is confused by this.
3764 # We need to recreate these files for each test, as the compiler may
3765 # overwrite some of them when testing with obscure command lines.
3766 # This happens at least with the AIX C compiler.
3767 : > sub/conftest.c
3768 for i in 1 2 3 4 5 6; do
3769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771 # Solaris 8's {/usr,}/bin/sh.
3772 touch sub/conftst$i.h
3773 done
3774 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3776 case $depmode in
3777 nosideeffect)
3778 # after this tag, mechanisms are not by side-effect, so they'll
3779 # only be used when explicitly requested
3780 if test "x$enable_dependency_tracking" = xyes; then
3781 continue
3782 else
3783 break
3786 none) break ;;
3787 esac
3788 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3789 # mode. It turns out that the SunPro C++ compiler does not properly
3790 # handle `-M -o', and we need to detect this.
3791 if depmode=$depmode \
3792 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3793 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3795 >/dev/null 2>conftest.err &&
3796 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3797 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3798 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3799 # icc doesn't choke on unknown options, it will just issue warnings
3800 # or remarks (even with -Werror). So we grep stderr for any message
3801 # that says an option was ignored or not supported.
3802 # When given -MP, icc 7.0 and 7.1 complain thusly:
3803 # icc: Command line warning: ignoring option '-M'; no argument required
3804 # The diagnosis changed in icc 8.0:
3805 # icc: Command line remark: option '-MP' not supported
3806 if (grep 'ignoring option' conftest.err ||
3807 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3808 am_cv_CC_dependencies_compiler_type=$depmode
3809 break
3812 done
3814 cd ..
3815 rm -rf conftest.dir
3816 else
3817 am_cv_CC_dependencies_compiler_type=none
3821 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828 test "x$enable_dependency_tracking" != xno \
3829 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3830 am__fastdepCC_TRUE=
3831 am__fastdepCC_FALSE='#'
3832 else
3833 am__fastdepCC_TRUE='#'
3834 am__fastdepCC_FALSE=
3838 depcc="$CXX" am_compiler_list=
3840 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3841 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3842 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3846 # We make a subdir and do the tests there. Otherwise we can end up
3847 # making bogus files that we don't know about and never remove. For
3848 # instance it was reported that on HP-UX the gcc test will end up
3849 # making a dummy file named `D' -- because `-MD' means `put the output
3850 # in D'.
3851 mkdir conftest.dir
3852 # Copy depcomp to subdir because otherwise we won't find it if we're
3853 # using a relative directory.
3854 cp "$am_depcomp" conftest.dir
3855 cd conftest.dir
3856 # We will build objects and dependencies in a subdirectory because
3857 # it helps to detect inapplicable dependency modes. For instance
3858 # both Tru64's cc and ICC support -MD to output dependencies as a
3859 # side effect of compilation, but ICC will put the dependencies in
3860 # the current directory while Tru64 will put them in the object
3861 # directory.
3862 mkdir sub
3864 am_cv_CXX_dependencies_compiler_type=none
3865 if test "$am_compiler_list" = ""; then
3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3868 for depmode in $am_compiler_list; do
3869 # Setup a source with many dependencies, because some compilers
3870 # like to wrap large dependency lists on column 80 (with \), and
3871 # we should not choose a depcomp mode which is confused by this.
3873 # We need to recreate these files for each test, as the compiler may
3874 # overwrite some of them when testing with obscure command lines.
3875 # This happens at least with the AIX C compiler.
3876 : > sub/conftest.c
3877 for i in 1 2 3 4 5 6; do
3878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3879 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3880 # Solaris 8's {/usr,}/bin/sh.
3881 touch sub/conftst$i.h
3882 done
3883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3885 case $depmode in
3886 nosideeffect)
3887 # after this tag, mechanisms are not by side-effect, so they'll
3888 # only be used when explicitly requested
3889 if test "x$enable_dependency_tracking" = xyes; then
3890 continue
3891 else
3892 break
3895 none) break ;;
3896 esac
3897 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3898 # mode. It turns out that the SunPro C++ compiler does not properly
3899 # handle `-M -o', and we need to detect this.
3900 if depmode=$depmode \
3901 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3903 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3904 >/dev/null 2>conftest.err &&
3905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908 # icc doesn't choke on unknown options, it will just issue warnings
3909 # or remarks (even with -Werror). So we grep stderr for any message
3910 # that says an option was ignored or not supported.
3911 # When given -MP, icc 7.0 and 7.1 complain thusly:
3912 # icc: Command line warning: ignoring option '-M'; no argument required
3913 # The diagnosis changed in icc 8.0:
3914 # icc: Command line remark: option '-MP' not supported
3915 if (grep 'ignoring option' conftest.err ||
3916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917 am_cv_CXX_dependencies_compiler_type=$depmode
3918 break
3921 done
3923 cd ..
3924 rm -rf conftest.dir
3925 else
3926 am_cv_CXX_dependencies_compiler_type=none
3930 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3931 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3932 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3937 test "x$enable_dependency_tracking" != xno \
3938 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3939 am__fastdepCXX_TRUE=
3940 am__fastdepCXX_FALSE='#'
3941 else
3942 am__fastdepCXX_TRUE='#'
3943 am__fastdepCXX_FALSE=
3949 if test -n "$ac_tool_prefix"; then
3950 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3951 set dummy ${ac_tool_prefix}as; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_prog_AS+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957 if test -n "$AS"; then
3958 ac_cv_prog_AS="$AS" # Let the user override the test.
3959 else
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_AS="${ac_tool_prefix}as"
3968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3971 done
3972 done
3976 AS=$ac_cv_prog_AS
3977 if test -n "$AS"; then
3978 echo "$as_me:$LINENO: result: $AS" >&5
3979 echo "${ECHO_T}$AS" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3986 if test -z "$ac_cv_prog_AS"; then
3987 ac_ct_AS=$AS
3988 # Extract the first word of "as", so it can be a program name with args.
3989 set dummy as; ac_word=$2
3990 echo "$as_me:$LINENO: checking for $ac_word" >&5
3991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3992 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995 if test -n "$ac_ct_AS"; then
3996 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_ac_ct_AS="as"
4006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4009 done
4010 done
4014 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4015 if test -n "$ac_ct_AS"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4017 echo "${ECHO_T}$ac_ct_AS" >&6
4018 else
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4023 AS=$ac_ct_AS
4024 else
4025 AS="$ac_cv_prog_AS"
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}ld; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_LD+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 if test -n "$LD"; then
4037 ac_cv_prog_LD="$LD" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_LD="${ac_tool_prefix}ld"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4055 LD=$ac_cv_prog_LD
4056 if test -n "$LD"; then
4057 echo "$as_me:$LINENO: result: $LD" >&5
4058 echo "${ECHO_T}$LD" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4065 if test -z "$ac_cv_prog_LD"; then
4066 ac_ct_LD=$LD
4067 # Extract the first word of "ld", so it can be a program name with args.
4068 set dummy ld; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$ac_ct_LD"; then
4075 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_LD="ld"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4093 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4094 if test -n "$ac_ct_LD"; then
4095 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4096 echo "${ECHO_T}$ac_ct_LD" >&6
4097 else
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4102 LD=$ac_ct_LD
4103 else
4104 LD="$ac_cv_prog_LD"
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ar; ac_word=$2
4110 echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4112 if test "${ac_cv_prog_AR+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115 if test -n "$AR"; then
4116 ac_cv_prog_AR="$AR" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4125 ac_cv_prog_AR="${ac_tool_prefix}ar"
4126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4134 AR=$ac_cv_prog_AR
4135 if test -n "$AR"; then
4136 echo "$as_me:$LINENO: result: $AR" >&5
4137 echo "${ECHO_T}$AR" >&6
4138 else
4139 echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4144 if test -z "$ac_cv_prog_AR"; then
4145 ac_ct_AR=$AR
4146 # Extract the first word of "ar", so it can be a program name with args.
4147 set dummy ar; ac_word=$2
4148 echo "$as_me:$LINENO: checking for $ac_word" >&5
4149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4150 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 else
4153 if test -n "$ac_ct_AR"; then
4154 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4155 else
4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157 for as_dir in $PATH
4159 IFS=$as_save_IFS
4160 test -z "$as_dir" && as_dir=.
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_ac_ct_AR="ar"
4164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 break 2
4167 done
4168 done
4172 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4173 if test -n "$ac_ct_AR"; then
4174 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4175 echo "${ECHO_T}$ac_ct_AR" >&6
4176 else
4177 echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4181 AR=$ac_ct_AR
4182 else
4183 AR="$ac_cv_prog_AR"
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4189 echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4191 if test "${ac_cv_prog_RANLIB+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 if test -n "$RANLIB"; then
4195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4213 RANLIB=$ac_cv_prog_RANLIB
4214 if test -n "$RANLIB"; then
4215 echo "$as_me:$LINENO: result: $RANLIB" >&5
4216 echo "${ECHO_T}$RANLIB" >&6
4217 else
4218 echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6
4223 if test -z "$ac_cv_prog_RANLIB"; then
4224 ac_ct_RANLIB=$RANLIB
4225 # Extract the first word of "ranlib", so it can be a program name with args.
4226 set dummy ranlib; ac_word=$2
4227 echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 if test -n "$ac_ct_RANLIB"; then
4233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_ac_ct_RANLIB="ranlib"
4243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4253 if test -n "$ac_ct_RANLIB"; then
4254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4256 else
4257 echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6
4261 RANLIB=$ac_ct_RANLIB
4262 else
4263 RANLIB="$ac_cv_prog_RANLIB"
4266 for ac_prog in gawk mawk nawk awk
4268 # Extract the first word of "$ac_prog", so it can be a program name with args.
4269 set dummy $ac_prog; ac_word=$2
4270 echo "$as_me:$LINENO: checking for $ac_word" >&5
4271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4272 if test "${ac_cv_prog_AWK+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 if test -n "$AWK"; then
4276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_prog_AWK="$ac_prog"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 break 2
4289 done
4290 done
4294 AWK=$ac_cv_prog_AWK
4295 if test -n "$AWK"; then
4296 echo "$as_me:$LINENO: result: $AWK" >&5
4297 echo "${ECHO_T}$AWK" >&6
4298 else
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4303 test -n "$AWK" && break
4304 done
4306 for ac_prog in jar fastjar gjar
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309 set dummy $ac_prog; ac_word=$2
4310 echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312 if test "${ac_cv_prog_JAR+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 if test -n "$JAR"; then
4316 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_JAR="$ac_prog"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4334 JAR=$ac_cv_prog_JAR
4335 if test -n "$JAR"; then
4336 echo "$as_me:$LINENO: result: $JAR" >&5
4337 echo "${ECHO_T}$JAR" >&6
4338 else
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4343 test -n "$JAR" && break
4344 done
4345 test -n "$JAR" || JAR="no"
4347 # Extract the first word of "zip", so it can be a program name with args.
4348 set dummy zip; ac_word=$2
4349 echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4351 if test "${ac_cv_path_ZIP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354 case $ZIP in
4355 [\\/]* | ?:[\\/]*)
4356 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4370 done
4371 done
4373 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4375 esac
4377 ZIP=$ac_cv_path_ZIP
4379 if test -n "$ZIP"; then
4380 echo "$as_me:$LINENO: result: $ZIP" >&5
4381 echo "${ECHO_T}$ZIP" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6
4387 # Extract the first word of "unzip", so it can be a program name with args.
4388 set dummy unzip; ac_word=$2
4389 echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4391 if test "${ac_cv_path_UNZIP+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394 case $UNZIP in
4395 [\\/]* | ?:[\\/]*)
4396 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4410 done
4411 done
4413 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4415 esac
4417 UNZIP=$ac_cv_path_UNZIP
4419 if test -n "$UNZIP"; then
4420 echo "$as_me:$LINENO: result: $UNZIP" >&5
4421 echo "${ECHO_T}$UNZIP" >&6
4422 else
4423 echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6
4428 # We need a jar that supports -@. This is a GNU extension.
4429 if test "$JAR" != no; then
4430 rm -f config-test.jar
4431 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
4432 if test -f config-test.jar; then
4433 rm -f config-test.jar
4434 else
4435 JAR=no
4439 # Prefer the jar we found, but fall back to our jar script.
4440 if test "$JAR" = no; then
4441 if test "$ZIP" = no; then
4442 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4443 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4444 { (exit 1); exit 1; }; }
4445 else
4446 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4447 JAR=`pwd`/scripts/jar
4451 # Find a good install program. We prefer a C program (faster),
4452 # so one script is as good as another. But avoid the broken or
4453 # incompatible versions:
4454 # SysV /etc/install, /usr/sbin/install
4455 # SunOS /usr/etc/install
4456 # IRIX /sbin/install
4457 # AIX /bin/install
4458 # AmigaOS /C/install, which installs bootblocks on floppy discs
4459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4462 # OS/2's system install, which has a completely different semantic
4463 # ./install, which can be erroneously created by make from ./install.sh.
4464 # Reject install programs that cannot install multiple files.
4465 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4466 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4467 if test -z "$INSTALL"; then
4468 if test "${ac_cv_path_install+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 # Account for people who put trailing slashes in PATH elements.
4477 case $as_dir/ in
4478 ./ | .// | /cC/* | \
4479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4480 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4481 /usr/ucb/* ) ;;
4483 # OSF1 and SCO ODT 3.0 have their own names for install.
4484 # Don't use installbsd from OSF since it installs stuff as root
4485 # by default.
4486 for ac_prog in ginstall scoinst install; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4489 if test $ac_prog = install &&
4490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4491 # AIX install. It has an incompatible calling convention.
4493 elif test $ac_prog = install &&
4494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # program-specific install script used by HP pwplus--don't use.
4497 else
4498 rm -rf conftest.one conftest.two conftest.dir
4499 echo one > conftest.one
4500 echo two > conftest.two
4501 mkdir conftest.dir
4502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4503 test -s conftest.one && test -s conftest.two &&
4504 test -s conftest.dir/conftest.one &&
4505 test -s conftest.dir/conftest.two
4506 then
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4512 done
4513 done
4515 esac
4516 done
4518 rm -rf conftest.one conftest.two conftest.dir
4521 if test "${ac_cv_path_install+set}" = set; then
4522 INSTALL=$ac_cv_path_install
4523 else
4524 # As a last resort, use the slow shell script. Don't cache a
4525 # value for INSTALL within a source directory, because that will
4526 # break other packages using the cache if that directory is
4527 # removed, or if the value is a relative name.
4528 INSTALL=$ac_install_sh
4531 echo "$as_me:$LINENO: result: $INSTALL" >&5
4532 echo "${ECHO_T}$INSTALL" >&6
4534 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4535 # It thinks the first close brace ends the variable substitution.
4536 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4538 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4540 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4543 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4544 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4545 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4546 if test "${enable_maintainer_mode+set}" = set; then
4547 enableval="$enable_maintainer_mode"
4548 USE_MAINTAINER_MODE=$enableval
4549 else
4550 USE_MAINTAINER_MODE=no
4552 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4553 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4556 if test $USE_MAINTAINER_MODE = yes; then
4557 MAINTAINER_MODE_TRUE=
4558 MAINTAINER_MODE_FALSE='#'
4559 else
4560 MAINTAINER_MODE_TRUE='#'
4561 MAINTAINER_MODE_FALSE=
4564 MAINT=$MAINTAINER_MODE_TRUE
4570 # configure.host sets the following important variables
4571 # libgcj_cflags - host specific C compiler flags
4572 # libgcj_cxxflags - host specific C++ compiler flags
4573 # libgcj_javaflags - host specific Java compiler flags
4575 libgcj_cflags=
4576 libgcj_cxxflags=
4577 libgcj_javaflags=
4579 . ${srcdir}/configure.host
4581 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4582 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4583 if test "${acl_cv_prog_gnu_ld+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4587 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4588 acl_cv_prog_gnu_ld=yes
4589 else
4590 acl_cv_prog_gnu_ld=no
4593 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
4594 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
4595 with_gnu_ld=$acl_cv_prog_gnu_ld
4597 echo "$as_me:$LINENO: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
4598 echo $ECHO_N "checking if the GNU linker ($LD) supports -Bsymbolic-functions... $ECHO_C" >&6
4599 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4603 acl_cv_prog_gnu_ld_symbolic=no
4605 if test x"$with_gnu_ld" = x"yes"; then
4606 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
4607 acl_cv_prog_gnu_ld_symbolic=yes
4611 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld_symbolic" >&5
4612 echo "${ECHO_T}$acl_cv_prog_gnu_ld_symbolic" >&6
4613 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
4614 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
4615 else
4616 SYMBOLIC_LDFLAGS=''
4619 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
4620 if test -z "$libgcj_ld_symbolic"; then
4621 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
4624 LIBGCJ_CFLAGS="${libgcj_cflags}"
4625 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4626 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4627 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4628 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
4635 # Only use libltdl for non-newlib builds.
4636 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4637 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4638 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
4639 library_names_spec=
4640 libname_spec='lib$name'
4641 soname_spec=
4642 shrext=".so"
4643 postinstall_cmds=
4644 postuninstall_cmds=
4645 finish_cmds=
4646 finish_eval=
4647 shlibpath_var=
4648 shlibpath_overrides_runpath=unknown
4649 version_type=none
4650 dynamic_linker="$host_os ld.so"
4651 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4652 if test "$GCC" = yes; then
4653 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4654 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4655 # if the path contains ";" then we assume it to be the separator
4656 # otherwise default to the standard path separator (i.e. ":") - it is
4657 # assumed that no part of a normal pathname contains ";" but that should
4658 # okay in the real world where ";" in dirpaths is itself problematic.
4659 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4660 else
4661 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4663 else
4664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4666 need_lib_prefix=unknown
4667 hardcode_into_libs=no
4669 # when you set need_version to no, make sure it does not cause -set_version
4670 # flags to be left without arguments
4671 need_version=unknown
4673 case $host_os in
4674 aix3*)
4675 version_type=linux
4676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4677 shlibpath_var=LIBPATH
4679 # AIX 3 has no versioning support, so we append a major version to the name.
4680 soname_spec='${libname}${release}${shared_ext}$major'
4683 aix[4-9]*)
4684 version_type=linux
4685 need_lib_prefix=no
4686 need_version=no
4687 hardcode_into_libs=yes
4688 if test "$host_cpu" = ia64; then
4689 # AIX 5 supports IA64
4690 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4691 shlibpath_var=LD_LIBRARY_PATH
4692 else
4693 # With GCC up to 2.95.x, collect2 would create an import file
4694 # for dependence libraries. The import file would start with
4695 # the line `#! .'. This would cause the generated library to
4696 # depend on `.', always an invalid library. This was fixed in
4697 # development snapshots of GCC prior to 3.0.
4698 case $host_os in
4699 aix4 | aix4.[01] | aix4.[01].*)
4700 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4701 echo ' yes '
4702 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4704 else
4705 can_build_shared=no
4708 esac
4709 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4710 # soname into executable. Probably we can add versioning support to
4711 # collect2, so additional links can be useful in future.
4712 if test "$aix_use_runtimelinking" = yes; then
4713 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4714 # instead of lib<name>.a to let people know that these are not
4715 # typical AIX shared libraries.
4716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4717 else
4718 # We preserve .a as extension for shared libraries through AIX4.2
4719 # and later when we are not doing run time linking.
4720 library_names_spec='${libname}${release}.a $libname.a'
4721 soname_spec='${libname}${release}${shared_ext}$major'
4723 shlibpath_var=LIBPATH
4727 amigaos*)
4728 library_names_spec='$libname.ixlibrary $libname.a'
4729 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4730 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'
4733 beos*)
4734 library_names_spec='${libname}${shared_ext}'
4735 dynamic_linker="$host_os ld.so"
4736 shlibpath_var=LIBRARY_PATH
4739 bsdi4*)
4740 version_type=linux
4741 need_version=no
4742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4743 soname_spec='${libname}${release}${shared_ext}$major'
4744 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4745 shlibpath_var=LD_LIBRARY_PATH
4746 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4747 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4748 # the default ld.so.conf also contains /usr/contrib/lib and
4749 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4750 # libtool to hard-code these into programs
4753 cygwin* | mingw* | pw32*)
4754 version_type=windows
4755 shrext=".dll"
4756 need_version=no
4757 need_lib_prefix=no
4759 case $GCC,$host_os in
4760 yes,cygwin* | yes,mingw* | yes,pw32*)
4761 library_names_spec='$libname.dll.a'
4762 # DLL is installed to $(libdir)/../bin by postinstall_cmds
4763 postinstall_cmds='base_file=`basename \${file}`~
4764 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4765 dldir=$destdir/`dirname \$dlpath`~
4766 test -d \$dldir || mkdir -p \$dldir~
4767 $install_prog $dir/$dlname \$dldir/$dlname'
4768 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4769 dlpath=$dir/\$dldll~
4770 $rm \$dlpath'
4771 shlibpath_overrides_runpath=yes
4773 case $host_os in
4774 cygwin*)
4775 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4776 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4777 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
4779 mingw*)
4780 # MinGW DLLs use traditional 'lib' prefix
4781 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4783 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
4784 # It is most probably a Windows format PATH printed by
4785 # mingw gcc, but we are running on Cygwin. Gcc prints its search
4786 # path with ; separators, and with drive letters. We can handle the
4787 # drive letters (cygwin fileutils understands them), so leave them,
4788 # especially as we might pass files found there to a mingw objdump,
4789 # which wouldn't understand a cygwinified path. Ahh.
4790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4791 else
4792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4795 pw32*)
4796 # pw32 DLLs use 'pw' prefix rather than 'lib'
4797 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
4799 esac
4803 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
4805 esac
4806 dynamic_linker='Win32 ld.exe'
4807 # FIXME: first we should search . and the directory the executable is in
4808 shlibpath_var=PATH
4811 darwin* | rhapsody*)
4812 dynamic_linker="$host_os dyld"
4813 version_type=darwin
4814 need_lib_prefix=no
4815 need_version=no
4816 # FIXME: Relying on posixy $() will cause problems for
4817 # cross-compilation, but unfortunately the echo tests do not
4818 # yet detect zsh echo's removal of \ escapes.
4819 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4820 soname_spec='${libname}${release}${major}$shared_ext'
4821 shlibpath_overrides_runpath=yes
4822 shlibpath_var=DYLD_LIBRARY_PATH
4823 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
4824 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4825 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
4826 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"`
4828 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4831 dgux*)
4832 version_type=linux
4833 need_lib_prefix=no
4834 need_version=no
4835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4836 soname_spec='${libname}${release}${shared_ext}$major'
4837 shlibpath_var=LD_LIBRARY_PATH
4840 freebsd1*)
4841 dynamic_linker=no
4844 freebsd*)
4845 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4846 version_type=freebsd-$objformat
4847 case $version_type in
4848 freebsd-elf*)
4849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4850 need_version=no
4851 need_lib_prefix=no
4853 freebsd-*)
4854 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4855 need_version=yes
4857 esac
4858 shlibpath_var=LD_LIBRARY_PATH
4859 case $host_os in
4860 freebsd2*)
4861 shlibpath_overrides_runpath=yes
4863 freebsd3.01* | freebsdelf3.01*)
4864 shlibpath_overrides_runpath=yes
4865 hardcode_into_libs=yes
4867 *) # from 3.2 on
4868 shlibpath_overrides_runpath=no
4869 hardcode_into_libs=yes
4871 esac
4874 gnu*)
4875 version_type=linux
4876 need_lib_prefix=no
4877 need_version=no
4878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4879 soname_spec='${libname}${release}${shared_ext}$major'
4880 shlibpath_var=LD_LIBRARY_PATH
4881 hardcode_into_libs=yes
4884 hpux9* | hpux10* | hpux11*)
4885 # Give a soname corresponding to the major version so that dld.sl refuses to
4886 # link against other versions.
4887 version_type=sunos
4888 need_lib_prefix=no
4889 need_version=no
4890 case "$host_cpu" in
4891 ia64*)
4892 shrext='.so'
4893 hardcode_into_libs=yes
4894 dynamic_linker="$host_os dld.so"
4895 shlibpath_var=LD_LIBRARY_PATH
4896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4898 soname_spec='${libname}${release}${shared_ext}$major'
4899 if test "X$HPUX_IA64_MODE" = X32; then
4900 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4901 else
4902 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4906 hppa*64*)
4907 shrext='.sl'
4908 hardcode_into_libs=yes
4909 dynamic_linker="$host_os dld.sl"
4910 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4911 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4913 soname_spec='${libname}${release}${shared_ext}$major'
4914 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4915 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4918 shrext='.sl'
4919 dynamic_linker="$host_os dld.sl"
4920 shlibpath_var=SHLIB_PATH
4921 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4923 soname_spec='${libname}${release}${shared_ext}$major'
4925 esac
4926 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4927 postinstall_cmds='chmod 555 $lib'
4930 irix5* | irix6* | nonstopux*)
4931 case $host_os in
4932 nonstopux*) version_type=nonstopux ;;
4934 if test "$lt_cv_prog_gnu_ld" = yes; then
4935 version_type=linux
4936 else
4937 version_type=irix
4938 fi ;;
4939 esac
4940 need_lib_prefix=no
4941 need_version=no
4942 soname_spec='${libname}${release}${shared_ext}$major'
4943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4944 case $host_os in
4945 irix5* | nonstopux*)
4946 libsuff= shlibsuff=
4949 case $LD in # libtool.m4 will add one of these switches to LD
4950 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4951 libsuff= shlibsuff= libmagic=32-bit;;
4952 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4953 libsuff=32 shlibsuff=N32 libmagic=N32;;
4954 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4955 libsuff=64 shlibsuff=64 libmagic=64-bit;;
4956 *) libsuff= shlibsuff= libmagic=never-match;;
4957 esac
4959 esac
4960 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4961 shlibpath_overrides_runpath=no
4962 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4963 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4964 hardcode_into_libs=yes
4967 # No shared lib support for Linux oldld, aout, or coff.
4968 linux*oldld* | linux*aout* | linux*coff*)
4969 dynamic_linker=no
4972 # This must be Linux ELF.
4973 linux*|k*bsd*-gnu)
4974 version_type=linux
4975 need_lib_prefix=no
4976 need_version=no
4977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4978 soname_spec='${libname}${release}${shared_ext}$major'
4979 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4980 shlibpath_var=LD_LIBRARY_PATH
4981 shlibpath_overrides_runpath=no
4982 # This implies no fast_install, which is unacceptable.
4983 # Some rework will be needed to allow for fast_install
4984 # before this can be enabled.
4985 hardcode_into_libs=yes
4987 # We used to test for /lib/ld.so.1 and disable shared libraries on
4988 # powerpc, because MkLinux only supported shared libraries with the
4989 # GNU dynamic linker. Since this was broken with cross compilers,
4990 # most powerpc-linux boxes support dynamic linking these days and
4991 # people can always --disable-shared, the test was removed, and we
4992 # assume the GNU/Linux dynamic linker is in use.
4993 dynamic_linker='GNU/Linux ld.so'
4996 netbsd*)
4997 version_type=sunos
4998 need_lib_prefix=no
4999 need_version=no
5000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5003 dynamic_linker='NetBSD (a.out) ld.so'
5004 else
5005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5006 soname_spec='${libname}${release}${shared_ext}$major'
5007 dynamic_linker='NetBSD ld.elf_so'
5009 shlibpath_var=LD_LIBRARY_PATH
5010 shlibpath_overrides_runpath=yes
5011 hardcode_into_libs=yes
5014 newsos6)
5015 version_type=linux
5016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5017 shlibpath_var=LD_LIBRARY_PATH
5018 shlibpath_overrides_runpath=yes
5021 nto-qnx)
5022 version_type=linux
5023 need_lib_prefix=no
5024 need_version=no
5025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5026 soname_spec='${libname}${release}${shared_ext}$major'
5027 shlibpath_var=LD_LIBRARY_PATH
5028 shlibpath_overrides_runpath=yes
5031 openbsd*)
5032 version_type=sunos
5033 need_lib_prefix=no
5034 need_version=no
5035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5036 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5037 shlibpath_var=LD_LIBRARY_PATH
5038 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5039 case $host_os in
5040 openbsd2.[89] | openbsd2.[89].*)
5041 shlibpath_overrides_runpath=no
5044 shlibpath_overrides_runpath=yes
5046 esac
5047 else
5048 shlibpath_overrides_runpath=yes
5052 os2*)
5053 libname_spec='$name'
5054 shrext=".dll"
5055 need_lib_prefix=no
5056 library_names_spec='$libname${shared_ext} $libname.a'
5057 dynamic_linker='OS/2 ld.exe'
5058 shlibpath_var=LIBPATH
5061 osf3* | osf4* | osf5*)
5062 version_type=osf
5063 need_lib_prefix=no
5064 need_version=no
5065 soname_spec='${libname}${release}${shared_ext}$major'
5066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5067 shlibpath_var=LD_LIBRARY_PATH
5068 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5069 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5072 sco3.2v5*)
5073 version_type=osf
5074 soname_spec='${libname}${release}${shared_ext}$major'
5075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5076 shlibpath_var=LD_LIBRARY_PATH
5079 solaris*)
5080 version_type=linux
5081 need_lib_prefix=no
5082 need_version=no
5083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5084 soname_spec='${libname}${release}${shared_ext}$major'
5085 shlibpath_var=LD_LIBRARY_PATH
5086 shlibpath_overrides_runpath=yes
5087 hardcode_into_libs=yes
5088 # ldd complains unless libraries are executable
5089 postinstall_cmds='chmod +x $lib'
5092 sunos4*)
5093 version_type=sunos
5094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5095 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5096 shlibpath_var=LD_LIBRARY_PATH
5097 shlibpath_overrides_runpath=yes
5098 if test "$with_gnu_ld" = yes; then
5099 need_lib_prefix=no
5101 need_version=yes
5104 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5105 version_type=linux
5106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5107 soname_spec='${libname}${release}${shared_ext}$major'
5108 shlibpath_var=LD_LIBRARY_PATH
5109 case $host_vendor in
5110 sni)
5111 shlibpath_overrides_runpath=no
5112 need_lib_prefix=no
5113 export_dynamic_flag_spec='${wl}-Blargedynsym'
5114 runpath_var=LD_RUN_PATH
5116 siemens)
5117 need_lib_prefix=no
5119 motorola)
5120 need_lib_prefix=no
5121 need_version=no
5122 shlibpath_overrides_runpath=no
5123 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5125 esac
5128 sysv4*MP*)
5129 if test -d /usr/nec ;then
5130 version_type=linux
5131 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5132 soname_spec='$libname${shared_ext}.$major'
5133 shlibpath_var=LD_LIBRARY_PATH
5137 uts4*)
5138 version_type=linux
5139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5140 soname_spec='${libname}${release}${shared_ext}$major'
5141 shlibpath_var=LD_LIBRARY_PATH
5145 dynamic_linker=no
5147 esac
5148 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5149 echo "${ECHO_T}$dynamic_linker" >&6
5150 test "$dynamic_linker" = no && can_build_shared=no
5153 echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5154 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
5155 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 libltdl_cv_shlibpath_var="$shlibpath_var"
5160 echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5161 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
5162 if test -n "$libltdl_cv_shlibpath_var"; then
5164 cat >>confdefs.h <<_ACEOF
5165 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5166 _ACEOF
5172 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5175 # See if the user has requested runtime debugging.
5176 LIBGCJDEBUG="disable"
5178 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5179 if test "${enable_libgcj_debug+set}" = set; then
5180 enableval="$enable_libgcj_debug"
5181 if test "$enable_libgcj_debug" = yes; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define DEBUG 1
5185 _ACEOF
5187 LIBGCJDEBUG="enable"
5192 # Check whether --with-escher or --without-escher was given.
5193 if test "${with_escher+set}" = set; then
5194 withval="$with_escher"
5197 case "$with_escher" in
5199 use_escher=false
5201 "no")
5202 use_escher=false
5204 "yes")
5205 { { echo "$as_me:$LINENO: error: Please supply an absolute path to Escher library" >&5
5206 echo "$as_me: error: Please supply an absolute path to Escher library" >&2;}
5207 { (exit 1); exit 1; }; }
5210 use_escher=true
5212 esac
5214 # Determine which AWT peer libraries to build
5215 # Check whether --enable-java-awt or --disable-java-awt was given.
5216 if test "${enable_java_awt+set}" = set; then
5217 enableval="$enable_java_awt"
5221 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5222 use_xlib_awt=""
5223 use_gtk_awt=""
5224 use_qt_awt=""
5225 use_x_awt=""
5226 # The default toolkit to use is the first one specified.
5227 TOOLKIT=
5230 for peer in $peerlibs ; do
5231 case $peer in
5232 xlib)
5233 if test "$no_x" = yes; then
5234 echo "*** xlib peers requested but no X library available" 1>&2
5235 exit 1
5236 else
5237 use_xlib_awt="yes"
5238 if test -z "$TOOLKIT"; then
5239 TOOLKIT=gnu.awt.xlib.XToolkit
5243 gtk)
5244 if test "$no_x" = yes; then
5245 echo "*** gtk peers requested but no X library available" 1>&2
5246 exit 1
5247 else
5248 use_gtk_awt=yes
5249 if test -z "$TOOLKIT"; then
5250 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5255 if test "$no_x" = yes; then
5256 # Perhaps we should admit the possibility of embedded Qt.
5257 echo "*** Qt peers requested but no X library available" 1>&2
5258 exit 1
5259 else
5260 use_qt_awt=yes
5261 if test -z "$TOOLKIT"; then
5262 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5267 use_x_awt=yes
5268 if test -z "$TOOLKIT"; then
5269 TOOLKIT=gnu.java.awt.peer.x.XToolkit
5273 use_xlib_awt=
5274 use_gtk_awt=
5275 use_qt_awt=
5276 use_x_awt=
5277 break
5280 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5281 exit 1
5282 esac
5283 done
5287 if test "$use_xlib_awt" = yes; then
5288 XLIB_AWT_TRUE=
5289 XLIB_AWT_FALSE='#'
5290 else
5291 XLIB_AWT_TRUE='#'
5292 XLIB_AWT_FALSE=
5297 if test "$use_x_awt" = yes; then
5298 X_AWT_TRUE=
5299 X_AWT_FALSE='#'
5300 else
5301 X_AWT_TRUE='#'
5302 X_AWT_FALSE=
5307 cat >>confdefs.h <<_ACEOF
5308 #define AWT_TOOLKIT "$TOOLKIT"
5309 _ACEOF
5313 cat >>confdefs.h <<_ACEOF
5314 #define LIBGCJ_PREFIX "$prefix"
5315 _ACEOF
5318 # Create standard.omit based on decisions we just made.
5319 cp $srcdir/standard.omit.in standard.omit
5320 if test "$use_xlib_awt" != yes; then
5321 echo gnu/awt/xlib >> standard.omit
5322 echo gnu/gcj/xlib >> standard.omit
5324 if test "$use_x_awt" != yes; then
5325 echo gnu/java/awt/peer/x >> standard.omit
5328 # Tools that need to be compiled against classpath's tools classes
5329 : > vm-tools-packages
5330 for package in gnu/gcj/tools/gc_analyze ; do
5331 echo $package >> standard.omit
5332 echo $package >> vm-tools-packages
5333 done
5335 if test -z "${with_multisubdir}"; then
5336 builddotdot=.
5337 else
5338 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5341 NATIVE=yes
5343 # Which gcj and host gcj (for ecjx) do we use?
5344 which_gcj=default
5345 host_exeext=${ac_exeext}
5346 GCJ_FOR_ECJX=
5347 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5348 if test -n "${with_cross_host}"; then
5349 # We are being configured with a cross compiler. We can't
5350 # use ac_exeext, because that is for the target platform.
5351 NATIVE=no
5352 cross_host_exeext=
5353 GCJ_FOR_ECJX="${with_cross_host}-gcj"
5354 case "${with_cross_host}" in
5355 *mingw* | *cygwin*)
5356 cross_host_exeext=.exe
5358 esac
5359 host_exeext=${cross_host_exeext}
5360 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5361 if test x"$build_noncanonical" = x"$with_cross_host"; then
5362 # Ordinary cross (host!=target and host=build)
5363 which_gcj=built
5364 else
5365 # Canadian cross (host!=target and host!=build)
5366 which_gcj=cross
5368 else
5369 which_gcj=cross
5371 else
5372 # We are being configured with a native or crossed-native compiler
5373 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5374 if test x"$build" = x"$host"; then
5375 # True native build (host=target and host=build)
5376 which_gcj=built
5377 else
5378 # Crossed-native build (host=target and host!=build)
5379 which_gcj=cross
5381 else
5382 which_gcj=path
5385 case "${which_gcj}" in
5386 built)
5387 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5388 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5390 cross)
5391 if test "x${with_newlib}" = "xyes"; then
5392 # FIXME (comment): Why is this needed?
5393 GCC_UNWIND_INCLUDE=
5394 GCJ="${target_noncanonical}-gcj"
5395 else
5396 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5398 GCJH='$(target_noncanonical)-gcjh'
5400 path)
5401 GCJ="gcj -B`${PWDCMD-pwd}`/"
5402 GCJH=gcjh
5404 esac
5405 JAVAC="$GCJ -C"
5406 export JAVAC
5412 # Create it, so that compile/link tests don't fail
5413 test -f libgcj.spec || touch libgcj.spec
5417 # Set up to configure Classpath.
5418 # FIXME: no supported way to pass args in autoconf.
5419 ac_configure_args="$ac_configure_args --with-fastjar=$JAR"
5420 # Disable tool wrappers to avoid ltdl.h configure check.
5421 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
5422 ac_configure_args="$ac_configure_args --disable-load-library"
5423 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5424 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5425 dir1=`cd $srcdir && pwd`
5426 dir2=`pwd`
5427 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5428 ac_configure_args="$ac_configure_args --disable-core-jni"
5429 ac_configure_args="$ac_configure_args --disable-examples"
5430 ac_configure_args="$ac_configure_args --with-glibj=build"
5431 if test "$plugin_enabled" != yes; then
5432 ac_configure_args="$ac_configure_args --disable-plugin"
5434 if test "$gconf_enabled" != yes; then
5435 ac_configure_args="$ac_configure_args --disable-gconf-peer"
5436 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
5438 if test "$use_gtk_awt" != yes; then
5439 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
5441 if test "$use_qt_awt" != yes; then
5442 ac_configure_args="$ac_configure_args --disable-qt-peer"
5443 else
5444 # We need this as qt is disabled by default in classpath.
5445 ac_configure_args="$ac_configure_args --enable-qt-peer"
5447 if test "$use_x_awt" != yes; then
5448 ac_configure_args="$ac_configure_args --without-escher"
5449 else
5450 # We need this as escher is disabled by default in classpath.
5451 if test "$use_escher" != true; then
5452 { { echo "$as_me:$LINENO: error: Please supply an absolute path to the Escher library" >&5
5453 echo "$as_me: error: Please supply an absolute path to the Escher library" >&2;}
5454 { (exit 1); exit 1; }; }
5455 else
5456 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
5459 # -Werror causes unavoidable problems in code using alsa.
5460 ac_configure_args="$ac_configure_args --disable-regen-headers"
5461 ac_configure_args="$ac_configure_args --disable-Werror"
5463 # Only use libltdl for non-newlib builds.
5464 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5465 case $enable_ltdl_convenience in
5466 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5467 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5468 { (exit 1); exit 1; }; } ;;
5469 "") enable_ltdl_convenience=yes
5470 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5471 esac
5472 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5473 LTDLINCL='-I${top_srcdir}/''libltdl'
5474 # For backwards non-gettext consistent compatibility...
5475 INCLTDL="$LTDLINCL"
5477 enable_dlopen=yes
5481 DIRLTDL=libltdl
5483 cat >>confdefs.h <<\_ACEOF
5484 #define USE_LTDL 1
5485 _ACEOF
5487 # Sigh. Libtool's macro doesn't do the right thing.
5488 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5489 # FIXME: this is a hack.
5490 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5491 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5496 case `pwd` in
5497 *\ * | *\ *)
5498 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5499 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5500 esac
5504 macro_version='2.2.6'
5505 macro_revision='1.3012'
5519 ltmain="$ac_aux_dir/ltmain.sh"
5521 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5522 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5523 if test "${lt_cv_path_SED+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526 # Loop through the user's path and test for sed and gsed.
5527 # Then use that list of sed's as ones to test for truncation.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for lt_ac_prog in sed gsed; do
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5536 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5538 done
5539 done
5540 done
5541 IFS=$as_save_IFS
5542 lt_ac_max=0
5543 lt_ac_count=0
5544 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5545 # along with /bin/sed that truncates output.
5546 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5547 test ! -f $lt_ac_sed && continue
5548 cat /dev/null > conftest.in
5549 lt_ac_count=0
5550 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5551 # Check for GNU sed and select it if it is found.
5552 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5553 lt_cv_path_SED=$lt_ac_sed
5554 break
5556 while true; do
5557 cat conftest.in conftest.in >conftest.tmp
5558 mv conftest.tmp conftest.in
5559 cp conftest.in conftest.nl
5560 echo >>conftest.nl
5561 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5562 cmp -s conftest.out conftest.nl || break
5563 # 10000 chars as input seems more than enough
5564 test $lt_ac_count -gt 10 && break
5565 lt_ac_count=`expr $lt_ac_count + 1`
5566 if test $lt_ac_count -gt $lt_ac_max; then
5567 lt_ac_max=$lt_ac_count
5568 lt_cv_path_SED=$lt_ac_sed
5570 done
5571 done
5575 SED=$lt_cv_path_SED
5577 echo "$as_me:$LINENO: result: $SED" >&5
5578 echo "${ECHO_T}$SED" >&6
5580 test -z "$SED" && SED=sed
5581 Xsed="$SED -e 1s/^X//"
5593 echo "$as_me:$LINENO: checking for egrep" >&5
5594 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5595 if test "${ac_cv_prog_egrep+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 else
5598 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5599 then ac_cv_prog_egrep='grep -E'
5600 else ac_cv_prog_egrep='egrep'
5603 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5604 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5605 EGREP=$ac_cv_prog_egrep
5608 echo "$as_me:$LINENO: checking for fgrep" >&5
5609 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
5610 if test "${ac_cv_prog_fgrep+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
5614 then ac_cv_prog_fgrep='grep -F'
5615 else ac_cv_prog_fgrep='fgrep'
5618 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
5619 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
5620 FGREP=$ac_cv_prog_fgrep
5623 test -z "$GREP" && GREP=grep
5643 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5644 if test "${with_gnu_ld+set}" = set; then
5645 withval="$with_gnu_ld"
5646 test "$withval" = no || with_gnu_ld=yes
5647 else
5648 with_gnu_ld=no
5650 ac_prog=ld
5651 if test "$GCC" = yes; then
5652 # Check if gcc -print-prog-name=ld gives a path.
5653 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5654 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5655 case $host in
5656 *-*-mingw*)
5657 # gcc leaves a trailing carriage return which upsets mingw
5658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5661 esac
5662 case $ac_prog in
5663 # Accept absolute paths.
5664 [\\/]* | ?:[\\/]*)
5665 re_direlt='/[^/][^/]*/\.\./'
5666 # Canonicalize the pathname of ld
5667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5670 done
5671 test -z "$LD" && LD="$ac_prog"
5674 # If it fails, then pretend we aren't using GCC.
5675 ac_prog=ld
5678 # If it is relative, then search for the first ld in PATH.
5679 with_gnu_ld=unknown
5681 esac
5682 elif test "$with_gnu_ld" = yes; then
5683 echo "$as_me:$LINENO: checking for GNU ld" >&5
5684 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5685 else
5686 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5687 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5689 if test "${lt_cv_path_LD+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 if test -z "$LD"; then
5693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5694 for ac_dir in $PATH; do
5695 IFS="$lt_save_ifs"
5696 test -z "$ac_dir" && ac_dir=.
5697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5698 lt_cv_path_LD="$ac_dir/$ac_prog"
5699 # Check to see if the program is GNU ld. I'd rather use --version,
5700 # but apparently some variants of GNU ld only accept -v.
5701 # Break only if it was the GNU/non-GNU ld that we prefer.
5702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5703 *GNU* | *'with BFD'*)
5704 test "$with_gnu_ld" != no && break
5707 test "$with_gnu_ld" != yes && break
5709 esac
5711 done
5712 IFS="$lt_save_ifs"
5713 else
5714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5718 LD="$lt_cv_path_LD"
5719 if test -n "$LD"; then
5720 echo "$as_me:$LINENO: result: $LD" >&5
5721 echo "${ECHO_T}$LD" >&6
5722 else
5723 echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6
5726 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5727 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5728 { (exit 1); exit 1; }; }
5729 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5730 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5731 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 else
5734 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5735 case `$LD -v 2>&1 </dev/null` in
5736 *GNU* | *'with BFD'*)
5737 lt_cv_prog_gnu_ld=yes
5740 lt_cv_prog_gnu_ld=no
5742 esac
5744 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5745 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5746 with_gnu_ld=$lt_cv_prog_gnu_ld
5756 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5757 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
5758 if test "${lt_cv_path_NM+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 if test -n "$NM"; then
5762 # Let the user override the test.
5763 lt_cv_path_NM="$NM"
5764 else
5765 lt_nm_to_check="${ac_tool_prefix}nm"
5766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767 lt_nm_to_check="$lt_nm_to_check nm"
5769 for lt_tmp_nm in $lt_nm_to_check; do
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5772 IFS="$lt_save_ifs"
5773 test -z "$ac_dir" && ac_dir=.
5774 tmp_nm="$ac_dir/$lt_tmp_nm"
5775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776 # Check to see if the nm accepts a BSD-compat flag.
5777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778 # nm: unknown option "B" ignored
5779 # Tru64's nm complains that /dev/null is an invalid object file
5780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781 */dev/null* | *'Invalid file or object type'*)
5782 lt_cv_path_NM="$tmp_nm -B"
5783 break
5786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5787 */dev/null*)
5788 lt_cv_path_NM="$tmp_nm -p"
5789 break
5792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793 continue # so that we can try to find one that supports BSD flags
5795 esac
5797 esac
5799 done
5800 IFS="$lt_save_ifs"
5801 done
5802 : ${lt_cv_path_NM=no}
5805 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6
5807 if test "$lt_cv_path_NM" != "no"; then
5808 NM="$lt_cv_path_NM"
5809 else
5810 # Didn't find any BSD compatible name lister, look for dumpbin.
5811 if test -n "$ac_tool_prefix"; then
5812 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5815 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5816 echo "$as_me:$LINENO: checking for $ac_word" >&5
5817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5818 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 else
5821 if test -n "$DUMPBIN"; then
5822 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5823 else
5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825 for as_dir in $PATH
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5831 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5835 done
5836 done
5840 DUMPBIN=$ac_cv_prog_DUMPBIN
5841 if test -n "$DUMPBIN"; then
5842 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5843 echo "${ECHO_T}$DUMPBIN" >&6
5844 else
5845 echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6
5849 test -n "$DUMPBIN" && break
5850 done
5852 if test -z "$DUMPBIN"; then
5853 ac_ct_DUMPBIN=$DUMPBIN
5854 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5856 # Extract the first word of "$ac_prog", so it can be a program name with args.
5857 set dummy $ac_prog; ac_word=$2
5858 echo "$as_me:$LINENO: checking for $ac_word" >&5
5859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5860 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862 else
5863 if test -n "$ac_ct_DUMPBIN"; then
5864 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5865 else
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5869 IFS=$as_save_IFS
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5873 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 break 2
5877 done
5878 done
5882 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5883 if test -n "$ac_ct_DUMPBIN"; then
5884 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5885 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
5886 else
5887 echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6
5891 test -n "$ac_ct_DUMPBIN" && break
5892 done
5893 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
5895 DUMPBIN=$ac_ct_DUMPBIN
5899 if test "$DUMPBIN" != ":"; then
5900 NM="$DUMPBIN"
5903 test -z "$NM" && NM=nm
5910 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5911 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
5912 if test "${lt_cv_nm_interface+set}" = set; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 else
5915 lt_cv_nm_interface="BSD nm"
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 (eval echo "\"\$as_me:5917: $ac_compile\"" >&5)
5918 (eval "$ac_compile" 2>conftest.err)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:5920: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5921 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5922 cat conftest.err >&5
5923 (eval echo "\"\$as_me:5923: output\"" >&5)
5924 cat conftest.out >&5
5925 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5926 lt_cv_nm_interface="MS dumpbin"
5928 rm -f conftest*
5930 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5931 echo "${ECHO_T}$lt_cv_nm_interface" >&6
5933 # find the maximum length of command line arguments
5934 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5935 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5936 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5937 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 else
5940 teststring="ABCD"
5942 case $build_os in
5943 msdosdjgpp*)
5944 # On DJGPP, this test can blow up pretty badly due to problems in libc
5945 # (any single argument exceeding 2000 bytes causes a buffer overrun
5946 # during glob expansion). Even if it were fixed, the result of this
5947 # check would be larger than it should be.
5948 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5951 gnu*)
5952 # Under GNU Hurd, this test is not required because there is
5953 # no limit to the length of command line arguments.
5954 # Libtool will interpret -1 as no limit whatsoever
5955 lt_cv_sys_max_cmd_len=-1;
5958 cygwin* | mingw* | cegcc*)
5959 # On Win9x/ME, this test blows up -- it succeeds, but takes
5960 # about 5 minutes as the teststring grows exponentially.
5961 # Worse, since 9x/ME are not pre-emptively multitasking,
5962 # you end up with a "frozen" computer, even though with patience
5963 # the test eventually succeeds (with a max line length of 256k).
5964 # Instead, let's just punt: use the minimum linelength reported by
5965 # all of the supported platforms: 8192 (on NT/2K/XP).
5966 lt_cv_sys_max_cmd_len=8192;
5969 amigaos*)
5970 # On AmigaOS with pdksh, this test takes hours, literally.
5971 # So we just punt and use a minimum line length of 8192.
5972 lt_cv_sys_max_cmd_len=8192;
5975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5976 # This has been around since 386BSD, at least. Likely further.
5977 if test -x /sbin/sysctl; then
5978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5979 elif test -x /usr/sbin/sysctl; then
5980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5981 else
5982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5984 # And add a safety zone
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5989 interix*)
5990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5991 lt_cv_sys_max_cmd_len=196608
5994 osf*)
5995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5997 # nice to cause kernel panics so lets avoid the loop below.
5998 # First set a reasonable default.
5999 lt_cv_sys_max_cmd_len=16384
6001 if test -x /sbin/sysconfig; then
6002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6004 esac
6007 sco3.2v5*)
6008 lt_cv_sys_max_cmd_len=102400
6010 sysv5* | sco5v6* | sysv4.2uw2*)
6011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6012 if test -n "$kargmax"; then
6013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6014 else
6015 lt_cv_sys_max_cmd_len=32768
6019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6020 if test -n "$lt_cv_sys_max_cmd_len"; then
6021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6023 else
6024 # Make teststring a little bigger before we do anything with it.
6025 # a 1K string should be a reasonable start.
6026 for i in 1 2 3 4 5 6 7 8 ; do
6027 teststring=$teststring$teststring
6028 done
6029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6030 # If test is not a shell built-in, we'll probably end up computing a
6031 # maximum length that is only half of the actual maximum length, but
6032 # we can't tell.
6033 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6034 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6035 test $i != 17 # 1/2 MB should be enough
6037 i=`expr $i + 1`
6038 teststring=$teststring$teststring
6039 done
6040 # Only check the string length outside the loop.
6041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6042 teststring=
6043 # Add a significant safety factor because C++ compilers can tack on
6044 # massive amounts of additional arguments before passing them to the
6045 # linker. It appears as though 1/2 is a usable value.
6046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6049 esac
6053 if test -n $lt_cv_sys_max_cmd_len ; then
6054 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6055 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6056 else
6057 echo "$as_me:$LINENO: result: none" >&5
6058 echo "${ECHO_T}none" >&6
6060 max_cmd_len=$lt_cv_sys_max_cmd_len
6067 : ${CP="cp -f"}
6068 : ${MV="mv -f"}
6069 : ${RM="rm -f"}
6071 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6072 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
6073 # Try some XSI features
6074 xsi_shell=no
6075 ( _lt_dummy="a/b/c"
6076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6077 = c,a/b,, \
6078 && eval 'test $(( 1 + 1 )) -eq 2 \
6079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6080 && xsi_shell=yes
6081 echo "$as_me:$LINENO: result: $xsi_shell" >&5
6082 echo "${ECHO_T}$xsi_shell" >&6
6085 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6086 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
6087 lt_shell_append=no
6088 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6089 >/dev/null 2>&1 \
6090 && lt_shell_append=yes
6091 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6092 echo "${ECHO_T}$lt_shell_append" >&6
6095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6096 lt_unset=unset
6097 else
6098 lt_unset=false
6105 # test EBCDIC or ASCII
6106 case `echo X|tr X '\101'` in
6107 A) # ASCII based system
6108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6109 lt_SP2NL='tr \040 \012'
6110 lt_NL2SP='tr \015\012 \040\040'
6112 *) # EBCDIC based system
6113 lt_SP2NL='tr \100 \n'
6114 lt_NL2SP='tr \r\n \100\100'
6116 esac
6126 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6127 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6128 if test "${lt_cv_ld_reload_flag+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131 lt_cv_ld_reload_flag='-r'
6133 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6134 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6135 reload_flag=$lt_cv_ld_reload_flag
6136 case $reload_flag in
6137 "" | " "*) ;;
6138 *) reload_flag=" $reload_flag" ;;
6139 esac
6140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6141 case $host_os in
6142 darwin*)
6143 if test "$GCC" = yes; then
6144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6145 else
6146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6149 esac
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6162 echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6164 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 if test -n "$OBJDUMP"; then
6168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6181 done
6182 done
6186 OBJDUMP=$ac_cv_prog_OBJDUMP
6187 if test -n "$OBJDUMP"; then
6188 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6189 echo "${ECHO_T}$OBJDUMP" >&6
6190 else
6191 echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6196 if test -z "$ac_cv_prog_OBJDUMP"; then
6197 ac_ct_OBJDUMP=$OBJDUMP
6198 # Extract the first word of "objdump", so it can be a program name with args.
6199 set dummy objdump; ac_word=$2
6200 echo "$as_me:$LINENO: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6202 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 if test -n "$ac_ct_OBJDUMP"; then
6206 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6222 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6225 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6226 if test -n "$ac_ct_OBJDUMP"; then
6227 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6228 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6229 else
6230 echo "$as_me:$LINENO: result: no" >&5
6231 echo "${ECHO_T}no" >&6
6234 OBJDUMP=$ac_ct_OBJDUMP
6235 else
6236 OBJDUMP="$ac_cv_prog_OBJDUMP"
6239 test -z "$OBJDUMP" && OBJDUMP=objdump
6249 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6250 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
6251 if test "${lt_cv_deplibs_check_method+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254 lt_cv_file_magic_cmd='$MAGIC_CMD'
6255 lt_cv_file_magic_test_file=
6256 lt_cv_deplibs_check_method='unknown'
6257 # Need to set the preceding variable on all platforms that support
6258 # interlibrary dependencies.
6259 # 'none' -- dependencies not supported.
6260 # `unknown' -- same as none, but documents that we really don't know.
6261 # 'pass_all' -- all dependencies passed with no checks.
6262 # 'test_compile' -- check by making test program.
6263 # 'file_magic [[regex]]' -- check by looking for files in library path
6264 # which responds to the $file_magic_cmd with a given extended regex.
6265 # If you have `file' or equivalent on your system and you're not sure
6266 # whether `pass_all' will *always* work, you probably want this one.
6268 case $host_os in
6269 aix[4-9]*)
6270 lt_cv_deplibs_check_method=pass_all
6273 beos*)
6274 lt_cv_deplibs_check_method=pass_all
6277 bsdi[45]*)
6278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6279 lt_cv_file_magic_cmd='/usr/bin/file -L'
6280 lt_cv_file_magic_test_file=/shlib/libc.so
6283 cygwin*)
6284 # func_win32_libid is a shell function defined in ltmain.sh
6285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6286 lt_cv_file_magic_cmd='func_win32_libid'
6289 mingw* | pw32*)
6290 # Base MSYS/MinGW do not provide the 'file' command needed by
6291 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6292 # unless we find 'file', for example because we are cross-compiling.
6293 if ( file / ) >/dev/null 2>&1; then
6294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6295 lt_cv_file_magic_cmd='func_win32_libid'
6296 else
6297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6298 lt_cv_file_magic_cmd='$OBJDUMP -f'
6302 cegcc)
6303 # use the weaker test based on 'objdump'. See mingw*.
6304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6305 lt_cv_file_magic_cmd='$OBJDUMP -f'
6308 darwin* | rhapsody*)
6309 lt_cv_deplibs_check_method=pass_all
6312 freebsd* | dragonfly*)
6313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314 case $host_cpu in
6315 i*86 )
6316 # Not sure whether the presence of OpenBSD here was a mistake.
6317 # Let's accept both of them until this is cleared up.
6318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6319 lt_cv_file_magic_cmd=/usr/bin/file
6320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6322 esac
6323 else
6324 lt_cv_deplibs_check_method=pass_all
6328 gnu*)
6329 lt_cv_deplibs_check_method=pass_all
6332 hpux10.20* | hpux11*)
6333 lt_cv_file_magic_cmd=/usr/bin/file
6334 case $host_cpu in
6335 ia64*)
6336 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6337 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6339 hppa*64*)
6340 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]'
6341 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6344 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6345 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6347 esac
6350 interix[3-9]*)
6351 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6355 irix5* | irix6* | nonstopux*)
6356 case $LD in
6357 *-32|*"-32 ") libmagic=32-bit;;
6358 *-n32|*"-n32 ") libmagic=N32;;
6359 *-64|*"-64 ") libmagic=64-bit;;
6360 *) libmagic=never-match;;
6361 esac
6362 lt_cv_deplibs_check_method=pass_all
6365 # This must be Linux ELF.
6366 linux* | k*bsd*-gnu)
6367 lt_cv_deplibs_check_method=pass_all
6370 netbsd*)
6371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373 else
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6378 newos6*)
6379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6384 *nto* | *qnx*)
6385 lt_cv_deplibs_check_method=pass_all
6388 openbsd*)
6389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6391 else
6392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6396 osf3* | osf4* | osf5*)
6397 lt_cv_deplibs_check_method=pass_all
6400 rdos*)
6401 lt_cv_deplibs_check_method=pass_all
6404 solaris*)
6405 lt_cv_deplibs_check_method=pass_all
6408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6409 lt_cv_deplibs_check_method=pass_all
6412 sysv4 | sysv4.3*)
6413 case $host_vendor in
6414 motorola)
6415 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]'
6416 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6418 ncr)
6419 lt_cv_deplibs_check_method=pass_all
6421 sequent)
6422 lt_cv_file_magic_cmd='/bin/file'
6423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6425 sni)
6426 lt_cv_file_magic_cmd='/bin/file'
6427 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6428 lt_cv_file_magic_test_file=/lib/libc.so
6430 siemens)
6431 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_deplibs_check_method=pass_all
6436 esac
6439 tpf*)
6440 lt_cv_deplibs_check_method=pass_all
6442 esac
6445 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6446 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6447 file_magic_cmd=$lt_cv_file_magic_cmd
6448 deplibs_check_method=$lt_cv_deplibs_check_method
6449 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6462 if test -n "$ac_tool_prefix"; then
6463 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6464 set dummy ${ac_tool_prefix}ar; ac_word=$2
6465 echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6467 if test "${ac_cv_prog_AR+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470 if test -n "$AR"; then
6471 ac_cv_prog_AR="$AR" # Let the user override the test.
6472 else
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480 ac_cv_prog_AR="${ac_tool_prefix}ar"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2
6484 done
6485 done
6489 AR=$ac_cv_prog_AR
6490 if test -n "$AR"; then
6491 echo "$as_me:$LINENO: result: $AR" >&5
6492 echo "${ECHO_T}$AR" >&6
6493 else
6494 echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6
6499 if test -z "$ac_cv_prog_AR"; then
6500 ac_ct_AR=$AR
6501 # Extract the first word of "ar", so it can be a program name with args.
6502 set dummy ar; ac_word=$2
6503 echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 if test -n "$ac_ct_AR"; then
6509 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_ac_ct_AR="ar"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6522 done
6523 done
6525 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6528 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6529 if test -n "$ac_ct_AR"; then
6530 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6531 echo "${ECHO_T}$ac_ct_AR" >&6
6532 else
6533 echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6
6537 AR=$ac_ct_AR
6538 else
6539 AR="$ac_cv_prog_AR"
6542 test -z "$AR" && AR=ar
6543 test -z "$AR_FLAGS" && AR_FLAGS=cru
6555 if test -n "$ac_tool_prefix"; then
6556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6557 set dummy ${ac_tool_prefix}strip; ac_word=$2
6558 echo "$as_me:$LINENO: checking for $ac_word" >&5
6559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6560 if test "${ac_cv_prog_STRIP+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 if test -n "$STRIP"; then
6564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6565 else
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567 for as_dir in $PATH
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
6572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6577 done
6578 done
6582 STRIP=$ac_cv_prog_STRIP
6583 if test -n "$STRIP"; then
6584 echo "$as_me:$LINENO: result: $STRIP" >&5
6585 echo "${ECHO_T}$STRIP" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6592 if test -z "$ac_cv_prog_STRIP"; then
6593 ac_ct_STRIP=$STRIP
6594 # Extract the first word of "strip", so it can be a program name with args.
6595 set dummy strip; ac_word=$2
6596 echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6598 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 if test -n "$ac_ct_STRIP"; then
6602 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_ac_ct_STRIP="strip"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6618 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6621 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6622 if test -n "$ac_ct_STRIP"; then
6623 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6624 echo "${ECHO_T}$ac_ct_STRIP" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6
6630 STRIP=$ac_ct_STRIP
6631 else
6632 STRIP="$ac_cv_prog_STRIP"
6635 test -z "$STRIP" && STRIP=:
6642 if test -n "$ac_tool_prefix"; then
6643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6644 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6645 echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647 if test "${ac_cv_prog_RANLIB+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650 if test -n "$RANLIB"; then
6651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6652 else
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6654 for as_dir in $PATH
6656 IFS=$as_save_IFS
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 break 2
6664 done
6665 done
6669 RANLIB=$ac_cv_prog_RANLIB
6670 if test -n "$RANLIB"; then
6671 echo "$as_me:$LINENO: result: $RANLIB" >&5
6672 echo "${ECHO_T}$RANLIB" >&6
6673 else
6674 echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6
6679 if test -z "$ac_cv_prog_RANLIB"; then
6680 ac_ct_RANLIB=$RANLIB
6681 # Extract the first word of "ranlib", so it can be a program name with args.
6682 set dummy ranlib; ac_word=$2
6683 echo "$as_me:$LINENO: checking for $ac_word" >&5
6684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6685 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6686 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688 if test -n "$ac_ct_RANLIB"; then
6689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6690 else
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6694 IFS=$as_save_IFS
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_ac_ct_RANLIB="ranlib"
6699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 break 2
6702 done
6703 done
6705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6708 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6709 if test -n "$ac_ct_RANLIB"; then
6710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6711 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6712 else
6713 echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6717 RANLIB=$ac_ct_RANLIB
6718 else
6719 RANLIB="$ac_cv_prog_RANLIB"
6722 test -z "$RANLIB" && RANLIB=:
6729 # Determine commands to create old-style static archives.
6730 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6731 old_postinstall_cmds='chmod 644 $oldlib'
6732 old_postuninstall_cmds=
6734 if test -n "$RANLIB"; then
6735 case $host_os in
6736 openbsd*)
6737 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6740 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6742 esac
6743 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6779 # If no C compiler was specified, use CC.
6780 LTCC=${LTCC-"$CC"}
6782 # If no C compiler flags were specified, use CFLAGS.
6783 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6785 # Allow CC to be a program name with arguments.
6786 compiler=$CC
6789 # Check for command to grab the raw symbol name followed by C symbol from nm.
6790 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6791 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6792 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6796 # These are sane defaults that work on at least a few old systems.
6797 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6799 # Character class describing NM global symbol codes.
6800 symcode='[BCDEGRST]'
6802 # Regexp to match symbols that can be accessed directly from C.
6803 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6805 # Define system-specific variables.
6806 case $host_os in
6807 aix*)
6808 symcode='[BCDT]'
6810 cygwin* | mingw* | pw32* | cegcc*)
6811 symcode='[ABCDGISTW]'
6813 hpux*)
6814 if test "$host_cpu" = ia64; then
6815 symcode='[ABCDEGRST]'
6818 irix* | nonstopux*)
6819 symcode='[BCDEGRST]'
6821 osf*)
6822 symcode='[BCDEGQRST]'
6824 solaris*)
6825 symcode='[BDRT]'
6827 sco3.2v5*)
6828 symcode='[DT]'
6830 sysv4.2uw2*)
6831 symcode='[DT]'
6833 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6834 symcode='[ABDT]'
6836 sysv4)
6837 symcode='[DFNSTU]'
6839 esac
6841 # If we're using GNU nm, then use its standard symbol codes.
6842 case `$NM -V 2>&1` in
6843 *GNU* | *'with BFD'*)
6844 symcode='[ABCDGIRSTW]' ;;
6845 esac
6847 # Transform an extracted symbol line into a proper C declaration.
6848 # Some systems (esp. on ia64) link data and code symbols differently,
6849 # so use this general approach.
6850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6852 # Transform an extracted symbol line into symbol name and symbol address
6853 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6854 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6856 # Handle CRLF in mingw tool chain
6857 opt_cr=
6858 case $build_os in
6859 mingw*)
6860 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6862 esac
6864 # Try without a prefix underscore, then with it.
6865 for ac_symprfx in "" "_"; do
6867 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6868 symxfrm="\\1 $ac_symprfx\\2 \\2"
6870 # Write the raw and C identifiers.
6871 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6872 # Fake it for dumpbin and say T for any non-static function
6873 # and D for any global variable.
6874 # Also find C++ and __fastcall symbols from MSVC++,
6875 # which start with @ or ?.
6876 lt_cv_sys_global_symbol_pipe="$AWK '"\
6877 " {last_section=section; section=\$ 3};"\
6878 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6879 " \$ 0!~/External *\|/{next};"\
6880 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6881 " {if(hide[section]) next};"\
6882 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6883 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6884 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6885 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6886 " ' prfx=^$ac_symprfx"
6887 else
6888 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6891 # Check to see that the pipe works correctly.
6892 pipe_works=no
6894 rm -f conftest*
6895 cat > conftest.$ac_ext <<_LT_EOF
6896 #ifdef __cplusplus
6897 extern "C" {
6898 #endif
6899 char nm_test_var;
6900 void nm_test_func(void);
6901 void nm_test_func(void){}
6902 #ifdef __cplusplus
6904 #endif
6905 int main(){nm_test_var='a';nm_test_func();return(0);}
6906 _LT_EOF
6908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6909 (eval $ac_compile) 2>&5
6910 ac_status=$?
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); }; then
6913 # Now try to grab the symbols.
6914 nlist=conftest.nm
6915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && test -s "$nlist"; then
6920 # Try sorting and uniquifying the output.
6921 if sort "$nlist" | uniq > "$nlist"T; then
6922 mv -f "$nlist"T "$nlist"
6923 else
6924 rm -f "$nlist"T
6927 # Make sure that we snagged all the symbols we need.
6928 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6929 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6930 cat <<_LT_EOF > conftest.$ac_ext
6931 #ifdef __cplusplus
6932 extern "C" {
6933 #endif
6935 _LT_EOF
6936 # Now generate the symbol file.
6937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6939 cat <<_LT_EOF >> conftest.$ac_ext
6941 /* The mapping between symbol names and symbols. */
6942 const struct {
6943 const char *name;
6944 void *address;
6946 lt__PROGRAM__LTX_preloaded_symbols[] =
6948 { "@PROGRAM@", (void *) 0 },
6949 _LT_EOF
6950 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6951 cat <<\_LT_EOF >> conftest.$ac_ext
6952 {0, (void *) 0}
6955 /* This works around a problem in FreeBSD linker */
6956 #ifdef FREEBSD_WORKAROUND
6957 static const void *lt_preloaded_setup() {
6958 return lt__PROGRAM__LTX_preloaded_symbols;
6960 #endif
6962 #ifdef __cplusplus
6964 #endif
6965 _LT_EOF
6966 # Now try linking the two files.
6967 mv conftest.$ac_objext conftstm.$ac_objext
6968 lt_save_LIBS="$LIBS"
6969 lt_save_CFLAGS="$CFLAGS"
6970 LIBS="conftstm.$ac_objext"
6971 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973 (eval $ac_link) 2>&5
6974 ac_status=$?
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6977 pipe_works=yes
6979 LIBS="$lt_save_LIBS"
6980 CFLAGS="$lt_save_CFLAGS"
6981 else
6982 echo "cannot find nm_test_func in $nlist" >&5
6984 else
6985 echo "cannot find nm_test_var in $nlist" >&5
6987 else
6988 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6990 else
6991 echo "$progname: failed program was:" >&5
6992 cat conftest.$ac_ext >&5
6994 rm -rf conftest* conftst*
6996 # Do not use the global_symbol_pipe unless it works.
6997 if test "$pipe_works" = yes; then
6998 break
6999 else
7000 lt_cv_sys_global_symbol_pipe=
7002 done
7006 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7007 lt_cv_sys_global_symbol_to_cdecl=
7009 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7010 echo "$as_me:$LINENO: result: failed" >&5
7011 echo "${ECHO_T}failed" >&6
7012 else
7013 echo "$as_me:$LINENO: result: ok" >&5
7014 echo "${ECHO_T}ok" >&6
7039 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7040 if test "${enable_libtool_lock+set}" = set; then
7041 enableval="$enable_libtool_lock"
7044 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7046 # Some flags need to be propagated to the compiler or linker for good
7047 # libtool support.
7048 case $host in
7049 ia64-*-hpux*)
7050 # Find out which ABI we are using.
7051 echo 'int i;' > conftest.$ac_ext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7053 (eval $ac_compile) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; then
7057 case `/usr/bin/file conftest.$ac_objext` in
7058 *ELF-32*)
7059 HPUX_IA64_MODE="32"
7061 *ELF-64*)
7062 HPUX_IA64_MODE="64"
7064 esac
7066 rm -rf conftest*
7068 *-*-irix6*)
7069 # Find out which ABI we are using.
7070 echo '#line 7070 "configure"' > conftest.$ac_ext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; then
7076 if test "$lt_cv_prog_gnu_ld" = yes; then
7077 case `/usr/bin/file conftest.$ac_objext` in
7078 *32-bit*)
7079 LD="${LD-ld} -melf32bsmip"
7081 *N32*)
7082 LD="${LD-ld} -melf32bmipn32"
7084 *64-bit*)
7085 LD="${LD-ld} -melf64bmip"
7087 esac
7088 else
7089 case `/usr/bin/file conftest.$ac_objext` in
7090 *32-bit*)
7091 LD="${LD-ld} -32"
7093 *N32*)
7094 LD="${LD-ld} -n32"
7096 *64-bit*)
7097 LD="${LD-ld} -64"
7099 esac
7102 rm -rf conftest*
7105 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7106 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7107 # Find out which ABI we are using.
7108 echo 'int i;' > conftest.$ac_ext
7109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7110 (eval $ac_compile) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; then
7114 case `/usr/bin/file conftest.o` in
7115 *32-bit*)
7116 case $host in
7117 x86_64-*kfreebsd*-gnu)
7118 LD="${LD-ld} -m elf_i386_fbsd"
7120 x86_64-*linux*)
7121 LD="${LD-ld} -m elf_i386"
7123 ppc64-*linux*|powerpc64-*linux*)
7124 LD="${LD-ld} -m elf32ppclinux"
7126 s390x-*linux*)
7127 LD="${LD-ld} -m elf_s390"
7129 sparc64-*linux*)
7130 LD="${LD-ld} -m elf32_sparc"
7132 esac
7134 *64-bit*)
7135 case $host in
7136 x86_64-*kfreebsd*-gnu)
7137 LD="${LD-ld} -m elf_x86_64_fbsd"
7139 x86_64-*linux*)
7140 LD="${LD-ld} -m elf_x86_64"
7142 ppc*-*linux*|powerpc*-*linux*)
7143 LD="${LD-ld} -m elf64ppc"
7145 s390*-*linux*|s390*-*tpf*)
7146 LD="${LD-ld} -m elf64_s390"
7148 sparc*-*linux*)
7149 LD="${LD-ld} -m elf64_sparc"
7151 esac
7153 esac
7155 rm -rf conftest*
7158 *-*-sco3.2v5*)
7159 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7160 SAVE_CFLAGS="$CFLAGS"
7161 CFLAGS="$CFLAGS -belf"
7162 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7163 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7164 if test "${lt_cv_cc_needs_belf+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167 ac_ext=c
7168 ac_cpp='$CPP $CPPFLAGS'
7169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7173 if test x$gcc_no_link = xyes; then
7174 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7175 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7176 { (exit 1); exit 1; }; }
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7186 main ()
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext conftest$ac_exeext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7195 (eval $ac_link) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 lt_cv_cc_needs_belf=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 lt_cv_cc_needs_belf=no
7222 rm -f conftest.err conftest.$ac_objext \
7223 conftest$ac_exeext conftest.$ac_ext
7224 ac_ext=c
7225 ac_cpp='$CPP $CPPFLAGS'
7226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7232 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7233 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7234 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7235 CFLAGS="$SAVE_CFLAGS"
7238 sparc*-*solaris*)
7239 # Find out which ABI we are using.
7240 echo 'int i;' > conftest.$ac_ext
7241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7242 (eval $ac_compile) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; then
7246 case `/usr/bin/file conftest.o` in
7247 *64-bit*)
7248 case $lt_cv_prog_gnu_ld in
7249 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7251 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7252 LD="${LD-ld} -64"
7255 esac
7257 esac
7259 rm -rf conftest*
7261 esac
7263 need_locks="$enable_libtool_lock"
7266 case $host_os in
7267 rhapsody* | darwin*)
7268 if test -n "$ac_tool_prefix"; then
7269 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7270 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7271 echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7273 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 if test -n "$DSYMUTIL"; then
7277 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7278 else
7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7282 IFS=$as_save_IFS
7283 test -z "$as_dir" && as_dir=.
7284 for ac_exec_ext in '' $ac_executable_extensions; do
7285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7288 break 2
7290 done
7291 done
7295 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7296 if test -n "$DSYMUTIL"; then
7297 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7298 echo "${ECHO_T}$DSYMUTIL" >&6
7299 else
7300 echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6
7305 if test -z "$ac_cv_prog_DSYMUTIL"; then
7306 ac_ct_DSYMUTIL=$DSYMUTIL
7307 # Extract the first word of "dsymutil", so it can be a program name with args.
7308 set dummy dsymutil; ac_word=$2
7309 echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7311 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 else
7314 if test -n "$ac_ct_DSYMUTIL"; then
7315 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7316 else
7317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7320 IFS=$as_save_IFS
7321 test -z "$as_dir" && as_dir=.
7322 for ac_exec_ext in '' $ac_executable_extensions; do
7323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7324 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326 break 2
7328 done
7329 done
7331 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
7334 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7335 if test -n "$ac_ct_DSYMUTIL"; then
7336 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7337 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
7338 else
7339 echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6
7343 DSYMUTIL=$ac_ct_DSYMUTIL
7344 else
7345 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7348 if test -n "$ac_tool_prefix"; then
7349 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7351 echo "$as_me:$LINENO: checking for $ac_word" >&5
7352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7353 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356 if test -n "$NMEDIT"; then
7357 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7370 done
7371 done
7375 NMEDIT=$ac_cv_prog_NMEDIT
7376 if test -n "$NMEDIT"; then
7377 echo "$as_me:$LINENO: result: $NMEDIT" >&5
7378 echo "${ECHO_T}$NMEDIT" >&6
7379 else
7380 echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6
7385 if test -z "$ac_cv_prog_NMEDIT"; then
7386 ac_ct_NMEDIT=$NMEDIT
7387 # Extract the first word of "nmedit", so it can be a program name with args.
7388 set dummy nmedit; ac_word=$2
7389 echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7391 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7392 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394 if test -n "$ac_ct_NMEDIT"; then
7395 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7411 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
7414 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415 if test -n "$ac_ct_NMEDIT"; then
7416 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7417 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
7418 else
7419 echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6
7423 NMEDIT=$ac_ct_NMEDIT
7424 else
7425 NMEDIT="$ac_cv_prog_NMEDIT"
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7431 echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7433 if test "${ac_cv_prog_LIPO+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 if test -n "$LIPO"; then
7437 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7455 LIPO=$ac_cv_prog_LIPO
7456 if test -n "$LIPO"; then
7457 echo "$as_me:$LINENO: result: $LIPO" >&5
7458 echo "${ECHO_T}$LIPO" >&6
7459 else
7460 echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6
7465 if test -z "$ac_cv_prog_LIPO"; then
7466 ac_ct_LIPO=$LIPO
7467 # Extract the first word of "lipo", so it can be a program name with args.
7468 set dummy lipo; ac_word=$2
7469 echo "$as_me:$LINENO: checking for $ac_word" >&5
7470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7471 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 else
7474 if test -n "$ac_ct_LIPO"; then
7475 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7476 else
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478 for as_dir in $PATH
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_ac_ct_LIPO="lipo"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 break 2
7488 done
7489 done
7491 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
7494 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7495 if test -n "$ac_ct_LIPO"; then
7496 echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7497 echo "${ECHO_T}$ac_ct_LIPO" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6
7503 LIPO=$ac_ct_LIPO
7504 else
7505 LIPO="$ac_cv_prog_LIPO"
7508 if test -n "$ac_tool_prefix"; then
7509 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}otool; ac_word=$2
7511 echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7513 if test "${ac_cv_prog_OTOOL+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516 if test -n "$OTOOL"; then
7517 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 for ac_exec_ext in '' $ac_executable_extensions; do
7525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 break 2
7530 done
7531 done
7535 OTOOL=$ac_cv_prog_OTOOL
7536 if test -n "$OTOOL"; then
7537 echo "$as_me:$LINENO: result: $OTOOL" >&5
7538 echo "${ECHO_T}$OTOOL" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6
7545 if test -z "$ac_cv_prog_OTOOL"; then
7546 ac_ct_OTOOL=$OTOOL
7547 # Extract the first word of "otool", so it can be a program name with args.
7548 set dummy otool; ac_word=$2
7549 echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7551 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 else
7554 if test -n "$ac_ct_OTOOL"; then
7555 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7564 ac_cv_prog_ac_ct_OTOOL="otool"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7568 done
7569 done
7571 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
7574 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7575 if test -n "$ac_ct_OTOOL"; then
7576 echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7577 echo "${ECHO_T}$ac_ct_OTOOL" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7583 OTOOL=$ac_ct_OTOOL
7584 else
7585 OTOOL="$ac_cv_prog_OTOOL"
7588 if test -n "$ac_tool_prefix"; then
7589 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7591 echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7593 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 else
7596 if test -n "$OTOOL64"; then
7597 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7602 IFS=$as_save_IFS
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7608 break 2
7610 done
7611 done
7615 OTOOL64=$ac_cv_prog_OTOOL64
7616 if test -n "$OTOOL64"; then
7617 echo "$as_me:$LINENO: result: $OTOOL64" >&5
7618 echo "${ECHO_T}$OTOOL64" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6
7625 if test -z "$ac_cv_prog_OTOOL64"; then
7626 ac_ct_OTOOL64=$OTOOL64
7627 # Extract the first word of "otool64", so it can be a program name with args.
7628 set dummy otool64; ac_word=$2
7629 echo "$as_me:$LINENO: checking for $ac_word" >&5
7630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7631 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633 else
7634 if test -n "$ac_ct_OTOOL64"; then
7635 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644 ac_cv_prog_ac_ct_OTOOL64="otool64"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646 break 2
7648 done
7649 done
7651 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
7654 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7655 if test -n "$ac_ct_OTOOL64"; then
7656 echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7657 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
7658 else
7659 echo "$as_me:$LINENO: result: no" >&5
7660 echo "${ECHO_T}no" >&6
7663 OTOOL64=$ac_ct_OTOOL64
7664 else
7665 OTOOL64="$ac_cv_prog_OTOOL64"
7694 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7695 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
7696 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699 lt_cv_apple_cc_single_mod=no
7700 if test -z "${LT_MULTI_MODULE}"; then
7701 # By default we will add the -single_module flag. You can override
7702 # by either setting the environment variable LT_MULTI_MODULE
7703 # non-empty at configure time, or by adding -multi_module to the
7704 # link flags.
7705 rm -rf libconftest.dylib*
7706 echo "int foo(void){return 1;}" > conftest.c
7707 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7708 -dynamiclib -Wl,-single_module conftest.c" >&5
7709 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7710 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7711 _lt_result=$?
7712 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7713 lt_cv_apple_cc_single_mod=yes
7714 else
7715 cat conftest.err >&5
7717 rm -rf libconftest.dylib*
7718 rm -f conftest.*
7721 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7722 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
7723 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7724 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
7725 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728 lt_cv_ld_exported_symbols_list=no
7729 save_LDFLAGS=$LDFLAGS
7730 echo "_main" > conftest.sym
7731 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7732 if test x$gcc_no_link = xyes; then
7733 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7734 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7735 { (exit 1); exit 1; }; }
7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7745 main ()
7749 return 0;
7751 _ACEOF
7752 rm -f conftest.$ac_objext conftest$ac_exeext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 lt_cv_ld_exported_symbols_list=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 lt_cv_ld_exported_symbols_list=no
7781 rm -f conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783 LDFLAGS="$save_LDFLAGS"
7786 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7787 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
7788 case $host_os in
7789 rhapsody* | darwin1.[012])
7790 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7791 darwin1.*)
7792 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7793 darwin*) # darwin 5.x on
7794 # if running on 10.5 or later, the deployment target defaults
7795 # to the OS version, if on x86, and 10.4, the deployment
7796 # target defaults to 10.4. Don't you love it?
7797 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7798 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7799 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7800 10.[012]*)
7801 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7802 10.*)
7803 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7804 esac
7806 esac
7807 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7808 _lt_dar_single_mod='$single_module'
7810 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7811 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7812 else
7813 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7815 if test "$DSYMUTIL" != ":"; then
7816 _lt_dsymutil='~$DSYMUTIL $lib || :'
7817 else
7818 _lt_dsymutil=
7821 esac
7823 ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7829 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7830 # On Suns, sometimes $CPP names a directory.
7831 if test -n "$CPP" && test -d "$CPP"; then
7832 CPP=
7834 if test -z "$CPP"; then
7835 if test "${ac_cv_prog_CPP+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 else
7838 # Double quotes because CPP needs to be expanded
7839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7841 ac_preproc_ok=false
7842 for ac_c_preproc_warn_flag in '' yes
7844 # Use a header file that comes with gcc, so configuring glibc
7845 # with a fresh cross-compiler works.
7846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7847 # <limits.h> exists even on freestanding compilers.
7848 # On the NeXT, cc -E runs the code through the compiler's parser,
7849 # not just through cpp. "Syntax error" is here to catch this case.
7850 cat >conftest.$ac_ext <<_ACEOF
7851 /* confdefs.h. */
7852 _ACEOF
7853 cat confdefs.h >>conftest.$ac_ext
7854 cat >>conftest.$ac_ext <<_ACEOF
7855 /* end confdefs.h. */
7856 #ifdef __STDC__
7857 # include <limits.h>
7858 #else
7859 # include <assert.h>
7860 #endif
7861 Syntax error
7862 _ACEOF
7863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } >/dev/null; then
7871 if test -s conftest.err; then
7872 ac_cpp_err=$ac_c_preproc_warn_flag
7873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7874 else
7875 ac_cpp_err=
7877 else
7878 ac_cpp_err=yes
7880 if test -z "$ac_cpp_err"; then
7882 else
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.$ac_ext >&5
7886 # Broken: fails on valid input.
7887 continue
7889 rm -f conftest.err conftest.$ac_ext
7891 # OK, works on sane cases. Now check whether non-existent headers
7892 # can be detected and how.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 #include <ac_nonexistent.h>
7900 _ACEOF
7901 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } >/dev/null; then
7909 if test -s conftest.err; then
7910 ac_cpp_err=$ac_c_preproc_warn_flag
7911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7912 else
7913 ac_cpp_err=
7915 else
7916 ac_cpp_err=yes
7918 if test -z "$ac_cpp_err"; then
7919 # Broken: success on invalid input.
7920 continue
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 # Passes both tests.
7926 ac_preproc_ok=:
7927 break
7929 rm -f conftest.err conftest.$ac_ext
7931 done
7932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7933 rm -f conftest.err conftest.$ac_ext
7934 if $ac_preproc_ok; then
7935 break
7938 done
7939 ac_cv_prog_CPP=$CPP
7942 CPP=$ac_cv_prog_CPP
7943 else
7944 ac_cv_prog_CPP=$CPP
7946 echo "$as_me:$LINENO: result: $CPP" >&5
7947 echo "${ECHO_T}$CPP" >&6
7948 ac_preproc_ok=false
7949 for ac_c_preproc_warn_flag in '' yes
7951 # Use a header file that comes with gcc, so configuring glibc
7952 # with a fresh cross-compiler works.
7953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7954 # <limits.h> exists even on freestanding compilers.
7955 # On the NeXT, cc -E runs the code through the compiler's parser,
7956 # not just through cpp. "Syntax error" is here to catch this case.
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #ifdef __STDC__
7964 # include <limits.h>
7965 #else
7966 # include <assert.h>
7967 #endif
7968 Syntax error
7969 _ACEOF
7970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972 ac_status=$?
7973 grep -v '^ *+' conftest.er1 >conftest.err
7974 rm -f conftest.er1
7975 cat conftest.err >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); } >/dev/null; then
7978 if test -s conftest.err; then
7979 ac_cpp_err=$ac_c_preproc_warn_flag
7980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7981 else
7982 ac_cpp_err=
7984 else
7985 ac_cpp_err=yes
7987 if test -z "$ac_cpp_err"; then
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 # Broken: fails on valid input.
7994 continue
7996 rm -f conftest.err conftest.$ac_ext
7998 # OK, works on sane cases. Now check whether non-existent headers
7999 # can be detected and how.
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 #include <ac_nonexistent.h>
8007 _ACEOF
8008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } >/dev/null; then
8016 if test -s conftest.err; then
8017 ac_cpp_err=$ac_c_preproc_warn_flag
8018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8019 else
8020 ac_cpp_err=
8022 else
8023 ac_cpp_err=yes
8025 if test -z "$ac_cpp_err"; then
8026 # Broken: success on invalid input.
8027 continue
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8032 # Passes both tests.
8033 ac_preproc_ok=:
8034 break
8036 rm -f conftest.err conftest.$ac_ext
8038 done
8039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8040 rm -f conftest.err conftest.$ac_ext
8041 if $ac_preproc_ok; then
8043 else
8044 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8045 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8046 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8047 See \`config.log' for more details." >&5
8048 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8049 See \`config.log' for more details." >&2;}
8050 { (exit 1); exit 1; }; }; }
8053 ac_ext=c
8054 ac_cpp='$CPP $CPPFLAGS'
8055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8061 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8062 if test "${ac_cv_header_stdc+set}" = set; then
8063 echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065 cat >conftest.$ac_ext <<_ACEOF
8066 /* confdefs.h. */
8067 _ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 #include <stdlib.h>
8072 #include <stdarg.h>
8073 #include <string.h>
8074 #include <float.h>
8077 main ()
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8086 (eval $ac_compile) 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } &&
8093 { ac_try='test -z "$ac_c_werror_flag"
8094 || test ! -s conftest.err'
8095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096 (eval $ac_try) 2>&5
8097 ac_status=$?
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); }; } &&
8100 { ac_try='test -s conftest.$ac_objext'
8101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8102 (eval $ac_try) 2>&5
8103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; }; then
8106 ac_cv_header_stdc=yes
8107 else
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.$ac_ext >&5
8111 ac_cv_header_stdc=no
8113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8115 if test $ac_cv_header_stdc = yes; then
8116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 #include <string.h>
8125 _ACEOF
8126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8127 $EGREP "memchr" >/dev/null 2>&1; then
8129 else
8130 ac_cv_header_stdc=no
8132 rm -f conftest*
8136 if test $ac_cv_header_stdc = yes; then
8137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 #include <stdlib.h>
8146 _ACEOF
8147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8148 $EGREP "free" >/dev/null 2>&1; then
8150 else
8151 ac_cv_header_stdc=no
8153 rm -f conftest*
8157 if test $ac_cv_header_stdc = yes; then
8158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8159 if test "$cross_compiling" = yes; then
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 #include <ctype.h>
8169 #if ((' ' & 0x0FF) == 0x020)
8170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8172 #else
8173 # define ISLOWER(c) \
8174 (('a' <= (c) && (c) <= 'i') \
8175 || ('j' <= (c) && (c) <= 'r') \
8176 || ('s' <= (c) && (c) <= 'z'))
8177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8178 #endif
8180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8182 main ()
8184 int i;
8185 for (i = 0; i < 256; i++)
8186 if (XOR (islower (i), ISLOWER (i))
8187 || toupper (i) != TOUPPER (i))
8188 exit(2);
8189 exit (0);
8191 _ACEOF
8192 rm -f conftest$ac_exeext
8193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8194 (eval $ac_link) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8199 (eval $ac_try) 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; }; then
8204 else
8205 echo "$as_me: program exited with status $ac_status" >&5
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8209 ( exit $ac_status )
8210 ac_cv_header_stdc=no
8212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8218 if test $ac_cv_header_stdc = yes; then
8220 cat >>confdefs.h <<\_ACEOF
8221 #define STDC_HEADERS 1
8222 _ACEOF
8226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8237 inttypes.h stdint.h unistd.h
8239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8240 echo "$as_me:$LINENO: checking for $ac_header" >&5
8241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8244 else
8245 cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h. */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h. */
8251 $ac_includes_default
8253 #include <$ac_header>
8254 _ACEOF
8255 rm -f conftest.$ac_objext
8256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8257 (eval $ac_compile) 2>conftest.er1
8258 ac_status=$?
8259 grep -v '^ *+' conftest.er1 >conftest.err
8260 rm -f conftest.er1
8261 cat conftest.err >&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } &&
8264 { ac_try='test -z "$ac_c_werror_flag"
8265 || test ! -s conftest.err'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest.$ac_objext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8277 eval "$as_ac_Header=yes"
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 eval "$as_ac_Header=no"
8284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8291 _ACEOF
8295 done
8299 for ac_header in dlfcn.h
8301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302 echo "$as_me:$LINENO: checking for $ac_header" >&5
8303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8305 echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h. */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h. */
8313 $ac_includes_default
8315 #include <$ac_header>
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8319 (eval $ac_compile) 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag"
8327 || test ! -s conftest.err'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; }; then
8339 eval "$as_ac_Header=yes"
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 eval "$as_ac_Header=no"
8346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8351 cat >>confdefs.h <<_ACEOF
8352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8353 _ACEOF
8357 done
8361 ac_ext=cc
8362 ac_cpp='$CXXCPP $CPPFLAGS'
8363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8366 if test -n "$ac_tool_prefix"; then
8367 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8369 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8370 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8371 echo "$as_me:$LINENO: checking for $ac_word" >&5
8372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8373 if test "${ac_cv_prog_CXX+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 if test -n "$CXX"; then
8377 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8388 break 2
8390 done
8391 done
8395 CXX=$ac_cv_prog_CXX
8396 if test -n "$CXX"; then
8397 echo "$as_me:$LINENO: result: $CXX" >&5
8398 echo "${ECHO_T}$CXX" >&6
8399 else
8400 echo "$as_me:$LINENO: result: no" >&5
8401 echo "${ECHO_T}no" >&6
8404 test -n "$CXX" && break
8405 done
8407 if test -z "$CXX"; then
8408 ac_ct_CXX=$CXX
8409 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8411 # Extract the first word of "$ac_prog", so it can be a program name with args.
8412 set dummy $ac_prog; ac_word=$2
8413 echo "$as_me:$LINENO: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8415 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 if test -n "$ac_ct_CXX"; then
8419 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_ac_ct_CXX="$ac_prog"
8429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8430 break 2
8432 done
8433 done
8437 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8438 if test -n "$ac_ct_CXX"; then
8439 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8440 echo "${ECHO_T}$ac_ct_CXX" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443 echo "${ECHO_T}no" >&6
8446 test -n "$ac_ct_CXX" && break
8447 done
8448 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8450 CXX=$ac_ct_CXX
8454 # Provide some information about the compiler.
8455 echo "$as_me:$LINENO:" \
8456 "checking for C++ compiler version" >&5
8457 ac_compiler=`set X $ac_compile; echo $2`
8458 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8459 (eval $ac_compiler --version </dev/null >&5) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }
8463 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8464 (eval $ac_compiler -v </dev/null >&5) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }
8468 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8469 (eval $ac_compiler -V </dev/null >&5) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }
8474 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8475 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8476 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8478 else
8479 cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h. */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8487 main ()
8489 #ifndef __GNUC__
8490 choke me
8491 #endif
8494 return 0;
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499 (eval $ac_compile) 2>conftest.er1
8500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_cxx_werror_flag"
8507 || test ! -s conftest.err'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; } &&
8513 { ac_try='test -s conftest.$ac_objext'
8514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 (eval $ac_try) 2>&5
8516 ac_status=$?
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); }; }; then
8519 ac_compiler_gnu=yes
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8524 ac_compiler_gnu=no
8526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8527 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8530 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8531 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8532 GXX=`test $ac_compiler_gnu = yes && echo yes`
8533 ac_test_CXXFLAGS=${CXXFLAGS+set}
8534 ac_save_CXXFLAGS=$CXXFLAGS
8535 CXXFLAGS="-g"
8536 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8537 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8538 if test "${ac_cv_prog_cxx_g+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h. */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8549 main ()
8553 return 0;
8555 _ACEOF
8556 rm -f conftest.$ac_objext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8558 (eval $ac_compile) 2>conftest.er1
8559 ac_status=$?
8560 grep -v '^ *+' conftest.er1 >conftest.err
8561 rm -f conftest.er1
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try='test -z "$ac_cxx_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568 (eval $ac_try) 2>&5
8569 ac_status=$?
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try='test -s conftest.$ac_objext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574 (eval $ac_try) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8578 ac_cv_prog_cxx_g=yes
8579 else
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_cv_prog_cxx_g=no
8585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8587 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8588 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8589 if test "$ac_test_CXXFLAGS" = set; then
8590 CXXFLAGS=$ac_save_CXXFLAGS
8591 elif test $ac_cv_prog_cxx_g = yes; then
8592 if test "$GXX" = yes; then
8593 CXXFLAGS="-g -O2"
8594 else
8595 CXXFLAGS="-g"
8597 else
8598 if test "$GXX" = yes; then
8599 CXXFLAGS="-O2"
8600 else
8601 CXXFLAGS=
8604 for ac_declaration in \
8605 '' \
8606 'extern "C" void std::exit (int) throw (); using std::exit;' \
8607 'extern "C" void std::exit (int); using std::exit;' \
8608 'extern "C" void exit (int) throw ();' \
8609 'extern "C" void exit (int);' \
8610 'void exit (int);'
8612 cat >conftest.$ac_ext <<_ACEOF
8613 /* confdefs.h. */
8614 _ACEOF
8615 cat confdefs.h >>conftest.$ac_ext
8616 cat >>conftest.$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8618 $ac_declaration
8619 #include <stdlib.h>
8621 main ()
8623 exit (42);
8625 return 0;
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8630 (eval $ac_compile) 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } &&
8637 { ac_try='test -z "$ac_cxx_werror_flag"
8638 || test ! -s conftest.err'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; } &&
8644 { ac_try='test -s conftest.$ac_objext'
8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8646 (eval $ac_try) 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
8651 else
8652 echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8655 continue
8657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h. */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h. */
8664 $ac_declaration
8666 main ()
8668 exit (42);
8670 return 0;
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8675 (eval $ac_compile) 2>conftest.er1
8676 ac_status=$?
8677 grep -v '^ *+' conftest.er1 >conftest.err
8678 rm -f conftest.er1
8679 cat conftest.err >&5
8680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681 (exit $ac_status); } &&
8682 { ac_try='test -z "$ac_cxx_werror_flag"
8683 || test ! -s conftest.err'
8684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 (eval $ac_try) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); }; } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 break
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8702 done
8703 rm -f conftest*
8704 if test -n "$ac_declaration"; then
8705 echo '#ifdef __cplusplus' >>confdefs.h
8706 echo $ac_declaration >>confdefs.h
8707 echo '#endif' >>confdefs.h
8710 ac_ext=c
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8717 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8718 (test "X$CXX" != "Xg++"))) ; then
8719 ac_ext=cc
8720 ac_cpp='$CXXCPP $CPPFLAGS'
8721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8724 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8725 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8726 if test -z "$CXXCPP"; then
8727 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8728 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730 # Double quotes because CXXCPP needs to be expanded
8731 for CXXCPP in "$CXX -E" "/lib/cpp"
8733 ac_preproc_ok=false
8734 for ac_cxx_preproc_warn_flag in '' yes
8736 # Use a header file that comes with gcc, so configuring glibc
8737 # with a fresh cross-compiler works.
8738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8739 # <limits.h> exists even on freestanding compilers.
8740 # On the NeXT, cc -E runs the code through the compiler's parser,
8741 # not just through cpp. "Syntax error" is here to catch this case.
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h. */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8748 #ifdef __STDC__
8749 # include <limits.h>
8750 #else
8751 # include <assert.h>
8752 #endif
8753 Syntax error
8754 _ACEOF
8755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } >/dev/null; then
8763 if test -s conftest.err; then
8764 ac_cpp_err=$ac_cxx_preproc_warn_flag
8765 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8766 else
8767 ac_cpp_err=
8769 else
8770 ac_cpp_err=yes
8772 if test -z "$ac_cpp_err"; then
8774 else
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 # Broken: fails on valid input.
8779 continue
8781 rm -f conftest.err conftest.$ac_ext
8783 # OK, works on sane cases. Now check whether non-existent headers
8784 # can be detected and how.
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 #include <ac_nonexistent.h>
8792 _ACEOF
8793 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8794 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8795 ac_status=$?
8796 grep -v '^ *+' conftest.er1 >conftest.err
8797 rm -f conftest.er1
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } >/dev/null; then
8801 if test -s conftest.err; then
8802 ac_cpp_err=$ac_cxx_preproc_warn_flag
8803 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8804 else
8805 ac_cpp_err=
8807 else
8808 ac_cpp_err=yes
8810 if test -z "$ac_cpp_err"; then
8811 # Broken: success on invalid input.
8812 continue
8813 else
8814 echo "$as_me: failed program was:" >&5
8815 sed 's/^/| /' conftest.$ac_ext >&5
8817 # Passes both tests.
8818 ac_preproc_ok=:
8819 break
8821 rm -f conftest.err conftest.$ac_ext
8823 done
8824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8825 rm -f conftest.err conftest.$ac_ext
8826 if $ac_preproc_ok; then
8827 break
8830 done
8831 ac_cv_prog_CXXCPP=$CXXCPP
8834 CXXCPP=$ac_cv_prog_CXXCPP
8835 else
8836 ac_cv_prog_CXXCPP=$CXXCPP
8838 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8839 echo "${ECHO_T}$CXXCPP" >&6
8840 ac_preproc_ok=false
8841 for ac_cxx_preproc_warn_flag in '' yes
8843 # Use a header file that comes with gcc, so configuring glibc
8844 # with a fresh cross-compiler works.
8845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8846 # <limits.h> exists even on freestanding compilers.
8847 # On the NeXT, cc -E runs the code through the compiler's parser,
8848 # not just through cpp. "Syntax error" is here to catch this case.
8849 cat >conftest.$ac_ext <<_ACEOF
8850 /* confdefs.h. */
8851 _ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #ifdef __STDC__
8856 # include <limits.h>
8857 #else
8858 # include <assert.h>
8859 #endif
8860 Syntax error
8861 _ACEOF
8862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8864 ac_status=$?
8865 grep -v '^ *+' conftest.er1 >conftest.err
8866 rm -f conftest.er1
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } >/dev/null; then
8870 if test -s conftest.err; then
8871 ac_cpp_err=$ac_cxx_preproc_warn_flag
8872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8873 else
8874 ac_cpp_err=
8876 else
8877 ac_cpp_err=yes
8879 if test -z "$ac_cpp_err"; then
8881 else
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8885 # Broken: fails on valid input.
8886 continue
8888 rm -f conftest.err conftest.$ac_ext
8890 # OK, works on sane cases. Now check whether non-existent headers
8891 # can be detected and how.
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <ac_nonexistent.h>
8899 _ACEOF
8900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } >/dev/null; then
8908 if test -s conftest.err; then
8909 ac_cpp_err=$ac_cxx_preproc_warn_flag
8910 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8911 else
8912 ac_cpp_err=
8914 else
8915 ac_cpp_err=yes
8917 if test -z "$ac_cpp_err"; then
8918 # Broken: success on invalid input.
8919 continue
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 # Passes both tests.
8925 ac_preproc_ok=:
8926 break
8928 rm -f conftest.err conftest.$ac_ext
8930 done
8931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932 rm -f conftest.err conftest.$ac_ext
8933 if $ac_preproc_ok; then
8935 else
8936 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8937 echo "$as_me: error: in \`$ac_pwd':" >&2;}
8938 _lt_caught_CXX_error=yes; }
8941 ac_ext=c
8942 ac_cpp='$CPP $CPPFLAGS'
8943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8947 else
8948 _lt_caught_CXX_error=yes
8955 # Set options
8960 enable_win32_dll=no
8963 # Check whether --enable-shared or --disable-shared was given.
8964 if test "${enable_shared+set}" = set; then
8965 enableval="$enable_shared"
8966 p=${PACKAGE-default}
8967 case $enableval in
8968 yes) enable_shared=yes ;;
8969 no) enable_shared=no ;;
8971 enable_shared=no
8972 # Look at the argument we got. We use all the common list separators.
8973 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8974 for pkg in $enableval; do
8975 IFS="$lt_save_ifs"
8976 if test "X$pkg" = "X$p"; then
8977 enable_shared=yes
8979 done
8980 IFS="$lt_save_ifs"
8982 esac
8983 else
8984 enable_shared=yes
8994 # Check whether --enable-static or --disable-static was given.
8995 if test "${enable_static+set}" = set; then
8996 enableval="$enable_static"
8997 p=${PACKAGE-default}
8998 case $enableval in
8999 yes) enable_static=yes ;;
9000 no) enable_static=no ;;
9002 enable_static=no
9003 # Look at the argument we got. We use all the common list separators.
9004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9005 for pkg in $enableval; do
9006 IFS="$lt_save_ifs"
9007 if test "X$pkg" = "X$p"; then
9008 enable_static=yes
9010 done
9011 IFS="$lt_save_ifs"
9013 esac
9014 else
9015 enable_static=yes
9026 # Check whether --with-pic or --without-pic was given.
9027 if test "${with_pic+set}" = set; then
9028 withval="$with_pic"
9029 pic_mode="$withval"
9030 else
9031 pic_mode=default
9034 test -z "$pic_mode" && pic_mode=default
9042 # Check whether --enable-fast-install or --disable-fast-install was given.
9043 if test "${enable_fast_install+set}" = set; then
9044 enableval="$enable_fast_install"
9045 p=${PACKAGE-default}
9046 case $enableval in
9047 yes) enable_fast_install=yes ;;
9048 no) enable_fast_install=no ;;
9050 enable_fast_install=no
9051 # Look at the argument we got. We use all the common list separators.
9052 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9053 for pkg in $enableval; do
9054 IFS="$lt_save_ifs"
9055 if test "X$pkg" = "X$p"; then
9056 enable_fast_install=yes
9058 done
9059 IFS="$lt_save_ifs"
9061 esac
9062 else
9063 enable_fast_install=yes
9075 # This can be used to rebuild libtool when needed
9076 LIBTOOL_DEPS="$ltmain"
9078 # Always use our own libtool.
9079 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9105 test -z "$LN_S" && LN_S="ln -s"
9120 if test -n "${ZSH_VERSION+set}" ; then
9121 setopt NO_GLOB_SUBST
9124 echo "$as_me:$LINENO: checking for objdir" >&5
9125 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
9126 if test "${lt_cv_objdir+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 rm -f .libs 2>/dev/null
9130 mkdir .libs 2>/dev/null
9131 if test -d .libs; then
9132 lt_cv_objdir=.libs
9133 else
9134 # MS-DOS does not allow filenames that begin with a dot.
9135 lt_cv_objdir=_libs
9137 rmdir .libs 2>/dev/null
9139 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9140 echo "${ECHO_T}$lt_cv_objdir" >&6
9141 objdir=$lt_cv_objdir
9147 cat >>confdefs.h <<_ACEOF
9148 #define LT_OBJDIR "$lt_cv_objdir/"
9149 _ACEOF
9167 case $host_os in
9168 aix3*)
9169 # AIX sometimes has problems with the GCC collect2 program. For some
9170 # reason, if we set the COLLECT_NAMES environment variable, the problems
9171 # vanish in a puff of smoke.
9172 if test "X${COLLECT_NAMES+set}" != Xset; then
9173 COLLECT_NAMES=
9174 export COLLECT_NAMES
9177 esac
9179 # Sed substitution that helps us do robust quoting. It backslashifies
9180 # metacharacters that are still active within double-quoted strings.
9181 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9183 # Same as above, but do not quote variable references.
9184 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9186 # Sed substitution to delay expansion of an escaped shell variable in a
9187 # double_quote_subst'ed string.
9188 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9190 # Sed substitution to delay expansion of an escaped single quote.
9191 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9193 # Sed substitution to avoid accidental globbing in evaled expressions
9194 no_glob_subst='s/\*/\\\*/g'
9196 # Global variables:
9197 ofile=libtool
9198 can_build_shared=yes
9200 # All known linkers require a `.a' archive for static linking (except MSVC,
9201 # which needs '.lib').
9202 libext=a
9204 with_gnu_ld="$lt_cv_prog_gnu_ld"
9206 old_CC="$CC"
9207 old_CFLAGS="$CFLAGS"
9209 # Set sane defaults for various variables
9210 test -z "$CC" && CC=cc
9211 test -z "$LTCC" && LTCC=$CC
9212 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9213 test -z "$LD" && LD=ld
9214 test -z "$ac_objext" && ac_objext=o
9216 for cc_temp in $compiler""; do
9217 case $cc_temp in
9218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9220 \-*) ;;
9221 *) break;;
9222 esac
9223 done
9224 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9227 # Only perform the check for file, if the check method requires it
9228 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9229 case $deplibs_check_method in
9230 file_magic*)
9231 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9232 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9233 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9234 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 else
9237 case $MAGIC_CMD in
9238 [\\/*] | ?:[\\/]*)
9239 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9242 lt_save_MAGIC_CMD="$MAGIC_CMD"
9243 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9244 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9245 for ac_dir in $ac_dummy; do
9246 IFS="$lt_save_ifs"
9247 test -z "$ac_dir" && ac_dir=.
9248 if test -f $ac_dir/${ac_tool_prefix}file; then
9249 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9250 if test -n "$file_magic_test_file"; then
9251 case $deplibs_check_method in
9252 "file_magic "*)
9253 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9255 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9256 $EGREP "$file_magic_regex" > /dev/null; then
9258 else
9259 cat <<_LT_EOF 1>&2
9261 *** Warning: the command libtool uses to detect shared libraries,
9262 *** $file_magic_cmd, produces output that libtool cannot recognize.
9263 *** The result is that libtool may fail to recognize shared libraries
9264 *** as such. This will affect the creation of libtool libraries that
9265 *** depend on shared libraries, but programs linked with such libtool
9266 *** libraries will work regardless of this problem. Nevertheless, you
9267 *** may want to report the problem to your system manager and/or to
9268 *** bug-libtool@gnu.org
9270 _LT_EOF
9271 fi ;;
9272 esac
9274 break
9276 done
9277 IFS="$lt_save_ifs"
9278 MAGIC_CMD="$lt_save_MAGIC_CMD"
9280 esac
9283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9284 if test -n "$MAGIC_CMD"; then
9285 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9286 echo "${ECHO_T}$MAGIC_CMD" >&6
9287 else
9288 echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9296 if test -z "$lt_cv_path_MAGIC_CMD"; then
9297 if test -n "$ac_tool_prefix"; then
9298 echo "$as_me:$LINENO: checking for file" >&5
9299 echo $ECHO_N "checking for file... $ECHO_C" >&6
9300 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303 case $MAGIC_CMD in
9304 [\\/*] | ?:[\\/]*)
9305 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9308 lt_save_MAGIC_CMD="$MAGIC_CMD"
9309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9310 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9311 for ac_dir in $ac_dummy; do
9312 IFS="$lt_save_ifs"
9313 test -z "$ac_dir" && ac_dir=.
9314 if test -f $ac_dir/file; then
9315 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9316 if test -n "$file_magic_test_file"; then
9317 case $deplibs_check_method in
9318 "file_magic "*)
9319 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9322 $EGREP "$file_magic_regex" > /dev/null; then
9324 else
9325 cat <<_LT_EOF 1>&2
9327 *** Warning: the command libtool uses to detect shared libraries,
9328 *** $file_magic_cmd, produces output that libtool cannot recognize.
9329 *** The result is that libtool may fail to recognize shared libraries
9330 *** as such. This will affect the creation of libtool libraries that
9331 *** depend on shared libraries, but programs linked with such libtool
9332 *** libraries will work regardless of this problem. Nevertheless, you
9333 *** may want to report the problem to your system manager and/or to
9334 *** bug-libtool@gnu.org
9336 _LT_EOF
9337 fi ;;
9338 esac
9340 break
9342 done
9343 IFS="$lt_save_ifs"
9344 MAGIC_CMD="$lt_save_MAGIC_CMD"
9346 esac
9349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9350 if test -n "$MAGIC_CMD"; then
9351 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9352 echo "${ECHO_T}$MAGIC_CMD" >&6
9353 else
9354 echo "$as_me:$LINENO: result: no" >&5
9355 echo "${ECHO_T}no" >&6
9359 else
9360 MAGIC_CMD=:
9366 esac
9368 # Use C for the default configuration in the libtool script
9370 lt_save_CC="$CC"
9371 ac_ext=c
9372 ac_cpp='$CPP $CPPFLAGS'
9373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9378 # Source file extension for C test sources.
9379 ac_ext=c
9381 # Object file extension for compiled C test sources.
9382 objext=o
9383 objext=$objext
9385 # Code to be used in simple compile tests
9386 lt_simple_compile_test_code="int some_variable = 0;"
9388 # Code to be used in simple link tests
9389 lt_simple_link_test_code='int main(){return(0);}'
9397 # If no C compiler was specified, use CC.
9398 LTCC=${LTCC-"$CC"}
9400 # If no C compiler flags were specified, use CFLAGS.
9401 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9403 # Allow CC to be a program name with arguments.
9404 compiler=$CC
9406 # Save the default compiler, since it gets overwritten when the other
9407 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9408 compiler_DEFAULT=$CC
9410 # save warnings/boilerplate of simple test code
9411 ac_outfile=conftest.$ac_objext
9412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9414 _lt_compiler_boilerplate=`cat conftest.err`
9415 $RM conftest*
9417 ac_outfile=conftest.$ac_objext
9418 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9420 _lt_linker_boilerplate=`cat conftest.err`
9421 $RM -r conftest*
9424 ## CAVEAT EMPTOR:
9425 ## There is no encapsulation within the following macros, do not change
9426 ## the running order or otherwise move them around unless you know exactly
9427 ## what you are doing...
9428 if test -n "$compiler"; then
9430 lt_prog_compiler_no_builtin_flag=
9432 if test "$GCC" = yes; then
9433 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9435 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9436 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9437 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 lt_cv_prog_compiler_rtti_exceptions=no
9441 ac_outfile=conftest.$ac_objext
9442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443 lt_compiler_flag="-fno-rtti -fno-exceptions"
9444 # Insert the option either (1) after the last *FLAGS variable, or
9445 # (2) before a word containing "conftest.", or (3) at the end.
9446 # Note that $ac_compile itself does not contain backslashes and begins
9447 # with a dollar sign (not a hyphen), so the echo should work correctly.
9448 # The option is referenced via a variable to avoid confusing sed.
9449 lt_compile=`echo "$ac_compile" | $SED \
9450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452 -e 's:$: $lt_compiler_flag:'`
9453 (eval echo "\"\$as_me:9453: $lt_compile\"" >&5)
9454 (eval "$lt_compile" 2>conftest.err)
9455 ac_status=$?
9456 cat conftest.err >&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 if (exit $ac_status) && test -s "$ac_outfile"; then
9459 # The compiler can only warn and ignore the option if not recognized
9460 # So say no if there are warnings other than the usual output.
9461 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9462 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464 lt_cv_prog_compiler_rtti_exceptions=yes
9467 $RM conftest*
9470 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9471 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9473 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9474 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9475 else
9486 lt_prog_compiler_wl=
9487 lt_prog_compiler_pic=
9488 lt_prog_compiler_static=
9490 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9491 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9493 if test "$GCC" = yes; then
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_static='-static'
9497 case $host_os in
9498 aix*)
9499 # All AIX code is PIC.
9500 if test "$host_cpu" = ia64; then
9501 # AIX 5 now supports IA64 processor
9502 lt_prog_compiler_static='-Bstatic'
9506 amigaos*)
9507 case $host_cpu in
9508 powerpc)
9509 # see comment about AmigaOS4 .so support
9510 lt_prog_compiler_pic='-fPIC'
9512 m68k)
9513 # FIXME: we need at least 68020 code to build shared libraries, but
9514 # adding the `-m68020' flag to GCC prevents building anything better,
9515 # like `-m68040'.
9516 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9518 esac
9521 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9522 # PIC is the default for these OSes.
9525 mingw* | cygwin* | pw32* | os2* | cegcc*)
9526 # This hack is so that the source file can tell whether it is being
9527 # built for inclusion in a dll (and should export symbols for example).
9528 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9529 # (--disable-auto-import) libraries
9530 lt_prog_compiler_pic='-DDLL_EXPORT'
9533 darwin* | rhapsody*)
9534 # PIC is the default on this platform
9535 # Common symbols not allowed in MH_DYLIB files
9536 lt_prog_compiler_pic='-fno-common'
9539 hpux*)
9540 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9541 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9542 # sets the default TLS model and affects inlining.
9543 case $host_cpu in
9544 hppa*64*)
9545 # +Z the default
9548 lt_prog_compiler_pic='-fPIC'
9550 esac
9553 interix[3-9]*)
9554 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9555 # Instead, we relocate shared libraries at runtime.
9558 msdosdjgpp*)
9559 # Just because we use GCC doesn't mean we suddenly get shared libraries
9560 # on systems that don't support them.
9561 lt_prog_compiler_can_build_shared=no
9562 enable_shared=no
9565 *nto* | *qnx*)
9566 # QNX uses GNU C++, but need to define -shared option too, otherwise
9567 # it will coredump.
9568 lt_prog_compiler_pic='-fPIC -shared'
9571 sysv4*MP*)
9572 if test -d /usr/nec; then
9573 lt_prog_compiler_pic=-Kconform_pic
9578 lt_prog_compiler_pic='-fPIC'
9580 esac
9581 else
9582 # PORTME Check for flag to pass linker flags through the system compiler.
9583 case $host_os in
9584 aix*)
9585 lt_prog_compiler_wl='-Wl,'
9586 if test "$host_cpu" = ia64; then
9587 # AIX 5 now supports IA64 processor
9588 lt_prog_compiler_static='-Bstatic'
9589 else
9590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9594 mingw* | cygwin* | pw32* | os2* | cegcc*)
9595 # This hack is so that the source file can tell whether it is being
9596 # built for inclusion in a dll (and should export symbols for example).
9597 lt_prog_compiler_pic='-DDLL_EXPORT'
9600 hpux9* | hpux10* | hpux11*)
9601 lt_prog_compiler_wl='-Wl,'
9602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9603 # not for PA HP-UX.
9604 case $host_cpu in
9605 hppa*64*|ia64*)
9606 # +Z the default
9609 lt_prog_compiler_pic='+Z'
9611 esac
9612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9613 lt_prog_compiler_static='${wl}-a ${wl}archive'
9616 irix5* | irix6* | nonstopux*)
9617 lt_prog_compiler_wl='-Wl,'
9618 # PIC (with -KPIC) is the default.
9619 lt_prog_compiler_static='-non_shared'
9622 linux* | k*bsd*-gnu)
9623 case $cc_basename in
9624 # old Intel for x86_64 which still supported -KPIC.
9625 ecc*)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-static'
9630 # icc used to be incompatible with GCC.
9631 # ICC 10 doesn't accept -KPIC any more.
9632 icc* | ifort*)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-fPIC'
9635 lt_prog_compiler_static='-static'
9637 # Lahey Fortran 8.1.
9638 lf95*)
9639 lt_prog_compiler_wl='-Wl,'
9640 lt_prog_compiler_pic='--shared'
9641 lt_prog_compiler_static='--static'
9643 pgcc* | pgf77* | pgf90* | pgf95*)
9644 # Portland Group compilers (*not* the Pentium gcc compiler,
9645 # which looks to be a dead project)
9646 lt_prog_compiler_wl='-Wl,'
9647 lt_prog_compiler_pic='-fpic'
9648 lt_prog_compiler_static='-Bstatic'
9650 ccc*)
9651 lt_prog_compiler_wl='-Wl,'
9652 # All Alpha code is PIC.
9653 lt_prog_compiler_static='-non_shared'
9655 xl*)
9656 # IBM XL C 8.0/Fortran 10.1 on PPC
9657 lt_prog_compiler_wl='-Wl,'
9658 lt_prog_compiler_pic='-qpic'
9659 lt_prog_compiler_static='-qstaticlink'
9662 case `$CC -V 2>&1 | sed 5q` in
9663 *Sun\ C*)
9664 # Sun C 5.9
9665 lt_prog_compiler_pic='-KPIC'
9666 lt_prog_compiler_static='-Bstatic'
9667 lt_prog_compiler_wl='-Wl,'
9669 *Sun\ F*)
9670 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9671 lt_prog_compiler_pic='-KPIC'
9672 lt_prog_compiler_static='-Bstatic'
9673 lt_prog_compiler_wl=''
9675 esac
9677 esac
9680 newsos6)
9681 lt_prog_compiler_pic='-KPIC'
9682 lt_prog_compiler_static='-Bstatic'
9685 *nto* | *qnx*)
9686 # QNX uses GNU C++, but need to define -shared option too, otherwise
9687 # it will coredump.
9688 lt_prog_compiler_pic='-fPIC -shared'
9691 osf3* | osf4* | osf5*)
9692 lt_prog_compiler_wl='-Wl,'
9693 # All OSF/1 code is PIC.
9694 lt_prog_compiler_static='-non_shared'
9697 rdos*)
9698 lt_prog_compiler_static='-non_shared'
9701 solaris*)
9702 lt_prog_compiler_pic='-KPIC'
9703 lt_prog_compiler_static='-Bstatic'
9704 case $cc_basename in
9705 f77* | f90* | f95*)
9706 lt_prog_compiler_wl='-Qoption ld ';;
9708 lt_prog_compiler_wl='-Wl,';;
9709 esac
9712 sunos4*)
9713 lt_prog_compiler_wl='-Qoption ld '
9714 lt_prog_compiler_pic='-PIC'
9715 lt_prog_compiler_static='-Bstatic'
9718 sysv4 | sysv4.2uw2* | sysv4.3*)
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9724 sysv4*MP*)
9725 if test -d /usr/nec ;then
9726 lt_prog_compiler_pic='-Kconform_pic'
9727 lt_prog_compiler_static='-Bstatic'
9731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9732 lt_prog_compiler_wl='-Wl,'
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9737 unicos*)
9738 lt_prog_compiler_wl='-Wl,'
9739 lt_prog_compiler_can_build_shared=no
9742 uts4*)
9743 lt_prog_compiler_pic='-pic'
9744 lt_prog_compiler_static='-Bstatic'
9748 lt_prog_compiler_can_build_shared=no
9750 esac
9753 case $host_os in
9754 # For platforms which do not support PIC, -DPIC is meaningless:
9755 *djgpp*)
9756 lt_prog_compiler_pic=
9759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9761 esac
9762 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9763 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9771 # Check to make sure the PIC flag actually works.
9773 if test -n "$lt_prog_compiler_pic"; then
9774 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9775 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 lt_cv_prog_compiler_pic_works=no
9780 ac_outfile=conftest.$ac_objext
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9783 # Insert the option either (1) after the last *FLAGS variable, or
9784 # (2) before a word containing "conftest.", or (3) at the end.
9785 # Note that $ac_compile itself does not contain backslashes and begins
9786 # with a dollar sign (not a hyphen), so the echo should work correctly.
9787 # The option is referenced via a variable to avoid confusing sed.
9788 lt_compile=`echo "$ac_compile" | $SED \
9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791 -e 's:$: $lt_compiler_flag:'`
9792 (eval echo "\"\$as_me:9792: $lt_compile\"" >&5)
9793 (eval "$lt_compile" 2>conftest.err)
9794 ac_status=$?
9795 cat conftest.err >&5
9796 echo "$as_me:9796: \$? = $ac_status" >&5
9797 if (exit $ac_status) && test -s "$ac_outfile"; then
9798 # The compiler can only warn and ignore the option if not recognized
9799 # So say no if there are warnings other than the usual output.
9800 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9803 lt_cv_prog_compiler_pic_works=yes
9806 $RM conftest*
9809 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9810 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
9812 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9813 case $lt_prog_compiler_pic in
9814 "" | " "*) ;;
9815 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9816 esac
9817 else
9818 lt_prog_compiler_pic=
9819 lt_prog_compiler_can_build_shared=no
9830 # Check to make sure the static flag actually works.
9832 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9833 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9834 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9835 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838 lt_cv_prog_compiler_static_works=no
9839 save_LDFLAGS="$LDFLAGS"
9840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9841 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9843 # The linker can only warn and ignore the option if not recognized
9844 # So say no if there are warnings
9845 if test -s conftest.err; then
9846 # Append any errors to the config.log.
9847 cat conftest.err 1>&5
9848 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9850 if diff conftest.exp conftest.er2 >/dev/null; then
9851 lt_cv_prog_compiler_static_works=yes
9853 else
9854 lt_cv_prog_compiler_static_works=yes
9857 $RM -r conftest*
9858 LDFLAGS="$save_LDFLAGS"
9861 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9862 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
9864 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9866 else
9867 lt_prog_compiler_static=
9876 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 else
9881 lt_cv_prog_compiler_c_o=no
9882 $RM -r conftest 2>/dev/null
9883 mkdir conftest
9884 cd conftest
9885 mkdir out
9886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9888 lt_compiler_flag="-o out/conftest2.$ac_objext"
9889 # Insert the option either (1) after the last *FLAGS variable, or
9890 # (2) before a word containing "conftest.", or (3) at the end.
9891 # Note that $ac_compile itself does not contain backslashes and begins
9892 # with a dollar sign (not a hyphen), so the echo should work correctly.
9893 lt_compile=`echo "$ac_compile" | $SED \
9894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9896 -e 's:$: $lt_compiler_flag:'`
9897 (eval echo "\"\$as_me:9897: $lt_compile\"" >&5)
9898 (eval "$lt_compile" 2>out/conftest.err)
9899 ac_status=$?
9900 cat out/conftest.err >&5
9901 echo "$as_me:9901: \$? = $ac_status" >&5
9902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9903 then
9904 # The compiler can only warn and ignore the option if not recognized
9905 # So say no if there are warnings
9906 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9909 lt_cv_prog_compiler_c_o=yes
9912 chmod u+w . 2>&5
9913 $RM conftest*
9914 # SGI C++ compiler will create directory out/ii_files/ for
9915 # template instantiation
9916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9917 $RM out/* && rmdir out
9918 cd ..
9919 $RM -r conftest
9920 $RM conftest*
9923 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9924 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9931 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9932 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936 lt_cv_prog_compiler_c_o=no
9937 $RM -r conftest 2>/dev/null
9938 mkdir conftest
9939 cd conftest
9940 mkdir out
9941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9943 lt_compiler_flag="-o out/conftest2.$ac_objext"
9944 # Insert the option either (1) after the last *FLAGS variable, or
9945 # (2) before a word containing "conftest.", or (3) at the end.
9946 # Note that $ac_compile itself does not contain backslashes and begins
9947 # with a dollar sign (not a hyphen), so the echo should work correctly.
9948 lt_compile=`echo "$ac_compile" | $SED \
9949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951 -e 's:$: $lt_compiler_flag:'`
9952 (eval echo "\"\$as_me:9952: $lt_compile\"" >&5)
9953 (eval "$lt_compile" 2>out/conftest.err)
9954 ac_status=$?
9955 cat out/conftest.err >&5
9956 echo "$as_me:9956: \$? = $ac_status" >&5
9957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9958 then
9959 # The compiler can only warn and ignore the option if not recognized
9960 # So say no if there are warnings
9961 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9964 lt_cv_prog_compiler_c_o=yes
9967 chmod u+w . 2>&5
9968 $RM conftest*
9969 # SGI C++ compiler will create directory out/ii_files/ for
9970 # template instantiation
9971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9972 $RM out/* && rmdir out
9973 cd ..
9974 $RM -r conftest
9975 $RM conftest*
9978 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9979 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9984 hard_links="nottested"
9985 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9986 # do not overwrite the value of need_locks provided by the user
9987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9988 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9989 hard_links=yes
9990 $RM conftest*
9991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9992 touch conftest.a
9993 ln conftest.a conftest.b 2>&5 || hard_links=no
9994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9995 echo "$as_me:$LINENO: result: $hard_links" >&5
9996 echo "${ECHO_T}$hard_links" >&6
9997 if test "$hard_links" = no; then
9998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9999 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10000 need_locks=warn
10002 else
10003 need_locks=no
10011 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10012 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10014 runpath_var=
10015 allow_undefined_flag=
10016 always_export_symbols=no
10017 archive_cmds=
10018 archive_expsym_cmds=
10019 compiler_needs_object=no
10020 enable_shared_with_static_runtimes=no
10021 export_dynamic_flag_spec=
10022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10023 hardcode_automatic=no
10024 hardcode_direct=no
10025 hardcode_direct_absolute=no
10026 hardcode_libdir_flag_spec=
10027 hardcode_libdir_flag_spec_ld=
10028 hardcode_libdir_separator=
10029 hardcode_minus_L=no
10030 hardcode_shlibpath_var=unsupported
10031 inherit_rpath=no
10032 link_all_deplibs=unknown
10033 module_cmds=
10034 module_expsym_cmds=
10035 old_archive_from_new_cmds=
10036 old_archive_from_expsyms_cmds=
10037 thread_safe_flag_spec=
10038 whole_archive_flag_spec=
10039 # include_expsyms should be a list of space-separated symbols to be *always*
10040 # included in the symbol list
10041 include_expsyms=
10042 # exclude_expsyms can be an extended regexp of symbols to exclude
10043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10045 # as well as any symbol that contains `d'.
10046 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10048 # platforms (ab)use it in PIC code, but their linkers get confused if
10049 # the symbol is explicitly referenced. Since portable code cannot
10050 # rely on this symbol name, it's probably fine to never include it in
10051 # preloaded symbol tables.
10052 # Exclude shared library initialization/finalization symbols.
10053 extract_expsyms_cmds=
10055 case $host_os in
10056 cygwin* | mingw* | pw32* | cegcc*)
10057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10058 # When not using gcc, we currently assume that we are using
10059 # Microsoft Visual C++.
10060 if test "$GCC" != yes; then
10061 with_gnu_ld=no
10064 interix*)
10065 # we just hope/assume this is gcc and not c89 (= MSVC++)
10066 with_gnu_ld=yes
10068 openbsd*)
10069 with_gnu_ld=no
10071 esac
10073 ld_shlibs=yes
10074 if test "$with_gnu_ld" = yes; then
10075 # If archive_cmds runs LD, not CC, wlarc should be empty
10076 wlarc='${wl}'
10078 # Set some defaults for GNU ld with shared library support. These
10079 # are reset later if shared libraries are not supported. Putting them
10080 # here allows them to be overridden if necessary.
10081 runpath_var=LD_RUN_PATH
10082 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10083 export_dynamic_flag_spec='${wl}--export-dynamic'
10084 # ancient GNU ld didn't support --whole-archive et. al.
10085 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10086 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10087 else
10088 whole_archive_flag_spec=
10090 supports_anon_versioning=no
10091 case `$LD -v 2>&1` in
10092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10095 *\ 2.11.*) ;; # other 2.11 versions
10096 *) supports_anon_versioning=yes ;;
10097 esac
10099 # See if GNU ld supports shared libraries.
10100 case $host_os in
10101 aix[3-9]*)
10102 # On AIX/PPC, the GNU linker is very broken
10103 if test "$host_cpu" != ia64; then
10104 ld_shlibs=no
10105 cat <<_LT_EOF 1>&2
10107 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10108 *** to be unable to reliably create shared libraries on AIX.
10109 *** Therefore, libtool is disabling shared libraries support. If you
10110 *** really care for shared libraries, you may want to modify your PATH
10111 *** so that a non-GNU linker is found, and then restart.
10113 _LT_EOF
10117 amigaos*)
10118 case $host_cpu in
10119 powerpc)
10120 # see comment about AmigaOS4 .so support
10121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10122 archive_expsym_cmds=''
10124 m68k)
10125 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)'
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_minus_L=yes
10129 esac
10132 beos*)
10133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10134 allow_undefined_flag=unsupported
10135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10136 # support --undefined. This deserves some investigation. FIXME
10137 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 else
10139 ld_shlibs=no
10143 cygwin* | mingw* | pw32* | cegcc*)
10144 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10145 # as there is no search path for DLLs.
10146 hardcode_libdir_flag_spec='-L$libdir'
10147 allow_undefined_flag=unsupported
10148 always_export_symbols=no
10149 enable_shared_with_static_runtimes=yes
10150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10152 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10153 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10154 # If the export-symbols file already is a .def file (1st line
10155 # is EXPORTS), use it as is; otherwise, prepend...
10156 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10157 cp $export_symbols $output_objdir/$soname.def;
10158 else
10159 echo EXPORTS > $output_objdir/$soname.def;
10160 cat $export_symbols >> $output_objdir/$soname.def;
10162 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10163 else
10164 ld_shlibs=no
10168 interix[3-9]*)
10169 hardcode_direct=no
10170 hardcode_shlibpath_var=no
10171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10172 export_dynamic_flag_spec='${wl}-E'
10173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10174 # Instead, shared libraries are loaded at an image base (0x10000000 by
10175 # default) and relocated if they conflict, which is a slow very memory
10176 # consuming and fragmenting process. To avoid this, we pick a random,
10177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10179 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10180 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'
10183 gnu* | linux* | tpf* | k*bsd*-gnu)
10184 tmp_diet=no
10185 if test "$host_os" = linux-dietlibc; then
10186 case $cc_basename in
10187 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10188 esac
10190 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10191 && test "$tmp_diet" = no
10192 then
10193 tmp_addflag=
10194 tmp_sharedflag='-shared'
10195 case $cc_basename,$host_cpu in
10196 pgcc*) # Portland Group C compiler
10197 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'
10198 tmp_addflag=' $pic_flag'
10200 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10201 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'
10202 tmp_addflag=' $pic_flag -Mnomain' ;;
10203 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10204 tmp_addflag=' -i_dynamic' ;;
10205 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10206 tmp_addflag=' -i_dynamic -nofor_main' ;;
10207 ifc* | ifort*) # Intel Fortran compiler
10208 tmp_addflag=' -nofor_main' ;;
10209 lf95*) # Lahey Fortran 8.1
10210 whole_archive_flag_spec=
10211 tmp_sharedflag='--shared' ;;
10212 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10213 tmp_sharedflag='-qmkshrobj'
10214 tmp_addflag= ;;
10215 esac
10216 case `$CC -V 2>&1 | sed 5q` in
10217 *Sun\ C*) # Sun C 5.9
10218 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'
10219 compiler_needs_object=yes
10220 tmp_sharedflag='-G' ;;
10221 *Sun\ F*) # Sun Fortran 8.3
10222 tmp_sharedflag='-G' ;;
10223 esac
10224 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10226 if test "x$supports_anon_versioning" = xyes; then
10227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10229 echo "local: *; };" >> $output_objdir/$libname.ver~
10230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10233 case $cc_basename in
10234 xlf*)
10235 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10236 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10237 hardcode_libdir_flag_spec=
10238 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10239 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10240 if test "x$supports_anon_versioning" = xyes; then
10241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10243 echo "local: *; };" >> $output_objdir/$libname.ver~
10244 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10247 esac
10248 else
10249 ld_shlibs=no
10253 netbsd*)
10254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10256 wlarc=
10257 else
10258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10263 solaris*)
10264 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10265 ld_shlibs=no
10266 cat <<_LT_EOF 1>&2
10268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10269 *** create shared libraries on Solaris systems. Therefore, libtool
10270 *** is disabling shared libraries support. We urge you to upgrade GNU
10271 *** binutils to release 2.9.1 or newer. Another option is to modify
10272 *** your PATH or compiler configuration so that the native linker is
10273 *** used, and then restart.
10275 _LT_EOF
10276 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10279 else
10280 ld_shlibs=no
10284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10285 case `$LD -v 2>&1` in
10286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10287 ld_shlibs=no
10288 cat <<_LT_EOF 1>&2
10290 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10291 *** reliably create shared libraries on SCO systems. Therefore, libtool
10292 *** is disabling shared libraries support. We urge you to upgrade GNU
10293 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10294 *** your PATH or compiler configuration so that the native linker is
10295 *** used, and then restart.
10297 _LT_EOF
10300 # For security reasons, it is highly recommended that you always
10301 # use absolute paths for naming shared libraries, and exclude the
10302 # DT_RUNPATH tag from executables and libraries. But doing so
10303 # requires that you compile everything twice, which is a pain.
10304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10308 else
10309 ld_shlibs=no
10312 esac
10315 sunos4*)
10316 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10317 wlarc=
10318 hardcode_direct=yes
10319 hardcode_shlibpath_var=no
10323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10326 else
10327 ld_shlibs=no
10330 esac
10332 if test "$ld_shlibs" = no; then
10333 runpath_var=
10334 hardcode_libdir_flag_spec=
10335 export_dynamic_flag_spec=
10336 whole_archive_flag_spec=
10338 else
10339 # PORTME fill in a description of your system's linker (not GNU ld)
10340 case $host_os in
10341 aix3*)
10342 allow_undefined_flag=unsupported
10343 always_export_symbols=yes
10344 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'
10345 # Note: this linker hardcodes the directories in LIBPATH if there
10346 # are no directories specified by -L.
10347 hardcode_minus_L=yes
10348 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10349 # Neither direct hardcoding nor static linking is supported with a
10350 # broken collect2.
10351 hardcode_direct=unsupported
10355 aix[4-9]*)
10356 if test "$host_cpu" = ia64; then
10357 # On IA64, the linker does run time linking by default, so we don't
10358 # have to do anything special.
10359 aix_use_runtimelinking=no
10360 exp_sym_flag='-Bexport'
10361 no_entry_flag=""
10362 else
10363 # If we're using GNU nm, then we don't want the "-C" option.
10364 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10365 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10366 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'
10367 else
10368 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'
10370 aix_use_runtimelinking=no
10372 # Test if we are trying to use run time linking or normal
10373 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10374 # need to do runtime linking.
10375 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10376 for ld_flag in $LDFLAGS; do
10377 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10378 aix_use_runtimelinking=yes
10379 break
10381 done
10383 esac
10385 exp_sym_flag='-bexport'
10386 no_entry_flag='-bnoentry'
10389 # When large executables or shared objects are built, AIX ld can
10390 # have problems creating the table of contents. If linking a library
10391 # or program results in "error TOC overflow" add -mminimal-toc to
10392 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10393 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10395 archive_cmds=''
10396 hardcode_direct=yes
10397 hardcode_direct_absolute=yes
10398 hardcode_libdir_separator=':'
10399 link_all_deplibs=yes
10400 file_list_spec='${wl}-f,'
10402 if test "$GCC" = yes; then
10403 case $host_os in aix4.[012]|aix4.[012].*)
10404 # We only want to do this on AIX 4.2 and lower, the check
10405 # below for broken collect2 doesn't work under 4.3+
10406 collect2name=`${CC} -print-prog-name=collect2`
10407 if test -f "$collect2name" &&
10408 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10409 then
10410 # We have reworked collect2
10412 else
10413 # We have old collect2
10414 hardcode_direct=unsupported
10415 # It fails to find uninstalled libraries when the uninstalled
10416 # path is not listed in the libpath. Setting hardcode_minus_L
10417 # to unsupported forces relinking
10418 hardcode_minus_L=yes
10419 hardcode_libdir_flag_spec='-L$libdir'
10420 hardcode_libdir_separator=
10423 esac
10424 shared_flag='-shared'
10425 if test "$aix_use_runtimelinking" = yes; then
10426 shared_flag="$shared_flag "'${wl}-G'
10428 else
10429 # not using gcc
10430 if test "$host_cpu" = ia64; then
10431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10432 # chokes on -Wl,-G. The following line is correct:
10433 shared_flag='-G'
10434 else
10435 if test "$aix_use_runtimelinking" = yes; then
10436 shared_flag='${wl}-G'
10437 else
10438 shared_flag='${wl}-bM:SRE'
10443 export_dynamic_flag_spec='${wl}-bexpall'
10444 # It seems that -bexpall does not export symbols beginning with
10445 # underscore (_), so it is better to generate a list of symbols to export.
10446 always_export_symbols=yes
10447 if test "$aix_use_runtimelinking" = yes; then
10448 # Warning - without using the other runtime loading flags (-brtl),
10449 # -berok will link without error, but may produce a broken library.
10450 allow_undefined_flag='-berok'
10451 # Determine the default libpath from the value encoded in an
10452 # empty executable.
10453 if test x$gcc_no_link = xyes; then
10454 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10455 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10456 { (exit 1); exit 1; }; }
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10466 main ()
10470 return 0;
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475 (eval $ac_link) 2>conftest.er1
10476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } &&
10482 { ac_try='test -z "$ac_c_werror_flag"
10483 || test ! -s conftest.err'
10484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485 (eval $ac_try) 2>&5
10486 ac_status=$?
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); }; } &&
10489 { ac_try='test -s conftest$ac_exeext'
10490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10491 (eval $ac_try) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; }; then
10496 lt_aix_libpath_sed='
10497 /Import File Strings/,/^$/ {
10498 /^0/ {
10499 s/^0 *\(.*\)$/\1/
10503 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10504 # Check for a 64-bit object if we didn't find anything.
10505 if test -z "$aix_libpath"; then
10506 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10513 rm -f conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10518 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"
10519 else
10520 if test "$host_cpu" = ia64; then
10521 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10522 allow_undefined_flag="-z nodefs"
10523 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"
10524 else
10525 # Determine the default libpath from the value encoded in an
10526 # empty executable.
10527 if test x$gcc_no_link = xyes; then
10528 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10529 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10530 { (exit 1); exit 1; }; }
10532 cat >conftest.$ac_ext <<_ACEOF
10533 /* confdefs.h. */
10534 _ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10540 main ()
10544 return 0;
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549 (eval $ac_link) 2>conftest.er1
10550 ac_status=$?
10551 grep -v '^ *+' conftest.er1 >conftest.err
10552 rm -f conftest.er1
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag"
10557 || test ! -s conftest.err'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10560 ac_status=$?
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10566 ac_status=$?
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10570 lt_aix_libpath_sed='
10571 /Import File Strings/,/^$/ {
10572 /^0/ {
10573 s/^0 *\(.*\)$/\1/
10577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10578 # Check for a 64-bit object if we didn't find anything.
10579 if test -z "$aix_libpath"; then
10580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10587 rm -f conftest.err conftest.$ac_objext \
10588 conftest$ac_exeext conftest.$ac_ext
10589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10591 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10592 # Warning - without using the other run time loading flags,
10593 # -berok will link without error, but may produce a broken library.
10594 no_undefined_flag=' ${wl}-bernotok'
10595 allow_undefined_flag=' ${wl}-berok'
10596 # Exported symbols can be pulled into shared objects from archives
10597 whole_archive_flag_spec='$convenience'
10598 archive_cmds_need_lc=yes
10599 # This is similar to how AIX traditionally builds its shared libraries.
10600 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'
10605 amigaos*)
10606 case $host_cpu in
10607 powerpc)
10608 # see comment about AmigaOS4 .so support
10609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610 archive_expsym_cmds=''
10612 m68k)
10613 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)'
10614 hardcode_libdir_flag_spec='-L$libdir'
10615 hardcode_minus_L=yes
10617 esac
10620 bsdi[45]*)
10621 export_dynamic_flag_spec=-rdynamic
10624 cygwin* | mingw* | pw32* | cegcc*)
10625 # When not using gcc, we currently assume that we are using
10626 # Microsoft Visual C++.
10627 # hardcode_libdir_flag_spec is actually meaningless, as there is
10628 # no search path for DLLs.
10629 hardcode_libdir_flag_spec=' '
10630 allow_undefined_flag=unsupported
10631 # Tell ltmain to make .lib files, not .a files.
10632 libext=lib
10633 # Tell ltmain to make .dll files, not .so files.
10634 shrext_cmds=".dll"
10635 # FIXME: Setting linknames here is a bad hack.
10636 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10637 # The linker will automatically build a .lib file if we build a DLL.
10638 old_archive_from_new_cmds='true'
10639 # FIXME: Should let the user specify the lib program.
10640 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10641 fix_srcfile_path='`cygpath -w "$srcfile"`'
10642 enable_shared_with_static_runtimes=yes
10645 darwin* | rhapsody*)
10648 archive_cmds_need_lc=no
10649 hardcode_direct=no
10650 hardcode_automatic=yes
10651 hardcode_shlibpath_var=unsupported
10652 whole_archive_flag_spec=''
10653 link_all_deplibs=yes
10654 allow_undefined_flag="$_lt_dar_allow_undefined"
10655 case $cc_basename in
10656 ifort*) _lt_dar_can_shared=yes ;;
10657 *) _lt_dar_can_shared=$GCC ;;
10658 esac
10659 if test "$_lt_dar_can_shared" = "yes"; then
10660 output_verbose_link_cmd=echo
10661 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10662 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10663 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10664 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10666 else
10667 ld_shlibs=no
10672 dgux*)
10673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10674 hardcode_libdir_flag_spec='-L$libdir'
10675 hardcode_shlibpath_var=no
10678 freebsd1*)
10679 ld_shlibs=no
10682 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10683 # support. Future versions do this automatically, but an explicit c++rt0.o
10684 # does not break anything, and helps significantly (at the cost of a little
10685 # extra space).
10686 freebsd2.2*)
10687 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10688 hardcode_libdir_flag_spec='-R$libdir'
10689 hardcode_direct=yes
10690 hardcode_shlibpath_var=no
10693 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10694 freebsd2*)
10695 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10696 hardcode_direct=yes
10697 hardcode_minus_L=yes
10698 hardcode_shlibpath_var=no
10701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10702 freebsd* | dragonfly*)
10703 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10704 hardcode_libdir_flag_spec='-R$libdir'
10705 hardcode_direct=yes
10706 hardcode_shlibpath_var=no
10709 hpux9*)
10710 if test "$GCC" = yes; then
10711 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'
10712 else
10713 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'
10715 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10716 hardcode_libdir_separator=:
10717 hardcode_direct=yes
10719 # hardcode_minus_L: Not really in the search PATH,
10720 # but as the default location of the library.
10721 hardcode_minus_L=yes
10722 export_dynamic_flag_spec='${wl}-E'
10725 hpux10*)
10726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10728 else
10729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10731 if test "$with_gnu_ld" = no; then
10732 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10733 hardcode_libdir_flag_spec_ld='+b $libdir'
10734 hardcode_libdir_separator=:
10735 hardcode_direct=yes
10736 hardcode_direct_absolute=yes
10737 export_dynamic_flag_spec='${wl}-E'
10738 # hardcode_minus_L: Not really in the search PATH,
10739 # but as the default location of the library.
10740 hardcode_minus_L=yes
10744 hpux11*)
10745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10746 case $host_cpu in
10747 hppa*64*)
10748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 ia64*)
10751 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10754 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10756 esac
10757 else
10758 case $host_cpu in
10759 hppa*64*)
10760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10762 ia64*)
10763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10766 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10768 esac
10770 if test "$with_gnu_ld" = no; then
10771 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10772 hardcode_libdir_separator=:
10774 case $host_cpu in
10775 hppa*64*|ia64*)
10776 hardcode_direct=no
10777 hardcode_shlibpath_var=no
10780 hardcode_direct=yes
10781 hardcode_direct_absolute=yes
10782 export_dynamic_flag_spec='${wl}-E'
10784 # hardcode_minus_L: Not really in the search PATH,
10785 # but as the default location of the library.
10786 hardcode_minus_L=yes
10788 esac
10792 irix5* | irix6* | nonstopux*)
10793 if test "$GCC" = yes; then
10794 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'
10795 # Try to use the -exported_symbol ld option, if it does not
10796 # work, assume that -exports_file does not work either and
10797 # implicitly export all symbols.
10798 save_LDFLAGS="$LDFLAGS"
10799 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10800 if test x$gcc_no_link = xyes; then
10801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10803 { (exit 1); exit 1; }; }
10805 cat >conftest.$ac_ext <<_ACEOF
10806 int foo(void) {}
10807 _ACEOF
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>conftest.er1
10811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag"
10818 || test ! -s conftest.err'
10819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); }; } &&
10824 { ac_try='test -s conftest$ac_exeext'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10827 ac_status=$?
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 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'
10832 else
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10837 rm -f conftest.err conftest.$ac_objext \
10838 conftest$ac_exeext conftest.$ac_ext
10839 LDFLAGS="$save_LDFLAGS"
10840 else
10841 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'
10842 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'
10844 archive_cmds_need_lc='no'
10845 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10846 hardcode_libdir_separator=:
10847 inherit_rpath=yes
10848 link_all_deplibs=yes
10851 netbsd*)
10852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10853 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10854 else
10855 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10857 hardcode_libdir_flag_spec='-R$libdir'
10858 hardcode_direct=yes
10859 hardcode_shlibpath_var=no
10862 newsos6)
10863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10864 hardcode_direct=yes
10865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10866 hardcode_libdir_separator=:
10867 hardcode_shlibpath_var=no
10870 *nto* | *qnx*)
10873 openbsd*)
10874 if test -f /usr/libexec/ld.so; then
10875 hardcode_direct=yes
10876 hardcode_shlibpath_var=no
10877 hardcode_direct_absolute=yes
10878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10879 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10880 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10882 export_dynamic_flag_spec='${wl}-E'
10883 else
10884 case $host_os in
10885 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10886 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10887 hardcode_libdir_flag_spec='-R$libdir'
10890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10891 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10893 esac
10895 else
10896 ld_shlibs=no
10900 os2*)
10901 hardcode_libdir_flag_spec='-L$libdir'
10902 hardcode_minus_L=yes
10903 allow_undefined_flag=unsupported
10904 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'
10905 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10908 osf3*)
10909 if test "$GCC" = yes; then
10910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10911 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'
10912 else
10913 allow_undefined_flag=' -expect_unresolved \*'
10914 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'
10916 archive_cmds_need_lc='no'
10917 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10918 hardcode_libdir_separator=:
10921 osf4* | osf5*) # as osf3* with the addition of -msym flag
10922 if test "$GCC" = yes; then
10923 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10924 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'
10925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10926 else
10927 allow_undefined_flag=' -expect_unresolved \*'
10928 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'
10929 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~
10930 $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'
10932 # Both c and cxx compiler support -rpath directly
10933 hardcode_libdir_flag_spec='-rpath $libdir'
10935 archive_cmds_need_lc='no'
10936 hardcode_libdir_separator=:
10939 solaris*)
10940 no_undefined_flag=' -z defs'
10941 if test "$GCC" = yes; then
10942 wlarc='${wl}'
10943 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10945 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10946 else
10947 case `$CC -V 2>&1` in
10948 *"Compilers 5.0"*)
10949 wlarc=''
10950 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10951 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10952 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10955 wlarc='${wl}'
10956 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10958 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10960 esac
10962 hardcode_libdir_flag_spec='-R$libdir'
10963 hardcode_shlibpath_var=no
10964 case $host_os in
10965 solaris2.[0-5] | solaris2.[0-5].*) ;;
10967 # The compiler driver will combine and reorder linker options,
10968 # but understands `-z linker_flag'. GCC discards it without `$wl',
10969 # but is careful enough not to reorder.
10970 # Supported since Solaris 2.6 (maybe 2.5.1?)
10971 if test "$GCC" = yes; then
10972 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10973 else
10974 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10977 esac
10978 link_all_deplibs=yes
10981 sunos4*)
10982 if test "x$host_vendor" = xsequent; then
10983 # Use $CC to link under sequent, because it throws in some extra .o
10984 # files that make .init and .fini sections work.
10985 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10986 else
10987 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10989 hardcode_libdir_flag_spec='-L$libdir'
10990 hardcode_direct=yes
10991 hardcode_minus_L=yes
10992 hardcode_shlibpath_var=no
10995 sysv4)
10996 case $host_vendor in
10997 sni)
10998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999 hardcode_direct=yes # is this really true???
11001 siemens)
11002 ## LD is ld it makes a PLAMLIB
11003 ## CC just makes a GrossModule.
11004 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11005 reload_cmds='$CC -r -o $output$reload_objs'
11006 hardcode_direct=no
11008 motorola)
11009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11010 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11012 esac
11013 runpath_var='LD_RUN_PATH'
11014 hardcode_shlibpath_var=no
11017 sysv4.3*)
11018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11019 hardcode_shlibpath_var=no
11020 export_dynamic_flag_spec='-Bexport'
11023 sysv4*MP*)
11024 if test -d /usr/nec; then
11025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11026 hardcode_shlibpath_var=no
11027 runpath_var=LD_RUN_PATH
11028 hardcode_runpath_var=yes
11029 ld_shlibs=yes
11033 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11034 no_undefined_flag='${wl}-z,text'
11035 archive_cmds_need_lc=no
11036 hardcode_shlibpath_var=no
11037 runpath_var='LD_RUN_PATH'
11039 if test "$GCC" = yes; then
11040 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042 else
11043 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11044 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11048 sysv5* | sco3.2v5* | sco5v6*)
11049 # Note: We can NOT use -z defs as we might desire, because we do not
11050 # link with -lc, and that would cause any symbols used from libc to
11051 # always be unresolved, which means just about no library would
11052 # ever link correctly. If we're not using GNU ld we use -z text
11053 # though, which does catch some bad symbols but isn't as heavy-handed
11054 # as -z defs.
11055 no_undefined_flag='${wl}-z,text'
11056 allow_undefined_flag='${wl}-z,nodefs'
11057 archive_cmds_need_lc=no
11058 hardcode_shlibpath_var=no
11059 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11060 hardcode_libdir_separator=':'
11061 link_all_deplibs=yes
11062 export_dynamic_flag_spec='${wl}-Bexport'
11063 runpath_var='LD_RUN_PATH'
11065 if test "$GCC" = yes; then
11066 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068 else
11069 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11074 uts4*)
11075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11076 hardcode_libdir_flag_spec='-L$libdir'
11077 hardcode_shlibpath_var=no
11081 ld_shlibs=no
11083 esac
11085 if test x$host_vendor = xsni; then
11086 case $host in
11087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11088 export_dynamic_flag_spec='${wl}-Blargedynsym'
11090 esac
11094 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11095 echo "${ECHO_T}$ld_shlibs" >&6
11096 test "$ld_shlibs" = no && can_build_shared=no
11098 with_gnu_ld=$with_gnu_ld
11115 # Do we need to explicitly link libc?
11117 case "x$archive_cmds_need_lc" in
11118 x|xyes)
11119 # Assume -lc should be added
11120 archive_cmds_need_lc=yes
11122 if test "$enable_shared" = yes && test "$GCC" = yes; then
11123 case $archive_cmds in
11124 *'~'*)
11125 # FIXME: we may have to deal with multi-command sequences.
11127 '$CC '*)
11128 # Test whether the compiler implicitly links with -lc since on some
11129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11130 # to ld, don't add -lc before -lgcc.
11131 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11132 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11133 $RM conftest*
11134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11137 (eval $ac_compile) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); } 2>conftest.err; then
11141 soname=conftest
11142 lib=conftest
11143 libobjs=conftest.$ac_objext
11144 deplibs=
11145 wl=$lt_prog_compiler_wl
11146 pic_flag=$lt_prog_compiler_pic
11147 compiler_flags=-v
11148 linker_flags=-v
11149 verstring=
11150 output_objdir=.
11151 libname=conftest
11152 lt_save_allow_undefined_flag=$allow_undefined_flag
11153 allow_undefined_flag=
11154 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11155 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }
11159 then
11160 archive_cmds_need_lc=no
11161 else
11162 archive_cmds_need_lc=yes
11164 allow_undefined_flag=$lt_save_allow_undefined_flag
11165 else
11166 cat conftest.err 1>&5
11168 $RM conftest*
11169 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11170 echo "${ECHO_T}$archive_cmds_need_lc" >&6
11172 esac
11175 esac
11333 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11334 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11336 if test "$GCC" = yes; then
11337 case $host_os in
11338 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11339 *) lt_awk_arg="/^libraries:/" ;;
11340 esac
11341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11342 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11343 # if the path contains ";" then we assume it to be the separator
11344 # otherwise default to the standard path separator (i.e. ":") - it is
11345 # assumed that no part of a normal pathname contains ";" but that should
11346 # okay in the real world where ";" in dirpaths is itself problematic.
11347 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11348 else
11349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11351 # Ok, now we have the path, separated by spaces, we can step through it
11352 # and add multilib dir if necessary.
11353 lt_tmp_lt_search_path_spec=
11354 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11355 for lt_sys_path in $lt_search_path_spec; do
11356 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11357 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11358 else
11359 test -d "$lt_sys_path" && \
11360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11362 done
11363 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11364 BEGIN {RS=" "; FS="/|\n";} {
11365 lt_foo="";
11366 lt_count=0;
11367 for (lt_i = NF; lt_i > 0; lt_i--) {
11368 if ($lt_i != "" && $lt_i != ".") {
11369 if ($lt_i == "..") {
11370 lt_count++;
11371 } else {
11372 if (lt_count == 0) {
11373 lt_foo="/" $lt_i lt_foo;
11374 } else {
11375 lt_count--;
11380 if (lt_foo != "") { lt_freq[lt_foo]++; }
11381 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11383 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11384 else
11385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11387 library_names_spec=
11388 libname_spec='lib$name'
11389 soname_spec=
11390 shrext_cmds=".so"
11391 postinstall_cmds=
11392 postuninstall_cmds=
11393 finish_cmds=
11394 finish_eval=
11395 shlibpath_var=
11396 shlibpath_overrides_runpath=unknown
11397 version_type=none
11398 dynamic_linker="$host_os ld.so"
11399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11400 need_lib_prefix=unknown
11401 hardcode_into_libs=no
11403 # when you set need_version to no, make sure it does not cause -set_version
11404 # flags to be left without arguments
11405 need_version=unknown
11407 case $host_os in
11408 aix3*)
11409 version_type=linux
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11411 shlibpath_var=LIBPATH
11413 # AIX 3 has no versioning support, so we append a major version to the name.
11414 soname_spec='${libname}${release}${shared_ext}$major'
11417 aix[4-9]*)
11418 version_type=linux
11419 need_lib_prefix=no
11420 need_version=no
11421 hardcode_into_libs=yes
11422 if test "$host_cpu" = ia64; then
11423 # AIX 5 supports IA64
11424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 else
11427 # With GCC up to 2.95.x, collect2 would create an import file
11428 # for dependence libraries. The import file would start with
11429 # the line `#! .'. This would cause the generated library to
11430 # depend on `.', always an invalid library. This was fixed in
11431 # development snapshots of GCC prior to 3.0.
11432 case $host_os in
11433 aix4 | aix4.[01] | aix4.[01].*)
11434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11435 echo ' yes '
11436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11438 else
11439 can_build_shared=no
11442 esac
11443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11444 # soname into executable. Probably we can add versioning support to
11445 # collect2, so additional links can be useful in future.
11446 if test "$aix_use_runtimelinking" = yes; then
11447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11448 # instead of lib<name>.a to let people know that these are not
11449 # typical AIX shared libraries.
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 else
11452 # We preserve .a as extension for shared libraries through AIX4.2
11453 # and later when we are not doing run time linking.
11454 library_names_spec='${libname}${release}.a $libname.a'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LIBPATH
11461 amigaos*)
11462 case $host_cpu in
11463 powerpc)
11464 # Since July 2007 AmigaOS4 officially supports .so libraries.
11465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468 m68k)
11469 library_names_spec='$libname.ixlibrary $libname.a'
11470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11471 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'
11473 esac
11476 beos*)
11477 library_names_spec='${libname}${shared_ext}'
11478 dynamic_linker="$host_os ld.so"
11479 shlibpath_var=LIBRARY_PATH
11482 bsdi[45]*)
11483 version_type=linux
11484 need_version=no
11485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11486 soname_spec='${libname}${release}${shared_ext}$major'
11487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11488 shlibpath_var=LD_LIBRARY_PATH
11489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11491 # the default ld.so.conf also contains /usr/contrib/lib and
11492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11493 # libtool to hard-code these into programs
11496 cygwin* | mingw* | pw32* | cegcc*)
11497 version_type=windows
11498 shrext_cmds=".dll"
11499 need_version=no
11500 need_lib_prefix=no
11502 case $GCC,$host_os in
11503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11504 library_names_spec='$libname.dll.a'
11505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11506 postinstall_cmds='base_file=`basename \${file}`~
11507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11508 dldir=$destdir/`dirname \$dlpath`~
11509 test -d \$dldir || mkdir -p \$dldir~
11510 $install_prog $dir/$dlname \$dldir/$dlname~
11511 chmod a+x \$dldir/$dlname~
11512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11516 dlpath=$dir/\$dldll~
11517 $RM \$dlpath'
11518 shlibpath_overrides_runpath=yes
11520 case $host_os in
11521 cygwin*)
11522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11524 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11526 mingw* | cegcc*)
11527 # MinGW DLLs use traditional 'lib' prefix
11528 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11529 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11530 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11531 # It is most probably a Windows format PATH printed by
11532 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11533 # path with ; separators, and with drive letters. We can handle the
11534 # drive letters (cygwin fileutils understands them), so leave them,
11535 # especially as we might pass files found there to a mingw objdump,
11536 # which wouldn't understand a cygwinified path. Ahh.
11537 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11538 else
11539 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11542 pw32*)
11543 # pw32 DLLs use 'pw' prefix rather than 'lib'
11544 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11546 esac
11550 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11552 esac
11553 dynamic_linker='Win32 ld.exe'
11554 # FIXME: first we should search . and the directory the executable is in
11555 shlibpath_var=PATH
11558 darwin* | rhapsody*)
11559 dynamic_linker="$host_os dyld"
11560 version_type=darwin
11561 need_lib_prefix=no
11562 need_version=no
11563 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11564 soname_spec='${libname}${release}${major}$shared_ext'
11565 shlibpath_overrides_runpath=yes
11566 shlibpath_var=DYLD_LIBRARY_PATH
11567 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11569 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11573 dgux*)
11574 version_type=linux
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11582 freebsd1*)
11583 dynamic_linker=no
11586 freebsd* | dragonfly*)
11587 # DragonFly does not have aout. When/if they implement a new
11588 # versioning mechanism, adjust this.
11589 if test -x /usr/bin/objformat; then
11590 objformat=`/usr/bin/objformat`
11591 else
11592 case $host_os in
11593 freebsd[123]*) objformat=aout ;;
11594 *) objformat=elf ;;
11595 esac
11597 version_type=freebsd-$objformat
11598 case $version_type in
11599 freebsd-elf*)
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11601 need_version=no
11602 need_lib_prefix=no
11604 freebsd-*)
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11606 need_version=yes
11608 esac
11609 shlibpath_var=LD_LIBRARY_PATH
11610 case $host_os in
11611 freebsd2*)
11612 shlibpath_overrides_runpath=yes
11614 freebsd3.[01]* | freebsdelf3.[01]*)
11615 shlibpath_overrides_runpath=yes
11616 hardcode_into_libs=yes
11618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11620 shlibpath_overrides_runpath=no
11621 hardcode_into_libs=yes
11623 *) # from 4.6 on, and DragonFly
11624 shlibpath_overrides_runpath=yes
11625 hardcode_into_libs=yes
11627 esac
11630 gnu*)
11631 version_type=linux
11632 need_lib_prefix=no
11633 need_version=no
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 hardcode_into_libs=yes
11640 hpux9* | hpux10* | hpux11*)
11641 # Give a soname corresponding to the major version so that dld.sl refuses to
11642 # link against other versions.
11643 version_type=sunos
11644 need_lib_prefix=no
11645 need_version=no
11646 case $host_cpu in
11647 ia64*)
11648 shrext_cmds='.so'
11649 hardcode_into_libs=yes
11650 dynamic_linker="$host_os dld.so"
11651 shlibpath_var=LD_LIBRARY_PATH
11652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 if test "X$HPUX_IA64_MODE" = X32; then
11656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11657 else
11658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11662 hppa*64*)
11663 shrext_cmds='.sl'
11664 hardcode_into_libs=yes
11665 dynamic_linker="$host_os dld.sl"
11666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11669 soname_spec='${libname}${release}${shared_ext}$major'
11670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11674 shrext_cmds='.sl'
11675 dynamic_linker="$host_os dld.sl"
11676 shlibpath_var=SHLIB_PATH
11677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11679 soname_spec='${libname}${release}${shared_ext}$major'
11681 esac
11682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11683 postinstall_cmds='chmod 555 $lib'
11686 interix[3-9]*)
11687 version_type=linux
11688 need_lib_prefix=no
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath=no
11695 hardcode_into_libs=yes
11698 irix5* | irix6* | nonstopux*)
11699 case $host_os in
11700 nonstopux*) version_type=nonstopux ;;
11702 if test "$lt_cv_prog_gnu_ld" = yes; then
11703 version_type=linux
11704 else
11705 version_type=irix
11706 fi ;;
11707 esac
11708 need_lib_prefix=no
11709 need_version=no
11710 soname_spec='${libname}${release}${shared_ext}$major'
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11712 case $host_os in
11713 irix5* | nonstopux*)
11714 libsuff= shlibsuff=
11717 case $LD in # libtool.m4 will add one of these switches to LD
11718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11719 libsuff= shlibsuff= libmagic=32-bit;;
11720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11721 libsuff=32 shlibsuff=N32 libmagic=N32;;
11722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11724 *) libsuff= shlibsuff= libmagic=never-match;;
11725 esac
11727 esac
11728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11729 shlibpath_overrides_runpath=no
11730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11732 hardcode_into_libs=yes
11735 # No shared lib support for Linux oldld, aout, or coff.
11736 linux*oldld* | linux*aout* | linux*coff*)
11737 dynamic_linker=no
11740 # This must be Linux ELF.
11741 linux* | k*bsd*-gnu)
11742 version_type=linux
11743 need_lib_prefix=no
11744 need_version=no
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746 soname_spec='${libname}${release}${shared_ext}$major'
11747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11748 shlibpath_var=LD_LIBRARY_PATH
11749 shlibpath_overrides_runpath=no
11750 # Some binutils ld are patched to set DT_RUNPATH
11751 save_LDFLAGS=$LDFLAGS
11752 save_libdir=$libdir
11753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11755 if test x$gcc_no_link = xyes; then
11756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11758 { (exit 1); exit 1; }; }
11760 cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h. */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11768 main ()
11772 return 0;
11774 _ACEOF
11775 rm -f conftest.$ac_objext conftest$ac_exeext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11777 (eval $ac_link) 2>conftest.er1
11778 ac_status=$?
11779 grep -v '^ *+' conftest.er1 >conftest.err
11780 rm -f conftest.er1
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag"
11785 || test ! -s conftest.err'
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; } &&
11791 { ac_try='test -s conftest$ac_exeext'
11792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11793 (eval $ac_try) 2>&5
11794 ac_status=$?
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; }; then
11797 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11798 shlibpath_overrides_runpath=yes
11801 else
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11806 rm -f conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 LDFLAGS=$save_LDFLAGS
11809 libdir=$save_libdir
11811 # This implies no fast_install, which is unacceptable.
11812 # Some rework will be needed to allow for fast_install
11813 # before this can be enabled.
11814 hardcode_into_libs=yes
11816 # Append ld.so.conf contents to the search path
11817 if test -f /etc/ld.so.conf; then
11818 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11819 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11822 # We used to test for /lib/ld.so.1 and disable shared libraries on
11823 # powerpc, because MkLinux only supported shared libraries with the
11824 # GNU dynamic linker. Since this was broken with cross compilers,
11825 # most powerpc-linux boxes support dynamic linking these days and
11826 # people can always --disable-shared, the test was removed, and we
11827 # assume the GNU/Linux dynamic linker is in use.
11828 dynamic_linker='GNU/Linux ld.so'
11831 netbsd*)
11832 version_type=sunos
11833 need_lib_prefix=no
11834 need_version=no
11835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11838 dynamic_linker='NetBSD (a.out) ld.so'
11839 else
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11841 soname_spec='${libname}${release}${shared_ext}$major'
11842 dynamic_linker='NetBSD ld.elf_so'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=yes
11846 hardcode_into_libs=yes
11849 newsos6)
11850 version_type=linux
11851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11852 shlibpath_var=LD_LIBRARY_PATH
11853 shlibpath_overrides_runpath=yes
11856 *nto* | *qnx*)
11857 version_type=qnx
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=no
11864 hardcode_into_libs=yes
11865 dynamic_linker='ldqnx.so'
11868 openbsd*)
11869 version_type=sunos
11870 sys_lib_dlsearch_path_spec="/usr/lib"
11871 need_lib_prefix=no
11872 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11873 case $host_os in
11874 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11875 *) need_version=no ;;
11876 esac
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11878 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11881 case $host_os in
11882 openbsd2.[89] | openbsd2.[89].*)
11883 shlibpath_overrides_runpath=no
11886 shlibpath_overrides_runpath=yes
11888 esac
11889 else
11890 shlibpath_overrides_runpath=yes
11894 os2*)
11895 libname_spec='$name'
11896 shrext_cmds=".dll"
11897 need_lib_prefix=no
11898 library_names_spec='$libname${shared_ext} $libname.a'
11899 dynamic_linker='OS/2 ld.exe'
11900 shlibpath_var=LIBPATH
11903 osf3* | osf4* | osf5*)
11904 version_type=osf
11905 need_lib_prefix=no
11906 need_version=no
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909 shlibpath_var=LD_LIBRARY_PATH
11910 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11911 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11914 rdos*)
11915 dynamic_linker=no
11918 solaris*)
11919 version_type=linux
11920 need_lib_prefix=no
11921 need_version=no
11922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11923 soname_spec='${libname}${release}${shared_ext}$major'
11924 shlibpath_var=LD_LIBRARY_PATH
11925 shlibpath_overrides_runpath=yes
11926 hardcode_into_libs=yes
11927 # ldd complains unless libraries are executable
11928 postinstall_cmds='chmod +x $lib'
11931 sunos4*)
11932 version_type=sunos
11933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11934 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11935 shlibpath_var=LD_LIBRARY_PATH
11936 shlibpath_overrides_runpath=yes
11937 if test "$with_gnu_ld" = yes; then
11938 need_lib_prefix=no
11940 need_version=yes
11943 sysv4 | sysv4.3*)
11944 version_type=linux
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 shlibpath_var=LD_LIBRARY_PATH
11948 case $host_vendor in
11949 sni)
11950 shlibpath_overrides_runpath=no
11951 need_lib_prefix=no
11952 runpath_var=LD_RUN_PATH
11954 siemens)
11955 need_lib_prefix=no
11957 motorola)
11958 need_lib_prefix=no
11959 need_version=no
11960 shlibpath_overrides_runpath=no
11961 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11963 esac
11966 sysv4*MP*)
11967 if test -d /usr/nec ;then
11968 version_type=linux
11969 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11970 soname_spec='$libname${shared_ext}.$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11976 version_type=freebsd-elf
11977 need_lib_prefix=no
11978 need_version=no
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11980 soname_spec='${libname}${release}${shared_ext}$major'
11981 shlibpath_var=LD_LIBRARY_PATH
11982 shlibpath_overrides_runpath=yes
11983 hardcode_into_libs=yes
11984 if test "$with_gnu_ld" = yes; then
11985 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11986 else
11987 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11988 case $host_os in
11989 sco3.2v5*)
11990 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11992 esac
11994 sys_lib_dlsearch_path_spec='/usr/lib'
11997 tpf*)
11998 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11999 version_type=linux
12000 need_lib_prefix=no
12001 need_version=no
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=no
12005 hardcode_into_libs=yes
12008 uts4*)
12009 version_type=linux
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12016 dynamic_linker=no
12018 esac
12019 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12020 echo "${ECHO_T}$dynamic_linker" >&6
12021 test "$dynamic_linker" = no && can_build_shared=no
12023 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12024 if test "$GCC" = yes; then
12025 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12028 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12029 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12031 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12032 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12121 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12122 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12123 hardcode_action=
12124 if test -n "$hardcode_libdir_flag_spec" ||
12125 test -n "$runpath_var" ||
12126 test "X$hardcode_automatic" = "Xyes" ; then
12128 # We can hardcode non-existent directories.
12129 if test "$hardcode_direct" != no &&
12130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12131 # have to relink, otherwise we might link with an installed library
12132 # when we should be linking with a yet-to-be-installed one
12133 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12134 test "$hardcode_minus_L" != no; then
12135 # Linking always hardcodes the temporary library directory.
12136 hardcode_action=relink
12137 else
12138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12139 hardcode_action=immediate
12141 else
12142 # We cannot hardcode anything, or else we can only hardcode existing
12143 # directories.
12144 hardcode_action=unsupported
12146 echo "$as_me:$LINENO: result: $hardcode_action" >&5
12147 echo "${ECHO_T}$hardcode_action" >&6
12149 if test "$hardcode_action" = relink ||
12150 test "$inherit_rpath" = yes; then
12151 # Fast installation is not supported
12152 enable_fast_install=no
12153 elif test "$shlibpath_overrides_runpath" = yes ||
12154 test "$enable_shared" = no; then
12155 # Fast installation is not necessary
12156 enable_fast_install=needless
12164 if test "x$enable_dlopen" != xyes; then
12165 enable_dlopen=unknown
12166 enable_dlopen_self=unknown
12167 enable_dlopen_self_static=unknown
12168 else
12169 lt_cv_dlopen=no
12170 lt_cv_dlopen_libs=
12172 case $host_os in
12173 beos*)
12174 lt_cv_dlopen="load_add_on"
12175 lt_cv_dlopen_libs=
12176 lt_cv_dlopen_self=yes
12179 mingw* | pw32* | cegcc*)
12180 lt_cv_dlopen="LoadLibrary"
12181 lt_cv_dlopen_libs=
12184 cygwin*)
12185 lt_cv_dlopen="dlopen"
12186 lt_cv_dlopen_libs=
12189 darwin*)
12190 # if libdl is installed we need to link against it
12191 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12192 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196 ac_check_lib_save_LIBS=$LIBS
12197 LIBS="-ldl $LIBS"
12198 if test x$gcc_no_link = xyes; then
12199 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12200 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12201 { (exit 1); exit 1; }; }
12203 cat >conftest.$ac_ext <<_ACEOF
12204 /* confdefs.h. */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12210 /* Override any gcc2 internal prototype to avoid an error. */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char dlopen ();
12218 main ()
12220 dlopen ();
12222 return 0;
12224 _ACEOF
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227 (eval $ac_link) 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } &&
12234 { ac_try='test -z "$ac_c_werror_flag"
12235 || test ! -s conftest.err'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12238 ac_status=$?
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; } &&
12241 { ac_try='test -s conftest$ac_exeext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12244 ac_status=$?
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_lib_dl_dlopen=yes
12248 else
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_cv_lib_dl_dlopen=no
12254 rm -f conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LIBS=$ac_check_lib_save_LIBS
12258 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12259 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12260 if test $ac_cv_lib_dl_dlopen = yes; then
12261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12262 else
12264 lt_cv_dlopen="dyld"
12265 lt_cv_dlopen_libs=
12266 lt_cv_dlopen_self=yes
12273 echo "$as_me:$LINENO: checking for shl_load" >&5
12274 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12275 if test "${ac_cv_func_shl_load+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 if test x$gcc_no_link = xyes; then
12279 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12280 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12281 { (exit 1); exit 1; }; }
12283 cat >conftest.$ac_ext <<_ACEOF
12284 /* confdefs.h. */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h. */
12289 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12291 #define shl_load innocuous_shl_load
12293 /* System header to define __stub macros and hopefully few prototypes,
12294 which can conflict with char shl_load (); below.
12295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12296 <limits.h> exists even on freestanding compilers. */
12298 #ifdef __STDC__
12299 # include <limits.h>
12300 #else
12301 # include <assert.h>
12302 #endif
12304 #undef shl_load
12306 /* Override any gcc2 internal prototype to avoid an error. */
12307 #ifdef __cplusplus
12308 extern "C"
12310 #endif
12311 /* We use char because int might match the return type of a gcc2
12312 builtin and then its argument prototype would still apply. */
12313 char shl_load ();
12314 /* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12318 choke me
12319 #else
12320 char (*f) () = shl_load;
12321 #endif
12322 #ifdef __cplusplus
12324 #endif
12327 main ()
12329 return f != shl_load;
12331 return 0;
12333 _ACEOF
12334 rm -f conftest.$ac_objext conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356 ac_cv_func_shl_load=yes
12357 else
12358 echo "$as_me: failed program was:" >&5
12359 sed 's/^/| /' conftest.$ac_ext >&5
12361 ac_cv_func_shl_load=no
12363 rm -f conftest.err conftest.$ac_objext \
12364 conftest$ac_exeext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12367 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12368 if test $ac_cv_func_shl_load = yes; then
12369 lt_cv_dlopen="shl_load"
12370 else
12371 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12372 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12373 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 else
12376 ac_check_lib_save_LIBS=$LIBS
12377 LIBS="-ldld $LIBS"
12378 if test x$gcc_no_link = xyes; then
12379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12380 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12381 { (exit 1); exit 1; }; }
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h. */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h. */
12390 /* Override any gcc2 internal prototype to avoid an error. */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char shl_load ();
12398 main ()
12400 shl_load ();
12402 return 0;
12404 _ACEOF
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407 (eval $ac_link) 2>conftest.er1
12408 ac_status=$?
12409 grep -v '^ *+' conftest.er1 >conftest.err
12410 rm -f conftest.er1
12411 cat conftest.err >&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -z "$ac_c_werror_flag"
12415 || test ! -s conftest.err'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12418 ac_status=$?
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12424 ac_status=$?
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_lib_dld_shl_load=yes
12428 else
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_dld_shl_load=no
12434 rm -f conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12439 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12440 if test $ac_cv_lib_dld_shl_load = yes; then
12441 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12442 else
12443 echo "$as_me:$LINENO: checking for dlopen" >&5
12444 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12445 if test "${ac_cv_func_dlopen+set}" = set; then
12446 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448 if test x$gcc_no_link = xyes; then
12449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12451 { (exit 1); exit 1; }; }
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h. */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12459 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12461 #define dlopen innocuous_dlopen
12463 /* System header to define __stub macros and hopefully few prototypes,
12464 which can conflict with char dlopen (); below.
12465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12466 <limits.h> exists even on freestanding compilers. */
12468 #ifdef __STDC__
12469 # include <limits.h>
12470 #else
12471 # include <assert.h>
12472 #endif
12474 #undef dlopen
12476 /* Override any gcc2 internal prototype to avoid an error. */
12477 #ifdef __cplusplus
12478 extern "C"
12480 #endif
12481 /* We use char because int might match the return type of a gcc2
12482 builtin and then its argument prototype would still apply. */
12483 char dlopen ();
12484 /* The GNU C library defines this for functions which it implements
12485 to always fail with ENOSYS. Some functions are actually named
12486 something starting with __ and the normal name is an alias. */
12487 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12488 choke me
12489 #else
12490 char (*f) () = dlopen;
12491 #endif
12492 #ifdef __cplusplus
12494 #endif
12497 main ()
12499 return f != dlopen;
12501 return 0;
12503 _ACEOF
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12506 (eval $ac_link) 2>conftest.er1
12507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -z "$ac_c_werror_flag"
12514 || test ! -s conftest.err'
12515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12516 (eval $ac_try) 2>&5
12517 ac_status=$?
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; } &&
12520 { ac_try='test -s conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12523 ac_status=$?
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_func_dlopen=yes
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 ac_cv_func_dlopen=no
12533 rm -f conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12537 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12538 if test $ac_cv_func_dlopen = yes; then
12539 lt_cv_dlopen="dlopen"
12540 else
12541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12542 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12543 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545 else
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-ldl $LIBS"
12548 if test x$gcc_no_link = xyes; then
12549 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12550 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12551 { (exit 1); exit 1; }; }
12553 cat >conftest.$ac_ext <<_ACEOF
12554 /* confdefs.h. */
12555 _ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12560 /* Override any gcc2 internal prototype to avoid an error. */
12561 #ifdef __cplusplus
12562 extern "C"
12563 #endif
12564 /* We use char because int might match the return type of a gcc2
12565 builtin and then its argument prototype would still apply. */
12566 char dlopen ();
12568 main ()
12570 dlopen ();
12572 return 0;
12574 _ACEOF
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577 (eval $ac_link) 2>conftest.er1
12578 ac_status=$?
12579 grep -v '^ *+' conftest.er1 >conftest.err
12580 rm -f conftest.er1
12581 cat conftest.err >&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -z "$ac_c_werror_flag"
12585 || test ! -s conftest.err'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12593 (eval $ac_try) 2>&5
12594 ac_status=$?
12595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596 (exit $ac_status); }; }; then
12597 ac_cv_lib_dl_dlopen=yes
12598 else
12599 echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12602 ac_cv_lib_dl_dlopen=no
12604 rm -f conftest.err conftest.$ac_objext \
12605 conftest$ac_exeext conftest.$ac_ext
12606 LIBS=$ac_check_lib_save_LIBS
12608 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12609 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12610 if test $ac_cv_lib_dl_dlopen = yes; then
12611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12612 else
12613 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12614 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12615 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12618 ac_check_lib_save_LIBS=$LIBS
12619 LIBS="-lsvld $LIBS"
12620 if test x$gcc_no_link = xyes; then
12621 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12622 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12623 { (exit 1); exit 1; }; }
12625 cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h. */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 #ifdef __cplusplus
12634 extern "C"
12635 #endif
12636 /* We use char because int might match the return type of a gcc2
12637 builtin and then its argument prototype would still apply. */
12638 char dlopen ();
12640 main ()
12642 dlopen ();
12644 return 0;
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649 (eval $ac_link) 2>conftest.er1
12650 ac_status=$?
12651 grep -v '^ *+' conftest.er1 >conftest.err
12652 rm -f conftest.er1
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12660 ac_status=$?
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest$ac_exeext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ac_cv_lib_svld_dlopen=yes
12670 else
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ac_cv_lib_svld_dlopen=no
12676 rm -f conftest.err conftest.$ac_objext \
12677 conftest$ac_exeext conftest.$ac_ext
12678 LIBS=$ac_check_lib_save_LIBS
12680 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12681 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12682 if test $ac_cv_lib_svld_dlopen = yes; then
12683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12684 else
12685 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12686 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12687 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690 ac_check_lib_save_LIBS=$LIBS
12691 LIBS="-ldld $LIBS"
12692 if test x$gcc_no_link = xyes; then
12693 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12694 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12695 { (exit 1); exit 1; }; }
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h. */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12704 /* Override any gcc2 internal prototype to avoid an error. */
12705 #ifdef __cplusplus
12706 extern "C"
12707 #endif
12708 /* We use char because int might match the return type of a gcc2
12709 builtin and then its argument prototype would still apply. */
12710 char dld_link ();
12712 main ()
12714 dld_link ();
12716 return 0;
12718 _ACEOF
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12721 (eval $ac_link) 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } &&
12728 { ac_try='test -z "$ac_c_werror_flag"
12729 || test ! -s conftest.err'
12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731 (eval $ac_try) 2>&5
12732 ac_status=$?
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); }; } &&
12735 { ac_try='test -s conftest$ac_exeext'
12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12738 ac_status=$?
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); }; }; then
12741 ac_cv_lib_dld_dld_link=yes
12742 else
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_dld_dld_link=no
12748 rm -f conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12753 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12754 if test $ac_cv_lib_dld_dld_link = yes; then
12755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12774 esac
12776 if test "x$lt_cv_dlopen" != xno; then
12777 enable_dlopen=yes
12778 else
12779 enable_dlopen=no
12782 case $lt_cv_dlopen in
12783 dlopen)
12784 save_CPPFLAGS="$CPPFLAGS"
12785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12787 save_LDFLAGS="$LDFLAGS"
12788 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12790 save_LIBS="$LIBS"
12791 LIBS="$lt_cv_dlopen_libs $LIBS"
12793 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12794 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12795 if test "${lt_cv_dlopen_self+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 else
12798 if test "$cross_compiling" = yes; then :
12799 lt_cv_dlopen_self=cross
12800 else
12801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12802 lt_status=$lt_dlunknown
12803 cat > conftest.$ac_ext <<_LT_EOF
12804 #line 12804 "configure"
12805 #include "confdefs.h"
12807 #if HAVE_DLFCN_H
12808 #include <dlfcn.h>
12809 #endif
12811 #include <stdio.h>
12813 #ifdef RTLD_GLOBAL
12814 # define LT_DLGLOBAL RTLD_GLOBAL
12815 #else
12816 # ifdef DL_GLOBAL
12817 # define LT_DLGLOBAL DL_GLOBAL
12818 # else
12819 # define LT_DLGLOBAL 0
12820 # endif
12821 #endif
12823 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12824 find out it does not work in some platform. */
12825 #ifndef LT_DLLAZY_OR_NOW
12826 # ifdef RTLD_LAZY
12827 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12828 # else
12829 # ifdef DL_LAZY
12830 # define LT_DLLAZY_OR_NOW DL_LAZY
12831 # else
12832 # ifdef RTLD_NOW
12833 # define LT_DLLAZY_OR_NOW RTLD_NOW
12834 # else
12835 # ifdef DL_NOW
12836 # define LT_DLLAZY_OR_NOW DL_NOW
12837 # else
12838 # define LT_DLLAZY_OR_NOW 0
12839 # endif
12840 # endif
12841 # endif
12842 # endif
12843 #endif
12845 void fnord() { int i=42;}
12846 int main ()
12848 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12849 int status = $lt_dlunknown;
12851 if (self)
12853 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12854 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12855 /* dlclose (self); */
12857 else
12858 puts (dlerror ());
12860 return status;
12862 _LT_EOF
12863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12864 (eval $ac_link) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12868 (./conftest; exit; ) >&5 2>/dev/null
12869 lt_status=$?
12870 case x$lt_status in
12871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12873 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12874 esac
12875 else :
12876 # compilation failed
12877 lt_cv_dlopen_self=no
12880 rm -fr conftest*
12884 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12885 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12887 if test "x$lt_cv_dlopen_self" = xyes; then
12888 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12889 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12890 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12891 if test "${lt_cv_dlopen_self_static+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12893 else
12894 if test "$cross_compiling" = yes; then :
12895 lt_cv_dlopen_self_static=cross
12896 else
12897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12898 lt_status=$lt_dlunknown
12899 cat > conftest.$ac_ext <<_LT_EOF
12900 #line 12900 "configure"
12901 #include "confdefs.h"
12903 #if HAVE_DLFCN_H
12904 #include <dlfcn.h>
12905 #endif
12907 #include <stdio.h>
12909 #ifdef RTLD_GLOBAL
12910 # define LT_DLGLOBAL RTLD_GLOBAL
12911 #else
12912 # ifdef DL_GLOBAL
12913 # define LT_DLGLOBAL DL_GLOBAL
12914 # else
12915 # define LT_DLGLOBAL 0
12916 # endif
12917 #endif
12919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12920 find out it does not work in some platform. */
12921 #ifndef LT_DLLAZY_OR_NOW
12922 # ifdef RTLD_LAZY
12923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12924 # else
12925 # ifdef DL_LAZY
12926 # define LT_DLLAZY_OR_NOW DL_LAZY
12927 # else
12928 # ifdef RTLD_NOW
12929 # define LT_DLLAZY_OR_NOW RTLD_NOW
12930 # else
12931 # ifdef DL_NOW
12932 # define LT_DLLAZY_OR_NOW DL_NOW
12933 # else
12934 # define LT_DLLAZY_OR_NOW 0
12935 # endif
12936 # endif
12937 # endif
12938 # endif
12939 #endif
12941 void fnord() { int i=42;}
12942 int main ()
12944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12945 int status = $lt_dlunknown;
12947 if (self)
12949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12951 /* dlclose (self); */
12953 else
12954 puts (dlerror ());
12956 return status;
12958 _LT_EOF
12959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12960 (eval $ac_link) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12964 (./conftest; exit; ) >&5 2>/dev/null
12965 lt_status=$?
12966 case x$lt_status in
12967 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12968 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12969 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12970 esac
12971 else :
12972 # compilation failed
12973 lt_cv_dlopen_self_static=no
12976 rm -fr conftest*
12980 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12981 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12984 CPPFLAGS="$save_CPPFLAGS"
12985 LDFLAGS="$save_LDFLAGS"
12986 LIBS="$save_LIBS"
12988 esac
12990 case $lt_cv_dlopen_self in
12991 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12992 *) enable_dlopen_self=unknown ;;
12993 esac
12995 case $lt_cv_dlopen_self_static in
12996 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12997 *) enable_dlopen_self_static=unknown ;;
12998 esac
13017 striplib=
13018 old_striplib=
13019 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13020 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13021 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13022 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13023 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13024 echo "$as_me:$LINENO: result: yes" >&5
13025 echo "${ECHO_T}yes" >&6
13026 else
13027 # FIXME - insert some real tests, host_os isn't really good enough
13028 case $host_os in
13029 darwin*)
13030 if test -n "$STRIP" ; then
13031 striplib="$STRIP -x"
13032 old_striplib="$STRIP -S"
13033 echo "$as_me:$LINENO: result: yes" >&5
13034 echo "${ECHO_T}yes" >&6
13035 else
13036 echo "$as_me:$LINENO: result: no" >&5
13037 echo "${ECHO_T}no" >&6
13041 echo "$as_me:$LINENO: result: no" >&5
13042 echo "${ECHO_T}no" >&6
13044 esac
13058 # Report which library types will actually be built
13059 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13060 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13061 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13062 echo "${ECHO_T}$can_build_shared" >&6
13064 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13065 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13066 test "$can_build_shared" = "no" && enable_shared=no
13068 # On AIX, shared libraries and static libraries use the same namespace, and
13069 # are all built from PIC.
13070 case $host_os in
13071 aix3*)
13072 test "$enable_shared" = yes && enable_static=no
13073 if test -n "$RANLIB"; then
13074 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13075 postinstall_cmds='$RANLIB $lib'
13079 aix[4-9]*)
13080 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13081 test "$enable_shared" = yes && enable_static=no
13084 esac
13085 echo "$as_me:$LINENO: result: $enable_shared" >&5
13086 echo "${ECHO_T}$enable_shared" >&6
13088 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13089 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13090 # Make sure either enable_shared or enable_static is yes.
13091 test "$enable_shared" = yes || enable_static=yes
13092 echo "$as_me:$LINENO: result: $enable_static" >&5
13093 echo "${ECHO_T}$enable_static" >&6
13099 ac_ext=c
13100 ac_cpp='$CPP $CPPFLAGS'
13101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13105 CC="$lt_save_CC"
13108 ac_ext=cc
13109 ac_cpp='$CXXCPP $CPPFLAGS'
13110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13114 archive_cmds_need_lc_CXX=no
13115 allow_undefined_flag_CXX=
13116 always_export_symbols_CXX=no
13117 archive_expsym_cmds_CXX=
13118 compiler_needs_object_CXX=no
13119 export_dynamic_flag_spec_CXX=
13120 hardcode_direct_CXX=no
13121 hardcode_direct_absolute_CXX=no
13122 hardcode_libdir_flag_spec_CXX=
13123 hardcode_libdir_flag_spec_ld_CXX=
13124 hardcode_libdir_separator_CXX=
13125 hardcode_minus_L_CXX=no
13126 hardcode_shlibpath_var_CXX=unsupported
13127 hardcode_automatic_CXX=no
13128 inherit_rpath_CXX=no
13129 module_cmds_CXX=
13130 module_expsym_cmds_CXX=
13131 link_all_deplibs_CXX=unknown
13132 old_archive_cmds_CXX=$old_archive_cmds
13133 no_undefined_flag_CXX=
13134 whole_archive_flag_spec_CXX=
13135 enable_shared_with_static_runtimes_CXX=no
13137 # Source file extension for C++ test sources.
13138 ac_ext=cpp
13140 # Object file extension for compiled C++ test sources.
13141 objext=o
13142 objext_CXX=$objext
13144 # No sense in running all these tests if we already determined that
13145 # the CXX compiler isn't working. Some variables (like enable_shared)
13146 # are currently assumed to apply to all compilers on this platform,
13147 # and will be corrupted by setting them based on a non-working compiler.
13148 if test "$_lt_caught_CXX_error" != yes; then
13149 # Code to be used in simple compile tests
13150 lt_simple_compile_test_code="int some_variable = 0;"
13152 # Code to be used in simple link tests
13153 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13155 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13162 # If no C compiler was specified, use CC.
13163 LTCC=${LTCC-"$CC"}
13165 # If no C compiler flags were specified, use CFLAGS.
13166 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13168 # Allow CC to be a program name with arguments.
13169 compiler=$CC
13172 # save warnings/boilerplate of simple test code
13173 ac_outfile=conftest.$ac_objext
13174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13176 _lt_compiler_boilerplate=`cat conftest.err`
13177 $RM conftest*
13179 ac_outfile=conftest.$ac_objext
13180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13182 _lt_linker_boilerplate=`cat conftest.err`
13183 $RM -r conftest*
13186 # Allow CC to be a program name with arguments.
13187 lt_save_CC=$CC
13188 lt_save_LD=$LD
13189 lt_save_GCC=$GCC
13190 GCC=$GXX
13191 lt_save_with_gnu_ld=$with_gnu_ld
13192 lt_save_path_LD=$lt_cv_path_LD
13193 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13194 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13195 else
13196 $as_unset lt_cv_prog_gnu_ld
13198 if test -n "${lt_cv_path_LDCXX+set}"; then
13199 lt_cv_path_LD=$lt_cv_path_LDCXX
13200 else
13201 $as_unset lt_cv_path_LD
13203 test -z "${LDCXX+set}" || LD=$LDCXX
13204 CC=${CXX-"c++"}
13205 compiler=$CC
13206 compiler_CXX=$CC
13207 for cc_temp in $compiler""; do
13208 case $cc_temp in
13209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13211 \-*) ;;
13212 *) break;;
13213 esac
13214 done
13215 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13218 if test -n "$compiler"; then
13219 # We don't want -fno-exception when compiling C++ code, so set the
13220 # no_builtin_flag separately
13221 if test "$GXX" = yes; then
13222 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13223 else
13224 lt_prog_compiler_no_builtin_flag_CXX=
13227 if test "$GXX" = yes; then
13228 # Set up default GNU C++ configuration
13232 # Check whether --with-gnu-ld or --without-gnu-ld was given.
13233 if test "${with_gnu_ld+set}" = set; then
13234 withval="$with_gnu_ld"
13235 test "$withval" = no || with_gnu_ld=yes
13236 else
13237 with_gnu_ld=no
13239 ac_prog=ld
13240 if test "$GCC" = yes; then
13241 # Check if gcc -print-prog-name=ld gives a path.
13242 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13243 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13244 case $host in
13245 *-*-mingw*)
13246 # gcc leaves a trailing carriage return which upsets mingw
13247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13250 esac
13251 case $ac_prog in
13252 # Accept absolute paths.
13253 [\\/]* | ?:[\\/]*)
13254 re_direlt='/[^/][^/]*/\.\./'
13255 # Canonicalize the pathname of ld
13256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13259 done
13260 test -z "$LD" && LD="$ac_prog"
13263 # If it fails, then pretend we aren't using GCC.
13264 ac_prog=ld
13267 # If it is relative, then search for the first ld in PATH.
13268 with_gnu_ld=unknown
13270 esac
13271 elif test "$with_gnu_ld" = yes; then
13272 echo "$as_me:$LINENO: checking for GNU ld" >&5
13273 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13274 else
13275 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13276 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13278 if test "${lt_cv_path_LD+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 if test -z "$LD"; then
13282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13283 for ac_dir in $PATH; do
13284 IFS="$lt_save_ifs"
13285 test -z "$ac_dir" && ac_dir=.
13286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13287 lt_cv_path_LD="$ac_dir/$ac_prog"
13288 # Check to see if the program is GNU ld. I'd rather use --version,
13289 # but apparently some variants of GNU ld only accept -v.
13290 # Break only if it was the GNU/non-GNU ld that we prefer.
13291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13292 *GNU* | *'with BFD'*)
13293 test "$with_gnu_ld" != no && break
13296 test "$with_gnu_ld" != yes && break
13298 esac
13300 done
13301 IFS="$lt_save_ifs"
13302 else
13303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13307 LD="$lt_cv_path_LD"
13308 if test -n "$LD"; then
13309 echo "$as_me:$LINENO: result: $LD" >&5
13310 echo "${ECHO_T}$LD" >&6
13311 else
13312 echo "$as_me:$LINENO: result: no" >&5
13313 echo "${ECHO_T}no" >&6
13315 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13316 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13317 { (exit 1); exit 1; }; }
13318 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13319 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13320 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
13322 else
13323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13324 case `$LD -v 2>&1 </dev/null` in
13325 *GNU* | *'with BFD'*)
13326 lt_cv_prog_gnu_ld=yes
13329 lt_cv_prog_gnu_ld=no
13331 esac
13333 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13334 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13335 with_gnu_ld=$lt_cv_prog_gnu_ld
13343 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13344 # archiving commands below assume that GNU ld is being used.
13345 if test "$with_gnu_ld" = yes; then
13346 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13347 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'
13349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13352 # If archive_cmds runs LD, not CC, wlarc should be empty
13353 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13354 # investigate it a little bit more. (MM)
13355 wlarc='${wl}'
13357 # ancient GNU ld didn't support --whole-archive et. al.
13358 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13359 $GREP 'no-whole-archive' > /dev/null; then
13360 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13361 else
13362 whole_archive_flag_spec_CXX=
13364 else
13365 with_gnu_ld=no
13366 wlarc=
13368 # A generic and very simple default shared library creation
13369 # command for GNU C++ for the case where it uses the native
13370 # linker, instead of GNU ld. If possible, this setting should
13371 # overridden to take advantage of the native linker features on
13372 # the platform it is being used on.
13373 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13376 # Commands to make compiler produce verbose output that lists
13377 # what "hidden" libraries, object files and flags are used when
13378 # linking a shared library.
13379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13381 else
13382 GXX=no
13383 with_gnu_ld=no
13384 wlarc=
13387 # PORTME: fill in a description of your system's C++ link characteristics
13388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13389 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13390 ld_shlibs_CXX=yes
13391 case $host_os in
13392 aix3*)
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13396 aix[4-9]*)
13397 if test "$host_cpu" = ia64; then
13398 # On IA64, the linker does run time linking by default, so we don't
13399 # have to do anything special.
13400 aix_use_runtimelinking=no
13401 exp_sym_flag='-Bexport'
13402 no_entry_flag=""
13403 else
13404 aix_use_runtimelinking=no
13406 # Test if we are trying to use run time linking or normal
13407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13408 # need to do runtime linking.
13409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13410 for ld_flag in $LDFLAGS; do
13411 case $ld_flag in
13412 *-brtl*)
13413 aix_use_runtimelinking=yes
13414 break
13416 esac
13417 done
13419 esac
13421 exp_sym_flag='-bexport'
13422 no_entry_flag='-bnoentry'
13425 # When large executables or shared objects are built, AIX ld can
13426 # have problems creating the table of contents. If linking a library
13427 # or program results in "error TOC overflow" add -mminimal-toc to
13428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13431 archive_cmds_CXX=''
13432 hardcode_direct_CXX=yes
13433 hardcode_direct_absolute_CXX=yes
13434 hardcode_libdir_separator_CXX=':'
13435 link_all_deplibs_CXX=yes
13436 file_list_spec_CXX='${wl}-f,'
13438 if test "$GXX" = yes; then
13439 case $host_os in aix4.[012]|aix4.[012].*)
13440 # We only want to do this on AIX 4.2 and lower, the check
13441 # below for broken collect2 doesn't work under 4.3+
13442 collect2name=`${CC} -print-prog-name=collect2`
13443 if test -f "$collect2name" &&
13444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13445 then
13446 # We have reworked collect2
13448 else
13449 # We have old collect2
13450 hardcode_direct_CXX=unsupported
13451 # It fails to find uninstalled libraries when the uninstalled
13452 # path is not listed in the libpath. Setting hardcode_minus_L
13453 # to unsupported forces relinking
13454 hardcode_minus_L_CXX=yes
13455 hardcode_libdir_flag_spec_CXX='-L$libdir'
13456 hardcode_libdir_separator_CXX=
13458 esac
13459 shared_flag='-shared'
13460 if test "$aix_use_runtimelinking" = yes; then
13461 shared_flag="$shared_flag "'${wl}-G'
13463 else
13464 # not using gcc
13465 if test "$host_cpu" = ia64; then
13466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13467 # chokes on -Wl,-G. The following line is correct:
13468 shared_flag='-G'
13469 else
13470 if test "$aix_use_runtimelinking" = yes; then
13471 shared_flag='${wl}-G'
13472 else
13473 shared_flag='${wl}-bM:SRE'
13478 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13479 # It seems that -bexpall does not export symbols beginning with
13480 # underscore (_), so it is better to generate a list of symbols to
13481 # export.
13482 always_export_symbols_CXX=yes
13483 if test "$aix_use_runtimelinking" = yes; then
13484 # Warning - without using the other runtime loading flags (-brtl),
13485 # -berok will link without error, but may produce a broken library.
13486 allow_undefined_flag_CXX='-berok'
13487 # Determine the default libpath from the value encoded in an empty
13488 # executable.
13489 if test x$gcc_no_link = xyes; then
13490 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13491 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13492 { (exit 1); exit 1; }; }
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13502 main ()
13506 return 0;
13508 _ACEOF
13509 rm -f conftest.$ac_objext conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_cxx_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13532 lt_aix_libpath_sed='
13533 /Import File Strings/,/^$/ {
13534 /^0/ {
13535 s/^0 *\(.*\)$/\1/
13539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13540 # Check for a 64-bit object if we didn't find anything.
13541 if test -z "$aix_libpath"; then
13542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13544 else
13545 echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13549 rm -f conftest.err conftest.$ac_objext \
13550 conftest$ac_exeext conftest.$ac_ext
13551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13553 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13555 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"
13556 else
13557 if test "$host_cpu" = ia64; then
13558 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13559 allow_undefined_flag_CXX="-z nodefs"
13560 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"
13561 else
13562 # Determine the default libpath from the value encoded in an
13563 # empty executable.
13564 if test x$gcc_no_link = xyes; then
13565 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13566 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13567 { (exit 1); exit 1; }; }
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13577 main ()
13581 return 0;
13583 _ACEOF
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_cxx_werror_flag"
13594 || test ! -s conftest.err'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13597 ac_status=$?
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; } &&
13600 { ac_try='test -s conftest$ac_exeext'
13601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13602 (eval $ac_try) 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; }; then
13607 lt_aix_libpath_sed='
13608 /Import File Strings/,/^$/ {
13609 /^0/ {
13610 s/^0 *\(.*\)$/\1/
13614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13615 # Check for a 64-bit object if we didn't find anything.
13616 if test -z "$aix_libpath"; then
13617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13619 else
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13628 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13629 # Warning - without using the other run time loading flags,
13630 # -berok will link without error, but may produce a broken library.
13631 no_undefined_flag_CXX=' ${wl}-bernotok'
13632 allow_undefined_flag_CXX=' ${wl}-berok'
13633 # Exported symbols can be pulled into shared objects from archives
13634 whole_archive_flag_spec_CXX='$convenience'
13635 archive_cmds_need_lc_CXX=yes
13636 # This is similar to how AIX traditionally builds its shared
13637 # libraries.
13638 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'
13643 beos*)
13644 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13645 allow_undefined_flag_CXX=unsupported
13646 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13647 # support --undefined. This deserves some investigation. FIXME
13648 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13649 else
13650 ld_shlibs_CXX=no
13654 chorus*)
13655 case $cc_basename in
13657 # FIXME: insert proper C++ library support
13658 ld_shlibs_CXX=no
13660 esac
13663 cygwin* | mingw* | pw32* | cegcc*)
13664 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13665 # as there is no search path for DLLs.
13666 hardcode_libdir_flag_spec_CXX='-L$libdir'
13667 allow_undefined_flag_CXX=unsupported
13668 always_export_symbols_CXX=no
13669 enable_shared_with_static_runtimes_CXX=yes
13671 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13672 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'
13673 # If the export-symbols file already is a .def file (1st line
13674 # is EXPORTS), use it as is; otherwise, prepend...
13675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13676 cp $export_symbols $output_objdir/$soname.def;
13677 else
13678 echo EXPORTS > $output_objdir/$soname.def;
13679 cat $export_symbols >> $output_objdir/$soname.def;
13681 $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'
13682 else
13683 ld_shlibs_CXX=no
13686 darwin* | rhapsody*)
13689 archive_cmds_need_lc_CXX=no
13690 hardcode_direct_CXX=no
13691 hardcode_automatic_CXX=yes
13692 hardcode_shlibpath_var_CXX=unsupported
13693 whole_archive_flag_spec_CXX=''
13694 link_all_deplibs_CXX=yes
13695 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13696 case $cc_basename in
13697 ifort*) _lt_dar_can_shared=yes ;;
13698 *) _lt_dar_can_shared=$GCC ;;
13699 esac
13700 if test "$_lt_dar_can_shared" = "yes"; then
13701 output_verbose_link_cmd=echo
13702 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13703 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13704 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13705 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13706 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13707 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13708 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13711 else
13712 ld_shlibs_CXX=no
13717 dgux*)
13718 case $cc_basename in
13719 ec++*)
13720 # FIXME: insert proper C++ library support
13721 ld_shlibs_CXX=no
13723 ghcx*)
13724 # Green Hills C++ Compiler
13725 # FIXME: insert proper C++ library support
13726 ld_shlibs_CXX=no
13729 # FIXME: insert proper C++ library support
13730 ld_shlibs_CXX=no
13732 esac
13735 freebsd[12]*)
13736 # C++ shared libraries reported to be fairly broken before
13737 # switch to ELF
13738 ld_shlibs_CXX=no
13741 freebsd-elf*)
13742 archive_cmds_need_lc_CXX=no
13745 freebsd* | dragonfly*)
13746 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13747 # conventions
13748 ld_shlibs_CXX=yes
13751 gnu*)
13754 hpux9*)
13755 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13756 hardcode_libdir_separator_CXX=:
13757 export_dynamic_flag_spec_CXX='${wl}-E'
13758 hardcode_direct_CXX=yes
13759 hardcode_minus_L_CXX=yes # Not in the search PATH,
13760 # but as the default
13761 # location of the library.
13763 case $cc_basename in
13764 CC*)
13765 # FIXME: insert proper C++ library support
13766 ld_shlibs_CXX=no
13768 aCC*)
13769 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'
13770 # Commands to make compiler produce verbose output that lists
13771 # what "hidden" libraries, object files and flags are used when
13772 # linking a shared library.
13774 # There doesn't appear to be a way to prevent this compiler from
13775 # explicitly linking system object files so we need to strip them
13776 # from the output so that they don't get included in the library
13777 # dependencies.
13778 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'
13781 if test "$GXX" = yes; then
13782 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'
13783 else
13784 # FIXME: insert proper C++ library support
13785 ld_shlibs_CXX=no
13788 esac
13791 hpux10*|hpux11*)
13792 if test $with_gnu_ld = no; then
13793 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13794 hardcode_libdir_separator_CXX=:
13796 case $host_cpu in
13797 hppa*64*|ia64*)
13800 export_dynamic_flag_spec_CXX='${wl}-E'
13802 esac
13804 case $host_cpu in
13805 hppa*64*|ia64*)
13806 hardcode_direct_CXX=no
13807 hardcode_shlibpath_var_CXX=no
13810 hardcode_direct_CXX=yes
13811 hardcode_direct_absolute_CXX=yes
13812 hardcode_minus_L_CXX=yes # Not in the search PATH,
13813 # but as the default
13814 # location of the library.
13816 esac
13818 case $cc_basename in
13819 CC*)
13820 # FIXME: insert proper C++ library support
13821 ld_shlibs_CXX=no
13823 aCC*)
13824 case $host_cpu in
13825 hppa*64*)
13826 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13828 ia64*)
13829 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13832 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13834 esac
13835 # Commands to make compiler produce verbose output that lists
13836 # what "hidden" libraries, object files and flags are used when
13837 # linking a shared library.
13839 # There doesn't appear to be a way to prevent this compiler from
13840 # explicitly linking system object files so we need to strip them
13841 # from the output so that they don't get included in the library
13842 # dependencies.
13843 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'
13846 if test "$GXX" = yes; then
13847 if test $with_gnu_ld = no; then
13848 case $host_cpu in
13849 hppa*64*)
13850 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13852 ia64*)
13853 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13856 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'
13858 esac
13860 else
13861 # FIXME: insert proper C++ library support
13862 ld_shlibs_CXX=no
13865 esac
13868 interix[3-9]*)
13869 hardcode_direct_CXX=no
13870 hardcode_shlibpath_var_CXX=no
13871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872 export_dynamic_flag_spec_CXX='${wl}-E'
13873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13874 # Instead, shared libraries are loaded at an image base (0x10000000 by
13875 # default) and relocated if they conflict, which is a slow very memory
13876 # consuming and fragmenting process. To avoid this, we pick a random,
13877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13879 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'
13880 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'
13882 irix5* | irix6*)
13883 case $cc_basename in
13884 CC*)
13885 # SGI C++
13886 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'
13888 # Archives containing C++ object files must be created using
13889 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13890 # necessary to make sure instantiated templates are included
13891 # in the archive.
13892 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13895 if test "$GXX" = yes; then
13896 if test "$with_gnu_ld" = no; then
13897 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'
13898 else
13899 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'
13902 link_all_deplibs_CXX=yes
13904 esac
13905 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13906 hardcode_libdir_separator_CXX=:
13907 inherit_rpath_CXX=yes
13910 linux* | k*bsd*-gnu)
13911 case $cc_basename in
13912 KCC*)
13913 # Kuck and Associates, Inc. (KAI) C++ Compiler
13915 # KCC will only create a shared library if the output file
13916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13917 # to its proper name (with version) after linking.
13918 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'
13919 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'
13920 # Commands to make compiler produce verbose output that lists
13921 # what "hidden" libraries, object files and flags are used when
13922 # linking a shared library.
13924 # There doesn't appear to be a way to prevent this compiler from
13925 # explicitly linking system object files so we need to strip them
13926 # from the output so that they don't get included in the library
13927 # dependencies.
13928 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'
13930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13933 # Archives containing C++ object files must be created using
13934 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13935 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13937 icpc* | ecpc* )
13938 # Intel C++
13939 with_gnu_ld=yes
13940 # version 8.0 and above of icpc choke on multiply defined symbols
13941 # if we add $predep_objects and $postdep_objects, however 7.1 and
13942 # earlier do not add the objects themselves.
13943 case `$CC -V 2>&1` in
13944 *"Version 7."*)
13945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13946 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'
13948 *) # Version 8.0 or newer
13949 tmp_idyn=
13950 case $host_cpu in
13951 ia64*) tmp_idyn=' -i_dynamic';;
13952 esac
13953 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13954 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'
13956 esac
13957 archive_cmds_need_lc_CXX=no
13958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13959 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13960 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13962 pgCC* | pgcpp*)
13963 # Portland Group C++ compiler
13964 case `$CC -V` in
13965 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13966 prelink_cmds_CXX='tpldir=Template.dir~
13967 rm -rf $tpldir~
13968 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13969 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13970 old_archive_cmds_CXX='tpldir=Template.dir~
13971 rm -rf $tpldir~
13972 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13973 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13974 $RANLIB $oldlib'
13975 archive_cmds_CXX='tpldir=Template.dir~
13976 rm -rf $tpldir~
13977 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13978 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13979 archive_expsym_cmds_CXX='tpldir=Template.dir~
13980 rm -rf $tpldir~
13981 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13982 $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'
13984 *) # Version 6 will use weak symbols
13985 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13986 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'
13988 esac
13990 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13992 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'
13994 cxx*)
13995 # Compaq C++
13996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13997 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'
13999 runpath_var=LD_RUN_PATH
14000 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14001 hardcode_libdir_separator_CXX=:
14003 # Commands to make compiler produce verbose output that lists
14004 # what "hidden" libraries, object files and flags are used when
14005 # linking a shared library.
14007 # There doesn't appear to be a way to prevent this compiler from
14008 # explicitly linking system object files so we need to strip them
14009 # from the output so that they don't get included in the library
14010 # dependencies.
14011 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'
14013 xl*)
14014 # IBM XL 8.0 on PPC, with GNU ld
14015 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14017 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14018 if test "x$supports_anon_versioning" = xyes; then
14019 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14020 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14021 echo "local: *; };" >> $output_objdir/$libname.ver~
14022 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14026 case `$CC -V 2>&1 | sed 5q` in
14027 *Sun\ C*)
14028 # Sun C++ 5.9
14029 no_undefined_flag_CXX=' -zdefs'
14030 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14031 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'
14032 hardcode_libdir_flag_spec_CXX='-R$libdir'
14033 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'
14034 compiler_needs_object_CXX=yes
14036 # Not sure whether something based on
14037 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14038 # would be better.
14039 output_verbose_link_cmd='echo'
14041 # Archives containing C++ object files must be created using
14042 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14043 # necessary to make sure instantiated templates are included
14044 # in the archive.
14045 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14047 esac
14049 esac
14052 lynxos*)
14053 # FIXME: insert proper C++ library support
14054 ld_shlibs_CXX=no
14057 m88k*)
14058 # FIXME: insert proper C++ library support
14059 ld_shlibs_CXX=no
14062 mvs*)
14063 case $cc_basename in
14064 cxx*)
14065 # FIXME: insert proper C++ library support
14066 ld_shlibs_CXX=no
14069 # FIXME: insert proper C++ library support
14070 ld_shlibs_CXX=no
14072 esac
14075 netbsd*)
14076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14077 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14078 wlarc=
14079 hardcode_libdir_flag_spec_CXX='-R$libdir'
14080 hardcode_direct_CXX=yes
14081 hardcode_shlibpath_var_CXX=no
14083 # Workaround some broken pre-1.5 toolchains
14084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14087 *nto* | *qnx*)
14088 ld_shlibs_CXX=yes
14091 openbsd2*)
14092 # C++ shared libraries are fairly broken
14093 ld_shlibs_CXX=no
14096 openbsd*)
14097 if test -f /usr/libexec/ld.so; then
14098 hardcode_direct_CXX=yes
14099 hardcode_shlibpath_var_CXX=no
14100 hardcode_direct_absolute_CXX=yes
14101 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14102 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14103 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14104 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14105 export_dynamic_flag_spec_CXX='${wl}-E'
14106 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14108 output_verbose_link_cmd=echo
14109 else
14110 ld_shlibs_CXX=no
14114 osf3* | osf4* | osf5*)
14115 case $cc_basename in
14116 KCC*)
14117 # Kuck and Associates, Inc. (KAI) C++ Compiler
14119 # KCC will only create a shared library if the output file
14120 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14121 # to its proper name (with version) after linking.
14122 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'
14124 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14125 hardcode_libdir_separator_CXX=:
14127 # Archives containing C++ object files must be created using
14128 # the KAI C++ compiler.
14129 case $host in
14130 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14131 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14132 esac
14134 RCC*)
14135 # Rational C++ 2.4.1
14136 # FIXME: insert proper C++ library support
14137 ld_shlibs_CXX=no
14139 cxx*)
14140 case $host in
14141 osf3*)
14142 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14143 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'
14144 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14147 allow_undefined_flag_CXX=' -expect_unresolved \*'
14148 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'
14149 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14150 echo "-hidden">> $lib.exp~
14151 $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~
14152 $RM $lib.exp'
14153 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14155 esac
14157 hardcode_libdir_separator_CXX=:
14159 # Commands to make compiler produce verbose output that lists
14160 # what "hidden" libraries, object files and flags are used when
14161 # linking a shared library.
14163 # There doesn't appear to be a way to prevent this compiler from
14164 # explicitly linking system object files so we need to strip them
14165 # from the output so that they don't get included in the library
14166 # dependencies.
14167 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'
14170 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14171 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14172 case $host in
14173 osf3*)
14174 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'
14177 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'
14179 esac
14181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14182 hardcode_libdir_separator_CXX=:
14184 # Commands to make compiler produce verbose output that lists
14185 # what "hidden" libraries, object files and flags are used when
14186 # linking a shared library.
14187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14189 else
14190 # FIXME: insert proper C++ library support
14191 ld_shlibs_CXX=no
14194 esac
14197 psos*)
14198 # FIXME: insert proper C++ library support
14199 ld_shlibs_CXX=no
14202 sunos4*)
14203 case $cc_basename in
14204 CC*)
14205 # Sun C++ 4.x
14206 # FIXME: insert proper C++ library support
14207 ld_shlibs_CXX=no
14209 lcc*)
14210 # Lucid
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14218 esac
14221 solaris*)
14222 case $cc_basename in
14223 CC*)
14224 # Sun C++ 4.2, 5.x and Centerline C++
14225 archive_cmds_need_lc_CXX=yes
14226 no_undefined_flag_CXX=' -zdefs'
14227 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14228 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14229 $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'
14231 hardcode_libdir_flag_spec_CXX='-R$libdir'
14232 hardcode_shlibpath_var_CXX=no
14233 case $host_os in
14234 solaris2.[0-5] | solaris2.[0-5].*) ;;
14236 # The compiler driver will combine and reorder linker options,
14237 # but understands `-z linker_flag'.
14238 # Supported since Solaris 2.6 (maybe 2.5.1?)
14239 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14241 esac
14242 link_all_deplibs_CXX=yes
14244 output_verbose_link_cmd='echo'
14246 # Archives containing C++ object files must be created using
14247 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14248 # necessary to make sure instantiated templates are included
14249 # in the archive.
14250 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14252 gcx*)
14253 # Green Hills C++ Compiler
14254 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14256 # The C++ compiler must be used to create the archive.
14257 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14260 # GNU C++ compiler with Solaris linker
14261 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14262 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14263 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14264 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14265 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14266 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14268 # Commands to make compiler produce verbose output that lists
14269 # what "hidden" libraries, object files and flags are used when
14270 # linking a shared library.
14271 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14272 else
14273 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14274 # platform.
14275 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14276 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14277 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14279 # Commands to make compiler produce verbose output that lists
14280 # what "hidden" libraries, object files and flags are used when
14281 # linking a shared library.
14282 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14285 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14286 case $host_os in
14287 solaris2.[0-5] | solaris2.[0-5].*) ;;
14289 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14291 esac
14294 esac
14297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14298 no_undefined_flag_CXX='${wl}-z,text'
14299 archive_cmds_need_lc_CXX=no
14300 hardcode_shlibpath_var_CXX=no
14301 runpath_var='LD_RUN_PATH'
14303 case $cc_basename in
14304 CC*)
14305 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14309 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14312 esac
14315 sysv5* | sco3.2v5* | sco5v6*)
14316 # Note: We can NOT use -z defs as we might desire, because we do not
14317 # link with -lc, and that would cause any symbols used from libc to
14318 # always be unresolved, which means just about no library would
14319 # ever link correctly. If we're not using GNU ld we use -z text
14320 # though, which does catch some bad symbols but isn't as heavy-handed
14321 # as -z defs.
14322 no_undefined_flag_CXX='${wl}-z,text'
14323 allow_undefined_flag_CXX='${wl}-z,nodefs'
14324 archive_cmds_need_lc_CXX=no
14325 hardcode_shlibpath_var_CXX=no
14326 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14327 hardcode_libdir_separator_CXX=':'
14328 link_all_deplibs_CXX=yes
14329 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14330 runpath_var='LD_RUN_PATH'
14332 case $cc_basename in
14333 CC*)
14334 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14335 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14338 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14341 esac
14344 tandem*)
14345 case $cc_basename in
14346 NCC*)
14347 # NonStop-UX NCC 3.20
14348 # FIXME: insert proper C++ library support
14349 ld_shlibs_CXX=no
14352 # FIXME: insert proper C++ library support
14353 ld_shlibs_CXX=no
14355 esac
14358 vxworks*)
14359 # FIXME: insert proper C++ library support
14360 ld_shlibs_CXX=no
14364 # FIXME: insert proper C++ library support
14365 ld_shlibs_CXX=no
14367 esac
14369 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14370 echo "${ECHO_T}$ld_shlibs_CXX" >&6
14371 test "$ld_shlibs_CXX" = no && can_build_shared=no
14373 GCC_CXX="$GXX"
14374 LD_CXX="$LD"
14376 ## CAVEAT EMPTOR:
14377 ## There is no encapsulation within the following macros, do not change
14378 ## the running order or otherwise move them around unless you know exactly
14379 ## what you are doing...
14380 # Dependencies to place before and after the object being linked:
14381 predep_objects_CXX=
14382 postdep_objects_CXX=
14383 predeps_CXX=
14384 postdeps_CXX=
14385 compiler_lib_search_path_CXX=
14387 cat > conftest.$ac_ext <<_LT_EOF
14388 class Foo
14390 public:
14391 Foo (void) { a = 0; }
14392 private:
14393 int a;
14395 _LT_EOF
14397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14398 (eval $ac_compile) 2>&5
14399 ac_status=$?
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; then
14402 # Parse the compiler output and extract the necessary
14403 # objects, libraries and library flags.
14405 # Sentinel used to keep track of whether or not we are before
14406 # the conftest object file.
14407 pre_test_object_deps_done=no
14409 for p in `eval "$output_verbose_link_cmd"`; do
14410 case $p in
14412 -L* | -R* | -l*)
14413 # Some compilers place space between "-{L,R}" and the path.
14414 # Remove the space.
14415 if test $p = "-L" ||
14416 test $p = "-R"; then
14417 prev=$p
14418 continue
14419 else
14420 prev=
14423 if test "$pre_test_object_deps_done" = no; then
14424 case $p in
14425 -L* | -R*)
14426 # Internal compiler library paths should come after those
14427 # provided the user. The postdeps already come after the
14428 # user supplied libs so there is no need to process them.
14429 if test -z "$compiler_lib_search_path_CXX"; then
14430 compiler_lib_search_path_CXX="${prev}${p}"
14431 else
14432 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14435 # The "-l" case would never come before the object being
14436 # linked, so don't bother handling this case.
14437 esac
14438 else
14439 if test -z "$postdeps_CXX"; then
14440 postdeps_CXX="${prev}${p}"
14441 else
14442 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14447 *.$objext)
14448 # This assumes that the test object file only shows up
14449 # once in the compiler output.
14450 if test "$p" = "conftest.$objext"; then
14451 pre_test_object_deps_done=yes
14452 continue
14455 if test "$pre_test_object_deps_done" = no; then
14456 if test -z "$predep_objects_CXX"; then
14457 predep_objects_CXX="$p"
14458 else
14459 predep_objects_CXX="$predep_objects_CXX $p"
14461 else
14462 if test -z "$postdep_objects_CXX"; then
14463 postdep_objects_CXX="$p"
14464 else
14465 postdep_objects_CXX="$postdep_objects_CXX $p"
14470 *) ;; # Ignore the rest.
14472 esac
14473 done
14475 # Clean up.
14476 rm -f a.out a.exe
14477 else
14478 echo "libtool.m4: error: problem compiling CXX test program"
14481 $RM -f confest.$objext
14483 # PORTME: override above test on systems where it is broken
14484 case $host_os in
14485 interix[3-9]*)
14486 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14487 # hack all around it, let's just trust "g++" to DTRT.
14488 predep_objects_CXX=
14489 postdep_objects_CXX=
14490 postdeps_CXX=
14493 linux*)
14494 case `$CC -V 2>&1 | sed 5q` in
14495 *Sun\ C*)
14496 # Sun C++ 5.9
14498 # The more standards-conforming stlport4 library is
14499 # incompatible with the Cstd library. Avoid specifying
14500 # it if it's in CXXFLAGS. Ignore libCrun as
14501 # -library=stlport4 depends on it.
14502 case " $CXX $CXXFLAGS " in
14503 *" -library=stlport4 "*)
14504 solaris_use_stlport4=yes
14506 esac
14508 if test "$solaris_use_stlport4" != yes; then
14509 postdeps_CXX='-library=Cstd -library=Crun'
14512 esac
14515 solaris*)
14516 case $cc_basename in
14517 CC*)
14518 # The more standards-conforming stlport4 library is
14519 # incompatible with the Cstd library. Avoid specifying
14520 # it if it's in CXXFLAGS. Ignore libCrun as
14521 # -library=stlport4 depends on it.
14522 case " $CXX $CXXFLAGS " in
14523 *" -library=stlport4 "*)
14524 solaris_use_stlport4=yes
14526 esac
14528 # Adding this requires a known-good setup of shared libraries for
14529 # Sun compiler versions before 5.6, else PIC objects from an old
14530 # archive will be linked into the output, leading to subtle bugs.
14531 if test "$solaris_use_stlport4" != yes; then
14532 postdeps_CXX='-library=Cstd -library=Crun'
14535 esac
14537 esac
14540 case " $postdeps_CXX " in
14541 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14542 esac
14543 compiler_lib_search_dirs_CXX=
14544 if test -n "${compiler_lib_search_path_CXX}"; then
14545 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14578 lt_prog_compiler_wl_CXX=
14579 lt_prog_compiler_pic_CXX=
14580 lt_prog_compiler_static_CXX=
14582 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14583 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14585 # C++ specific cases for pic, static, wl, etc.
14586 if test "$GXX" = yes; then
14587 lt_prog_compiler_wl_CXX='-Wl,'
14588 lt_prog_compiler_static_CXX='-static'
14590 case $host_os in
14591 aix*)
14592 # All AIX code is PIC.
14593 if test "$host_cpu" = ia64; then
14594 # AIX 5 now supports IA64 processor
14595 lt_prog_compiler_static_CXX='-Bstatic'
14599 amigaos*)
14600 case $host_cpu in
14601 powerpc)
14602 # see comment about AmigaOS4 .so support
14603 lt_prog_compiler_pic_CXX='-fPIC'
14605 m68k)
14606 # FIXME: we need at least 68020 code to build shared libraries, but
14607 # adding the `-m68020' flag to GCC prevents building anything better,
14608 # like `-m68040'.
14609 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14611 esac
14614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14615 # PIC is the default for these OSes.
14617 mingw* | cygwin* | os2* | pw32* | cegcc*)
14618 # This hack is so that the source file can tell whether it is being
14619 # built for inclusion in a dll (and should export symbols for example).
14620 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14621 # (--disable-auto-import) libraries
14622 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14624 darwin* | rhapsody*)
14625 # PIC is the default on this platform
14626 # Common symbols not allowed in MH_DYLIB files
14627 lt_prog_compiler_pic_CXX='-fno-common'
14629 *djgpp*)
14630 # DJGPP does not support shared libraries at all
14631 lt_prog_compiler_pic_CXX=
14633 interix[3-9]*)
14634 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14635 # Instead, we relocate shared libraries at runtime.
14637 sysv4*MP*)
14638 if test -d /usr/nec; then
14639 lt_prog_compiler_pic_CXX=-Kconform_pic
14642 hpux*)
14643 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14644 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14645 # sets the default TLS model and affects inlining.
14646 case $host_cpu in
14647 hppa*64*)
14650 lt_prog_compiler_pic_CXX='-fPIC'
14652 esac
14654 *qnx* | *nto*)
14655 # QNX uses GNU C++, but need to define -shared option too, otherwise
14656 # it will coredump.
14657 lt_prog_compiler_pic_CXX='-fPIC -shared'
14660 lt_prog_compiler_pic_CXX='-fPIC'
14662 esac
14663 else
14664 case $host_os in
14665 aix[4-9]*)
14666 # All AIX code is PIC.
14667 if test "$host_cpu" = ia64; then
14668 # AIX 5 now supports IA64 processor
14669 lt_prog_compiler_static_CXX='-Bstatic'
14670 else
14671 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14674 chorus*)
14675 case $cc_basename in
14676 cxch68*)
14677 # Green Hills C++ Compiler
14678 # _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"
14680 esac
14682 dgux*)
14683 case $cc_basename in
14684 ec++*)
14685 lt_prog_compiler_pic_CXX='-KPIC'
14687 ghcx*)
14688 # Green Hills C++ Compiler
14689 lt_prog_compiler_pic_CXX='-pic'
14693 esac
14695 freebsd* | dragonfly*)
14696 # FreeBSD uses GNU C++
14698 hpux9* | hpux10* | hpux11*)
14699 case $cc_basename in
14700 CC*)
14701 lt_prog_compiler_wl_CXX='-Wl,'
14702 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14703 if test "$host_cpu" != ia64; then
14704 lt_prog_compiler_pic_CXX='+Z'
14707 aCC*)
14708 lt_prog_compiler_wl_CXX='-Wl,'
14709 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14710 case $host_cpu in
14711 hppa*64*|ia64*)
14712 # +Z the default
14715 lt_prog_compiler_pic_CXX='+Z'
14717 esac
14721 esac
14723 interix*)
14724 # This is c89, which is MS Visual C++ (no shared libs)
14725 # Anyone wants to do a port?
14727 irix5* | irix6* | nonstopux*)
14728 case $cc_basename in
14729 CC*)
14730 lt_prog_compiler_wl_CXX='-Wl,'
14731 lt_prog_compiler_static_CXX='-non_shared'
14732 # CC pic flag -KPIC is the default.
14736 esac
14738 linux* | k*bsd*-gnu)
14739 case $cc_basename in
14740 KCC*)
14741 # KAI C++ Compiler
14742 lt_prog_compiler_wl_CXX='--backend -Wl,'
14743 lt_prog_compiler_pic_CXX='-fPIC'
14745 ecpc* )
14746 # old Intel C++ for x86_64 which still supported -KPIC.
14747 lt_prog_compiler_wl_CXX='-Wl,'
14748 lt_prog_compiler_pic_CXX='-KPIC'
14749 lt_prog_compiler_static_CXX='-static'
14751 icpc* )
14752 # Intel C++, used to be incompatible with GCC.
14753 # ICC 10 doesn't accept -KPIC any more.
14754 lt_prog_compiler_wl_CXX='-Wl,'
14755 lt_prog_compiler_pic_CXX='-fPIC'
14756 lt_prog_compiler_static_CXX='-static'
14758 pgCC* | pgcpp*)
14759 # Portland Group C++ compiler
14760 lt_prog_compiler_wl_CXX='-Wl,'
14761 lt_prog_compiler_pic_CXX='-fpic'
14762 lt_prog_compiler_static_CXX='-Bstatic'
14764 cxx*)
14765 # Compaq C++
14766 # Make sure the PIC flag is empty. It appears that all Alpha
14767 # Linux and Compaq Tru64 Unix objects are PIC.
14768 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_static_CXX='-non_shared'
14771 xlc* | xlC*)
14772 # IBM XL 8.0 on PPC
14773 lt_prog_compiler_wl_CXX='-Wl,'
14774 lt_prog_compiler_pic_CXX='-qpic'
14775 lt_prog_compiler_static_CXX='-qstaticlink'
14778 case `$CC -V 2>&1 | sed 5q` in
14779 *Sun\ C*)
14780 # Sun C++ 5.9
14781 lt_prog_compiler_pic_CXX='-KPIC'
14782 lt_prog_compiler_static_CXX='-Bstatic'
14783 lt_prog_compiler_wl_CXX='-Qoption ld '
14785 esac
14787 esac
14789 lynxos*)
14791 m88k*)
14793 mvs*)
14794 case $cc_basename in
14795 cxx*)
14796 lt_prog_compiler_pic_CXX='-W c,exportall'
14800 esac
14802 netbsd*)
14804 *qnx* | *nto*)
14805 # QNX uses GNU C++, but need to define -shared option too, otherwise
14806 # it will coredump.
14807 lt_prog_compiler_pic_CXX='-fPIC -shared'
14809 osf3* | osf4* | osf5*)
14810 case $cc_basename in
14811 KCC*)
14812 lt_prog_compiler_wl_CXX='--backend -Wl,'
14814 RCC*)
14815 # Rational C++ 2.4.1
14816 lt_prog_compiler_pic_CXX='-pic'
14818 cxx*)
14819 # Digital/Compaq C++
14820 lt_prog_compiler_wl_CXX='-Wl,'
14821 # Make sure the PIC flag is empty. It appears that all Alpha
14822 # Linux and Compaq Tru64 Unix objects are PIC.
14823 lt_prog_compiler_pic_CXX=
14824 lt_prog_compiler_static_CXX='-non_shared'
14828 esac
14830 psos*)
14832 solaris*)
14833 case $cc_basename in
14834 CC*)
14835 # Sun C++ 4.2, 5.x and Centerline C++
14836 lt_prog_compiler_pic_CXX='-KPIC'
14837 lt_prog_compiler_static_CXX='-Bstatic'
14838 lt_prog_compiler_wl_CXX='-Qoption ld '
14840 gcx*)
14841 # Green Hills C++ Compiler
14842 lt_prog_compiler_pic_CXX='-PIC'
14846 esac
14848 sunos4*)
14849 case $cc_basename in
14850 CC*)
14851 # Sun C++ 4.x
14852 lt_prog_compiler_pic_CXX='-pic'
14853 lt_prog_compiler_static_CXX='-Bstatic'
14855 lcc*)
14856 # Lucid
14857 lt_prog_compiler_pic_CXX='-pic'
14861 esac
14863 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14864 case $cc_basename in
14865 CC*)
14866 lt_prog_compiler_wl_CXX='-Wl,'
14867 lt_prog_compiler_pic_CXX='-KPIC'
14868 lt_prog_compiler_static_CXX='-Bstatic'
14870 esac
14872 tandem*)
14873 case $cc_basename in
14874 NCC*)
14875 # NonStop-UX NCC 3.20
14876 lt_prog_compiler_pic_CXX='-KPIC'
14880 esac
14882 vxworks*)
14885 lt_prog_compiler_can_build_shared_CXX=no
14887 esac
14890 case $host_os in
14891 # For platforms which do not support PIC, -DPIC is meaningless:
14892 *djgpp*)
14893 lt_prog_compiler_pic_CXX=
14896 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14898 esac
14899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14900 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14905 # Check to make sure the PIC flag actually works.
14907 if test -n "$lt_prog_compiler_pic_CXX"; then
14908 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14909 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14910 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14911 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 else
14913 lt_cv_prog_compiler_pic_works_CXX=no
14914 ac_outfile=conftest.$ac_objext
14915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14916 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14917 # Insert the option either (1) after the last *FLAGS variable, or
14918 # (2) before a word containing "conftest.", or (3) at the end.
14919 # Note that $ac_compile itself does not contain backslashes and begins
14920 # with a dollar sign (not a hyphen), so the echo should work correctly.
14921 # The option is referenced via a variable to avoid confusing sed.
14922 lt_compile=`echo "$ac_compile" | $SED \
14923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14925 -e 's:$: $lt_compiler_flag:'`
14926 (eval echo "\"\$as_me:14926: $lt_compile\"" >&5)
14927 (eval "$lt_compile" 2>conftest.err)
14928 ac_status=$?
14929 cat conftest.err >&5
14930 echo "$as_me:14930: \$? = $ac_status" >&5
14931 if (exit $ac_status) && test -s "$ac_outfile"; then
14932 # The compiler can only warn and ignore the option if not recognized
14933 # So say no if there are warnings other than the usual output.
14934 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14937 lt_cv_prog_compiler_pic_works_CXX=yes
14940 $RM conftest*
14943 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14944 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
14946 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14947 case $lt_prog_compiler_pic_CXX in
14948 "" | " "*) ;;
14949 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14950 esac
14951 else
14952 lt_prog_compiler_pic_CXX=
14953 lt_prog_compiler_can_build_shared_CXX=no
14961 # Check to make sure the static flag actually works.
14963 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14964 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14965 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14966 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969 lt_cv_prog_compiler_static_works_CXX=no
14970 save_LDFLAGS="$LDFLAGS"
14971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14972 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14974 # The linker can only warn and ignore the option if not recognized
14975 # So say no if there are warnings
14976 if test -s conftest.err; then
14977 # Append any errors to the config.log.
14978 cat conftest.err 1>&5
14979 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14981 if diff conftest.exp conftest.er2 >/dev/null; then
14982 lt_cv_prog_compiler_static_works_CXX=yes
14984 else
14985 lt_cv_prog_compiler_static_works_CXX=yes
14988 $RM -r conftest*
14989 LDFLAGS="$save_LDFLAGS"
14992 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14993 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
14995 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14997 else
14998 lt_prog_compiler_static_CXX=
15004 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15005 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15006 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15008 else
15009 lt_cv_prog_compiler_c_o_CXX=no
15010 $RM -r conftest 2>/dev/null
15011 mkdir conftest
15012 cd conftest
15013 mkdir out
15014 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15016 lt_compiler_flag="-o out/conftest2.$ac_objext"
15017 # Insert the option either (1) after the last *FLAGS variable, or
15018 # (2) before a word containing "conftest.", or (3) at the end.
15019 # Note that $ac_compile itself does not contain backslashes and begins
15020 # with a dollar sign (not a hyphen), so the echo should work correctly.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
15025 (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
15026 (eval "$lt_compile" 2>out/conftest.err)
15027 ac_status=$?
15028 cat out/conftest.err >&5
15029 echo "$as_me:15029: \$? = $ac_status" >&5
15030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15031 then
15032 # The compiler can only warn and ignore the option if not recognized
15033 # So say no if there are warnings
15034 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15035 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15036 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15037 lt_cv_prog_compiler_c_o_CXX=yes
15040 chmod u+w . 2>&5
15041 $RM conftest*
15042 # SGI C++ compiler will create directory out/ii_files/ for
15043 # template instantiation
15044 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15045 $RM out/* && rmdir out
15046 cd ..
15047 $RM -r conftest
15048 $RM conftest*
15051 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15052 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15056 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15057 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15058 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15059 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 else
15061 lt_cv_prog_compiler_c_o_CXX=no
15062 $RM -r conftest 2>/dev/null
15063 mkdir conftest
15064 cd conftest
15065 mkdir out
15066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15068 lt_compiler_flag="-o out/conftest2.$ac_objext"
15069 # Insert the option either (1) after the last *FLAGS variable, or
15070 # (2) before a word containing "conftest.", or (3) at the end.
15071 # Note that $ac_compile itself does not contain backslashes and begins
15072 # with a dollar sign (not a hyphen), so the echo should work correctly.
15073 lt_compile=`echo "$ac_compile" | $SED \
15074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15076 -e 's:$: $lt_compiler_flag:'`
15077 (eval echo "\"\$as_me:15077: $lt_compile\"" >&5)
15078 (eval "$lt_compile" 2>out/conftest.err)
15079 ac_status=$?
15080 cat out/conftest.err >&5
15081 echo "$as_me:15081: \$? = $ac_status" >&5
15082 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15083 then
15084 # The compiler can only warn and ignore the option if not recognized
15085 # So say no if there are warnings
15086 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15087 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15088 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15089 lt_cv_prog_compiler_c_o_CXX=yes
15092 chmod u+w . 2>&5
15093 $RM conftest*
15094 # SGI C++ compiler will create directory out/ii_files/ for
15095 # template instantiation
15096 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15097 $RM out/* && rmdir out
15098 cd ..
15099 $RM -r conftest
15100 $RM conftest*
15103 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15104 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
15109 hard_links="nottested"
15110 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15111 # do not overwrite the value of need_locks provided by the user
15112 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15114 hard_links=yes
15115 $RM conftest*
15116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15117 touch conftest.a
15118 ln conftest.a conftest.b 2>&5 || hard_links=no
15119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15120 echo "$as_me:$LINENO: result: $hard_links" >&5
15121 echo "${ECHO_T}$hard_links" >&6
15122 if test "$hard_links" = no; then
15123 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15125 need_locks=warn
15127 else
15128 need_locks=no
15133 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15134 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15136 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15137 case $host_os in
15138 aix[4-9]*)
15139 # If we're using GNU nm, then we don't want the "-C" option.
15140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15141 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15142 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'
15143 else
15144 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'
15147 pw32*)
15148 export_symbols_cmds_CXX="$ltdll_cmds"
15150 cygwin* | mingw* | cegcc*)
15151 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'
15154 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15156 esac
15157 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15159 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15160 echo "${ECHO_T}$ld_shlibs_CXX" >&6
15161 test "$ld_shlibs_CXX" = no && can_build_shared=no
15163 with_gnu_ld_CXX=$with_gnu_ld
15171 # Do we need to explicitly link libc?
15173 case "x$archive_cmds_need_lc_CXX" in
15174 x|xyes)
15175 # Assume -lc should be added
15176 archive_cmds_need_lc_CXX=yes
15178 if test "$enable_shared" = yes && test "$GCC" = yes; then
15179 case $archive_cmds_CXX in
15180 *'~'*)
15181 # FIXME: we may have to deal with multi-command sequences.
15183 '$CC '*)
15184 # Test whether the compiler implicitly links with -lc since on some
15185 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15186 # to ld, don't add -lc before -lgcc.
15187 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15188 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15189 $RM conftest*
15190 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15194 ac_status=$?
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); } 2>conftest.err; then
15197 soname=conftest
15198 lib=conftest
15199 libobjs=conftest.$ac_objext
15200 deplibs=
15201 wl=$lt_prog_compiler_wl_CXX
15202 pic_flag=$lt_prog_compiler_pic_CXX
15203 compiler_flags=-v
15204 linker_flags=-v
15205 verstring=
15206 output_objdir=.
15207 libname=conftest
15208 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15209 allow_undefined_flag_CXX=
15210 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15211 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15212 ac_status=$?
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }
15215 then
15216 archive_cmds_need_lc_CXX=no
15217 else
15218 archive_cmds_need_lc_CXX=yes
15220 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15221 else
15222 cat conftest.err 1>&5
15224 $RM conftest*
15225 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15226 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
15228 esac
15231 esac
15296 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15299 library_names_spec=
15300 libname_spec='lib$name'
15301 soname_spec=
15302 shrext_cmds=".so"
15303 postinstall_cmds=
15304 postuninstall_cmds=
15305 finish_cmds=
15306 finish_eval=
15307 shlibpath_var=
15308 shlibpath_overrides_runpath=unknown
15309 version_type=none
15310 dynamic_linker="$host_os ld.so"
15311 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15312 need_lib_prefix=unknown
15313 hardcode_into_libs=no
15315 # when you set need_version to no, make sure it does not cause -set_version
15316 # flags to be left without arguments
15317 need_version=unknown
15319 case $host_os in
15320 aix3*)
15321 version_type=linux
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15323 shlibpath_var=LIBPATH
15325 # AIX 3 has no versioning support, so we append a major version to the name.
15326 soname_spec='${libname}${release}${shared_ext}$major'
15329 aix[4-9]*)
15330 version_type=linux
15331 need_lib_prefix=no
15332 need_version=no
15333 hardcode_into_libs=yes
15334 if test "$host_cpu" = ia64; then
15335 # AIX 5 supports IA64
15336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 else
15339 # With GCC up to 2.95.x, collect2 would create an import file
15340 # for dependence libraries. The import file would start with
15341 # the line `#! .'. This would cause the generated library to
15342 # depend on `.', always an invalid library. This was fixed in
15343 # development snapshots of GCC prior to 3.0.
15344 case $host_os in
15345 aix4 | aix4.[01] | aix4.[01].*)
15346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15347 echo ' yes '
15348 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15350 else
15351 can_build_shared=no
15354 esac
15355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15356 # soname into executable. Probably we can add versioning support to
15357 # collect2, so additional links can be useful in future.
15358 if test "$aix_use_runtimelinking" = yes; then
15359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15360 # instead of lib<name>.a to let people know that these are not
15361 # typical AIX shared libraries.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 else
15364 # We preserve .a as extension for shared libraries through AIX4.2
15365 # and later when we are not doing run time linking.
15366 library_names_spec='${libname}${release}.a $libname.a'
15367 soname_spec='${libname}${release}${shared_ext}$major'
15369 shlibpath_var=LIBPATH
15373 amigaos*)
15374 case $host_cpu in
15375 powerpc)
15376 # Since July 2007 AmigaOS4 officially supports .so libraries.
15377 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 m68k)
15381 library_names_spec='$libname.ixlibrary $libname.a'
15382 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15383 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'
15385 esac
15388 beos*)
15389 library_names_spec='${libname}${shared_ext}'
15390 dynamic_linker="$host_os ld.so"
15391 shlibpath_var=LIBRARY_PATH
15394 bsdi[45]*)
15395 version_type=linux
15396 need_version=no
15397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15398 soname_spec='${libname}${release}${shared_ext}$major'
15399 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15400 shlibpath_var=LD_LIBRARY_PATH
15401 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15402 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15403 # the default ld.so.conf also contains /usr/contrib/lib and
15404 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15405 # libtool to hard-code these into programs
15408 cygwin* | mingw* | pw32* | cegcc*)
15409 version_type=windows
15410 shrext_cmds=".dll"
15411 need_version=no
15412 need_lib_prefix=no
15414 case $GCC,$host_os in
15415 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15416 library_names_spec='$libname.dll.a'
15417 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15418 postinstall_cmds='base_file=`basename \${file}`~
15419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15420 dldir=$destdir/`dirname \$dlpath`~
15421 test -d \$dldir || mkdir -p \$dldir~
15422 $install_prog $dir/$dlname \$dldir/$dlname~
15423 chmod a+x \$dldir/$dlname~
15424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15428 dlpath=$dir/\$dldll~
15429 $RM \$dlpath'
15430 shlibpath_overrides_runpath=yes
15432 case $host_os in
15433 cygwin*)
15434 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15435 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15438 mingw* | cegcc*)
15439 # MinGW DLLs use traditional 'lib' prefix
15440 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15441 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15442 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15443 # It is most probably a Windows format PATH printed by
15444 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15445 # path with ; separators, and with drive letters. We can handle the
15446 # drive letters (cygwin fileutils understands them), so leave them,
15447 # especially as we might pass files found there to a mingw objdump,
15448 # which wouldn't understand a cygwinified path. Ahh.
15449 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15450 else
15451 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15454 pw32*)
15455 # pw32 DLLs use 'pw' prefix rather than 'lib'
15456 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15458 esac
15462 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15464 esac
15465 dynamic_linker='Win32 ld.exe'
15466 # FIXME: first we should search . and the directory the executable is in
15467 shlibpath_var=PATH
15470 darwin* | rhapsody*)
15471 dynamic_linker="$host_os dyld"
15472 version_type=darwin
15473 need_lib_prefix=no
15474 need_version=no
15475 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15476 soname_spec='${libname}${release}${major}$shared_ext'
15477 shlibpath_overrides_runpath=yes
15478 shlibpath_var=DYLD_LIBRARY_PATH
15479 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15481 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15484 dgux*)
15485 version_type=linux
15486 need_lib_prefix=no
15487 need_version=no
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 shlibpath_var=LD_LIBRARY_PATH
15493 freebsd1*)
15494 dynamic_linker=no
15497 freebsd* | dragonfly*)
15498 # DragonFly does not have aout. When/if they implement a new
15499 # versioning mechanism, adjust this.
15500 if test -x /usr/bin/objformat; then
15501 objformat=`/usr/bin/objformat`
15502 else
15503 case $host_os in
15504 freebsd[123]*) objformat=aout ;;
15505 *) objformat=elf ;;
15506 esac
15508 version_type=freebsd-$objformat
15509 case $version_type in
15510 freebsd-elf*)
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15512 need_version=no
15513 need_lib_prefix=no
15515 freebsd-*)
15516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15517 need_version=yes
15519 esac
15520 shlibpath_var=LD_LIBRARY_PATH
15521 case $host_os in
15522 freebsd2*)
15523 shlibpath_overrides_runpath=yes
15525 freebsd3.[01]* | freebsdelf3.[01]*)
15526 shlibpath_overrides_runpath=yes
15527 hardcode_into_libs=yes
15529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15531 shlibpath_overrides_runpath=no
15532 hardcode_into_libs=yes
15534 *) # from 4.6 on, and DragonFly
15535 shlibpath_overrides_runpath=yes
15536 hardcode_into_libs=yes
15538 esac
15541 gnu*)
15542 version_type=linux
15543 need_lib_prefix=no
15544 need_version=no
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 shlibpath_var=LD_LIBRARY_PATH
15548 hardcode_into_libs=yes
15551 hpux9* | hpux10* | hpux11*)
15552 # Give a soname corresponding to the major version so that dld.sl refuses to
15553 # link against other versions.
15554 version_type=sunos
15555 need_lib_prefix=no
15556 need_version=no
15557 case $host_cpu in
15558 ia64*)
15559 shrext_cmds='.so'
15560 hardcode_into_libs=yes
15561 dynamic_linker="$host_os dld.so"
15562 shlibpath_var=LD_LIBRARY_PATH
15563 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 if test "X$HPUX_IA64_MODE" = X32; then
15567 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15568 else
15569 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573 hppa*64*)
15574 shrext_cmds='.sl'
15575 hardcode_into_libs=yes
15576 dynamic_linker="$host_os dld.sl"
15577 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15580 soname_spec='${libname}${release}${shared_ext}$major'
15581 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15582 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15585 shrext_cmds='.sl'
15586 dynamic_linker="$host_os dld.sl"
15587 shlibpath_var=SHLIB_PATH
15588 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15592 esac
15593 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15594 postinstall_cmds='chmod 555 $lib'
15597 interix[3-9]*)
15598 version_type=linux
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=no
15606 hardcode_into_libs=yes
15609 irix5* | irix6* | nonstopux*)
15610 case $host_os in
15611 nonstopux*) version_type=nonstopux ;;
15613 if test "$lt_cv_prog_gnu_ld" = yes; then
15614 version_type=linux
15615 else
15616 version_type=irix
15617 fi ;;
15618 esac
15619 need_lib_prefix=no
15620 need_version=no
15621 soname_spec='${libname}${release}${shared_ext}$major'
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15623 case $host_os in
15624 irix5* | nonstopux*)
15625 libsuff= shlibsuff=
15628 case $LD in # libtool.m4 will add one of these switches to LD
15629 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15630 libsuff= shlibsuff= libmagic=32-bit;;
15631 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15632 libsuff=32 shlibsuff=N32 libmagic=N32;;
15633 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15634 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15635 *) libsuff= shlibsuff= libmagic=never-match;;
15636 esac
15638 esac
15639 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15640 shlibpath_overrides_runpath=no
15641 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15642 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15643 hardcode_into_libs=yes
15646 # No shared lib support for Linux oldld, aout, or coff.
15647 linux*oldld* | linux*aout* | linux*coff*)
15648 dynamic_linker=no
15651 # This must be Linux ELF.
15652 linux* | k*bsd*-gnu)
15653 version_type=linux
15654 need_lib_prefix=no
15655 need_version=no
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=no
15661 # Some binutils ld are patched to set DT_RUNPATH
15662 save_LDFLAGS=$LDFLAGS
15663 save_libdir=$libdir
15664 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15665 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15666 if test x$gcc_no_link = xyes; then
15667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15669 { (exit 1); exit 1; }; }
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h. */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15679 main ()
15683 return 0;
15685 _ACEOF
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_cxx_werror_flag"
15696 || test ! -s conftest.err'
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest$ac_exeext'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15709 shlibpath_overrides_runpath=yes
15712 else
15713 echo "$as_me: failed program was:" >&5
15714 sed 's/^/| /' conftest.$ac_ext >&5
15717 rm -f conftest.err conftest.$ac_objext \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LDFLAGS=$save_LDFLAGS
15720 libdir=$save_libdir
15722 # This implies no fast_install, which is unacceptable.
15723 # Some rework will be needed to allow for fast_install
15724 # before this can be enabled.
15725 hardcode_into_libs=yes
15727 # Append ld.so.conf contents to the search path
15728 if test -f /etc/ld.so.conf; then
15729 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15730 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15733 # We used to test for /lib/ld.so.1 and disable shared libraries on
15734 # powerpc, because MkLinux only supported shared libraries with the
15735 # GNU dynamic linker. Since this was broken with cross compilers,
15736 # most powerpc-linux boxes support dynamic linking these days and
15737 # people can always --disable-shared, the test was removed, and we
15738 # assume the GNU/Linux dynamic linker is in use.
15739 dynamic_linker='GNU/Linux ld.so'
15742 netbsd*)
15743 version_type=sunos
15744 need_lib_prefix=no
15745 need_version=no
15746 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15749 dynamic_linker='NetBSD (a.out) ld.so'
15750 else
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 dynamic_linker='NetBSD ld.elf_so'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 shlibpath_overrides_runpath=yes
15757 hardcode_into_libs=yes
15760 newsos6)
15761 version_type=linux
15762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15763 shlibpath_var=LD_LIBRARY_PATH
15764 shlibpath_overrides_runpath=yes
15767 *nto* | *qnx*)
15768 version_type=qnx
15769 need_lib_prefix=no
15770 need_version=no
15771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15772 soname_spec='${libname}${release}${shared_ext}$major'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=no
15775 hardcode_into_libs=yes
15776 dynamic_linker='ldqnx.so'
15779 openbsd*)
15780 version_type=sunos
15781 sys_lib_dlsearch_path_spec="/usr/lib"
15782 need_lib_prefix=no
15783 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15784 case $host_os in
15785 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15786 *) need_version=no ;;
15787 esac
15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15792 case $host_os in
15793 openbsd2.[89] | openbsd2.[89].*)
15794 shlibpath_overrides_runpath=no
15797 shlibpath_overrides_runpath=yes
15799 esac
15800 else
15801 shlibpath_overrides_runpath=yes
15805 os2*)
15806 libname_spec='$name'
15807 shrext_cmds=".dll"
15808 need_lib_prefix=no
15809 library_names_spec='$libname${shared_ext} $libname.a'
15810 dynamic_linker='OS/2 ld.exe'
15811 shlibpath_var=LIBPATH
15814 osf3* | osf4* | osf5*)
15815 version_type=osf
15816 need_lib_prefix=no
15817 need_version=no
15818 soname_spec='${libname}${release}${shared_ext}$major'
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15820 shlibpath_var=LD_LIBRARY_PATH
15821 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15822 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15825 rdos*)
15826 dynamic_linker=no
15829 solaris*)
15830 version_type=linux
15831 need_lib_prefix=no
15832 need_version=no
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15835 shlibpath_var=LD_LIBRARY_PATH
15836 shlibpath_overrides_runpath=yes
15837 hardcode_into_libs=yes
15838 # ldd complains unless libraries are executable
15839 postinstall_cmds='chmod +x $lib'
15842 sunos4*)
15843 version_type=sunos
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15845 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15846 shlibpath_var=LD_LIBRARY_PATH
15847 shlibpath_overrides_runpath=yes
15848 if test "$with_gnu_ld" = yes; then
15849 need_lib_prefix=no
15851 need_version=yes
15854 sysv4 | sysv4.3*)
15855 version_type=linux
15856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 shlibpath_var=LD_LIBRARY_PATH
15859 case $host_vendor in
15860 sni)
15861 shlibpath_overrides_runpath=no
15862 need_lib_prefix=no
15863 runpath_var=LD_RUN_PATH
15865 siemens)
15866 need_lib_prefix=no
15868 motorola)
15869 need_lib_prefix=no
15870 need_version=no
15871 shlibpath_overrides_runpath=no
15872 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15874 esac
15877 sysv4*MP*)
15878 if test -d /usr/nec ;then
15879 version_type=linux
15880 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15881 soname_spec='$libname${shared_ext}.$major'
15882 shlibpath_var=LD_LIBRARY_PATH
15886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15887 version_type=freebsd-elf
15888 need_lib_prefix=no
15889 need_version=no
15890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
15892 shlibpath_var=LD_LIBRARY_PATH
15893 shlibpath_overrides_runpath=yes
15894 hardcode_into_libs=yes
15895 if test "$with_gnu_ld" = yes; then
15896 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15897 else
15898 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15899 case $host_os in
15900 sco3.2v5*)
15901 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15903 esac
15905 sys_lib_dlsearch_path_spec='/usr/lib'
15908 tpf*)
15909 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15910 version_type=linux
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 shlibpath_var=LD_LIBRARY_PATH
15915 shlibpath_overrides_runpath=no
15916 hardcode_into_libs=yes
15919 uts4*)
15920 version_type=linux
15921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15922 soname_spec='${libname}${release}${shared_ext}$major'
15923 shlibpath_var=LD_LIBRARY_PATH
15927 dynamic_linker=no
15929 esac
15930 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15931 echo "${ECHO_T}$dynamic_linker" >&6
15932 test "$dynamic_linker" = no && can_build_shared=no
15934 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15935 if test "$GCC" = yes; then
15936 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15939 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15940 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15942 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15943 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15981 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15982 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15983 hardcode_action_CXX=
15984 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15985 test -n "$runpath_var_CXX" ||
15986 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15988 # We can hardcode non-existent directories.
15989 if test "$hardcode_direct_CXX" != no &&
15990 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15991 # have to relink, otherwise we might link with an installed library
15992 # when we should be linking with a yet-to-be-installed one
15993 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15994 test "$hardcode_minus_L_CXX" != no; then
15995 # Linking always hardcodes the temporary library directory.
15996 hardcode_action_CXX=relink
15997 else
15998 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15999 hardcode_action_CXX=immediate
16001 else
16002 # We cannot hardcode anything, or else we can only hardcode existing
16003 # directories.
16004 hardcode_action_CXX=unsupported
16006 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16007 echo "${ECHO_T}$hardcode_action_CXX" >&6
16009 if test "$hardcode_action_CXX" = relink ||
16010 test "$inherit_rpath_CXX" = yes; then
16011 # Fast installation is not supported
16012 enable_fast_install=no
16013 elif test "$shlibpath_overrides_runpath" = yes ||
16014 test "$enable_shared" = no; then
16015 # Fast installation is not necessary
16016 enable_fast_install=needless
16025 fi # test -n "$compiler"
16027 CC=$lt_save_CC
16028 LDCXX=$LD
16029 LD=$lt_save_LD
16030 GCC=$lt_save_GCC
16031 with_gnu_ld=$lt_save_with_gnu_ld
16032 lt_cv_path_LDCXX=$lt_cv_path_LD
16033 lt_cv_path_LD=$lt_save_path_LD
16034 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16035 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16036 fi # test "$_lt_caught_CXX_error" != yes
16038 ac_ext=c
16039 ac_cpp='$CPP $CPPFLAGS'
16040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16056 ac_config_commands="$ac_config_commands libtool"
16061 # Only expand once:
16065 for ac_prog in gcj
16067 # Extract the first word of "$ac_prog", so it can be a program name with args.
16068 set dummy $ac_prog; ac_word=$2
16069 echo "$as_me:$LINENO: checking for $ac_word" >&5
16070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16071 if test "${ac_cv_prog_GCJ+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 else
16074 if test -n "$GCJ"; then
16075 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16076 else
16077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16078 for as_dir in $PATH
16080 IFS=$as_save_IFS
16081 test -z "$as_dir" && as_dir=.
16082 for ac_exec_ext in '' $ac_executable_extensions; do
16083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16084 ac_cv_prog_GCJ="$ac_prog"
16085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16086 break 2
16088 done
16089 done
16093 GCJ=$ac_cv_prog_GCJ
16094 if test -n "$GCJ"; then
16095 echo "$as_me:$LINENO: result: $GCJ" >&5
16096 echo "${ECHO_T}$GCJ" >&6
16097 else
16098 echo "$as_me:$LINENO: result: no" >&5
16099 echo "${ECHO_T}no" >&6
16102 test -n "$GCJ" && break
16103 done
16104 test -n "$GCJ" || GCJ="gcj"
16106 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16107 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16108 { (exit 1); exit 1; }; }
16109 if test "x${GCJFLAGS-unset}" = xunset; then
16110 GCJFLAGS="-g -O2"
16114 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16116 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16117 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16118 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16122 # We make a subdir and do the tests there. Otherwise we can end up
16123 # making bogus files that we don't know about and never remove. For
16124 # instance it was reported that on HP-UX the gcc test will end up
16125 # making a dummy file named `D' -- because `-MD' means `put the output
16126 # in D'.
16127 mkdir conftest.dir
16128 # Copy depcomp to subdir because otherwise we won't find it if we're
16129 # using a relative directory.
16130 cp "$am_depcomp" conftest.dir
16131 cd conftest.dir
16132 # We will build objects and dependencies in a subdirectory because
16133 # it helps to detect inapplicable dependency modes. For instance
16134 # both Tru64's cc and ICC support -MD to output dependencies as a
16135 # side effect of compilation, but ICC will put the dependencies in
16136 # the current directory while Tru64 will put them in the object
16137 # directory.
16138 mkdir sub
16140 am_cv_GCJ_dependencies_compiler_type=none
16141 if test "$am_compiler_list" = ""; then
16142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16144 for depmode in $am_compiler_list; do
16145 # Setup a source with many dependencies, because some compilers
16146 # like to wrap large dependency lists on column 80 (with \), and
16147 # we should not choose a depcomp mode which is confused by this.
16149 # We need to recreate these files for each test, as the compiler may
16150 # overwrite some of them when testing with obscure command lines.
16151 # This happens at least with the AIX C compiler.
16152 : > sub/conftest.c
16153 for i in 1 2 3 4 5 6; do
16154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16156 # Solaris 8's {/usr,}/bin/sh.
16157 touch sub/conftst$i.h
16158 done
16159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16161 case $depmode in
16162 nosideeffect)
16163 # after this tag, mechanisms are not by side-effect, so they'll
16164 # only be used when explicitly requested
16165 if test "x$enable_dependency_tracking" = xyes; then
16166 continue
16167 else
16168 break
16171 none) break ;;
16172 esac
16173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16174 # mode. It turns out that the SunPro C++ compiler does not properly
16175 # handle `-M -o', and we need to detect this.
16176 if depmode=$depmode \
16177 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16178 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16179 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16180 >/dev/null 2>conftest.err &&
16181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16182 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16184 # icc doesn't choke on unknown options, it will just issue warnings
16185 # or remarks (even with -Werror). So we grep stderr for any message
16186 # that says an option was ignored or not supported.
16187 # When given -MP, icc 7.0 and 7.1 complain thusly:
16188 # icc: Command line warning: ignoring option '-M'; no argument required
16189 # The diagnosis changed in icc 8.0:
16190 # icc: Command line remark: option '-MP' not supported
16191 if (grep 'ignoring option' conftest.err ||
16192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16193 am_cv_GCJ_dependencies_compiler_type=$depmode
16194 break
16197 done
16199 cd ..
16200 rm -rf conftest.dir
16201 else
16202 am_cv_GCJ_dependencies_compiler_type=none
16206 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16207 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16208 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16213 test "x$enable_dependency_tracking" != xno \
16214 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16215 am__fastdepGCJ_TRUE=
16216 am__fastdepGCJ_FALSE='#'
16217 else
16218 am__fastdepGCJ_TRUE='#'
16219 am__fastdepGCJ_FALSE=
16224 for ac_prog in gcj
16226 # Extract the first word of "$ac_prog", so it can be a program name with args.
16227 set dummy $ac_prog; ac_word=$2
16228 echo "$as_me:$LINENO: checking for $ac_word" >&5
16229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16230 if test "${ac_cv_prog_GCJ+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16232 else
16233 if test -n "$GCJ"; then
16234 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16235 else
16236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16237 for as_dir in $PATH
16239 IFS=$as_save_IFS
16240 test -z "$as_dir" && as_dir=.
16241 for ac_exec_ext in '' $ac_executable_extensions; do
16242 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16243 ac_cv_prog_GCJ="$ac_prog"
16244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16245 break 2
16247 done
16248 done
16252 GCJ=$ac_cv_prog_GCJ
16253 if test -n "$GCJ"; then
16254 echo "$as_me:$LINENO: result: $GCJ" >&5
16255 echo "${ECHO_T}$GCJ" >&6
16256 else
16257 echo "$as_me:$LINENO: result: no" >&5
16258 echo "${ECHO_T}no" >&6
16261 test -n "$GCJ" && break
16262 done
16263 test -n "$GCJ" || GCJ="gcj"
16265 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
16266 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
16267 { (exit 1); exit 1; }; }
16268 if test "x${GCJFLAGS-unset}" = xunset; then
16269 GCJFLAGS="-g -O2"
16273 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16275 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
16276 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
16277 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
16278 echo $ECHO_N "(cached) $ECHO_C" >&6
16279 else
16280 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16281 # We make a subdir and do the tests there. Otherwise we can end up
16282 # making bogus files that we don't know about and never remove. For
16283 # instance it was reported that on HP-UX the gcc test will end up
16284 # making a dummy file named `D' -- because `-MD' means `put the output
16285 # in D'.
16286 mkdir conftest.dir
16287 # Copy depcomp to subdir because otherwise we won't find it if we're
16288 # using a relative directory.
16289 cp "$am_depcomp" conftest.dir
16290 cd conftest.dir
16291 # We will build objects and dependencies in a subdirectory because
16292 # it helps to detect inapplicable dependency modes. For instance
16293 # both Tru64's cc and ICC support -MD to output dependencies as a
16294 # side effect of compilation, but ICC will put the dependencies in
16295 # the current directory while Tru64 will put them in the object
16296 # directory.
16297 mkdir sub
16299 am_cv_GCJ_dependencies_compiler_type=none
16300 if test "$am_compiler_list" = ""; then
16301 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16303 for depmode in $am_compiler_list; do
16304 # Setup a source with many dependencies, because some compilers
16305 # like to wrap large dependency lists on column 80 (with \), and
16306 # we should not choose a depcomp mode which is confused by this.
16308 # We need to recreate these files for each test, as the compiler may
16309 # overwrite some of them when testing with obscure command lines.
16310 # This happens at least with the AIX C compiler.
16311 : > sub/conftest.c
16312 for i in 1 2 3 4 5 6; do
16313 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16314 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16315 # Solaris 8's {/usr,}/bin/sh.
16316 touch sub/conftst$i.h
16317 done
16318 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16320 case $depmode in
16321 nosideeffect)
16322 # after this tag, mechanisms are not by side-effect, so they'll
16323 # only be used when explicitly requested
16324 if test "x$enable_dependency_tracking" = xyes; then
16325 continue
16326 else
16327 break
16330 none) break ;;
16331 esac
16332 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16333 # mode. It turns out that the SunPro C++ compiler does not properly
16334 # handle `-M -o', and we need to detect this.
16335 if depmode=$depmode \
16336 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
16337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16338 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
16339 >/dev/null 2>conftest.err &&
16340 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16341 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
16342 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16343 # icc doesn't choke on unknown options, it will just issue warnings
16344 # or remarks (even with -Werror). So we grep stderr for any message
16345 # that says an option was ignored or not supported.
16346 # When given -MP, icc 7.0 and 7.1 complain thusly:
16347 # icc: Command line warning: ignoring option '-M'; no argument required
16348 # The diagnosis changed in icc 8.0:
16349 # icc: Command line remark: option '-MP' not supported
16350 if (grep 'ignoring option' conftest.err ||
16351 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16352 am_cv_GCJ_dependencies_compiler_type=$depmode
16353 break
16356 done
16358 cd ..
16359 rm -rf conftest.dir
16360 else
16361 am_cv_GCJ_dependencies_compiler_type=none
16365 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16366 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
16367 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16372 test "x$enable_dependency_tracking" != xno \
16373 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16374 am__fastdepGCJ_TRUE=
16375 am__fastdepGCJ_FALSE='#'
16376 else
16377 am__fastdepGCJ_TRUE='#'
16378 am__fastdepGCJ_FALSE=
16386 # Source file extension for Java test sources.
16387 ac_ext=c
16389 # Object file extension for compiled Java test sources.
16390 objext=o
16391 objext_GCJ=$objext
16393 # Code to be used in simple compile tests
16394 lt_simple_compile_test_code="int some_variable = 0;"
16396 # Code to be used in simple link tests
16397 lt_simple_link_test_code='int main(){return(0);}'
16399 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16406 # If no C compiler was specified, use CC.
16407 LTCC=${LTCC-"$CC"}
16409 # If no C compiler flags were specified, use CFLAGS.
16410 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16412 # Allow CC to be a program name with arguments.
16413 compiler=$CC
16416 # save warnings/boilerplate of simple test code
16417 ac_outfile=conftest.$ac_objext
16418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16420 _lt_compiler_boilerplate=`cat conftest.err`
16421 $RM conftest*
16423 ac_outfile=conftest.$ac_objext
16424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16426 _lt_linker_boilerplate=`cat conftest.err`
16427 $RM -r conftest*
16430 # Allow CC to be a program name with arguments.
16431 GCC=yes
16432 compiler=$CC
16433 compiler_GCJ=$CC
16434 for cc_temp in $compiler""; do
16435 case $cc_temp in
16436 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16437 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16438 \-*) ;;
16439 *) break;;
16440 esac
16441 done
16442 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16445 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16446 archive_cmds_need_lc_GCJ=no
16448 old_archive_cmds_GCJ=$old_archive_cmds
16450 ## CAVEAT EMPTOR:
16451 ## There is no encapsulation within the following macros, do not change
16452 ## the running order or otherwise move them around unless you know exactly
16453 ## what you are doing...
16454 if test -n "$compiler"; then
16456 lt_prog_compiler_no_builtin_flag_GCJ=
16458 if test "$GCC" = yes; then
16459 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16461 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16462 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16463 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466 lt_cv_prog_compiler_rtti_exceptions=no
16467 ac_outfile=conftest.$ac_objext
16468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="-fno-rtti -fno-exceptions"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 # The option is referenced via a variable to avoid confusing sed.
16475 lt_compile=`echo "$ac_compile" | $SED \
16476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478 -e 's:$: $lt_compiler_flag:'`
16479 (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480 (eval "$lt_compile" 2>conftest.err)
16481 ac_status=$?
16482 cat conftest.err >&5
16483 echo "$as_me:16483: \$? = $ac_status" >&5
16484 if (exit $ac_status) && test -s "$ac_outfile"; then
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings other than the usual output.
16487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler_rtti_exceptions=yes
16493 $RM conftest*
16496 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16497 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16499 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16500 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16501 else
16509 lt_prog_compiler_wl_GCJ=
16510 lt_prog_compiler_pic_GCJ=
16511 lt_prog_compiler_static_GCJ=
16513 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16514 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16516 if test "$GCC" = yes; then
16517 lt_prog_compiler_wl_GCJ='-Wl,'
16518 lt_prog_compiler_static_GCJ='-static'
16520 case $host_os in
16521 aix*)
16522 # All AIX code is PIC.
16523 if test "$host_cpu" = ia64; then
16524 # AIX 5 now supports IA64 processor
16525 lt_prog_compiler_static_GCJ='-Bstatic'
16529 amigaos*)
16530 case $host_cpu in
16531 powerpc)
16532 # see comment about AmigaOS4 .so support
16533 lt_prog_compiler_pic_GCJ='-fPIC'
16535 m68k)
16536 # FIXME: we need at least 68020 code to build shared libraries, but
16537 # adding the `-m68020' flag to GCC prevents building anything better,
16538 # like `-m68040'.
16539 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16541 esac
16544 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16545 # PIC is the default for these OSes.
16548 mingw* | cygwin* | pw32* | os2* | cegcc*)
16549 # This hack is so that the source file can tell whether it is being
16550 # built for inclusion in a dll (and should export symbols for example).
16551 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16552 # (--disable-auto-import) libraries
16556 darwin* | rhapsody*)
16557 # PIC is the default on this platform
16558 # Common symbols not allowed in MH_DYLIB files
16559 lt_prog_compiler_pic_GCJ='-fno-common'
16562 hpux*)
16563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16565 # sets the default TLS model and affects inlining.
16566 case $host_cpu in
16567 hppa*64*)
16568 # +Z the default
16571 lt_prog_compiler_pic_GCJ='-fPIC'
16573 esac
16576 interix[3-9]*)
16577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16578 # Instead, we relocate shared libraries at runtime.
16581 msdosdjgpp*)
16582 # Just because we use GCC doesn't mean we suddenly get shared libraries
16583 # on systems that don't support them.
16584 lt_prog_compiler_can_build_shared_GCJ=no
16585 enable_shared=no
16588 *nto* | *qnx*)
16589 # QNX uses GNU C++, but need to define -shared option too, otherwise
16590 # it will coredump.
16591 lt_prog_compiler_pic_GCJ='-fPIC -shared'
16594 sysv4*MP*)
16595 if test -d /usr/nec; then
16596 lt_prog_compiler_pic_GCJ=-Kconform_pic
16601 lt_prog_compiler_pic_GCJ='-fPIC'
16603 esac
16604 else
16605 # PORTME Check for flag to pass linker flags through the system compiler.
16606 case $host_os in
16607 aix*)
16608 lt_prog_compiler_wl_GCJ='-Wl,'
16609 if test "$host_cpu" = ia64; then
16610 # AIX 5 now supports IA64 processor
16611 lt_prog_compiler_static_GCJ='-Bstatic'
16612 else
16613 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16617 mingw* | cygwin* | pw32* | os2* | cegcc*)
16618 # This hack is so that the source file can tell whether it is being
16619 # built for inclusion in a dll (and should export symbols for example).
16623 hpux9* | hpux10* | hpux11*)
16624 lt_prog_compiler_wl_GCJ='-Wl,'
16625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16626 # not for PA HP-UX.
16627 case $host_cpu in
16628 hppa*64*|ia64*)
16629 # +Z the default
16632 lt_prog_compiler_pic_GCJ='+Z'
16634 esac
16635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16636 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16639 irix5* | irix6* | nonstopux*)
16640 lt_prog_compiler_wl_GCJ='-Wl,'
16641 # PIC (with -KPIC) is the default.
16642 lt_prog_compiler_static_GCJ='-non_shared'
16645 linux* | k*bsd*-gnu)
16646 case $cc_basename in
16647 # old Intel for x86_64 which still supported -KPIC.
16648 ecc*)
16649 lt_prog_compiler_wl_GCJ='-Wl,'
16650 lt_prog_compiler_pic_GCJ='-KPIC'
16651 lt_prog_compiler_static_GCJ='-static'
16653 # icc used to be incompatible with GCC.
16654 # ICC 10 doesn't accept -KPIC any more.
16655 icc* | ifort*)
16656 lt_prog_compiler_wl_GCJ='-Wl,'
16657 lt_prog_compiler_pic_GCJ='-fPIC'
16658 lt_prog_compiler_static_GCJ='-static'
16660 # Lahey Fortran 8.1.
16661 lf95*)
16662 lt_prog_compiler_wl_GCJ='-Wl,'
16663 lt_prog_compiler_pic_GCJ='--shared'
16664 lt_prog_compiler_static_GCJ='--static'
16666 pgcc* | pgf77* | pgf90* | pgf95*)
16667 # Portland Group compilers (*not* the Pentium gcc compiler,
16668 # which looks to be a dead project)
16669 lt_prog_compiler_wl_GCJ='-Wl,'
16670 lt_prog_compiler_pic_GCJ='-fpic'
16671 lt_prog_compiler_static_GCJ='-Bstatic'
16673 ccc*)
16674 lt_prog_compiler_wl_GCJ='-Wl,'
16675 # All Alpha code is PIC.
16676 lt_prog_compiler_static_GCJ='-non_shared'
16678 xl*)
16679 # IBM XL C 8.0/Fortran 10.1 on PPC
16680 lt_prog_compiler_wl_GCJ='-Wl,'
16681 lt_prog_compiler_pic_GCJ='-qpic'
16682 lt_prog_compiler_static_GCJ='-qstaticlink'
16685 case `$CC -V 2>&1 | sed 5q` in
16686 *Sun\ C*)
16687 # Sun C 5.9
16688 lt_prog_compiler_pic_GCJ='-KPIC'
16689 lt_prog_compiler_static_GCJ='-Bstatic'
16690 lt_prog_compiler_wl_GCJ='-Wl,'
16692 *Sun\ F*)
16693 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16694 lt_prog_compiler_pic_GCJ='-KPIC'
16695 lt_prog_compiler_static_GCJ='-Bstatic'
16696 lt_prog_compiler_wl_GCJ=''
16698 esac
16700 esac
16703 newsos6)
16704 lt_prog_compiler_pic_GCJ='-KPIC'
16705 lt_prog_compiler_static_GCJ='-Bstatic'
16708 *nto* | *qnx*)
16709 # QNX uses GNU C++, but need to define -shared option too, otherwise
16710 # it will coredump.
16711 lt_prog_compiler_pic_GCJ='-fPIC -shared'
16714 osf3* | osf4* | osf5*)
16715 lt_prog_compiler_wl_GCJ='-Wl,'
16716 # All OSF/1 code is PIC.
16717 lt_prog_compiler_static_GCJ='-non_shared'
16720 rdos*)
16721 lt_prog_compiler_static_GCJ='-non_shared'
16724 solaris*)
16725 lt_prog_compiler_pic_GCJ='-KPIC'
16726 lt_prog_compiler_static_GCJ='-Bstatic'
16727 case $cc_basename in
16728 f77* | f90* | f95*)
16729 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16731 lt_prog_compiler_wl_GCJ='-Wl,';;
16732 esac
16735 sunos4*)
16736 lt_prog_compiler_wl_GCJ='-Qoption ld '
16737 lt_prog_compiler_pic_GCJ='-PIC'
16738 lt_prog_compiler_static_GCJ='-Bstatic'
16741 sysv4 | sysv4.2uw2* | sysv4.3*)
16742 lt_prog_compiler_wl_GCJ='-Wl,'
16743 lt_prog_compiler_pic_GCJ='-KPIC'
16744 lt_prog_compiler_static_GCJ='-Bstatic'
16747 sysv4*MP*)
16748 if test -d /usr/nec ;then
16749 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16750 lt_prog_compiler_static_GCJ='-Bstatic'
16754 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16755 lt_prog_compiler_wl_GCJ='-Wl,'
16756 lt_prog_compiler_pic_GCJ='-KPIC'
16757 lt_prog_compiler_static_GCJ='-Bstatic'
16760 unicos*)
16761 lt_prog_compiler_wl_GCJ='-Wl,'
16762 lt_prog_compiler_can_build_shared_GCJ=no
16765 uts4*)
16766 lt_prog_compiler_pic_GCJ='-pic'
16767 lt_prog_compiler_static_GCJ='-Bstatic'
16771 lt_prog_compiler_can_build_shared_GCJ=no
16773 esac
16776 case $host_os in
16777 # For platforms which do not support PIC, -DPIC is meaningless:
16778 *djgpp*)
16779 lt_prog_compiler_pic_GCJ=
16782 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16784 esac
16785 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16786 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16791 # Check to make sure the PIC flag actually works.
16793 if test -n "$lt_prog_compiler_pic_GCJ"; then
16794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16796 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16798 else
16799 lt_cv_prog_compiler_pic_works_GCJ=no
16800 ac_outfile=conftest.$ac_objext
16801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16802 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16803 # Insert the option either (1) after the last *FLAGS variable, or
16804 # (2) before a word containing "conftest.", or (3) at the end.
16805 # Note that $ac_compile itself does not contain backslashes and begins
16806 # with a dollar sign (not a hyphen), so the echo should work correctly.
16807 # The option is referenced via a variable to avoid confusing sed.
16808 lt_compile=`echo "$ac_compile" | $SED \
16809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16811 -e 's:$: $lt_compiler_flag:'`
16812 (eval echo "\"\$as_me:16812: $lt_compile\"" >&5)
16813 (eval "$lt_compile" 2>conftest.err)
16814 ac_status=$?
16815 cat conftest.err >&5
16816 echo "$as_me:16816: \$? = $ac_status" >&5
16817 if (exit $ac_status) && test -s "$ac_outfile"; then
16818 # The compiler can only warn and ignore the option if not recognized
16819 # So say no if there are warnings other than the usual output.
16820 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16823 lt_cv_prog_compiler_pic_works_GCJ=yes
16826 $RM conftest*
16829 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16830 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16832 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16833 case $lt_prog_compiler_pic_GCJ in
16834 "" | " "*) ;;
16835 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16836 esac
16837 else
16838 lt_prog_compiler_pic_GCJ=
16839 lt_prog_compiler_can_build_shared_GCJ=no
16847 # Check to make sure the static flag actually works.
16849 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16850 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16852 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 else
16855 lt_cv_prog_compiler_static_works_GCJ=no
16856 save_LDFLAGS="$LDFLAGS"
16857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860 # The linker can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 if test -s conftest.err; then
16863 # Append any errors to the config.log.
16864 cat conftest.err 1>&5
16865 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867 if diff conftest.exp conftest.er2 >/dev/null; then
16868 lt_cv_prog_compiler_static_works_GCJ=yes
16870 else
16871 lt_cv_prog_compiler_static_works_GCJ=yes
16874 $RM -r conftest*
16875 LDFLAGS="$save_LDFLAGS"
16878 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16879 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16881 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16883 else
16884 lt_prog_compiler_static_GCJ=
16890 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16891 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16892 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894 else
16895 lt_cv_prog_compiler_c_o_GCJ=no
16896 $RM -r conftest 2>/dev/null
16897 mkdir conftest
16898 cd conftest
16899 mkdir out
16900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16902 lt_compiler_flag="-o out/conftest2.$ac_objext"
16903 # Insert the option either (1) after the last *FLAGS variable, or
16904 # (2) before a word containing "conftest.", or (3) at the end.
16905 # Note that $ac_compile itself does not contain backslashes and begins
16906 # with a dollar sign (not a hyphen), so the echo should work correctly.
16907 lt_compile=`echo "$ac_compile" | $SED \
16908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16910 -e 's:$: $lt_compiler_flag:'`
16911 (eval echo "\"\$as_me:16911: $lt_compile\"" >&5)
16912 (eval "$lt_compile" 2>out/conftest.err)
16913 ac_status=$?
16914 cat out/conftest.err >&5
16915 echo "$as_me:16915: \$? = $ac_status" >&5
16916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16917 then
16918 # The compiler can only warn and ignore the option if not recognized
16919 # So say no if there are warnings
16920 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16923 lt_cv_prog_compiler_c_o_GCJ=yes
16926 chmod u+w . 2>&5
16927 $RM conftest*
16928 # SGI C++ compiler will create directory out/ii_files/ for
16929 # template instantiation
16930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16931 $RM out/* && rmdir out
16932 cd ..
16933 $RM -r conftest
16934 $RM conftest*
16937 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16938 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16942 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16943 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16944 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 else
16947 lt_cv_prog_compiler_c_o_GCJ=no
16948 $RM -r conftest 2>/dev/null
16949 mkdir conftest
16950 cd conftest
16951 mkdir out
16952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16954 lt_compiler_flag="-o out/conftest2.$ac_objext"
16955 # Insert the option either (1) after the last *FLAGS variable, or
16956 # (2) before a word containing "conftest.", or (3) at the end.
16957 # Note that $ac_compile itself does not contain backslashes and begins
16958 # with a dollar sign (not a hyphen), so the echo should work correctly.
16959 lt_compile=`echo "$ac_compile" | $SED \
16960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962 -e 's:$: $lt_compiler_flag:'`
16963 (eval echo "\"\$as_me:16963: $lt_compile\"" >&5)
16964 (eval "$lt_compile" 2>out/conftest.err)
16965 ac_status=$?
16966 cat out/conftest.err >&5
16967 echo "$as_me:16967: \$? = $ac_status" >&5
16968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16969 then
16970 # The compiler can only warn and ignore the option if not recognized
16971 # So say no if there are warnings
16972 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16975 lt_cv_prog_compiler_c_o_GCJ=yes
16978 chmod u+w . 2>&5
16979 $RM conftest*
16980 # SGI C++ compiler will create directory out/ii_files/ for
16981 # template instantiation
16982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16983 $RM out/* && rmdir out
16984 cd ..
16985 $RM -r conftest
16986 $RM conftest*
16989 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16990 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16995 hard_links="nottested"
16996 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16997 # do not overwrite the value of need_locks provided by the user
16998 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16999 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17000 hard_links=yes
17001 $RM conftest*
17002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17003 touch conftest.a
17004 ln conftest.a conftest.b 2>&5 || hard_links=no
17005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17006 echo "$as_me:$LINENO: result: $hard_links" >&5
17007 echo "${ECHO_T}$hard_links" >&6
17008 if test "$hard_links" = no; then
17009 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17010 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17011 need_locks=warn
17013 else
17014 need_locks=no
17019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17022 runpath_var=
17023 allow_undefined_flag_GCJ=
17024 always_export_symbols_GCJ=no
17025 archive_cmds_GCJ=
17026 archive_expsym_cmds_GCJ=
17027 compiler_needs_object_GCJ=no
17028 enable_shared_with_static_runtimes_GCJ=no
17029 export_dynamic_flag_spec_GCJ=
17030 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17031 hardcode_automatic_GCJ=no
17032 hardcode_direct_GCJ=no
17033 hardcode_direct_absolute_GCJ=no
17034 hardcode_libdir_flag_spec_GCJ=
17035 hardcode_libdir_flag_spec_ld_GCJ=
17036 hardcode_libdir_separator_GCJ=
17037 hardcode_minus_L_GCJ=no
17038 hardcode_shlibpath_var_GCJ=unsupported
17039 inherit_rpath_GCJ=no
17040 link_all_deplibs_GCJ=unknown
17041 module_cmds_GCJ=
17042 module_expsym_cmds_GCJ=
17043 old_archive_from_new_cmds_GCJ=
17044 old_archive_from_expsyms_cmds_GCJ=
17045 thread_safe_flag_spec_GCJ=
17046 whole_archive_flag_spec_GCJ=
17047 # include_expsyms should be a list of space-separated symbols to be *always*
17048 # included in the symbol list
17049 include_expsyms_GCJ=
17050 # exclude_expsyms can be an extended regexp of symbols to exclude
17051 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17052 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17053 # as well as any symbol that contains `d'.
17054 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17055 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17056 # platforms (ab)use it in PIC code, but their linkers get confused if
17057 # the symbol is explicitly referenced. Since portable code cannot
17058 # rely on this symbol name, it's probably fine to never include it in
17059 # preloaded symbol tables.
17060 # Exclude shared library initialization/finalization symbols.
17061 extract_expsyms_cmds=
17063 case $host_os in
17064 cygwin* | mingw* | pw32* | cegcc*)
17065 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17066 # When not using gcc, we currently assume that we are using
17067 # Microsoft Visual C++.
17068 if test "$GCC" != yes; then
17069 with_gnu_ld=no
17072 interix*)
17073 # we just hope/assume this is gcc and not c89 (= MSVC++)
17074 with_gnu_ld=yes
17076 openbsd*)
17077 with_gnu_ld=no
17079 esac
17081 ld_shlibs_GCJ=yes
17082 if test "$with_gnu_ld" = yes; then
17083 # If archive_cmds runs LD, not CC, wlarc should be empty
17084 wlarc='${wl}'
17086 # Set some defaults for GNU ld with shared library support. These
17087 # are reset later if shared libraries are not supported. Putting them
17088 # here allows them to be overridden if necessary.
17089 runpath_var=LD_RUN_PATH
17090 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17091 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17092 # ancient GNU ld didn't support --whole-archive et. al.
17093 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17094 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17095 else
17096 whole_archive_flag_spec_GCJ=
17098 supports_anon_versioning=no
17099 case `$LD -v 2>&1` in
17100 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17101 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17102 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17103 *\ 2.11.*) ;; # other 2.11 versions
17104 *) supports_anon_versioning=yes ;;
17105 esac
17107 # See if GNU ld supports shared libraries.
17108 case $host_os in
17109 aix[3-9]*)
17110 # On AIX/PPC, the GNU linker is very broken
17111 if test "$host_cpu" != ia64; then
17112 ld_shlibs_GCJ=no
17113 cat <<_LT_EOF 1>&2
17115 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17116 *** to be unable to reliably create shared libraries on AIX.
17117 *** Therefore, libtool is disabling shared libraries support. If you
17118 *** really care for shared libraries, you may want to modify your PATH
17119 *** so that a non-GNU linker is found, and then restart.
17121 _LT_EOF
17125 amigaos*)
17126 case $host_cpu in
17127 powerpc)
17128 # see comment about AmigaOS4 .so support
17129 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17130 archive_expsym_cmds_GCJ=''
17132 m68k)
17133 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)'
17134 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17135 hardcode_minus_L_GCJ=yes
17137 esac
17140 beos*)
17141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17142 allow_undefined_flag_GCJ=unsupported
17143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17144 # support --undefined. This deserves some investigation. FIXME
17145 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146 else
17147 ld_shlibs_GCJ=no
17151 cygwin* | mingw* | pw32* | cegcc*)
17152 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17153 # as there is no search path for DLLs.
17154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17155 allow_undefined_flag_GCJ=unsupported
17156 always_export_symbols_GCJ=no
17157 enable_shared_with_static_runtimes_GCJ=yes
17158 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17160 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17161 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17162 # If the export-symbols file already is a .def file (1st line
17163 # is EXPORTS), use it as is; otherwise, prepend...
17164 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17165 cp $export_symbols $output_objdir/$soname.def;
17166 else
17167 echo EXPORTS > $output_objdir/$soname.def;
17168 cat $export_symbols >> $output_objdir/$soname.def;
17170 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17171 else
17172 ld_shlibs_GCJ=no
17176 interix[3-9]*)
17177 hardcode_direct_GCJ=no
17178 hardcode_shlibpath_var_GCJ=no
17179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17180 export_dynamic_flag_spec_GCJ='${wl}-E'
17181 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17182 # Instead, shared libraries are loaded at an image base (0x10000000 by
17183 # default) and relocated if they conflict, which is a slow very memory
17184 # consuming and fragmenting process. To avoid this, we pick a random,
17185 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17186 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17187 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'
17188 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'
17191 gnu* | linux* | tpf* | k*bsd*-gnu)
17192 tmp_diet=no
17193 if test "$host_os" = linux-dietlibc; then
17194 case $cc_basename in
17195 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17196 esac
17198 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17199 && test "$tmp_diet" = no
17200 then
17201 tmp_addflag=
17202 tmp_sharedflag='-shared'
17203 case $cc_basename,$host_cpu in
17204 pgcc*) # Portland Group C compiler
17205 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'
17206 tmp_addflag=' $pic_flag'
17208 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17209 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'
17210 tmp_addflag=' $pic_flag -Mnomain' ;;
17211 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17212 tmp_addflag=' -i_dynamic' ;;
17213 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17214 tmp_addflag=' -i_dynamic -nofor_main' ;;
17215 ifc* | ifort*) # Intel Fortran compiler
17216 tmp_addflag=' -nofor_main' ;;
17217 lf95*) # Lahey Fortran 8.1
17218 whole_archive_flag_spec_GCJ=
17219 tmp_sharedflag='--shared' ;;
17220 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17221 tmp_sharedflag='-qmkshrobj'
17222 tmp_addflag= ;;
17223 esac
17224 case `$CC -V 2>&1 | sed 5q` in
17225 *Sun\ C*) # Sun C 5.9
17226 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'
17227 compiler_needs_object_GCJ=yes
17228 tmp_sharedflag='-G' ;;
17229 *Sun\ F*) # Sun Fortran 8.3
17230 tmp_sharedflag='-G' ;;
17231 esac
17232 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17234 if test "x$supports_anon_versioning" = xyes; then
17235 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17236 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17237 echo "local: *; };" >> $output_objdir/$libname.ver~
17238 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17241 case $cc_basename in
17242 xlf*)
17243 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17244 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17245 hardcode_libdir_flag_spec_GCJ=
17246 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17247 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17248 if test "x$supports_anon_versioning" = xyes; then
17249 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17251 echo "local: *; };" >> $output_objdir/$libname.ver~
17252 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17255 esac
17256 else
17257 ld_shlibs_GCJ=no
17261 netbsd*)
17262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17263 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17264 wlarc=
17265 else
17266 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17267 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17271 solaris*)
17272 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17273 ld_shlibs_GCJ=no
17274 cat <<_LT_EOF 1>&2
17276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17277 *** create shared libraries on Solaris systems. Therefore, libtool
17278 *** is disabling shared libraries support. We urge you to upgrade GNU
17279 *** binutils to release 2.9.1 or newer. Another option is to modify
17280 *** your PATH or compiler configuration so that the native linker is
17281 *** used, and then restart.
17283 _LT_EOF
17284 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17285 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17286 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17287 else
17288 ld_shlibs_GCJ=no
17292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17293 case `$LD -v 2>&1` in
17294 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17295 ld_shlibs_GCJ=no
17296 cat <<_LT_EOF 1>&2
17298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17299 *** reliably create shared libraries on SCO systems. Therefore, libtool
17300 *** is disabling shared libraries support. We urge you to upgrade GNU
17301 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17302 *** your PATH or compiler configuration so that the native linker is
17303 *** used, and then restart.
17305 _LT_EOF
17308 # For security reasons, it is highly recommended that you always
17309 # use absolute paths for naming shared libraries, and exclude the
17310 # DT_RUNPATH tag from executables and libraries. But doing so
17311 # requires that you compile everything twice, which is a pain.
17312 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17313 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17314 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17315 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17316 else
17317 ld_shlibs_GCJ=no
17320 esac
17323 sunos4*)
17324 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17325 wlarc=
17326 hardcode_direct_GCJ=yes
17327 hardcode_shlibpath_var_GCJ=no
17331 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17332 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17333 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17334 else
17335 ld_shlibs_GCJ=no
17338 esac
17340 if test "$ld_shlibs_GCJ" = no; then
17341 runpath_var=
17342 hardcode_libdir_flag_spec_GCJ=
17343 export_dynamic_flag_spec_GCJ=
17344 whole_archive_flag_spec_GCJ=
17346 else
17347 # PORTME fill in a description of your system's linker (not GNU ld)
17348 case $host_os in
17349 aix3*)
17350 allow_undefined_flag_GCJ=unsupported
17351 always_export_symbols_GCJ=yes
17352 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'
17353 # Note: this linker hardcodes the directories in LIBPATH if there
17354 # are no directories specified by -L.
17355 hardcode_minus_L_GCJ=yes
17356 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17357 # Neither direct hardcoding nor static linking is supported with a
17358 # broken collect2.
17359 hardcode_direct_GCJ=unsupported
17363 aix[4-9]*)
17364 if test "$host_cpu" = ia64; then
17365 # On IA64, the linker does run time linking by default, so we don't
17366 # have to do anything special.
17367 aix_use_runtimelinking=no
17368 exp_sym_flag='-Bexport'
17369 no_entry_flag=""
17370 else
17371 # If we're using GNU nm, then we don't want the "-C" option.
17372 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17373 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17374 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'
17375 else
17376 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'
17378 aix_use_runtimelinking=no
17380 # Test if we are trying to use run time linking or normal
17381 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17382 # need to do runtime linking.
17383 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17384 for ld_flag in $LDFLAGS; do
17385 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17386 aix_use_runtimelinking=yes
17387 break
17389 done
17391 esac
17393 exp_sym_flag='-bexport'
17394 no_entry_flag='-bnoentry'
17397 # When large executables or shared objects are built, AIX ld can
17398 # have problems creating the table of contents. If linking a library
17399 # or program results in "error TOC overflow" add -mminimal-toc to
17400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17403 archive_cmds_GCJ=''
17404 hardcode_direct_GCJ=yes
17405 hardcode_direct_absolute_GCJ=yes
17406 hardcode_libdir_separator_GCJ=':'
17407 link_all_deplibs_GCJ=yes
17408 file_list_spec_GCJ='${wl}-f,'
17410 if test "$GCC" = yes; then
17411 case $host_os in aix4.[012]|aix4.[012].*)
17412 # We only want to do this on AIX 4.2 and lower, the check
17413 # below for broken collect2 doesn't work under 4.3+
17414 collect2name=`${CC} -print-prog-name=collect2`
17415 if test -f "$collect2name" &&
17416 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17417 then
17418 # We have reworked collect2
17420 else
17421 # We have old collect2
17422 hardcode_direct_GCJ=unsupported
17423 # It fails to find uninstalled libraries when the uninstalled
17424 # path is not listed in the libpath. Setting hardcode_minus_L
17425 # to unsupported forces relinking
17426 hardcode_minus_L_GCJ=yes
17427 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17428 hardcode_libdir_separator_GCJ=
17431 esac
17432 shared_flag='-shared'
17433 if test "$aix_use_runtimelinking" = yes; then
17434 shared_flag="$shared_flag "'${wl}-G'
17436 else
17437 # not using gcc
17438 if test "$host_cpu" = ia64; then
17439 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17440 # chokes on -Wl,-G. The following line is correct:
17441 shared_flag='-G'
17442 else
17443 if test "$aix_use_runtimelinking" = yes; then
17444 shared_flag='${wl}-G'
17445 else
17446 shared_flag='${wl}-bM:SRE'
17451 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
17452 # It seems that -bexpall does not export symbols beginning with
17453 # underscore (_), so it is better to generate a list of symbols to export.
17454 always_export_symbols_GCJ=yes
17455 if test "$aix_use_runtimelinking" = yes; then
17456 # Warning - without using the other runtime loading flags (-brtl),
17457 # -berok will link without error, but may produce a broken library.
17458 allow_undefined_flag_GCJ='-berok'
17459 # Determine the default libpath from the value encoded in an
17460 # empty executable.
17461 if test x$gcc_no_link = xyes; then
17462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17464 { (exit 1); exit 1; }; }
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17474 main ()
17478 return 0;
17480 _ACEOF
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest$ac_exeext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17504 lt_aix_libpath_sed='
17505 /Import File Strings/,/^$/ {
17506 /^0/ {
17507 s/^0 *\(.*\)$/\1/
17511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17512 # Check for a 64-bit object if we didn't find anything.
17513 if test -z "$aix_libpath"; then
17514 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17521 rm -f conftest.err conftest.$ac_objext \
17522 conftest$ac_exeext conftest.$ac_ext
17523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17525 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17526 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"
17527 else
17528 if test "$host_cpu" = ia64; then
17529 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17530 allow_undefined_flag_GCJ="-z nodefs"
17531 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"
17532 else
17533 # Determine the default libpath from the value encoded in an
17534 # empty executable.
17535 if test x$gcc_no_link = xyes; then
17536 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17537 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17538 { (exit 1); exit 1; }; }
17540 cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h. */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17548 main ()
17552 return 0;
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>conftest.er1
17558 ac_status=$?
17559 grep -v '^ *+' conftest.er1 >conftest.err
17560 rm -f conftest.er1
17561 cat conftest.err >&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -z "$ac_c_werror_flag"
17565 || test ! -s conftest.err'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; } &&
17571 { ac_try='test -s conftest$ac_exeext'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17578 lt_aix_libpath_sed='
17579 /Import File Strings/,/^$/ {
17580 /^0/ {
17581 s/^0 *\(.*\)$/\1/
17585 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17586 # Check for a 64-bit object if we didn't find anything.
17587 if test -z "$aix_libpath"; then
17588 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17595 rm -f conftest.err conftest.$ac_objext \
17596 conftest$ac_exeext conftest.$ac_ext
17597 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17599 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17600 # Warning - without using the other run time loading flags,
17601 # -berok will link without error, but may produce a broken library.
17602 no_undefined_flag_GCJ=' ${wl}-bernotok'
17603 allow_undefined_flag_GCJ=' ${wl}-berok'
17604 # Exported symbols can be pulled into shared objects from archives
17605 whole_archive_flag_spec_GCJ='$convenience'
17606 archive_cmds_need_lc_GCJ=yes
17607 # This is similar to how AIX traditionally builds its shared libraries.
17608 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'
17613 amigaos*)
17614 case $host_cpu in
17615 powerpc)
17616 # see comment about AmigaOS4 .so support
17617 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17618 archive_expsym_cmds_GCJ=''
17620 m68k)
17621 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)'
17622 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17623 hardcode_minus_L_GCJ=yes
17625 esac
17628 bsdi[45]*)
17629 export_dynamic_flag_spec_GCJ=-rdynamic
17632 cygwin* | mingw* | pw32* | cegcc*)
17633 # When not using gcc, we currently assume that we are using
17634 # Microsoft Visual C++.
17635 # hardcode_libdir_flag_spec is actually meaningless, as there is
17636 # no search path for DLLs.
17637 hardcode_libdir_flag_spec_GCJ=' '
17638 allow_undefined_flag_GCJ=unsupported
17639 # Tell ltmain to make .lib files, not .a files.
17640 libext=lib
17641 # Tell ltmain to make .dll files, not .so files.
17642 shrext_cmds=".dll"
17643 # FIXME: Setting linknames here is a bad hack.
17644 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17645 # The linker will automatically build a .lib file if we build a DLL.
17646 old_archive_from_new_cmds_GCJ='true'
17647 # FIXME: Should let the user specify the lib program.
17648 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17649 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17650 enable_shared_with_static_runtimes_GCJ=yes
17653 darwin* | rhapsody*)
17656 archive_cmds_need_lc_GCJ=no
17657 hardcode_direct_GCJ=no
17658 hardcode_automatic_GCJ=yes
17659 hardcode_shlibpath_var_GCJ=unsupported
17660 whole_archive_flag_spec_GCJ=''
17661 link_all_deplibs_GCJ=yes
17662 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
17663 case $cc_basename in
17664 ifort*) _lt_dar_can_shared=yes ;;
17665 *) _lt_dar_can_shared=$GCC ;;
17666 esac
17667 if test "$_lt_dar_can_shared" = "yes"; then
17668 output_verbose_link_cmd=echo
17669 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17670 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17671 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17672 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17674 else
17675 ld_shlibs_GCJ=no
17680 dgux*)
17681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17683 hardcode_shlibpath_var_GCJ=no
17686 freebsd1*)
17687 ld_shlibs_GCJ=no
17690 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17691 # support. Future versions do this automatically, but an explicit c++rt0.o
17692 # does not break anything, and helps significantly (at the cost of a little
17693 # extra space).
17694 freebsd2.2*)
17695 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17696 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17697 hardcode_direct_GCJ=yes
17698 hardcode_shlibpath_var_GCJ=no
17701 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17702 freebsd2*)
17703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17704 hardcode_direct_GCJ=yes
17705 hardcode_minus_L_GCJ=yes
17706 hardcode_shlibpath_var_GCJ=no
17709 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17710 freebsd* | dragonfly*)
17711 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17712 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17713 hardcode_direct_GCJ=yes
17714 hardcode_shlibpath_var_GCJ=no
17717 hpux9*)
17718 if test "$GCC" = yes; then
17719 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'
17720 else
17721 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'
17723 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17724 hardcode_libdir_separator_GCJ=:
17725 hardcode_direct_GCJ=yes
17727 # hardcode_minus_L: Not really in the search PATH,
17728 # but as the default location of the library.
17729 hardcode_minus_L_GCJ=yes
17730 export_dynamic_flag_spec_GCJ='${wl}-E'
17733 hpux10*)
17734 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17735 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17736 else
17737 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17739 if test "$with_gnu_ld" = no; then
17740 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17741 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17742 hardcode_libdir_separator_GCJ=:
17743 hardcode_direct_GCJ=yes
17744 hardcode_direct_absolute_GCJ=yes
17745 export_dynamic_flag_spec_GCJ='${wl}-E'
17746 # hardcode_minus_L: Not really in the search PATH,
17747 # but as the default location of the library.
17748 hardcode_minus_L_GCJ=yes
17752 hpux11*)
17753 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17754 case $host_cpu in
17755 hppa*64*)
17756 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17758 ia64*)
17759 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17762 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17764 esac
17765 else
17766 case $host_cpu in
17767 hppa*64*)
17768 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17770 ia64*)
17771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17774 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17776 esac
17778 if test "$with_gnu_ld" = no; then
17779 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17780 hardcode_libdir_separator_GCJ=:
17782 case $host_cpu in
17783 hppa*64*|ia64*)
17784 hardcode_direct_GCJ=no
17785 hardcode_shlibpath_var_GCJ=no
17788 hardcode_direct_GCJ=yes
17789 hardcode_direct_absolute_GCJ=yes
17790 export_dynamic_flag_spec_GCJ='${wl}-E'
17792 # hardcode_minus_L: Not really in the search PATH,
17793 # but as the default location of the library.
17794 hardcode_minus_L_GCJ=yes
17796 esac
17800 irix5* | irix6* | nonstopux*)
17801 if test "$GCC" = yes; then
17802 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'
17803 # Try to use the -exported_symbol ld option, if it does not
17804 # work, assume that -exports_file does not work either and
17805 # implicitly export all symbols.
17806 save_LDFLAGS="$LDFLAGS"
17807 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17808 if test x$gcc_no_link = xyes; then
17809 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17810 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17811 { (exit 1); exit 1; }; }
17813 cat >conftest.$ac_ext <<_ACEOF
17814 int foo(void) {}
17815 _ACEOF
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17818 (eval $ac_link) 2>conftest.er1
17819 ac_status=$?
17820 grep -v '^ *+' conftest.er1 >conftest.err
17821 rm -f conftest.er1
17822 cat conftest.err >&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); } &&
17825 { ac_try='test -z "$ac_c_werror_flag"
17826 || test ! -s conftest.err'
17827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17829 ac_status=$?
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); }; } &&
17832 { ac_try='test -s conftest$ac_exeext'
17833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834 (eval $ac_try) 2>&5
17835 ac_status=$?
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; }; then
17838 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'
17840 else
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17845 rm -f conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LDFLAGS="$save_LDFLAGS"
17848 else
17849 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'
17850 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'
17852 archive_cmds_need_lc_GCJ='no'
17853 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator_GCJ=:
17855 inherit_rpath_GCJ=yes
17856 link_all_deplibs_GCJ=yes
17859 netbsd*)
17860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17861 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17862 else
17863 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17865 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17866 hardcode_direct_GCJ=yes
17867 hardcode_shlibpath_var_GCJ=no
17870 newsos6)
17871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17872 hardcode_direct_GCJ=yes
17873 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17874 hardcode_libdir_separator_GCJ=:
17875 hardcode_shlibpath_var_GCJ=no
17878 *nto* | *qnx*)
17881 openbsd*)
17882 if test -f /usr/libexec/ld.so; then
17883 hardcode_direct_GCJ=yes
17884 hardcode_shlibpath_var_GCJ=no
17885 hardcode_direct_absolute_GCJ=yes
17886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17887 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17888 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17889 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17890 export_dynamic_flag_spec_GCJ='${wl}-E'
17891 else
17892 case $host_os in
17893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17894 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17895 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17898 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17899 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17901 esac
17903 else
17904 ld_shlibs_GCJ=no
17908 os2*)
17909 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17910 hardcode_minus_L_GCJ=yes
17911 allow_undefined_flag_GCJ=unsupported
17912 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'
17913 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17916 osf3*)
17917 if test "$GCC" = yes; then
17918 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17919 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'
17920 else
17921 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17922 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'
17924 archive_cmds_need_lc_GCJ='no'
17925 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17926 hardcode_libdir_separator_GCJ=:
17929 osf4* | osf5*) # as osf3* with the addition of -msym flag
17930 if test "$GCC" = yes; then
17931 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17932 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'
17933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17934 else
17935 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17936 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'
17937 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~
17938 $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'
17940 # Both c and cxx compiler support -rpath directly
17941 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17943 archive_cmds_need_lc_GCJ='no'
17944 hardcode_libdir_separator_GCJ=:
17947 solaris*)
17948 no_undefined_flag_GCJ=' -z defs'
17949 if test "$GCC" = yes; then
17950 wlarc='${wl}'
17951 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17952 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17953 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17954 else
17955 case `$CC -V 2>&1` in
17956 *"Compilers 5.0"*)
17957 wlarc=''
17958 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17959 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17963 wlarc='${wl}'
17964 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17965 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17966 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17968 esac
17970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971 hardcode_shlibpath_var_GCJ=no
17972 case $host_os in
17973 solaris2.[0-5] | solaris2.[0-5].*) ;;
17975 # The compiler driver will combine and reorder linker options,
17976 # but understands `-z linker_flag'. GCC discards it without `$wl',
17977 # but is careful enough not to reorder.
17978 # Supported since Solaris 2.6 (maybe 2.5.1?)
17979 if test "$GCC" = yes; then
17980 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17981 else
17982 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17985 esac
17986 link_all_deplibs_GCJ=yes
17989 sunos4*)
17990 if test "x$host_vendor" = xsequent; then
17991 # Use $CC to link under sequent, because it throws in some extra .o
17992 # files that make .init and .fini sections work.
17993 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17994 else
17995 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17997 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17998 hardcode_direct_GCJ=yes
17999 hardcode_minus_L_GCJ=yes
18000 hardcode_shlibpath_var_GCJ=no
18003 sysv4)
18004 case $host_vendor in
18005 sni)
18006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18007 hardcode_direct_GCJ=yes # is this really true???
18009 siemens)
18010 ## LD is ld it makes a PLAMLIB
18011 ## CC just makes a GrossModule.
18012 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18013 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18014 hardcode_direct_GCJ=no
18016 motorola)
18017 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18020 esac
18021 runpath_var='LD_RUN_PATH'
18022 hardcode_shlibpath_var_GCJ=no
18025 sysv4.3*)
18026 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027 hardcode_shlibpath_var_GCJ=no
18028 export_dynamic_flag_spec_GCJ='-Bexport'
18031 sysv4*MP*)
18032 if test -d /usr/nec; then
18033 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18034 hardcode_shlibpath_var_GCJ=no
18035 runpath_var=LD_RUN_PATH
18036 hardcode_runpath_var=yes
18037 ld_shlibs_GCJ=yes
18041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18042 no_undefined_flag_GCJ='${wl}-z,text'
18043 archive_cmds_need_lc_GCJ=no
18044 hardcode_shlibpath_var_GCJ=no
18045 runpath_var='LD_RUN_PATH'
18047 if test "$GCC" = yes; then
18048 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18049 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18050 else
18051 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18052 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18056 sysv5* | sco3.2v5* | sco5v6*)
18057 # Note: We can NOT use -z defs as we might desire, because we do not
18058 # link with -lc, and that would cause any symbols used from libc to
18059 # always be unresolved, which means just about no library would
18060 # ever link correctly. If we're not using GNU ld we use -z text
18061 # though, which does catch some bad symbols but isn't as heavy-handed
18062 # as -z defs.
18063 no_undefined_flag_GCJ='${wl}-z,text'
18064 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18065 archive_cmds_need_lc_GCJ=no
18066 hardcode_shlibpath_var_GCJ=no
18067 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18068 hardcode_libdir_separator_GCJ=':'
18069 link_all_deplibs_GCJ=yes
18070 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18071 runpath_var='LD_RUN_PATH'
18073 if test "$GCC" = yes; then
18074 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18075 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076 else
18077 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18078 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 uts4*)
18083 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18085 hardcode_shlibpath_var_GCJ=no
18089 ld_shlibs_GCJ=no
18091 esac
18093 if test x$host_vendor = xsni; then
18094 case $host in
18095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18096 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18098 esac
18102 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18103 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18104 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18106 with_gnu_ld_GCJ=$with_gnu_ld
18114 # Do we need to explicitly link libc?
18116 case "x$archive_cmds_need_lc_GCJ" in
18117 x|xyes)
18118 # Assume -lc should be added
18119 archive_cmds_need_lc_GCJ=yes
18121 if test "$enable_shared" = yes && test "$GCC" = yes; then
18122 case $archive_cmds_GCJ in
18123 *'~'*)
18124 # FIXME: we may have to deal with multi-command sequences.
18126 '$CC '*)
18127 # Test whether the compiler implicitly links with -lc since on some
18128 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18129 # to ld, don't add -lc before -lgcc.
18130 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18131 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18132 $RM conftest*
18133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); } 2>conftest.err; then
18140 soname=conftest
18141 lib=conftest
18142 libobjs=conftest.$ac_objext
18143 deplibs=
18144 wl=$lt_prog_compiler_wl_GCJ
18145 pic_flag=$lt_prog_compiler_pic_GCJ
18146 compiler_flags=-v
18147 linker_flags=-v
18148 verstring=
18149 output_objdir=.
18150 libname=conftest
18151 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18152 allow_undefined_flag_GCJ=
18153 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18154 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18155 ac_status=$?
18156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); }
18158 then
18159 archive_cmds_need_lc_GCJ=no
18160 else
18161 archive_cmds_need_lc_GCJ=yes
18163 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18164 else
18165 cat conftest.err 1>&5
18167 $RM conftest*
18168 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18169 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18171 esac
18174 esac
18239 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18240 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18241 hardcode_action_GCJ=
18242 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18243 test -n "$runpath_var_GCJ" ||
18244 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18246 # We can hardcode non-existent directories.
18247 if test "$hardcode_direct_GCJ" != no &&
18248 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18249 # have to relink, otherwise we might link with an installed library
18250 # when we should be linking with a yet-to-be-installed one
18251 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18252 test "$hardcode_minus_L_GCJ" != no; then
18253 # Linking always hardcodes the temporary library directory.
18254 hardcode_action_GCJ=relink
18255 else
18256 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18257 hardcode_action_GCJ=immediate
18259 else
18260 # We cannot hardcode anything, or else we can only hardcode existing
18261 # directories.
18262 hardcode_action_GCJ=unsupported
18264 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18265 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18267 if test "$hardcode_action_GCJ" = relink ||
18268 test "$inherit_rpath_GCJ" = yes; then
18269 # Fast installation is not supported
18270 enable_fast_install=no
18271 elif test "$shlibpath_overrides_runpath" = yes ||
18272 test "$enable_shared" = no; then
18273 # Fast installation is not necessary
18274 enable_fast_install=needless
18285 compiler_GCJ=${GCJ-gcj}
18286 ac_ext=c
18287 ac_cpp='$CPP $CPPFLAGS'
18288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18293 if test "x$CC" != xcc; then
18294 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
18295 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
18296 else
18297 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
18298 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
18300 set dummy $CC; ac_cc=`echo $2 |
18301 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18302 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 else
18305 cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h. */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h. */
18313 main ()
18317 return 0;
18319 _ACEOF
18320 # Make sure it works both with $CC and with simple cc.
18321 # We do the test twice because some compilers refuse to overwrite an
18322 # existing .o file with -o, though they will create one.
18323 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18324 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } &&
18329 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18330 (eval $ac_try) 2>&5
18331 ac_status=$?
18332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18333 (exit $ac_status); };
18334 then
18335 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18336 if test "x$CC" != xcc; then
18337 # Test first that cc exists at all.
18338 if { ac_try='cc -c conftest.$ac_ext >&5'
18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18340 (eval $ac_try) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); }; }; then
18344 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
18345 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18347 ac_status=$?
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); };
18355 then
18356 # cc works too.
18358 else
18359 # cc exists but doesn't like -o.
18360 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18364 else
18365 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18367 rm -f conftest*
18370 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
18371 echo "$as_me:$LINENO: result: yes" >&5
18372 echo "${ECHO_T}yes" >&6
18373 else
18374 echo "$as_me:$LINENO: result: no" >&5
18375 echo "${ECHO_T}no" >&6
18377 cat >>confdefs.h <<\_ACEOF
18378 #define NO_MINUS_C_MINUS_O 1
18379 _ACEOF
18383 # FIXME: we rely on the cache variable name because
18384 # there is no other way.
18385 set dummy $CC
18386 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18387 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
18388 # Losing compiler, so override with the script.
18389 # FIXME: It is wrong to rewrite CC.
18390 # But if we don't then we get into trouble of one sort or another.
18391 # A longer-term fix would be to have automake use am__CC in this case,
18392 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18393 CC="$am_aux_dir/compile $CC"
18399 subdirs="$subdirs classpath libltdl"
18402 # The -no-testsuite modules omit the test subdir.
18405 if test -d $srcdir/testsuite; then
18406 TESTSUBDIR_TRUE=
18407 TESTSUBDIR_FALSE='#'
18408 else
18409 TESTSUBDIR_TRUE='#'
18410 TESTSUBDIR_FALSE=
18414 # Should the runtime set system properties by examining the
18415 # environment variable GCJ_PROPERTIES?
18416 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
18417 if test "${enable_getenv_properties+set}" = set; then
18418 enableval="$enable_getenv_properties"
18422 # Whether GCJ_PROPERTIES is used depends on the target.
18423 if test -z "$enable_getenv_properties"; then
18424 enable_getenv_properties=${enable_getenv_properties_default-yes}
18426 if test "$enable_getenv_properties" = no; then
18428 cat >>confdefs.h <<\_ACEOF
18429 #define DISABLE_GETENV_PROPERTIES 1
18430 _ACEOF
18434 # Whether we should use arguments to main()
18435 if test -z "$enable_main_args"; then
18436 enable_main_args=${enable_main_args_default-yes}
18438 if test "$enable_main_args" = no; then
18440 cat >>confdefs.h <<\_ACEOF
18441 #define DISABLE_MAIN_ARGS 1
18442 _ACEOF
18447 # Should we use hashtable-based synchronization?
18448 # Currently works only for Linux X86/ia64
18449 # Typically faster and more space-efficient
18450 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
18451 if test "${enable_hash_synchronization+set}" = set; then
18452 enableval="$enable_hash_synchronization"
18456 if test -z "$enable_hash_synchronization"; then
18457 enable_hash_synchronization=$enable_hash_synchronization_default
18461 install_ecj_jar=no
18462 ECJ_BUILD_JAR=
18463 ECJ_JAR=
18465 # Check whether --with-ecj-jar or --without-ecj-jar was given.
18466 if test "${with_ecj_jar+set}" = set; then
18467 withval="$with_ecj_jar"
18468 ECJ_JAR=$withval
18469 else
18470 if test -f $multi_basedir/ecj.jar; then
18471 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
18472 ECJ_JAR='$(jardir)/ecj.jar'
18473 install_ecj_jar=yes
18480 if test "$ECJ_JAR" != ""; then
18481 BUILD_ECJ1_TRUE=
18482 BUILD_ECJ1_FALSE='#'
18483 else
18484 BUILD_ECJ1_TRUE='#'
18485 BUILD_ECJ1_FALSE=
18490 if test $install_ecj_jar = yes; then
18491 INSTALL_ECJ_JAR_TRUE=
18492 INSTALL_ECJ_JAR_FALSE='#'
18493 else
18494 INSTALL_ECJ_JAR_TRUE='#'
18495 INSTALL_ECJ_JAR_FALSE=
18500 # Check whether --with-java-home or --without-java-home was given.
18501 if test "${with_java_home+set}" = set; then
18502 withval="$with_java_home"
18503 JAVA_HOME="${withval}"
18504 else
18505 JAVA_HOME=""
18509 if test ! -z "$JAVA_HOME"; then
18510 JAVA_HOME_SET_TRUE=
18511 JAVA_HOME_SET_FALSE='#'
18512 else
18513 JAVA_HOME_SET_TRUE='#'
18514 JAVA_HOME_SET_FALSE=
18519 suppress_libgcj_bc=no
18520 # Check whether --enable-libgcj-bc or --disable-libgcj-bc was given.
18521 if test "${enable_libgcj_bc+set}" = set; then
18522 enableval="$enable_libgcj_bc"
18523 if test "$enable_libgcj_bc" = "no"; then
18524 suppress_libgcj_bc=yes
18529 if test "$suppress_libgcj_bc" = "yes"; then
18530 SUPPRESS_LIBGCJ_BC_TRUE=
18531 SUPPRESS_LIBGCJ_BC_FALSE='#'
18532 else
18533 SUPPRESS_LIBGCJ_BC_TRUE='#'
18534 SUPPRESS_LIBGCJ_BC_FALSE=
18538 build_libgcj_reduced_reflection=no
18539 # Check whether --enable-reduced-reflection or --disable-reduced-reflection was given.
18540 if test "${enable_reduced_reflection+set}" = set; then
18541 enableval="$enable_reduced_reflection"
18542 if test "$enable_reduced_reflection" = "yes"; then
18543 build_libgcj_reduced_reflection=yes
18548 if test "$build_libgcj_reduced_reflection" = "yes"; then
18549 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
18550 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
18551 else
18552 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
18553 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
18557 # What is the native OS API for MinGW?
18559 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
18560 if test "${with_win32_nlsapi+set}" = set; then
18561 withval="$with_win32_nlsapi"
18562 case "${withval}" in
18563 ansi) with_win32_nlsapi=ansi ;;
18564 unicows) with_win32_nlsapi=unicows ;;
18565 unicode) with_win32_nlsapi=unicode ;;
18566 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
18567 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
18568 { (exit 1); exit 1; }; } ;;
18569 esac
18570 else
18571 with_win32_nlsapi=ansi
18574 case "${with_win32_nlsapi}" in
18575 unicows | unicode)
18577 cat >>confdefs.h <<\_ACEOF
18578 #define MINGW_LIBGCJ_UNICODE 1
18579 _ACEOF
18582 esac
18584 # configure.host sets slow_pthread_self if the synchronization code should
18585 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
18586 if test "${slow_pthread_self}" = "yes"; then
18588 cat >>confdefs.h <<\_ACEOF
18589 #define SLOW_PTHREAD_SELF 1
18590 _ACEOF
18594 # Check for gc debugging. This option is handled both here and in the GC.
18595 # Check whether --enable-gc-debug or --disable-gc-debug was given.
18596 if test "${enable_gc_debug+set}" = set; then
18597 enableval="$enable_gc_debug"
18598 if test "$enable_gc_debug" = "yes"; then
18600 cat >>confdefs.h <<\_ACEOF
18601 #define LIBGCJ_GC_DEBUG 1
18602 _ACEOF
18607 # See if the user has the interpreter included.
18608 # Check whether --enable-interpreter or --disable-interpreter was given.
18609 if test "${enable_interpreter+set}" = set; then
18610 enableval="$enable_interpreter"
18611 if test "$enable_interpreter" = yes; then
18612 # This can also be set in configure.host.
18613 libgcj_interpreter=yes
18614 elif test "$enable_interpreter" = no; then
18615 libgcj_interpreter=no
18619 if test "$libgcj_interpreter" = yes; then
18621 cat >>confdefs.h <<\_ACEOF
18622 #define INTERPRETER 1
18623 _ACEOF
18626 INTERPRETER="$libgcj_interpreter"
18630 if test "$libgcj_interpreter" = yes; then
18631 INTERPRETER_TRUE=
18632 INTERPRETER_FALSE='#'
18633 else
18634 INTERPRETER_TRUE='#'
18635 INTERPRETER_FALSE=
18639 echo "$as_me:$LINENO: checking for exception model to use" >&5
18640 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
18641 ac_ext=cc
18642 ac_cpp='$CXXCPP $CPPFLAGS'
18643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18647 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
18648 if test "${enable_sjlj_exceptions+set}" = set; then
18649 enableval="$enable_sjlj_exceptions"
18651 else
18652 cat > conftest.$ac_ext << EOF
18653 #line 18653 "configure"
18654 struct S { ~S(); };
18655 void bar();
18656 void foo()
18658 S s;
18659 bar();
18662 old_CXXFLAGS="$CXXFLAGS"
18663 CXXFLAGS=-S
18664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18665 (eval $ac_compile) 2>&5
18666 ac_status=$?
18667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); }; then
18669 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
18670 enable_sjlj_exceptions=yes
18671 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
18672 enable_sjlj_exceptions=no
18675 CXXFLAGS="$old_CXXFLAGS"
18676 rm -f conftest*
18678 if test x$enable_sjlj_exceptions = xyes; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define SJLJ_EXCEPTIONS 1
18682 _ACEOF
18684 ac_exception_model_name=sjlj
18685 elif test x$enable_sjlj_exceptions = xno; then
18686 ac_exception_model_name="call frame"
18687 else
18688 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
18689 echo "$as_me: error: unable to detect exception model" >&2;}
18690 { (exit 1); exit 1; }; }
18692 ac_ext=c
18693 ac_cpp='$CPP $CPPFLAGS'
18694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18698 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
18699 echo "${ECHO_T}$ac_exception_model_name" >&6
18701 # If we are non using SJLJ exceptions, and this host does not have support
18702 # for unwinding from a signal handler, enable checked dereferences and divides.
18703 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
18704 CHECKREFSPEC=-fcheck-references
18705 DIVIDESPEC=-fuse-divide-subroutine
18706 EXCEPTIONSPEC=
18709 # See if the user wants to disable java.net. This is the mildly
18710 # ugly way that we admit that target-side configuration sucks.
18711 # Check whether --enable-java-net or --disable-java-net was given.
18712 if test "${enable_java_net+set}" = set; then
18713 enableval="$enable_java_net"
18717 # Whether java.net is built by default can depend on the target.
18718 if test -z "$enable_java_net"; then
18719 enable_java_net=${enable_java_net_default-yes}
18721 if test "$enable_java_net" = no; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define DISABLE_JAVA_NET 1
18725 _ACEOF
18729 # See if the user wants to configure without libffi. Some
18730 # architectures don't support it, and default values are set in
18731 # configure.host.
18733 # Check whether --with-libffi or --without-libffi was given.
18734 if test "${with_libffi+set}" = set; then
18735 withval="$with_libffi"
18737 else
18738 with_libffi=${with_libffi_default-yes}
18741 LIBFFI=
18742 LIBFFIINCS=
18743 if test "$with_libffi" != no; then
18745 cat >>confdefs.h <<\_ACEOF
18746 #define USE_LIBFFI 1
18747 _ACEOF
18749 LIBFFI=../libffi/libffi_convenience.la
18750 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
18755 # See if the user wants to disable JVMPI support.
18756 # Check whether --enable-jvmpi or --disable-jvmpi was given.
18757 if test "${enable_jvmpi+set}" = set; then
18758 enableval="$enable_jvmpi"
18762 if test "$enable_jvmpi" != no; then
18764 cat >>confdefs.h <<\_ACEOF
18765 #define ENABLE_JVMPI 1
18766 _ACEOF
18770 # If the target is an eCos system, use the appropriate eCos
18771 # I/O routines.
18772 # FIXME: this should not be a local option but a global target
18773 # system; at present there is no eCos target.
18774 TARGET_ECOS=${PROCESS-"no"}
18776 # Check whether --with-ecos or --without-ecos was given.
18777 if test "${with_ecos+set}" = set; then
18778 withval="$with_ecos"
18779 TARGET_ECOS="$with_ecos"
18783 case "$TARGET_ECOS" in
18784 no) case "$host" in
18785 *mingw*)
18786 PLATFORM=Win32
18787 PLATFORMNET=Win32
18788 PLATFORMH=win32.h
18790 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
18791 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
18792 LD_PROG=`$CC --print-prog-name=ld`
18793 LD_VERSION=`$LD_PROG --version`
18794 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
18795 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
18796 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
18797 LD_OK="ok"
18798 else
18799 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
18800 LD_OK="ok"
18803 if test "x$LD_OK" != x; then
18804 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18805 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18806 else
18807 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
18808 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
18809 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
18810 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
18812 cat >>confdefs.h <<\_ACEOF
18813 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
18814 _ACEOF
18819 PLATFORM=Posix
18820 PLATFORMNET=Posix
18821 PLATFORMH=posix.h
18823 esac
18826 PLATFORM=Ecos
18827 PLATFORMNET=NoNet
18829 cat >>confdefs.h <<\_ACEOF
18830 #define ECOS 1
18831 _ACEOF
18833 PLATFORMH=posix.h
18835 esac
18837 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 #include <stdint.h>
18848 _ACEOF
18849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18850 $EGREP "uint32_t" >/dev/null 2>&1; then
18852 cat >>confdefs.h <<\_ACEOF
18853 #define HAVE_INT32_DEFINED 1
18854 _ACEOF
18857 rm -f conftest*
18859 cat >conftest.$ac_ext <<_ACEOF
18860 /* confdefs.h. */
18861 _ACEOF
18862 cat confdefs.h >>conftest.$ac_ext
18863 cat >>conftest.$ac_ext <<_ACEOF
18864 /* end confdefs.h. */
18865 #include <inttypes.h>
18867 _ACEOF
18868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18869 $EGREP "uint32_t" >/dev/null 2>&1; then
18871 cat >>confdefs.h <<\_ACEOF
18872 #define HAVE_INT32_DEFINED 1
18873 _ACEOF
18876 rm -f conftest*
18878 cat >conftest.$ac_ext <<_ACEOF
18879 /* confdefs.h. */
18880 _ACEOF
18881 cat confdefs.h >>conftest.$ac_ext
18882 cat >>conftest.$ac_ext <<_ACEOF
18883 /* end confdefs.h. */
18884 #include <sys/types.h>
18886 _ACEOF
18887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18888 $EGREP "u_int32_t" >/dev/null 2>&1; then
18890 cat >>confdefs.h <<\_ACEOF
18891 #define HAVE_BSD_INT32_DEFINED 1
18892 _ACEOF
18895 rm -f conftest*
18897 cat >conftest.$ac_ext <<_ACEOF
18898 /* confdefs.h. */
18899 _ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18903 #include <sys/config.h>
18905 _ACEOF
18906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18907 $EGREP "u_int32_t" >/dev/null 2>&1; then
18909 cat >>confdefs.h <<\_ACEOF
18910 #define HAVE_BSD_INT32_DEFINED 1
18911 _ACEOF
18914 rm -f conftest*
18919 if test "$PLATFORM" = Win32; then
18920 USING_WIN32_PLATFORM_TRUE=
18921 USING_WIN32_PLATFORM_FALSE='#'
18922 else
18923 USING_WIN32_PLATFORM_TRUE='#'
18924 USING_WIN32_PLATFORM_FALSE=
18929 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
18930 USING_POSIX_PLATFORM_TRUE=
18931 USING_POSIX_PLATFORM_FALSE='#'
18932 else
18933 USING_POSIX_PLATFORM_TRUE='#'
18934 USING_POSIX_PLATFORM_FALSE=
18938 case "$host" in
18939 *-darwin*) DARWIN_CRT=true ;;
18940 *) DARWIN_CRT=false ;;
18941 esac
18944 if $DARWIN_CRT; then
18945 USING_DARWIN_CRT_TRUE=
18946 USING_DARWIN_CRT_FALSE='#'
18947 else
18948 USING_DARWIN_CRT_TRUE='#'
18949 USING_DARWIN_CRT_FALSE=
18953 # This may not be defined in a non-ANS conformant embedded system.
18954 # FIXME: Should these case a runtime exception in that case?
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 #include <time.h>
18963 _ACEOF
18964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18965 $EGREP "localtime" >/dev/null 2>&1; then
18967 cat >>confdefs.h <<\_ACEOF
18968 #define HAVE_LOCALTIME 1
18969 _ACEOF
18972 rm -f conftest*
18975 # Create the subdirectory for natFile.cc, or the attempt
18976 # to create the link will fail.
18977 test -d java || mkdir java
18978 test -d java/io || mkdir java/io
18979 test -d gnu || mkdir gnu
18980 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
18983 # Likewise for natConcreteProcess.cc.
18984 test -d java/lang || mkdir java/lang
18985 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
18988 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
18989 test -d java/net || mkdir java/net
18990 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
18992 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
18995 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
18996 test -d gnu/java || mkdir gnu/java
18997 test -d gnu/java/net || mkdir gnu/java/net
18998 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19000 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19003 # Likewise for natVMPipe.cc and natVMSelector.cc.
19004 test -d gnu/java/nio || mkdir gnu/java/nio
19005 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19007 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19010 # Likewise for natFileChannelImpl.cc
19011 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19012 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19015 case "${host}" in
19016 *mingw*)
19017 SYSTEMSPEC="-lgdi32 -lws2_32"
19018 if test "${with_win32_nlsapi}" = "unicows"; then
19019 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19023 SYSTEMSPEC=
19025 esac
19029 # Check whether --with-system-zlib or --without-system-zlib was given.
19030 if test "${with_system_zlib+set}" = set; then
19031 withval="$with_system_zlib"
19034 ZLIBSPEC=
19036 ZLIBTESTSPEC=
19039 echo "$as_me:$LINENO: checking for X" >&5
19040 echo $ECHO_N "checking for X... $ECHO_C" >&6
19043 # Check whether --with-x or --without-x was given.
19044 if test "${with_x+set}" = set; then
19045 withval="$with_x"
19048 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19049 if test "x$with_x" = xno; then
19050 # The user explicitly disabled X.
19051 have_x=disabled
19052 else
19053 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19054 # Both variables are already set.
19055 have_x=yes
19056 else
19057 if test "${ac_cv_have_x+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060 # One or both of the vars are not set, and there is no cached value.
19061 ac_x_includes=no ac_x_libraries=no
19062 rm -fr conftest.dir
19063 if mkdir conftest.dir; then
19064 cd conftest.dir
19065 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19066 cat >Imakefile <<'_ACEOF'
19067 acfindx:
19068 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19069 _ACEOF
19070 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19072 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19073 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19074 for ac_extension in a so sl; do
19075 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19076 test -f $ac_im_libdir/libX11.$ac_extension; then
19077 ac_im_usrlibdir=$ac_im_libdir; break
19079 done
19080 # Screen out bogus values from the imake configuration. They are
19081 # bogus both because they are the default anyway, and because
19082 # using them would break gcc on systems where it needs fixed includes.
19083 case $ac_im_incroot in
19084 /usr/include) ;;
19085 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19086 esac
19087 case $ac_im_usrlibdir in
19088 /usr/lib | /lib) ;;
19089 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19090 esac
19092 cd ..
19093 rm -fr conftest.dir
19096 # Standard set of common directories for X headers.
19097 # Check X11 before X11Rn because it is often a symlink to the current release.
19098 ac_x_header_dirs='
19099 /usr/X11/include
19100 /usr/X11R6/include
19101 /usr/X11R5/include
19102 /usr/X11R4/include
19104 /usr/include/X11
19105 /usr/include/X11R6
19106 /usr/include/X11R5
19107 /usr/include/X11R4
19109 /usr/local/X11/include
19110 /usr/local/X11R6/include
19111 /usr/local/X11R5/include
19112 /usr/local/X11R4/include
19114 /usr/local/include/X11
19115 /usr/local/include/X11R6
19116 /usr/local/include/X11R5
19117 /usr/local/include/X11R4
19119 /usr/X386/include
19120 /usr/x386/include
19121 /usr/XFree86/include/X11
19123 /usr/include
19124 /usr/local/include
19125 /usr/unsupported/include
19126 /usr/athena/include
19127 /usr/local/x11r5/include
19128 /usr/lpp/Xamples/include
19130 /usr/openwin/include
19131 /usr/openwin/share/include'
19133 if test "$ac_x_includes" = no; then
19134 # Guess where to find include files, by looking for Intrinsic.h.
19135 # First, try using that file with no special directory specified.
19136 cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h. */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19142 #include <X11/Intrinsic.h>
19143 _ACEOF
19144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19146 ac_status=$?
19147 grep -v '^ *+' conftest.er1 >conftest.err
19148 rm -f conftest.er1
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } >/dev/null; then
19152 if test -s conftest.err; then
19153 ac_cpp_err=$ac_c_preproc_warn_flag
19154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19155 else
19156 ac_cpp_err=
19158 else
19159 ac_cpp_err=yes
19161 if test -z "$ac_cpp_err"; then
19162 # We can compile using X headers with no special include directory.
19163 ac_x_includes=
19164 else
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 for ac_dir in $ac_x_header_dirs; do
19169 if test -r "$ac_dir/X11/Intrinsic.h"; then
19170 ac_x_includes=$ac_dir
19171 break
19173 done
19175 rm -f conftest.err conftest.$ac_ext
19176 fi # $ac_x_includes = no
19178 if test "$ac_x_libraries" = no; then
19179 # Check for the libraries.
19180 # See if we find them without any special options.
19181 # Don't add to $LIBS permanently.
19182 ac_save_LIBS=$LIBS
19183 LIBS="-lXt $LIBS"
19184 if test x$gcc_no_link = xyes; then
19185 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19186 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19187 { (exit 1); exit 1; }; }
19189 cat >conftest.$ac_ext <<_ACEOF
19190 /* confdefs.h. */
19191 _ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19195 #include <X11/Intrinsic.h>
19197 main ()
19199 XtMalloc (0)
19201 return 0;
19203 _ACEOF
19204 rm -f conftest.$ac_objext conftest$ac_exeext
19205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19206 (eval $ac_link) 2>conftest.er1
19207 ac_status=$?
19208 grep -v '^ *+' conftest.er1 >conftest.err
19209 rm -f conftest.er1
19210 cat conftest.err >&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } &&
19213 { ac_try='test -z "$ac_c_werror_flag"
19214 || test ! -s conftest.err'
19215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19216 (eval $ac_try) 2>&5
19217 ac_status=$?
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; } &&
19220 { ac_try='test -s conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 LIBS=$ac_save_LIBS
19227 # We can link X programs with no special library path.
19228 ac_x_libraries=
19229 else
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 LIBS=$ac_save_LIBS
19234 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19236 # Don't even attempt the hair of trying to link an X program!
19237 for ac_extension in a so sl; do
19238 if test -r $ac_dir/libXt.$ac_extension; then
19239 ac_x_libraries=$ac_dir
19240 break 2
19242 done
19243 done
19245 rm -f conftest.err conftest.$ac_objext \
19246 conftest$ac_exeext conftest.$ac_ext
19247 fi # $ac_x_libraries = no
19249 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19250 # Didn't find X anywhere. Cache the known absence of X.
19251 ac_cv_have_x="have_x=no"
19252 else
19253 # Record where we found X for the cache.
19254 ac_cv_have_x="have_x=yes \
19255 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19260 eval "$ac_cv_have_x"
19261 fi # $with_x != no
19263 if test "$have_x" != yes; then
19264 echo "$as_me:$LINENO: result: $have_x" >&5
19265 echo "${ECHO_T}$have_x" >&6
19266 no_x=yes
19267 else
19268 # If each of the values was on the command line, it overrides each guess.
19269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19271 # Update the cache value to reflect the command line values.
19272 ac_cv_have_x="have_x=yes \
19273 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19274 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19275 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19278 if test "$no_x" = yes; then
19279 # Not all programs may use this symbol, but it does not hurt to define it.
19281 cat >>confdefs.h <<\_ACEOF
19282 #define X_DISPLAY_MISSING 1
19283 _ACEOF
19285 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19286 else
19287 if test -n "$x_includes"; then
19288 X_CFLAGS="$X_CFLAGS -I$x_includes"
19291 # It would also be nice to do this for all -L options, not just this one.
19292 if test -n "$x_libraries"; then
19293 X_LIBS="$X_LIBS -L$x_libraries"
19294 # For Solaris; some versions of Sun CC require a space after -R and
19295 # others require no space. Words are not sufficient . . . .
19296 case `(uname -sr) 2>/dev/null` in
19297 "SunOS 5"*)
19298 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19299 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
19300 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19301 if test x$gcc_no_link = xyes; then
19302 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19303 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19304 { (exit 1); exit 1; }; }
19306 cat >conftest.$ac_ext <<_ACEOF
19307 /* confdefs.h. */
19308 _ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19314 main ()
19318 return 0;
19320 _ACEOF
19321 rm -f conftest.$ac_objext conftest$ac_exeext
19322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19323 (eval $ac_link) 2>conftest.er1
19324 ac_status=$?
19325 grep -v '^ *+' conftest.er1 >conftest.err
19326 rm -f conftest.er1
19327 cat conftest.err >&5
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); } &&
19330 { ac_try='test -z "$ac_c_werror_flag"
19331 || test ! -s conftest.err'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest$ac_exeext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_R_nospace=yes
19344 else
19345 echo "$as_me: failed program was:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 ac_R_nospace=no
19350 rm -f conftest.err conftest.$ac_objext \
19351 conftest$ac_exeext conftest.$ac_ext
19352 if test $ac_R_nospace = yes; then
19353 echo "$as_me:$LINENO: result: no" >&5
19354 echo "${ECHO_T}no" >&6
19355 X_LIBS="$X_LIBS -R$x_libraries"
19356 else
19357 LIBS="$ac_xsave_LIBS -R $x_libraries"
19358 if test x$gcc_no_link = xyes; then
19359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19361 { (exit 1); exit 1; }; }
19363 cat >conftest.$ac_ext <<_ACEOF
19364 /* confdefs.h. */
19365 _ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19371 main ()
19375 return 0;
19377 _ACEOF
19378 rm -f conftest.$ac_objext conftest$ac_exeext
19379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19380 (eval $ac_link) 2>conftest.er1
19381 ac_status=$?
19382 grep -v '^ *+' conftest.er1 >conftest.err
19383 rm -f conftest.er1
19384 cat conftest.err >&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } &&
19387 { ac_try='test -z "$ac_c_werror_flag"
19388 || test ! -s conftest.err'
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try='test -s conftest$ac_exeext'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_R_space=yes
19401 else
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_R_space=no
19407 rm -f conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
19409 if test $ac_R_space = yes; then
19410 echo "$as_me:$LINENO: result: yes" >&5
19411 echo "${ECHO_T}yes" >&6
19412 X_LIBS="$X_LIBS -R $x_libraries"
19413 else
19414 echo "$as_me:$LINENO: result: neither works" >&5
19415 echo "${ECHO_T}neither works" >&6
19418 LIBS=$ac_xsave_LIBS
19419 esac
19422 # Check for system-dependent libraries X programs must link with.
19423 # Do this before checking for the system-independent R6 libraries
19424 # (-lICE), since we may need -lsocket or whatever for X linking.
19426 if test "$ISC" = yes; then
19427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19428 else
19429 # Martyn Johnson says this is needed for Ultrix, if the X
19430 # libraries were built with DECnet support. And Karl Berry says
19431 # the Alpha needs dnet_stub (dnet does not exist).
19432 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19433 if test x$gcc_no_link = xyes; then
19434 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19435 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19436 { (exit 1); exit 1; }; }
19438 cat >conftest.$ac_ext <<_ACEOF
19439 /* confdefs.h. */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19445 /* Override any gcc2 internal prototype to avoid an error. */
19446 #ifdef __cplusplus
19447 extern "C"
19448 #endif
19449 /* We use char because int might match the return type of a gcc2
19450 builtin and then its argument prototype would still apply. */
19451 char XOpenDisplay ();
19453 main ()
19455 XOpenDisplay ();
19457 return 0;
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19462 (eval $ac_link) 2>conftest.er1
19463 ac_status=$?
19464 grep -v '^ *+' conftest.er1 >conftest.err
19465 rm -f conftest.er1
19466 cat conftest.err >&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); } &&
19469 { ac_try='test -z "$ac_c_werror_flag"
19470 || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19483 else
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19488 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19489 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492 ac_check_lib_save_LIBS=$LIBS
19493 LIBS="-ldnet $LIBS"
19494 if test x$gcc_no_link = xyes; then
19495 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19496 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19497 { (exit 1); exit 1; }; }
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19506 /* Override any gcc2 internal prototype to avoid an error. */
19507 #ifdef __cplusplus
19508 extern "C"
19509 #endif
19510 /* We use char because int might match the return type of a gcc2
19511 builtin and then its argument prototype would still apply. */
19512 char dnet_ntoa ();
19514 main ()
19516 dnet_ntoa ();
19518 return 0;
19520 _ACEOF
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19523 (eval $ac_link) 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_c_werror_flag"
19531 || test ! -s conftest.err'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try='test -s conftest$ac_exeext'
19538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19539 (eval $ac_try) 2>&5
19540 ac_status=$?
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_lib_dnet_dnet_ntoa=yes
19544 else
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19548 ac_cv_lib_dnet_dnet_ntoa=no
19550 rm -f conftest.err conftest.$ac_objext \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19555 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19556 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19557 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19560 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19561 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19562 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19563 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 else
19566 ac_check_lib_save_LIBS=$LIBS
19567 LIBS="-ldnet_stub $LIBS"
19568 if test x$gcc_no_link = xyes; then
19569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19571 { (exit 1); exit 1; }; }
19573 cat >conftest.$ac_ext <<_ACEOF
19574 /* confdefs.h. */
19575 _ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19580 /* Override any gcc2 internal prototype to avoid an error. */
19581 #ifdef __cplusplus
19582 extern "C"
19583 #endif
19584 /* We use char because int might match the return type of a gcc2
19585 builtin and then its argument prototype would still apply. */
19586 char dnet_ntoa ();
19588 main ()
19590 dnet_ntoa ();
19592 return 0;
19594 _ACEOF
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19597 (eval $ac_link) 2>conftest.er1
19598 ac_status=$?
19599 grep -v '^ *+' conftest.er1 >conftest.err
19600 rm -f conftest.er1
19601 cat conftest.err >&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); } &&
19604 { ac_try='test -z "$ac_c_werror_flag"
19605 || test ! -s conftest.err'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest$ac_exeext'
19612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19613 (eval $ac_try) 2>&5
19614 ac_status=$?
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); }; }; then
19617 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19618 else
19619 echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_lib_dnet_stub_dnet_ntoa=no
19624 rm -f conftest.err conftest.$ac_objext \
19625 conftest$ac_exeext conftest.$ac_ext
19626 LIBS=$ac_check_lib_save_LIBS
19628 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19629 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19630 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19631 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19636 rm -f conftest.err conftest.$ac_objext \
19637 conftest$ac_exeext conftest.$ac_ext
19638 LIBS="$ac_xsave_LIBS"
19640 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19641 # to get the SysV transport functions.
19642 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19643 # needs -lnsl.
19644 # The nsl library prevents programs from opening the X display
19645 # on Irix 5.2, according to T.E. Dickey.
19646 # The functions gethostbyname, getservbyname, and inet_addr are
19647 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19648 echo "$as_me:$LINENO: checking for gethostbyname" >&5
19649 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19650 if test "${ac_cv_func_gethostbyname+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19652 else
19653 if test x$gcc_no_link = xyes; then
19654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19656 { (exit 1); exit 1; }; }
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666 #define gethostbyname innocuous_gethostbyname
19668 /* System header to define __stub macros and hopefully few prototypes,
19669 which can conflict with char gethostbyname (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
19673 #ifdef __STDC__
19674 # include <limits.h>
19675 #else
19676 # include <assert.h>
19677 #endif
19679 #undef gethostbyname
19681 /* Override any gcc2 internal prototype to avoid an error. */
19682 #ifdef __cplusplus
19683 extern "C"
19685 #endif
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19688 char gethostbyname ();
19689 /* The GNU C library defines this for functions which it implements
19690 to always fail with ENOSYS. Some functions are actually named
19691 something starting with __ and the normal name is an alias. */
19692 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19693 choke me
19694 #else
19695 char (*f) () = gethostbyname;
19696 #endif
19697 #ifdef __cplusplus
19699 #endif
19702 main ()
19704 return f != gethostbyname;
19706 return 0;
19708 _ACEOF
19709 rm -f conftest.$ac_objext conftest$ac_exeext
19710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19711 (eval $ac_link) 2>conftest.er1
19712 ac_status=$?
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
19718 { ac_try='test -z "$ac_c_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 ac_cv_func_gethostbyname=yes
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 ac_cv_func_gethostbyname=no
19738 rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19741 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19742 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19744 if test $ac_cv_func_gethostbyname = no; then
19745 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19746 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19747 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 else
19750 ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-lnsl $LIBS"
19752 if test x$gcc_no_link = xyes; then
19753 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19754 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19755 { (exit 1); exit 1; }; }
19757 cat >conftest.$ac_ext <<_ACEOF
19758 /* confdefs.h. */
19759 _ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19764 /* Override any gcc2 internal prototype to avoid an error. */
19765 #ifdef __cplusplus
19766 extern "C"
19767 #endif
19768 /* We use char because int might match the return type of a gcc2
19769 builtin and then its argument prototype would still apply. */
19770 char gethostbyname ();
19772 main ()
19774 gethostbyname ();
19776 return 0;
19778 _ACEOF
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>conftest.er1
19782 ac_status=$?
19783 grep -v '^ *+' conftest.er1 >conftest.err
19784 rm -f conftest.er1
19785 cat conftest.err >&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try='test -z "$ac_c_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19792 ac_status=$?
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19801 ac_cv_lib_nsl_gethostbyname=yes
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19806 ac_cv_lib_nsl_gethostbyname=no
19808 rm -f conftest.err conftest.$ac_objext \
19809 conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_check_lib_save_LIBS
19812 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19813 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19814 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19815 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19818 if test $ac_cv_lib_nsl_gethostbyname = no; then
19819 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19820 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19821 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19823 else
19824 ac_check_lib_save_LIBS=$LIBS
19825 LIBS="-lbsd $LIBS"
19826 if test x$gcc_no_link = xyes; then
19827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19829 { (exit 1); exit 1; }; }
19831 cat >conftest.$ac_ext <<_ACEOF
19832 /* confdefs.h. */
19833 _ACEOF
19834 cat confdefs.h >>conftest.$ac_ext
19835 cat >>conftest.$ac_ext <<_ACEOF
19836 /* end confdefs.h. */
19838 /* Override any gcc2 internal prototype to avoid an error. */
19839 #ifdef __cplusplus
19840 extern "C"
19841 #endif
19842 /* We use char because int might match the return type of a gcc2
19843 builtin and then its argument prototype would still apply. */
19844 char gethostbyname ();
19846 main ()
19848 gethostbyname ();
19850 return 0;
19852 _ACEOF
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19855 (eval $ac_link) 2>conftest.er1
19856 ac_status=$?
19857 grep -v '^ *+' conftest.er1 >conftest.err
19858 rm -f conftest.er1
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); } &&
19862 { ac_try='test -z "$ac_c_werror_flag"
19863 || test ! -s conftest.err'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19866 ac_status=$?
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest$ac_exeext'
19870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19871 (eval $ac_try) 2>&5
19872 ac_status=$?
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); }; }; then
19875 ac_cv_lib_bsd_gethostbyname=yes
19876 else
19877 echo "$as_me: failed program was:" >&5
19878 sed 's/^/| /' conftest.$ac_ext >&5
19880 ac_cv_lib_bsd_gethostbyname=no
19882 rm -f conftest.err conftest.$ac_objext \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19886 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19887 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19888 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19895 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19896 # socket/setsockopt and other routines are undefined under SCO ODT
19897 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19898 # on later versions), says Simon Leinen: it contains gethostby*
19899 # variants that don't use the name server (or something). -lsocket
19900 # must be given before -lnsl if both are needed. We assume that
19901 # if connect needs -lnsl, so does gethostbyname.
19902 echo "$as_me:$LINENO: checking for connect" >&5
19903 echo $ECHO_N "checking for connect... $ECHO_C" >&6
19904 if test "${ac_cv_func_connect+set}" = set; then
19905 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 else
19907 if test x$gcc_no_link = xyes; then
19908 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
19909 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
19910 { (exit 1); exit 1; }; }
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h. */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19920 #define connect innocuous_connect
19922 /* System header to define __stub macros and hopefully few prototypes,
19923 which can conflict with char connect (); below.
19924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19925 <limits.h> exists even on freestanding compilers. */
19927 #ifdef __STDC__
19928 # include <limits.h>
19929 #else
19930 # include <assert.h>
19931 #endif
19933 #undef connect
19935 /* Override any gcc2 internal prototype to avoid an error. */
19936 #ifdef __cplusplus
19937 extern "C"
19939 #endif
19940 /* We use char because int might match the return type of a gcc2
19941 builtin and then its argument prototype would still apply. */
19942 char connect ();
19943 /* The GNU C library defines this for functions which it implements
19944 to always fail with ENOSYS. Some functions are actually named
19945 something starting with __ and the normal name is an alias. */
19946 #if defined (__stub_connect) || defined (__stub___connect)
19947 choke me
19948 #else
19949 char (*f) () = connect;
19950 #endif
19951 #ifdef __cplusplus
19953 #endif
19956 main ()
19958 return f != connect;
19960 return 0;
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19965 (eval $ac_link) 2>conftest.er1
19966 ac_status=$?
19967 grep -v '^ *+' conftest.er1 >conftest.err
19968 rm -f conftest.er1
19969 cat conftest.err >&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); } &&
19972 { ac_try='test -z "$ac_c_werror_flag"
19973 || test ! -s conftest.err'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; } &&
19979 { ac_try='test -s conftest$ac_exeext'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
19985 ac_cv_func_connect=yes
19986 else
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_cv_func_connect=no
19992 rm -f conftest.err conftest.$ac_objext \
19993 conftest$ac_exeext conftest.$ac_ext
19995 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19996 echo "${ECHO_T}$ac_cv_func_connect" >&6
19998 if test $ac_cv_func_connect = no; then
19999 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20000 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20001 if test "${ac_cv_lib_socket_connect+set}" = set; then
20002 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 else
20004 ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20006 if test x$gcc_no_link = xyes; then
20007 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20008 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20009 { (exit 1); exit 1; }; }
20011 cat >conftest.$ac_ext <<_ACEOF
20012 /* confdefs.h. */
20013 _ACEOF
20014 cat confdefs.h >>conftest.$ac_ext
20015 cat >>conftest.$ac_ext <<_ACEOF
20016 /* end confdefs.h. */
20018 /* Override any gcc2 internal prototype to avoid an error. */
20019 #ifdef __cplusplus
20020 extern "C"
20021 #endif
20022 /* We use char because int might match the return type of a gcc2
20023 builtin and then its argument prototype would still apply. */
20024 char connect ();
20026 main ()
20028 connect ();
20030 return 0;
20032 _ACEOF
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20035 (eval $ac_link) 2>conftest.er1
20036 ac_status=$?
20037 grep -v '^ *+' conftest.er1 >conftest.err
20038 rm -f conftest.er1
20039 cat conftest.err >&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); } &&
20042 { ac_try='test -z "$ac_c_werror_flag"
20043 || test ! -s conftest.err'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try='test -s conftest$ac_exeext'
20050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051 (eval $ac_try) 2>&5
20052 ac_status=$?
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); }; }; then
20055 ac_cv_lib_socket_connect=yes
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20060 ac_cv_lib_socket_connect=no
20062 rm -f conftest.err conftest.$ac_objext \
20063 conftest$ac_exeext conftest.$ac_ext
20064 LIBS=$ac_check_lib_save_LIBS
20066 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20067 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20068 if test $ac_cv_lib_socket_connect = yes; then
20069 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20074 # Guillermo Gomez says -lposix is necessary on A/UX.
20075 echo "$as_me:$LINENO: checking for remove" >&5
20076 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20077 if test "${ac_cv_func_remove+set}" = set; then
20078 echo $ECHO_N "(cached) $ECHO_C" >&6
20079 else
20080 if test x$gcc_no_link = xyes; then
20081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20083 { (exit 1); exit 1; }; }
20085 cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h. */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20091 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20093 #define remove innocuous_remove
20095 /* System header to define __stub macros and hopefully few prototypes,
20096 which can conflict with char remove (); below.
20097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20098 <limits.h> exists even on freestanding compilers. */
20100 #ifdef __STDC__
20101 # include <limits.h>
20102 #else
20103 # include <assert.h>
20104 #endif
20106 #undef remove
20108 /* Override any gcc2 internal prototype to avoid an error. */
20109 #ifdef __cplusplus
20110 extern "C"
20112 #endif
20113 /* We use char because int might match the return type of a gcc2
20114 builtin and then its argument prototype would still apply. */
20115 char remove ();
20116 /* The GNU C library defines this for functions which it implements
20117 to always fail with ENOSYS. Some functions are actually named
20118 something starting with __ and the normal name is an alias. */
20119 #if defined (__stub_remove) || defined (__stub___remove)
20120 choke me
20121 #else
20122 char (*f) () = remove;
20123 #endif
20124 #ifdef __cplusplus
20126 #endif
20129 main ()
20131 return f != remove;
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20138 (eval $ac_link) 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } &&
20145 { ac_try='test -z "$ac_c_werror_flag"
20146 || test ! -s conftest.err'
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest$ac_exeext'
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_func_remove=yes
20159 else
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_cv_func_remove=no
20165 rm -f conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext conftest.$ac_ext
20168 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20169 echo "${ECHO_T}$ac_cv_func_remove" >&6
20171 if test $ac_cv_func_remove = no; then
20172 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20173 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20174 if test "${ac_cv_lib_posix_remove+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 else
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lposix $LIBS"
20179 if test x$gcc_no_link = xyes; then
20180 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20181 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20182 { (exit 1); exit 1; }; }
20184 cat >conftest.$ac_ext <<_ACEOF
20185 /* confdefs.h. */
20186 _ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any gcc2 internal prototype to avoid an error. */
20192 #ifdef __cplusplus
20193 extern "C"
20194 #endif
20195 /* We use char because int might match the return type of a gcc2
20196 builtin and then its argument prototype would still apply. */
20197 char remove ();
20199 main ()
20201 remove ();
20203 return 0;
20205 _ACEOF
20206 rm -f conftest.$ac_objext conftest$ac_exeext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20208 (eval $ac_link) 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_lib_posix_remove=yes
20229 else
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20233 ac_cv_lib_posix_remove=no
20235 rm -f conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20240 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20241 if test $ac_cv_lib_posix_remove = yes; then
20242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20247 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20248 echo "$as_me:$LINENO: checking for shmat" >&5
20249 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20250 if test "${ac_cv_func_shmat+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 else
20253 if test x$gcc_no_link = xyes; then
20254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20256 { (exit 1); exit 1; }; }
20258 cat >conftest.$ac_ext <<_ACEOF
20259 /* confdefs.h. */
20260 _ACEOF
20261 cat confdefs.h >>conftest.$ac_ext
20262 cat >>conftest.$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20266 #define shmat innocuous_shmat
20268 /* System header to define __stub macros and hopefully few prototypes,
20269 which can conflict with char shmat (); below.
20270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20271 <limits.h> exists even on freestanding compilers. */
20273 #ifdef __STDC__
20274 # include <limits.h>
20275 #else
20276 # include <assert.h>
20277 #endif
20279 #undef shmat
20281 /* Override any gcc2 internal prototype to avoid an error. */
20282 #ifdef __cplusplus
20283 extern "C"
20285 #endif
20286 /* We use char because int might match the return type of a gcc2
20287 builtin and then its argument prototype would still apply. */
20288 char shmat ();
20289 /* The GNU C library defines this for functions which it implements
20290 to always fail with ENOSYS. Some functions are actually named
20291 something starting with __ and the normal name is an alias. */
20292 #if defined (__stub_shmat) || defined (__stub___shmat)
20293 choke me
20294 #else
20295 char (*f) () = shmat;
20296 #endif
20297 #ifdef __cplusplus
20299 #endif
20302 main ()
20304 return f != shmat;
20306 return 0;
20308 _ACEOF
20309 rm -f conftest.$ac_objext conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311 (eval $ac_link) 2>conftest.er1
20312 ac_status=$?
20313 grep -v '^ *+' conftest.er1 >conftest.err
20314 rm -f conftest.er1
20315 cat conftest.err >&5
20316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317 (exit $ac_status); } &&
20318 { ac_try='test -z "$ac_c_werror_flag"
20319 || test ! -s conftest.err'
20320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20321 (eval $ac_try) 2>&5
20322 ac_status=$?
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; } &&
20325 { ac_try='test -s conftest$ac_exeext'
20326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20327 (eval $ac_try) 2>&5
20328 ac_status=$?
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); }; }; then
20331 ac_cv_func_shmat=yes
20332 else
20333 echo "$as_me: failed program was:" >&5
20334 sed 's/^/| /' conftest.$ac_ext >&5
20336 ac_cv_func_shmat=no
20338 rm -f conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20341 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20342 echo "${ECHO_T}$ac_cv_func_shmat" >&6
20344 if test $ac_cv_func_shmat = no; then
20345 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
20346 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
20347 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
20348 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 else
20350 ac_check_lib_save_LIBS=$LIBS
20351 LIBS="-lipc $LIBS"
20352 if test x$gcc_no_link = xyes; then
20353 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20354 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20355 { (exit 1); exit 1; }; }
20357 cat >conftest.$ac_ext <<_ACEOF
20358 /* confdefs.h. */
20359 _ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20364 /* Override any gcc2 internal prototype to avoid an error. */
20365 #ifdef __cplusplus
20366 extern "C"
20367 #endif
20368 /* We use char because int might match the return type of a gcc2
20369 builtin and then its argument prototype would still apply. */
20370 char shmat ();
20372 main ()
20374 shmat ();
20376 return 0;
20378 _ACEOF
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20381 (eval $ac_link) 2>conftest.er1
20382 ac_status=$?
20383 grep -v '^ *+' conftest.er1 >conftest.err
20384 rm -f conftest.er1
20385 cat conftest.err >&5
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); } &&
20388 { ac_try='test -z "$ac_c_werror_flag"
20389 || test ! -s conftest.err'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20392 ac_status=$?
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; } &&
20395 { ac_try='test -s conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_lib_ipc_shmat=yes
20402 else
20403 echo "$as_me: failed program was:" >&5
20404 sed 's/^/| /' conftest.$ac_ext >&5
20406 ac_cv_lib_ipc_shmat=no
20408 rm -f conftest.err conftest.$ac_objext \
20409 conftest$ac_exeext conftest.$ac_ext
20410 LIBS=$ac_check_lib_save_LIBS
20412 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
20413 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
20414 if test $ac_cv_lib_ipc_shmat = yes; then
20415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20421 # Check for libraries that X11R6 Xt/Xaw programs need.
20422 ac_save_LDFLAGS=$LDFLAGS
20423 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20424 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20425 # check for ICE first), but we must link in the order -lSM -lICE or
20426 # we get undefined symbols. So assume we have SM if we have ICE.
20427 # These have to be linked with before -lX11, unlike the other
20428 # libraries we check for below, so use a different variable.
20429 # John Interrante, Karl Berry
20430 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
20431 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
20432 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 else
20435 ac_check_lib_save_LIBS=$LIBS
20436 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20437 if test x$gcc_no_link = xyes; then
20438 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20439 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20440 { (exit 1); exit 1; }; }
20442 cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h. */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20449 /* Override any gcc2 internal prototype to avoid an error. */
20450 #ifdef __cplusplus
20451 extern "C"
20452 #endif
20453 /* We use char because int might match the return type of a gcc2
20454 builtin and then its argument prototype would still apply. */
20455 char IceConnectionNumber ();
20457 main ()
20459 IceConnectionNumber ();
20461 return 0;
20463 _ACEOF
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20466 (eval $ac_link) 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } &&
20473 { ac_try='test -z "$ac_c_werror_flag"
20474 || test ! -s conftest.err'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; } &&
20480 { ac_try='test -s conftest$ac_exeext'
20481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_lib_ICE_IceConnectionNumber=yes
20487 else
20488 echo "$as_me: failed program was:" >&5
20489 sed 's/^/| /' conftest.$ac_ext >&5
20491 ac_cv_lib_ICE_IceConnectionNumber=no
20493 rm -f conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20497 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20498 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20499 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20500 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20503 LDFLAGS=$ac_save_LDFLAGS
20508 # FIXME: this should be _libs on some hosts.
20509 libsubdir=.libs
20511 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20513 LIBSTDCXXSPEC=
20514 # extra LD Flags which are required for targets
20515 case "${host}" in
20516 *-*-darwin[0-7].*)
20517 # For now we have to disable it on darwin[8-9] because it slows down
20518 # the linking phase. A possible bug in ld?
20519 # on Darwin -single_module speeds up loading of the dynamic libraries.
20520 extra_ldflags_libjava=-Wl,-single_module
20522 *-*-darwin[9]*)
20523 extra_gij_ldflags=-Wl,-allow_stack_execute
20525 arm*linux*eabi)
20526 # Some of the ARM unwinder code is actually in libstdc++. We
20527 # could in principle replicate it in libgcj, but it's better to
20528 # have a dependency on libstdc++.
20529 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20530 LIBSTDCXXSPEC=-lstdc++
20531 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20533 esac
20541 # Allow the GC to be disabled. Can be useful when debugging.
20542 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
20543 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
20544 # Check whether --enable-java-gc or --disable-java-gc was given.
20545 if test "${enable_java_gc+set}" = set; then
20546 enableval="$enable_java_gc"
20547 GC=$enableval
20548 else
20549 GC=boehm
20551 GCLIBS=
20552 GCINCS=
20553 GCDEPS=
20554 GCSPEC=
20555 JC1GCSPEC=
20556 GCTESTSPEC=
20557 case "$GC" in
20558 boehm)
20559 echo "$as_me:$LINENO: result: boehm" >&5
20560 echo "${ECHO_T}boehm" >&6
20561 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20562 JC1GCSPEC='-fuse-boehm-gc'
20563 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20564 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20565 GCOBJS=boehm.lo
20566 GCHDR=boehm-gc.h
20567 # The POSIX thread support needs to know this.
20569 cat >>confdefs.h <<\_ACEOF
20570 #define HAVE_BOEHM_GC 1
20571 _ACEOF
20575 echo "$as_me:$LINENO: result: none" >&5
20576 echo "${ECHO_T}none" >&6
20577 GCHDR=no-gc.h
20580 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
20581 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
20582 { (exit 1); exit 1; }; }
20584 esac
20591 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20595 if test "$GC" = boehm; then
20596 USING_BOEHMGC_TRUE=
20597 USING_BOEHMGC_FALSE='#'
20598 else
20599 USING_BOEHMGC_TRUE='#'
20600 USING_BOEHMGC_FALSE=
20605 if test "$GC" = no; then
20606 USING_NOGC_TRUE=
20607 USING_NOGC_FALSE='#'
20608 else
20609 USING_NOGC_TRUE='#'
20610 USING_NOGC_FALSE=
20615 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
20616 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
20617 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20618 echo "$as_me:$LINENO: result: $THREADS" >&5
20619 echo "${ECHO_T}$THREADS" >&6
20621 case "$THREADS" in
20622 no | none | single)
20623 THREADS=none
20625 posix | posix95 | pthreads)
20626 THREADS=posix
20627 case "$host" in
20628 *-*-linux*)
20630 cat >>confdefs.h <<\_ACEOF
20631 #define LINUX_THREADS 1
20632 _ACEOF
20635 esac
20637 win32)
20639 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20640 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
20641 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
20642 { (exit 1); exit 1; }; }
20645 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
20646 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
20647 { (exit 1); exit 1; }; }
20649 esac
20651 THREADCXXFLAGS=
20652 THREADLDFLAGS=
20653 THREADLIBS=
20654 THREADINCS=
20655 THREADDEPS=
20656 THREADH=
20657 THREADSPEC=
20658 THREADSTARTFILESPEC=
20659 case "$THREADS" in
20660 posix)
20661 case "$host" in
20662 *-*-cygwin*)
20663 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20665 *-*-freebsd[1234]*)
20666 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20667 # merely adds pthread_* functions) but it does have a -pthread switch
20668 # which is required at link-time to select -lc_r *instead* of -lc.
20669 THREADLDFLAGS=-pthread
20670 # Don't set THREADSPEC here as might be expected since -pthread is
20671 # not processed when found within a spec file, it must come from
20672 # the command line. For now, the user must provide the -pthread
20673 # switch to link code compiled with gcj. In future, consider adding
20674 # support for weak references to pthread_* functions ala gthr.h API.
20675 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20677 *-*-freebsd*)
20678 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20679 # systems which support threads and -lpthread.
20680 THREADLDFLAGS=-pthread
20681 THREADSPEC=-lpthread
20683 alpha*-dec-osf* | hppa*-hp-hpux*)
20684 THREADCXXFLAGS=-pthread
20685 # boehm-gc needs some functions from librt, so link that too.
20686 THREADLIBS='-lpthread -lrt'
20687 THREADSPEC='-lpthread -lrt'
20690 THREADLIBS=-lpthread
20691 THREADSPEC=-lpthread
20693 esac
20694 THREADH=posix-threads.h
20695 # MIT pthreads doesn't seem to have the mutexattr functions.
20696 # But for now we don't check for it. We just assume you aren't
20697 # using MIT pthreads.
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20701 _ACEOF
20704 # If we're using the Boehm GC, then we happen to know that it
20705 # defines _REENTRANT, so we don't bother. Eww.
20706 if test "$GC" != boehm; then
20708 cat >>confdefs.h <<\_ACEOF
20709 #define _REENTRANT 1
20710 _ACEOF
20714 cat >>confdefs.h <<\_ACEOF
20715 #define _POSIX_PTHREAD_SEMANTICS 1
20716 _ACEOF
20720 win32)
20721 THREADH=win32-threads.h
20722 THREADCXXFLAGS=-mthreads
20723 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20724 # But we do not want the executables created to be dependent on
20725 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20726 # exception handling contexts. The following kludge achieves this effect
20727 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20728 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20729 # A workaround is to explicitly use -mthreads while linking Java programs.
20730 # See PR libgcj/28263.
20732 # FIXME: In Java we are able to detect thread death at the end of
20733 # Thread.run() so we should be able to clean up the exception handling
20734 # contexts ourselves.
20735 THREADSTARTFILESPEC='crtmt%O%s'
20738 none)
20739 THREADH=no-threads.h
20741 esac
20742 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20753 if test "$THREADS" = posix; then
20754 USING_POSIX_THREADS_TRUE=
20755 USING_POSIX_THREADS_FALSE='#'
20756 else
20757 USING_POSIX_THREADS_TRUE='#'
20758 USING_POSIX_THREADS_FALSE=
20763 if test "$THREADS" = win32; then
20764 USING_WIN32_THREADS_TRUE=
20765 USING_WIN32_THREADS_FALSE='#'
20766 else
20767 USING_WIN32_THREADS_TRUE='#'
20768 USING_WIN32_THREADS_FALSE=
20773 if test "$THREADS" = none; then
20774 USING_NO_THREADS_TRUE=
20775 USING_NO_THREADS_FALSE='#'
20776 else
20777 USING_NO_THREADS_TRUE='#'
20778 USING_NO_THREADS_FALSE=
20783 if test "$use_libgcj_bc" = yes; then
20784 USE_LIBGCJ_BC_TRUE=
20785 USE_LIBGCJ_BC_FALSE='#'
20786 else
20787 USE_LIBGCJ_BC_TRUE='#'
20788 USE_LIBGCJ_BC_FALSE=
20792 if test -d sysdep; then true; else mkdir sysdep; fi
20793 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20795 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20797 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20800 LIBGCJ_SPEC="%{s-bc-abi:} -lgcj"
20801 if test "$use_libgcj_bc" = yes; then
20802 LIBGCJ_SPEC="%{s-bc-abi:-lgcj_bc;:-lgcj}"
20806 HASH_SYNC_SPEC=
20807 # Hash synchronization is only useful with posix threads right now.
20808 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20809 HASH_SYNC_SPEC=-fhash-synchronization
20811 cat >>confdefs.h <<\_ACEOF
20812 #define JV_HASH_SYNCHRONIZATION 1
20813 _ACEOF
20820 if test "$GCC" = yes; then
20821 USING_GCC_TRUE=
20822 USING_GCC_FALSE='#'
20823 else
20824 USING_GCC_TRUE='#'
20825 USING_GCC_FALSE=
20829 # We're in the tree with gcc, and need to include some of its headers.
20830 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20832 if test "x${with_newlib}" = "xyes"; then
20833 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20834 # may not work correctly, because the compiler may not be able to
20835 # link executables.
20837 # We assume newlib. This lets us hard-code the functions we know
20838 # we'll have.
20840 cat >>confdefs.h <<\_ACEOF
20841 #define HAVE_MEMMOVE 1
20842 _ACEOF
20845 cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_MEMCPY 1
20847 _ACEOF
20850 cat >>confdefs.h <<\_ACEOF
20851 #define HAVE_TIME 1
20852 _ACEOF
20855 cat >>confdefs.h <<\_ACEOF
20856 #define HAVE_GMTIME_R 1
20857 _ACEOF
20860 cat >>confdefs.h <<\_ACEOF
20861 #define HAVE_LOCALTIME_R 1
20862 _ACEOF
20865 cat >>confdefs.h <<\_ACEOF
20866 #define HAVE_USLEEP_DECL 1
20867 _ACEOF
20869 # This is only for POSIX threads.
20871 cat >>confdefs.h <<\_ACEOF
20872 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
20873 _ACEOF
20876 # Assume we do not have getuid and friends.
20878 cat >>confdefs.h <<\_ACEOF
20879 #define NO_GETUID 1
20880 _ACEOF
20882 PLATFORMNET=NoNet
20883 else
20914 for ac_func in strerror_r select fstat open fsync sleep opendir \
20915 localtime_r getpwuid_r getcwd \
20916 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20917 nl_langinfo setlocale \
20918 inet_pton uname inet_ntoa \
20919 getrlimit sigaction ftruncate mmap \
20920 getifaddrs
20922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20923 echo "$as_me:$LINENO: checking for $ac_func" >&5
20924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20925 if eval "test \"\${$as_ac_var+set}\" = set"; then
20926 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 else
20928 if test x$gcc_no_link = xyes; then
20929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
20930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
20931 { (exit 1); exit 1; }; }
20933 cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h. */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20941 #define $ac_func innocuous_$ac_func
20943 /* System header to define __stub macros and hopefully few prototypes,
20944 which can conflict with char $ac_func (); below.
20945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20946 <limits.h> exists even on freestanding compilers. */
20948 #ifdef __STDC__
20949 # include <limits.h>
20950 #else
20951 # include <assert.h>
20952 #endif
20954 #undef $ac_func
20956 /* Override any gcc2 internal prototype to avoid an error. */
20957 #ifdef __cplusplus
20958 extern "C"
20960 #endif
20961 /* We use char because int might match the return type of a gcc2
20962 builtin and then its argument prototype would still apply. */
20963 char $ac_func ();
20964 /* The GNU C library defines this for functions which it implements
20965 to always fail with ENOSYS. Some functions are actually named
20966 something starting with __ and the normal name is an alias. */
20967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20968 choke me
20969 #else
20970 char (*f) () = $ac_func;
20971 #endif
20972 #ifdef __cplusplus
20974 #endif
20977 main ()
20979 return f != $ac_func;
20981 return 0;
20983 _ACEOF
20984 rm -f conftest.$ac_objext conftest$ac_exeext
20985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20986 (eval $ac_link) 2>conftest.er1
20987 ac_status=$?
20988 grep -v '^ *+' conftest.er1 >conftest.err
20989 rm -f conftest.er1
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); } &&
20993 { ac_try='test -z "$ac_c_werror_flag"
20994 || test ! -s conftest.err'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; } &&
21000 { ac_try='test -s conftest$ac_exeext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 eval "$as_ac_var=yes"
21007 else
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21011 eval "$as_ac_var=no"
21013 rm -f conftest.err conftest.$ac_objext \
21014 conftest$ac_exeext conftest.$ac_ext
21016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21018 if test `eval echo '${'$as_ac_var'}'` = yes; then
21019 cat >>confdefs.h <<_ACEOF
21020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21021 _ACEOF
21024 done
21028 for ac_func in inet_aton inet_addr
21030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21031 echo "$as_me:$LINENO: checking for $ac_func" >&5
21032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21033 if eval "test \"\${$as_ac_var+set}\" = set"; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21035 else
21036 if test x$gcc_no_link = xyes; then
21037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21039 { (exit 1); exit 1; }; }
21041 cat >conftest.$ac_ext <<_ACEOF
21042 /* confdefs.h. */
21043 _ACEOF
21044 cat confdefs.h >>conftest.$ac_ext
21045 cat >>conftest.$ac_ext <<_ACEOF
21046 /* end confdefs.h. */
21047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21049 #define $ac_func innocuous_$ac_func
21051 /* System header to define __stub macros and hopefully few prototypes,
21052 which can conflict with char $ac_func (); below.
21053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21054 <limits.h> exists even on freestanding compilers. */
21056 #ifdef __STDC__
21057 # include <limits.h>
21058 #else
21059 # include <assert.h>
21060 #endif
21062 #undef $ac_func
21064 /* Override any gcc2 internal prototype to avoid an error. */
21065 #ifdef __cplusplus
21066 extern "C"
21068 #endif
21069 /* We use char because int might match the return type of a gcc2
21070 builtin and then its argument prototype would still apply. */
21071 char $ac_func ();
21072 /* The GNU C library defines this for functions which it implements
21073 to always fail with ENOSYS. Some functions are actually named
21074 something starting with __ and the normal name is an alias. */
21075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21076 choke me
21077 #else
21078 char (*f) () = $ac_func;
21079 #endif
21080 #ifdef __cplusplus
21082 #endif
21085 main ()
21087 return f != $ac_func;
21089 return 0;
21091 _ACEOF
21092 rm -f conftest.$ac_objext conftest$ac_exeext
21093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21094 (eval $ac_link) 2>conftest.er1
21095 ac_status=$?
21096 grep -v '^ *+' conftest.er1 >conftest.err
21097 rm -f conftest.er1
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); } &&
21101 { ac_try='test -z "$ac_c_werror_flag"
21102 || test ! -s conftest.err'
21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21104 (eval $ac_try) 2>&5
21105 ac_status=$?
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); }; } &&
21108 { ac_try='test -s conftest$ac_exeext'
21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 (eval $ac_try) 2>&5
21111 ac_status=$?
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); }; }; then
21114 eval "$as_ac_var=yes"
21115 else
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 eval "$as_ac_var=no"
21121 rm -f conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21126 if test `eval echo '${'$as_ac_var'}'` = yes; then
21127 cat >>confdefs.h <<_ACEOF
21128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21129 _ACEOF
21130 break
21132 done
21137 for ac_header in unistd.h dlfcn.h sys/resource.h
21139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21141 echo "$as_me:$LINENO: checking for $ac_header" >&5
21142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21144 echo $ECHO_N "(cached) $ECHO_C" >&6
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21148 else
21149 # Is the header compilable?
21150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21152 cat >conftest.$ac_ext <<_ACEOF
21153 /* confdefs.h. */
21154 _ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 $ac_includes_default
21159 #include <$ac_header>
21160 _ACEOF
21161 rm -f conftest.$ac_objext
21162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21163 (eval $ac_compile) 2>conftest.er1
21164 ac_status=$?
21165 grep -v '^ *+' conftest.er1 >conftest.err
21166 rm -f conftest.er1
21167 cat conftest.err >&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); } &&
21170 { ac_try='test -z "$ac_c_werror_flag"
21171 || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21180 ac_status=$?
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_header_compiler=yes
21184 else
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21188 ac_header_compiler=no
21190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21192 echo "${ECHO_T}$ac_header_compiler" >&6
21194 # Is the header present?
21195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h. */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <$ac_header>
21204 _ACEOF
21205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21206 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
21213 if test -s conftest.err; then
21214 ac_cpp_err=$ac_c_preproc_warn_flag
21215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21216 else
21217 ac_cpp_err=
21219 else
21220 ac_cpp_err=yes
21222 if test -z "$ac_cpp_err"; then
21223 ac_header_preproc=yes
21224 else
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_header_preproc=no
21230 rm -f conftest.err conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21232 echo "${ECHO_T}$ac_header_preproc" >&6
21234 # So? What about this header?
21235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21236 yes:no: )
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21241 ac_header_preproc=yes
21243 no:yes:* )
21244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21257 cat <<\_ASBOX
21258 ## ---------------------------------- ##
21259 ## Report this to the libjava lists. ##
21260 ## ---------------------------------- ##
21261 _ASBOX
21263 sed "s/^/$as_me: WARNING: /" >&2
21265 esac
21266 echo "$as_me:$LINENO: checking for $ac_header" >&5
21267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271 eval "$as_ac_Header=\$ac_header_preproc"
21273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21278 cat >>confdefs.h <<_ACEOF
21279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21280 _ACEOF
21284 done
21286 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21287 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
21288 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
21289 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292 ac_check_lib_save_LIBS=$LIBS
21293 LIBS="-ldl $LIBS"
21294 if test x$gcc_no_link = xyes; then
21295 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21296 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21297 { (exit 1); exit 1; }; }
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21306 /* Override any gcc2 internal prototype to avoid an error. */
21307 #ifdef __cplusplus
21308 extern "C"
21309 #endif
21310 /* We use char because int might match the return type of a gcc2
21311 builtin and then its argument prototype would still apply. */
21312 char dladdr ();
21314 main ()
21316 dladdr ();
21318 return 0;
21320 _ACEOF
21321 rm -f conftest.$ac_objext conftest$ac_exeext
21322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21323 (eval $ac_link) 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } &&
21330 { ac_try='test -z "$ac_c_werror_flag"
21331 || test ! -s conftest.err'
21332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21333 (eval $ac_try) 2>&5
21334 ac_status=$?
21335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21336 (exit $ac_status); }; } &&
21337 { ac_try='test -s conftest$ac_exeext'
21338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21339 (eval $ac_try) 2>&5
21340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; }; then
21343 ac_cv_lib_dl_dladdr=yes
21344 else
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_cv_lib_dl_dladdr=no
21350 rm -f conftest.err conftest.$ac_objext \
21351 conftest$ac_exeext conftest.$ac_ext
21352 LIBS=$ac_check_lib_save_LIBS
21354 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
21355 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
21356 if test $ac_cv_lib_dl_dladdr = yes; then
21359 cat >>confdefs.h <<\_ACEOF
21360 #define HAVE_DLADDR 1
21361 _ACEOF
21363 else
21365 echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
21366 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6
21367 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 ac_check_lib_save_LIBS=$LIBS
21371 LIBS="-ldld $LIBS"
21372 if test x$gcc_no_link = xyes; then
21373 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
21374 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
21375 { (exit 1); exit 1; }; }
21377 cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h. */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h. */
21384 /* Override any gcc2 internal prototype to avoid an error. */
21385 #ifdef __cplusplus
21386 extern "C"
21387 #endif
21388 /* We use char because int might match the return type of a gcc2
21389 builtin and then its argument prototype would still apply. */
21390 char dladdr ();
21392 main ()
21394 dladdr ();
21396 return 0;
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21401 (eval $ac_link) 2>conftest.er1
21402 ac_status=$?
21403 grep -v '^ *+' conftest.er1 >conftest.err
21404 rm -f conftest.er1
21405 cat conftest.err >&5
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); } &&
21408 { ac_try='test -z "$ac_c_werror_flag"
21409 || test ! -s conftest.err'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; } &&
21415 { ac_try='test -s conftest$ac_exeext'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; }; then
21421 ac_cv_lib_dld_dladdr=yes
21422 else
21423 echo "$as_me: failed program was:" >&5
21424 sed 's/^/| /' conftest.$ac_ext >&5
21426 ac_cv_lib_dld_dladdr=no
21428 rm -f conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21430 LIBS=$ac_check_lib_save_LIBS
21432 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
21433 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6
21434 if test $ac_cv_lib_dld_dladdr = yes; then
21437 cat >>confdefs.h <<\_ACEOF
21438 #define HAVE_DLADDR 1
21439 _ACEOF
21446 if test x"$cross_compiling" = x"no"; then
21447 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
21448 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
21449 if test "${ac_cv_file__proc_self_exe+set}" = set; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21451 else
21452 test "$cross_compiling" = yes &&
21453 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21454 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21455 { (exit 1); exit 1; }; }
21456 if test -r "/proc/self/exe"; then
21457 ac_cv_file__proc_self_exe=yes
21458 else
21459 ac_cv_file__proc_self_exe=no
21462 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
21463 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
21464 if test $ac_cv_file__proc_self_exe = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define HAVE__PROC_SELF_EXE 1
21468 _ACEOF
21472 cat >>confdefs.h <<\_ACEOF
21473 #define HAVE_PROC_SELF_EXE 1
21474 _ACEOF
21478 echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
21479 echo $ECHO_N "checking for /proc/self/maps... $ECHO_C" >&6
21480 if test "${ac_cv_file__proc_self_maps+set}" = set; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 else
21483 test "$cross_compiling" = yes &&
21484 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
21485 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
21486 { (exit 1); exit 1; }; }
21487 if test -r "/proc/self/maps"; then
21488 ac_cv_file__proc_self_maps=yes
21489 else
21490 ac_cv_file__proc_self_maps=no
21493 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
21494 echo "${ECHO_T}$ac_cv_file__proc_self_maps" >&6
21495 if test $ac_cv_file__proc_self_maps = yes; then
21497 cat >>confdefs.h <<_ACEOF
21498 #define HAVE__PROC_SELF_MAPS 1
21499 _ACEOF
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_PROC_SELF_MAPS 1
21505 _ACEOF
21509 else
21510 case $host in
21511 *-linux*)
21513 cat >>confdefs.h <<\_ACEOF
21514 #define HAVE_PROC_SELF_EXE 1
21515 _ACEOF
21518 cat >>confdefs.h <<\_ACEOF
21519 #define HAVE_PROC_SELF_MAPS 1
21520 _ACEOF
21523 esac
21527 if test "X$prefix" = "XNONE"; then
21528 acl_final_prefix="$ac_default_prefix"
21529 else
21530 acl_final_prefix="$prefix"
21532 if test "X$exec_prefix" = "XNONE"; then
21533 acl_final_exec_prefix='${prefix}'
21534 else
21535 acl_final_exec_prefix="$exec_prefix"
21537 acl_save_prefix="$prefix"
21538 prefix="$acl_final_prefix"
21539 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21540 prefix="$acl_save_prefix"
21543 # Check whether --with-gnu-ld or --without-gnu-ld was given.
21544 if test "${with_gnu_ld+set}" = set; then
21545 withval="$with_gnu_ld"
21546 test "$withval" = no || with_gnu_ld=yes
21547 else
21548 with_gnu_ld=no
21550 # Prepare PATH_SEPARATOR.
21551 # The user is always right.
21552 if test "${PATH_SEPARATOR+set}" != set; then
21553 echo "#! /bin/sh" >conf$$.sh
21554 echo "exit 0" >>conf$$.sh
21555 chmod +x conf$$.sh
21556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21557 PATH_SEPARATOR=';'
21558 else
21559 PATH_SEPARATOR=:
21561 rm -f conf$$.sh
21563 ac_prog=ld
21564 if test "$GCC" = yes; then
21565 # Check if gcc -print-prog-name=ld gives a path.
21566 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
21567 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
21568 case $host in
21569 *-*-mingw*)
21570 # gcc leaves a trailing carriage return which upsets mingw
21571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21574 esac
21575 case $ac_prog in
21576 # Accept absolute paths.
21577 [\\/]* | [A-Za-z]:[\\/]*)
21578 re_direlt='/[^/][^/]*/\.\./'
21579 # Canonicalize the path of ld
21580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21583 done
21584 test -z "$LD" && LD="$ac_prog"
21587 # If it fails, then pretend we aren't using GCC.
21588 ac_prog=ld
21591 # If it is relative, then search for the first ld in PATH.
21592 with_gnu_ld=unknown
21594 esac
21595 elif test "$with_gnu_ld" = yes; then
21596 echo "$as_me:$LINENO: checking for GNU ld" >&5
21597 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
21598 else
21599 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
21600 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
21602 if test "${acl_cv_path_LD+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605 if test -z "$LD"; then
21606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21607 for ac_dir in $PATH; do
21608 test -z "$ac_dir" && ac_dir=.
21609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21610 acl_cv_path_LD="$ac_dir/$ac_prog"
21611 # Check to see if the program is GNU ld. I'd rather use --version,
21612 # but apparently some GNU ld's only accept -v.
21613 # Break only if it was the GNU/non-GNU ld that we prefer.
21614 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21615 test "$with_gnu_ld" != no && break
21616 else
21617 test "$with_gnu_ld" != yes && break
21620 done
21621 IFS="$ac_save_ifs"
21622 else
21623 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21627 LD="$acl_cv_path_LD"
21628 if test -n "$LD"; then
21629 echo "$as_me:$LINENO: result: $LD" >&5
21630 echo "${ECHO_T}$LD" >&6
21631 else
21632 echo "$as_me:$LINENO: result: no" >&5
21633 echo "${ECHO_T}no" >&6
21635 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
21636 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
21637 { (exit 1); exit 1; }; }
21638 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
21639 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
21640 if test "${acl_cv_prog_gnu_ld+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21644 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21645 acl_cv_prog_gnu_ld=yes
21646 else
21647 acl_cv_prog_gnu_ld=no
21650 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
21651 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
21652 with_gnu_ld=$acl_cv_prog_gnu_ld
21656 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
21657 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
21658 if test "${acl_cv_rpath+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21662 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21663 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21664 . ./conftest.sh
21665 rm -f ./conftest.sh
21666 acl_cv_rpath=done
21669 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
21670 echo "${ECHO_T}$acl_cv_rpath" >&6
21671 wl="$acl_cv_wl"
21672 libext="$acl_cv_libext"
21673 shlibext="$acl_cv_shlibext"
21674 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21675 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21676 hardcode_direct="$acl_cv_hardcode_direct"
21677 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21678 # Check whether --enable-rpath or --disable-rpath was given.
21679 if test "${enable_rpath+set}" = set; then
21680 enableval="$enable_rpath"
21682 else
21683 enable_rpath=yes
21692 use_additional=yes
21694 acl_save_prefix="$prefix"
21695 prefix="$acl_final_prefix"
21696 acl_save_exec_prefix="$exec_prefix"
21697 exec_prefix="$acl_final_exec_prefix"
21699 eval additional_includedir=\"$includedir\"
21700 eval additional_libdir=\"$libdir\"
21702 exec_prefix="$acl_save_exec_prefix"
21703 prefix="$acl_save_prefix"
21706 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
21707 if test "${with_libiconv_prefix+set}" = set; then
21708 withval="$with_libiconv_prefix"
21710 if test "X$withval" = "Xno"; then
21711 use_additional=no
21712 else
21713 if test "X$withval" = "X"; then
21715 acl_save_prefix="$prefix"
21716 prefix="$acl_final_prefix"
21717 acl_save_exec_prefix="$exec_prefix"
21718 exec_prefix="$acl_final_exec_prefix"
21720 eval additional_includedir=\"$includedir\"
21721 eval additional_libdir=\"$libdir\"
21723 exec_prefix="$acl_save_exec_prefix"
21724 prefix="$acl_save_prefix"
21726 else
21727 additional_includedir="$withval/include"
21728 additional_libdir="$withval/lib"
21733 LIBICONV=
21734 LTLIBICONV=
21735 INCICONV=
21736 rpathdirs=
21737 ltrpathdirs=
21738 names_already_handled=
21739 names_next_round='iconv '
21740 while test -n "$names_next_round"; do
21741 names_this_round="$names_next_round"
21742 names_next_round=
21743 for name in $names_this_round; do
21744 already_handled=
21745 for n in $names_already_handled; do
21746 if test "$n" = "$name"; then
21747 already_handled=yes
21748 break
21750 done
21751 if test -z "$already_handled"; then
21752 names_already_handled="$names_already_handled $name"
21753 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21754 eval value=\"\$HAVE_LIB$uppername\"
21755 if test -n "$value"; then
21756 if test "$value" = yes; then
21757 eval value=\"\$LIB$uppername\"
21758 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21759 eval value=\"\$LTLIB$uppername\"
21760 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21761 else
21764 else
21765 found_dir=
21766 found_la=
21767 found_so=
21768 found_a=
21769 if test $use_additional = yes; then
21770 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21771 found_dir="$additional_libdir"
21772 found_so="$additional_libdir/lib$name.$shlibext"
21773 if test -f "$additional_libdir/lib$name.la"; then
21774 found_la="$additional_libdir/lib$name.la"
21776 else
21777 if test -f "$additional_libdir/lib$name.$libext"; then
21778 found_dir="$additional_libdir"
21779 found_a="$additional_libdir/lib$name.$libext"
21780 if test -f "$additional_libdir/lib$name.la"; then
21781 found_la="$additional_libdir/lib$name.la"
21786 if test "X$found_dir" = "X"; then
21787 for x in $LDFLAGS $LTLIBICONV; do
21789 acl_save_prefix="$prefix"
21790 prefix="$acl_final_prefix"
21791 acl_save_exec_prefix="$exec_prefix"
21792 exec_prefix="$acl_final_exec_prefix"
21793 eval x=\"$x\"
21794 exec_prefix="$acl_save_exec_prefix"
21795 prefix="$acl_save_prefix"
21797 case "$x" in
21798 -L*)
21799 dir=`echo "X$x" | sed -e 's/^X-L//'`
21800 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21801 found_dir="$dir"
21802 found_so="$dir/lib$name.$shlibext"
21803 if test -f "$dir/lib$name.la"; then
21804 found_la="$dir/lib$name.la"
21806 else
21807 if test -f "$dir/lib$name.$libext"; then
21808 found_dir="$dir"
21809 found_a="$dir/lib$name.$libext"
21810 if test -f "$dir/lib$name.la"; then
21811 found_la="$dir/lib$name.la"
21816 esac
21817 if test "X$found_dir" != "X"; then
21818 break
21820 done
21822 if test "X$found_dir" != "X"; then
21823 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21824 if test "X$found_so" != "X"; then
21825 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21827 else
21828 haveit=
21829 for x in $ltrpathdirs; do
21830 if test "X$x" = "X$found_dir"; then
21831 haveit=yes
21832 break
21834 done
21835 if test -z "$haveit"; then
21836 ltrpathdirs="$ltrpathdirs $found_dir"
21838 if test "$hardcode_direct" = yes; then
21839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21840 else
21841 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21842 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21843 haveit=
21844 for x in $rpathdirs; do
21845 if test "X$x" = "X$found_dir"; then
21846 haveit=yes
21847 break
21849 done
21850 if test -z "$haveit"; then
21851 rpathdirs="$rpathdirs $found_dir"
21853 else
21854 haveit=
21855 for x in $LDFLAGS $LIBICONV; 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$found_dir"; then
21866 haveit=yes
21867 break
21869 done
21870 if test -z "$haveit"; then
21871 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21873 if test "$hardcode_minus_L" != no; then
21874 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21875 else
21876 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21881 else
21882 if test "X$found_a" != "X"; then
21883 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21884 else
21885 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21888 additional_includedir=
21889 case "$found_dir" in
21890 */lib | */lib/)
21891 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21892 additional_includedir="$basedir/include"
21894 esac
21895 if test "X$additional_includedir" != "X"; then
21896 if test "X$additional_includedir" != "X/usr/include"; then
21897 haveit=
21898 if test "X$additional_includedir" = "X/usr/local/include"; then
21899 if test -n "$GCC"; then
21900 case $host_os in
21901 linux*) haveit=yes;;
21902 esac
21905 if test -z "$haveit"; then
21906 for x in $CPPFLAGS $INCICONV; do
21908 acl_save_prefix="$prefix"
21909 prefix="$acl_final_prefix"
21910 acl_save_exec_prefix="$exec_prefix"
21911 exec_prefix="$acl_final_exec_prefix"
21912 eval x=\"$x\"
21913 exec_prefix="$acl_save_exec_prefix"
21914 prefix="$acl_save_prefix"
21916 if test "X$x" = "X-I$additional_includedir"; then
21917 haveit=yes
21918 break
21920 done
21921 if test -z "$haveit"; then
21922 if test -d "$additional_includedir"; then
21923 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21929 if test -n "$found_la"; then
21930 save_libdir="$libdir"
21931 case "$found_la" in
21932 */* | *\\*) . "$found_la" ;;
21933 *) . "./$found_la" ;;
21934 esac
21935 libdir="$save_libdir"
21936 for dep in $dependency_libs; do
21937 case "$dep" in
21938 -L*)
21939 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21940 if test "X$additional_libdir" != "X/usr/lib"; then
21941 haveit=
21942 if test "X$additional_libdir" = "X/usr/local/lib"; then
21943 if test -n "$GCC"; then
21944 case $host_os in
21945 linux*) haveit=yes;;
21946 esac
21949 if test -z "$haveit"; then
21950 haveit=
21951 for x in $LDFLAGS $LIBICONV; do
21953 acl_save_prefix="$prefix"
21954 prefix="$acl_final_prefix"
21955 acl_save_exec_prefix="$exec_prefix"
21956 exec_prefix="$acl_final_exec_prefix"
21957 eval x=\"$x\"
21958 exec_prefix="$acl_save_exec_prefix"
21959 prefix="$acl_save_prefix"
21961 if test "X$x" = "X-L$additional_libdir"; then
21962 haveit=yes
21963 break
21965 done
21966 if test -z "$haveit"; then
21967 if test -d "$additional_libdir"; then
21968 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21971 haveit=
21972 for x in $LDFLAGS $LTLIBICONV; do
21974 acl_save_prefix="$prefix"
21975 prefix="$acl_final_prefix"
21976 acl_save_exec_prefix="$exec_prefix"
21977 exec_prefix="$acl_final_exec_prefix"
21978 eval x=\"$x\"
21979 exec_prefix="$acl_save_exec_prefix"
21980 prefix="$acl_save_prefix"
21982 if test "X$x" = "X-L$additional_libdir"; then
21983 haveit=yes
21984 break
21986 done
21987 if test -z "$haveit"; then
21988 if test -d "$additional_libdir"; then
21989 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21995 -R*)
21996 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21997 if test "$enable_rpath" != no; then
21998 haveit=
21999 for x in $rpathdirs; do
22000 if test "X$x" = "X$dir"; then
22001 haveit=yes
22002 break
22004 done
22005 if test -z "$haveit"; then
22006 rpathdirs="$rpathdirs $dir"
22008 haveit=
22009 for x in $ltrpathdirs; do
22010 if test "X$x" = "X$dir"; then
22011 haveit=yes
22012 break
22014 done
22015 if test -z "$haveit"; then
22016 ltrpathdirs="$ltrpathdirs $dir"
22020 -l*)
22021 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22023 *.la)
22024 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22027 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
22028 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
22030 esac
22031 done
22033 else
22034 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
22035 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
22039 done
22040 done
22041 if test "X$rpathdirs" != "X"; then
22042 if test -n "$hardcode_libdir_separator"; then
22043 alldirs=
22044 for found_dir in $rpathdirs; do
22045 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
22046 done
22047 acl_save_libdir="$libdir"
22048 libdir="$alldirs"
22049 eval flag=\"$hardcode_libdir_flag_spec\"
22050 libdir="$acl_save_libdir"
22051 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22052 else
22053 for found_dir in $rpathdirs; do
22054 acl_save_libdir="$libdir"
22055 libdir="$found_dir"
22056 eval flag=\"$hardcode_libdir_flag_spec\"
22057 libdir="$acl_save_libdir"
22058 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
22059 done
22062 if test "X$ltrpathdirs" != "X"; then
22063 for found_dir in $ltrpathdirs; do
22064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
22065 done
22074 am_save_CPPFLAGS="$CPPFLAGS"
22076 for element in $INCICONV; do
22077 haveit=
22078 for x in $CPPFLAGS; do
22080 acl_save_prefix="$prefix"
22081 prefix="$acl_final_prefix"
22082 acl_save_exec_prefix="$exec_prefix"
22083 exec_prefix="$acl_final_exec_prefix"
22084 eval x=\"$x\"
22085 exec_prefix="$acl_save_exec_prefix"
22086 prefix="$acl_save_prefix"
22088 if test "X$x" = "X$element"; then
22089 haveit=yes
22090 break
22092 done
22093 if test -z "$haveit"; then
22094 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22096 done
22099 echo "$as_me:$LINENO: checking for iconv" >&5
22100 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
22101 if test "${am_cv_func_iconv+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22103 else
22105 am_cv_func_iconv="no, consider installing GNU libiconv"
22106 am_cv_lib_iconv=no
22107 if test x$gcc_no_link = xyes; then
22108 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22109 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22110 { (exit 1); exit 1; }; }
22112 cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h. */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h. */
22118 #include <stdlib.h>
22119 #include <iconv.h>
22121 main ()
22123 iconv_t cd = iconv_open("","");
22124 iconv(cd,NULL,NULL,NULL,NULL);
22125 iconv_close(cd);
22127 return 0;
22129 _ACEOF
22130 rm -f conftest.$ac_objext conftest$ac_exeext
22131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22132 (eval $ac_link) 2>conftest.er1
22133 ac_status=$?
22134 grep -v '^ *+' conftest.er1 >conftest.err
22135 rm -f conftest.er1
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22138 (exit $ac_status); } &&
22139 { ac_try='test -z "$ac_c_werror_flag"
22140 || test ! -s conftest.err'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22143 ac_status=$?
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } &&
22146 { ac_try='test -s conftest$ac_exeext'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; }; then
22152 am_cv_func_iconv=yes
22153 else
22154 echo "$as_me: failed program was:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22158 rm -f conftest.err conftest.$ac_objext \
22159 conftest$ac_exeext conftest.$ac_ext
22160 if test "$am_cv_func_iconv" != yes; then
22161 am_save_LIBS="$LIBS"
22162 LIBS="$LIBS $LIBICONV"
22163 if test x$gcc_no_link = xyes; then
22164 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22165 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22166 { (exit 1); exit 1; }; }
22168 cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h. */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h. */
22174 #include <stdlib.h>
22175 #include <iconv.h>
22177 main ()
22179 iconv_t cd = iconv_open("","");
22180 iconv(cd,NULL,NULL,NULL,NULL);
22181 iconv_close(cd);
22183 return 0;
22185 _ACEOF
22186 rm -f conftest.$ac_objext conftest$ac_exeext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22188 (eval $ac_link) 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } &&
22195 { ac_try='test -z "$ac_c_werror_flag"
22196 || test ! -s conftest.err'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22199 ac_status=$?
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; } &&
22202 { ac_try='test -s conftest$ac_exeext'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 am_cv_lib_iconv=yes
22209 am_cv_func_iconv=yes
22210 else
22211 echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22215 rm -f conftest.err conftest.$ac_objext \
22216 conftest$ac_exeext conftest.$ac_ext
22217 LIBS="$am_save_LIBS"
22221 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22222 echo "${ECHO_T}$am_cv_func_iconv" >&6
22223 if test "$am_cv_func_iconv" = yes; then
22225 cat >>confdefs.h <<\_ACEOF
22226 #define HAVE_ICONV 1
22227 _ACEOF
22230 if test "$am_cv_lib_iconv" = yes; then
22231 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22232 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
22233 echo "$as_me:$LINENO: result: $LIBICONV" >&5
22234 echo "${ECHO_T}$LIBICONV" >&6
22235 else
22236 CPPFLAGS="$am_save_CPPFLAGS"
22237 LIBICONV=
22238 LTLIBICONV=
22243 if test "$am_cv_func_iconv" = yes; then
22244 echo "$as_me:$LINENO: checking for iconv declaration" >&5
22245 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
22246 if test "${am_cv_proto_iconv+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22257 #include <stdlib.h>
22258 #include <iconv.h>
22259 extern
22260 #ifdef __cplusplus
22262 #endif
22263 #if defined(__STDC__) || defined(__cplusplus)
22264 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22265 #else
22266 size_t iconv();
22267 #endif
22270 main ()
22274 return 0;
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
22286 { ac_try='test -z "$ac_c_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 am_cv_proto_iconv_arg1=""
22300 else
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22304 am_cv_proto_iconv_arg1="const"
22306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22307 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);"
22310 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22311 echo "$as_me:$LINENO: result: ${ac_t:-
22312 }$am_cv_proto_iconv" >&5
22313 echo "${ECHO_T}${ac_t:-
22314 }$am_cv_proto_iconv" >&6
22316 cat >>confdefs.h <<_ACEOF
22317 #define ICONV_CONST $am_cv_proto_iconv_arg1
22318 _ACEOF
22323 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22324 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
22325 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
22326 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328 if test x$gcc_no_link = xyes; then
22329 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22330 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22331 { (exit 1); exit 1; }; }
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h. */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 #include <locale.h>
22341 main ()
22343 return LC_MESSAGES
22345 return 0;
22347 _ACEOF
22348 rm -f conftest.$ac_objext conftest$ac_exeext
22349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22350 (eval $ac_link) 2>conftest.er1
22351 ac_status=$?
22352 grep -v '^ *+' conftest.er1 >conftest.err
22353 rm -f conftest.er1
22354 cat conftest.err >&5
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } &&
22357 { ac_try='test -z "$ac_c_werror_flag"
22358 || test ! -s conftest.err'
22359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360 (eval $ac_try) 2>&5
22361 ac_status=$?
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); }; } &&
22364 { ac_try='test -s conftest$ac_exeext'
22365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22366 (eval $ac_try) 2>&5
22367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 am_cv_val_LC_MESSAGES=yes
22371 else
22372 echo "$as_me: failed program was:" >&5
22373 sed 's/^/| /' conftest.$ac_ext >&5
22375 am_cv_val_LC_MESSAGES=no
22377 rm -f conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
22380 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
22381 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
22382 if test $am_cv_val_LC_MESSAGES = yes; then
22384 cat >>confdefs.h <<\_ACEOF
22385 #define HAVE_LC_MESSAGES 1
22386 _ACEOF
22390 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22391 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22392 if test "${ac_cv_struct_tm+set}" = set; then
22393 echo $ECHO_N "(cached) $ECHO_C" >&6
22394 else
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 #include <sys/types.h>
22402 #include <time.h>
22405 main ()
22407 struct tm *tp; tp->tm_sec;
22409 return 0;
22411 _ACEOF
22412 rm -f conftest.$ac_objext
22413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22414 (eval $ac_compile) 2>conftest.er1
22415 ac_status=$?
22416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
22418 cat conftest.err >&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
22421 { ac_try='test -z "$ac_c_werror_flag"
22422 || test ! -s conftest.err'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_struct_tm=time.h
22435 else
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_struct_tm=sys/time.h
22441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22443 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22444 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22445 if test $ac_cv_struct_tm = sys/time.h; then
22447 cat >>confdefs.h <<\_ACEOF
22448 #define TM_IN_SYS_TIME 1
22449 _ACEOF
22453 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22454 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
22455 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22456 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 else
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include <sys/types.h>
22465 #include <$ac_cv_struct_tm>
22469 main ()
22471 static struct tm ac_aggr;
22472 if (ac_aggr.tm_zone)
22473 return 0;
22475 return 0;
22477 _ACEOF
22478 rm -f conftest.$ac_objext
22479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22480 (eval $ac_compile) 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } &&
22487 { ac_try='test -z "$ac_c_werror_flag"
22488 || test ! -s conftest.err'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; } &&
22494 { ac_try='test -s conftest.$ac_objext'
22495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 (eval $ac_try) 2>&5
22497 ac_status=$?
22498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 (exit $ac_status); }; }; then
22500 ac_cv_member_struct_tm_tm_zone=yes
22501 else
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h. */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 #include <sys/types.h>
22512 #include <$ac_cv_struct_tm>
22516 main ()
22518 static struct tm ac_aggr;
22519 if (sizeof ac_aggr.tm_zone)
22520 return 0;
22522 return 0;
22524 _ACEOF
22525 rm -f conftest.$ac_objext
22526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22527 (eval $ac_compile) 2>conftest.er1
22528 ac_status=$?
22529 grep -v '^ *+' conftest.er1 >conftest.err
22530 rm -f conftest.er1
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } &&
22534 { ac_try='test -z "$ac_c_werror_flag"
22535 || test ! -s conftest.err'
22536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22538 ac_status=$?
22539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22540 (exit $ac_status); }; } &&
22541 { ac_try='test -s conftest.$ac_objext'
22542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22543 (eval $ac_try) 2>&5
22544 ac_status=$?
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); }; }; then
22547 ac_cv_member_struct_tm_tm_zone=yes
22548 else
22549 echo "$as_me: failed program was:" >&5
22550 sed 's/^/| /' conftest.$ac_ext >&5
22552 ac_cv_member_struct_tm_tm_zone=no
22554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22558 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22559 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
22560 if test $ac_cv_member_struct_tm_tm_zone = yes; then
22562 cat >>confdefs.h <<_ACEOF
22563 #define HAVE_STRUCT_TM_TM_ZONE 1
22564 _ACEOF
22569 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22571 cat >>confdefs.h <<\_ACEOF
22572 #define HAVE_TM_ZONE 1
22573 _ACEOF
22575 else
22576 echo "$as_me:$LINENO: checking for tzname" >&5
22577 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
22578 if test "${ac_cv_var_tzname+set}" = set; then
22579 echo $ECHO_N "(cached) $ECHO_C" >&6
22580 else
22581 if test x$gcc_no_link = xyes; then
22582 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22583 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22584 { (exit 1); exit 1; }; }
22586 cat >conftest.$ac_ext <<_ACEOF
22587 /* confdefs.h. */
22588 _ACEOF
22589 cat confdefs.h >>conftest.$ac_ext
22590 cat >>conftest.$ac_ext <<_ACEOF
22591 /* end confdefs.h. */
22592 #include <time.h>
22593 #ifndef tzname /* For SGI. */
22594 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22595 #endif
22598 main ()
22600 atoi(*tzname);
22602 return 0;
22604 _ACEOF
22605 rm -f conftest.$ac_objext conftest$ac_exeext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22607 (eval $ac_link) 2>conftest.er1
22608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
22614 { ac_try='test -z "$ac_c_werror_flag"
22615 || test ! -s conftest.err'
22616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22617 (eval $ac_try) 2>&5
22618 ac_status=$?
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22623 (eval $ac_try) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); }; }; then
22627 ac_cv_var_tzname=yes
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 ac_cv_var_tzname=no
22634 rm -f conftest.err conftest.$ac_objext \
22635 conftest$ac_exeext conftest.$ac_ext
22637 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22638 echo "${ECHO_T}$ac_cv_var_tzname" >&6
22639 if test $ac_cv_var_tzname = yes; then
22641 cat >>confdefs.h <<\_ACEOF
22642 #define HAVE_TZNAME 1
22643 _ACEOF
22650 for ac_func in gethostbyname_r
22652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22653 echo "$as_me:$LINENO: checking for $ac_func" >&5
22654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22655 if eval "test \"\${$as_ac_var+set}\" = set"; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 if test x$gcc_no_link = xyes; then
22659 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
22660 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
22661 { (exit 1); exit 1; }; }
22663 cat >conftest.$ac_ext <<_ACEOF
22664 /* confdefs.h. */
22665 _ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22671 #define $ac_func innocuous_$ac_func
22673 /* System header to define __stub macros and hopefully few prototypes,
22674 which can conflict with char $ac_func (); below.
22675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22676 <limits.h> exists even on freestanding compilers. */
22678 #ifdef __STDC__
22679 # include <limits.h>
22680 #else
22681 # include <assert.h>
22682 #endif
22684 #undef $ac_func
22686 /* Override any gcc2 internal prototype to avoid an error. */
22687 #ifdef __cplusplus
22688 extern "C"
22690 #endif
22691 /* We use char because int might match the return type of a gcc2
22692 builtin and then its argument prototype would still apply. */
22693 char $ac_func ();
22694 /* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22698 choke me
22699 #else
22700 char (*f) () = $ac_func;
22701 #endif
22702 #ifdef __cplusplus
22704 #endif
22707 main ()
22709 return f != $ac_func;
22711 return 0;
22713 _ACEOF
22714 rm -f conftest.$ac_objext conftest$ac_exeext
22715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22716 (eval $ac_link) 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } &&
22723 { ac_try='test -z "$ac_c_werror_flag"
22724 || test ! -s conftest.err'
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest$ac_exeext'
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
22736 eval "$as_ac_var=yes"
22737 else
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22741 eval "$as_ac_var=no"
22743 rm -f conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
22746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22748 if test `eval echo '${'$as_ac_var'}'` = yes; then
22749 cat >>confdefs.h <<_ACEOF
22750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22751 _ACEOF
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_GETHOSTBYNAME_R 1
22756 _ACEOF
22758 # There are two different kinds of gethostbyname_r.
22759 # We look for the one that returns `int'.
22760 # Hopefully this check is robust enough.
22761 cat >conftest.$ac_ext <<_ACEOF
22762 /* confdefs.h. */
22763 _ACEOF
22764 cat confdefs.h >>conftest.$ac_ext
22765 cat >>conftest.$ac_ext <<_ACEOF
22766 /* end confdefs.h. */
22767 #include <netdb.h>
22769 _ACEOF
22770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22771 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
22774 cat >>confdefs.h <<\_ACEOF
22775 #define GETHOSTBYNAME_R_RETURNS_INT 1
22776 _ACEOF
22779 rm -f conftest*
22782 case " $GCINCS " in
22783 *" -D_REENTRANT "*) ;;
22785 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22786 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
22787 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
22788 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 else
22790 ac_ext=cc
22791 ac_cpp='$CXXCPP $CPPFLAGS'
22792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22796 cat >conftest.$ac_ext <<_ACEOF
22797 /* confdefs.h. */
22798 _ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 #include <netdb.h>
22804 main ()
22806 gethostbyname_r("", 0, 0);
22808 return 0;
22810 _ACEOF
22811 rm -f conftest.$ac_objext
22812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22813 (eval $ac_compile) 2>conftest.er1
22814 ac_status=$?
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } &&
22820 { ac_try='test -z "$ac_cxx_werror_flag"
22821 || test ! -s conftest.err'
22822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823 (eval $ac_try) 2>&5
22824 ac_status=$?
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; } &&
22827 { ac_try='test -s conftest.$ac_objext'
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 libjava_cv_gethostbyname_r_needs_reentrant=no
22834 else
22835 echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22838 CPPFLAGS_SAVE="$CPPFLAGS"
22839 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22840 cat >conftest.$ac_ext <<_ACEOF
22841 /* confdefs.h. */
22842 _ACEOF
22843 cat confdefs.h >>conftest.$ac_ext
22844 cat >>conftest.$ac_ext <<_ACEOF
22845 /* end confdefs.h. */
22846 #include <netdb.h>
22848 main ()
22850 gethostbyname_r("", 0, 0);
22852 return 0;
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22857 (eval $ac_compile) 2>conftest.er1
22858 ac_status=$?
22859 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } &&
22864 { ac_try='test -z "$ac_cxx_werror_flag"
22865 || test ! -s conftest.err'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } &&
22871 { ac_try='test -s conftest.$ac_objext'
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; }; then
22877 libjava_cv_gethostbyname_r_needs_reentrant=yes
22878 else
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 libjava_cv_gethostbyname_r_needs_reentrant=fail
22884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22885 CPPFLAGS="$CPPFLAGS_SAVE"
22888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22889 ac_ext=c
22890 ac_cpp='$CPP $CPPFLAGS'
22891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22897 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22898 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
22899 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22901 cat >>confdefs.h <<\_ACEOF
22902 #define _REENTRANT 1
22903 _ACEOF
22907 esac
22909 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
22910 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
22911 if test "${libjava_cv_struct_hostent_data+set}" = set; then
22912 echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914 cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h. */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h. */
22921 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22922 # define _REENTRANT 1
22923 #endif
22924 #include <netdb.h>
22926 main ()
22928 struct hostent_data data;
22930 return 0;
22932 _ACEOF
22933 rm -f conftest.$ac_objext
22934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22935 (eval $ac_compile) 2>conftest.er1
22936 ac_status=$?
22937 grep -v '^ *+' conftest.er1 >conftest.err
22938 rm -f conftest.er1
22939 cat conftest.err >&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } &&
22942 { ac_try='test -z "$ac_c_werror_flag"
22943 || test ! -s conftest.err'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22946 ac_status=$?
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; } &&
22949 { ac_try='test -s conftest.$ac_objext'
22950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); }; }; then
22955 libjava_cv_struct_hostent_data=yes
22956 else
22957 echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 libjava_cv_struct_hostent_data=no
22962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22964 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
22965 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
22966 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_STRUCT_HOSTENT_DATA 1
22970 _ACEOF
22975 done
22978 # FIXME: libjava source code expects to find a prototype for
22979 # gethostbyaddr_r in netdb.h. The outer check ensures that
22980 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22981 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22982 # linkage check is enough, yet C++ code requires proper prototypes.)
22983 cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h. */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h. */
22989 #include <netdb.h>
22991 _ACEOF
22992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22993 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
22996 for ac_func in gethostbyaddr_r
22998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22999 echo "$as_me:$LINENO: checking for $ac_func" >&5
23000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23001 if eval "test \"\${$as_ac_var+set}\" = set"; then
23002 echo $ECHO_N "(cached) $ECHO_C" >&6
23003 else
23004 if test x$gcc_no_link = xyes; then
23005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23007 { (exit 1); exit 1; }; }
23009 cat >conftest.$ac_ext <<_ACEOF
23010 /* confdefs.h. */
23011 _ACEOF
23012 cat confdefs.h >>conftest.$ac_ext
23013 cat >>conftest.$ac_ext <<_ACEOF
23014 /* end confdefs.h. */
23015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23017 #define $ac_func innocuous_$ac_func
23019 /* System header to define __stub macros and hopefully few prototypes,
23020 which can conflict with char $ac_func (); below.
23021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23022 <limits.h> exists even on freestanding compilers. */
23024 #ifdef __STDC__
23025 # include <limits.h>
23026 #else
23027 # include <assert.h>
23028 #endif
23030 #undef $ac_func
23032 /* Override any gcc2 internal prototype to avoid an error. */
23033 #ifdef __cplusplus
23034 extern "C"
23036 #endif
23037 /* We use char because int might match the return type of a gcc2
23038 builtin and then its argument prototype would still apply. */
23039 char $ac_func ();
23040 /* The GNU C library defines this for functions which it implements
23041 to always fail with ENOSYS. Some functions are actually named
23042 something starting with __ and the normal name is an alias. */
23043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23044 choke me
23045 #else
23046 char (*f) () = $ac_func;
23047 #endif
23048 #ifdef __cplusplus
23050 #endif
23053 main ()
23055 return f != $ac_func;
23057 return 0;
23059 _ACEOF
23060 rm -f conftest.$ac_objext conftest$ac_exeext
23061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23062 (eval $ac_link) 2>conftest.er1
23063 ac_status=$?
23064 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } &&
23069 { ac_try='test -z "$ac_c_werror_flag"
23070 || test ! -s conftest.err'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; } &&
23076 { ac_try='test -s conftest$ac_exeext'
23077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23078 (eval $ac_try) 2>&5
23079 ac_status=$?
23080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); }; }; then
23082 eval "$as_ac_var=yes"
23083 else
23084 echo "$as_me: failed program was:" >&5
23085 sed 's/^/| /' conftest.$ac_ext >&5
23087 eval "$as_ac_var=no"
23089 rm -f conftest.err conftest.$ac_objext \
23090 conftest$ac_exeext conftest.$ac_ext
23092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23094 if test `eval echo '${'$as_ac_var'}'` = yes; then
23095 cat >>confdefs.h <<_ACEOF
23096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23097 _ACEOF
23100 cat >>confdefs.h <<\_ACEOF
23101 #define HAVE_GETHOSTBYADDR_R 1
23102 _ACEOF
23104 # There are two different kinds of gethostbyaddr_r.
23105 # We look for the one that returns `int'.
23106 # Hopefully this check is robust enough.
23107 cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h. */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h. */
23113 #include <netdb.h>
23115 _ACEOF
23116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23117 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
23120 cat >>confdefs.h <<\_ACEOF
23121 #define GETHOSTBYADDR_R_RETURNS_INT 1
23122 _ACEOF
23125 rm -f conftest*
23128 done
23131 rm -f conftest*
23135 for ac_func in gethostname
23137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23138 echo "$as_me:$LINENO: checking for $ac_func" >&5
23139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23140 if eval "test \"\${$as_ac_var+set}\" = set"; then
23141 echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143 if test x$gcc_no_link = xyes; then
23144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23146 { (exit 1); exit 1; }; }
23148 cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h. */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h. */
23154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23156 #define $ac_func innocuous_$ac_func
23158 /* System header to define __stub macros and hopefully few prototypes,
23159 which can conflict with char $ac_func (); below.
23160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161 <limits.h> exists even on freestanding compilers. */
23163 #ifdef __STDC__
23164 # include <limits.h>
23165 #else
23166 # include <assert.h>
23167 #endif
23169 #undef $ac_func
23171 /* Override any gcc2 internal prototype to avoid an error. */
23172 #ifdef __cplusplus
23173 extern "C"
23175 #endif
23176 /* We use char because int might match the return type of a gcc2
23177 builtin and then its argument prototype would still apply. */
23178 char $ac_func ();
23179 /* The GNU C library defines this for functions which it implements
23180 to always fail with ENOSYS. Some functions are actually named
23181 something starting with __ and the normal name is an alias. */
23182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23183 choke me
23184 #else
23185 char (*f) () = $ac_func;
23186 #endif
23187 #ifdef __cplusplus
23189 #endif
23192 main ()
23194 return f != $ac_func;
23196 return 0;
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201 (eval $ac_link) 2>conftest.er1
23202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
23208 { ac_try='test -z "$ac_c_werror_flag"
23209 || test ! -s conftest.err'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest$ac_exeext'
23216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217 (eval $ac_try) 2>&5
23218 ac_status=$?
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 eval "$as_ac_var=yes"
23222 else
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 eval "$as_ac_var=no"
23228 rm -f conftest.err conftest.$ac_objext \
23229 conftest$ac_exeext conftest.$ac_ext
23231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23233 if test `eval echo '${'$as_ac_var'}'` = yes; then
23234 cat >>confdefs.h <<_ACEOF
23235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23236 _ACEOF
23239 cat >>confdefs.h <<\_ACEOF
23240 #define HAVE_GETHOSTNAME 1
23241 _ACEOF
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h. */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h. */
23249 #include <unistd.h>
23251 _ACEOF
23252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23253 $EGREP "gethostname" >/dev/null 2>&1; then
23256 cat >>confdefs.h <<\_ACEOF
23257 #define HAVE_GETHOSTNAME_DECL 1
23258 _ACEOF
23261 rm -f conftest*
23264 done
23268 for ac_func in usleep
23270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23271 echo "$as_me:$LINENO: checking for $ac_func" >&5
23272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23273 if eval "test \"\${$as_ac_var+set}\" = set"; then
23274 echo $ECHO_N "(cached) $ECHO_C" >&6
23275 else
23276 if test x$gcc_no_link = xyes; then
23277 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23278 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23279 { (exit 1); exit 1; }; }
23281 cat >conftest.$ac_ext <<_ACEOF
23282 /* confdefs.h. */
23283 _ACEOF
23284 cat confdefs.h >>conftest.$ac_ext
23285 cat >>conftest.$ac_ext <<_ACEOF
23286 /* end confdefs.h. */
23287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23289 #define $ac_func innocuous_$ac_func
23291 /* System header to define __stub macros and hopefully few prototypes,
23292 which can conflict with char $ac_func (); below.
23293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23294 <limits.h> exists even on freestanding compilers. */
23296 #ifdef __STDC__
23297 # include <limits.h>
23298 #else
23299 # include <assert.h>
23300 #endif
23302 #undef $ac_func
23304 /* Override any gcc2 internal prototype to avoid an error. */
23305 #ifdef __cplusplus
23306 extern "C"
23308 #endif
23309 /* We use char because int might match the return type of a gcc2
23310 builtin and then its argument prototype would still apply. */
23311 char $ac_func ();
23312 /* The GNU C library defines this for functions which it implements
23313 to always fail with ENOSYS. Some functions are actually named
23314 something starting with __ and the normal name is an alias. */
23315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23316 choke me
23317 #else
23318 char (*f) () = $ac_func;
23319 #endif
23320 #ifdef __cplusplus
23322 #endif
23325 main ()
23327 return f != $ac_func;
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext conftest$ac_exeext
23333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23334 (eval $ac_link) 2>conftest.er1
23335 ac_status=$?
23336 grep -v '^ *+' conftest.er1 >conftest.err
23337 rm -f conftest.er1
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); } &&
23341 { ac_try='test -z "$ac_c_werror_flag"
23342 || test ! -s conftest.err'
23343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; } &&
23348 { ac_try='test -s conftest$ac_exeext'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23351 ac_status=$?
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; }; then
23354 eval "$as_ac_var=yes"
23355 else
23356 echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 eval "$as_ac_var=no"
23361 rm -f conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
23364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23366 if test `eval echo '${'$as_ac_var'}'` = yes; then
23367 cat >>confdefs.h <<_ACEOF
23368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23369 _ACEOF
23371 cat >conftest.$ac_ext <<_ACEOF
23372 /* confdefs.h. */
23373 _ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23377 #include <unistd.h>
23379 _ACEOF
23380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23381 $EGREP "usleep" >/dev/null 2>&1; then
23384 cat >>confdefs.h <<\_ACEOF
23385 #define HAVE_USLEEP_DECL 1
23386 _ACEOF
23389 rm -f conftest*
23392 done
23395 # Look for these functions in the thread library, but only bother
23396 # if using POSIX threads.
23397 if test "$THREADS" = posix; then
23398 save_LIBS="$LIBS"
23399 LIBS="$LIBS $THREADLIBS"
23401 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
23402 # Solaris 7 the name librt is preferred.
23404 for ac_func in sched_yield
23406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23407 echo "$as_me:$LINENO: checking for $ac_func" >&5
23408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23409 if eval "test \"\${$as_ac_var+set}\" = set"; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411 else
23412 if test x$gcc_no_link = xyes; then
23413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23415 { (exit 1); exit 1; }; }
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h. */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23425 #define $ac_func innocuous_$ac_func
23427 /* System header to define __stub macros and hopefully few prototypes,
23428 which can conflict with char $ac_func (); below.
23429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23430 <limits.h> exists even on freestanding compilers. */
23432 #ifdef __STDC__
23433 # include <limits.h>
23434 #else
23435 # include <assert.h>
23436 #endif
23438 #undef $ac_func
23440 /* Override any gcc2 internal prototype to avoid an error. */
23441 #ifdef __cplusplus
23442 extern "C"
23444 #endif
23445 /* We use char because int might match the return type of a gcc2
23446 builtin and then its argument prototype would still apply. */
23447 char $ac_func ();
23448 /* The GNU C library defines this for functions which it implements
23449 to always fail with ENOSYS. Some functions are actually named
23450 something starting with __ and the normal name is an alias. */
23451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23452 choke me
23453 #else
23454 char (*f) () = $ac_func;
23455 #endif
23456 #ifdef __cplusplus
23458 #endif
23461 main ()
23463 return f != $ac_func;
23465 return 0;
23467 _ACEOF
23468 rm -f conftest.$ac_objext conftest$ac_exeext
23469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23470 (eval $ac_link) 2>conftest.er1
23471 ac_status=$?
23472 grep -v '^ *+' conftest.er1 >conftest.err
23473 rm -f conftest.er1
23474 cat conftest.err >&5
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); } &&
23477 { ac_try='test -z "$ac_c_werror_flag"
23478 || test ! -s conftest.err'
23479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23480 (eval $ac_try) 2>&5
23481 ac_status=$?
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); }; } &&
23484 { ac_try='test -s conftest$ac_exeext'
23485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23486 (eval $ac_try) 2>&5
23487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 eval "$as_ac_var=yes"
23491 else
23492 echo "$as_me: failed program was:" >&5
23493 sed 's/^/| /' conftest.$ac_ext >&5
23495 eval "$as_ac_var=no"
23497 rm -f conftest.err conftest.$ac_objext \
23498 conftest$ac_exeext conftest.$ac_ext
23500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23501 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23502 if test `eval echo '${'$as_ac_var'}'` = yes; then
23503 cat >>confdefs.h <<_ACEOF
23504 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23505 _ACEOF
23507 else
23509 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
23510 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
23511 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514 ac_check_lib_save_LIBS=$LIBS
23515 LIBS="-lrt $LIBS"
23516 if test x$gcc_no_link = xyes; then
23517 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23518 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23519 { (exit 1); exit 1; }; }
23521 cat >conftest.$ac_ext <<_ACEOF
23522 /* confdefs.h. */
23523 _ACEOF
23524 cat confdefs.h >>conftest.$ac_ext
23525 cat >>conftest.$ac_ext <<_ACEOF
23526 /* end confdefs.h. */
23528 /* Override any gcc2 internal prototype to avoid an error. */
23529 #ifdef __cplusplus
23530 extern "C"
23531 #endif
23532 /* We use char because int might match the return type of a gcc2
23533 builtin and then its argument prototype would still apply. */
23534 char sched_yield ();
23536 main ()
23538 sched_yield ();
23540 return 0;
23542 _ACEOF
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23545 (eval $ac_link) 2>conftest.er1
23546 ac_status=$?
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
23552 { ac_try='test -z "$ac_c_werror_flag"
23553 || test ! -s conftest.err'
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest$ac_exeext'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 ac_cv_lib_rt_sched_yield=yes
23566 else
23567 echo "$as_me: failed program was:" >&5
23568 sed 's/^/| /' conftest.$ac_ext >&5
23570 ac_cv_lib_rt_sched_yield=no
23572 rm -f conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
23574 LIBS=$ac_check_lib_save_LIBS
23576 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
23577 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
23578 if test $ac_cv_lib_rt_sched_yield = yes; then
23580 cat >>confdefs.h <<\_ACEOF
23581 #define HAVE_SCHED_YIELD 1
23582 _ACEOF
23584 THREADLIBS="$THREADLIBS -lrt"
23585 THREADSPEC="$THREADSPEC -lrt"
23586 else
23588 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
23589 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
23590 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
23591 echo $ECHO_N "(cached) $ECHO_C" >&6
23592 else
23593 ac_check_lib_save_LIBS=$LIBS
23594 LIBS="-lposix4 $LIBS"
23595 if test x$gcc_no_link = xyes; then
23596 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23597 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23598 { (exit 1); exit 1; }; }
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h. */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23607 /* Override any gcc2 internal prototype to avoid an error. */
23608 #ifdef __cplusplus
23609 extern "C"
23610 #endif
23611 /* We use char because int might match the return type of a gcc2
23612 builtin and then its argument prototype would still apply. */
23613 char sched_yield ();
23615 main ()
23617 sched_yield ();
23619 return 0;
23621 _ACEOF
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624 (eval $ac_link) 2>conftest.er1
23625 ac_status=$?
23626 grep -v '^ *+' conftest.er1 >conftest.err
23627 rm -f conftest.er1
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); } &&
23631 { ac_try='test -z "$ac_c_werror_flag"
23632 || test ! -s conftest.err'
23633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23634 (eval $ac_try) 2>&5
23635 ac_status=$?
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); }; } &&
23638 { ac_try='test -s conftest$ac_exeext'
23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23640 (eval $ac_try) 2>&5
23641 ac_status=$?
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); }; }; then
23644 ac_cv_lib_posix4_sched_yield=yes
23645 else
23646 echo "$as_me: failed program was:" >&5
23647 sed 's/^/| /' conftest.$ac_ext >&5
23649 ac_cv_lib_posix4_sched_yield=no
23651 rm -f conftest.err conftest.$ac_objext \
23652 conftest$ac_exeext conftest.$ac_ext
23653 LIBS=$ac_check_lib_save_LIBS
23655 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
23656 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
23657 if test $ac_cv_lib_posix4_sched_yield = yes; then
23659 cat >>confdefs.h <<\_ACEOF
23660 #define HAVE_SCHED_YIELD 1
23661 _ACEOF
23663 THREADLIBS="$THREADLIBS -lposix4"
23664 THREADSPEC="$THREADSPEC -lposix4"
23670 done
23673 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
23674 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
23675 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
23676 echo $ECHO_N "(cached) $ECHO_C" >&6
23677 else
23678 ac_check_lib_save_LIBS=$LIBS
23679 LIBS="-lrt $LIBS"
23680 if test x$gcc_no_link = xyes; then
23681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23683 { (exit 1); exit 1; }; }
23685 cat >conftest.$ac_ext <<_ACEOF
23686 /* confdefs.h. */
23687 _ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23692 /* Override any gcc2 internal prototype to avoid an error. */
23693 #ifdef __cplusplus
23694 extern "C"
23695 #endif
23696 /* We use char because int might match the return type of a gcc2
23697 builtin and then its argument prototype would still apply. */
23698 char clock_gettime ();
23700 main ()
23702 clock_gettime ();
23704 return 0;
23706 _ACEOF
23707 rm -f conftest.$ac_objext conftest$ac_exeext
23708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23709 (eval $ac_link) 2>conftest.er1
23710 ac_status=$?
23711 grep -v '^ *+' conftest.er1 >conftest.err
23712 rm -f conftest.er1
23713 cat conftest.err >&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } &&
23716 { ac_try='test -z "$ac_c_werror_flag"
23717 || test ! -s conftest.err'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23720 ac_status=$?
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; } &&
23723 { ac_try='test -s conftest$ac_exeext'
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; }; then
23729 ac_cv_lib_rt_clock_gettime=yes
23730 else
23731 echo "$as_me: failed program was:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ac_cv_lib_rt_clock_gettime=no
23736 rm -f conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
23738 LIBS=$ac_check_lib_save_LIBS
23740 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
23741 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
23742 if test $ac_cv_lib_rt_clock_gettime = yes; then
23745 cat >>confdefs.h <<\_ACEOF
23746 #define HAVE_CLOCK_GETTIME 1
23747 _ACEOF
23749 case "$THREADSPEC" in
23750 *-lrt*) ;;
23752 THREADSPEC="$THREADSPEC -lrt"
23753 THREADLIBS="$THREADLIBS -lrt"
23755 esac
23759 LIBS="$save_LIBS"
23761 # We can save a little space at runtime if the mutex has m_count
23762 # or __m_count. This is a nice hack for Linux.
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h. */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 #include <pthread.h>
23771 main ()
23774 extern pthread_mutex_t *mutex; int q = mutex->m_count;
23777 return 0;
23779 _ACEOF
23780 rm -f conftest.$ac_objext
23781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23782 (eval $ac_compile) 2>conftest.er1
23783 ac_status=$?
23784 grep -v '^ *+' conftest.er1 >conftest.err
23785 rm -f conftest.er1
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); } &&
23789 { ac_try='test -z "$ac_c_werror_flag"
23790 || test ! -s conftest.err'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } &&
23796 { ac_try='test -s conftest.$ac_objext'
23797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23798 (eval $ac_try) 2>&5
23799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; }; then
23803 cat >>confdefs.h <<\_ACEOF
23804 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
23805 _ACEOF
23807 else
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23812 cat >conftest.$ac_ext <<_ACEOF
23813 /* confdefs.h. */
23814 _ACEOF
23815 cat confdefs.h >>conftest.$ac_ext
23816 cat >>conftest.$ac_ext <<_ACEOF
23817 /* end confdefs.h. */
23818 #include <pthread.h>
23820 main ()
23823 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
23826 return 0;
23828 _ACEOF
23829 rm -f conftest.$ac_objext
23830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23831 (eval $ac_compile) 2>conftest.er1
23832 ac_status=$?
23833 grep -v '^ *+' conftest.er1 >conftest.err
23834 rm -f conftest.er1
23835 cat conftest.err >&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } &&
23838 { ac_try='test -z "$ac_c_werror_flag"
23839 || test ! -s conftest.err'
23840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841 (eval $ac_try) 2>&5
23842 ac_status=$?
23843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844 (exit $ac_status); }; } &&
23845 { ac_try='test -s conftest.$ac_objext'
23846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23847 (eval $ac_try) 2>&5
23848 ac_status=$?
23849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850 (exit $ac_status); }; }; then
23852 cat >>confdefs.h <<\_ACEOF
23853 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
23854 _ACEOF
23856 else
23857 echo "$as_me: failed program was:" >&5
23858 sed 's/^/| /' conftest.$ac_ext >&5
23861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23866 # We require a way to get the time.
23867 time_found=no
23871 for ac_func in gettimeofday time ftime
23873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23874 echo "$as_me:$LINENO: checking for $ac_func" >&5
23875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23876 if eval "test \"\${$as_ac_var+set}\" = set"; then
23877 echo $ECHO_N "(cached) $ECHO_C" >&6
23878 else
23879 if test x$gcc_no_link = xyes; then
23880 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23881 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23882 { (exit 1); exit 1; }; }
23884 cat >conftest.$ac_ext <<_ACEOF
23885 /* confdefs.h. */
23886 _ACEOF
23887 cat confdefs.h >>conftest.$ac_ext
23888 cat >>conftest.$ac_ext <<_ACEOF
23889 /* end confdefs.h. */
23890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23892 #define $ac_func innocuous_$ac_func
23894 /* System header to define __stub macros and hopefully few prototypes,
23895 which can conflict with char $ac_func (); below.
23896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23897 <limits.h> exists even on freestanding compilers. */
23899 #ifdef __STDC__
23900 # include <limits.h>
23901 #else
23902 # include <assert.h>
23903 #endif
23905 #undef $ac_func
23907 /* Override any gcc2 internal prototype to avoid an error. */
23908 #ifdef __cplusplus
23909 extern "C"
23911 #endif
23912 /* We use char because int might match the return type of a gcc2
23913 builtin and then its argument prototype would still apply. */
23914 char $ac_func ();
23915 /* The GNU C library defines this for functions which it implements
23916 to always fail with ENOSYS. Some functions are actually named
23917 something starting with __ and the normal name is an alias. */
23918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23919 choke me
23920 #else
23921 char (*f) () = $ac_func;
23922 #endif
23923 #ifdef __cplusplus
23925 #endif
23928 main ()
23930 return f != $ac_func;
23932 return 0;
23934 _ACEOF
23935 rm -f conftest.$ac_objext conftest$ac_exeext
23936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23937 (eval $ac_link) 2>conftest.er1
23938 ac_status=$?
23939 grep -v '^ *+' conftest.er1 >conftest.err
23940 rm -f conftest.er1
23941 cat conftest.err >&5
23942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23943 (exit $ac_status); } &&
23944 { ac_try='test -z "$ac_c_werror_flag"
23945 || test ! -s conftest.err'
23946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947 (eval $ac_try) 2>&5
23948 ac_status=$?
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); }; } &&
23951 { ac_try='test -s conftest$ac_exeext'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; }; then
23957 eval "$as_ac_var=yes"
23958 else
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23962 eval "$as_ac_var=no"
23964 rm -f conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext conftest.$ac_ext
23967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23969 if test `eval echo '${'$as_ac_var'}'` = yes; then
23970 cat >>confdefs.h <<_ACEOF
23971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23972 _ACEOF
23973 time_found=yes
23975 done
23977 if test "$time_found" = no; then
23978 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
23979 echo "$as_me: error: no function found to get the time" >&2;}
23980 { (exit 1); exit 1; }; }
23984 for ac_func in memmove
23986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23987 echo "$as_me:$LINENO: checking for $ac_func" >&5
23988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23989 if eval "test \"\${$as_ac_var+set}\" = set"; then
23990 echo $ECHO_N "(cached) $ECHO_C" >&6
23991 else
23992 if test x$gcc_no_link = xyes; then
23993 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
23994 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
23995 { (exit 1); exit 1; }; }
23997 cat >conftest.$ac_ext <<_ACEOF
23998 /* confdefs.h. */
23999 _ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005 #define $ac_func innocuous_$ac_func
24007 /* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char $ac_func (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24012 #ifdef __STDC__
24013 # include <limits.h>
24014 #else
24015 # include <assert.h>
24016 #endif
24018 #undef $ac_func
24020 /* Override any gcc2 internal prototype to avoid an error. */
24021 #ifdef __cplusplus
24022 extern "C"
24024 #endif
24025 /* We use char because int might match the return type of a gcc2
24026 builtin and then its argument prototype would still apply. */
24027 char $ac_func ();
24028 /* The GNU C library defines this for functions which it implements
24029 to always fail with ENOSYS. Some functions are actually named
24030 something starting with __ and the normal name is an alias. */
24031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24032 choke me
24033 #else
24034 char (*f) () = $ac_func;
24035 #endif
24036 #ifdef __cplusplus
24038 #endif
24041 main ()
24043 return f != $ac_func;
24045 return 0;
24047 _ACEOF
24048 rm -f conftest.$ac_objext conftest$ac_exeext
24049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24050 (eval $ac_link) 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } &&
24057 { ac_try='test -z "$ac_c_werror_flag"
24058 || test ! -s conftest.err'
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; } &&
24064 { ac_try='test -s conftest$ac_exeext'
24065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); }; }; then
24070 eval "$as_ac_var=yes"
24071 else
24072 echo "$as_me: failed program was:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 eval "$as_ac_var=no"
24077 rm -f conftest.err conftest.$ac_objext \
24078 conftest$ac_exeext conftest.$ac_ext
24080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24082 if test `eval echo '${'$as_ac_var'}'` = yes; then
24083 cat >>confdefs.h <<_ACEOF
24084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24085 _ACEOF
24088 done
24091 # We require memcpy.
24092 memcpy_found=no
24094 for ac_func in memcpy
24096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24097 echo "$as_me:$LINENO: checking for $ac_func" >&5
24098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24099 if eval "test \"\${$as_ac_var+set}\" = set"; then
24100 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 else
24102 if test x$gcc_no_link = xyes; then
24103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24105 { (exit 1); exit 1; }; }
24107 cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h. */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h. */
24113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24115 #define $ac_func innocuous_$ac_func
24117 /* System header to define __stub macros and hopefully few prototypes,
24118 which can conflict with char $ac_func (); below.
24119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24120 <limits.h> exists even on freestanding compilers. */
24122 #ifdef __STDC__
24123 # include <limits.h>
24124 #else
24125 # include <assert.h>
24126 #endif
24128 #undef $ac_func
24130 /* Override any gcc2 internal prototype to avoid an error. */
24131 #ifdef __cplusplus
24132 extern "C"
24134 #endif
24135 /* We use char because int might match the return type of a gcc2
24136 builtin and then its argument prototype would still apply. */
24137 char $ac_func ();
24138 /* The GNU C library defines this for functions which it implements
24139 to always fail with ENOSYS. Some functions are actually named
24140 something starting with __ and the normal name is an alias. */
24141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24142 choke me
24143 #else
24144 char (*f) () = $ac_func;
24145 #endif
24146 #ifdef __cplusplus
24148 #endif
24151 main ()
24153 return f != $ac_func;
24155 return 0;
24157 _ACEOF
24158 rm -f conftest.$ac_objext conftest$ac_exeext
24159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24160 (eval $ac_link) 2>conftest.er1
24161 ac_status=$?
24162 grep -v '^ *+' conftest.er1 >conftest.err
24163 rm -f conftest.er1
24164 cat conftest.err >&5
24165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166 (exit $ac_status); } &&
24167 { ac_try='test -z "$ac_c_werror_flag"
24168 || test ! -s conftest.err'
24169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24171 ac_status=$?
24172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173 (exit $ac_status); }; } &&
24174 { ac_try='test -s conftest$ac_exeext'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24177 ac_status=$?
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; }; then
24180 eval "$as_ac_var=yes"
24181 else
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 eval "$as_ac_var=no"
24187 rm -f conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
24190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24192 if test `eval echo '${'$as_ac_var'}'` = yes; then
24193 cat >>confdefs.h <<_ACEOF
24194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24195 _ACEOF
24196 memcpy_found=yes
24198 done
24200 if test "$memcpy_found" = no; then
24201 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
24202 echo "$as_me: error: memcpy is required" >&2;}
24203 { (exit 1); exit 1; }; }
24205 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
24206 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24207 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24208 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24209 echo $ECHO_N "(cached) $ECHO_C" >&6
24210 else
24211 ac_check_lib_save_LIBS=$LIBS
24212 LIBS="-ldl $LIBS"
24213 if test x$gcc_no_link = xyes; then
24214 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24215 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24216 { (exit 1); exit 1; }; }
24218 cat >conftest.$ac_ext <<_ACEOF
24219 /* confdefs.h. */
24220 _ACEOF
24221 cat confdefs.h >>conftest.$ac_ext
24222 cat >>conftest.$ac_ext <<_ACEOF
24223 /* end confdefs.h. */
24225 /* Override any gcc2 internal prototype to avoid an error. */
24226 #ifdef __cplusplus
24227 extern "C"
24228 #endif
24229 /* We use char because int might match the return type of a gcc2
24230 builtin and then its argument prototype would still apply. */
24231 char dlopen ();
24233 main ()
24235 dlopen ();
24237 return 0;
24239 _ACEOF
24240 rm -f conftest.$ac_objext conftest$ac_exeext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24242 (eval $ac_link) 2>conftest.er1
24243 ac_status=$?
24244 grep -v '^ *+' conftest.er1 >conftest.err
24245 rm -f conftest.er1
24246 cat conftest.err >&5
24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248 (exit $ac_status); } &&
24249 { ac_try='test -z "$ac_c_werror_flag"
24250 || test ! -s conftest.err'
24251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252 (eval $ac_try) 2>&5
24253 ac_status=$?
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); }; } &&
24256 { ac_try='test -s conftest$ac_exeext'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24259 ac_status=$?
24260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24262 ac_cv_lib_dl_dlopen=yes
24263 else
24264 echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24267 ac_cv_lib_dl_dlopen=no
24269 rm -f conftest.err conftest.$ac_objext \
24270 conftest$ac_exeext conftest.$ac_ext
24271 LIBS=$ac_check_lib_save_LIBS
24273 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24274 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24275 if test $ac_cv_lib_dl_dlopen = yes; then
24278 cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_DLOPEN 1
24280 _ACEOF
24282 else
24284 echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
24285 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6
24286 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
24287 echo $ECHO_N "(cached) $ECHO_C" >&6
24288 else
24289 ac_check_lib_save_LIBS=$LIBS
24290 LIBS="-ldld $LIBS"
24291 if test x$gcc_no_link = xyes; then
24292 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24293 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24294 { (exit 1); exit 1; }; }
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h. */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24303 /* Override any gcc2 internal prototype to avoid an error. */
24304 #ifdef __cplusplus
24305 extern "C"
24306 #endif
24307 /* We use char because int might match the return type of a gcc2
24308 builtin and then its argument prototype would still apply. */
24309 char dlopen ();
24311 main ()
24313 dlopen ();
24315 return 0;
24317 _ACEOF
24318 rm -f conftest.$ac_objext conftest$ac_exeext
24319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24320 (eval $ac_link) 2>conftest.er1
24321 ac_status=$?
24322 grep -v '^ *+' conftest.er1 >conftest.err
24323 rm -f conftest.er1
24324 cat conftest.err >&5
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); } &&
24327 { ac_try='test -z "$ac_c_werror_flag"
24328 || test ! -s conftest.err'
24329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24330 (eval $ac_try) 2>&5
24331 ac_status=$?
24332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333 (exit $ac_status); }; } &&
24334 { ac_try='test -s conftest$ac_exeext'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24337 ac_status=$?
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; }; then
24340 ac_cv_lib_dld_dlopen=yes
24341 else
24342 echo "$as_me: failed program was:" >&5
24343 sed 's/^/| /' conftest.$ac_ext >&5
24345 ac_cv_lib_dld_dlopen=no
24347 rm -f conftest.err conftest.$ac_objext \
24348 conftest$ac_exeext conftest.$ac_ext
24349 LIBS=$ac_check_lib_save_LIBS
24351 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
24352 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6
24353 if test $ac_cv_lib_dld_dlopen = yes; then
24356 cat >>confdefs.h <<\_ACEOF
24357 #define HAVE_DLOPEN 1
24358 _ACEOF
24365 # Some library-finding code we stole from Tcl.
24366 #--------------------------------------------------------------------
24367 # Check for the existence of the -lsocket and -lnsl libraries.
24368 # The order here is important, so that they end up in the right
24369 # order in the command line generated by make. Here are some
24370 # special considerations:
24371 # 1. Use "connect" and "accept" to check for -lsocket, and
24372 # "gethostbyname" to check for -lnsl.
24373 # 2. Use each function name only once: can't redo a check because
24374 # autoconf caches the results of the last check and won't redo it.
24375 # 3. Use -lnsl and -lsocket only if they supply procedures that
24376 # aren't already present in the normal libraries. This is because
24377 # IRIX 5.2 has libraries, but they aren't needed and they're
24378 # bogus: they goof up name resolution if used.
24379 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
24380 # To get around this problem, check for both libraries together
24381 # if -lsocket doesn't work by itself.
24382 #--------------------------------------------------------------------
24384 echo "$as_me:$LINENO: checking for socket libraries" >&5
24385 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
24386 if test "${gcj_cv_lib_sockets+set}" = set; then
24387 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 else
24389 gcj_cv_lib_sockets=
24390 gcj_checkBoth=0
24391 unset ac_cv_func_connect
24392 echo "$as_me:$LINENO: checking for connect" >&5
24393 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24394 if test "${ac_cv_func_connect+set}" = set; then
24395 echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397 if test x$gcc_no_link = xyes; then
24398 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24399 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24400 { (exit 1); exit 1; }; }
24402 cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h. */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h. */
24408 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24410 #define connect innocuous_connect
24412 /* System header to define __stub macros and hopefully few prototypes,
24413 which can conflict with char connect (); below.
24414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24415 <limits.h> exists even on freestanding compilers. */
24417 #ifdef __STDC__
24418 # include <limits.h>
24419 #else
24420 # include <assert.h>
24421 #endif
24423 #undef connect
24425 /* Override any gcc2 internal prototype to avoid an error. */
24426 #ifdef __cplusplus
24427 extern "C"
24429 #endif
24430 /* We use char because int might match the return type of a gcc2
24431 builtin and then its argument prototype would still apply. */
24432 char connect ();
24433 /* The GNU C library defines this for functions which it implements
24434 to always fail with ENOSYS. Some functions are actually named
24435 something starting with __ and the normal name is an alias. */
24436 #if defined (__stub_connect) || defined (__stub___connect)
24437 choke me
24438 #else
24439 char (*f) () = connect;
24440 #endif
24441 #ifdef __cplusplus
24443 #endif
24446 main ()
24448 return f != connect;
24450 return 0;
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24455 (eval $ac_link) 2>conftest.er1
24456 ac_status=$?
24457 grep -v '^ *+' conftest.er1 >conftest.err
24458 rm -f conftest.er1
24459 cat conftest.err >&5
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); } &&
24462 { ac_try='test -z "$ac_c_werror_flag"
24463 || test ! -s conftest.err'
24464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24465 (eval $ac_try) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); }; } &&
24469 { ac_try='test -s conftest$ac_exeext'
24470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471 (eval $ac_try) 2>&5
24472 ac_status=$?
24473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474 (exit $ac_status); }; }; then
24475 ac_cv_func_connect=yes
24476 else
24477 echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24480 ac_cv_func_connect=no
24482 rm -f conftest.err conftest.$ac_objext \
24483 conftest$ac_exeext conftest.$ac_ext
24485 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24486 echo "${ECHO_T}$ac_cv_func_connect" >&6
24487 if test $ac_cv_func_connect = yes; then
24488 gcj_checkSocket=0
24489 else
24490 gcj_checkSocket=1
24493 if test "$gcj_checkSocket" = 1; then
24494 unset ac_cv_func_connect
24495 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24496 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24497 if test "${ac_cv_lib_socket_main+set}" = set; then
24498 echo $ECHO_N "(cached) $ECHO_C" >&6
24499 else
24500 ac_check_lib_save_LIBS=$LIBS
24501 LIBS="-lsocket $LIBS"
24502 if test x$gcc_no_link = xyes; then
24503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24505 { (exit 1); exit 1; }; }
24507 cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h. */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24516 main ()
24518 main ();
24520 return 0;
24522 _ACEOF
24523 rm -f conftest.$ac_objext conftest$ac_exeext
24524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24525 (eval $ac_link) 2>conftest.er1
24526 ac_status=$?
24527 grep -v '^ *+' conftest.er1 >conftest.err
24528 rm -f conftest.er1
24529 cat conftest.err >&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); } &&
24532 { ac_try='test -z "$ac_c_werror_flag"
24533 || test ! -s conftest.err'
24534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535 (eval $ac_try) 2>&5
24536 ac_status=$?
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); }; } &&
24539 { ac_try='test -s conftest$ac_exeext'
24540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541 (eval $ac_try) 2>&5
24542 ac_status=$?
24543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544 (exit $ac_status); }; }; then
24545 ac_cv_lib_socket_main=yes
24546 else
24547 echo "$as_me: failed program was:" >&5
24548 sed 's/^/| /' conftest.$ac_ext >&5
24550 ac_cv_lib_socket_main=no
24552 rm -f conftest.err conftest.$ac_objext \
24553 conftest$ac_exeext conftest.$ac_ext
24554 LIBS=$ac_check_lib_save_LIBS
24556 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24557 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24558 if test $ac_cv_lib_socket_main = yes; then
24559 gcj_cv_lib_sockets="-lsocket"
24560 else
24561 gcj_checkBoth=1
24565 if test "$gcj_checkBoth" = 1; then
24566 gcj_oldLibs=$LIBS
24567 LIBS="$LIBS -lsocket -lnsl"
24568 unset ac_cv_func_accept
24569 echo "$as_me:$LINENO: checking for accept" >&5
24570 echo $ECHO_N "checking for accept... $ECHO_C" >&6
24571 if test "${ac_cv_func_accept+set}" = set; then
24572 echo $ECHO_N "(cached) $ECHO_C" >&6
24573 else
24574 if test x$gcc_no_link = xyes; then
24575 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24576 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24577 { (exit 1); exit 1; }; }
24579 cat >conftest.$ac_ext <<_ACEOF
24580 /* confdefs.h. */
24581 _ACEOF
24582 cat confdefs.h >>conftest.$ac_ext
24583 cat >>conftest.$ac_ext <<_ACEOF
24584 /* end confdefs.h. */
24585 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
24586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24587 #define accept innocuous_accept
24589 /* System header to define __stub macros and hopefully few prototypes,
24590 which can conflict with char accept (); below.
24591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24592 <limits.h> exists even on freestanding compilers. */
24594 #ifdef __STDC__
24595 # include <limits.h>
24596 #else
24597 # include <assert.h>
24598 #endif
24600 #undef accept
24602 /* Override any gcc2 internal prototype to avoid an error. */
24603 #ifdef __cplusplus
24604 extern "C"
24606 #endif
24607 /* We use char because int might match the return type of a gcc2
24608 builtin and then its argument prototype would still apply. */
24609 char accept ();
24610 /* The GNU C library defines this for functions which it implements
24611 to always fail with ENOSYS. Some functions are actually named
24612 something starting with __ and the normal name is an alias. */
24613 #if defined (__stub_accept) || defined (__stub___accept)
24614 choke me
24615 #else
24616 char (*f) () = accept;
24617 #endif
24618 #ifdef __cplusplus
24620 #endif
24623 main ()
24625 return f != accept;
24627 return 0;
24629 _ACEOF
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24632 (eval $ac_link) 2>conftest.er1
24633 ac_status=$?
24634 grep -v '^ *+' conftest.er1 >conftest.err
24635 rm -f conftest.er1
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } &&
24639 { ac_try='test -z "$ac_c_werror_flag"
24640 || test ! -s conftest.err'
24641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24642 (eval $ac_try) 2>&5
24643 ac_status=$?
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); }; } &&
24646 { ac_try='test -s conftest$ac_exeext'
24647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24648 (eval $ac_try) 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
24652 ac_cv_func_accept=yes
24653 else
24654 echo "$as_me: failed program was:" >&5
24655 sed 's/^/| /' conftest.$ac_ext >&5
24657 ac_cv_func_accept=no
24659 rm -f conftest.err conftest.$ac_objext \
24660 conftest$ac_exeext conftest.$ac_ext
24662 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
24663 echo "${ECHO_T}$ac_cv_func_accept" >&6
24664 if test $ac_cv_func_accept = yes; then
24665 gcj_checkNsl=0
24666 gcj_cv_lib_sockets="-lsocket -lnsl"
24669 unset ac_cv_func_accept
24670 LIBS=$gcj_oldLibs
24672 unset ac_cv_func_gethostbyname
24673 gcj_oldLibs=$LIBS
24674 LIBS="$LIBS $gcj_cv_lib_sockets"
24675 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24676 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24677 if test "${ac_cv_func_gethostbyname+set}" = set; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679 else
24680 if test x$gcc_no_link = xyes; then
24681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24683 { (exit 1); exit 1; }; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24693 #define gethostbyname innocuous_gethostbyname
24695 /* System header to define __stub macros and hopefully few prototypes,
24696 which can conflict with char gethostbyname (); below.
24697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24698 <limits.h> exists even on freestanding compilers. */
24700 #ifdef __STDC__
24701 # include <limits.h>
24702 #else
24703 # include <assert.h>
24704 #endif
24706 #undef gethostbyname
24708 /* Override any gcc2 internal prototype to avoid an error. */
24709 #ifdef __cplusplus
24710 extern "C"
24712 #endif
24713 /* We use char because int might match the return type of a gcc2
24714 builtin and then its argument prototype would still apply. */
24715 char gethostbyname ();
24716 /* The GNU C library defines this for functions which it implements
24717 to always fail with ENOSYS. Some functions are actually named
24718 something starting with __ and the normal name is an alias. */
24719 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24720 choke me
24721 #else
24722 char (*f) () = gethostbyname;
24723 #endif
24724 #ifdef __cplusplus
24726 #endif
24729 main ()
24731 return f != gethostbyname;
24733 return 0;
24735 _ACEOF
24736 rm -f conftest.$ac_objext conftest$ac_exeext
24737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24738 (eval $ac_link) 2>conftest.er1
24739 ac_status=$?
24740 grep -v '^ *+' conftest.er1 >conftest.err
24741 rm -f conftest.er1
24742 cat conftest.err >&5
24743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24744 (exit $ac_status); } &&
24745 { ac_try='test -z "$ac_c_werror_flag"
24746 || test ! -s conftest.err'
24747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; } &&
24752 { ac_try='test -s conftest$ac_exeext'
24753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24754 (eval $ac_try) 2>&5
24755 ac_status=$?
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); }; }; then
24758 ac_cv_func_gethostbyname=yes
24759 else
24760 echo "$as_me: failed program was:" >&5
24761 sed 's/^/| /' conftest.$ac_ext >&5
24763 ac_cv_func_gethostbyname=no
24765 rm -f conftest.err conftest.$ac_objext \
24766 conftest$ac_exeext conftest.$ac_ext
24768 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24769 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24770 if test $ac_cv_func_gethostbyname = yes; then
24772 else
24773 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24774 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24775 if test "${ac_cv_lib_nsl_main+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24777 else
24778 ac_check_lib_save_LIBS=$LIBS
24779 LIBS="-lnsl $LIBS"
24780 if test x$gcc_no_link = xyes; then
24781 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24782 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24783 { (exit 1); exit 1; }; }
24785 cat >conftest.$ac_ext <<_ACEOF
24786 /* confdefs.h. */
24787 _ACEOF
24788 cat confdefs.h >>conftest.$ac_ext
24789 cat >>conftest.$ac_ext <<_ACEOF
24790 /* end confdefs.h. */
24794 main ()
24796 main ();
24798 return 0;
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24803 (eval $ac_link) 2>conftest.er1
24804 ac_status=$?
24805 grep -v '^ *+' conftest.er1 >conftest.err
24806 rm -f conftest.er1
24807 cat conftest.err >&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); } &&
24810 { ac_try='test -z "$ac_c_werror_flag"
24811 || test ! -s conftest.err'
24812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813 (eval $ac_try) 2>&5
24814 ac_status=$?
24815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816 (exit $ac_status); }; } &&
24817 { ac_try='test -s conftest$ac_exeext'
24818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819 (eval $ac_try) 2>&5
24820 ac_status=$?
24821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822 (exit $ac_status); }; }; then
24823 ac_cv_lib_nsl_main=yes
24824 else
24825 echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24828 ac_cv_lib_nsl_main=no
24830 rm -f conftest.err conftest.$ac_objext \
24831 conftest$ac_exeext conftest.$ac_ext
24832 LIBS=$ac_check_lib_save_LIBS
24834 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24835 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24836 if test $ac_cv_lib_nsl_main = yes; then
24837 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
24842 unset ac_cv_func_gethostbyname
24843 LIBS=$gcj_oldLIBS
24846 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
24847 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
24848 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
24850 if test "$with_system_zlib" = yes; then
24851 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24852 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24853 if test "${ac_cv_lib_z_deflate+set}" = set; then
24854 echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856 ac_check_lib_save_LIBS=$LIBS
24857 LIBS="-lz $LIBS"
24858 if test x$gcc_no_link = xyes; then
24859 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
24860 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
24861 { (exit 1); exit 1; }; }
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h. */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24870 /* Override any gcc2 internal prototype to avoid an error. */
24871 #ifdef __cplusplus
24872 extern "C"
24873 #endif
24874 /* We use char because int might match the return type of a gcc2
24875 builtin and then its argument prototype would still apply. */
24876 char deflate ();
24878 main ()
24880 deflate ();
24882 return 0;
24884 _ACEOF
24885 rm -f conftest.$ac_objext conftest$ac_exeext
24886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24887 (eval $ac_link) 2>conftest.er1
24888 ac_status=$?
24889 grep -v '^ *+' conftest.er1 >conftest.err
24890 rm -f conftest.er1
24891 cat conftest.err >&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); } &&
24894 { ac_try='test -z "$ac_c_werror_flag"
24895 || test ! -s conftest.err'
24896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24897 (eval $ac_try) 2>&5
24898 ac_status=$?
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); }; } &&
24901 { ac_try='test -s conftest$ac_exeext'
24902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24903 (eval $ac_try) 2>&5
24904 ac_status=$?
24905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24906 (exit $ac_status); }; }; then
24907 ac_cv_lib_z_deflate=yes
24908 else
24909 echo "$as_me: failed program was:" >&5
24910 sed 's/^/| /' conftest.$ac_ext >&5
24912 ac_cv_lib_z_deflate=no
24914 rm -f conftest.err conftest.$ac_objext \
24915 conftest$ac_exeext conftest.$ac_ext
24916 LIBS=$ac_check_lib_save_LIBS
24918 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24919 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24920 if test $ac_cv_lib_z_deflate = yes; then
24921 ZLIBSPEC=-lz
24922 else
24923 ZLIBSPEC=
24928 # Test for Gtk stuff, if asked for.
24929 if test "$use_gtk_awt" = yes; then
24931 succeeded=no
24933 if test -z "$PKG_CONFIG"; then
24934 # Extract the first word of "pkg-config", so it can be a program name with args.
24935 set dummy pkg-config; ac_word=$2
24936 echo "$as_me:$LINENO: checking for $ac_word" >&5
24937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24938 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24940 else
24941 case $PKG_CONFIG in
24942 [\\/]* | ?:[\\/]*)
24943 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24947 for as_dir in $PATH
24949 IFS=$as_save_IFS
24950 test -z "$as_dir" && as_dir=.
24951 for ac_exec_ext in '' $ac_executable_extensions; do
24952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24953 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24955 break 2
24957 done
24958 done
24960 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24962 esac
24964 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24966 if test -n "$PKG_CONFIG"; then
24967 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24968 echo "${ECHO_T}$PKG_CONFIG" >&6
24969 else
24970 echo "$as_me:$LINENO: result: no" >&5
24971 echo "${ECHO_T}no" >&6
24976 if test "$PKG_CONFIG" = "no" ; then
24977 echo "*** The pkg-config script could not be found. Make sure it is"
24978 echo "*** in your path, or set the PKG_CONFIG environment variable"
24979 echo "*** to the full path to pkg-config."
24980 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24981 else
24982 PKG_CONFIG_MIN_VERSION=0.9.0
24983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24984 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
24985 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
24987 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
24988 echo "$as_me:$LINENO: result: yes" >&5
24989 echo "${ECHO_T}yes" >&6
24990 succeeded=yes
24992 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
24993 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
24994 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
24995 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
24996 echo "${ECHO_T}$GTK_CFLAGS" >&6
24998 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
24999 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
25000 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
25001 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25002 echo "${ECHO_T}$GTK_LIBS" >&6
25003 else
25004 GTK_CFLAGS=""
25005 GTK_LIBS=""
25006 ## If we have a custom action on failure, don't print errors, but
25007 ## do set a variable so people can do so.
25008 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
25009 echo $GTK_PKG_ERRORS
25014 else
25015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25020 if test $succeeded = yes; then
25022 else
25023 { { 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
25024 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;}
25025 { (exit 1); exit 1; }; }
25032 succeeded=no
25034 if test -z "$PKG_CONFIG"; then
25035 # Extract the first word of "pkg-config", so it can be a program name with args.
25036 set dummy pkg-config; ac_word=$2
25037 echo "$as_me:$LINENO: checking for $ac_word" >&5
25038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25040 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 else
25042 case $PKG_CONFIG in
25043 [\\/]* | ?:[\\/]*)
25044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25048 for as_dir in $PATH
25050 IFS=$as_save_IFS
25051 test -z "$as_dir" && as_dir=.
25052 for ac_exec_ext in '' $ac_executable_extensions; do
25053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25056 break 2
25058 done
25059 done
25061 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25063 esac
25065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25067 if test -n "$PKG_CONFIG"; then
25068 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25069 echo "${ECHO_T}$PKG_CONFIG" >&6
25070 else
25071 echo "$as_me:$LINENO: result: no" >&5
25072 echo "${ECHO_T}no" >&6
25077 if test "$PKG_CONFIG" = "no" ; then
25078 echo "*** The pkg-config script could not be found. Make sure it is"
25079 echo "*** in your path, or set the PKG_CONFIG environment variable"
25080 echo "*** to the full path to pkg-config."
25081 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25082 else
25083 PKG_CONFIG_MIN_VERSION=0.9.0
25084 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25085 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
25086 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
25088 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
25089 echo "$as_me:$LINENO: result: yes" >&5
25090 echo "${ECHO_T}yes" >&6
25091 succeeded=yes
25093 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
25094 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
25095 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25096 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
25097 echo "${ECHO_T}$GLIB_CFLAGS" >&6
25099 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
25100 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
25101 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25102 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
25103 echo "${ECHO_T}$GLIB_LIBS" >&6
25104 else
25105 GLIB_CFLAGS=""
25106 GLIB_LIBS=""
25107 ## If we have a custom action on failure, don't print errors, but
25108 ## do set a variable so people can do so.
25109 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
25110 echo $GLIB_PKG_ERRORS
25115 else
25116 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25117 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25121 if test $succeeded = yes; then
25123 else
25124 { { 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
25125 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;}
25126 { (exit 1); exit 1; }; }
25133 succeeded=no
25135 if test -z "$PKG_CONFIG"; then
25136 # Extract the first word of "pkg-config", so it can be a program name with args.
25137 set dummy pkg-config; ac_word=$2
25138 echo "$as_me:$LINENO: checking for $ac_word" >&5
25139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25140 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25141 echo $ECHO_N "(cached) $ECHO_C" >&6
25142 else
25143 case $PKG_CONFIG in
25144 [\\/]* | ?:[\\/]*)
25145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149 for as_dir in $PATH
25151 IFS=$as_save_IFS
25152 test -z "$as_dir" && as_dir=.
25153 for ac_exec_ext in '' $ac_executable_extensions; do
25154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25157 break 2
25159 done
25160 done
25162 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25164 esac
25166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25168 if test -n "$PKG_CONFIG"; then
25169 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25170 echo "${ECHO_T}$PKG_CONFIG" >&6
25171 else
25172 echo "$as_me:$LINENO: result: no" >&5
25173 echo "${ECHO_T}no" >&6
25178 if test "$PKG_CONFIG" = "no" ; then
25179 echo "*** The pkg-config script could not be found. Make sure it is"
25180 echo "*** in your path, or set the PKG_CONFIG environment variable"
25181 echo "*** to the full path to pkg-config."
25182 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25183 else
25184 PKG_CONFIG_MIN_VERSION=0.9.0
25185 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25186 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
25187 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
25189 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
25190 echo "$as_me:$LINENO: result: yes" >&5
25191 echo "${ECHO_T}yes" >&6
25192 succeeded=yes
25194 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
25195 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
25196 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
25197 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
25198 echo "${ECHO_T}$LIBART_CFLAGS" >&6
25200 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
25201 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
25202 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
25203 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
25204 echo "${ECHO_T}$LIBART_LIBS" >&6
25205 else
25206 LIBART_CFLAGS=""
25207 LIBART_LIBS=""
25208 ## If we have a custom action on failure, don't print errors, but
25209 ## do set a variable so people can do so.
25210 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
25211 echo $LIBART_PKG_ERRORS
25216 else
25217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25222 if test $succeeded = yes; then
25224 else
25225 { { 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
25226 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;}
25227 { (exit 1); exit 1; }; }
25233 # We require the XTest Extension to support java.awt.Robot.
25234 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25235 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
25236 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25237 echo $ECHO_N "(cached) $ECHO_C" >&6
25238 else
25239 ac_check_lib_save_LIBS=$LIBS
25240 LIBS="-lXtst ${X_LIBS} $LIBS"
25241 if test x$gcc_no_link = xyes; then
25242 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25243 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25244 { (exit 1); exit 1; }; }
25246 cat >conftest.$ac_ext <<_ACEOF
25247 /* confdefs.h. */
25248 _ACEOF
25249 cat confdefs.h >>conftest.$ac_ext
25250 cat >>conftest.$ac_ext <<_ACEOF
25251 /* end confdefs.h. */
25253 /* Override any gcc2 internal prototype to avoid an error. */
25254 #ifdef __cplusplus
25255 extern "C"
25256 #endif
25257 /* We use char because int might match the return type of a gcc2
25258 builtin and then its argument prototype would still apply. */
25259 char XTestQueryExtension ();
25261 main ()
25263 XTestQueryExtension ();
25265 return 0;
25267 _ACEOF
25268 rm -f conftest.$ac_objext conftest$ac_exeext
25269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270 (eval $ac_link) 2>conftest.er1
25271 ac_status=$?
25272 grep -v '^ *+' conftest.er1 >conftest.err
25273 rm -f conftest.er1
25274 cat conftest.err >&5
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); } &&
25277 { ac_try='test -z "$ac_c_werror_flag"
25278 || test ! -s conftest.err'
25279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25280 (eval $ac_try) 2>&5
25281 ac_status=$?
25282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283 (exit $ac_status); }; } &&
25284 { ac_try='test -s conftest$ac_exeext'
25285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25286 (eval $ac_try) 2>&5
25287 ac_status=$?
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); }; }; then
25290 ac_cv_lib_Xtst_XTestQueryExtension=yes
25291 else
25292 echo "$as_me: failed program was:" >&5
25293 sed 's/^/| /' conftest.$ac_ext >&5
25295 ac_cv_lib_Xtst_XTestQueryExtension=no
25297 rm -f conftest.err conftest.$ac_objext \
25298 conftest$ac_exeext conftest.$ac_ext
25299 LIBS=$ac_check_lib_save_LIBS
25301 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25302 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
25303 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25304 true
25305 else
25306 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
25307 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
25308 { (exit 1); exit 1; }; }
25313 # On Solaris, and maybe other architectures, the Boehm collector
25314 # requires -ldl.
25315 if test "$GC" = boehm; then
25316 case "${host}" in
25317 mips-sgi-irix6*)
25318 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
25319 # libgcj.spec is used, so override here
25320 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
25323 echo "$as_me:$LINENO: checking for main in -ldl" >&5
25324 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
25325 if test "${ac_cv_lib_dl_main+set}" = set; then
25326 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 else
25328 ac_check_lib_save_LIBS=$LIBS
25329 LIBS="-ldl $LIBS"
25330 if test x$gcc_no_link = xyes; then
25331 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
25332 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
25333 { (exit 1); exit 1; }; }
25335 cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h. */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h. */
25344 main ()
25346 main ();
25348 return 0;
25350 _ACEOF
25351 rm -f conftest.$ac_objext conftest$ac_exeext
25352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25353 (eval $ac_link) 2>conftest.er1
25354 ac_status=$?
25355 grep -v '^ *+' conftest.er1 >conftest.err
25356 rm -f conftest.er1
25357 cat conftest.err >&5
25358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359 (exit $ac_status); } &&
25360 { ac_try='test -z "$ac_c_werror_flag"
25361 || test ! -s conftest.err'
25362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25363 (eval $ac_try) 2>&5
25364 ac_status=$?
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); }; } &&
25367 { ac_try='test -s conftest$ac_exeext'
25368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25369 (eval $ac_try) 2>&5
25370 ac_status=$?
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); }; }; then
25373 ac_cv_lib_dl_main=yes
25374 else
25375 echo "$as_me: failed program was:" >&5
25376 sed 's/^/| /' conftest.$ac_ext >&5
25378 ac_cv_lib_dl_main=no
25380 rm -f conftest.err conftest.$ac_objext \
25381 conftest$ac_exeext conftest.$ac_ext
25382 LIBS=$ac_check_lib_save_LIBS
25384 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
25385 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
25386 if test $ac_cv_lib_dl_main = yes; then
25387 SYSTEMSPEC="$SYSTEMSPEC -ldl"
25391 esac
25395 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
25396 case $build in
25397 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
25398 *) CLASSPATH_SEPARATOR=':' ;;
25399 esac
25402 # We must search the source tree for java.lang, since we still don't
25403 # have libgcj.jar nor java/lang/*.class
25404 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
25405 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
25407 # Since some classes depend on this one, we need its source available
25408 # before we can do any GCJ compilation test :-(
25409 if test ! -f gnu/classpath/Configuration.java; then
25410 test -d gnu || mkdir gnu
25411 test -d gnu/classpath || mkdir gnu/classpath
25412 # Note that it is not crucial that all the values here be correct.
25413 sed -e "s,@prefix@,$prefix," \
25414 -e "s,@VERSION@,$VERSION," \
25415 -e "s,@LIBDEBUG@,false," \
25416 -e "s,@INIT_LOAD_LIBRARY@,false," \
25417 -e "s,@@,$LIBGCJDEBUG," \
25418 -e "s,@default_toolkit@,$TOOLKIT," \
25419 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
25420 -e "s,@GTK_CAIRO_ENABLED@,false," \
25421 -e "s,@ECJ_JAR@,," \
25422 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
25423 > gnu/classpath/Configuration.java
25424 # We do not want to redirect the output of the grep below to /dev/null,
25425 # but we add /dev/null to the input list so that grep will print the
25426 # filename of Configuration.java in case it finds any matches.
25427 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
25428 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
25429 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
25430 { (exit 1); exit 1; }; }
25435 for ac_prog in gcj
25437 # Extract the first word of "$ac_prog", so it can be a program name with args.
25438 set dummy $ac_prog; ac_word=$2
25439 echo "$as_me:$LINENO: checking for $ac_word" >&5
25440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25441 if test "${ac_cv_prog_GCJ+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25443 else
25444 if test -n "$GCJ"; then
25445 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
25446 else
25447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25448 for as_dir in $PATH
25450 IFS=$as_save_IFS
25451 test -z "$as_dir" && as_dir=.
25452 for ac_exec_ext in '' $ac_executable_extensions; do
25453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25454 ac_cv_prog_GCJ="$ac_prog"
25455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25456 break 2
25458 done
25459 done
25463 GCJ=$ac_cv_prog_GCJ
25464 if test -n "$GCJ"; then
25465 echo "$as_me:$LINENO: result: $GCJ" >&5
25466 echo "${ECHO_T}$GCJ" >&6
25467 else
25468 echo "$as_me:$LINENO: result: no" >&5
25469 echo "${ECHO_T}no" >&6
25472 test -n "$GCJ" && break
25473 done
25474 test -n "$GCJ" || GCJ="gcj"
25476 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
25477 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
25478 { (exit 1); exit 1; }; }
25479 if test "x${GCJFLAGS-unset}" = xunset; then
25480 GCJFLAGS="-g -O2"
25484 depcc="$GCJ" am_compiler_list='gcc3 gcc'
25486 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25487 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25488 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
25489 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 else
25491 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25492 # We make a subdir and do the tests there. Otherwise we can end up
25493 # making bogus files that we don't know about and never remove. For
25494 # instance it was reported that on HP-UX the gcc test will end up
25495 # making a dummy file named `D' -- because `-MD' means `put the output
25496 # in D'.
25497 mkdir conftest.dir
25498 # Copy depcomp to subdir because otherwise we won't find it if we're
25499 # using a relative directory.
25500 cp "$am_depcomp" conftest.dir
25501 cd conftest.dir
25502 # We will build objects and dependencies in a subdirectory because
25503 # it helps to detect inapplicable dependency modes. For instance
25504 # both Tru64's cc and ICC support -MD to output dependencies as a
25505 # side effect of compilation, but ICC will put the dependencies in
25506 # the current directory while Tru64 will put them in the object
25507 # directory.
25508 mkdir sub
25510 am_cv_GCJ_dependencies_compiler_type=none
25511 if test "$am_compiler_list" = ""; then
25512 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25514 for depmode in $am_compiler_list; do
25515 # Setup a source with many dependencies, because some compilers
25516 # like to wrap large dependency lists on column 80 (with \), and
25517 # we should not choose a depcomp mode which is confused by this.
25519 # We need to recreate these files for each test, as the compiler may
25520 # overwrite some of them when testing with obscure command lines.
25521 # This happens at least with the AIX C compiler.
25522 : > sub/conftest.c
25523 for i in 1 2 3 4 5 6; do
25524 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25525 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25526 # Solaris 8's {/usr,}/bin/sh.
25527 touch sub/conftst$i.h
25528 done
25529 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25531 case $depmode in
25532 nosideeffect)
25533 # after this tag, mechanisms are not by side-effect, so they'll
25534 # only be used when explicitly requested
25535 if test "x$enable_dependency_tracking" = xyes; then
25536 continue
25537 else
25538 break
25541 none) break ;;
25542 esac
25543 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25544 # mode. It turns out that the SunPro C++ compiler does not properly
25545 # handle `-M -o', and we need to detect this.
25546 if depmode=$depmode \
25547 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25549 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25550 >/dev/null 2>conftest.err &&
25551 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25552 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25553 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25554 # icc doesn't choke on unknown options, it will just issue warnings
25555 # or remarks (even with -Werror). So we grep stderr for any message
25556 # that says an option was ignored or not supported.
25557 # When given -MP, icc 7.0 and 7.1 complain thusly:
25558 # icc: Command line warning: ignoring option '-M'; no argument required
25559 # The diagnosis changed in icc 8.0:
25560 # icc: Command line remark: option '-MP' not supported
25561 if (grep 'ignoring option' conftest.err ||
25562 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25563 am_cv_GCJ_dependencies_compiler_type=$depmode
25564 break
25567 done
25569 cd ..
25570 rm -rf conftest.dir
25571 else
25572 am_cv_GCJ_dependencies_compiler_type=none
25576 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
25577 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
25578 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
25583 test "x$enable_dependency_tracking" != xno \
25584 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
25585 am__fastdepGCJ_TRUE=
25586 am__fastdepGCJ_FALSE='#'
25587 else
25588 am__fastdepGCJ_TRUE='#'
25589 am__fastdepGCJ_FALSE=
25595 # Now remove it.
25596 rm -f gnu/classpath/Configuration.java
25598 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
25600 echo "$as_me:$LINENO: checking for void *" >&5
25601 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25602 if test "${ac_cv_type_void_p+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604 else
25605 cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h. */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h. */
25611 $ac_includes_default
25613 main ()
25615 if ((void * *) 0)
25616 return 0;
25617 if (sizeof (void *))
25618 return 0;
25620 return 0;
25622 _ACEOF
25623 rm -f conftest.$ac_objext
25624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25625 (eval $ac_compile) 2>conftest.er1
25626 ac_status=$?
25627 grep -v '^ *+' conftest.er1 >conftest.err
25628 rm -f conftest.er1
25629 cat conftest.err >&5
25630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); } &&
25632 { ac_try='test -z "$ac_c_werror_flag"
25633 || test ! -s conftest.err'
25634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; } &&
25639 { ac_try='test -s conftest.$ac_objext'
25640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641 (eval $ac_try) 2>&5
25642 ac_status=$?
25643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 (exit $ac_status); }; }; then
25645 ac_cv_type_void_p=yes
25646 else
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25650 ac_cv_type_void_p=no
25652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25654 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25655 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25657 echo "$as_me:$LINENO: checking size of void *" >&5
25658 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25659 if test "${ac_cv_sizeof_void_p+set}" = set; then
25660 echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662 if test "$ac_cv_type_void_p" = yes; then
25663 # The cast to unsigned long works around a bug in the HP C Compiler
25664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25666 # This bug is HP SR number 8606223364.
25667 if test "$cross_compiling" = yes; then
25668 # Depending upon the size, compute the lo and hi bounds.
25669 cat >conftest.$ac_ext <<_ACEOF
25670 /* confdefs.h. */
25671 _ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 $ac_includes_default
25677 main ()
25679 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25680 test_array [0] = 0
25683 return 0;
25685 _ACEOF
25686 rm -f conftest.$ac_objext
25687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25688 (eval $ac_compile) 2>conftest.er1
25689 ac_status=$?
25690 grep -v '^ *+' conftest.er1 >conftest.err
25691 rm -f conftest.er1
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
25695 { ac_try='test -z "$ac_c_werror_flag"
25696 || test ! -s conftest.err'
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; } &&
25702 { ac_try='test -s conftest.$ac_objext'
25703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25704 (eval $ac_try) 2>&5
25705 ac_status=$?
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); }; }; then
25708 ac_lo=0 ac_mid=0
25709 while :; do
25710 cat >conftest.$ac_ext <<_ACEOF
25711 /* confdefs.h. */
25712 _ACEOF
25713 cat confdefs.h >>conftest.$ac_ext
25714 cat >>conftest.$ac_ext <<_ACEOF
25715 /* end confdefs.h. */
25716 $ac_includes_default
25718 main ()
25720 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25721 test_array [0] = 0
25724 return 0;
25726 _ACEOF
25727 rm -f conftest.$ac_objext
25728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25729 (eval $ac_compile) 2>conftest.er1
25730 ac_status=$?
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest.$ac_objext'
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_hi=$ac_mid; break
25750 else
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.$ac_ext >&5
25754 ac_lo=`expr $ac_mid + 1`
25755 if test $ac_lo -le $ac_mid; then
25756 ac_lo= ac_hi=
25757 break
25759 ac_mid=`expr 2 '*' $ac_mid + 1`
25761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25762 done
25763 else
25764 echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25767 cat >conftest.$ac_ext <<_ACEOF
25768 /* confdefs.h. */
25769 _ACEOF
25770 cat confdefs.h >>conftest.$ac_ext
25771 cat >>conftest.$ac_ext <<_ACEOF
25772 /* end confdefs.h. */
25773 $ac_includes_default
25775 main ()
25777 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25778 test_array [0] = 0
25781 return 0;
25783 _ACEOF
25784 rm -f conftest.$ac_objext
25785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25786 (eval $ac_compile) 2>conftest.er1
25787 ac_status=$?
25788 grep -v '^ *+' conftest.er1 >conftest.err
25789 rm -f conftest.er1
25790 cat conftest.err >&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } &&
25793 { ac_try='test -z "$ac_c_werror_flag"
25794 || test ! -s conftest.err'
25795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25796 (eval $ac_try) 2>&5
25797 ac_status=$?
25798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799 (exit $ac_status); }; } &&
25800 { ac_try='test -s conftest.$ac_objext'
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; }; then
25806 ac_hi=-1 ac_mid=-1
25807 while :; do
25808 cat >conftest.$ac_ext <<_ACEOF
25809 /* confdefs.h. */
25810 _ACEOF
25811 cat confdefs.h >>conftest.$ac_ext
25812 cat >>conftest.$ac_ext <<_ACEOF
25813 /* end confdefs.h. */
25814 $ac_includes_default
25816 main ()
25818 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25819 test_array [0] = 0
25822 return 0;
25824 _ACEOF
25825 rm -f conftest.$ac_objext
25826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25827 (eval $ac_compile) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest.$ac_objext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_lo=$ac_mid; break
25848 else
25849 echo "$as_me: failed program was:" >&5
25850 sed 's/^/| /' conftest.$ac_ext >&5
25852 ac_hi=`expr '(' $ac_mid ')' - 1`
25853 if test $ac_mid -le $ac_hi; then
25854 ac_lo= ac_hi=
25855 break
25857 ac_mid=`expr 2 '*' $ac_mid`
25859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25860 done
25861 else
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25865 ac_lo= ac_hi=
25867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25870 # Binary search between lo and hi bounds.
25871 while test "x$ac_lo" != "x$ac_hi"; do
25872 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25873 cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h. */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25879 $ac_includes_default
25881 main ()
25883 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25884 test_array [0] = 0
25887 return 0;
25889 _ACEOF
25890 rm -f conftest.$ac_objext
25891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25892 (eval $ac_compile) 2>conftest.er1
25893 ac_status=$?
25894 grep -v '^ *+' conftest.er1 >conftest.err
25895 rm -f conftest.er1
25896 cat conftest.err >&5
25897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898 (exit $ac_status); } &&
25899 { ac_try='test -z "$ac_c_werror_flag"
25900 || test ! -s conftest.err'
25901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25902 (eval $ac_try) 2>&5
25903 ac_status=$?
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); }; } &&
25906 { ac_try='test -s conftest.$ac_objext'
25907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908 (eval $ac_try) 2>&5
25909 ac_status=$?
25910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); }; }; then
25912 ac_hi=$ac_mid
25913 else
25914 echo "$as_me: failed program was:" >&5
25915 sed 's/^/| /' conftest.$ac_ext >&5
25917 ac_lo=`expr '(' $ac_mid ')' + 1`
25919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25920 done
25921 case $ac_lo in
25922 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25923 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25924 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25925 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25926 See \`config.log' for more details." >&5
25927 echo "$as_me: error: cannot compute sizeof (void *), 77
25928 See \`config.log' for more details." >&2;}
25929 { (exit 1); exit 1; }; }; } ;;
25930 esac
25931 else
25932 if test "$cross_compiling" = yes; then
25933 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25934 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25935 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25936 See \`config.log' for more details." >&5
25937 echo "$as_me: error: cannot run test program while cross compiling
25938 See \`config.log' for more details." >&2;}
25939 { (exit 1); exit 1; }; }; }
25940 else
25941 cat >conftest.$ac_ext <<_ACEOF
25942 /* confdefs.h. */
25943 _ACEOF
25944 cat confdefs.h >>conftest.$ac_ext
25945 cat >>conftest.$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25947 $ac_includes_default
25948 long longval () { return (long) (sizeof (void *)); }
25949 unsigned long ulongval () { return (long) (sizeof (void *)); }
25950 #include <stdio.h>
25951 #include <stdlib.h>
25953 main ()
25956 FILE *f = fopen ("conftest.val", "w");
25957 if (! f)
25958 exit (1);
25959 if (((long) (sizeof (void *))) < 0)
25961 long i = longval ();
25962 if (i != ((long) (sizeof (void *))))
25963 exit (1);
25964 fprintf (f, "%ld\n", i);
25966 else
25968 unsigned long i = ulongval ();
25969 if (i != ((long) (sizeof (void *))))
25970 exit (1);
25971 fprintf (f, "%lu\n", i);
25973 exit (ferror (f) || fclose (f) != 0);
25976 return 0;
25978 _ACEOF
25979 rm -f conftest$ac_exeext
25980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25981 (eval $ac_link) 2>&5
25982 ac_status=$?
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; }; then
25990 ac_cv_sizeof_void_p=`cat conftest.val`
25991 else
25992 echo "$as_me: program exited with status $ac_status" >&5
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996 ( exit $ac_status )
25997 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25998 echo "$as_me: error: in \`$ac_pwd':" >&2;}
25999 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
26000 See \`config.log' for more details." >&5
26001 echo "$as_me: error: cannot compute sizeof (void *), 77
26002 See \`config.log' for more details." >&2;}
26003 { (exit 1); exit 1; }; }; }
26005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26008 rm -f conftest.val
26009 else
26010 ac_cv_sizeof_void_p=0
26013 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
26014 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
26015 cat >>confdefs.h <<_ACEOF
26016 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
26017 _ACEOF
26021 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26022 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
26023 if test "${ac_cv_c_bigendian+set}" = set; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 else
26026 # See if sys/param.h defines the BYTE_ORDER macro.
26027 cat >conftest.$ac_ext <<_ACEOF
26028 /* confdefs.h. */
26029 _ACEOF
26030 cat confdefs.h >>conftest.$ac_ext
26031 cat >>conftest.$ac_ext <<_ACEOF
26032 /* end confdefs.h. */
26033 #include <sys/types.h>
26034 #include <sys/param.h>
26037 main ()
26039 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26040 bogus endian macros
26041 #endif
26044 return 0;
26046 _ACEOF
26047 rm -f conftest.$ac_objext
26048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26049 (eval $ac_compile) 2>conftest.er1
26050 ac_status=$?
26051 grep -v '^ *+' conftest.er1 >conftest.err
26052 rm -f conftest.er1
26053 cat conftest.err >&5
26054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 (exit $ac_status); } &&
26056 { ac_try='test -z "$ac_c_werror_flag"
26057 || test ! -s conftest.err'
26058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); }; } &&
26063 { ac_try='test -s conftest.$ac_objext'
26064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26065 (eval $ac_try) 2>&5
26066 ac_status=$?
26067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068 (exit $ac_status); }; }; then
26069 # It does; now see whether it defined to BIG_ENDIAN or not.
26070 cat >conftest.$ac_ext <<_ACEOF
26071 /* confdefs.h. */
26072 _ACEOF
26073 cat confdefs.h >>conftest.$ac_ext
26074 cat >>conftest.$ac_ext <<_ACEOF
26075 /* end confdefs.h. */
26076 #include <sys/types.h>
26077 #include <sys/param.h>
26080 main ()
26082 #if BYTE_ORDER != BIG_ENDIAN
26083 not big endian
26084 #endif
26087 return 0;
26089 _ACEOF
26090 rm -f conftest.$ac_objext
26091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26092 (eval $ac_compile) 2>conftest.er1
26093 ac_status=$?
26094 grep -v '^ *+' conftest.er1 >conftest.err
26095 rm -f conftest.er1
26096 cat conftest.err >&5
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } &&
26099 { ac_try='test -z "$ac_c_werror_flag"
26100 || test ! -s conftest.err'
26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26102 (eval $ac_try) 2>&5
26103 ac_status=$?
26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26105 (exit $ac_status); }; } &&
26106 { ac_try='test -s conftest.$ac_objext'
26107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26108 (eval $ac_try) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); }; }; then
26112 ac_cv_c_bigendian=yes
26113 else
26114 echo "$as_me: failed program was:" >&5
26115 sed 's/^/| /' conftest.$ac_ext >&5
26117 ac_cv_c_bigendian=no
26119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26120 else
26121 echo "$as_me: failed program was:" >&5
26122 sed 's/^/| /' conftest.$ac_ext >&5
26124 # It does not; compile a test program.
26125 if test "$cross_compiling" = yes; then
26126 # try to guess the endianness by grepping values into an object file
26127 ac_cv_c_bigendian=unknown
26128 cat >conftest.$ac_ext <<_ACEOF
26129 /* confdefs.h. */
26130 _ACEOF
26131 cat confdefs.h >>conftest.$ac_ext
26132 cat >>conftest.$ac_ext <<_ACEOF
26133 /* end confdefs.h. */
26134 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26135 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26136 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
26137 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26138 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26139 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
26141 main ()
26143 _ascii (); _ebcdic ();
26145 return 0;
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26150 (eval $ac_compile) 2>conftest.er1
26151 ac_status=$?
26152 grep -v '^ *+' conftest.er1 >conftest.err
26153 rm -f conftest.er1
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } &&
26157 { ac_try='test -z "$ac_c_werror_flag"
26158 || test ! -s conftest.err'
26159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26160 (eval $ac_try) 2>&5
26161 ac_status=$?
26162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26163 (exit $ac_status); }; } &&
26164 { ac_try='test -s conftest.$ac_objext'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; }; then
26170 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
26171 ac_cv_c_bigendian=yes
26173 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26174 if test "$ac_cv_c_bigendian" = unknown; then
26175 ac_cv_c_bigendian=no
26176 else
26177 # finding both strings is unlikely to happen, but who knows?
26178 ac_cv_c_bigendian=unknown
26181 else
26182 echo "$as_me: failed program was:" >&5
26183 sed 's/^/| /' conftest.$ac_ext >&5
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 else
26188 cat >conftest.$ac_ext <<_ACEOF
26189 /* confdefs.h. */
26190 _ACEOF
26191 cat confdefs.h >>conftest.$ac_ext
26192 cat >>conftest.$ac_ext <<_ACEOF
26193 /* end confdefs.h. */
26195 main ()
26197 /* Are we little or big endian? From Harbison&Steele. */
26198 union
26200 long l;
26201 char c[sizeof (long)];
26202 } u;
26203 u.l = 1;
26204 exit (u.c[sizeof (long) - 1] == 1);
26206 _ACEOF
26207 rm -f conftest$ac_exeext
26208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26209 (eval $ac_link) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26215 ac_status=$?
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; }; then
26218 ac_cv_c_bigendian=no
26219 else
26220 echo "$as_me: program exited with status $ac_status" >&5
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ( exit $ac_status )
26225 ac_cv_c_bigendian=yes
26227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26232 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26233 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
26234 case $ac_cv_c_bigendian in
26235 yes)
26237 cat >>confdefs.h <<\_ACEOF
26238 #define WORDS_BIGENDIAN 1
26239 _ACEOF
26244 { { echo "$as_me:$LINENO: error: unknown endianness
26245 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
26246 echo "$as_me: error: unknown endianness
26247 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
26248 { (exit 1); exit 1; }; } ;;
26249 esac
26252 ZLIBS=
26253 SYS_ZLIBS=
26254 ZINCS=
26256 if test -z "$ZLIBSPEC"; then
26257 # Use zlib from the GCC tree.
26258 ZINCS='-I$(top_srcdir)/../zlib'
26259 ZLIBS=../zlib/libzgcj_convenience.la
26260 else
26261 # System's zlib.
26262 SYS_ZLIBS="$ZLIBSPEC"
26275 if test "$NATIVE" = yes; then
26276 NATIVE_TRUE=
26277 NATIVE_FALSE='#'
26278 else
26279 NATIVE_TRUE='#'
26280 NATIVE_FALSE=
26285 if test "$enable_shared" = yes; then
26286 ENABLE_SHARED_TRUE=
26287 ENABLE_SHARED_FALSE='#'
26288 else
26289 ENABLE_SHARED_TRUE='#'
26290 ENABLE_SHARED_FALSE=
26295 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
26296 NEEDS_DATA_START_TRUE=
26297 NEEDS_DATA_START_FALSE='#'
26298 else
26299 NEEDS_DATA_START_TRUE='#'
26300 NEEDS_DATA_START_FALSE=
26305 # Process the option "--enable-version-specific-runtime-libs"
26306 # Calculate toolexeclibdir
26307 case ${version_specific_libs} in
26308 yes)
26309 # Need the gcc compiler version to know where to install libraries
26310 # and header files if --enable-version-specific-runtime-libs option
26311 # is selected.
26312 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
26313 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
26314 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
26315 toolexeclibdir=$toolexecmainlibdir
26318 if test -n "$with_cross_host" &&
26319 test x"$with_cross_host" != x"no"; then
26320 # Install a library built with a cross compiler in tooldir, not libdir.
26321 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
26322 toolexecmainlibdir='$(toolexecdir)/lib'
26323 else
26324 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
26325 toolexecmainlibdir='$(libdir)'
26327 multi_os_directory=`$CC -print-multi-os-directory`
26328 case $multi_os_directory in
26329 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
26330 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
26331 esac
26333 esac
26338 # Determine gcj and libgcj version number.
26339 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
26340 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
26341 GCJVERSION=$gcjversion
26344 cat >>confdefs.h <<_ACEOF
26345 #define GCJVERSION "$GCJVERSION"
26346 _ACEOF
26349 # Determine where the standard .db file and GNU Classpath JNI
26350 # libraries are found.
26351 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
26352 multi_os_directory=`$CC -print-multi-os-directory`
26353 case $multi_os_directory in
26355 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
26358 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
26360 esac
26365 cat >>confdefs.h <<\_ACEOF
26366 #define JV_VERSION "1.5.0"
26367 _ACEOF
26370 cat >>confdefs.h <<\_ACEOF
26371 #define JV_API_VERSION "1.5"
26372 _ACEOF
26376 case "${with_gxx_include_dir}" in
26377 yes)
26378 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
26379 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
26380 { (exit 1); exit 1; }; }
26382 no | "")
26383 case "${enable_version_specific_runtime_libs}" in
26384 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
26386 libstdcxx_incdir='c++/$(gcc_version)'
26387 gxx_include_dir='include/$(libstdcxx_incdir)'
26388 if test -n "$with_cross_host" &&
26389 test x"$with_cross_host" != x"no"; then
26390 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
26391 else
26392 gxx_include_dir='${prefix}/'"$gxx_include_dir"
26393 fi;;
26394 esac ;;
26395 *) gxx_include_dir=${with_gxx_include_dir} ;;
26396 esac
26401 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
26402 # On that system, sys/ioctl.h will not include sys/filio.h unless
26403 # BSD_COMP is defined; just including sys/filio.h is simpler.
26404 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
26405 # for now. If you change this, you also must update natFile.cc.
26429 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
26430 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
26431 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
26432 pwd.h sys/config.h stdint.h langinfo.h locale.h \
26433 dirent.h sys/rw_lock.h magic.h ifaddrs.h
26435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26437 echo "$as_me:$LINENO: checking for $ac_header" >&5
26438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26440 echo $ECHO_N "(cached) $ECHO_C" >&6
26442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26444 else
26445 # Is the header compilable?
26446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26448 cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h. */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h. */
26454 $ac_includes_default
26455 #include <$ac_header>
26456 _ACEOF
26457 rm -f conftest.$ac_objext
26458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26459 (eval $ac_compile) 2>conftest.er1
26460 ac_status=$?
26461 grep -v '^ *+' conftest.er1 >conftest.err
26462 rm -f conftest.er1
26463 cat conftest.err >&5
26464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465 (exit $ac_status); } &&
26466 { ac_try='test -z "$ac_c_werror_flag"
26467 || test ! -s conftest.err'
26468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26470 ac_status=$?
26471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472 (exit $ac_status); }; } &&
26473 { ac_try='test -s conftest.$ac_objext'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; }; then
26479 ac_header_compiler=yes
26480 else
26481 echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26484 ac_header_compiler=no
26486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26488 echo "${ECHO_T}$ac_header_compiler" >&6
26490 # Is the header present?
26491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26493 cat >conftest.$ac_ext <<_ACEOF
26494 /* confdefs.h. */
26495 _ACEOF
26496 cat confdefs.h >>conftest.$ac_ext
26497 cat >>conftest.$ac_ext <<_ACEOF
26498 /* end confdefs.h. */
26499 #include <$ac_header>
26500 _ACEOF
26501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26503 ac_status=$?
26504 grep -v '^ *+' conftest.er1 >conftest.err
26505 rm -f conftest.er1
26506 cat conftest.err >&5
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); } >/dev/null; then
26509 if test -s conftest.err; then
26510 ac_cpp_err=$ac_c_preproc_warn_flag
26511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26512 else
26513 ac_cpp_err=
26515 else
26516 ac_cpp_err=yes
26518 if test -z "$ac_cpp_err"; then
26519 ac_header_preproc=yes
26520 else
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26524 ac_header_preproc=no
26526 rm -f conftest.err conftest.$ac_ext
26527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26528 echo "${ECHO_T}$ac_header_preproc" >&6
26530 # So? What about this header?
26531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26532 yes:no: )
26533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26537 ac_header_preproc=yes
26539 no:yes:* )
26540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26553 cat <<\_ASBOX
26554 ## ---------------------------------- ##
26555 ## Report this to the libjava lists. ##
26556 ## ---------------------------------- ##
26557 _ASBOX
26559 sed "s/^/$as_me: WARNING: /" >&2
26561 esac
26562 echo "$as_me:$LINENO: checking for $ac_header" >&5
26563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566 else
26567 eval "$as_ac_Header=\$ac_header_preproc"
26569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26574 cat >>confdefs.h <<_ACEOF
26575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26576 _ACEOF
26580 done
26583 for ac_header in inttypes.h
26585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26587 echo "$as_me:$LINENO: checking for $ac_header" >&5
26588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26590 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26594 else
26595 # Is the header compilable?
26596 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26598 cat >conftest.$ac_ext <<_ACEOF
26599 /* confdefs.h. */
26600 _ACEOF
26601 cat confdefs.h >>conftest.$ac_ext
26602 cat >>conftest.$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26604 $ac_includes_default
26605 #include <$ac_header>
26606 _ACEOF
26607 rm -f conftest.$ac_objext
26608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26609 (eval $ac_compile) 2>conftest.er1
26610 ac_status=$?
26611 grep -v '^ *+' conftest.er1 >conftest.err
26612 rm -f conftest.er1
26613 cat conftest.err >&5
26614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26615 (exit $ac_status); } &&
26616 { ac_try='test -z "$ac_c_werror_flag"
26617 || test ! -s conftest.err'
26618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26619 (eval $ac_try) 2>&5
26620 ac_status=$?
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); }; } &&
26623 { ac_try='test -s conftest.$ac_objext'
26624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625 (eval $ac_try) 2>&5
26626 ac_status=$?
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; }; then
26629 ac_header_compiler=yes
26630 else
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26634 ac_header_compiler=no
26636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26638 echo "${ECHO_T}$ac_header_compiler" >&6
26640 # Is the header present?
26641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26643 cat >conftest.$ac_ext <<_ACEOF
26644 /* confdefs.h. */
26645 _ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649 #include <$ac_header>
26650 _ACEOF
26651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26653 ac_status=$?
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } >/dev/null; then
26659 if test -s conftest.err; then
26660 ac_cpp_err=$ac_c_preproc_warn_flag
26661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26662 else
26663 ac_cpp_err=
26665 else
26666 ac_cpp_err=yes
26668 if test -z "$ac_cpp_err"; then
26669 ac_header_preproc=yes
26670 else
26671 echo "$as_me: failed program was:" >&5
26672 sed 's/^/| /' conftest.$ac_ext >&5
26674 ac_header_preproc=no
26676 rm -f conftest.err conftest.$ac_ext
26677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26678 echo "${ECHO_T}$ac_header_preproc" >&6
26680 # So? What about this header?
26681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26682 yes:no: )
26683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26687 ac_header_preproc=yes
26689 no:yes:* )
26690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26703 cat <<\_ASBOX
26704 ## ---------------------------------- ##
26705 ## Report this to the libjava lists. ##
26706 ## ---------------------------------- ##
26707 _ASBOX
26709 sed "s/^/$as_me: WARNING: /" >&2
26711 esac
26712 echo "$as_me:$LINENO: checking for $ac_header" >&5
26713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26716 else
26717 eval "$as_ac_Header=\$ac_header_preproc"
26719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26724 cat >>confdefs.h <<_ACEOF
26725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26726 _ACEOF
26729 cat >>confdefs.h <<\_ACEOF
26730 #define HAVE_INTTYPES_H 1
26731 _ACEOF
26734 cat >>confdefs.h <<\_ACEOF
26735 #define JV_HAVE_INTTYPES_H 1
26736 _ACEOF
26741 done
26744 echo "$as_me:$LINENO: checking for ssize_t" >&5
26745 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26746 if test "${ac_cv_type_ssize_t+set}" = set; then
26747 echo $ECHO_N "(cached) $ECHO_C" >&6
26748 else
26749 cat >conftest.$ac_ext <<_ACEOF
26750 /* confdefs.h. */
26751 _ACEOF
26752 cat confdefs.h >>conftest.$ac_ext
26753 cat >>conftest.$ac_ext <<_ACEOF
26754 /* end confdefs.h. */
26755 $ac_includes_default
26757 main ()
26759 if ((ssize_t *) 0)
26760 return 0;
26761 if (sizeof (ssize_t))
26762 return 0;
26764 return 0;
26766 _ACEOF
26767 rm -f conftest.$ac_objext
26768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26769 (eval $ac_compile) 2>conftest.er1
26770 ac_status=$?
26771 grep -v '^ *+' conftest.er1 >conftest.err
26772 rm -f conftest.er1
26773 cat conftest.err >&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 { ac_try='test -z "$ac_c_werror_flag"
26777 || test ! -s conftest.err'
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; } &&
26783 { ac_try='test -s conftest.$ac_objext'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; }; then
26789 ac_cv_type_ssize_t=yes
26790 else
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.$ac_ext >&5
26794 ac_cv_type_ssize_t=no
26796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26798 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26799 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26800 if test $ac_cv_type_ssize_t = yes; then
26802 else
26804 cat >>confdefs.h <<_ACEOF
26805 #define ssize_t int
26806 _ACEOF
26810 echo "$as_me:$LINENO: checking for magic_t" >&5
26811 echo $ECHO_N "checking for magic_t... $ECHO_C" >&6
26812 if test "${ac_cv_type_magic_t+set}" = set; then
26813 echo $ECHO_N "(cached) $ECHO_C" >&6
26814 else
26815 cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h. */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26822 #ifdef HAVE_MAGIC_H
26823 #include <magic.h>
26824 #endif
26827 main ()
26829 if ((magic_t *) 0)
26830 return 0;
26831 if (sizeof (magic_t))
26832 return 0;
26834 return 0;
26836 _ACEOF
26837 rm -f conftest.$ac_objext
26838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26839 (eval $ac_compile) 2>conftest.er1
26840 ac_status=$?
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); } &&
26846 { ac_try='test -z "$ac_c_werror_flag"
26847 || test ! -s conftest.err'
26848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849 (eval $ac_try) 2>&5
26850 ac_status=$?
26851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852 (exit $ac_status); }; } &&
26853 { ac_try='test -s conftest.$ac_objext'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; }; then
26859 ac_cv_type_magic_t=yes
26860 else
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26864 ac_cv_type_magic_t=no
26866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26868 echo "$as_me:$LINENO: result: $ac_cv_type_magic_t" >&5
26869 echo "${ECHO_T}$ac_cv_type_magic_t" >&6
26870 if test $ac_cv_type_magic_t = yes; then
26873 cat >>confdefs.h <<\_ACEOF
26874 #define HAVE_MAGIC_T 1
26875 _ACEOF
26880 echo "$as_me:$LINENO: checking for in_addr_t" >&5
26881 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
26882 cat >conftest.$ac_ext <<_ACEOF
26883 /* confdefs.h. */
26884 _ACEOF
26885 cat confdefs.h >>conftest.$ac_ext
26886 cat >>conftest.$ac_ext <<_ACEOF
26887 /* end confdefs.h. */
26888 #include <sys/types.h>
26889 #if STDC_HEADERS
26890 #include <stdlib.h>
26891 #include <stddef.h>
26892 #endif
26893 #if HAVE_NETINET_IN_H
26894 #include <netinet/in.h>
26895 #endif
26897 main ()
26899 in_addr_t foo;
26901 return 0;
26903 _ACEOF
26904 rm -f conftest.$ac_objext
26905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26906 (eval $ac_compile) 2>conftest.er1
26907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
26913 { ac_try='test -z "$ac_c_werror_flag"
26914 || test ! -s conftest.err'
26915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26916 (eval $ac_try) 2>&5
26917 ac_status=$?
26918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919 (exit $ac_status); }; } &&
26920 { ac_try='test -s conftest.$ac_objext'
26921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26922 (eval $ac_try) 2>&5
26923 ac_status=$?
26924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26925 (exit $ac_status); }; }; then
26927 cat >>confdefs.h <<\_ACEOF
26928 #define HAVE_IN_ADDR_T 1
26929 _ACEOF
26931 echo "$as_me:$LINENO: result: yes" >&5
26932 echo "${ECHO_T}yes" >&6
26933 else
26934 echo "$as_me: failed program was:" >&5
26935 sed 's/^/| /' conftest.$ac_ext >&5
26937 echo "$as_me:$LINENO: result: no" >&5
26938 echo "${ECHO_T}no" >&6
26940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26942 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
26943 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
26944 cat >conftest.$ac_ext <<_ACEOF
26945 /* confdefs.h. */
26946 _ACEOF
26947 cat confdefs.h >>conftest.$ac_ext
26948 cat >>conftest.$ac_ext <<_ACEOF
26949 /* end confdefs.h. */
26950 #include <netinet/in.h>
26952 main ()
26954 struct ip_mreq mreq;
26956 return 0;
26958 _ACEOF
26959 rm -f conftest.$ac_objext
26960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26961 (eval $ac_compile) 2>conftest.er1
26962 ac_status=$?
26963 grep -v '^ *+' conftest.er1 >conftest.err
26964 rm -f conftest.er1
26965 cat conftest.err >&5
26966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26967 (exit $ac_status); } &&
26968 { ac_try='test -z "$ac_c_werror_flag"
26969 || test ! -s conftest.err'
26970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 (eval $ac_try) 2>&5
26972 ac_status=$?
26973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 (exit $ac_status); }; } &&
26975 { ac_try='test -s conftest.$ac_objext'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; }; then
26982 cat >>confdefs.h <<\_ACEOF
26983 #define HAVE_STRUCT_IP_MREQ 1
26984 _ACEOF
26986 echo "$as_me:$LINENO: result: yes" >&5
26987 echo "${ECHO_T}yes" >&6
26988 else
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26992 echo "$as_me:$LINENO: result: no" >&5
26993 echo "${ECHO_T}no" >&6
26995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26997 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
26998 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
26999 cat >conftest.$ac_ext <<_ACEOF
27000 /* confdefs.h. */
27001 _ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27005 #include <netinet/in.h>
27007 main ()
27009 struct ipv6_mreq mreq6;
27011 return 0;
27013 _ACEOF
27014 rm -f conftest.$ac_objext
27015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27016 (eval $ac_compile) 2>conftest.er1
27017 ac_status=$?
27018 grep -v '^ *+' conftest.er1 >conftest.err
27019 rm -f conftest.er1
27020 cat conftest.err >&5
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); } &&
27023 { ac_try='test -z "$ac_c_werror_flag"
27024 || test ! -s conftest.err'
27025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27026 (eval $ac_try) 2>&5
27027 ac_status=$?
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
27031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27032 (eval $ac_try) 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; }; then
27037 cat >>confdefs.h <<\_ACEOF
27038 #define HAVE_STRUCT_IPV6_MREQ 1
27039 _ACEOF
27041 echo "$as_me:$LINENO: result: yes" >&5
27042 echo "${ECHO_T}yes" >&6
27043 else
27044 echo "$as_me: failed program was:" >&5
27045 sed 's/^/| /' conftest.$ac_ext >&5
27047 echo "$as_me:$LINENO: result: no" >&5
27048 echo "${ECHO_T}no" >&6
27050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27052 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
27053 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
27054 cat >conftest.$ac_ext <<_ACEOF
27055 /* confdefs.h. */
27056 _ACEOF
27057 cat confdefs.h >>conftest.$ac_ext
27058 cat >>conftest.$ac_ext <<_ACEOF
27059 /* end confdefs.h. */
27060 #include <netinet/in.h>
27062 main ()
27064 struct sockaddr_in6 addr6;
27066 return 0;
27068 _ACEOF
27069 rm -f conftest.$ac_objext
27070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27071 (eval $ac_compile) 2>conftest.er1
27072 ac_status=$?
27073 grep -v '^ *+' conftest.er1 >conftest.err
27074 rm -f conftest.er1
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest.$ac_objext'
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27092 cat >>confdefs.h <<\_ACEOF
27093 #define HAVE_INET6 1
27094 _ACEOF
27096 echo "$as_me:$LINENO: result: yes" >&5
27097 echo "${ECHO_T}yes" >&6
27098 else
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27102 echo "$as_me:$LINENO: result: no" >&5
27103 echo "${ECHO_T}no" >&6
27105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27107 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
27108 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
27109 cat >conftest.$ac_ext <<_ACEOF
27110 /* confdefs.h. */
27111 _ACEOF
27112 cat confdefs.h >>conftest.$ac_ext
27113 cat >>conftest.$ac_ext <<_ACEOF
27114 /* end confdefs.h. */
27115 #define _POSIX_PII_SOCKET
27116 #include <sys/types.h>
27117 #include <sys/socket.h>
27119 main ()
27121 socklen_t x = 5;
27123 return 0;
27125 _ACEOF
27126 rm -f conftest.$ac_objext
27127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27128 (eval $ac_compile) 2>conftest.er1
27129 ac_status=$?
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
27135 { ac_try='test -z "$ac_c_werror_flag"
27136 || test ! -s conftest.err'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; } &&
27142 { ac_try='test -s conftest.$ac_objext'
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27149 cat >>confdefs.h <<\_ACEOF
27150 #define HAVE_SOCKLEN_T 1
27151 _ACEOF
27153 echo "$as_me:$LINENO: result: yes" >&5
27154 echo "${ECHO_T}yes" >&6
27155 else
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27159 echo "$as_me:$LINENO: result: no" >&5
27160 echo "${ECHO_T}no" >&6
27162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27164 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
27165 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
27166 cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h. */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27172 #include <time.h>
27174 main ()
27176 struct tm tim; tim.tm_gmtoff = 0;
27178 return 0;
27180 _ACEOF
27181 rm -f conftest.$ac_objext
27182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27183 (eval $ac_compile) 2>conftest.er1
27184 ac_status=$?
27185 grep -v '^ *+' conftest.er1 >conftest.err
27186 rm -f conftest.er1
27187 cat conftest.err >&5
27188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189 (exit $ac_status); } &&
27190 { ac_try='test -z "$ac_c_werror_flag"
27191 || test ! -s conftest.err'
27192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27193 (eval $ac_try) 2>&5
27194 ac_status=$?
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); }; } &&
27197 { ac_try='test -s conftest.$ac_objext'
27198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27199 (eval $ac_try) 2>&5
27200 ac_status=$?
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); }; }; then
27204 cat >>confdefs.h <<\_ACEOF
27205 #define STRUCT_TM_HAS_GMTOFF 1
27206 _ACEOF
27208 echo "$as_me:$LINENO: result: yes" >&5
27209 echo "${ECHO_T}yes" >&6
27210 else
27211 echo "$as_me: failed program was:" >&5
27212 sed 's/^/| /' conftest.$ac_ext >&5
27214 echo "$as_me:$LINENO: result: no" >&5
27215 echo "${ECHO_T}no" >&6
27216 echo "$as_me:$LINENO: checking for global timezone variable" >&5
27217 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
27218 cat >conftest.$ac_ext <<_ACEOF
27219 /* confdefs.h. */
27220 _ACEOF
27221 cat confdefs.h >>conftest.$ac_ext
27222 cat >>conftest.$ac_ext <<_ACEOF
27223 /* end confdefs.h. */
27224 #include <time.h>
27226 main ()
27228 void i(){long z2 = 2*timezone;}
27230 return 0;
27232 _ACEOF
27233 rm -f conftest.$ac_objext
27234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27235 (eval $ac_compile) 2>conftest.er1
27236 ac_status=$?
27237 grep -v '^ *+' conftest.er1 >conftest.err
27238 rm -f conftest.er1
27239 cat conftest.err >&5
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); } &&
27242 { ac_try='test -z "$ac_c_werror_flag"
27243 || test ! -s conftest.err'
27244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245 (eval $ac_try) 2>&5
27246 ac_status=$?
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); }; } &&
27249 { ac_try='test -s conftest.$ac_objext'
27250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27251 (eval $ac_try) 2>&5
27252 ac_status=$?
27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254 (exit $ac_status); }; }; then
27256 cat >>confdefs.h <<\_ACEOF
27257 #define HAVE_TIMEZONE 1
27258 _ACEOF
27260 echo "$as_me:$LINENO: result: yes" >&5
27261 echo "${ECHO_T}yes" >&6
27262 else
27263 echo "$as_me: failed program was:" >&5
27264 sed 's/^/| /' conftest.$ac_ext >&5
27266 echo "$as_me:$LINENO: result: no" >&5
27267 echo "${ECHO_T}no" >&6
27268 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
27269 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
27270 cat >conftest.$ac_ext <<_ACEOF
27271 /* confdefs.h. */
27272 _ACEOF
27273 cat confdefs.h >>conftest.$ac_ext
27274 cat >>conftest.$ac_ext <<_ACEOF
27275 /* end confdefs.h. */
27276 #include <time.h>
27278 main ()
27280 long z2 = _timezone;
27282 return 0;
27284 _ACEOF
27285 rm -f conftest.$ac_objext
27286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27287 (eval $ac_compile) 2>conftest.er1
27288 ac_status=$?
27289 grep -v '^ *+' conftest.er1 >conftest.err
27290 rm -f conftest.er1
27291 cat conftest.err >&5
27292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293 (exit $ac_status); } &&
27294 { ac_try='test -z "$ac_c_werror_flag"
27295 || test ! -s conftest.err'
27296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27297 (eval $ac_try) 2>&5
27298 ac_status=$?
27299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); }; } &&
27301 { ac_try='test -s conftest.$ac_objext'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; }; then
27308 cat >>confdefs.h <<\_ACEOF
27309 #define HAVE_UNDERSCORE_TIMEZONE 1
27310 _ACEOF
27312 echo "$as_me:$LINENO: result: yes" >&5
27313 echo "${ECHO_T}yes" >&6
27314 else
27315 echo "$as_me: failed program was:" >&5
27316 sed 's/^/| /' conftest.$ac_ext >&5
27318 echo "$as_me:$LINENO: result: no" >&5
27319 echo "${ECHO_T}no" >&6
27321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27327 for ac_prog in perl
27329 # Extract the first word of "$ac_prog", so it can be a program name with args.
27330 set dummy $ac_prog; ac_word=$2
27331 echo "$as_me:$LINENO: checking for $ac_word" >&5
27332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27333 if test "${ac_cv_prog_PERL+set}" = set; then
27334 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 else
27336 if test -n "$PERL"; then
27337 ac_cv_prog_PERL="$PERL" # Let the user override the test.
27338 else
27339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27340 for as_dir in $PATH
27342 IFS=$as_save_IFS
27343 test -z "$as_dir" && as_dir=.
27344 for ac_exec_ext in '' $ac_executable_extensions; do
27345 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27346 ac_cv_prog_PERL="$ac_prog"
27347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27348 break 2
27350 done
27351 done
27355 PERL=$ac_cv_prog_PERL
27356 if test -n "$PERL"; then
27357 echo "$as_me:$LINENO: result: $PERL" >&5
27358 echo "${ECHO_T}$PERL" >&6
27359 else
27360 echo "$as_me:$LINENO: result: no" >&5
27361 echo "${ECHO_T}no" >&6
27364 test -n "$PERL" && break
27365 done
27366 test -n "$PERL" || PERL="false"
27369 SYSDEP_SOURCES=
27370 SIGNAL_HANDLER_AUX=
27372 case "${host}" in
27373 i?86-*-linux*)
27374 SIGNAL_HANDLER=include/i386-signal.h
27376 sparc*-sun-solaris*)
27377 SIGNAL_HANDLER=include/sparc-signal.h
27379 # ia64-*)
27380 # SYSDEP_SOURCES=sysdep/ia64.c
27381 # test -d sysdep || mkdir sysdep
27382 # ;;
27383 hppa*-*-linux*)
27384 SIGNAL_HANDLER=include/pa-signal.h
27386 hppa*-hp-hpux*)
27387 SIGNAL_HANDLER=include/hppa-signal.h
27389 ia64-*-linux*)
27390 SIGNAL_HANDLER=include/dwarf2-signal.h
27392 powerpc*-*-linux*)
27393 SIGNAL_HANDLER=include/powerpc-signal.h
27395 alpha*-*-linux*)
27396 SIGNAL_HANDLER=include/dwarf2-signal.h
27398 s390*-*-linux*)
27399 SIGNAL_HANDLER=include/s390-signal.h
27401 x86_64*-*-linux*)
27402 SIGNAL_HANDLER=include/x86_64-signal.h
27403 SIGNAL_HANDLER_AUX=include/i386-signal.h
27405 sparc*-*-linux*)
27406 SIGNAL_HANDLER=include/dwarf2-signal.h
27408 sh*-*-linux*)
27409 SIGNAL_HANDLER=include/sh-signal.h
27411 *mingw*)
27412 SIGNAL_HANDLER=include/win32-signal.h
27414 mips*-*-linux*)
27415 SIGNAL_HANDLER=include/mips-signal.h
27417 m68*-*-linux*)
27418 SIGNAL_HANDLER=include/dwarf2-signal.h
27420 powerpc*-*-darwin* | i?86-*-darwin9* | x86_64-*-darwin9*)
27421 SIGNAL_HANDLER=include/darwin-signal.h
27424 SIGNAL_HANDLER=include/default-signal.h
27426 esac
27428 # If we're using sjlj exceptions, forget what we just learned.
27429 if test "$enable_sjlj_exceptions" = yes; then
27430 SIGNAL_HANDLER=include/default-signal.h
27431 SIGNAL_HANDLER_AUX=
27436 if test -z "$SIGNAL_HANDLER_AUX"; then
27437 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
27440 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
27443 if test "${multilib}" = "yes"; then
27444 multilib_arg="--enable-multilib"
27445 else
27446 multilib_arg=
27449 # See if we support thread-local storage.
27451 # Check whether --enable-tls or --disable-tls was given.
27452 if test "${enable_tls+set}" = set; then
27453 enableval="$enable_tls"
27455 case "$enableval" in
27456 yes|no) ;;
27457 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
27458 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
27459 { (exit 1); exit 1; }; } ;;
27460 esac
27462 else
27463 enable_tls=yes
27466 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
27467 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6
27468 if test "${gcc_cv_have_tls+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27470 else
27472 if test "$cross_compiling" = yes; then
27473 if test x$gcc_no_link = xyes; then
27474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27476 { (exit 1); exit 1; }; }
27478 cat >conftest.$ac_ext <<_ACEOF
27479 __thread int a; int b; int main() { return a = b; }
27480 _ACEOF
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27483 (eval $ac_link) 2>conftest.er1
27484 ac_status=$?
27485 grep -v '^ *+' conftest.er1 >conftest.err
27486 rm -f conftest.er1
27487 cat conftest.err >&5
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); } &&
27490 { ac_try='test -z "$ac_c_werror_flag"
27491 || test ! -s conftest.err'
27492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493 (eval $ac_try) 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; } &&
27497 { ac_try='test -s conftest$ac_exeext'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; }; then
27503 gcc_cv_have_tls=yes
27504 else
27505 echo "$as_me: failed program was:" >&5
27506 sed 's/^/| /' conftest.$ac_ext >&5
27508 gcc_cv_have_tls=no
27510 rm -f conftest.err conftest.$ac_objext \
27511 conftest$ac_exeext conftest.$ac_ext
27514 else
27515 cat >conftest.$ac_ext <<_ACEOF
27516 __thread int a; int b; int main() { return a = b; }
27517 _ACEOF
27518 rm -f conftest$ac_exeext
27519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27520 (eval $ac_link) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
27529 chktls_save_LDFLAGS="$LDFLAGS"
27530 LDFLAGS="-static $LDFLAGS"
27531 if test x$gcc_no_link = xyes; then
27532 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27533 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27534 { (exit 1); exit 1; }; }
27536 cat >conftest.$ac_ext <<_ACEOF
27537 int main() { return 0; }
27538 _ACEOF
27539 rm -f conftest.$ac_objext conftest$ac_exeext
27540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27541 (eval $ac_link) 2>conftest.er1
27542 ac_status=$?
27543 grep -v '^ *+' conftest.er1 >conftest.err
27544 rm -f conftest.er1
27545 cat conftest.err >&5
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); } &&
27548 { ac_try='test -z "$ac_c_werror_flag"
27549 || test ! -s conftest.err'
27550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27551 (eval $ac_try) 2>&5
27552 ac_status=$?
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); }; } &&
27555 { ac_try='test -s conftest$ac_exeext'
27556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27557 (eval $ac_try) 2>&5
27558 ac_status=$?
27559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27560 (exit $ac_status); }; }; then
27561 if test "$cross_compiling" = yes; then
27562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27565 See \`config.log' for more details." >&5
27566 echo "$as_me: error: cannot run test program while cross compiling
27567 See \`config.log' for more details." >&2;}
27568 { (exit 1); exit 1; }; }; }
27569 else
27570 cat >conftest.$ac_ext <<_ACEOF
27571 __thread int a; int b; int main() { return a = b; }
27572 _ACEOF
27573 rm -f conftest$ac_exeext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27575 (eval $ac_link) 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
27584 gcc_cv_have_tls=yes
27585 else
27586 echo "$as_me: program exited with status $ac_status" >&5
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 ( exit $ac_status )
27591 gcc_cv_have_tls=no
27593 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27595 else
27596 echo "$as_me: failed program was:" >&5
27597 sed 's/^/| /' conftest.$ac_ext >&5
27599 gcc_cv_have_tls=yes
27601 rm -f conftest.err conftest.$ac_objext \
27602 conftest$ac_exeext conftest.$ac_ext
27603 LDFLAGS="$chktls_save_LDFLAGS"
27604 if test $gcc_cv_have_tls = yes; then
27605 chktls_save_CFLAGS="$CFLAGS"
27606 thread_CFLAGS=failed
27607 for flag in '' '-pthread' '-lpthread'; do
27608 CFLAGS="$flag $chktls_save_CFLAGS"
27609 if test x$gcc_no_link = xyes; then
27610 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27611 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27612 { (exit 1); exit 1; }; }
27614 cat >conftest.$ac_ext <<_ACEOF
27615 /* confdefs.h. */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h. */
27620 #include <pthread.h>
27621 void *g(void *d) { return NULL; }
27623 main ()
27625 pthread_t t; pthread_create(&t,NULL,g,NULL);
27627 return 0;
27629 _ACEOF
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27632 (eval $ac_link) 2>conftest.er1
27633 ac_status=$?
27634 grep -v '^ *+' conftest.er1 >conftest.err
27635 rm -f conftest.er1
27636 cat conftest.err >&5
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); } &&
27639 { ac_try='test -z "$ac_c_werror_flag"
27640 || test ! -s conftest.err'
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest$ac_exeext'
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; }; then
27652 thread_CFLAGS="$flag"
27653 else
27654 echo "$as_me: failed program was:" >&5
27655 sed 's/^/| /' conftest.$ac_ext >&5
27658 rm -f conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
27660 if test "X$thread_CFLAGS" != Xfailed; then
27661 break
27663 done
27664 CFLAGS="$chktls_save_CFLAGS"
27665 if test "X$thread_CFLAGS" != Xfailed; then
27666 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
27667 if test "$cross_compiling" = yes; then
27668 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27669 echo "$as_me: error: in \`$ac_pwd':" >&2;}
27670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27671 See \`config.log' for more details." >&5
27672 echo "$as_me: error: cannot run test program while cross compiling
27673 See \`config.log' for more details." >&2;}
27674 { (exit 1); exit 1; }; }; }
27675 else
27676 cat >conftest.$ac_ext <<_ACEOF
27677 /* confdefs.h. */
27678 _ACEOF
27679 cat confdefs.h >>conftest.$ac_ext
27680 cat >>conftest.$ac_ext <<_ACEOF
27681 /* end confdefs.h. */
27682 #include <pthread.h>
27683 __thread int a;
27684 static int *a_in_other_thread;
27685 static void *
27686 thread_func (void *arg)
27688 a_in_other_thread = &a;
27689 return (void *)0;
27692 main ()
27694 pthread_t thread;
27695 void *thread_retval;
27696 int *a_in_main_thread;
27697 if (pthread_create (&thread, (pthread_attr_t *)0,
27698 thread_func, (void *)0))
27699 return 0;
27700 a_in_main_thread = &a;
27701 if (pthread_join (thread, &thread_retval))
27702 return 0;
27703 return (a_in_other_thread == a_in_main_thread);
27705 return 0;
27707 _ACEOF
27708 rm -f conftest$ac_exeext
27709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27710 (eval $ac_link) 2>&5
27711 ac_status=$?
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
27719 gcc_cv_have_tls=yes
27720 else
27721 echo "$as_me: program exited with status $ac_status" >&5
27722 echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27725 ( exit $ac_status )
27726 gcc_cv_have_tls=no
27728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27730 CFLAGS="$chktls_save_CFLAGS"
27733 else
27734 echo "$as_me: program exited with status $ac_status" >&5
27735 echo "$as_me: failed program was:" >&5
27736 sed 's/^/| /' conftest.$ac_ext >&5
27738 ( exit $ac_status )
27739 gcc_cv_have_tls=no
27741 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27744 echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5
27745 echo "${ECHO_T}$gcc_cv_have_tls" >&6
27746 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
27748 cat >>confdefs.h <<\_ACEOF
27749 #define HAVE_TLS 1
27750 _ACEOF
27754 # For _Unwind_GetIPInfo.
27758 ac_ext=cc
27759 ac_cpp='$CXXCPP $CPPFLAGS'
27760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27764 ac_save_CXXFLAGS="$CXXFLAGS"
27765 CXXFLAGS="$CXXFLAGS -fno-exceptions"
27766 echo "$as_me:$LINENO: checking for _Unwind_GetIPInfo" >&5
27767 echo $ECHO_N "checking for _Unwind_GetIPInfo... $ECHO_C" >&6
27768 if test "${gcc_cv_getipinfo+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27770 else
27772 if test x$gcc_no_link = xyes; then
27773 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27774 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27775 { (exit 1); exit 1; }; }
27777 cat >conftest.$ac_ext <<_ACEOF
27778 /* confdefs.h. */
27779 _ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 extern "C" { extern void _Unwind_GetIPInfo(); }
27785 main ()
27787 _Unwind_GetIPInfo();
27789 return 0;
27791 _ACEOF
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27794 (eval $ac_link) 2>conftest.er1
27795 ac_status=$?
27796 grep -v '^ *+' conftest.er1 >conftest.err
27797 rm -f conftest.er1
27798 cat conftest.err >&5
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); } &&
27801 { ac_try='test -z "$ac_cxx_werror_flag"
27802 || test ! -s conftest.err'
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; } &&
27808 { ac_try='test -s conftest$ac_exeext'
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814 gcc_cv_getipinfo=yes
27815 else
27816 echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27819 gcc_cv_getipinfo=no
27821 rm -f conftest.err conftest.$ac_objext \
27822 conftest$ac_exeext conftest.$ac_ext
27826 if test $gcc_cv_getipinfo = yes; then
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_GETIPINFO 1
27830 _ACEOF
27833 echo "$as_me:$LINENO: result: $gcc_cv_getipinfo" >&5
27834 echo "${ECHO_T}$gcc_cv_getipinfo" >&6
27835 CXXFLAGS="$ac_save_CXXFLAGS"
27836 ac_ext=c
27837 ac_cpp='$CPP $CPPFLAGS'
27838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27844 # See if linker supports anonymous version scripts.
27845 echo "$as_me:$LINENO: checking whether ld supports anonymous version scripts" >&5
27846 echo $ECHO_N "checking whether ld supports anonymous version scripts... $ECHO_C" >&6
27847 if test "${libjava_cv_anon_version_script+set}" = set; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 else
27850 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
27851 libjava_cv_anon_version_script=no
27852 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
27853 echo '{ global: globalsymb*; local: *; };' > conftest.map
27854 if test x$gcc_no_link = xyes; then
27855 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
27856 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
27857 { (exit 1); exit 1; }; }
27859 cat >conftest.$ac_ext <<_ACEOF
27860 /* confdefs.h. */
27861 _ACEOF
27862 cat confdefs.h >>conftest.$ac_ext
27863 cat >>conftest.$ac_ext <<_ACEOF
27864 /* end confdefs.h. */
27865 void globalsymbol (void) {} void localsymbol (void) {}
27867 main ()
27871 return 0;
27873 _ACEOF
27874 rm -f conftest.$ac_objext conftest$ac_exeext
27875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27876 (eval $ac_link) 2>conftest.er1
27877 ac_status=$?
27878 grep -v '^ *+' conftest.er1 >conftest.err
27879 rm -f conftest.er1
27880 cat conftest.err >&5
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } &&
27883 { ac_try='test -z "$ac_c_werror_flag"
27884 || test ! -s conftest.err'
27885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27886 (eval $ac_try) 2>&5
27887 ac_status=$?
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); }; } &&
27890 { ac_try='test -s conftest$ac_exeext'
27891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27892 (eval $ac_try) 2>&5
27893 ac_status=$?
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895 (exit $ac_status); }; }; then
27896 libjava_cv_anon_version_script=yes
27897 else
27898 echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27902 rm -f conftest.err conftest.$ac_objext \
27903 conftest$ac_exeext conftest.$ac_ext
27904 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
27907 echo "$as_me:$LINENO: result: $libjava_cv_anon_version_script" >&5
27908 echo "${ECHO_T}$libjava_cv_anon_version_script" >&6
27911 if test "$libjava_cv_anon_version_script" = yes; then
27912 ANONVERSCRIPT_TRUE=
27913 ANONVERSCRIPT_FALSE='#'
27914 else
27915 ANONVERSCRIPT_TRUE='#'
27916 ANONVERSCRIPT_FALSE=
27920 # Check if linker supports static linking on a per library basis
27921 LD_START_STATIC_SPEC=
27922 LD_FINISH_STATIC_SPEC=
27923 if $LD --help 2>&1 | grep -q -e -call_shared ; then
27924 if $LD --help 2>&1 | grep -q -e -non_shared ; then
27925 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
27926 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
27932 here=`${PWDCMD-pwd}`
27935 # We get this from the environment.
27939 # Check whether --with-python-dir or --without-python-dir was given.
27940 if test "${with_python_dir+set}" = set; then
27941 withval="$with_python_dir"
27942 with_python_dir=$withval
27943 else
27944 with_python_dir=""
27947 if test "x${with_python_dir}" = "x"
27948 then
27949 # Needed for installing Python modules during make install.
27950 python_mod_dir="\${prefix}/share/python"
27951 # Needed for substituting into aot-compile*
27952 python_mod_dir_expanded="${prefix}/share/python"
27953 else
27954 python_mod_dir="\${prefix}${with_python_dir}"
27955 python_mod_dir_expanded="${prefix}${with_python_dir}"
27957 echo "$as_me:$LINENO: result: Python modules dir: ${python_mod_dir_expanded}" >&5
27958 echo "${ECHO_T}Python modules dir: ${python_mod_dir_expanded}" >&6;
27962 # needed for aot-compile-rpm
27963 MAKE=`which make`
27966 # Check whether --enable-aot-compile-rpm or --disable-aot-compile-rpm was given.
27967 if test "${enable_aot_compile_rpm+set}" = set; then
27968 enableval="$enable_aot_compile_rpm"
27969 case "${enableval}" in
27970 yes) AOT_RPM_ENABLED=yes ;;
27971 no) AOT_RPM_ENABLED=no ;;
27972 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable aot-compile-rpm" >&5
27973 echo "$as_me: error: Unknown argument to enable/disable aot-compile-rpm" >&2;}
27974 { (exit 1); exit 1; }; } ;;
27975 esac
27976 else
27977 AOT_RPM_ENABLED=no
27982 if test "x${AOT_RPM_ENABLED}" == xyes; then
27983 INSTALL_AOT_RPM_TRUE=
27984 INSTALL_AOT_RPM_FALSE='#'
27985 else
27986 INSTALL_AOT_RPM_TRUE='#'
27987 INSTALL_AOT_RPM_FALSE=
27991 # Check whether --enable-java-home or --disable-java-home was given.
27992 if test "${enable_java_home+set}" = set; then
27993 enableval="$enable_java_home"
27994 case "${enableval}" in
27995 yes) JAVA_HOME_ENABLED=yes ;;
27996 no) JAVA_HOME_ENABLED=no ;;
27997 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable java-home" >&5
27998 echo "$as_me: error: Unknown argument to enable/disable java-home" >&2;}
27999 { (exit 1); exit 1; }; } ;;
28000 esac
28001 else
28002 JAVA_HOME_ENABLED=no
28007 if test "x${JAVA_HOME_ENABLED}" == xyes; then
28008 CREATE_JAVA_HOME_TRUE=
28009 CREATE_JAVA_HOME_FALSE='#'
28010 else
28011 CREATE_JAVA_HOME_TRUE='#'
28012 CREATE_JAVA_HOME_FALSE=
28016 # Only do these checks if java-home above is enabled.
28017 if test "x${JAVA_HOME_ENABLED}" == xyes
28018 then
28021 # Check whether --with-gcc-suffix or --without-gcc-suffix was given.
28022 if test "${with_gcc_suffix+set}" = set; then
28023 withval="$with_gcc_suffix"
28024 gcc_suffix=$withval
28025 else
28026 gcc_suffix=""
28028 echo "$as_me:$LINENO: result: GCC suffix: ${gcc_suffix}" >&5
28029 echo "${ECHO_T}GCC suffix: ${gcc_suffix}" >&6
28033 # Check whether --with-arch-directory or --without-arch-directory was given.
28034 if test "${with_arch_directory+set}" = set; then
28035 withval="$with_arch_directory"
28036 host_cpu=$withval
28037 else
28038 host_cpu=""
28042 # Check whether --with-os-directory or --without-os-directory was given.
28043 if test "${with_os_directory+set}" = set; then
28044 withval="$with_os_directory"
28045 host_os=$withval
28046 else
28047 host_os=""
28051 # Check whether --with-origin-name or --without-origin-name was given.
28052 if test "${with_origin_name+set}" = set; then
28053 withval="$with_origin_name"
28054 origin_name=$withval
28055 else
28056 origin_name=gcj${gcc_suffix}
28058 echo "$as_me:$LINENO: result: JPackage origin name: ${origin_name}" >&5
28059 echo "${ECHO_T}JPackage origin name: ${origin_name}" >&6
28062 # Check whether --with-arch-suffix or --without-arch-suffix was given.
28063 if test "${with_arch_suffix+set}" = set; then
28064 withval="$with_arch_suffix"
28065 arch_suffix=$withval
28066 else
28067 arch_suffix=""
28069 echo "$as_me:$LINENO: result: arch suffix: ${arch_suffix}" >&5
28070 echo "${ECHO_T}arch suffix: ${arch_suffix}" >&6
28073 # Check whether --with-jvm-root-dir or --without-jvm-root-dir was given.
28074 if test "${with_jvm_root_dir+set}" = set; then
28075 withval="$with_jvm_root_dir"
28076 jvm_root_dir=$withval
28077 else
28078 jvm_root_dir="\${prefix}/lib/jvm"
28080 echo "$as_me:$LINENO: result: JVM root installation directory: ${jvm_root_dir}" >&5
28081 echo "${ECHO_T}JVM root installation directory: ${jvm_root_dir}" >&6
28084 # Check whether --with-jvm-jar-dir or --without-jvm-jar-dir was given.
28085 if test "${with_jvm_jar_dir+set}" = set; then
28086 withval="$with_jvm_jar_dir"
28087 jvm_jar_dir=$withval
28088 else
28089 jvm_jar_dir=\${prefix}/lib/jvm-exports
28091 echo "$as_me:$LINENO: result: JAR root installation directory: ${jvm_jar_dir}" >&5
28092 echo "${ECHO_T}JAR root installation directory: ${jvm_jar_dir}" >&6
28094 JAVA_VERSION=1.5.0
28095 BUILD_VERSION=0
28098 echo "$as_me:$LINENO: result: Java version: ${JAVA_VERSION}" >&5
28099 echo "${ECHO_T}Java version: ${JAVA_VERSION}" >&6
28101 jre_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}/jre
28102 sdk_dir=java-${JAVA_VERSION}-${origin_name}-${JAVA_VERSION}.${BUILD_VERSION}${arch_suffix}
28103 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
28104 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
28106 JVM_ROOT_DIR=${jvm_root_dir}
28108 echo "$as_me:$LINENO: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
28109 echo "${ECHO_T}JVM ROOT directory: ${JVM_ROOT_DIR}" >&6
28111 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
28113 echo "$as_me:$LINENO: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
28114 echo "${ECHO_T}JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6
28116 JVM_JAR_DIR=${jvm_jar_dir}/${sdk_dir}
28118 echo "$as_me:$LINENO: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
28119 echo "${ECHO_T}JVM JAR directory: ${JVM_JAR_DIR}" >&6
28121 JRE_DIR=${jre_dir}
28124 SDK_DIR=${sdk_dir}
28127 JRE_LNK=${jre_lnk}
28130 SDK_LNK=${sdk_lnk}
28133 SDK_BIN_DIR=${jvm_root_dir}/${sdk_dir}/bin
28135 echo "$as_me:$LINENO: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
28136 echo "${ECHO_T}SDK tools directory: ${SDK_BIN_DIR}" >&6
28138 SDK_LIB_DIR=${jvm_root_dir}/${sdk_dir}/lib
28140 echo "$as_me:$LINENO: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
28141 echo "${ECHO_T}SDK jar directory: ${SDK_LIB_DIR}" >&6
28143 SDK_INCLUDE_DIR=${jvm_root_dir}/${sdk_dir}/include
28145 echo "$as_me:$LINENO: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
28146 echo "${ECHO_T}SDK include directory: ${SDK_INCLUDE_DIR}" >&6
28148 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
28150 echo "$as_me:$LINENO: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
28151 echo "${ECHO_T}JRE tools directory: ${JRE_BIN_DIR}" >&6
28153 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
28155 echo "$as_me:$LINENO: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
28156 echo "${ECHO_T}JRE lib directory: ${JRE_LIB_DIR}" >&6
28158 # Find gcj prefix using gcj found in PATH.
28159 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
28161 # Where do the gcj binaries live?
28162 # For jhbuild based builds, they all live in a sibling of bin called
28163 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
28164 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
28166 echo "$as_me:$LINENO: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
28167 echo "${ECHO_T}GCJ tools directory: ${GCJ_BIN_DIR}" >&6
28169 echo host is ${host}
28170 if test "x${host_cpu}" = "x"
28171 then
28172 case ${host} in
28173 *-mingw* | *-cygwin*)
28174 host_cpu=x86;;
28175 i486-* | i586-* | i686-*)
28176 host_cpu=i386;;
28178 host_cpu=${host_cpu};;
28179 esac
28181 echo "$as_me:$LINENO: result: arch directory: ${host_cpu}" >&5
28182 echo "${ECHO_T}arch directory: ${host_cpu}" >&6
28183 CPU=${host_cpu}
28186 if test "x${host_os}" = "x"
28187 then
28188 case ${host} in
28189 *-mingw* | *-cygwin*)
28190 host_os=win32;;
28191 *-linux*)
28192 host_os=linux;;
28194 host_os=${host_os};;
28195 esac
28197 echo os directory: ${host_os}
28198 OS=${host_os}
28201 # make an expanded $libdir, for substituting into
28202 # scripts (and other non-Makefile things).
28203 LIBDIR=$libdir
28204 if test "x${exec_prefix}" = "xNONE"
28205 then
28206 lib_exec_prefix=$prefix
28207 else
28208 lib_exec_prefix=$exec_prefix
28210 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
28214 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/rebuild-gcj-db"
28217 if test ${multilib} = yes; then
28218 multilib_arg="--enable-multilib"
28219 else
28220 multilib_arg=
28223 ac_config_files="$ac_config_files scripts/jar"
28225 cat >confcache <<\_ACEOF
28226 # This file is a shell script that caches the results of configure
28227 # tests run on this system so they can be shared between configure
28228 # scripts and configure runs, see configure's option --config-cache.
28229 # It is not useful on other systems. If it contains results you don't
28230 # want to keep, you may remove or edit it.
28232 # config.status only pays attention to the cache file if you give it
28233 # the --recheck option to rerun configure.
28235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28237 # following values.
28239 _ACEOF
28241 # The following way of writing the cache mishandles newlines in values,
28242 # but we know of no workaround that is simple, portable, and efficient.
28243 # So, don't put newlines in cache variables' values.
28244 # Ultrix sh set writes to stderr and can't be redirected directly,
28245 # and sets the high bit in the cache file unless we assign to the vars.
28247 (set) 2>&1 |
28248 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28249 *ac_space=\ *)
28250 # `set' does not quote correctly, so add quotes (double-quote
28251 # substitution turns \\\\ into \\, and sed turns \\ into \).
28252 sed -n \
28253 "s/'/'\\\\''/g;
28254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28257 # `set' quotes correctly as required by POSIX, so do not add quotes.
28258 sed -n \
28259 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28261 esac;
28263 sed '
28264 t clear
28265 : clear
28266 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28267 t end
28268 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28269 : end' >>confcache
28270 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28271 if test -w $cache_file; then
28272 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28273 cat confcache >$cache_file
28274 else
28275 echo "not updating unwritable cache $cache_file"
28278 rm -f confcache
28280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28281 # Let make expand exec_prefix.
28282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28284 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28285 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28286 # trailing colons and then remove the whole line if VPATH becomes empty
28287 # (actually we leave an empty line to preserve line numbers).
28288 if test "x$srcdir" = x.; then
28289 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28290 s/:*\$(srcdir):*/:/;
28291 s/:*\${srcdir}:*/:/;
28292 s/:*@srcdir@:*/:/;
28293 s/^\([^=]*=[ ]*\):*/\1/;
28294 s/:*$//;
28295 s/^[^=]*=[ ]*$//;
28299 DEFS=-DHAVE_CONFIG_H
28301 ac_libobjs=
28302 ac_ltlibobjs=
28303 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28304 # 1. Remove the extension, and $U if already installed.
28305 ac_i=`echo "$ac_i" |
28306 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28307 # 2. Add them.
28308 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28309 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28310 done
28311 LIBOBJS=$ac_libobjs
28313 LTLIBOBJS=$ac_ltlibobjs
28316 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
28317 { { echo "$as_me:$LINENO: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28318 Usually this means the macro was only invoked conditionally." >&5
28319 echo "$as_me: error: conditional \"JAVA_MAINTAINER_MODE\" was never defined.
28320 Usually this means the macro was only invoked conditionally." >&2;}
28321 { (exit 1); exit 1; }; }
28323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28324 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28325 Usually this means the macro was only invoked conditionally." >&5
28326 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28327 Usually this means the macro was only invoked conditionally." >&2;}
28328 { (exit 1); exit 1; }; }
28330 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28331 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28332 Usually this means the macro was only invoked conditionally." >&5
28333 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28334 Usually this means the macro was only invoked conditionally." >&2;}
28335 { (exit 1); exit 1; }; }
28337 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28338 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28339 Usually this means the macro was only invoked conditionally." >&5
28340 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28341 Usually this means the macro was only invoked conditionally." >&2;}
28342 { (exit 1); exit 1; }; }
28344 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28345 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28346 Usually this means the macro was only invoked conditionally." >&5
28347 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28348 Usually this means the macro was only invoked conditionally." >&2;}
28349 { (exit 1); exit 1; }; }
28351 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
28352 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
28353 Usually this means the macro was only invoked conditionally." >&5
28354 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
28355 Usually this means the macro was only invoked conditionally." >&2;}
28356 { (exit 1); exit 1; }; }
28358 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
28359 { { echo "$as_me:$LINENO: error: conditional \"X_AWT\" was never defined.
28360 Usually this means the macro was only invoked conditionally." >&5
28361 echo "$as_me: error: conditional \"X_AWT\" was never defined.
28362 Usually this means the macro was only invoked conditionally." >&2;}
28363 { (exit 1); exit 1; }; }
28365 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28366 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28367 Usually this means the macro was only invoked conditionally." >&5
28368 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28369 Usually this means the macro was only invoked conditionally." >&2;}
28370 { (exit 1); exit 1; }; }
28372 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28373 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28374 Usually this means the macro was only invoked conditionally." >&5
28375 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28376 Usually this means the macro was only invoked conditionally." >&2;}
28377 { (exit 1); exit 1; }; }
28379 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
28380 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
28381 Usually this means the macro was only invoked conditionally." >&5
28382 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
28383 Usually this means the macro was only invoked conditionally." >&2;}
28384 { (exit 1); exit 1; }; }
28386 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
28387 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ECJ1\" was never defined.
28388 Usually this means the macro was only invoked conditionally." >&5
28389 echo "$as_me: error: conditional \"BUILD_ECJ1\" was never defined.
28390 Usually this means the macro was only invoked conditionally." >&2;}
28391 { (exit 1); exit 1; }; }
28393 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
28394 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28395 Usually this means the macro was only invoked conditionally." >&5
28396 echo "$as_me: error: conditional \"INSTALL_ECJ_JAR\" was never defined.
28397 Usually this means the macro was only invoked conditionally." >&2;}
28398 { (exit 1); exit 1; }; }
28400 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
28401 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
28402 Usually this means the macro was only invoked conditionally." >&5
28403 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
28404 Usually this means the macro was only invoked conditionally." >&2;}
28405 { (exit 1); exit 1; }; }
28407 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
28408 { { echo "$as_me:$LINENO: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28409 Usually this means the macro was only invoked conditionally." >&5
28410 echo "$as_me: error: conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
28411 Usually this means the macro was only invoked conditionally." >&2;}
28412 { (exit 1); exit 1; }; }
28414 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
28415 { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28416 Usually this means the macro was only invoked conditionally." >&5
28417 echo "$as_me: error: conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
28418 Usually this means the macro was only invoked conditionally." >&2;}
28419 { (exit 1); exit 1; }; }
28421 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
28422 { { echo "$as_me:$LINENO: error: conditional \"INTERPRETER\" was never defined.
28423 Usually this means the macro was only invoked conditionally." >&5
28424 echo "$as_me: error: conditional \"INTERPRETER\" was never defined.
28425 Usually this means the macro was only invoked conditionally." >&2;}
28426 { (exit 1); exit 1; }; }
28428 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
28429 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28430 Usually this means the macro was only invoked conditionally." >&5
28431 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
28432 Usually this means the macro was only invoked conditionally." >&2;}
28433 { (exit 1); exit 1; }; }
28435 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
28436 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28437 Usually this means the macro was only invoked conditionally." >&5
28438 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
28439 Usually this means the macro was only invoked conditionally." >&2;}
28440 { (exit 1); exit 1; }; }
28442 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
28443 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
28444 Usually this means the macro was only invoked conditionally." >&5
28445 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
28446 Usually this means the macro was only invoked conditionally." >&2;}
28447 { (exit 1); exit 1; }; }
28449 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
28450 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
28451 Usually this means the macro was only invoked conditionally." >&5
28452 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
28453 Usually this means the macro was only invoked conditionally." >&2;}
28454 { (exit 1); exit 1; }; }
28456 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
28457 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
28458 Usually this means the macro was only invoked conditionally." >&5
28459 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
28460 Usually this means the macro was only invoked conditionally." >&2;}
28461 { (exit 1); exit 1; }; }
28463 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
28464 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
28465 Usually this means the macro was only invoked conditionally." >&5
28466 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
28467 Usually this means the macro was only invoked conditionally." >&2;}
28468 { (exit 1); exit 1; }; }
28470 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
28471 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
28472 Usually this means the macro was only invoked conditionally." >&5
28473 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
28474 Usually this means the macro was only invoked conditionally." >&2;}
28475 { (exit 1); exit 1; }; }
28477 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
28478 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
28479 Usually this means the macro was only invoked conditionally." >&5
28480 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
28481 Usually this means the macro was only invoked conditionally." >&2;}
28482 { (exit 1); exit 1; }; }
28484 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
28485 { { echo "$as_me:$LINENO: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28486 Usually this means the macro was only invoked conditionally." >&5
28487 echo "$as_me: error: conditional \"USE_LIBGCJ_BC\" was never defined.
28488 Usually this means the macro was only invoked conditionally." >&2;}
28489 { (exit 1); exit 1; }; }
28491 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
28492 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
28493 Usually this means the macro was only invoked conditionally." >&5
28494 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
28495 Usually this means the macro was only invoked conditionally." >&2;}
28496 { (exit 1); exit 1; }; }
28498 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
28499 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
28500 Usually this means the macro was only invoked conditionally." >&5
28501 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
28502 Usually this means the macro was only invoked conditionally." >&2;}
28503 { (exit 1); exit 1; }; }
28505 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
28506 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
28507 Usually this means the macro was only invoked conditionally." >&5
28508 echo "$as_me: error: conditional \"NATIVE\" was never defined.
28509 Usually this means the macro was only invoked conditionally." >&2;}
28510 { (exit 1); exit 1; }; }
28512 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
28513 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SHARED\" was never defined.
28514 Usually this means the macro was only invoked conditionally." >&5
28515 echo "$as_me: error: conditional \"ENABLE_SHARED\" was never defined.
28516 Usually this means the macro was only invoked conditionally." >&2;}
28517 { (exit 1); exit 1; }; }
28519 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
28520 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
28521 Usually this means the macro was only invoked conditionally." >&5
28522 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
28523 Usually this means the macro was only invoked conditionally." >&2;}
28524 { (exit 1); exit 1; }; }
28526 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
28527 { { echo "$as_me:$LINENO: error: conditional \"ANONVERSCRIPT\" was never defined.
28528 Usually this means the macro was only invoked conditionally." >&5
28529 echo "$as_me: error: conditional \"ANONVERSCRIPT\" was never defined.
28530 Usually this means the macro was only invoked conditionally." >&2;}
28531 { (exit 1); exit 1; }; }
28533 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
28534 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28535 Usually this means the macro was only invoked conditionally." >&5
28536 echo "$as_me: error: conditional \"INSTALL_AOT_RPM\" was never defined.
28537 Usually this means the macro was only invoked conditionally." >&2;}
28538 { (exit 1); exit 1; }; }
28540 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
28541 { { echo "$as_me:$LINENO: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28542 Usually this means the macro was only invoked conditionally." >&5
28543 echo "$as_me: error: conditional \"CREATE_JAVA_HOME\" was never defined.
28544 Usually this means the macro was only invoked conditionally." >&2;}
28545 { (exit 1); exit 1; }; }
28548 : ${CONFIG_STATUS=./config.status}
28549 ac_clean_files_save=$ac_clean_files
28550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28551 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28552 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28553 cat >$CONFIG_STATUS <<_ACEOF
28554 #! $SHELL
28555 # Generated by $as_me.
28556 # Run this file to recreate the current configuration.
28557 # Compiler output produced by configure, useful for debugging
28558 # configure, is in config.log if it exists.
28560 debug=false
28561 ac_cs_recheck=false
28562 ac_cs_silent=false
28563 SHELL=\${CONFIG_SHELL-$SHELL}
28564 _ACEOF
28566 cat >>$CONFIG_STATUS <<\_ACEOF
28567 ## --------------------- ##
28568 ## M4sh Initialization. ##
28569 ## --------------------- ##
28571 # Be Bourne compatible
28572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28573 emulate sh
28574 NULLCMD=:
28575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28576 # is contrary to our usage. Disable this feature.
28577 alias -g '${1+"$@"}'='"$@"'
28578 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28579 set -o posix
28581 DUALCASE=1; export DUALCASE # for MKS sh
28583 # Support unset when possible.
28584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28585 as_unset=unset
28586 else
28587 as_unset=false
28591 # Work around bugs in pre-3.0 UWIN ksh.
28592 $as_unset ENV MAIL MAILPATH
28593 PS1='$ '
28594 PS2='> '
28595 PS4='+ '
28597 # NLS nuisances.
28598 for as_var in \
28599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28601 LC_TELEPHONE LC_TIME
28603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28604 eval $as_var=C; export $as_var
28605 else
28606 $as_unset $as_var
28608 done
28610 # Required to use basename.
28611 if expr a : '\(a\)' >/dev/null 2>&1; then
28612 as_expr=expr
28613 else
28614 as_expr=false
28617 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28618 as_basename=basename
28619 else
28620 as_basename=false
28624 # Name of the executable.
28625 as_me=`$as_basename "$0" ||
28626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28627 X"$0" : 'X\(//\)$' \| \
28628 X"$0" : 'X\(/\)$' \| \
28629 . : '\(.\)' 2>/dev/null ||
28630 echo X/"$0" |
28631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28632 /^X\/\(\/\/\)$/{ s//\1/; q; }
28633 /^X\/\(\/\).*/{ s//\1/; q; }
28634 s/.*/./; q'`
28637 # PATH needs CR, and LINENO needs CR and PATH.
28638 # Avoid depending upon Character Ranges.
28639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28642 as_cr_digits='0123456789'
28643 as_cr_alnum=$as_cr_Letters$as_cr_digits
28645 # The user is always right.
28646 if test "${PATH_SEPARATOR+set}" != set; then
28647 echo "#! /bin/sh" >conf$$.sh
28648 echo "exit 0" >>conf$$.sh
28649 chmod +x conf$$.sh
28650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28651 PATH_SEPARATOR=';'
28652 else
28653 PATH_SEPARATOR=:
28655 rm -f conf$$.sh
28659 as_lineno_1=$LINENO
28660 as_lineno_2=$LINENO
28661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28662 test "x$as_lineno_1" != "x$as_lineno_2" &&
28663 test "x$as_lineno_3" = "x$as_lineno_2" || {
28664 # Find who we are. Look in the path if we contain no path at all
28665 # relative or not.
28666 case $0 in
28667 *[\\/]* ) as_myself=$0 ;;
28668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28669 for as_dir in $PATH
28671 IFS=$as_save_IFS
28672 test -z "$as_dir" && as_dir=.
28673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28674 done
28677 esac
28678 # We did not find ourselves, most probably we were run as `sh COMMAND'
28679 # in which case we are not to be found in the path.
28680 if test "x$as_myself" = x; then
28681 as_myself=$0
28683 if test ! -f "$as_myself"; then
28684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
28685 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
28686 { (exit 1); exit 1; }; }
28688 case $CONFIG_SHELL in
28690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28691 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
28693 IFS=$as_save_IFS
28694 test -z "$as_dir" && as_dir=.
28695 for as_base in sh bash ksh sh5; do
28696 case $as_dir in
28698 if ("$as_dir/$as_base" -c '
28699 as_lineno_1=$LINENO
28700 as_lineno_2=$LINENO
28701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
28702 test "x$as_lineno_1" != "x$as_lineno_2" &&
28703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
28704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
28705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
28706 CONFIG_SHELL=$as_dir/$as_base
28707 export CONFIG_SHELL
28708 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
28709 fi;;
28710 esac
28711 done
28712 done
28714 esac
28716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28717 # uniformly replaced by the line number. The first 'sed' inserts a
28718 # line-number line before each line; the second 'sed' does the real
28719 # work. The second script uses 'N' to pair each line-number line
28720 # with the numbered line, and appends trailing '-' during
28721 # substitution so that $LINENO is not a special case at line end.
28722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
28724 sed '=' <$as_myself |
28725 sed '
28727 s,$,-,
28728 : loop
28729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
28730 t loop
28731 s,-$,,
28732 s,^['$as_cr_digits']*\n,,
28733 ' >$as_me.lineno &&
28734 chmod +x $as_me.lineno ||
28735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
28736 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
28737 { (exit 1); exit 1; }; }
28739 # Don't try to exec as it changes $[0], causing all sort of problems
28740 # (the dirname of $[0] is not the place where we might find the
28741 # original and so on. Autoconf is especially sensible to this).
28742 . ./$as_me.lineno
28743 # Exit status is that of the last command.
28744 exit
28748 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
28749 *c*,-n*) ECHO_N= ECHO_C='
28750 ' ECHO_T=' ' ;;
28751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
28752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
28753 esac
28755 if expr a : '\(a\)' >/dev/null 2>&1; then
28756 as_expr=expr
28757 else
28758 as_expr=false
28761 rm -f conf$$ conf$$.exe conf$$.file
28762 echo >conf$$.file
28763 if ln -s conf$$.file conf$$ 2>/dev/null; then
28764 # We could just check for DJGPP; but this test a) works b) is more generic
28765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28766 if test -f conf$$.exe; then
28767 # Don't use ln at all; we don't have any links
28768 as_ln_s='cp -p'
28769 else
28770 as_ln_s='ln -s'
28772 elif ln conf$$.file conf$$ 2>/dev/null; then
28773 as_ln_s=ln
28774 else
28775 as_ln_s='cp -p'
28777 rm -f conf$$ conf$$.exe conf$$.file
28779 if mkdir -p . 2>/dev/null; then
28780 as_mkdir_p=:
28781 else
28782 test -d ./-p && rmdir ./-p
28783 as_mkdir_p=false
28786 as_executable_p="test -f"
28788 # Sed expression to map a string onto a valid CPP name.
28789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28791 # Sed expression to map a string onto a valid variable name.
28792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28795 # IFS
28796 # We need space, tab and new line, in precisely that order.
28797 as_nl='
28799 IFS=" $as_nl"
28801 # CDPATH.
28802 $as_unset CDPATH
28804 exec 6>&1
28806 # Open the log real soon, to keep \$[0] and so on meaningful, and to
28807 # report actual input values of CONFIG_FILES etc. instead of their
28808 # values after options handling. Logging --version etc. is OK.
28809 exec 5>>config.log
28811 echo
28812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28813 ## Running $as_me. ##
28814 _ASBOX
28815 } >&5
28816 cat >&5 <<_CSEOF
28818 This file was extended by libjava $as_me version-unused, which was
28819 generated by GNU Autoconf 2.59. Invocation command line was
28821 CONFIG_FILES = $CONFIG_FILES
28822 CONFIG_HEADERS = $CONFIG_HEADERS
28823 CONFIG_LINKS = $CONFIG_LINKS
28824 CONFIG_COMMANDS = $CONFIG_COMMANDS
28825 $ $0 $@
28827 _CSEOF
28828 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
28829 echo >&5
28830 _ACEOF
28832 # Files that config.status was made for.
28833 if test -n "$ac_config_files"; then
28834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
28837 if test -n "$ac_config_headers"; then
28838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
28841 if test -n "$ac_config_links"; then
28842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
28845 if test -n "$ac_config_commands"; then
28846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
28849 cat >>$CONFIG_STATUS <<\_ACEOF
28851 ac_cs_usage="\
28852 \`$as_me' instantiates files from templates according to the
28853 current configuration.
28855 Usage: $0 [OPTIONS] [FILE]...
28857 -h, --help print this help, then exit
28858 -V, --version print version number, then exit
28859 -q, --quiet do not print progress messages
28860 -d, --debug don't remove temporary files
28861 --recheck update $as_me by reconfiguring in the same conditions
28862 --file=FILE[:TEMPLATE]
28863 instantiate the configuration file FILE
28864 --header=FILE[:TEMPLATE]
28865 instantiate the configuration header FILE
28867 Configuration files:
28868 $config_files
28870 Configuration headers:
28871 $config_headers
28873 Configuration links:
28874 $config_links
28876 Configuration commands:
28877 $config_commands
28879 Report bugs to <bug-autoconf@gnu.org>."
28880 _ACEOF
28882 cat >>$CONFIG_STATUS <<_ACEOF
28883 ac_cs_version="\\
28884 libjava config.status version-unused
28885 configured by $0, generated by GNU Autoconf 2.59,
28886 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28888 Copyright (C) 2003 Free Software Foundation, Inc.
28889 This config.status script is free software; the Free Software Foundation
28890 gives unlimited permission to copy, distribute and modify it."
28891 srcdir=$srcdir
28892 INSTALL="$INSTALL"
28893 _ACEOF
28895 cat >>$CONFIG_STATUS <<\_ACEOF
28896 # If no file are specified by the user, then we need to provide default
28897 # value. By we need to know if files were specified by the user.
28898 ac_need_defaults=:
28899 while test $# != 0
28901 case $1 in
28902 --*=*)
28903 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28904 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28905 ac_shift=:
28908 ac_option=$1
28909 ac_optarg=$2
28910 ac_shift=shift
28912 *) # This is not an option, so the user has probably given explicit
28913 # arguments.
28914 ac_option=$1
28915 ac_need_defaults=false;;
28916 esac
28918 case $ac_option in
28919 # Handling of the options.
28920 _ACEOF
28921 cat >>$CONFIG_STATUS <<\_ACEOF
28922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28923 ac_cs_recheck=: ;;
28924 --version | --vers* | -V )
28925 echo "$ac_cs_version"; exit 0 ;;
28926 --he | --h)
28927 # Conflict between --help and --header
28928 { { echo "$as_me:$LINENO: error: ambiguous option: $1
28929 Try \`$0 --help' for more information." >&5
28930 echo "$as_me: error: ambiguous option: $1
28931 Try \`$0 --help' for more information." >&2;}
28932 { (exit 1); exit 1; }; };;
28933 --help | --hel | -h )
28934 echo "$ac_cs_usage"; exit 0 ;;
28935 --debug | --d* | -d )
28936 debug=: ;;
28937 --file | --fil | --fi | --f )
28938 $ac_shift
28939 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28940 ac_need_defaults=false;;
28941 --header | --heade | --head | --hea )
28942 $ac_shift
28943 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28944 ac_need_defaults=false;;
28945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
28947 ac_cs_silent=: ;;
28949 # This is an error.
28950 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
28951 Try \`$0 --help' for more information." >&5
28952 echo "$as_me: error: unrecognized option: $1
28953 Try \`$0 --help' for more information." >&2;}
28954 { (exit 1); exit 1; }; } ;;
28956 *) ac_config_targets="$ac_config_targets $1" ;;
28958 esac
28959 shift
28960 done
28962 ac_configure_extra_args=
28964 if $ac_cs_silent; then
28965 exec 6>/dev/null
28966 ac_configure_extra_args="$ac_configure_extra_args --silent"
28969 _ACEOF
28970 cat >>$CONFIG_STATUS <<_ACEOF
28971 if \$ac_cs_recheck; then
28972 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28973 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28976 _ACEOF
28978 cat >>$CONFIG_STATUS <<_ACEOF
28980 # INIT-COMMANDS section.
28984 srcdir="$srcdir"
28985 host="$host"
28986 target="$target"
28987 with_multisubdir="$with_multisubdir"
28988 with_multisrctop="$with_multisrctop"
28989 with_target_subdir="$with_target_subdir"
28990 ac_configure_args="${multilib_arg} ${ac_configure_args}"
28991 multi_basedir="$multi_basedir"
28992 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
28993 CC="$CC"
28994 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28997 # The HP-UX ksh and POSIX shell print the target directory to stdout
28998 # if CDPATH is set.
28999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29001 sed_quote_subst='$sed_quote_subst'
29002 double_quote_subst='$double_quote_subst'
29003 delay_variable_subst='$delay_variable_subst'
29004 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29005 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29006 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29007 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29008 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29009 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29010 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29011 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29012 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29013 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29014 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29015 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29016 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29017 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29018 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29019 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29020 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29021 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29022 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29023 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29024 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29025 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29026 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29027 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29028 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29029 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29030 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29031 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29032 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29033 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29034 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29035 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29036 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29037 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29038 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29039 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29040 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29041 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29042 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29043 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29044 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29045 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29046 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29047 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29048 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"`'
29049 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29050 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29051 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29052 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29053 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29054 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29055 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29056 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29057 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29058 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29059 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29060 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29061 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29062 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29063 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29064 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29065 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29066 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29067 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29068 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29069 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29070 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29071 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29072 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29073 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29074 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29075 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29076 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29077 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29078 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29079 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29080 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29081 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29082 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29083 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29084 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29085 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29086 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29087 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29088 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29089 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29090 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29091 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29092 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29093 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29094 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29095 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29096 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29097 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29098 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29099 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29100 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29101 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29102 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29103 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29104 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29105 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29106 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29107 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29108 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29109 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29110 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29111 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29112 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29113 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29114 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29115 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29116 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29117 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29118 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29119 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29120 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29121 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29122 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29123 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29124 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29125 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29126 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29127 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29128 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29129 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29130 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29131 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29132 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29133 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29134 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29135 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29136 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29137 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29138 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29139 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29140 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29141 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29142 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29143 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29144 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29145 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29146 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29147 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29148 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29149 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29150 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29151 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29152 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29153 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29154 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29155 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29156 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29157 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29158 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29159 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29160 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29161 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29162 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29163 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29164 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29165 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29166 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29167 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29168 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29169 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29170 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29171 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29172 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29173 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29174 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29175 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29176 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29177 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29178 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29179 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29180 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29181 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29182 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29183 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29184 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29185 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29186 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29187 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29188 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29189 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29190 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29191 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29192 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29193 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29194 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29195 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29196 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29197 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29198 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29199 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29200 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29201 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29202 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29203 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29204 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29205 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29206 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29207 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29208 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29209 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29210 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29211 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29212 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29213 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29214 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29215 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29216 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29217 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29218 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29219 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29220 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29221 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
29223 LTCC='$LTCC'
29224 LTCFLAGS='$LTCFLAGS'
29225 compiler='$compiler_DEFAULT'
29227 # Quote evaled strings.
29228 for var in SED \
29229 GREP \
29230 EGREP \
29231 FGREP \
29232 LD \
29233 NM \
29234 LN_S \
29235 lt_SP2NL \
29236 lt_NL2SP \
29237 reload_flag \
29238 OBJDUMP \
29239 deplibs_check_method \
29240 file_magic_cmd \
29241 AR \
29242 AR_FLAGS \
29243 STRIP \
29244 RANLIB \
29245 CC \
29246 CFLAGS \
29247 compiler \
29248 lt_cv_sys_global_symbol_pipe \
29249 lt_cv_sys_global_symbol_to_cdecl \
29250 lt_cv_sys_global_symbol_to_c_name_address \
29251 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29252 SHELL \
29253 ECHO \
29254 lt_prog_compiler_no_builtin_flag \
29255 lt_prog_compiler_wl \
29256 lt_prog_compiler_pic \
29257 lt_prog_compiler_static \
29258 lt_cv_prog_compiler_c_o \
29259 need_locks \
29260 DSYMUTIL \
29261 NMEDIT \
29262 LIPO \
29263 OTOOL \
29264 OTOOL64 \
29265 shrext_cmds \
29266 export_dynamic_flag_spec \
29267 whole_archive_flag_spec \
29268 compiler_needs_object \
29269 with_gnu_ld \
29270 allow_undefined_flag \
29271 no_undefined_flag \
29272 hardcode_libdir_flag_spec \
29273 hardcode_libdir_flag_spec_ld \
29274 hardcode_libdir_separator \
29275 fix_srcfile_path \
29276 exclude_expsyms \
29277 include_expsyms \
29278 file_list_spec \
29279 variables_saved_for_relink \
29280 libname_spec \
29281 library_names_spec \
29282 soname_spec \
29283 finish_eval \
29284 old_striplib \
29285 striplib \
29286 compiler_lib_search_dirs \
29287 predep_objects \
29288 postdep_objects \
29289 predeps \
29290 postdeps \
29291 compiler_lib_search_path \
29292 LD_CXX \
29293 LD_GCJ \
29294 compiler_CXX \
29295 compiler_GCJ \
29296 lt_prog_compiler_no_builtin_flag_CXX \
29297 lt_prog_compiler_no_builtin_flag_GCJ \
29298 lt_prog_compiler_wl_CXX \
29299 lt_prog_compiler_wl_GCJ \
29300 lt_prog_compiler_pic_CXX \
29301 lt_prog_compiler_pic_GCJ \
29302 lt_prog_compiler_static_CXX \
29303 lt_prog_compiler_static_GCJ \
29304 lt_cv_prog_compiler_c_o_CXX \
29305 lt_cv_prog_compiler_c_o_GCJ \
29306 export_dynamic_flag_spec_CXX \
29307 export_dynamic_flag_spec_GCJ \
29308 whole_archive_flag_spec_CXX \
29309 whole_archive_flag_spec_GCJ \
29310 compiler_needs_object_CXX \
29311 compiler_needs_object_GCJ \
29312 with_gnu_ld_CXX \
29313 with_gnu_ld_GCJ \
29314 allow_undefined_flag_CXX \
29315 allow_undefined_flag_GCJ \
29316 no_undefined_flag_CXX \
29317 no_undefined_flag_GCJ \
29318 hardcode_libdir_flag_spec_CXX \
29319 hardcode_libdir_flag_spec_GCJ \
29320 hardcode_libdir_flag_spec_ld_CXX \
29321 hardcode_libdir_flag_spec_ld_GCJ \
29322 hardcode_libdir_separator_CXX \
29323 hardcode_libdir_separator_GCJ \
29324 fix_srcfile_path_CXX \
29325 fix_srcfile_path_GCJ \
29326 exclude_expsyms_CXX \
29327 exclude_expsyms_GCJ \
29328 include_expsyms_CXX \
29329 include_expsyms_GCJ \
29330 file_list_spec_CXX \
29331 file_list_spec_GCJ \
29332 compiler_lib_search_dirs_CXX \
29333 compiler_lib_search_dirs_GCJ \
29334 predep_objects_CXX \
29335 predep_objects_GCJ \
29336 postdep_objects_CXX \
29337 postdep_objects_GCJ \
29338 predeps_CXX \
29339 predeps_GCJ \
29340 postdeps_CXX \
29341 postdeps_GCJ \
29342 compiler_lib_search_path_CXX \
29343 compiler_lib_search_path_GCJ; do
29344 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29345 *[\\\\\\\`\\"\\\$]*)
29346 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29349 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29351 esac
29352 done
29354 # Double-quote double-evaled strings.
29355 for var in reload_cmds \
29356 old_postinstall_cmds \
29357 old_postuninstall_cmds \
29358 old_archive_cmds \
29359 extract_expsyms_cmds \
29360 old_archive_from_new_cmds \
29361 old_archive_from_expsyms_cmds \
29362 archive_cmds \
29363 archive_expsym_cmds \
29364 module_cmds \
29365 module_expsym_cmds \
29366 export_symbols_cmds \
29367 prelink_cmds \
29368 postinstall_cmds \
29369 postuninstall_cmds \
29370 finish_cmds \
29371 sys_lib_search_path_spec \
29372 sys_lib_dlsearch_path_spec \
29373 old_archive_cmds_CXX \
29374 old_archive_cmds_GCJ \
29375 old_archive_from_new_cmds_CXX \
29376 old_archive_from_new_cmds_GCJ \
29377 old_archive_from_expsyms_cmds_CXX \
29378 old_archive_from_expsyms_cmds_GCJ \
29379 archive_cmds_CXX \
29380 archive_cmds_GCJ \
29381 archive_expsym_cmds_CXX \
29382 archive_expsym_cmds_GCJ \
29383 module_cmds_CXX \
29384 module_cmds_GCJ \
29385 module_expsym_cmds_CXX \
29386 module_expsym_cmds_GCJ \
29387 export_symbols_cmds_CXX \
29388 export_symbols_cmds_GCJ \
29389 prelink_cmds_CXX \
29390 prelink_cmds_GCJ; do
29391 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29392 *[\\\\\\\`\\"\\\$]*)
29393 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29396 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29398 esac
29399 done
29401 # Fix-up fallback echo if it was mangled by the above quoting rules.
29402 case \$lt_ECHO in
29403 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29405 esac
29407 ac_aux_dir='$ac_aux_dir'
29408 xsi_shell='$xsi_shell'
29409 lt_shell_append='$lt_shell_append'
29411 # See if we are running on zsh, and set the options which allow our
29412 # commands through without removal of \ escapes INIT.
29413 if test -n "\${ZSH_VERSION+set}" ; then
29414 setopt NO_GLOB_SUBST
29418 PACKAGE='$PACKAGE'
29419 VERSION='$VERSION'
29420 TIMESTAMP='$TIMESTAMP'
29421 RM='$RM'
29422 ofile='$ofile'
29431 _ACEOF
29435 cat >>$CONFIG_STATUS <<\_ACEOF
29436 for ac_config_target in $ac_config_targets
29438 case "$ac_config_target" in
29439 # Handling of arguments.
29440 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29441 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
29442 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
29443 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
29444 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
29445 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
29446 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
29447 "contrib/aotcompile.py" ) CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
29448 "contrib/aot-compile" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
29449 "contrib/aot-compile-rpm" ) CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
29450 "contrib/rebuild-gcj-db" ) CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
29451 "scripts/jar" ) CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
29452 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
29453 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
29454 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
29455 "java/net/natVMInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
29456 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
29457 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
29458 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
29459 "gnu/java/nio/natVMPipe.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
29460 "gnu/java/nio/natVMSelector.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
29461 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
29462 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
29463 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
29464 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
29465 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
29466 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
29467 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
29468 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
29469 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
29470 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29471 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29472 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
29473 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
29474 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29475 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29476 { (exit 1); exit 1; }; };;
29477 esac
29478 done
29480 # If the user did not use the arguments to specify the items to instantiate,
29481 # then the envvar interface is used. Set only those that are not.
29482 # We use the long form for the default assignment because of an extremely
29483 # bizarre bug on SunOS 4.1.3.
29484 if $ac_need_defaults; then
29485 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29486 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29487 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29491 # Have a temporary directory for convenience. Make it in the build tree
29492 # simply because there is no reason to put it here, and in addition,
29493 # creating and moving files from /tmp can sometimes cause problems.
29494 # Create a temporary directory, and hook for its removal unless debugging.
29495 $debug ||
29497 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29498 trap '{ (exit 1); exit 1; }' 1 2 13 15
29501 # Create a (secure) tmp directory for tmp files.
29504 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29505 test -n "$tmp" && test -d "$tmp"
29506 } ||
29508 tmp=./confstat$$-$RANDOM
29509 (umask 077 && mkdir $tmp)
29510 } ||
29512 echo "$me: cannot create a temporary directory in ." >&2
29513 { (exit 1); exit 1; }
29516 _ACEOF
29518 cat >>$CONFIG_STATUS <<_ACEOF
29521 # CONFIG_FILES section.
29524 # No need to generate the scripts if there are no CONFIG_FILES.
29525 # This happens for instance when ./config.status config.h
29526 if test -n "\$CONFIG_FILES"; then
29527 # Protect against being on the right side of a sed subst in config.status.
29528 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29529 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29530 s,@SHELL@,$SHELL,;t t
29531 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29532 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29533 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29534 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29535 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29536 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29537 s,@exec_prefix@,$exec_prefix,;t t
29538 s,@prefix@,$prefix,;t t
29539 s,@program_transform_name@,$program_transform_name,;t t
29540 s,@bindir@,$bindir,;t t
29541 s,@sbindir@,$sbindir,;t t
29542 s,@libexecdir@,$libexecdir,;t t
29543 s,@datadir@,$datadir,;t t
29544 s,@sysconfdir@,$sysconfdir,;t t
29545 s,@sharedstatedir@,$sharedstatedir,;t t
29546 s,@localstatedir@,$localstatedir,;t t
29547 s,@libdir@,$libdir,;t t
29548 s,@includedir@,$includedir,;t t
29549 s,@oldincludedir@,$oldincludedir,;t t
29550 s,@infodir@,$infodir,;t t
29551 s,@mandir@,$mandir,;t t
29552 s,@build_alias@,$build_alias,;t t
29553 s,@host_alias@,$host_alias,;t t
29554 s,@target_alias@,$target_alias,;t t
29555 s,@DEFS@,$DEFS,;t t
29556 s,@ECHO_C@,$ECHO_C,;t t
29557 s,@ECHO_N@,$ECHO_N,;t t
29558 s,@ECHO_T@,$ECHO_T,;t t
29559 s,@LIBS@,$LIBS,;t t
29560 s,@build@,$build,;t t
29561 s,@build_cpu@,$build_cpu,;t t
29562 s,@build_vendor@,$build_vendor,;t t
29563 s,@build_os@,$build_os,;t t
29564 s,@build_libsubdir@,$build_libsubdir,;t t
29565 s,@build_subdir@,$build_subdir,;t t
29566 s,@host_subdir@,$host_subdir,;t t
29567 s,@target_subdir@,$target_subdir,;t t
29568 s,@multi_basedir@,$multi_basedir,;t t
29569 s,@host@,$host,;t t
29570 s,@host_cpu@,$host_cpu,;t t
29571 s,@host_vendor@,$host_vendor,;t t
29572 s,@host_os@,$host_os,;t t
29573 s,@target@,$target,;t t
29574 s,@target_cpu@,$target_cpu,;t t
29575 s,@target_vendor@,$target_vendor,;t t
29576 s,@target_os@,$target_os,;t t
29577 s,@target_noncanonical@,$target_noncanonical,;t t
29578 s,@LN_S@,$LN_S,;t t
29579 s,@mkinstalldirs@,$mkinstalldirs,;t t
29580 s,@JAVA_MAINTAINER_MODE_TRUE@,$JAVA_MAINTAINER_MODE_TRUE,;t t
29581 s,@JAVA_MAINTAINER_MODE_FALSE@,$JAVA_MAINTAINER_MODE_FALSE,;t t
29582 s,@CC@,$CC,;t t
29583 s,@ac_ct_CC@,$ac_ct_CC,;t t
29584 s,@EXEEXT@,$EXEEXT,;t t
29585 s,@OBJEXT@,$OBJEXT,;t t
29586 s,@CXX@,$CXX,;t t
29587 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29588 s,@CFLAGS@,$CFLAGS,;t t
29589 s,@CXXFLAGS@,$CXXFLAGS,;t t
29590 s,@LDFLAGS@,$LDFLAGS,;t t
29591 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29592 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29593 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29594 s,@CYGPATH_W@,$CYGPATH_W,;t t
29595 s,@PACKAGE@,$PACKAGE,;t t
29596 s,@VERSION@,$VERSION,;t t
29597 s,@ACLOCAL@,$ACLOCAL,;t t
29598 s,@AUTOCONF@,$AUTOCONF,;t t
29599 s,@AUTOMAKE@,$AUTOMAKE,;t t
29600 s,@AUTOHEADER@,$AUTOHEADER,;t t
29601 s,@MAKEINFO@,$MAKEINFO,;t t
29602 s,@install_sh@,$install_sh,;t t
29603 s,@STRIP@,$STRIP,;t t
29604 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29605 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29606 s,@mkdir_p@,$mkdir_p,;t t
29607 s,@AWK@,$AWK,;t t
29608 s,@SET_MAKE@,$SET_MAKE,;t t
29609 s,@am__leading_dot@,$am__leading_dot,;t t
29610 s,@AMTAR@,$AMTAR,;t t
29611 s,@am__tar@,$am__tar,;t t
29612 s,@am__untar@,$am__untar,;t t
29613 s,@DEPDIR@,$DEPDIR,;t t
29614 s,@am__include@,$am__include,;t t
29615 s,@am__quote@,$am__quote,;t t
29616 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29617 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29618 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29619 s,@CCDEPMODE@,$CCDEPMODE,;t t
29620 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29621 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29622 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
29623 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
29624 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
29625 s,@AS@,$AS,;t t
29626 s,@ac_ct_AS@,$ac_ct_AS,;t t
29627 s,@LD@,$LD,;t t
29628 s,@ac_ct_LD@,$ac_ct_LD,;t t
29629 s,@AR@,$AR,;t t
29630 s,@ac_ct_AR@,$ac_ct_AR,;t t
29631 s,@RANLIB@,$RANLIB,;t t
29632 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29633 s,@JAR@,$JAR,;t t
29634 s,@ZIP@,$ZIP,;t t
29635 s,@UNZIP@,$UNZIP,;t t
29636 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29637 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29638 s,@MAINT@,$MAINT,;t t
29639 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
29640 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
29641 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
29642 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
29643 s,@LIBGCJ_LD_SYMBOLIC_FUNCTIONS@,$LIBGCJ_LD_SYMBOLIC_FUNCTIONS,;t t
29644 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
29645 s,@TOOLKIT@,$TOOLKIT,;t t
29646 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
29647 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
29648 s,@X_AWT_TRUE@,$X_AWT_TRUE,;t t
29649 s,@X_AWT_FALSE@,$X_AWT_FALSE,;t t
29650 s,@GCJ_FOR_ECJX@,$GCJ_FOR_ECJX,;t t
29651 s,@GCJH@,$GCJH,;t t
29652 s,@host_exeext@,$host_exeext,;t t
29653 s,@INCLTDL@,$INCLTDL,;t t
29654 s,@LIBLTDL@,$LIBLTDL,;t t
29655 s,@DIRLTDL@,$DIRLTDL,;t t
29656 s,@LIBTOOL@,$LIBTOOL,;t t
29657 s,@SED@,$SED,;t t
29658 s,@EGREP@,$EGREP,;t t
29659 s,@FGREP@,$FGREP,;t t
29660 s,@GREP@,$GREP,;t t
29661 s,@DUMPBIN@,$DUMPBIN,;t t
29662 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
29663 s,@NM@,$NM,;t t
29664 s,@OBJDUMP@,$OBJDUMP,;t t
29665 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
29666 s,@lt_ECHO@,$lt_ECHO,;t t
29667 s,@DSYMUTIL@,$DSYMUTIL,;t t
29668 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
29669 s,@NMEDIT@,$NMEDIT,;t t
29670 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
29671 s,@LIPO@,$LIPO,;t t
29672 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
29673 s,@OTOOL@,$OTOOL,;t t
29674 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
29675 s,@OTOOL64@,$OTOOL64,;t t
29676 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
29677 s,@CPP@,$CPP,;t t
29678 s,@CPPFLAGS@,$CPPFLAGS,;t t
29679 s,@CXXCPP@,$CXXCPP,;t t
29680 s,@GCJ@,$GCJ,;t t
29681 s,@GCJFLAGS@,$GCJFLAGS,;t t
29682 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
29683 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
29684 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
29685 s,@subdirs@,$subdirs,;t t
29686 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
29687 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
29688 s,@ECJ_BUILD_JAR@,$ECJ_BUILD_JAR,;t t
29689 s,@ECJ_JAR@,$ECJ_JAR,;t t
29690 s,@BUILD_ECJ1_TRUE@,$BUILD_ECJ1_TRUE,;t t
29691 s,@BUILD_ECJ1_FALSE@,$BUILD_ECJ1_FALSE,;t t
29692 s,@INSTALL_ECJ_JAR_TRUE@,$INSTALL_ECJ_JAR_TRUE,;t t
29693 s,@INSTALL_ECJ_JAR_FALSE@,$INSTALL_ECJ_JAR_FALSE,;t t
29694 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
29695 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
29696 s,@JAVA_HOME@,$JAVA_HOME,;t t
29697 s,@SUPPRESS_LIBGCJ_BC_TRUE@,$SUPPRESS_LIBGCJ_BC_TRUE,;t t
29698 s,@SUPPRESS_LIBGCJ_BC_FALSE@,$SUPPRESS_LIBGCJ_BC_FALSE,;t t
29699 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE,;t t
29700 s,@BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE@,$BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE,;t t
29701 s,@INTERPRETER@,$INTERPRETER,;t t
29702 s,@INTERPRETER_TRUE@,$INTERPRETER_TRUE,;t t
29703 s,@INTERPRETER_FALSE@,$INTERPRETER_FALSE,;t t
29704 s,@LIBFFI@,$LIBFFI,;t t
29705 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
29706 s,@PLATFORM@,$PLATFORM,;t t
29707 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
29708 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
29709 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
29710 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
29711 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
29712 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
29713 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
29714 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
29715 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
29716 s,@X_CFLAGS@,$X_CFLAGS,;t t
29717 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
29718 s,@X_LIBS@,$X_LIBS,;t t
29719 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
29720 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
29721 s,@extra_gij_ldflags@,$extra_gij_ldflags,;t t
29722 s,@extra_ldflags@,$extra_ldflags,;t t
29723 s,@LIBSTDCXXSPEC@,$LIBSTDCXXSPEC,;t t
29724 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
29725 s,@GCLIBS@,$GCLIBS,;t t
29726 s,@GCINCS@,$GCINCS,;t t
29727 s,@GCDEPS@,$GCDEPS,;t t
29728 s,@GCSPEC@,$GCSPEC,;t t
29729 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
29730 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
29731 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
29732 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
29733 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
29734 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
29735 s,@THREADLIBS@,$THREADLIBS,;t t
29736 s,@THREADINCS@,$THREADINCS,;t t
29737 s,@THREADDEPS@,$THREADDEPS,;t t
29738 s,@THREADSPEC@,$THREADSPEC,;t t
29739 s,@THREADSTARTFILESPEC@,$THREADSTARTFILESPEC,;t t
29740 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
29741 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
29742 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
29743 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
29744 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
29745 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
29746 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
29747 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
29748 s,@USE_LIBGCJ_BC_TRUE@,$USE_LIBGCJ_BC_TRUE,;t t
29749 s,@USE_LIBGCJ_BC_FALSE@,$USE_LIBGCJ_BC_FALSE,;t t
29750 s,@LIBGCJ_SPEC@,$LIBGCJ_SPEC,;t t
29751 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
29752 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
29753 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
29754 s,@LIBICONV@,$LIBICONV,;t t
29755 s,@LTLIBICONV@,$LTLIBICONV,;t t
29756 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29757 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
29758 s,@GTK_LIBS@,$GTK_LIBS,;t t
29759 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
29760 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
29761 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
29762 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
29763 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
29764 s,@ZLIBS@,$ZLIBS,;t t
29765 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
29766 s,@ZINCS@,$ZINCS,;t t
29767 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
29768 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
29769 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
29770 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
29771 s,@IEEESPEC@,$IEEESPEC,;t t
29772 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
29773 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
29774 s,@ENABLE_SHARED_TRUE@,$ENABLE_SHARED_TRUE,;t t
29775 s,@ENABLE_SHARED_FALSE@,$ENABLE_SHARED_FALSE,;t t
29776 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
29777 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
29778 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
29779 s,@toolexecdir@,$toolexecdir,;t t
29780 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
29781 s,@toolexeclibdir@,$toolexeclibdir,;t t
29782 s,@GCJVERSION@,$GCJVERSION,;t t
29783 s,@dbexecdir@,$dbexecdir,;t t
29784 s,@gcjsubdir@,$gcjsubdir,;t t
29785 s,@gxx_include_dir@,$gxx_include_dir,;t t
29786 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
29787 s,@PERL@,$PERL,;t t
29788 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
29789 s,@ANONVERSCRIPT_TRUE@,$ANONVERSCRIPT_TRUE,;t t
29790 s,@ANONVERSCRIPT_FALSE@,$ANONVERSCRIPT_FALSE,;t t
29791 s,@LD_START_STATIC_SPEC@,$LD_START_STATIC_SPEC,;t t
29792 s,@LD_FINISH_STATIC_SPEC@,$LD_FINISH_STATIC_SPEC,;t t
29793 s,@here@,$here,;t t
29794 s,@python_mod_dir@,$python_mod_dir,;t t
29795 s,@python_mod_dir_expanded@,$python_mod_dir_expanded,;t t
29796 s,@MAKE@,$MAKE,;t t
29797 s,@INSTALL_AOT_RPM_TRUE@,$INSTALL_AOT_RPM_TRUE,;t t
29798 s,@INSTALL_AOT_RPM_FALSE@,$INSTALL_AOT_RPM_FALSE,;t t
29799 s,@CREATE_JAVA_HOME_TRUE@,$CREATE_JAVA_HOME_TRUE,;t t
29800 s,@CREATE_JAVA_HOME_FALSE@,$CREATE_JAVA_HOME_FALSE,;t t
29801 s,@gcc_suffix@,$gcc_suffix,;t t
29802 s,@JAVA_VERSION@,$JAVA_VERSION,;t t
29803 s,@BUILD_VERSION@,$BUILD_VERSION,;t t
29804 s,@JVM_ROOT_DIR@,$JVM_ROOT_DIR,;t t
29805 s,@JVM_JAR_ROOT_DIR@,$JVM_JAR_ROOT_DIR,;t t
29806 s,@JVM_JAR_DIR@,$JVM_JAR_DIR,;t t
29807 s,@JRE_DIR@,$JRE_DIR,;t t
29808 s,@SDK_DIR@,$SDK_DIR,;t t
29809 s,@JRE_LNK@,$JRE_LNK,;t t
29810 s,@SDK_LNK@,$SDK_LNK,;t t
29811 s,@SDK_BIN_DIR@,$SDK_BIN_DIR,;t t
29812 s,@SDK_LIB_DIR@,$SDK_LIB_DIR,;t t
29813 s,@SDK_INCLUDE_DIR@,$SDK_INCLUDE_DIR,;t t
29814 s,@JRE_BIN_DIR@,$JRE_BIN_DIR,;t t
29815 s,@JRE_LIB_DIR@,$JRE_LIB_DIR,;t t
29816 s,@GCJ_BIN_DIR@,$GCJ_BIN_DIR,;t t
29817 s,@CPU@,$CPU,;t t
29818 s,@OS@,$OS,;t t
29819 s,@LIBDIR@,$LIBDIR,;t t
29820 s,@LIBOBJS@,$LIBOBJS,;t t
29821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29822 CEOF
29824 _ACEOF
29826 cat >>$CONFIG_STATUS <<\_ACEOF
29827 # Split the substitutions into bite-sized pieces for seds with
29828 # small command number limits, like on Digital OSF/1 and HP-UX.
29829 ac_max_sed_lines=48
29830 ac_sed_frag=1 # Number of current file.
29831 ac_beg=1 # First line for current file.
29832 ac_end=$ac_max_sed_lines # Line after last line for current file.
29833 ac_more_lines=:
29834 ac_sed_cmds=
29835 while $ac_more_lines; do
29836 if test $ac_beg -gt 1; then
29837 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29838 else
29839 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29841 if test ! -s $tmp/subs.frag; then
29842 ac_more_lines=false
29843 else
29844 # The purpose of the label and of the branching condition is to
29845 # speed up the sed processing (if there are no `@' at all, there
29846 # is no need to browse any of the substitutions).
29847 # These are the two extra sed commands mentioned above.
29848 (echo ':t
29849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29850 if test -z "$ac_sed_cmds"; then
29851 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29852 else
29853 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29855 ac_sed_frag=`expr $ac_sed_frag + 1`
29856 ac_beg=$ac_end
29857 ac_end=`expr $ac_end + $ac_max_sed_lines`
29859 done
29860 if test -z "$ac_sed_cmds"; then
29861 ac_sed_cmds=cat
29863 fi # test -n "$CONFIG_FILES"
29865 _ACEOF
29866 cat >>$CONFIG_STATUS <<\_ACEOF
29867 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29869 case $ac_file in
29870 - | *:- | *:-:* ) # input from stdin
29871 cat >$tmp/stdin
29872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29876 * ) ac_file_in=$ac_file.in ;;
29877 esac
29879 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29880 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29882 X"$ac_file" : 'X\(//\)[^/]' \| \
29883 X"$ac_file" : 'X\(//\)$' \| \
29884 X"$ac_file" : 'X\(/\)' \| \
29885 . : '\(.\)' 2>/dev/null ||
29886 echo X"$ac_file" |
29887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29889 /^X\(\/\/\)$/{ s//\1/; q; }
29890 /^X\(\/\).*/{ s//\1/; q; }
29891 s/.*/./; q'`
29892 { if $as_mkdir_p; then
29893 mkdir -p "$ac_dir"
29894 else
29895 as_dir="$ac_dir"
29896 as_dirs=
29897 while test ! -d "$as_dir"; do
29898 as_dirs="$as_dir $as_dirs"
29899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29901 X"$as_dir" : 'X\(//\)[^/]' \| \
29902 X"$as_dir" : 'X\(//\)$' \| \
29903 X"$as_dir" : 'X\(/\)' \| \
29904 . : '\(.\)' 2>/dev/null ||
29905 echo X"$as_dir" |
29906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29908 /^X\(\/\/\)$/{ s//\1/; q; }
29909 /^X\(\/\).*/{ s//\1/; q; }
29910 s/.*/./; q'`
29911 done
29912 test ! -n "$as_dirs" || mkdir $as_dirs
29913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29914 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29915 { (exit 1); exit 1; }; }; }
29917 ac_builddir=.
29919 if test "$ac_dir" != .; then
29920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29921 # A "../" for each directory in $ac_dir_suffix.
29922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29923 else
29924 ac_dir_suffix= ac_top_builddir=
29927 case $srcdir in
29928 .) # No --srcdir option. We are building in place.
29929 ac_srcdir=.
29930 if test -z "$ac_top_builddir"; then
29931 ac_top_srcdir=.
29932 else
29933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29934 fi ;;
29935 [\\/]* | ?:[\\/]* ) # Absolute path.
29936 ac_srcdir=$srcdir$ac_dir_suffix;
29937 ac_top_srcdir=$srcdir ;;
29938 *) # Relative path.
29939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29941 esac
29943 # Do not use `cd foo && pwd` to compute absolute paths, because
29944 # the directories may not exist.
29945 case `pwd` in
29946 .) ac_abs_builddir="$ac_dir";;
29948 case "$ac_dir" in
29949 .) ac_abs_builddir=`pwd`;;
29950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29952 esac;;
29953 esac
29954 case $ac_abs_builddir in
29955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29957 case ${ac_top_builddir}. in
29958 .) ac_abs_top_builddir=$ac_abs_builddir;;
29959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29961 esac;;
29962 esac
29963 case $ac_abs_builddir in
29964 .) ac_abs_srcdir=$ac_srcdir;;
29966 case $ac_srcdir in
29967 .) ac_abs_srcdir=$ac_abs_builddir;;
29968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29970 esac;;
29971 esac
29972 case $ac_abs_builddir in
29973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29975 case $ac_top_srcdir in
29976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29979 esac;;
29980 esac
29983 case $INSTALL in
29984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29985 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29986 esac
29988 if test x"$ac_file" != x-; then
29989 { echo "$as_me:$LINENO: creating $ac_file" >&5
29990 echo "$as_me: creating $ac_file" >&6;}
29991 rm -f "$ac_file"
29993 # Let's still pretend it is `configure' which instantiates (i.e., don't
29994 # use $as_me), people would be surprised to read:
29995 # /* config.h. Generated by config.status. */
29996 if test x"$ac_file" = x-; then
29997 configure_input=
29998 else
29999 configure_input="$ac_file. "
30001 configure_input=$configure_input"Generated from `echo $ac_file_in |
30002 sed 's,.*/,,'` by configure."
30004 # First look for the input files in the build tree, otherwise in the
30005 # src tree.
30006 ac_file_inputs=`IFS=:
30007 for f in $ac_file_in; do
30008 case $f in
30009 -) echo $tmp/stdin ;;
30010 [\\/$]*)
30011 # Absolute (can't be DOS-style, as IFS=:)
30012 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30013 echo "$as_me: error: cannot find input file: $f" >&2;}
30014 { (exit 1); exit 1; }; }
30015 echo "$f";;
30016 *) # Relative
30017 if test -f "$f"; then
30018 # Build tree
30019 echo "$f"
30020 elif test -f "$srcdir/$f"; then
30021 # Source tree
30022 echo "$srcdir/$f"
30023 else
30024 # /dev/null tree
30025 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30026 echo "$as_me: error: cannot find input file: $f" >&2;}
30027 { (exit 1); exit 1; }; }
30028 fi;;
30029 esac
30030 done` || { (exit 1); exit 1; }
30031 _ACEOF
30032 cat >>$CONFIG_STATUS <<_ACEOF
30033 sed "$ac_vpsub
30034 $extrasub
30035 _ACEOF
30036 cat >>$CONFIG_STATUS <<\_ACEOF
30038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30039 s,@configure_input@,$configure_input,;t t
30040 s,@srcdir@,$ac_srcdir,;t t
30041 s,@abs_srcdir@,$ac_abs_srcdir,;t t
30042 s,@top_srcdir@,$ac_top_srcdir,;t t
30043 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30044 s,@builddir@,$ac_builddir,;t t
30045 s,@abs_builddir@,$ac_abs_builddir,;t t
30046 s,@top_builddir@,$ac_top_builddir,;t t
30047 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30048 s,@INSTALL@,$ac_INSTALL,;t t
30049 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30050 rm -f $tmp/stdin
30051 if test x"$ac_file" != x-; then
30052 mv $tmp/out $ac_file
30053 else
30054 cat $tmp/out
30055 rm -f $tmp/out
30058 # Run the commands associated with the file.
30059 case $ac_file in
30060 scripts/jar ) chmod +x scripts/jar ;;
30061 esac
30062 done
30063 _ACEOF
30064 cat >>$CONFIG_STATUS <<\_ACEOF
30067 # CONFIG_HEADER section.
30070 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30071 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30073 # ac_d sets the value in "#define NAME VALUE" lines.
30074 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30075 ac_dB='[ ].*$,\1#\2'
30076 ac_dC=' '
30077 ac_dD=',;t'
30078 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30079 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30080 ac_uB='$,\1#\2define\3'
30081 ac_uC=' '
30082 ac_uD=',;t'
30084 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30085 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30086 case $ac_file in
30087 - | *:- | *:-:* ) # input from stdin
30088 cat >$tmp/stdin
30089 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30091 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30092 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30093 * ) ac_file_in=$ac_file.in ;;
30094 esac
30096 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30097 echo "$as_me: creating $ac_file" >&6;}
30099 # First look for the input files in the build tree, otherwise in the
30100 # src tree.
30101 ac_file_inputs=`IFS=:
30102 for f in $ac_file_in; do
30103 case $f in
30104 -) echo $tmp/stdin ;;
30105 [\\/$]*)
30106 # Absolute (can't be DOS-style, as IFS=:)
30107 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30108 echo "$as_me: error: cannot find input file: $f" >&2;}
30109 { (exit 1); exit 1; }; }
30110 # Do quote $f, to prevent DOS paths from being IFS'd.
30111 echo "$f";;
30112 *) # Relative
30113 if test -f "$f"; then
30114 # Build tree
30115 echo "$f"
30116 elif test -f "$srcdir/$f"; then
30117 # Source tree
30118 echo "$srcdir/$f"
30119 else
30120 # /dev/null tree
30121 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30122 echo "$as_me: error: cannot find input file: $f" >&2;}
30123 { (exit 1); exit 1; }; }
30124 fi;;
30125 esac
30126 done` || { (exit 1); exit 1; }
30127 # Remove the trailing spaces.
30128 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30130 _ACEOF
30132 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30133 # `conftest.undefs', that substitutes the proper values into
30134 # config.h.in to produce config.h. The first handles `#define'
30135 # templates, and the second `#undef' templates.
30136 # And first: Protect against being on the right side of a sed subst in
30137 # config.status. Protect against being in an unquoted here document
30138 # in config.status.
30139 rm -f conftest.defines conftest.undefs
30140 # Using a here document instead of a string reduces the quoting nightmare.
30141 # Putting comments in sed scripts is not portable.
30143 # `end' is used to avoid that the second main sed command (meant for
30144 # 0-ary CPP macros) applies to n-ary macro definitions.
30145 # See the Autoconf documentation for `clear'.
30146 cat >confdef2sed.sed <<\_ACEOF
30147 s/[\\&,]/\\&/g
30148 s,[\\$`],\\&,g
30149 t clear
30150 : clear
30151 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30152 t end
30153 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30154 : end
30155 _ACEOF
30156 # If some macros were called several times there might be several times
30157 # the same #defines, which is useless. Nevertheless, we may not want to
30158 # sort them, since we want the *last* AC-DEFINE to be honored.
30159 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30160 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30161 rm -f confdef2sed.sed
30163 # This sed command replaces #undef with comments. This is necessary, for
30164 # example, in the case of _POSIX_SOURCE, which is predefined and required
30165 # on some systems where configure will not decide to define it.
30166 cat >>conftest.undefs <<\_ACEOF
30167 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30168 _ACEOF
30170 # Break up conftest.defines because some shells have a limit on the size
30171 # of here documents, and old seds have small limits too (100 cmds).
30172 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30173 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30174 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30175 echo ' :' >>$CONFIG_STATUS
30176 rm -f conftest.tail
30177 while grep . conftest.defines >/dev/null
30179 # Write a limited-size here document to $tmp/defines.sed.
30180 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30181 # Speed up: don't consider the non `#define' lines.
30182 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30183 # Work around the forget-to-reset-the-flag bug.
30184 echo 't clr' >>$CONFIG_STATUS
30185 echo ': clr' >>$CONFIG_STATUS
30186 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30187 echo 'CEOF
30188 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30189 rm -f $tmp/in
30190 mv $tmp/out $tmp/in
30191 ' >>$CONFIG_STATUS
30192 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30193 rm -f conftest.defines
30194 mv conftest.tail conftest.defines
30195 done
30196 rm -f conftest.defines
30197 echo ' fi # grep' >>$CONFIG_STATUS
30198 echo >>$CONFIG_STATUS
30200 # Break up conftest.undefs because some shells have a limit on the size
30201 # of here documents, and old seds have small limits too (100 cmds).
30202 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30203 rm -f conftest.tail
30204 while grep . conftest.undefs >/dev/null
30206 # Write a limited-size here document to $tmp/undefs.sed.
30207 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30208 # Speed up: don't consider the non `#undef'
30209 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30210 # Work around the forget-to-reset-the-flag bug.
30211 echo 't clr' >>$CONFIG_STATUS
30212 echo ': clr' >>$CONFIG_STATUS
30213 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30214 echo 'CEOF
30215 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30216 rm -f $tmp/in
30217 mv $tmp/out $tmp/in
30218 ' >>$CONFIG_STATUS
30219 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30220 rm -f conftest.undefs
30221 mv conftest.tail conftest.undefs
30222 done
30223 rm -f conftest.undefs
30225 cat >>$CONFIG_STATUS <<\_ACEOF
30226 # Let's still pretend it is `configure' which instantiates (i.e., don't
30227 # use $as_me), people would be surprised to read:
30228 # /* config.h. Generated by config.status. */
30229 if test x"$ac_file" = x-; then
30230 echo "/* Generated by configure. */" >$tmp/config.h
30231 else
30232 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30234 cat $tmp/in >>$tmp/config.h
30235 rm -f $tmp/in
30236 if test x"$ac_file" != x-; then
30237 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30238 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30239 echo "$as_me: $ac_file is unchanged" >&6;}
30240 else
30241 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30243 X"$ac_file" : 'X\(//\)[^/]' \| \
30244 X"$ac_file" : 'X\(//\)$' \| \
30245 X"$ac_file" : 'X\(/\)' \| \
30246 . : '\(.\)' 2>/dev/null ||
30247 echo X"$ac_file" |
30248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30250 /^X\(\/\/\)$/{ s//\1/; q; }
30251 /^X\(\/\).*/{ s//\1/; q; }
30252 s/.*/./; q'`
30253 { if $as_mkdir_p; then
30254 mkdir -p "$ac_dir"
30255 else
30256 as_dir="$ac_dir"
30257 as_dirs=
30258 while test ! -d "$as_dir"; do
30259 as_dirs="$as_dir $as_dirs"
30260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30262 X"$as_dir" : 'X\(//\)[^/]' \| \
30263 X"$as_dir" : 'X\(//\)$' \| \
30264 X"$as_dir" : 'X\(/\)' \| \
30265 . : '\(.\)' 2>/dev/null ||
30266 echo X"$as_dir" |
30267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30269 /^X\(\/\/\)$/{ s//\1/; q; }
30270 /^X\(\/\).*/{ s//\1/; q; }
30271 s/.*/./; q'`
30272 done
30273 test ! -n "$as_dirs" || mkdir $as_dirs
30274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30276 { (exit 1); exit 1; }; }; }
30278 rm -f $ac_file
30279 mv $tmp/config.h $ac_file
30281 else
30282 cat $tmp/config.h
30283 rm -f $tmp/config.h
30285 # Compute $ac_file's index in $config_headers.
30286 _am_stamp_count=1
30287 for _am_header in $config_headers :; do
30288 case $_am_header in
30289 $ac_file | $ac_file:* )
30290 break ;;
30292 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30293 esac
30294 done
30295 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30296 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30297 X$ac_file : 'X\(//\)[^/]' \| \
30298 X$ac_file : 'X\(//\)$' \| \
30299 X$ac_file : 'X\(/\)' \| \
30300 . : '\(.\)' 2>/dev/null ||
30301 echo X$ac_file |
30302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30304 /^X\(\/\/\)$/{ s//\1/; q; }
30305 /^X\(\/\).*/{ s//\1/; q; }
30306 s/.*/./; q'`/stamp-h$_am_stamp_count
30307 done
30308 _ACEOF
30309 cat >>$CONFIG_STATUS <<\_ACEOF
30312 # CONFIG_LINKS section.
30315 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30316 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30317 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30319 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30320 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30322 if test ! -r $srcdir/$ac_source; then
30323 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30324 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30325 { (exit 1); exit 1; }; }
30327 rm -f $ac_dest
30329 # Make relative symlinks.
30330 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30331 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30332 X"$ac_dest" : 'X\(//\)[^/]' \| \
30333 X"$ac_dest" : 'X\(//\)$' \| \
30334 X"$ac_dest" : 'X\(/\)' \| \
30335 . : '\(.\)' 2>/dev/null ||
30336 echo X"$ac_dest" |
30337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30338 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30339 /^X\(\/\/\)$/{ s//\1/; q; }
30340 /^X\(\/\).*/{ s//\1/; q; }
30341 s/.*/./; q'`
30342 { if $as_mkdir_p; then
30343 mkdir -p "$ac_dest_dir"
30344 else
30345 as_dir="$ac_dest_dir"
30346 as_dirs=
30347 while test ! -d "$as_dir"; do
30348 as_dirs="$as_dir $as_dirs"
30349 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30350 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30351 X"$as_dir" : 'X\(//\)[^/]' \| \
30352 X"$as_dir" : 'X\(//\)$' \| \
30353 X"$as_dir" : 'X\(/\)' \| \
30354 . : '\(.\)' 2>/dev/null ||
30355 echo X"$as_dir" |
30356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30358 /^X\(\/\/\)$/{ s//\1/; q; }
30359 /^X\(\/\).*/{ s//\1/; q; }
30360 s/.*/./; q'`
30361 done
30362 test ! -n "$as_dirs" || mkdir $as_dirs
30363 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30364 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30365 { (exit 1); exit 1; }; }; }
30367 ac_builddir=.
30369 if test "$ac_dest_dir" != .; then
30370 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30371 # A "../" for each directory in $ac_dir_suffix.
30372 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30373 else
30374 ac_dir_suffix= ac_top_builddir=
30377 case $srcdir in
30378 .) # No --srcdir option. We are building in place.
30379 ac_srcdir=.
30380 if test -z "$ac_top_builddir"; then
30381 ac_top_srcdir=.
30382 else
30383 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30384 fi ;;
30385 [\\/]* | ?:[\\/]* ) # Absolute path.
30386 ac_srcdir=$srcdir$ac_dir_suffix;
30387 ac_top_srcdir=$srcdir ;;
30388 *) # Relative path.
30389 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30390 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30391 esac
30393 # Do not use `cd foo && pwd` to compute absolute paths, because
30394 # the directories may not exist.
30395 case `pwd` in
30396 .) ac_abs_builddir="$ac_dest_dir";;
30398 case "$ac_dest_dir" in
30399 .) ac_abs_builddir=`pwd`;;
30400 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30401 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30402 esac;;
30403 esac
30404 case $ac_abs_builddir in
30405 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30407 case ${ac_top_builddir}. in
30408 .) ac_abs_top_builddir=$ac_abs_builddir;;
30409 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30410 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30411 esac;;
30412 esac
30413 case $ac_abs_builddir in
30414 .) ac_abs_srcdir=$ac_srcdir;;
30416 case $ac_srcdir in
30417 .) ac_abs_srcdir=$ac_abs_builddir;;
30418 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30419 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30420 esac;;
30421 esac
30422 case $ac_abs_builddir in
30423 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30425 case $ac_top_srcdir in
30426 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30427 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30428 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30429 esac;;
30430 esac
30433 case $srcdir in
30434 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30435 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30436 esac
30438 # Try a symlink, then a hard link, then a copy.
30439 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30440 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30441 cp -p $srcdir/$ac_source $ac_dest ||
30442 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30443 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30444 { (exit 1); exit 1; }; }
30445 done
30446 _ACEOF
30447 cat >>$CONFIG_STATUS <<\_ACEOF
30450 # CONFIG_COMMANDS section.
30452 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30453 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30454 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30455 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30456 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30457 X"$ac_dest" : 'X\(//\)[^/]' \| \
30458 X"$ac_dest" : 'X\(//\)$' \| \
30459 X"$ac_dest" : 'X\(/\)' \| \
30460 . : '\(.\)' 2>/dev/null ||
30461 echo X"$ac_dest" |
30462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30463 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30464 /^X\(\/\/\)$/{ s//\1/; q; }
30465 /^X\(\/\).*/{ s//\1/; q; }
30466 s/.*/./; q'`
30467 { if $as_mkdir_p; then
30468 mkdir -p "$ac_dir"
30469 else
30470 as_dir="$ac_dir"
30471 as_dirs=
30472 while test ! -d "$as_dir"; do
30473 as_dirs="$as_dir $as_dirs"
30474 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30475 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30476 X"$as_dir" : 'X\(//\)[^/]' \| \
30477 X"$as_dir" : 'X\(//\)$' \| \
30478 X"$as_dir" : 'X\(/\)' \| \
30479 . : '\(.\)' 2>/dev/null ||
30480 echo X"$as_dir" |
30481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30483 /^X\(\/\/\)$/{ s//\1/; q; }
30484 /^X\(\/\).*/{ s//\1/; q; }
30485 s/.*/./; q'`
30486 done
30487 test ! -n "$as_dirs" || mkdir $as_dirs
30488 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30489 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30490 { (exit 1); exit 1; }; }; }
30492 ac_builddir=.
30494 if test "$ac_dir" != .; then
30495 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30496 # A "../" for each directory in $ac_dir_suffix.
30497 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30498 else
30499 ac_dir_suffix= ac_top_builddir=
30502 case $srcdir in
30503 .) # No --srcdir option. We are building in place.
30504 ac_srcdir=.
30505 if test -z "$ac_top_builddir"; then
30506 ac_top_srcdir=.
30507 else
30508 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30509 fi ;;
30510 [\\/]* | ?:[\\/]* ) # Absolute path.
30511 ac_srcdir=$srcdir$ac_dir_suffix;
30512 ac_top_srcdir=$srcdir ;;
30513 *) # Relative path.
30514 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30515 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30516 esac
30518 # Do not use `cd foo && pwd` to compute absolute paths, because
30519 # the directories may not exist.
30520 case `pwd` in
30521 .) ac_abs_builddir="$ac_dir";;
30523 case "$ac_dir" in
30524 .) ac_abs_builddir=`pwd`;;
30525 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30526 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30527 esac;;
30528 esac
30529 case $ac_abs_builddir in
30530 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30532 case ${ac_top_builddir}. in
30533 .) ac_abs_top_builddir=$ac_abs_builddir;;
30534 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30535 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30536 esac;;
30537 esac
30538 case $ac_abs_builddir in
30539 .) ac_abs_srcdir=$ac_srcdir;;
30541 case $ac_srcdir in
30542 .) ac_abs_srcdir=$ac_abs_builddir;;
30543 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30544 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30545 esac;;
30546 esac
30547 case $ac_abs_builddir in
30548 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30550 case $ac_top_srcdir in
30551 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30552 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30553 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30554 esac;;
30555 esac
30558 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30559 echo "$as_me: executing $ac_dest commands" >&6;}
30560 case $ac_dest in
30561 default-1 )
30562 # Only add multilib support code if we just rebuilt the top-level
30563 # Makefile.
30564 case " $CONFIG_FILES " in
30565 *" Makefile "*)
30566 ac_file=Makefile . ${multi_basedir}/config-ml.in
30568 esac ;;
30569 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30570 # Strip MF so we end up with the name of the file.
30571 mf=`echo "$mf" | sed -e 's/:.*$//'`
30572 # Check whether this is an Automake generated Makefile or not.
30573 # We used to match only the files named `Makefile.in', but
30574 # some people rename them; so instead we look at the file content.
30575 # Grep'ing the first line is not enough: some people post-process
30576 # each Makefile.in and add a new line on top of each file to say so.
30577 # So let's grep whole file.
30578 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30579 dirpart=`(dirname "$mf") 2>/dev/null ||
30580 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30581 X"$mf" : 'X\(//\)[^/]' \| \
30582 X"$mf" : 'X\(//\)$' \| \
30583 X"$mf" : 'X\(/\)' \| \
30584 . : '\(.\)' 2>/dev/null ||
30585 echo X"$mf" |
30586 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30587 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30588 /^X\(\/\/\)$/{ s//\1/; q; }
30589 /^X\(\/\).*/{ s//\1/; q; }
30590 s/.*/./; q'`
30591 else
30592 continue
30594 # Extract the definition of DEPDIR, am__include, and am__quote
30595 # from the Makefile without running `make'.
30596 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30597 test -z "$DEPDIR" && continue
30598 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30599 test -z "am__include" && continue
30600 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30601 # When using ansi2knr, U may be empty or an underscore; expand it
30602 U=`sed -n 's/^U = //p' < "$mf"`
30603 # Find all dependency output files, they are included files with
30604 # $(DEPDIR) in their names. We invoke sed twice because it is the
30605 # simplest approach to changing $(DEPDIR) to its actual value in the
30606 # expansion.
30607 for file in `sed -n "
30608 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30609 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30610 # Make sure the directory exists.
30611 test -f "$dirpart/$file" && continue
30612 fdir=`(dirname "$file") 2>/dev/null ||
30613 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30614 X"$file" : 'X\(//\)[^/]' \| \
30615 X"$file" : 'X\(//\)$' \| \
30616 X"$file" : 'X\(/\)' \| \
30617 . : '\(.\)' 2>/dev/null ||
30618 echo X"$file" |
30619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30621 /^X\(\/\/\)$/{ s//\1/; q; }
30622 /^X\(\/\).*/{ s//\1/; q; }
30623 s/.*/./; q'`
30624 { if $as_mkdir_p; then
30625 mkdir -p $dirpart/$fdir
30626 else
30627 as_dir=$dirpart/$fdir
30628 as_dirs=
30629 while test ! -d "$as_dir"; do
30630 as_dirs="$as_dir $as_dirs"
30631 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30633 X"$as_dir" : 'X\(//\)[^/]' \| \
30634 X"$as_dir" : 'X\(//\)$' \| \
30635 X"$as_dir" : 'X\(/\)' \| \
30636 . : '\(.\)' 2>/dev/null ||
30637 echo X"$as_dir" |
30638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30640 /^X\(\/\/\)$/{ s//\1/; q; }
30641 /^X\(\/\).*/{ s//\1/; q; }
30642 s/.*/./; q'`
30643 done
30644 test ! -n "$as_dirs" || mkdir $as_dirs
30645 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30646 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30647 { (exit 1); exit 1; }; }; }
30649 # echo "creating $dirpart/$file"
30650 echo '# dummy' > "$dirpart/$file"
30651 done
30652 done
30654 libtool )
30656 # See if we are running on zsh, and set the options which allow our
30657 # commands through without removal of \ escapes.
30658 if test -n "${ZSH_VERSION+set}" ; then
30659 setopt NO_GLOB_SUBST
30662 cfgfile="${ofile}T"
30663 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30664 $RM "$cfgfile"
30666 cat <<_LT_EOF >> "$cfgfile"
30667 #! $SHELL
30669 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30670 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30671 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30672 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30674 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30675 # 2006, 2007, 2008 Free Software Foundation, Inc.
30676 # Written by Gordon Matzigkeit, 1996
30678 # This file is part of GNU Libtool.
30680 # GNU Libtool is free software; you can redistribute it and/or
30681 # modify it under the terms of the GNU General Public License as
30682 # published by the Free Software Foundation; either version 2 of
30683 # the License, or (at your option) any later version.
30685 # As a special exception to the GNU General Public License,
30686 # if you distribute this file as part of a program or library that
30687 # is built using GNU Libtool, you may include this file under the
30688 # same distribution terms that you use for the rest of that program.
30690 # GNU Libtool is distributed in the hope that it will be useful,
30691 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30693 # GNU General Public License for more details.
30695 # You should have received a copy of the GNU General Public License
30696 # along with GNU Libtool; see the file COPYING. If not, a copy
30697 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30698 # obtained by writing to the Free Software Foundation, Inc.,
30699 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30702 # The names of the tagged configurations supported by this script.
30703 available_tags="CXX GCJ "
30705 # ### BEGIN LIBTOOL CONFIG
30707 # Which release of libtool.m4 was used?
30708 macro_version=$macro_version
30709 macro_revision=$macro_revision
30711 # Whether or not to build shared libraries.
30712 build_libtool_libs=$enable_shared
30714 # Whether or not to build static libraries.
30715 build_old_libs=$enable_static
30717 # What type of objects to build.
30718 pic_mode=$pic_mode
30720 # Whether or not to optimize for fast installation.
30721 fast_install=$enable_fast_install
30723 # The host system.
30724 host_alias=$host_alias
30725 host=$host
30726 host_os=$host_os
30728 # The build system.
30729 build_alias=$build_alias
30730 build=$build
30731 build_os=$build_os
30733 # A sed program that does not truncate output.
30734 SED=$lt_SED
30736 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30737 Xsed="\$SED -e 1s/^X//"
30739 # A grep program that handles long lines.
30740 GREP=$lt_GREP
30742 # An ERE matcher.
30743 EGREP=$lt_EGREP
30745 # A literal string matcher.
30746 FGREP=$lt_FGREP
30748 # A BSD- or MS-compatible name lister.
30749 NM=$lt_NM
30751 # Whether we need soft or hard links.
30752 LN_S=$lt_LN_S
30754 # What is the maximum length of a command?
30755 max_cmd_len=$max_cmd_len
30757 # Object file suffix (normally "o").
30758 objext=$ac_objext
30760 # Executable file suffix (normally "").
30761 exeext=$exeext
30763 # whether the shell understands "unset".
30764 lt_unset=$lt_unset
30766 # turn spaces into newlines.
30767 SP2NL=$lt_lt_SP2NL
30769 # turn newlines into spaces.
30770 NL2SP=$lt_lt_NL2SP
30772 # How to create reloadable object files.
30773 reload_flag=$lt_reload_flag
30774 reload_cmds=$lt_reload_cmds
30776 # An object symbol dumper.
30777 OBJDUMP=$lt_OBJDUMP
30779 # Method to check whether dependent libraries are shared objects.
30780 deplibs_check_method=$lt_deplibs_check_method
30782 # Command to use when deplibs_check_method == "file_magic".
30783 file_magic_cmd=$lt_file_magic_cmd
30785 # The archiver.
30786 AR=$lt_AR
30787 AR_FLAGS=$lt_AR_FLAGS
30789 # A symbol stripping program.
30790 STRIP=$lt_STRIP
30792 # Commands used to install an old-style archive.
30793 RANLIB=$lt_RANLIB
30794 old_postinstall_cmds=$lt_old_postinstall_cmds
30795 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30797 # A C compiler.
30798 LTCC=$lt_CC
30800 # LTCC compiler flags.
30801 LTCFLAGS=$lt_CFLAGS
30803 # Take the output of nm and produce a listing of raw symbols and C names.
30804 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30806 # Transform the output of nm in a proper C declaration.
30807 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30809 # Transform the output of nm in a C name address pair.
30810 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30812 # Transform the output of nm in a C name address pair when lib prefix is needed.
30813 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30815 # The name of the directory that contains temporary libtool files.
30816 objdir=$objdir
30818 # Shell to use when invoking shell scripts.
30819 SHELL=$lt_SHELL
30821 # An echo program that does not interpret backslashes.
30822 ECHO=$lt_ECHO
30824 # Used to examine libraries when file_magic_cmd begins with "file".
30825 MAGIC_CMD=$MAGIC_CMD
30827 # Must we lock files when doing compilation?
30828 need_locks=$lt_need_locks
30830 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30831 DSYMUTIL=$lt_DSYMUTIL
30833 # Tool to change global to local symbols on Mac OS X.
30834 NMEDIT=$lt_NMEDIT
30836 # Tool to manipulate fat objects and archives on Mac OS X.
30837 LIPO=$lt_LIPO
30839 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30840 OTOOL=$lt_OTOOL
30842 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30843 OTOOL64=$lt_OTOOL64
30845 # Old archive suffix (normally "a").
30846 libext=$libext
30848 # Shared library suffix (normally ".so").
30849 shrext_cmds=$lt_shrext_cmds
30851 # The commands to extract the exported symbol list from a shared archive.
30852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30854 # Variables whose values should be saved in libtool wrapper scripts and
30855 # restored at link time.
30856 variables_saved_for_relink=$lt_variables_saved_for_relink
30858 # Do we need the "lib" prefix for modules?
30859 need_lib_prefix=$need_lib_prefix
30861 # Do we need a version for libraries?
30862 need_version=$need_version
30864 # Library versioning type.
30865 version_type=$version_type
30867 # Shared library runtime path variable.
30868 runpath_var=$runpath_var
30870 # Shared library path variable.
30871 shlibpath_var=$shlibpath_var
30873 # Is shlibpath searched before the hard-coded library search path?
30874 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30876 # Format of library name prefix.
30877 libname_spec=$lt_libname_spec
30879 # List of archive names. First name is the real one, the rest are links.
30880 # The last name is the one that the linker finds with -lNAME
30881 library_names_spec=$lt_library_names_spec
30883 # The coded name of the library, if different from the real name.
30884 soname_spec=$lt_soname_spec
30886 # Command to use after installation of a shared archive.
30887 postinstall_cmds=$lt_postinstall_cmds
30889 # Command to use after uninstallation of a shared archive.
30890 postuninstall_cmds=$lt_postuninstall_cmds
30892 # Commands used to finish a libtool library installation in a directory.
30893 finish_cmds=$lt_finish_cmds
30895 # As "finish_cmds", except a single script fragment to be evaled but
30896 # not shown.
30897 finish_eval=$lt_finish_eval
30899 # Whether we should hardcode library paths into libraries.
30900 hardcode_into_libs=$hardcode_into_libs
30902 # Compile-time system search path for libraries.
30903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30905 # Run-time system search path for libraries.
30906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30908 # Whether dlopen is supported.
30909 dlopen_support=$enable_dlopen
30911 # Whether dlopen of programs is supported.
30912 dlopen_self=$enable_dlopen_self
30914 # Whether dlopen of statically linked programs is supported.
30915 dlopen_self_static=$enable_dlopen_self_static
30917 # Commands to strip libraries.
30918 old_striplib=$lt_old_striplib
30919 striplib=$lt_striplib
30922 # The linker used to build libraries.
30923 LD=$lt_LD
30925 # Commands used to build an old-style archive.
30926 old_archive_cmds=$lt_old_archive_cmds
30928 # A language specific compiler.
30929 CC=$lt_compiler
30931 # Is the compiler the GNU compiler?
30932 with_gcc=$GCC
30934 # Compiler flag to turn off builtin functions.
30935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30937 # How to pass a linker flag through the compiler.
30938 wl=$lt_lt_prog_compiler_wl
30940 # Additional compiler flags for building library objects.
30941 pic_flag=$lt_lt_prog_compiler_pic
30943 # Compiler flag to prevent dynamic linking.
30944 link_static_flag=$lt_lt_prog_compiler_static
30946 # Does compiler simultaneously support -c and -o options?
30947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30949 # Whether or not to add -lc for building shared libraries.
30950 build_libtool_need_lc=$archive_cmds_need_lc
30952 # Whether or not to disallow shared libs when runtime libs are static.
30953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30955 # Compiler flag to allow reflexive dlopens.
30956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30958 # Compiler flag to generate shared objects directly from archives.
30959 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30961 # Whether the compiler copes with passing no objects directly.
30962 compiler_needs_object=$lt_compiler_needs_object
30964 # Create an old-style archive from a shared archive.
30965 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30967 # Create a temporary old-style archive to link instead of a shared archive.
30968 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30970 # Commands used to build a shared archive.
30971 archive_cmds=$lt_archive_cmds
30972 archive_expsym_cmds=$lt_archive_expsym_cmds
30974 # Commands used to build a loadable module if different from building
30975 # a shared archive.
30976 module_cmds=$lt_module_cmds
30977 module_expsym_cmds=$lt_module_expsym_cmds
30979 # Whether we are building with GNU ld or not.
30980 with_gnu_ld=$lt_with_gnu_ld
30982 # Flag that allows shared libraries with undefined symbols to be built.
30983 allow_undefined_flag=$lt_allow_undefined_flag
30985 # Flag that enforces no undefined symbols.
30986 no_undefined_flag=$lt_no_undefined_flag
30988 # Flag to hardcode \$libdir into a binary during linking.
30989 # This must work even if \$libdir does not exist
30990 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30992 # If ld is used when linking, flag to hardcode \$libdir into a binary
30993 # during linking. This must work even if \$libdir does not exist.
30994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30996 # Whether we need a single "-rpath" flag with a separated argument.
30997 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30999 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31000 # DIR into the resulting binary.
31001 hardcode_direct=$hardcode_direct
31003 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31004 # DIR into the resulting binary and the resulting library dependency is
31005 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31006 # library is relocated.
31007 hardcode_direct_absolute=$hardcode_direct_absolute
31009 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31010 # into the resulting binary.
31011 hardcode_minus_L=$hardcode_minus_L
31013 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31014 # into the resulting binary.
31015 hardcode_shlibpath_var=$hardcode_shlibpath_var
31017 # Set to "yes" if building a shared library automatically hardcodes DIR
31018 # into the library and all subsequent libraries and executables linked
31019 # against it.
31020 hardcode_automatic=$hardcode_automatic
31022 # Set to yes if linker adds runtime paths of dependent libraries
31023 # to runtime path list.
31024 inherit_rpath=$inherit_rpath
31026 # Whether libtool must link a program against all its dependency libraries.
31027 link_all_deplibs=$link_all_deplibs
31029 # Fix the shell variable \$srcfile for the compiler.
31030 fix_srcfile_path=$lt_fix_srcfile_path
31032 # Set to "yes" if exported symbols are required.
31033 always_export_symbols=$always_export_symbols
31035 # The commands to list exported symbols.
31036 export_symbols_cmds=$lt_export_symbols_cmds
31038 # Symbols that should not be listed in the preloaded symbols.
31039 exclude_expsyms=$lt_exclude_expsyms
31041 # Symbols that must always be exported.
31042 include_expsyms=$lt_include_expsyms
31044 # Commands necessary for linking programs (against libraries) with templates.
31045 prelink_cmds=$lt_prelink_cmds
31047 # Specify filename containing input files.
31048 file_list_spec=$lt_file_list_spec
31050 # How to hardcode a shared library path into an executable.
31051 hardcode_action=$hardcode_action
31053 # The directories searched by this compiler when creating a shared library.
31054 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31056 # Dependencies to place before and after the objects being linked to
31057 # create a shared library.
31058 predep_objects=$lt_predep_objects
31059 postdep_objects=$lt_postdep_objects
31060 predeps=$lt_predeps
31061 postdeps=$lt_postdeps
31063 # The library search path used internally by the compiler when linking
31064 # a shared library.
31065 compiler_lib_search_path=$lt_compiler_lib_search_path
31067 # ### END LIBTOOL CONFIG
31069 _LT_EOF
31071 case $host_os in
31072 aix3*)
31073 cat <<\_LT_EOF >> "$cfgfile"
31074 # AIX sometimes has problems with the GCC collect2 program. For some
31075 # reason, if we set the COLLECT_NAMES environment variable, the problems
31076 # vanish in a puff of smoke.
31077 if test "X${COLLECT_NAMES+set}" != Xset; then
31078 COLLECT_NAMES=
31079 export COLLECT_NAMES
31081 _LT_EOF
31083 esac
31086 ltmain="$ac_aux_dir/ltmain.sh"
31089 # We use sed instead of cat because bash on DJGPP gets confused if
31090 # if finds mixed CR/LF and LF-only lines. Since sed operates in
31091 # text mode, it properly converts lines to CR/LF. This bash problem
31092 # is reportedly fixed, but why not run on old versions too?
31093 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31094 || (rm -f "$cfgfile"; exit 1)
31096 case $xsi_shell in
31097 yes)
31098 cat << \_LT_EOF >> "$cfgfile"
31100 # func_dirname file append nondir_replacement
31101 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31102 # otherwise set result to NONDIR_REPLACEMENT.
31103 func_dirname ()
31105 case ${1} in
31106 */*) func_dirname_result="${1%/*}${2}" ;;
31107 * ) func_dirname_result="${3}" ;;
31108 esac
31111 # func_basename file
31112 func_basename ()
31114 func_basename_result="${1##*/}"
31117 # func_dirname_and_basename file append nondir_replacement
31118 # perform func_basename and func_dirname in a single function
31119 # call:
31120 # dirname: Compute the dirname of FILE. If nonempty,
31121 # add APPEND to the result, otherwise set result
31122 # to NONDIR_REPLACEMENT.
31123 # value returned in "$func_dirname_result"
31124 # basename: Compute filename of FILE.
31125 # value retuned in "$func_basename_result"
31126 # Implementation must be kept synchronized with func_dirname
31127 # and func_basename. For efficiency, we do not delegate to
31128 # those functions but instead duplicate the functionality here.
31129 func_dirname_and_basename ()
31131 case ${1} in
31132 */*) func_dirname_result="${1%/*}${2}" ;;
31133 * ) func_dirname_result="${3}" ;;
31134 esac
31135 func_basename_result="${1##*/}"
31138 # func_stripname prefix suffix name
31139 # strip PREFIX and SUFFIX off of NAME.
31140 # PREFIX and SUFFIX must not contain globbing or regex special
31141 # characters, hashes, percent signs, but SUFFIX may contain a leading
31142 # dot (in which case that matches only a dot).
31143 func_stripname ()
31145 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
31146 # positional parameters, so assign one to ordinary parameter first.
31147 func_stripname_result=${3}
31148 func_stripname_result=${func_stripname_result#"${1}"}
31149 func_stripname_result=${func_stripname_result%"${2}"}
31152 # func_opt_split
31153 func_opt_split ()
31155 func_opt_split_opt=${1%%=*}
31156 func_opt_split_arg=${1#*=}
31159 # func_lo2o object
31160 func_lo2o ()
31162 case ${1} in
31163 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
31164 *) func_lo2o_result=${1} ;;
31165 esac
31168 # func_xform libobj-or-source
31169 func_xform ()
31171 func_xform_result=${1%.*}.lo
31174 # func_arith arithmetic-term...
31175 func_arith ()
31177 func_arith_result=$(( $* ))
31180 # func_len string
31181 # STRING may not start with a hyphen.
31182 func_len ()
31184 func_len_result=${#1}
31187 _LT_EOF
31189 *) # Bourne compatible functions.
31190 cat << \_LT_EOF >> "$cfgfile"
31192 # func_dirname file append nondir_replacement
31193 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
31194 # otherwise set result to NONDIR_REPLACEMENT.
31195 func_dirname ()
31197 # Extract subdirectory from the argument.
31198 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
31199 if test "X$func_dirname_result" = "X${1}"; then
31200 func_dirname_result="${3}"
31201 else
31202 func_dirname_result="$func_dirname_result${2}"
31206 # func_basename file
31207 func_basename ()
31209 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
31213 # func_stripname prefix suffix name
31214 # strip PREFIX and SUFFIX off of NAME.
31215 # PREFIX and SUFFIX must not contain globbing or regex special
31216 # characters, hashes, percent signs, but SUFFIX may contain a leading
31217 # dot (in which case that matches only a dot).
31218 # func_strip_suffix prefix name
31219 func_stripname ()
31221 case ${2} in
31222 .*) func_stripname_result=`$ECHO "X${3}" \
31223 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
31224 *) func_stripname_result=`$ECHO "X${3}" \
31225 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
31226 esac
31229 # sed scripts:
31230 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
31231 my_sed_long_arg='1s/^-[^=]*=//'
31233 # func_opt_split
31234 func_opt_split ()
31236 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
31237 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
31240 # func_lo2o object
31241 func_lo2o ()
31243 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
31246 # func_xform libobj-or-source
31247 func_xform ()
31249 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
31252 # func_arith arithmetic-term...
31253 func_arith ()
31255 func_arith_result=`expr "$@"`
31258 # func_len string
31259 # STRING may not start with a hyphen.
31260 func_len ()
31262 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
31265 _LT_EOF
31266 esac
31268 case $lt_shell_append in
31269 yes)
31270 cat << \_LT_EOF >> "$cfgfile"
31272 # func_append var value
31273 # Append VALUE to the end of shell variable VAR.
31274 func_append ()
31276 eval "$1+=\$2"
31278 _LT_EOF
31281 cat << \_LT_EOF >> "$cfgfile"
31283 # func_append var value
31284 # Append VALUE to the end of shell variable VAR.
31285 func_append ()
31287 eval "$1=\$$1\$2"
31290 _LT_EOF
31292 esac
31295 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
31296 || (rm -f "$cfgfile"; exit 1)
31298 mv -f "$cfgfile" "$ofile" ||
31299 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31300 chmod +x "$ofile"
31303 cat <<_LT_EOF >> "$ofile"
31305 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31307 # The linker used to build libraries.
31308 LD=$lt_LD_CXX
31310 # Commands used to build an old-style archive.
31311 old_archive_cmds=$lt_old_archive_cmds_CXX
31313 # A language specific compiler.
31314 CC=$lt_compiler_CXX
31316 # Is the compiler the GNU compiler?
31317 with_gcc=$GCC_CXX
31319 # Compiler flag to turn off builtin functions.
31320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31322 # How to pass a linker flag through the compiler.
31323 wl=$lt_lt_prog_compiler_wl_CXX
31325 # Additional compiler flags for building library objects.
31326 pic_flag=$lt_lt_prog_compiler_pic_CXX
31328 # Compiler flag to prevent dynamic linking.
31329 link_static_flag=$lt_lt_prog_compiler_static_CXX
31331 # Does compiler simultaneously support -c and -o options?
31332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31334 # Whether or not to add -lc for building shared libraries.
31335 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31337 # Whether or not to disallow shared libs when runtime libs are static.
31338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31340 # Compiler flag to allow reflexive dlopens.
31341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31343 # Compiler flag to generate shared objects directly from archives.
31344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31346 # Whether the compiler copes with passing no objects directly.
31347 compiler_needs_object=$lt_compiler_needs_object_CXX
31349 # Create an old-style archive from a shared archive.
31350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31352 # Create a temporary old-style archive to link instead of a shared archive.
31353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31355 # Commands used to build a shared archive.
31356 archive_cmds=$lt_archive_cmds_CXX
31357 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31359 # Commands used to build a loadable module if different from building
31360 # a shared archive.
31361 module_cmds=$lt_module_cmds_CXX
31362 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31364 # Whether we are building with GNU ld or not.
31365 with_gnu_ld=$lt_with_gnu_ld_CXX
31367 # Flag that allows shared libraries with undefined symbols to be built.
31368 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31370 # Flag that enforces no undefined symbols.
31371 no_undefined_flag=$lt_no_undefined_flag_CXX
31373 # Flag to hardcode \$libdir into a binary during linking.
31374 # This must work even if \$libdir does not exist
31375 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31377 # If ld is used when linking, flag to hardcode \$libdir into a binary
31378 # during linking. This must work even if \$libdir does not exist.
31379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31381 # Whether we need a single "-rpath" flag with a separated argument.
31382 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31384 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31385 # DIR into the resulting binary.
31386 hardcode_direct=$hardcode_direct_CXX
31388 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31389 # DIR into the resulting binary and the resulting library dependency is
31390 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31391 # library is relocated.
31392 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31394 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31395 # into the resulting binary.
31396 hardcode_minus_L=$hardcode_minus_L_CXX
31398 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31399 # into the resulting binary.
31400 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31402 # Set to "yes" if building a shared library automatically hardcodes DIR
31403 # into the library and all subsequent libraries and executables linked
31404 # against it.
31405 hardcode_automatic=$hardcode_automatic_CXX
31407 # Set to yes if linker adds runtime paths of dependent libraries
31408 # to runtime path list.
31409 inherit_rpath=$inherit_rpath_CXX
31411 # Whether libtool must link a program against all its dependency libraries.
31412 link_all_deplibs=$link_all_deplibs_CXX
31414 # Fix the shell variable \$srcfile for the compiler.
31415 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31417 # Set to "yes" if exported symbols are required.
31418 always_export_symbols=$always_export_symbols_CXX
31420 # The commands to list exported symbols.
31421 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31423 # Symbols that should not be listed in the preloaded symbols.
31424 exclude_expsyms=$lt_exclude_expsyms_CXX
31426 # Symbols that must always be exported.
31427 include_expsyms=$lt_include_expsyms_CXX
31429 # Commands necessary for linking programs (against libraries) with templates.
31430 prelink_cmds=$lt_prelink_cmds_CXX
31432 # Specify filename containing input files.
31433 file_list_spec=$lt_file_list_spec_CXX
31435 # How to hardcode a shared library path into an executable.
31436 hardcode_action=$hardcode_action_CXX
31438 # The directories searched by this compiler when creating a shared library.
31439 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31441 # Dependencies to place before and after the objects being linked to
31442 # create a shared library.
31443 predep_objects=$lt_predep_objects_CXX
31444 postdep_objects=$lt_postdep_objects_CXX
31445 predeps=$lt_predeps_CXX
31446 postdeps=$lt_postdeps_CXX
31448 # The library search path used internally by the compiler when linking
31449 # a shared library.
31450 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31452 # ### END LIBTOOL TAG CONFIG: CXX
31453 _LT_EOF
31456 cat <<_LT_EOF >> "$ofile"
31458 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
31460 # The linker used to build libraries.
31461 LD=$lt_LD_GCJ
31463 # Commands used to build an old-style archive.
31464 old_archive_cmds=$lt_old_archive_cmds_GCJ
31466 # A language specific compiler.
31467 CC=$lt_compiler_GCJ
31469 # Is the compiler the GNU compiler?
31470 with_gcc=$GCC_GCJ
31472 # Compiler flag to turn off builtin functions.
31473 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
31475 # How to pass a linker flag through the compiler.
31476 wl=$lt_lt_prog_compiler_wl_GCJ
31478 # Additional compiler flags for building library objects.
31479 pic_flag=$lt_lt_prog_compiler_pic_GCJ
31481 # Compiler flag to prevent dynamic linking.
31482 link_static_flag=$lt_lt_prog_compiler_static_GCJ
31484 # Does compiler simultaneously support -c and -o options?
31485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
31487 # Whether or not to add -lc for building shared libraries.
31488 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
31490 # Whether or not to disallow shared libs when runtime libs are static.
31491 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
31493 # Compiler flag to allow reflexive dlopens.
31494 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
31496 # Compiler flag to generate shared objects directly from archives.
31497 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
31499 # Whether the compiler copes with passing no objects directly.
31500 compiler_needs_object=$lt_compiler_needs_object_GCJ
31502 # Create an old-style archive from a shared archive.
31503 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
31505 # Create a temporary old-style archive to link instead of a shared archive.
31506 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
31508 # Commands used to build a shared archive.
31509 archive_cmds=$lt_archive_cmds_GCJ
31510 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
31512 # Commands used to build a loadable module if different from building
31513 # a shared archive.
31514 module_cmds=$lt_module_cmds_GCJ
31515 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
31517 # Whether we are building with GNU ld or not.
31518 with_gnu_ld=$lt_with_gnu_ld_GCJ
31520 # Flag that allows shared libraries with undefined symbols to be built.
31521 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31523 # Flag that enforces no undefined symbols.
31524 no_undefined_flag=$lt_no_undefined_flag_GCJ
31526 # Flag to hardcode \$libdir into a binary during linking.
31527 # This must work even if \$libdir does not exist
31528 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31530 # If ld is used when linking, flag to hardcode \$libdir into a binary
31531 # during linking. This must work even if \$libdir does not exist.
31532 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31534 # Whether we need a single "-rpath" flag with a separated argument.
31535 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31537 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31538 # DIR into the resulting binary.
31539 hardcode_direct=$hardcode_direct_GCJ
31541 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31542 # DIR into the resulting binary and the resulting library dependency is
31543 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31544 # library is relocated.
31545 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
31547 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31548 # into the resulting binary.
31549 hardcode_minus_L=$hardcode_minus_L_GCJ
31551 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31552 # into the resulting binary.
31553 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31555 # Set to "yes" if building a shared library automatically hardcodes DIR
31556 # into the library and all subsequent libraries and executables linked
31557 # against it.
31558 hardcode_automatic=$hardcode_automatic_GCJ
31560 # Set to yes if linker adds runtime paths of dependent libraries
31561 # to runtime path list.
31562 inherit_rpath=$inherit_rpath_GCJ
31564 # Whether libtool must link a program against all its dependency libraries.
31565 link_all_deplibs=$link_all_deplibs_GCJ
31567 # Fix the shell variable \$srcfile for the compiler.
31568 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
31570 # Set to "yes" if exported symbols are required.
31571 always_export_symbols=$always_export_symbols_GCJ
31573 # The commands to list exported symbols.
31574 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31576 # Symbols that should not be listed in the preloaded symbols.
31577 exclude_expsyms=$lt_exclude_expsyms_GCJ
31579 # Symbols that must always be exported.
31580 include_expsyms=$lt_include_expsyms_GCJ
31582 # Commands necessary for linking programs (against libraries) with templates.
31583 prelink_cmds=$lt_prelink_cmds_GCJ
31585 # Specify filename containing input files.
31586 file_list_spec=$lt_file_list_spec_GCJ
31588 # How to hardcode a shared library path into an executable.
31589 hardcode_action=$hardcode_action_GCJ
31591 # The directories searched by this compiler when creating a shared library.
31592 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
31594 # Dependencies to place before and after the objects being linked to
31595 # create a shared library.
31596 predep_objects=$lt_predep_objects_GCJ
31597 postdep_objects=$lt_postdep_objects_GCJ
31598 predeps=$lt_predeps_GCJ
31599 postdeps=$lt_postdeps_GCJ
31601 # The library search path used internally by the compiler when linking
31602 # a shared library.
31603 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31605 # ### END LIBTOOL TAG CONFIG: GCJ
31606 _LT_EOF
31609 esac
31610 done
31611 _ACEOF
31613 cat >>$CONFIG_STATUS <<\_ACEOF
31615 { (exit 0); exit 0; }
31616 _ACEOF
31617 chmod +x $CONFIG_STATUS
31618 ac_clean_files=$ac_clean_files_save
31621 # configure is writing to config.log, and then calls config.status.
31622 # config.status does its own redirection, appending to config.log.
31623 # Unfortunately, on DOS this fails, as config.log is still kept open
31624 # by configure, so config.status won't be able to write to it; its
31625 # output is simply discarded. So we exec the FD to /dev/null,
31626 # effectively closing config.log, so it can be properly (re)opened and
31627 # appended to by config.status. When coming back to configure, we
31628 # need to make the FD available again.
31629 if test "$no_create" != yes; then
31630 ac_cs_success=:
31631 ac_config_status_args=
31632 test "$silent" = yes &&
31633 ac_config_status_args="$ac_config_status_args --quiet"
31634 exec 5>/dev/null
31635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31636 exec 5>>config.log
31637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31638 # would make configure fail if this is the last instruction.
31639 $ac_cs_success || { (exit 1); exit 1; }
31643 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
31645 if test "$no_recursion" != yes; then
31647 # Remove --cache-file and --srcdir arguments so they do not pile up.
31648 ac_sub_configure_args=
31649 ac_prev=
31650 eval "set x $ac_configure_args"
31651 shift
31652 for ac_arg
31654 if test -n "$ac_prev"; then
31655 ac_prev=
31656 continue
31658 case $ac_arg in
31659 -cache-file | --cache-file | --cache-fil | --cache-fi \
31660 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31661 ac_prev=cache_file ;;
31662 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31663 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31664 | --c=*)
31666 --config-cache | -C)
31668 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31669 ac_prev=srcdir ;;
31670 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31672 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31673 ac_prev=prefix ;;
31674 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31677 case $ac_arg in
31678 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31679 esac
31680 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
31681 esac
31682 done
31684 # Always prepend --prefix to ensure using the same prefix
31685 # in subdir configurations.
31686 ac_arg="--prefix=$prefix"
31687 case $ac_arg in
31688 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
31689 esac
31690 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
31692 ac_popdir=`pwd`
31693 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31695 # Do not complain, so a configure script can configure whichever
31696 # parts of a large source tree are present.
31697 test -d "$srcdir/$ac_dir" || continue
31699 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31700 echo "$as_me: configuring in $ac_dir" >&6;}
31701 { if $as_mkdir_p; then
31702 mkdir -p "$ac_dir"
31703 else
31704 as_dir="$ac_dir"
31705 as_dirs=
31706 while test ! -d "$as_dir"; do
31707 as_dirs="$as_dir $as_dirs"
31708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31710 X"$as_dir" : 'X\(//\)[^/]' \| \
31711 X"$as_dir" : 'X\(//\)$' \| \
31712 X"$as_dir" : 'X\(/\)' \| \
31713 . : '\(.\)' 2>/dev/null ||
31714 echo X"$as_dir" |
31715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31717 /^X\(\/\/\)$/{ s//\1/; q; }
31718 /^X\(\/\).*/{ s//\1/; q; }
31719 s/.*/./; q'`
31720 done
31721 test ! -n "$as_dirs" || mkdir $as_dirs
31722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31723 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31724 { (exit 1); exit 1; }; }; }
31726 ac_builddir=.
31728 if test "$ac_dir" != .; then
31729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31730 # A "../" for each directory in $ac_dir_suffix.
31731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31732 else
31733 ac_dir_suffix= ac_top_builddir=
31736 case $srcdir in
31737 .) # No --srcdir option. We are building in place.
31738 ac_srcdir=.
31739 if test -z "$ac_top_builddir"; then
31740 ac_top_srcdir=.
31741 else
31742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31743 fi ;;
31744 [\\/]* | ?:[\\/]* ) # Absolute path.
31745 ac_srcdir=$srcdir$ac_dir_suffix;
31746 ac_top_srcdir=$srcdir ;;
31747 *) # Relative path.
31748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31750 esac
31752 # Do not use `cd foo && pwd` to compute absolute paths, because
31753 # the directories may not exist.
31754 case `pwd` in
31755 .) ac_abs_builddir="$ac_dir";;
31757 case "$ac_dir" in
31758 .) ac_abs_builddir=`pwd`;;
31759 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31760 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31761 esac;;
31762 esac
31763 case $ac_abs_builddir in
31764 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31766 case ${ac_top_builddir}. in
31767 .) ac_abs_top_builddir=$ac_abs_builddir;;
31768 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31769 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31770 esac;;
31771 esac
31772 case $ac_abs_builddir in
31773 .) ac_abs_srcdir=$ac_srcdir;;
31775 case $ac_srcdir in
31776 .) ac_abs_srcdir=$ac_abs_builddir;;
31777 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31778 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31779 esac;;
31780 esac
31781 case $ac_abs_builddir in
31782 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31784 case $ac_top_srcdir in
31785 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31786 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31787 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31788 esac;;
31789 esac
31792 cd "$ac_dir"
31794 # Check for guested configure; otherwise get Cygnus style configure.
31795 if test -f "$ac_srcdir/configure.gnu"; then
31796 ac_sub_configure=$ac_srcdir/configure.gnu
31797 elif test -f "$ac_srcdir/configure"; then
31798 ac_sub_configure=$ac_srcdir/configure
31799 elif test -f "$ac_srcdir/configure.in"; then
31800 # This should be Cygnus configure.
31801 ac_sub_configure=$ac_aux_dir/configure
31802 else
31803 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31804 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31805 ac_sub_configure=
31808 # The recursion is here.
31809 if test -n "$ac_sub_configure"; then
31810 # Make the cache file name correct relative to the subdirectory.
31811 case $cache_file in
31812 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31813 *) # Relative path.
31814 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31815 esac
31817 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31818 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31819 # The eval makes quoting arguments work.
31820 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31821 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31822 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31823 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31824 { (exit 1); exit 1; }; }
31827 cd "$ac_popdir"
31828 done